/* =========================================================
   ATAWLA — style.css v2 — Design premium
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@900&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

/* ----- Variables ----- */
:root {
  --color-noir:        #101820;
  --color-blanc:       #FFFEF9;
  --color-rouge:       #AE0609;
  --color-rose:        #F3B2DB;
  --color-vert:        #00AE8D;
  --color-vert-light:  rgba(0, 174, 141, 0.12);
  --color-vert-mid:    rgba(0, 174, 141, 0.25);
  --color-texte:       #101820;
  --color-texte-light: #101820;
  --color-border:      rgba(16, 24, 32, 0.12);

  --font-titre: 'Unbounded', sans-serif;
  --font-corps:  'DM Sans', sans-serif;

  --fs-hero:  clamp(2.8rem, 7vw, 6.5rem);
  --fs-h2:    clamp(1.8rem, 4vw, 3.2rem);
  --fs-h3:    clamp(1.05rem, 2vw, 1.35rem);
  --fs-body:  clamp(0.9375rem, 1.4vw, 1.05rem);
  --fs-small: 0.875rem;
  --fs-xs:    0.875rem;

  --section-pad: clamp(5rem, 10vw, 10rem);
  --container:   1320px;
  --radius-lg:   0px;
  --radius-xl:   0px;
  --radius-pill: 16px;

  --shadow-sm: 0 2px 12px rgba(16, 24, 32, 0.06);
  --shadow-md: 0 8px 32px rgba(16, 24, 32, 0.10);
  --shadow-lg: 0 24px 64px rgba(16, 24, 32, 0.14);

  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

body {
  font-family: var(--font-corps);
  font-size: var(--fs-body);
  color: var(--color-texte);
  background-color: var(--color-blanc);
  background-image:
    linear-gradient(var(--color-vert-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-vert-light) 1px, transparent 1px);
  background-size: 48px 48px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ----- Accessibilité ----- */
.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--color-vert); color: var(--color-blanc);
  padding: 0.5rem 1.25rem; border-radius: var(--radius-pill);
  font-weight: 500; z-index: 9999; transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--color-vert); outline-offset: 4px; border-radius: 4px; }

/* ----- Container ----- */
.container { width: min(var(--container), 100% - 2rem); margin-inline: auto; }

/* ----- Surtitre ----- */
.surtitre {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-corps);
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-vert);
  margin-bottom: 1.25rem;
}

/* ----- Titres ----- */
h1, h2, h3 { font-family: var(--font-titre); font-weight: 900; text-transform: none; line-height: 1.1; letter-spacing: -0.04em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

/* ----- Boutons ----- */
.btn-primary,
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--color-rose); color: var(--color-noir);
  border: 2px solid var(--color-noir); border-radius: var(--radius-pill);
  font-family: var(--font-corps); font-weight: 500; font-size: var(--fs-body);
  padding: 14px 32px; white-space: nowrap;
  box-shadow: 4px 4px 0 var(--color-noir);
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover,
.btn-outline:hover { transform: translateY(-2px); box-shadow: 6px 6px 0 var(--color-noir); }
.btn-primary:active,
.btn-outline:active { transform: translateY(1px); box-shadow: 2px 2px 0 var(--color-noir); }

.btn-outline--white {
  background: var(--color-rose); color: var(--color-noir);
  border-color: var(--color-noir);
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.nav.scrolled { border-color: var(--color-border); box-shadow: var(--shadow-sm); }

.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 2rem;
}

.nav__logo { display: flex; align-items: center; flex-shrink: 0; }
.nav__logo svg, .nav__logo img { height: 40px; width: auto; }

.nav__links { display: flex; gap: 2.5rem; align-items: center; }
.nav__links a {
  font-size: var(--fs-small); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--color-texte); transition: color var(--transition);
  position: relative; padding-bottom: 2px;
}
.nav__links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1.5px; background: var(--color-vert);
  transition: width var(--transition);
}
.nav__links a:hover { color: var(--color-vert); }
.nav__links a:hover::after { width: 100%; }

