/* Dive Protek — feuille de style unique, mobile d'abord */

@font-face { font-family: "Manrope"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/manrope-latin-800-normal.woff2") format("woff2"); }

:root {
  --abysse: #0B2433;
  --ardoise: #4A6070;
  --profond: #0A4D6E;
  --lagon: #13A3B5;          /* décoratif uniquement sur fond clair */
  --lagon-texte: #0B7A87;
  --corail: #FF6B4A;         /* fond des CTA, texte en --abysse */
  --ecume: #F4F7F9;
  --blanc: #FFFFFF;
  --succes: #2E7D5B;
  --erreur: #B3261E;
  --trait: #DCE4E9;
  --trait-fort: #8FA3B0;
  --sur-sombre: #D6E6EC;

  --titre: "Manrope", system-ui, sans-serif;
  --texte: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 16px;
  --r-sm: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--texte); font-size: 17px; line-height: 1.6; color: var(--abysse); background: var(--blanc); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--profond); }
a:hover { color: var(--abysse); }
:focus-visible { outline: 3px solid var(--profond); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--titre); margin: 0; color: inherit; }
h1 { font-weight: 800; font-size: clamp(2.125rem, 1.4rem + 3.2vw, 3.5rem); line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-weight: 700; font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.375rem); line-height: 1.2; margin-bottom: 24px; }
h3 { font-weight: 700; font-size: 1.25rem; line-height: 1.3; }
p { margin: 0; }
ul, ol { margin: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 800px; }
.muted { color: var(--ardoise); }
.small { font-size: 14px; }
.center { text-align: center; }
.narrow { max-width: 65ch; margin-top: 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--abysse); color: var(--blanc); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }
.only-desk { display: none !important; }
@media (min-width: 900px) { .only-desk { display: inline-flex !important; } .only-mob { display: none !important; } }

.eyebrow { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--lagon-texte); margin-bottom: 8px; }
.eyebrow--light { color: var(--sur-sombre); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 12px; font-weight: 700; font-size: 16px; font-family: inherit; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2; text-align: center; }
.btn--lg { min-height: 54px; font-size: 17px; padding: 0 24px; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: var(--r-sm); }
.btn--cta { background: var(--corail); color: var(--abysse); }
.btn--cta:hover { background: #FF7F63; color: var(--abysse); }
.btn--light { border-color: var(--ecume); color: var(--ecume); }
.btn--light:hover { background: var(--ecume); color: var(--abysse); }
.btn--outline { border-color: var(--profond); color: var(--profond); background: var(--blanc); }
.btn--outline:hover { background: var(--profond); color: var(--blanc); }
.btn--ghost { border-color: var(--profond); color: var(--profond); background: var(--blanc); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn-row .btn { flex: 1 1 240px; }
@media (min-width: 900px) { .btn-row .btn { flex: 0 0 auto; } }
.link { font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; min-height: 44px; gap: 4px; }
.link--light { color: #5FD0DC; }
.link--light:hover { color: var(--blanc); }

/* En-tête */
.top { position: sticky; top: 0; z-index: 20; background: var(--blanc); border-bottom: 1px solid #E3EAEE; }
.top__in { height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--abysse); font-family: var(--titre); font-weight: 800; font-size: 18px; letter-spacing: -0.01em; white-space: nowrap; }
.logo .logo__img { height: 40px; width: auto; }
.logo .logo__img--large { height: 40px; max-width: 170px; object-fit: contain; }
.nav-desk { display: none; gap: 24px; font-size: 15px; font-weight: 600; }
.nav-desk a { color: var(--abysse); text-decoration: none; }
.nav-desk a:hover { color: var(--profond); text-decoration: underline; }
@media (min-width: 900px) { .nav-desk { display: flex; } }
.top__actions { display: flex; align-items: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid #C9D6DE; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--abysse); text-decoration: none; white-space: nowrap; }
.pill svg:first-child { color: var(--lagon-texte); }
.menu { position: relative; }
.menu summary { list-style: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 10px; }
.menu summary::-webkit-details-marker { display: none; }
.menu__panel { position: absolute; right: 0; top: 52px; width: min(280px, 86vw); background: var(--blanc); border: 1px solid var(--trait); border-radius: 14px; box-shadow: 0 12px 32px rgba(11, 36, 51, 0.16); padding: 8px; display: flex; flex-direction: column; }
.menu__panel a { padding: 12px 14px; border-radius: 10px; color: var(--abysse); text-decoration: none; font-weight: 600; }
.menu__panel a:hover { background: var(--ecume); }

/* Feuille de choix du territoire */
.sheet { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 520px; border-radius: 20px 20px 0 0; background: var(--blanc); color: var(--abysse); }
.sheet::backdrop { background: rgba(11, 36, 51, 0.6); }
@media (min-width: 640px) { .sheet { margin: auto; border-radius: 20px; } }
.sheet__in { padding: 20px 20px 28px; display: flex; flex-direction: column; gap: 14px; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; }
.sheet__head h2 { margin: 0; font-size: 22px; }
.icon-btn { width: 44px; height: 44px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--abysse); border-radius: 10px; }
.sheet__list { display: flex; flex-direction: column; gap: 10px; }
.choice { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 12px 16px; border: 1px solid #C9D6DE; border-radius: 14px; text-decoration: none; color: var(--abysse); font-weight: 700; font-size: 17px; }
.choice__dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--trait-fort); flex-shrink: 0; position: relative; }
.choice[aria-current="true"] { border: 2px solid var(--profond); background: #E6F4F6; }
.choice[aria-current="true"] .choice__dot { border-color: var(--profond); }
.choice[aria-current="true"] .choice__dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--profond); }

/* Emplacements photo */
.ph { background: var(--profond); display: flex; align-items: flex-start; padding: 12px; }
.ph__label { font-size: 12px; line-height: 1.4; color: var(--ecume); padding: 6px 10px; border: 1px dashed var(--ecume); border-radius: 8px; background: var(--abysse); max-width: 100%; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* Hero */
.hero { position: relative; color: var(--ecume); background: var(--profond); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg.ph { padding: 16px 20px; }
.hero__veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 36, 51, 0.88) 0%, rgba(11, 36, 51, 0.55) 45%, rgba(11, 36, 51, 0.1) 75%); pointer-events: none; }
.hero__in { position: relative; min-height: min(56vh, 460px); display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding-top: 64px; padding-bottom: 28px; }
.hero h1 { max-width: 18ch; }
.hero__sub { font-size: 18px; line-height: 1.5; color: var(--sur-sombre); max-width: 46ch; }
@media (min-width: 900px) { .hero__in { min-height: 420px; padding-top: 72px; padding-bottom: 48px; } }

