/* ===== Palette B — Teal premium ===== */
:root {
  --color-primary: #0F766E;        /* Teal profond */
  --color-primary-dark: #0B5B54;
  --color-primary-light: #14B8A6;
  --color-accent: #F59E0B;          /* Ambre CTA */
  --color-accent-dark: #D97706;
  --color-neutral: #1C1917;         /* Noir chaud */
  --color-neutral-soft: #44403C;
  --color-muted: #78716C;
  --color-bg: #FAFAF9;              /* Blanc sable */
  --color-bg-alt: #F5F5F4;
  --color-border: #E7E5E4;

  --font-heading: 'Work Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);

  --container-max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-neutral);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-neutral);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover { color: var(--color-primary-dark); }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== Header ===== */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.site-header .logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-neutral);
  letter-spacing: -0.03em;
}

.site-header .logo span { color: var(--color-primary); }

.site-header nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  align-items: center;
}

.site-header nav a {
  color: var(--color-neutral-soft);
  font-weight: 500;
  font-size: 0.95rem;
}

.site-header nav a:hover { color: var(--color-primary); }

.btn-nav {
  background: var(--color-accent);
  color: #fff !important;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background 0.15s ease;
}

.btn-nav:hover { background: var(--color-accent-dark); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  background-image:
    linear-gradient(135deg, rgba(15, 118, 110, 0.78) 0%, rgba(11, 91, 84, 0.55) 100%),
    url('https://images.pexels.com/photos/1746876/pexels-photo-1746876.jpeg?auto=compress&cs=tinysrgb&w=1600');
  background-size: cover;
  background-position: center;
  color: #fff;
}

.hero .container { text-align: center; position: relative; z-index: 2; }

.hero h1 { margin-bottom: 1.25rem; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.hero h1 em { color: #FCD34D; font-style: normal; }
.hero .subtitle { color: rgba(255,255,255,0.92); }

.hero-sub {
  padding: 4rem 0 3rem;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}
.hero-sub .container { text-align: center; }
.hero-sub h1 { margin-bottom: 1rem; }

.hero .subtitle {
  font-size: 1.15rem;
  color: var(--color-neutral-soft);
  max-width: 680px;
  margin: 0 auto 2rem;
}

.hero .cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Boutons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  color: #fff;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ===== Sections ===== */
section { padding: 4rem 0; }
section.alt { background: var(--color-bg-alt); }

.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { margin-bottom: 0.75rem; }
.section-title p {
  color: var(--color-neutral-soft);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto;
}

/* ===== Grille de cartes ===== */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: #fff;
  padding: 2rem 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--color-primary-light);
}

.card .icon {
  width: 48px;
  height: 48px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--color-neutral-soft); font-size: 0.95rem; margin-bottom: 0; }

/* ===== Processus ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.step { text-align: center; }

.step .number {
  width: 56px;
  height: 56px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--color-neutral-soft); font-size: 0.95rem; }

/* ===== Villes ===== */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem 1.25rem;
  margin-top: 2rem;
}

.cities-grid a {
  padding: 0.5rem 0;
  color: var(--color-neutral-soft);
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  transition: all 0.15s ease;
}

.cities-grid a:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* ===== CTA band ===== */
.cta-band {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 4.5rem 0;
}

.cta-band h2 { color: #fff; margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 620px; margin: 0 auto 2rem; font-size: 1.05rem; }
.cta-band .btn-primary { background: var(--color-accent); }
.cta-band .btn-primary:hover { background: #FCD34D; color: var(--color-neutral); }

/* ===== FAQ ===== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.faq-item[open] { border-color: var(--color-primary-light); }

.faq-item summary {
  cursor: pointer;
  padding: 1.1rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-neutral);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--color-primary);
  font-weight: 400;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item summary:hover { color: var(--color-primary); }

.faq-item .answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--color-neutral-soft);
  line-height: 1.7;
}

/* ===== Section avec image illustrative ===== */
.illustrated {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.illustrated .image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
}

.illustrated .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .illustrated { grid-template-columns: 1fr; gap: 2rem; }
  .illustrated .image { aspect-ratio: 16/10; }
}

/* ===== Fil d'Ariane ===== */
.breadcrumb {
  padding: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}
.breadcrumb a { color: var(--color-muted); }
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb .sep { margin: 0 0.5rem; opacity: 0.5; }

/* ===== Page ville ===== */
.page-header {
  padding: 3rem 0 2rem;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 { margin-bottom: 0.5rem; }

.page-header .zip {
  display: inline-block;
  background: rgba(15, 118, 110, 0.1);
  color: var(--color-primary);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
}

.content-block { max-width: 760px; margin: 0 auto; }
.content-block h2 { margin-top: 2.5rem; }
.content-block p { color: var(--color-neutral-soft); }
.content-block ul { margin: 1rem 0 1rem 1.5rem; color: var(--color-neutral-soft); }
.content-block li { margin-bottom: 0.35rem; }

.nearby-cities {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}

/* ===== Formulaire ===== */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  border: 1px solid var(--color-border);
}

.contact-form h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--color-border);
  font-weight: 600;
}