.nav__hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 44px; height: 44px; padding: 10px;
  border-radius: 10px; transition: background var(--transition);
}
.nav__hamburger:hover { background: var(--color-vert-light); }
.nav__hamburger span {
  display: block; width: 100%; height: 1.5px;
  background: var(--color-noir); border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav__mobile {
  display: none; position: fixed; inset: 0; z-index: 201;
  background: var(--color-vert); flex-direction: column;
  align-items: center; justify-content: center; gap: 2.5rem;
  padding-top: 72px;
}
.nav__mobile.is-open { display: flex; }
.nav__mobile a {
  font-family: var(--font-titre); font-size: clamp(1.8rem, 6vw, 3rem);
  color: var(--color-blanc); text-transform: uppercase;
  transition: color var(--transition);
}
.nav__mobile a:hover { color: var(--color-noir); }
.nav__mobile-close {
  position: absolute; top: 1.5rem; right: 1.5rem; color: var(--color-blanc);
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; border-radius: 50%; transition: background var(--transition);
  background: transparent; border: none; cursor: pointer;
}
.nav__mobile-close:hover { background: rgba(255,255,255,0.2); }

/* Nav verte quand menu ouvert */
.nav.menu-open { background: var(--color-vert); }
.nav.menu-open .nav__logo img { filter: brightness(0) invert(1); }
.nav.menu-open .nav__hamburger span { background: var(--color-blanc); }

/* =========================================================
   CTA MOBILE FIXE (bas de page)
   ========================================================= */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 1.25rem;
  left: 1rem;
  right: 1rem;
  width: calc(100% - 2rem);
  z-index: 200;
  justify-content: center;
  text-align: center;
  transition: opacity var(--transition);
}
.mobile-cta.is-hidden { opacity: 0; pointer-events: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero { background: transparent; position: relative; }

.hero__image-wrapper {
  position: relative; width: 100%; aspect-ratio: 16 / 6;
  overflow: hidden; background: var(--color-noir);
}
.hero__image-wrapper img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 8s ease;
}
.hero__image-wrapper:hover img { transform: scale(1.03); }

.yalla-parallax {
  position: absolute;
  bottom: 28%;
  right: clamp(1.5rem, 5vw, 5rem);
  width: 80px;
  height: 80px;
  z-index: 2;
  pointer-events: none;
  will-change: transform;
}

.hero__content { padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3rem); }

.hero__eyebrow {
  font-family: var(--font-corps); font-size: var(--fs-xs);
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--color-texte-light); margin-bottom: 1.25rem;
}

.hero__title {
  font-size: var(--fs-hero); max-width: 20ch; line-height: 1.0;
}

.hero__title em {
  font-style: normal; color: var(--color-vert);
}

/* =========================================================
   INTRO
   ========================================================= */
.intro { padding: var(--section-pad) 0; }

.intro__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem); align-items: center;
}

.intro__text h2 { margin-bottom: 1.5rem; }
.intro__text p { color: var(--color-texte-light); margin-bottom: 1.5rem; max-width: 46ch; line-height: 1.8; }
.intro__text p:last-of-type { margin-bottom: 2.5rem; }

.intro__stats {
  display: flex; gap: 0; margin-bottom: 2.75rem;
  border: 1.5px solid var(--color-border); border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat {
  flex: 1; padding: 1.25rem 1rem; text-align: center;
  border-right: 1.5px solid var(--color-border);
  transition: background var(--transition);
}
.stat:last-child { border-right: none; }
.stat:hover { background: var(--color-vert-light); }
.stat__value {
  display: block; font-family: var(--font-titre);
  font-weight: 900; font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--color-noir); line-height: 1; margin-bottom: 0.35rem;
}
.stat__label {
  font-size: var(--fs-xs); color: var(--color-texte-light);
  text-transform: uppercase; letter-spacing: 0.08em; line-height: 1.4;
}

.intro__image { position: relative; }
.intro__image::before {
  content: ''; position: absolute;
  top: -12px; left: 12px; right: 0; bottom: 12px;
  border: 1.5px solid var(--color-vert);
  border-radius: var(--radius-xl); z-index: 0;
  opacity: 0.4;
}
.intro__image img {
  position: relative; z-index: 1;
  border-radius: var(--radius-xl);
  width: 100%; height: clamp(360px, 48vw, 560px); object-fit: cover;
  transition: transform var(--transition);
}
.intro__image:hover img { transform: scale(1.01); }

