/* AquaGest — site de présentation */

@font-face { font-family: 'Manrope'; src: url('../fonts/manrope.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('../fonts/plex-mono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --blue-50: #eef4fd; --blue-100: #d8e6fb; --blue-200: #b3cdf6; --blue-300: #7fa9ee; --blue-400: #3f81e3;
  --blue-500: #1567d3; --blue-600: #0f54b0; --blue-700: #0b4188; --blue-800: #0a3266; --blue-900: #082649;
  --cyan: #4fb6e8; --cyan-soft: #e2f3fc; --cyan-logo: #6cc4f0;
  --bg: #f3f6fb; --surface: #fff; --surface-3: #f5f8fc;
  --border: #e5ebf3; --border-strong: #d3dce8;
  --ink: #15202e; --ink-2: #586a80; --ink-3: #8595a8;
  --success: #15784b; --success-bg: #e6f4ec; --warning: #c9772a; --warning-bg: #fbf0e1;
  --r: 12px; --r-lg: 16px; --r-xl: 22px; --pill: 999px;
  --sh-sm: 0 1px 3px rgba(13,52,104,.08), 0 1px 2px rgba(13,52,104,.04);
  --sh: 0 4px 14px rgba(13,52,104,.08), 0 1px 3px rgba(13,52,104,.05);
  --sh-lg: 0 24px 60px rgba(4,20,48,.28), 0 6px 16px rgba(4,20,48,.16);
  --sh-blue: 0 6px 18px rgba(21,103,211,.28);
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2,.7,.3,1);
  --largeur: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-500); }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.conteneur { max-width: var(--largeur); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: var(--r); font: 700 15px var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s var(--ease), background .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.btn-primaire { background: var(--blue-500); color: #fff; box-shadow: var(--sh-blue); }
.btn-primaire:hover { background: var(--blue-600); }
.btn-clair { background: #fff; color: var(--blue-700); }
.btn-clair:hover { background: var(--blue-50); }
.btn-contour { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-contour:hover { background: rgba(255,255,255,.16); }
.btn-petit { height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.logo .mk { width: 36px; height: 36px; border-radius: 24%; background: linear-gradient(135deg, #2b84ef, #0f4fa8); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(15,79,168,.35); }
.logo .mk .ic { width: 22px; height: 22px; stroke: #fff; stroke-width: 2.3; }
.logo .gest { color: var(--blue-500); }

/* ---------- En-tête ---------- */
.entete { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .2s, box-shadow .2s, color .2s; color: #fff; }
.entete .conteneur { display: flex; align-items: center; gap: 28px; height: 72px; }
.entete .logo .gest { color: var(--cyan-logo); }
.entete nav { display: flex; gap: 26px; margin-left: auto; }
.entete nav a { color: inherit; text-decoration: none; font-weight: 600; font-size: 14.5px; opacity: .88; }
.entete nav a:hover { opacity: 1; }
.entete.colle { background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--ink); box-shadow: 0 1px 0 var(--border); }
.entete.colle .logo .gest { color: var(--blue-500); }
.entete.colle .btn-contour { color: var(--blue-700); border-color: var(--border-strong); background: #fff; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; }
.menu-btn .ic { width: 26px; height: 26px; }

/* ---------- Héros ---------- */
.heros { position: relative; overflow: hidden; color: #fff; background: linear-gradient(160deg, var(--blue-600) 0%, var(--blue-800) 58%, var(--blue-900) 100%); padding: 150px 0 0; }
.heros .vagues { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; pointer-events: none; }
.heros .conteneur { position: relative; z-index: 2; }
.heros-texte { max-width: 760px; margin: 0 auto; text-align: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--pill); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); font-size: 13px; font-weight: 600; color: var(--blue-100); }
.badge .point { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-logo); }
.heros h1 { font-size: clamp(36px, 5.6vw, 60px); line-height: 1.05; font-weight: 800; margin-top: 22px; }
.heros h1 em { font-style: normal; color: var(--cyan-logo); }
.heros-texte > p { font-size: clamp(16px, 1.8vw, 19px); color: var(--blue-100); margin: 22px auto 0; max-width: 600px; }
.heros .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.heros .rassurance { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 22px; font-size: 13.5px; color: var(--blue-200); }
.heros .rassurance span { display: inline-flex; align-items: center; gap: 6px; }
.heros .rassurance .ic { width: 16px; height: 16px; color: var(--cyan-logo); }

.vitrine { position: relative; margin: 64px auto 0; max-width: 1040px; }
.ecran { background: #fff; border-radius: 14px 14px 0 0; padding: 10px 10px 0; box-shadow: var(--sh-lg); }
.ecran .barre { display: flex; gap: 6px; padding: 2px 4px 10px; }
.ecran .barre i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.ecran img { border-radius: 8px 8px 0 0; border: 1px solid var(--border); border-bottom: 0; }
.telephone { position: absolute; right: -28px; bottom: -40px; width: 230px; background: #0b1524; border-radius: 34px; padding: 9px; box-shadow: var(--sh-lg); }
.telephone img { border-radius: 26px; }

/* ---------- Sections ---------- */
section { padding: 110px 0; }
.chapeau { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.surtitre { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-500); margin-bottom: 12px; }
.chapeau h2, .bloc h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; font-weight: 800; }
.chapeau p { color: var(--ink-2); font-size: 17px; margin-top: 16px; }

.metiers { padding: 96px 0 34px; background: var(--surface); }
.metiers ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.metiers li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--pill); background: var(--surface-3); border: 1px solid var(--border); font-weight: 700; font-size: 14.5px; color: var(--ink-2); }
.metiers li .ic { width: 17px; height: 17px; color: var(--blue-500); }

/* Grille de fonctionnalités */
.fonctions { background: var(--surface); padding-top: 70px; }
.grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.carte { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--sh-sm); transition: transform .2s var(--ease), box-shadow .2s; }
.carte:hover { transform: translateY(-3px); box-shadow: var(--sh); }
.carte .pastille { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-500); margin-bottom: 18px; }
.carte .pastille .ic { width: 23px; height: 23px; }
.carte h3 { font-size: 18px; font-weight: 800; }
.carte p { color: var(--ink-2); font-size: 15px; margin-top: 8px; }

/* Blocs alternés texte + capture */
.bloc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 64px; align-items: center; }
.bloc + .bloc { margin-top: 110px; }
.bloc.inverse .bloc-texte { order: 2; }
.bloc-texte p { color: var(--ink-2); font-size: 16.5px; margin-top: 16px; }
.liste { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.liste li { display: flex; gap: 12px; font-size: 15.5px; color: var(--ink); font-weight: 500; }
.liste li .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--success-bg); color: var(--success); stroke-width: 3; margin-top: 1px; }
.capture { border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--border); box-shadow: var(--sh-lg); }
.capture-mobile { display: flex; gap: 20px; justify-content: center; }
.capture-mobile { min-width: 0; }
.capture-mobile .telephone { position: static; flex: 0 1 250px; min-width: 0; width: auto; }
.capture-mobile .telephone:nth-child(2) { margin-top: 48px; }

/* Journée */
.journee { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }
.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: etape; }
.etape { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px 26px; box-shadow: var(--sh-sm); }
.etape .moment { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--blue-700); background: var(--blue-50); padding: 5px 12px; border-radius: var(--pill); }
.etape .moment .ic { width: 15px; height: 15px; }
.etape h3 { font-size: 19px; font-weight: 800; margin-top: 18px; }
.etape p { color: var(--ink-2); font-size: 15px; margin-top: 8px; }

