
:root{
  color-scheme: light;
  --brand:#43A06B; --brand2:#2FB06D;
  --ink:#0B1320; --text:#111827; --muted:#6B7280;
  --bg:#ffffff; --alt:#F8FAFC; --line:#E5E7EB;
  --r:14px; --r-lg:22px;
  --space: clamp(16px,2.4vw,28px);
  --space-lg: clamp(28px,3.4vw,48px);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Arial, sans-serif;color:var(--text); background:var(--bg); line-height:1.65; scroll-behavior:smooth; overflow-x:hidden}
.container{max-width:1180px;margin:0 auto;padding:0 var(--space)}
a{color:#0f172a;text-decoration-color:#93c5fd}
a:hover{text-decoration-color:#3b82f6}

/* Header */
header.site{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.9);backdrop-filter:saturate(1.2) blur(10px);border-bottom:1px solid var(--line)}
header .inner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0 12px 0}
nav.primary{position:static;left:auto;transform:none}
nav.primary ul{display:flex;gap:10px;list-style:none;margin:0;padding:0}
nav.primary a{text-decoration:none;padding:10px 12px;border-radius:10px}
nav.primary a[aria-current="page"], nav.primary a:hover{background:#EEF2F7}
nav.primary li{position:relative}
nav.primary .submenu{position:absolute;left:0;top:100%;background:#fff;border:1px solid var(--line);border-radius:12px;padding:6px;list-style:none;margin:0;min-width:260px;box-shadow:0 12px 28px rgba(2,6,23,.08);display:none}
nav.primary .submenu li{display:block}
nav.primary .submenu a{display:block;padding:10px 12px;border-radius:8px}
nav.primary li:hover > .submenu, nav.primary li:focus-within > .submenu, nav.primary .submenu:hover{display:block}
nav.primary li.has-submenu > a{pointer-events:none;cursor:default}

/* Mobile nav submenu (click to open) */
@media (max-width:920px){
  header .inner{flex-wrap:wrap}
  nav.primary{width:100%}
  nav.primary ul{flex-wrap:wrap}
  nav.primary a{padding:8px 10px}
  nav.primary li.has-submenu > a{pointer-events:auto;cursor:pointer}
  nav.primary li.open > .submenu{display:block}
}

/* Hamburger button */
.menu-toggle{display:none;appearance:none;border:0;background:transparent;padding:8px;border-radius:10px;line-height:0}
.menu-toggle:focus{outline:2px solid #93e1b6;outline-offset:2px}
.menu-toggle .bar{display:block;width:24px;height:2px;background:#0b1320;border-radius:2px;transition:transform .25s ease, opacity .25s ease}
.menu-toggle .bar + .bar{margin-top:5px}

/* Drawer overlay and panel */
.drawer-overlay{position:fixed;inset:0;background:rgba(0,0,0,.6);opacity:0;pointer-events:none;transition:opacity .25s ease;z-index:80}
.drawer{position:fixed;top:0;right:0;height:100dvh;width:min(88vw,380px);max-width:100%;background:#ffffff;border-left:1px solid var(--line);transform:translateX(100%);transition:transform .25s ease;z-index:90;display:flex;flex-direction:column}
.drawer header{display:flex;align-items:center;justify-content:space-between;padding:14px var(--space);border-bottom:1px solid var(--line)}
.drawer .close{appearance:none;border:0;background:transparent;padding:8px;border-radius:10px;line-height:0}
.drawer nav{padding:16px var(--space) 24px}
.drawer nav ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.drawer nav a{display:block;padding:12px 6px;font-size:18px;text-decoration:none;color:var(--ink);border-radius:10px}
.drawer nav a:hover{background:#EEF2F7}

/* Drawer submenu */
.drawer .has-sub{display:flex;align-items:center;justify-content:space-between;padding:12px 6px;border-radius:10px;cursor:pointer}
.drawer .has-sub:hover{background:#EEF2F7}
.drawer .chevron{width:18px;height:18px;display:inline-block;transition:transform .2s ease}
.drawer details{border:0}
.drawer details[open] .chevron{transform:rotate(180deg)}
.drawer .submenu{margin:2px 0 0 0;padding:6px 0 0 10px;display:grid;gap:8px}
.drawer .submenu a{padding:10px 6px;font-size:17px}

/* Open state */
.nav-open .drawer{transform:translateX(0)}
.nav-open .drawer-overlay{opacity:1;pointer-events:auto}
.nav-open, .nav-open body{overflow:hidden}

/* Responsive visibility: show hamburger on mobile, keep desktop nav */
@media (max-width:920px){
  .menu-toggle{display:inline-block}
  nav.primary{display:none}
}
@media (min-width:921px){
  .drawer, .drawer-overlay{display:none}
}

/* Logo */
.logo img{height:56px;width:auto;display:block}

/* Hero */
.hero{position:relative; overflow:hidden;
  background: radial-gradient(1200px 600px at 120% -20%, #E6FFF1 0%, transparent 60%),
              radial-gradient(1000px 500px at -20% 120%, #F1FFF7 0%, transparent 60%);}
.hero .wrap{display:grid;grid-template-columns:1.1fr .9fr;gap:var(--space-lg);align-items:center;padding:calc(var(--space-lg)*1.2) 0}
.badge{display:inline-flex;gap:8px;align-items:center;background:linear-gradient(135deg,var(--brand),var(--brand2));color:#06271f;padding:6px 12px;border-radius:999px;font-weight:800;font-size:.9rem;box-shadow:0 8px 22px rgba(67,160,107,.25)}
.badge .dot{width:8px;height:8px;border-radius:50%;background:#06271f;opacity:.7}
h1{font-family:Oswald, Inter, sans-serif;font-weight:800;font-size:clamp(32px,5.2vw,56px);line-height:1.05;margin:10px 0 8px;letter-spacing:-.02em;color:var(--ink)}
h2{font-family:Oswald, Inter, sans-serif;font-weight:700;font-size:clamp(22px,4vw,36px);margin:0 0 8px;color:var(--ink)}
h3{font-weight:700;margin:6px 0 6px;color:var(--ink)}
p.lead{font-size:1.15rem;color:#374151;max-width:62ch}
.btn{display:inline-block;padding:12px 18px;border-radius:12px;font-weight:800;text-decoration:none;transition:transform .06s ease, opacity .2s}
.btn:active{transform:translateY(1px)}
.btn-primary{background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff;box-shadow:0 12px 28px rgba(67,160,107,.28)}
.btn-ghost{border:1px solid var(--line);color:var(--ink);background:#fff}
.hero img{width:100%;height:auto;border-radius:20px;border:1px solid var(--line);box-shadow:0 18px 36px rgba(2,6,23,.10)}

/* Trust strip */
.trust{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:14px}
.trust .pill{display:flex;gap:10px;align-items:center;justify-content:center;border:1px dashed #CDE9D6;background:#F4FBF7;border-radius:999px;padding:10px;font-weight:700;color:#0d3b2a}

/* Sections */
.section{padding:calc(var(--space-lg)*1.1) 0}
.section--alt{background:var(--alt)}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space)}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:var(--space)}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:var(--space);box-shadow:0 12px 28px rgba(2,6,23,.06)}
.tile{position:relative;display:block;height:220px;border-radius:var(--r-lg);overflow:hidden;border:1px solid var(--line);box-shadow:0 16px 32px rgba(2,6,23,.10);background:#eef2f7}
.tile .bg{position:absolute;inset:0;background-size:cover;background-position:center;transform:scale(1);transition:transform .4s ease}
.tile::after{content:"";position:absolute;inset:0;background:linear-gradient(to top, rgba(15,23,42,.8), rgba(15,23,42,.0) 60%)}
.tile .content{position:absolute;left:16px;right:16px;bottom:16px;color:#fff;z-index:1}
.tile .title{font-weight:800;font-size:1.2rem;margin:0}
.tile .subtitle{margin:4px 0 0;opacity:.95}
.tile:hover .bg{transform:scale(1.05)}
.list{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.list li{display:flex;gap:10px;align-items:flex-start}
.list .tick{margin-top:6px;width:18px;height:18px;border-radius:50%;background:linear-gradient(135deg,var(--brand),var(--brand2))}
.process{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space)}
.step{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:var(--space)}
.step .count{width:28px;height:28px;border-radius:50%;background:linear-gradient(135deg,var(--brand),var(--brand2));display:inline-grid;place-items:center;color:#06271f;font-weight:900;margin-bottom:8px}

/* Footer */
footer.site{margin-top:48px;padding:28px 0;border-top:1px solid var(--line);color:#64748b}
footer .cta{display:flex;gap:12px;flex-wrap:wrap;align-items:center;justify-content:space-between;margin-bottom:16px}
footer .seo{font-size:.85rem;color:#6b7280}

/* Forms */
select{min-height:48px;font-size:1rem;line-height:1.4}
input,textarea,select{width:100%;padding:12px 14px;border-radius:12px;border:1px solid #e2e8f0;background:#fff;color:#0b1320;outline:none}
input:focus,textarea:focus,select:focus{box-shadow:0 0 0 3px rgba(67,160,107,.25);border-color:#93e1b6}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
form .actions{display:flex;gap:10px;margin-top:8px;flex-wrap:wrap}

/* Responsive */
@media (max-width:920px){
  .hero .wrap{grid-template-columns:1fr}
  .grid-3{grid-template-columns:1fr}
  .grid-2{grid-template-columns:1fr}
  .process{grid-template-columns:1fr}
  .trust{grid-template-columns:1fr}
  .logo img{height:40px}
  /* Avoid excessive cropping of tiles on mobile */
  .tile{height:180px}
  .tile .bg{background-size:contain;background-position:center}
}

.optional-note{color:var(--muted);font-size:.9em;font-weight:400}

.required-star{color:#ef4444;font-weight:700;margin-left:2px}

.form-legal{margin-top:10px;font-size:.8rem;color:#6b7280;text-align:center}

.form-success-overlay{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(15,23,42,.55);
  z-index:120;
  font-weight:600;
  font-size:1.05rem;
  padding:16px;
  color:transparent; /* on masque le texte interne pour ne garder que le pseudo-élément */
}
.form-success-overlay[hidden]{display:none}
.form-success-overlay::before{
  content:"Merci ! Votre message a bien été envoyé.";
  background:#f0fdf4;
  border:1px solid #bbf7d0;
  border-radius:999px;
  padding:12px 22px;
  box-shadow:0 18px 40px rgba(15,23,42,.35);
  color:#166534;
  text-align:center;
  max-width:min(90vw,420px);
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.faq{margin-top:18px;background:#f3f4f6;border-radius:22px;padding:18px 20px;box-shadow:0 14px 34px rgba(15,23,42,.08);border:1px solid #e5e7eb}
.faq details{border-bottom:1px solid #e5e7eb;padding:12px 4px}
.faq details:last-of-type{border-bottom:none}
.faq summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;font-weight:600;color:#111827}
.faq summary::-webkit-details-marker{display:none}
.faq summary::marker{display:none}
.faq summary::after{content:"›";font-size:1.1rem;color:#9ca3af;flex-shrink:0;transition:transform .18s ease;color:#9ca3af}
.faq details[open] summary::after{transform:translateX(2px)}
.faq p{margin:8px 0 0;font-size:.95rem;color:#4b5563}
.faq .list{margin-top:6px}