/* =========================================================
   SERVICES (fond vert)
   ========================================================= */
.services {
  padding: var(--section-pad) 0;
  background: var(--color-vert); background-image: none;
}
.services__header { text-align: center; margin-bottom: clamp(3rem, 6vw, 5rem); }
.services__header .surtitre { color: rgba(255,255,255,0.6); }
.services__header .surtitre::before { background: rgba(255,255,255,0.4); }
.services__header h2 { color: var(--color-blanc); }

.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }

.service-card {
  text-align: center; color: var(--color-blanc);
  padding: 2.5rem 1.5rem;
  transition: background var(--transition);
}
.service-card:hover { background: rgba(255,255,255,0.08); }

.service-card__icon {
  width: 64px; height: 64px;
  margin: 0 auto 1.5rem;
  transition: transform var(--transition);
}
.service-card:hover .service-card__icon { transform: translateY(-4px); }
.service-card__icon img { width: 64px; height: 64px; display: block; }

.service-card h3 { color: var(--color-blanc); margin-bottom: 0.75rem; font-size: var(--fs-h3); }
.service-card p { font-size: var(--fs-small); color: rgba(255,255,255,0.9); line-height: 1.7; }

/* =========================================================
   FORMULES
   ========================================================= */
.formules { padding: var(--section-pad) 0; }
.formules__header { text-align: center; margin-bottom: clamp(3rem, 6vw, 5rem); }
.formules__header h2 { margin-bottom: 1rem; }
.formules__header p { color: var(--color-texte-light); max-width: 56ch; margin-inline: auto; line-height: 1.8; }

.formules__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 3.5rem; }

.card-formule {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  aspect-ratio: 3 / 4; cursor: pointer;
  background: var(--color-noir);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.card-formule:hover { transform: translateY(-8px); }
.card-formule::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(16,24,32,0.92) 0%, rgba(16,24,32,0.2) 50%, transparent 100%);
}
.card-formule img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s ease;
}
.card-formule:hover img { transform: scale(1.06); }

.card-formule__label {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 2rem 1.5rem 1.5rem;
  color: var(--color-blanc); font-family: var(--font-titre);
  text-transform: uppercase; text-align: center;
}
.card-formule__tag {
  display: block; font-size: var(--fs-xs); letter-spacing: 0.2em;
  opacity: 0.6; margin-bottom: 0.5rem;
}
.card-formule__name { display: block; font-size: clamp(1.4rem, 2.5vw, 1.8rem); font-weight: 700; }
.card-formule__sep {
  display: block; width: 32px; height: 1.5px;
  background: var(--color-rose); margin: 0.75rem auto;
}
.card-formule__sublabel {
  display: block; font-family: var(--font-corps); font-size: var(--fs-small);
  font-weight: 400; opacity: 0.65; font-style: italic;
}

.formules__cta { text-align: center; }

/* =========================================================
   À PROPOS
   ========================================================= */
.apropos { padding: var(--section-pad) 0; }
.apropos__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem); align-items: center;
}
.apropos__text h2 { margin-bottom: 1.75rem; }
.apropos__text p { color: var(--color-texte-light); margin-bottom: 1.5rem; max-width: 50ch; line-height: 1.8; }
.apropos__text p:last-of-type { margin-bottom: 2.75rem; }

.apropos__image { position: relative; }
.apropos__image::after {
  content: ''; position: absolute;
  bottom: -16px; right: 0;
  width: 55%; height: 55%; z-index: 0;
  background: var(--color-vert-light);
  border-radius: var(--radius-xl);
}
.apropos__image img {
  position: relative; z-index: 1;
  border-radius: var(--radius-xl);
  width: 100%; height: clamp(380px, 50vw, 580px); object-fit: cover;
}

/* =========================================================
   FORMULAIRE DEVIS — WIZARD
   ========================================================= */