/* Confiance */
.confiance { background: var(--blue-900); color: #fff; position: relative; overflow: hidden; }
.confiance .vagues { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .35; pointer-events: none; }
.confiance .conteneur { position: relative; }
.confiance .surtitre { color: var(--cyan-logo); }
.confiance .chapeau p { color: var(--blue-200); }
.grille-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.confiance .carte { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); box-shadow: none; }
.confiance .carte:hover { box-shadow: none; background: rgba(255,255,255,.08); }
.confiance .carte .pastille { background: rgba(108,196,240,.14); color: var(--cyan-logo); }
.confiance .carte p { color: var(--blue-200); }

/* Pour qui */
.profils { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.profil { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 34px; box-shadow: var(--sh-sm); }
.profil .tag { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-500); background: var(--blue-50); padding: 5px 12px; border-radius: var(--pill); }
.profil h3 { font-size: 22px; font-weight: 800; margin-top: 16px; }
.profil > p { color: var(--ink-2); margin-top: 10px; font-size: 15.5px; }

/* Questions */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 0 24px; box-shadow: var(--sh-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 700; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--blue-500); transition: transform .2s var(--ease); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding: 0 0 22px; font-size: 15.5px; }

/* Appel final */
.appel { padding: 0 0 110px; }
.appel-carte { position: relative; overflow: hidden; border-radius: 28px; color: #fff; text-align: center; padding: 72px 32px; background: linear-gradient(140deg, #2b84ef 0%, var(--blue-600) 45%, var(--blue-800) 100%); box-shadow: var(--sh-lg); }
.appel-carte .vagues { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .45; pointer-events: none; }
.appel-carte > * { position: relative; }
.appel-carte h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; line-height: 1.12; }
.appel-carte p { color: var(--blue-100); font-size: 17px; margin: 16px auto 0; max-width: 560px; }
.appel-carte .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* Pied */
.pied { background: var(--surface); border-top: 1px solid var(--border); padding: 44px 0; font-size: 14px; color: var(--ink-2); }
.pied .conteneur { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.pied nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.pied nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.pied nav a:hover { color: var(--blue-500); }

/* Apparition au défilement */
.apparait { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.apparait.vu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .apparait { opacity: 1; transform: none; transition: none; }
  .btn, .carte { transition: none; }
}

/* Pages légales */
.page-legale { padding: 130px 0 90px; }
.page-legale .doc { max-width: 780px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 36px; box-shadow: var(--sh-sm); }
.page-legale h1 { font-size: 30px; font-weight: 800; }
.page-legale .maj { color: var(--ink-3); font-size: 13.5px; margin-top: 6px; }
.page-legale h2 { font-size: 18px; font-weight: 800; margin: 30px 0 8px; }
.page-legale p, .page-legale li { color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.page-legale p + p { margin-top: 10px; }
mark.a-completer { background: var(--warning-bg); color: var(--ink); padding: 0 4px; border-radius: 4px; }
.entete.solide { background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--border); }
.entete.solide .logo .gest { color: var(--blue-500); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .telephone { right: -8px; width: 190px; }
}
@media (max-width: 960px) {
  .grille, .grille-4 { grid-template-columns: 1fr 1fr; }
  .etapes { grid-template-columns: 1fr; }
  .bloc { grid-template-columns: 1fr; gap: 36px; }
  .bloc.inverse .bloc-texte { order: 0; }
}
@media (max-width: 820px) {
  .entete nav, .entete .actions-entete { display: none; }
  .menu-btn { display: block; }
  .entete.ouvert { background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--border); }
  .entete.ouvert .logo .gest { color: var(--blue-500); }
  .entete.ouvert nav { display: flex; flex-direction: column; gap: 0; position: absolute; top: 72px; left: 0; right: 0; background: #fff; padding: 8px 24px 20px; box-shadow: 0 12px 24px rgba(13,52,104,.1); }
  .entete.ouvert nav a { padding: 12px 0; border-bottom: 1px solid var(--border); opacity: 1; }
  .entete.ouvert nav .btn { margin-top: 14px; color: #fff; border: 0; padding: 0 20px; }
  .profils { grid-template-columns: 1fr; }
  .telephone { display: none; }
  .capture-mobile .telephone { display: block; }
}
@media (max-width: 600px) {
  .conteneur { padding: 0 16px; }
  section { padding: 80px 0; }
  .heros { padding-top: 120px; }
  .grille, .grille-4 { grid-template-columns: 1fr; }
  .vitrine { margin-top: 44px; }
  .ecran { padding: 6px 6px 0; border-radius: 10px 10px 0 0; }
  .ecran .barre { display: none; }
  .profil, .carte { padding: 24px 20px; }
  .appel-carte { padding: 56px 20px; border-radius: 22px; }
  .page-legale .doc { padding: 24px 18px; }
  .heros .actions .btn, .appel-carte .actions .btn { width: 100%; }
}
.menu-mobile-cta { display: none; }
@media (max-width: 820px) { .entete.ouvert .menu-mobile-cta { display: inline-flex; } }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
section.sans-haut { padding-top: 0; }
.entete nav.nav-simple { display: flex; }