/* Confiance */
.trust { border-bottom: 1px solid #E3EAEE; }
.chips { list-style: none; padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid #C9D6DE; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--abysse); text-decoration: none; }
.chip svg { color: var(--lagon-texte); }
.chip:hover { border-color: var(--profond); }

/* Salon */
.salon { background: var(--ecume); padding: 24px 0; }
.salon__card { background: var(--blanc); border: 1px solid #E3EAEE; border-radius: var(--r); padding: 16px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.salon__img, .salon__ph { flex: 3 1 320px; border-radius: 12px; overflow: hidden; }
.salon__ph { min-height: 100px; }
.salon__img { display: block; }
.salon__img img { width: 100%; height: auto; }
.captcha label { line-height: 1.4; }
.captcha input { max-width: 120px; }
.cf-turnstile { min-height: 65px; }
.salon__txt { flex: 2 1 240px; display: flex; flex-direction: column; gap: 2px; }
.salon__h { font-family: var(--titre); font-weight: 700; font-size: 19px; }

/* Sections */
.sec { padding: 56px 0; }
.sec--alt { background: var(--ecume); }
@media (min-width: 900px) { .sec { padding: 88px 0; } }
.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--cards { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* Destinations */
.dest { border: 1px solid var(--trait); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; background: var(--blanc); }
.dest.is-selected { border: 2px solid var(--profond); }
.dest__img { aspect-ratio: 16 / 9; }
.dest__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.dest__body .muted { flex-grow: 1; font-size: 15px; }
.dest__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.badge-ok { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--succes); }
.badge-ok[hidden] { display: none; }

/* Formations */
.path { list-style: none; padding: 0; margin: -8px 0 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.path li { padding: 6px 12px; background: var(--blanc); border: 1px solid #C9D6DE; border-radius: 999px; }
.path li.path__arrow { padding: 0; border: 0; background: none; color: var(--ardoise); }
.path li.path__end { background: var(--abysse); color: var(--ecume); border-color: var(--abysse); }
.card { background: var(--blanc); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.card__ico { color: var(--lagon-texte); margin-bottom: 4px; }
.card__txt { font-size: 15px; color: var(--ardoise); flex-grow: 1; }
.card__prix { font-weight: 700; font-variant-numeric: tabular-nums; }
.card--dark { background: var(--abysse); color: var(--ecume); }
.card--dark .card__ico { color: var(--lagon); }
.card--dark .card__txt { color: var(--sur-sombre); }
.card--dark .link { color: #5FD0DC; }

/* Savoir-faire */
.feature { border: 1px solid var(--trait); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; background: var(--blanc); }
.feature--dark { background: var(--abysse); color: var(--ecume); border-color: var(--abysse); }
.feature__img { aspect-ratio: 16 / 10; }
.feature__body { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.feature__body ul { padding-left: 20px; font-size: 15px; color: var(--ardoise); display: flex; flex-direction: column; gap: 4px; }
.feature--dark .feature__body ul { color: var(--sur-sombre); }
.gloss { margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; font-size: 15px; }
.gloss div { background: var(--ecume); border-radius: 12px; padding: 14px 16px; }
.gloss dt { font-weight: 700; }
.gloss dd { margin: 0; color: var(--ardoise); }

/* Comment ça marche */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.steps li { background: var(--blanc); border-radius: var(--r); padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.steps__n { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: var(--profond); color: var(--ecume); display: flex; align-items: center; justify-content: center; font-weight: 800; font-family: var(--titre); }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
.gallery figure { margin: 0; }
.gallery__img { aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
.gallery figcaption { font-size: 13px; color: var(--ardoise); padding-top: 4px; }

/* Avis et FAQ */
.quote { margin: 0; background: var(--blanc); border-radius: var(--r); padding: 20px; }
.quote blockquote { margin: 0; font-size: 17px; line-height: 1.5; }
.quote figcaption { margin-top: 12px; font-size: 14px; color: var(--ardoise); }
.faq { border-bottom: 1px solid #E3EAEE; padding: 14px 0; }
.faq summary { font-weight: 700; font-size: 17px; cursor: pointer; min-height: 28px; }
.faq p { margin-top: 8px; color: var(--ardoise); }

/* Réservation */
.resa { background: var(--profond); color: var(--ecume); padding: 56px 0 72px; }
.resa__in { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.resa__txt { flex: 1 1 300px; display: flex; flex-direction: column; gap: 12px; }
.resa__txt h2 { font-weight: 800; margin-bottom: 0; }
.resa__txt p { color: var(--sur-sombre); }
.resa__contact a { color: var(--blanc); font-weight: 700; }
.form { flex: 1 1 340px; background: var(--blanc); color: var(--abysse); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field-row .field { flex: 1 1 140px; }
.field-row { display: flex; flex-wrap: wrap; gap: 12px; }
.field label { font-size: 15px; font-weight: 600; }
.field input, .field select, .field textarea { min-height: 48px; font-size: 16px; font-family: inherit; border: 1px solid var(--trait-fort); border-radius: var(--r-sm); padding: 10px 12px; background: var(--blanc); color: var(--abysse); width: 100%; }
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 12px 14px; border-radius: var(--r-sm); font-size: 15px; font-weight: 600; }
.alert--ok { background: #E3F2EA; color: #1E5C41; }
.alert--err { background: #FBE9E8; color: var(--erreur); }

/* Pied de page */
.foot { background: var(--abysse); color: var(--ecume); padding: 48px 0 104px; font-size: 15px; }
@media (min-width: 900px) { .foot { padding-bottom: 48px; } }
.foot__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.foot__col { display: flex; flex-direction: column; gap: 6px; color: #C5D3DB; font-style: normal; }
.foot__col strong { color: var(--ecume); }
.foot__col a { color: var(--ecume); }
.foot__brand { font-family: var(--titre); font-weight: 800; font-size: 20px; color: var(--ecume); }
.foot__h { font-weight: 700; color: var(--ecume); margin-bottom: 4px; }
.foot__legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid #2A4252; font-size: 13px; color: #C5D3DB; }

/* Barre d'action mobile */
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--blanc); border-top: 1px solid #E3EAEE; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 10px; transform: translateY(110%); transition: transform 0.2s ease; }
.actionbar.is-visible { transform: none; }
.actionbar .btn--cta { flex: 2 1 0; }
.actionbar .btn--ghost { flex: 1 1 0; }
.no-js .actionbar { transform: none; }

/* Pages de texte */
.doc { padding: 48px 0 80px; }
.doc h1 { font-size: clamp(1.875rem, 1.3rem + 2vw, 2.5rem); margin-bottom: 24px; }
.doc h2 { font-size: 1.375rem; margin: 32px 0 8px; }
.doc p, .doc li { max-width: 70ch; }
.doc ul { padding-left: 20px; }