.devis {
  padding: var(--section-pad) 0;
}
.devis .container { position: relative; }

.devis__header { text-align: center; margin-bottom: clamp(3rem, 6vw, 5rem); }
.devis__header h2 { margin-bottom: 0.75rem; }
.devis__header p { color: var(--color-texte-light); }

.devis-form {
  background: var(--color-blanc);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 4rem);
  max-width: 680px;
  margin-inline: auto;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* --- Wizard progress --- */
.wizard-progress {
  display: flex; align-items: center;
  margin-bottom: 3rem;
}
.wizard-step {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.5rem; flex-shrink: 0;
}
.wizard-step__num {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-titre); font-weight: 700; font-size: 0.85rem;
  color: var(--color-texte-light); background: var(--color-blanc);
  transition: all var(--transition);
}
.wizard-step__label {
  font-size: var(--fs-xs); text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--color-texte-light);
  transition: color var(--transition);
}
.wizard-step.is-active .wizard-step__num {
  background: var(--color-noir); border-color: var(--color-noir);
  color: var(--color-blanc); box-shadow: 0 0 0 4px var(--color-vert-mid);
}
.wizard-step.is-active .wizard-step__label { color: var(--color-noir); font-weight: 500; }
.wizard-step.is-done .wizard-step__num {
  background: var(--color-vert); border-color: var(--color-vert); color: var(--color-blanc);
}
.wizard-step.is-done .wizard-step__label { color: var(--color-vert); }

.wizard-track {
  flex: 1; height: 1.5px; background: var(--color-border);
  position: relative; margin: 0 0.75rem; margin-bottom: 1.4rem;
}
.wizard-track__fill {
  position: absolute; left: 0; top: 0; height: 100%;
  background: var(--color-vert); width: 0%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Wizard panels --- */
.wizard-panel { display: none; }
.wizard-panel.is-active { display: block; }

.wizard-panel__title {
  font-family: var(--font-titre); font-weight: 900; font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  text-transform: uppercase; margin-bottom: 0.5rem;
}
.wizard-panel__sub {
  font-size: var(--fs-small); color: var(--color-texte-light); margin-bottom: 2rem;
}

.wizard-fields { display: flex; flex-direction: column; gap: 1.25rem; }
.wizard-fields-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

/* --- Champs --- */
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label {
  font-size: var(--fs-xs); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--color-texte-light);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; border: 1.5px solid var(--color-border);
  border-radius: 12px; padding: 14px 16px;
  font-family: var(--font-corps); font-size: var(--fs-body);
  background: var(--color-blanc); color: var(--color-texte);
  transition: border-color var(--transition);
  appearance: none;
}
.form-group input:hover, .form-group select:hover, .form-group textarea:hover {
  border-color: rgba(16, 24, 32, 0.3);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--color-vert);
}
.form-group input.is-error, .form-group select.is-error, .form-group textarea.is-error {
  border-color: var(--color-rouge);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23101820' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px;
}

.field-error { font-size: var(--fs-xs); color: var(--color-rouge); min-height: 1em; }

/* Radio formules */
.formule-radios { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.formule-radio { flex: 1; min-width: 140px; }
.formule-radio input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.formule-radio label {
  display: flex; align-items: center; justify-content: center;
  padding: 14px 16px; border: 1.5px solid var(--color-border); border-radius: var(--radius-pill);
  font-family: var(--font-titre); font-size: var(--fs-small); font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer;
  transition: all var(--transition); text-align: center;
}
.formule-radio label:hover { border-color: var(--color-noir); }
.formule-radio input:checked + label {
  background: var(--color-rose); border-color: var(--color-noir);
  box-shadow: 3px 3px 0 var(--color-noir);
}
.formule-radio input:focus-visible + label { outline: 2px solid var(--color-vert); outline-offset: 3px; }

/* Bouton retour texte vert */
.btn-back {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: none; border: none; box-shadow: none; padding: 0;
  color: var(--color-vert); font-family: var(--font-corps);
  font-weight: 500; font-size: var(--fs-body); cursor: pointer;
  transition: opacity var(--transition);
}
.btn-back:hover { opacity: 0.65; transform: none; box-shadow: none; }
.btn-back svg { flex-shrink: 0; }

/* Autocomplete adresse */
.address-autocomplete { position: relative; }
.address-dropdown {
  position: absolute; top: calc(100% - 0.25rem); left: 0; right: 0; z-index: 50;
  background: var(--color-blanc); border: 1.5px solid var(--color-vert);
  border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow-md); margin-top: 2px;
}
.address-dropdown[hidden] { display: none; }
.address-dropdown li {
  padding: 10px 14px; font-size: var(--fs-small); cursor: pointer;
  border-bottom: 1px solid var(--color-border); list-style: none;
  transition: background var(--transition);
}
.address-dropdown li:last-child { border-bottom: none; }
.address-dropdown li:hover, .address-dropdown li[aria-selected="true"] {
  background: var(--color-vert-light);
}

