/* =========================================================
   Piscine Pro — Pisciniste à Challans
   Maquette site vitrine · Design premium
   Palette : bleu piscine clair, navy profond, sable, crème
   ========================================================= */

/* ---------- Variables ---------- */
:root {
  --navy:        #0a2e44;   /* bleu nuit profond  */
  --navy-soft:   #143b54;
  --ocean:       #0d6e8c;   /* bleu lagon         */
  --pool:        #2bb7d8;   /* bleu piscine       */
  --aqua:        #6fd6e6;   /* aqua clair         */
  --aqua-pale:   #d6f1f6;   /* brume aqua         */
  --sand:        #e9ddc8;   /* sable              */
  --sand-deep:   #cbb59a;
  --cream:       #faf6ef;   /* crème fond         */
  --cream-2:     #f3ece0;
  --ink:         #11242f;   /* texte             */
  --ink-soft:    #43586280;
  --white:       #ffffff;

  --grad-pool:   linear-gradient(135deg, #2bb7d8 0%, #0d6e8c 55%, #0a2e44 100%);
  --grad-light:  linear-gradient(180deg, #ffffff 0%, #f3ece0 100%);

  --shadow-sm:   0 4px 18px rgba(10, 46, 68, .08);
  --shadow-md:   0 18px 50px rgba(10, 46, 68, .14);
  --shadow-lg:   0 40px 90px rgba(10, 46, 68, .22);

  --radius:      18px;
  --radius-lg:   28px;

  --serif: "Playfair Display", Georgia, serif;
  --sans:  "Inter", "Segoe UI", system-ui, sans-serif;

  --maxw: 1240px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Typo helpers ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; color: var(--navy); }
.eyebrow {
  font-size: .78rem; letter-spacing: .28em; text-transform: uppercase;
  font-weight: 600; color: var(--ocean); display: inline-block; margin-bottom: 1rem;
}
.eyebrow::before { content: "〜 "; opacity: .6; }

.container { width: min(100% - 2.6rem, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.9rem; border-radius: 999px; font-weight: 600;
  font-size: .98rem; letter-spacing: .01em; transition: all .35s var(--ease);
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn-primary { background: var(--grad-pool); color: #fff; box-shadow: 0 12px 30px rgba(13,110,140,.35); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(13,110,140,.45); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.55); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); transform: translateY(-3px); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--ocean); transform: translateY(-3px); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 1.1rem 0; transition: all .4s var(--ease);
}
.site-header.scrolled {
  background: rgba(250,246,239,.85);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: var(--shadow-sm); padding: .7rem 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand .logo-mark {
  width: 42px; height: 42px; border-radius: 12px; background: var(--grad-pool);
  display: grid; place-items: center; box-shadow: var(--shadow-sm); flex: none;
}
.brand .logo-mark svg { width: 24px; height: 24px; }
.brand .logo-text { line-height: 1; }
.brand .logo-text strong { font-family: var(--serif); font-size: 1.35rem; color: var(--white); display: block; letter-spacing: .01em; }
.brand .logo-text span { font-size: .64rem; letter-spacing: .32em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.scrolled .brand .logo-text strong { color: var(--navy); }
.scrolled .brand .logo-text span { color: var(--ocean); }

.nav-links { display: flex; align-items: center; gap: 2.1rem; }
.nav-links a {
  font-size: .94rem; font-weight: 500; color: rgba(255,255,255,.9);
  position: relative; transition: color .3s;
}
.scrolled .nav-links a { color: var(--ink); }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--pool); transition: width .35s var(--ease);
}
.nav-links a:not(.btn):hover::after { width: 100%; }
.nav-links a:not(.btn):hover { color: var(--pool); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 110; }
.nav-toggle span { width: 26px; height: 2px; background: #fff; border-radius: 2px; transition: all .3s; }
.scrolled .nav-toggle span { background: var(--navy); }

/* =========================================================
   HERO — animation 3D au scroll
   ========================================================= */
.hero {
  position: relative;
  height: 560vh;            /* piste de scroll (plus longue = vidéo plus lente, fps inchangés) */
  background: var(--navy);
}
.hero-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: grid; place-items: center;
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(70% 50% at 50% 46%, rgba(10,46,68,.42) 0%, transparent 70%),
    radial-gradient(120% 80% at 50% 12%, transparent 40%, rgba(10,46,68,.5) 100%),
    linear-gradient(180deg, rgba(10,46,68,.4) 0%, transparent 32%, transparent 58%, rgba(10,46,68,.5) 100%);
}
.hero-content {
  position: relative; z-index: 5; text-align: center; color: #fff;
  width: min(100% - 3rem, 900px); padding-bottom: 2rem;
  transition: opacity .6s var(--ease), transform .7s var(--ease), filter .6s var(--ease);
}
/* dès que l'utilisateur scrolle, tout le texte du hero s'efface */
.hero-content.hidden {
  opacity: 0; transform: translateY(-30px) scale(.98); filter: blur(6px); pointer-events: none;
}
.hero-content .eyebrow { color: var(--aqua); }
.hero-content .eyebrow::before { content: ""; }
.hero h1 {
  color: #fff; font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1.04;
  letter-spacing: -.01em; text-shadow: 0 6px 40px rgba(0,0,0,.35);
}
.hero h1 em { font-style: italic; color: var(--aqua); }
.hero-sub {
  margin: 1.4rem auto 2.2rem; max-width: 560px; font-size: 1.12rem;
  color: rgba(255,255,255,.92); text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* indicateur de scroll */
.scroll-hint {
  position: absolute; left: 50%; bottom: 2.2rem; transform: translateX(-50%);
  z-index: 6; color: rgba(255,255,255,.8); text-align: center; font-size: .72rem;
  letter-spacing: .25em; text-transform: uppercase;
  transition: opacity .5s var(--ease);
}
.scroll-hint.hidden { opacity: 0; }
.scroll-hint .mouse {
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 16px;
  margin: 0 auto .7rem; position: relative;
}
.scroll-hint .mouse::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px;
  background: #fff; border-radius: 3px; transform: translateX(-50%);
  animation: wheel 1.6s infinite;
}
@keyframes wheel { 0%{opacity:1;top:8px} 70%{opacity:0;top:20px} 100%{opacity:0} }

/* étapes affichées une à une, au fil de la vidéo */
.hero-steps {
  position: absolute; inset: 0; z-index: 6; display: grid; place-items: center;
  pointer-events: none; text-align: center; padding: 0 1.5rem;
}
.hero-step {
  grid-area: 1 / 1; opacity: 0; transform: translateY(36px) scale(.97); filter: blur(8px);
  transition: opacity .85s var(--ease), transform .85s var(--ease), filter .85s var(--ease);
}
.hero-step.active { opacity: 1; transform: none; filter: blur(0); }
.hero-step .step-no {
  display: block; font-size: .82rem; letter-spacing: .4em; text-transform: uppercase;
  font-weight: 600; color: var(--aqua); margin-bottom: 1rem;
  text-shadow: 0 2px 18px rgba(0,0,0,.4);
}
.hero-step .step-name {
  display: block; font-family: var(--serif); color: #fff;
  font-size: clamp(2.4rem, 6.5vw, 5.4rem); line-height: 1.04;
  text-shadow: 0 6px 44px rgba(0,0,0,.45); letter-spacing: -.01em;
}

/* =========================================================
   BANDE DE CONFIANCE
   ========================================================= */
.trust { background: var(--navy); color: #fff; padding: 2.6rem 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.trust-grid .num { font-family: var(--serif); font-size: clamp(2.2rem,4vw,3rem); color: var(--aqua); line-height: 1; }
.trust-grid .lbl { font-size: .85rem; letter-spacing: .08em; color: rgba(255,255,255,.7); margin-top: .5rem; }
.trust-grid > div { position: relative; }
.trust-grid > div:not(:last-child)::after {
  content:""; position:absolute; right:-1rem; top:50%; transform:translateY(-50%);
  width:1px; height:46px; background:rgba(255,255,255,.15);
}

/* =========================================================
   SECTION TITRES
   ========================================================= */
.section-head { max-width: 640px; margin-bottom: 3.4rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.section-head p { margin-top: 1.1rem; color: #4a5b65; font-size: 1.08rem; }

/* =========================================================
   INTRO / À PROPOS (split)
   ========================================================= */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem,5vw,5rem); align-items: center; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.about-media { position: relative; }
.about-media .ph {
  border-radius: var(--radius-lg); height: 520px; box-shadow: var(--shadow-lg);
}
.about-media .badge-float {
  position: absolute; left: -28px; bottom: 40px; background: #fff; border-radius: var(--radius);
  padding: 1.2rem 1.5rem; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: .9rem;
  max-width: 250px;
}
.about-media .badge-float .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--aqua-pale); display: grid; place-items: center; flex: none; }
.about-media .badge-float .ic svg { width: 24px; height: 24px; stroke: var(--ocean); }
.about-media .badge-float strong { display: block; font-family: var(--serif); color: var(--navy); }
.about-media .badge-float span { font-size: .82rem; color: #5a6b74; }

.about-text h2 { font-size: clamp(1.9rem,3.6vw,2.8rem); }
.about-text p { margin-top: 1.1rem; color: #46565f; }
.about-list { margin-top: 1.8rem; display: grid; gap: 1rem; }
.about-list li { display: flex; gap: .9rem; align-items: flex-start; }
.about-list .tick {
  width: 26px; height: 26px; border-radius: 50%; background: var(--grad-pool); flex: none;
  display: grid; place-items: center; margin-top: 2px;
}
.about-list .tick svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 3; }
.about-list strong { color: var(--navy); }

/* =========================================================
   SERVICES
   ========================================================= */
.services { background: var(--grad-light); position: relative; }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem; }
.service-card {
  background: #fff; border-radius: var(--radius-lg); padding: 2.4rem 2rem;
  box-shadow: var(--shadow-sm); transition: all .45s var(--ease);
  border: 1px solid rgba(13,110,140,.07); position: relative; overflow: hidden;
}
.service-card::before {
  content:""; position:absolute; inset:0 0 auto 0; height:4px; background:var(--grad-pool);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.service-card:hover::before { transform: scaleX(1); }
.service-card .ic {
  width: 62px; height: 62px; border-radius: 16px; background: var(--aqua-pale);
  display: grid; place-items: center; margin-bottom: 1.4rem;
}
.service-card .ic svg { width: 30px; height: 30px; stroke: var(--ocean); fill: none; stroke-width: 1.6; }
.service-card h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.service-card p { color: #51626b; font-size: .98rem; }

/* =========================================================
   RÉALISATIONS — gallery
   ========================================================= */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.2rem; }
.gal-item {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 240px;
  box-shadow: var(--shadow-sm); cursor: pointer;
}
.gal-item .ph { position: absolute; inset: 0; transition: transform .8s var(--ease); }
.gal-item:hover .ph { transform: scale(1.07); }
.gal-item .cap {
  position: absolute; inset: auto 0 0 0; padding: 1.6rem 1.4rem 1.2rem; z-index: 2;
  background: linear-gradient(to top, rgba(10,46,68,.85), transparent);
  color: #fff; transform: translateY(8px); opacity: .92; transition: all .4s var(--ease);
}
.gal-item:hover .cap { transform: translateY(0); opacity: 1; }
.gal-item .cap .tag { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--aqua); }
.gal-item .cap h4 { font-family: var(--serif); color: #fff; font-size: 1.2rem; margin-top: .2rem; }
/* tailles asymétriques */
.gal-item.big   { grid-column: span 6; min-height: 420px; }
.gal-item.tall  { grid-column: span 6; min-height: 420px; }
.gal-item.wide  { grid-column: span 8; }
.gal-item.small { grid-column: span 4; }
.gal-item.third { grid-column: span 4; }

/* =========================================================
   PROCESS / ÉTAPES
   ========================================================= */
.process { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.process::before {
  content:""; position:absolute; inset:0;
  background: radial-gradient(60% 60% at 80% 10%, rgba(43,183,216,.18), transparent 60%);
}
.process .section-head h2 { color: #fff; }
.process .section-head p { color: rgba(255,255,255,.7); }
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.4rem; position: relative; z-index: 2; }
.step {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 2rem 1.6rem; backdrop-filter: blur(4px);
  transition: all .4s var(--ease);
}
.step:hover { background: rgba(255,255,255,.09); transform: translateY(-6px); }
.step .no {
  font-family: var(--serif); font-size: 2.6rem; color: var(--aqua); line-height: 1; opacity: .9;
}
.step h3 { color: #fff; font-size: 1.25rem; margin: .9rem 0 .5rem; }
.step p { color: rgba(255,255,255,.72); font-size: .92rem; }

/* =========================================================
   TÉMOIGNAGES
   ========================================================= */
.testimonials { background: var(--cream-2); }
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem; }
.testi {
  background: #fff; border-radius: var(--radius-lg); padding: 2.2rem;
  box-shadow: var(--shadow-sm); position: relative;
}
.testi .stars { color: #f5b942; letter-spacing: .15em; margin-bottom: 1rem; }
.testi p { font-size: 1.02rem; color: #3d4d56; font-style: italic; }
.testi .who { margin-top: 1.4rem; display: flex; align-items: center; gap: .9rem; }
.testi .who .av {
  width: 46px; height: 46px; border-radius: 50%; background: var(--grad-pool); flex: none;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-family: var(--serif);
}
.testi .who strong { display: block; color: var(--navy); }
.testi .who span { font-size: .84rem; color: #6a7b84; }

/* =========================================================
   CTA BANNER
   ========================================================= */
.cta-banner { position: relative; overflow: hidden; background: var(--grad-pool); color: #fff; text-align: center; }
.cta-banner::after {
  content:""; position:absolute; inset:0; opacity:.18;
  background: radial-gradient(40% 60% at 20% 20%, #fff, transparent 60%),
              radial-gradient(40% 60% at 80% 80%, #fff, transparent 60%);
}
.cta-banner .container { position: relative; z-index: 2; }
.cta-banner h2 { color: #fff; font-size: clamp(2rem,4.5vw,3.4rem); max-width: 760px; margin-inline: auto; }
.cta-banner p { margin: 1.1rem auto 2rem; max-width: 540px; color: rgba(255,255,255,.92); font-size: 1.1rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--navy); color: rgba(255,255,255,.78); padding: 4.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.4rem; }
.footer h4 { color: #fff; font-family: var(--sans); font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 1.2rem; }
.footer .brand .logo-text strong { color:#fff; }
.footer-about p { margin-top: 1.2rem; font-size: .94rem; max-width: 300px; }
.footer ul li { margin-bottom: .7rem; font-size: .94rem; }
.footer ul a:hover { color: var(--aqua); }
.footer .contact-line { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .9rem; font-size: .94rem; }
.footer .contact-line svg { width: 18px; height: 18px; stroke: var(--aqua); flex: none; margin-top: 3px; }
.socials { display: flex; gap: .7rem; margin-top: 1.2rem; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: all .3s; }
.socials a:hover { background: var(--pool); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding-top: 1.6rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .84rem;
}

/* =========================================================
   IMAGE PLACEHOLDERS (jolis dégradés en attendant les photos)
   ========================================================= */
.ph {
  background:
    linear-gradient(135deg, rgba(255,255,255,.18), transparent 40%),
    var(--grad-pool);
  position: relative; overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  color: rgba(255,255,255,.85); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; padding: 1rem;
}
.ph::before {
  content: ""; position: absolute; inset: 0; opacity: .25;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.4), transparent 40%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.06) 0 14px, transparent 14px 28px);
}
.ph.v2 { background: linear-gradient(135deg,#6fd6e6,#0d6e8c); }
.ph.v3 { background: linear-gradient(135deg,#bfe9c4,#0d6e8c); }
.ph.v4 { background: linear-gradient(135deg,#2bb7d8,#0a2e44); }
.ph.v5 { background: linear-gradient(135deg,#e9ddc8,#0d6e8c); }
/* quand une vraie photo est dispo : <div class="ph" style="background-image:URL_DE_LA_PHOTO"> */
.ph[style*="url"] { background-size: cover; background-position: center; background-repeat: no-repeat; }
.ph[style*="url"]::before, .ph[style*="url"]::after { display: none; }

/* photos réelles en <img> : meilleur référencement (alt) + lazy-load natif */
.gal-item .ph-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .8s var(--ease);
}
.gal-item:hover .ph-img { transform: scale(1.07); }
.about-media .about-photo {
  width: 100%; height: 520px; object-fit: cover; display: block;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
@media (max-width: 980px) { .about-media .about-photo { height: 380px; } }

/* =========================================================
   PAGE DEVIS
   ========================================================= */
.page-hero {
  background: var(--navy); color: #fff; padding: 11rem 0 5rem; position: relative; overflow: hidden;
}
.page-hero::before {
  content:""; position:absolute; inset:0; opacity:.5;
  background: radial-gradient(60% 80% at 75% 0%, rgba(43,183,216,.35), transparent 60%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .crumbs { font-size: .82rem; color: rgba(255,255,255,.6); margin-bottom: 1rem; letter-spacing: .05em; }
.page-hero .crumbs a:hover { color: var(--aqua); }
.page-hero h1 { color: #fff; font-size: clamp(2.4rem,5vw,4rem); }
.page-hero p { margin-top: 1.1rem; max-width: 560px; color: rgba(255,255,255,.85); font-size: 1.1rem; }

.devis-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3.5rem; align-items: start; }

.form-card {
  background: #fff; border-radius: var(--radius-lg); padding: clamp(1.8rem,4vw,3rem);
  box-shadow: var(--shadow-md); border: 1px solid rgba(13,110,140,.07);
}
.form-step-label { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ocean); font-weight: 600; margin: 1.8rem 0 1rem; }
.form-step-label:first-child { margin-top: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { margin-bottom: 1.1rem; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--navy); margin-bottom: .45rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border: 1.5px solid #dfe6ea; border-radius: 12px;
  font-family: inherit; font-size: .96rem; color: var(--ink); background: #fbfdfe;
  transition: all .3s; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--pool); background: #fff; box-shadow: 0 0 0 4px rgba(43,183,216,.13);
}
.field textarea { resize: vertical; min-height: 120px; }

/* choix de type (cards radio) */
.choice-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .8rem; }
.choice {
  position: relative; border: 1.5px solid #dfe6ea; border-radius: 14px; padding: 1.1rem .9rem;
  text-align: center; cursor: pointer; transition: all .3s; background: #fbfdfe;
}
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice .ic { width: 38px; height: 38px; margin: 0 auto .5rem; display: grid; place-items: center; }
.choice .ic svg { width: 30px; height: 30px; stroke: var(--ocean); fill: none; stroke-width: 1.5; }
.choice span { font-size: .9rem; font-weight: 600; color: var(--navy); }
.choice:has(input:checked) { border-color: var(--pool); background: var(--aqua-pale); box-shadow: 0 0 0 3px rgba(43,183,216,.15); }
.choice:hover { border-color: var(--pool); }

.form-submit { margin-top: 1.8rem; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.form-note { font-size: .82rem; color: #6a7b84; }

/* aside contact */
.devis-aside { position: sticky; top: 100px; display: grid; gap: 1.4rem; }
.aside-card {
  background: var(--grad-pool); color: #fff; border-radius: var(--radius-lg); padding: 2.2rem;
  box-shadow: var(--shadow-md);
}
.aside-card h3 { color: #fff; font-size: 1.4rem; margin-bottom: 1.2rem; }
.aside-card .contact-line { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1.1rem; }
.aside-card .contact-line svg { width: 20px; height: 20px; stroke: #fff; flex: none; margin-top: 2px; }
.aside-card .contact-line strong { display: block; }
.aside-card .contact-line span { font-size: .88rem; color: rgba(255,255,255,.82); }
.aside-soft {
  background: #fff; border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(13,110,140,.07);
}
.aside-soft h4 { font-family: var(--serif); color: var(--navy); font-size: 1.2rem; margin-bottom: .8rem; }
.aside-soft ul { display: grid; gap: .7rem; }
.aside-soft li { display: flex; gap: .7rem; font-size: .92rem; color: #46565f; }
.aside-soft .tick { width: 22px; height: 22px; border-radius: 50%; background: var(--aqua-pale); display: grid; place-items: center; flex: none; }
.aside-soft .tick svg { width: 12px; height: 12px; stroke: var(--ocean); stroke-width: 3; }

/* message succès */
.form-success {
  display: none; text-align: center; padding: 2rem 1rem;
}
.form-success.show { display: block; animation: fadein .5s var(--ease); }
.form-success .ok {
  width: 80px; height: 80px; border-radius: 50%; background: var(--aqua-pale); margin: 0 auto 1.4rem;
  display: grid; place-items: center;
}
.form-success .ok svg { width: 40px; height: 40px; stroke: var(--ocean); stroke-width: 2.5; }
.form-success h3 { font-size: 1.8rem; margin-bottom: .6rem; }
.form-success p { color: #51626b; }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(34px); transition: all .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
@keyframes fadein { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:none} }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 340px);
    background: var(--navy); flex-direction: column; justify-content: center;
    gap: 1.8rem; transform: translateX(100%); transition: transform .45s var(--ease);
    box-shadow: -20px 0 60px rgba(0,0,0,.3); padding: 2rem;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a, .scrolled .nav-links a { color: #fff; font-size: 1.1rem; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); background:#fff; }
  .nav-toggle.open span:nth-child(2){ opacity: 0; }
  .nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); background:#fff; }

  .split, .devis-layout { grid-template-columns: 1fr; }
  .split.reverse { direction: ltr; }
  .about-media { order: -1; }
  .about-media .ph { height: 380px; }
  .services-grid, .testi-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 2.4rem; }
  .trust-grid > div::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .devis-aside { position: static; }
  .gal-item.big,.gal-item.tall,.gal-item.wide,.gal-item.small,.gal-item.third { grid-column: span 12; min-height: 280px; }
}
@media (max-width: 620px) {
  .services-grid, .testi-grid, .steps, .trust-grid, .footer-grid,
  .field-row, .choice-grid { grid-template-columns: 1fr; }
  .hero { height: 480vh; }
  .btn { width: 100%; justify-content: center; }
  .hero-cta { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