.contact-form h3 + div,
.contact-form h3 + label { margin-top: 0; }

.contact-form > h3 + label,
.contact-form > div + h3 { margin-top: 2rem; }

.contact-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--color-neutral);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 1rem;
  background: #fff;
  color: var(--color-neutral);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--color-muted);
  opacity: 0.7;
}

.contact-form input:hover,
.contact-form textarea:hover,
.contact-form select:hover {
  border-color: #D6D3D1;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.contact-form input.is-valid {
  border-color: #10B981;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310B981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}

.contact-form input.is-loading {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230F766E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-6.2-8.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  padding-right: 2.5rem;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.contact-form textarea { min-height: 130px; resize: vertical; line-height: 1.6; }

.contact-form .form-row {
  display: grid;
  gap: 1rem;
}

.contact-form .form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.contact-form .form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.contact-form .form-row.cp-ville { grid-template-columns: 130px 1fr; }

@media (max-width: 540px) {
  .contact-form { padding: 1.75rem 1.25rem; }
  .contact-form .form-row.cols-2,
  .contact-form .form-row.cols-3,
  .contact-form .form-row.cp-ville { grid-template-columns: 1fr; }
}

.contact-form .help {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin: -0.5rem 0 1rem;
  line-height: 1.4;
}

.contact-form .checkbox-row {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 0.5rem 0 1.5rem;
  cursor: pointer;
  padding: 0.85rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}

.contact-form .checkbox-row:hover { background: #EAE8E5; }

.contact-form .checkbox-row input[type="checkbox"] {
  width: auto;
  margin: 0.2rem 0 0;
  flex-shrink: 0;
  accent-color: var(--color-primary);
}

.contact-form .checkbox-row span {
  font-size: 0.88rem;
  color: var(--color-neutral-soft);
  line-height: 1.55;
}

.contact-form .btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
  position: relative;
  transition: all 0.18s ease, transform 0.06s ease;
}

.contact-form .btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.contact-form .btn:active:not(:disabled) { transform: translateY(0); }

.contact-form .btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.contact-form .btn .spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  margin-right: 0.6rem;
  animation: spin 0.8s linear infinite;
}

.contact-form .btn.is-submitting .spinner { display: inline-block; }
.contact-form .btn.is-submitting .label-default { display: none; }

.contact-form .reassure {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.contact-form .reassure-item {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.contact-form .reassure-item strong {
  display: block;
  color: var(--color-primary);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.contact-form .error-box {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

.contact-form .error-box strong { display: block; margin-bottom: 0.4rem; }
.contact-form .error-box ul { margin: 0; padding-left: 1.25rem; font-size: 0.92rem; }
.contact-form .error-box li { margin-bottom: 0.2rem; }

/* ===== Footer ===== */
.site-footer {
  background: var(--color-neutral);
  color: rgba(255,255,255,0.75);
  padding: 3rem 0 2rem;
  margin-top: 5rem;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.site-footer a:hover { color: var(--color-accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .site-header nav ul { gap: 1rem; }
  .site-header nav a:not(.btn-nav) { display: none; }
  .hero { padding: 3.5rem 0 2.5rem; }
  section { padding: 3rem 0; }
  .contact-form { padding: 1.75rem 1.25rem; }
}