/* Wizard nav buttons */
.wizard-nav {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin-top: 2.5rem; padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}
.wizard-nav .btn-primary,
.wizard-nav [type="submit"] { position: absolute; right: 0; }
.wizard-nav--end { justify-content: flex-end; }
.wizard-nav--end .btn-primary { position: static; }

/* Succès */
.form-success { display: none; text-align: center; padding: 4rem 2rem; }
.form-success.is-visible { display: block; }
.form-success__icon { font-size: 3.5rem; margin-bottom: 1.25rem; }
.form-success h3 { margin-bottom: 0.75rem; font-size: clamp(1.4rem, 3vw, 2rem); }
.form-success p { color: var(--color-texte-light); max-width: 40ch; margin-inline: auto; }

/* Spinner */
@keyframes spin { to { transform: rotate(360deg); } }
.btn-loading { position: relative; pointer-events: none; opacity: 0.8; }
.btn-loading::after {
  content: ''; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px;
  border: 2px solid rgba(16, 24, 32, 0.25); border-top-color: var(--color-noir);
  border-radius: 50%; animation: spin 0.7s linear infinite;
}

/* =========================================================
   FAQ
   ========================================================= */
.faq { padding: var(--section-pad) 0; }
.faq__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem); align-items: start;
}
.faq__image img {
  border-radius: var(--radius-xl); width: 100%;
  height: clamp(360px, 48vw, 540px); object-fit: cover;
}
.faq__content h2 { margin-bottom: 2.5rem; }

.faq-item {
  border: 1.5px solid var(--color-border); border-radius: var(--radius-lg);
  overflow: hidden; margin-bottom: 0.75rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item:hover { border-color: rgba(16, 24, 32, 0.3); box-shadow: var(--shadow-sm); }
.faq-item.is-open { border-color: var(--color-noir); }

.faq-item__trigger {
  display: flex; align-items: center; gap: 1rem;
  width: 100%; text-align: left; cursor: pointer; padding: 1.25rem 1.5rem;
  transition: background var(--transition);
}
.faq-item__trigger:hover { background: var(--color-vert-light); }

.faq-item__bullet { color: var(--color-rose); font-size: 1rem; flex-shrink: 0; line-height: 1; }
.faq-item__question {
  font-family: var(--font-titre); font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  font-weight: 900; text-transform: uppercase; color: var(--color-texte); flex: 1;
}
.faq-item__arrow {
  flex-shrink: 0; width: 20px; height: 20px;
  stroke: var(--color-texte-light); fill: none; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.35s ease;
}
.faq-item.is-open .faq-item__arrow { transform: rotate(180deg); stroke: var(--color-vert); }

.faq-item__answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  padding: 0 1.5rem;
}
.faq-item__answer.is-open { max-height: 400px; padding: 0 1.5rem 1.25rem; }
.faq-item__answer p { color: var(--color-texte-light); line-height: 1.8; padding-left: 2rem; }
.faq-item__answer a { color: var(--color-vert); border-bottom: 1px solid currentColor; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--color-noir); background-image: none;
  color: var(--color-blanc); padding: 5rem 0 2.5rem;
  border-top: 3px solid var(--color-rouge);
}
.footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3.5rem; margin-bottom: 4rem;
}
.footer__brand-logo { margin-bottom: 1rem; }
.footer__brand-logo svg, .footer__brand-logo img { height: 40px; width: auto; }
.footer__tagline { font-size: var(--fs-small); color: rgba(255,255,255,0.85); margin-bottom: 1.75rem; }

.footer__social { display: flex; gap: 0.75rem; }
.footer__social a {
  width: 42px; height: 42px; border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.footer__social a:hover { border-color: var(--color-rose); background: rgba(243,178,219,0.1); transform: translateY(-2px); }
.footer__social svg { width: 17px; height: 17px; stroke: var(--color-blanc); fill: none; stroke-width: 1.75; }

.footer__nav-title {
  font-family: var(--font-titre); font-size: var(--fs-xs); font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--color-blanc); margin-bottom: 1.5rem;
}
.footer__nav-links { display: flex; flex-direction: column; gap: 0.85rem; }
.footer__nav-links a {
  font-size: var(--fs-small); color: rgba(255,255,255,0.85);
  transition: color var(--transition), padding-left var(--transition);
}
.footer__nav-links a:hover { color: var(--color-blanc); padding-left: 4px; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 2rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.footer__copyright { font-size: var(--fs-xs); color: rgba(255,255,255,0.7); }
.footer__legal a { font-size: var(--fs-xs); color: rgba(255,255,255,0.7); transition: color var(--transition); }
.footer__legal a:hover { color: var(--color-blanc); }

/* =========================================================
   SCROLL REVEAL (base)
   ========================================================= */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal="left"]  { opacity: 0; transform: translateX(-28px); }
[data-reveal="left"].is-visible  { opacity: 1; transform: translateX(0); }
[data-reveal="right"] { opacity: 0; transform: translateX(28px); }
[data-reveal="right"].is-visible { opacity: 1; transform: translateX(0); }
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .fab-devis { display: flex; }
}

@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .nav__inner {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
  }
  .nav__links { display: none; }
  .nav__logo { grid-column: 2; justify-self: center; }
  .nav__actions { grid-column: 3; justify-self: end; }

  .btn-primary, .btn-outline {
    width: 100%;
    justify-content: center;
  }
  .btn-back { width: auto; }

  .mobile-cta {
    display: flex;
    width: calc(100% - 2rem);
    justify-content: center;
  }

  .hero__image-wrapper { aspect-ratio: 4 / 3; margin: 0 1rem; width: calc(100% - 2rem); border-radius: var(--radius-lg); }

  .services { margin: 0 1rem; border-radius: var(--radius-xl); overflow: hidden; }
  .devis { margin: 0 1rem; border-radius: var(--radius-xl); overflow: hidden; }

  .intro__text .btn-outline,
  .formules__cta,
  .apropos__text .btn-outline { display: none; }

  .intro__grid, .apropos__grid, .faq__grid { grid-template-columns: 1fr; }
  .intro__image { order: -1; }
  .intro__image::before { display: none; }
  .apropos__image::after { display: none; }

  .intro__stats { flex-direction: row; }
  .stat { padding: 1rem 0.75rem; }

  .wizard-fields-2col { grid-template-columns: 1fr; }
  .formule-radios { flex-direction: column; }
  .formule-radio { min-width: unset; }

  .formules__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 1.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    grid-template-columns: unset;
    max-width: unset;
    margin-inline: unset;
  }
  .formules__grid::-webkit-scrollbar { display: none; }
  .formules__grid .card-formule {
    flex-shrink: 0;
    width: 74vw;
    scroll-snap-align: start;
  }
  .services__grid { grid-template-columns: repeat(2, 1fr); }

  .footer__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .services__grid { grid-template-columns: 1fr; }
  .intro__stats { flex-direction: column; }
  .stat { border-right: none; border-bottom: 1.5px solid var(--color-border); }
  .stat:last-child { border-bottom: none; }
  .wizard-nav { flex-direction: column-reverse; align-items: stretch; text-align: center; }
  .wizard-nav .btn-primary, .wizard-nav [type="submit"] { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal="left"], [data-reveal="right"] {
    opacity: 1; transform: none; transition: none;
  }
}
