/* Six Milles · direction artistique « carte marine et pavillons ».
   Le site se lit comme une carte du SHOM imprimée sur papier écume : cadre gradué en minutes d'arc,
   isobathes, rose des vents, terre couleur sable. Les pavillons du code international des signaux
   servent de pictogrammes (C, E, H pour les formules, flammes 1 à 4 pour les étapes).
   Josefin Sans pour les titres, Source Sans 3 pour le texte ; marine profond, bleu océan, jaune et rouge en accents. */

:root {
  --navy: #0b2545;
  --navy-2: #12345e;
  --ocean: #1d5f96;
  --ocean-deep: #174d7a;
  --shoal: #cfe3f1;
  --sea: #e8f1f7;
  --ecume: #f7f4ec;
  --sand: #ebdfc2;
  --sand-ink: #6b5b38;
  --yellow: #f4c03a;
  --yellow-2: #e7ae1c;
  --red: #c8322b;
  --mist: #c9d6e3;

  --bg: var(--ecume);
  --surface: #ffffff;
  --surface-2: var(--sea);
  --ink: var(--navy);
  --ink-2: #2b405c;
  --muted: #56677c;
  --line: #d3dce4;
  --accent: var(--yellow);
  --accent-ink: var(--ocean);
  --accent-soft: #fdf3d6;
  --on-accent: var(--navy);
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-head: "Josefin Sans", "Futura", "Century Gothic", system-ui, sans-serif;
  --head-weight: 600;
  --head-tracking: -0.005em;
  --radius: 4px;
  --radius-btn: 3px;
  --shadow: 0 1px 0 rgba(11, 37, 69, .05), 0 18px 40px -22px rgba(11, 37, 69, .35);
  --maxw: 1200px;
  --header-bg: var(--ecume);
  --header-ink: var(--navy);
  --footer-bg: var(--navy);
  --footer-ink: var(--mist);
  --footer-strong: #ffffff;
  --neat: repeating-linear-gradient(90deg, var(--navy) 0 22px, #fff 22px 44px);
  --neat-v: repeating-linear-gradient(180deg, var(--navy) 0 22px, #fff 22px 44px);
}

/* ---------- Base ---------- */
body { font-size: 18px; line-height: 1.62; color: var(--ink-2); background: var(--bg); -webkit-font-smoothing: antialiased; }
@media (max-width: 600px) { body { font-size: 17px; } }
h1, h2, h3, h4 { color: var(--navy); }
a { color: var(--ocean); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); text-decoration-thickness: 2px; }
::selection { background: var(--yellow); color: var(--navy); }
:focus-visible { outline: 3px solid var(--ocean); outline-offset: 2px; }
.section { padding: 92px 0; }
@media (max-width: 720px) { .section { padding: 60px 0; } }
.skip:focus { background: var(--yellow); color: var(--navy); font-weight: 600; }
[id] { scroll-margin-top: 96px; }

/* ---------- Boutons ---------- */
.btn { background: var(--yellow); color: var(--navy); border: 2px solid var(--navy); border-radius: var(--radius-btn); font: 600 16px/1.2 var(--font-body); letter-spacing: .01em; padding: 11px 20px; min-height: 46px; transition: background-color .15s, box-shadow .15s, transform .15s; }
.btn:hover { filter: none; background: #f7cd5c; color: var(--navy); box-shadow: 0 3px 0 var(--navy); transform: translateY(-2px); }
.btn:active { transform: none; box-shadow: none; }
.btn-big { padding: 14px 26px; font-size: 17px; min-height: 52px; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; box-shadow: 0 3px 0 var(--yellow); }

/* ---------- En-tête ---------- */
.site-header { background: var(--ecume); border-bottom: 1px solid var(--navy); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 6px; background: var(--neat); border-bottom: 1px solid var(--navy); pointer-events: none; }
.header-in { min-height: 74px; }
.brand { gap: 12px; }
.brand-logo { width: 42px; height: 42px; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 19px; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); padding-top: 3px; }
.brand-tagline { font-size: 13px; color: var(--muted); letter-spacing: .01em; }
.nav { gap: 24px; }
.nav a { opacity: 1; font-weight: 600; font-size: 15.5px; color: var(--navy); text-decoration: none; padding: 6px 0; background: linear-gradient(var(--yellow), var(--yellow)) 0 100% / 0 3px no-repeat; transition: background-size .2s; }
.nav a:hover { background-size: 100% 3px; }
.nav a.btn { padding: 10px 18px; background: var(--yellow); color: var(--navy); }
.nav a.btn:hover { background: #f7cd5c; }
.nav-toggle { border: 2px solid var(--navy); border-radius: 3px; width: 46px; height: 44px; color: var(--navy); }
@media (max-width: 1180px) { .brand-tagline { display: none; } .nav { gap: 18px; } }
@media (max-width: 1040px) and (min-width: 941px) { .nav { gap: 14px; } .nav a { font-size: 15px; } .nav a.btn { padding: 9px 14px; } }
@media (max-width: 940px) {
  .nav { background: var(--ecume); border-bottom: 1px solid var(--navy); top: calc(100% + 7px); box-shadow: 0 18px 30px -18px rgba(11, 37, 69, .45); padding: 6px 16px 18px; }
  .nav a { padding: 13px 2px; border-bottom: 1px solid var(--line); background: none; font-size: 17px; }
  .nav a.btn { margin-top: 14px; border: 2px solid var(--navy); justify-content: center; }
}
@media (max-width: 380px) { .brand-name { font-size: 17px; letter-spacing: .12em; } }

/* ---------- Titres de section ---------- */
.sm-eyebrow { font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--ocean); margin: 0 0 14px; display: flex; align-items: center; gap: 12px; }
.sm-eyebrow::before { content: ""; width: 44px; height: 5px; background: repeating-linear-gradient(90deg, currentColor 0 11px, transparent 11px 22px); box-shadow: 0 0 0 1px currentColor; flex: none; }
.sm-head { max-width: 780px; margin-bottom: 44px; }
.sm-head h2, .sm-tarifs h2, .sm-clair h2, .sm-outil h2 { font-size: clamp(31px, 3.5vw, 46px); line-height: 1.06; margin: 0 0 16px; }
.sm-head p:not(.sm-eyebrow) { font-size: 19px; color: var(--ink-2); margin: 0; }

/* ---------- Héros ---------- */
.sm-hero { position: relative; padding: 64px 0 84px; background:
  linear-gradient(90deg, rgba(11, 37, 69, .045) 1px, transparent 1px) 0 0 / 120px 120px,
  linear-gradient(rgba(11, 37, 69, .045) 1px, transparent 1px) 0 0 / 120px 120px, var(--ecume); overflow: hidden; }
.sm-hero .wrap { max-width: 1340px; }
.sm-hero-grid { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 56px; align-items: center; }
.sm-kicker { display: flex; align-items: center; gap: 14px; font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; font-size: 12.5px; white-space: nowrap; color: var(--ocean); margin: 0 0 22px; }
.sm-hoist { display: inline-flex; gap: 4px; }
.sm-hoist img { width: 25px; height: 20px; display: block; }
.sm-hero h1 { font-size: clamp(42px, 4.3vw, 64px); line-height: 1.02; letter-spacing: -.012em; margin: 0 0 24px; color: var(--navy); }
.sm-hero h1 em { font-style: normal; color: var(--ocean); display: block; }
.sm-hero-lede { font-size: 20px; line-height: 1.55; color: var(--ink-2); margin: 0 0 30px; max-width: 520px; }
.sm-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-bottom: 30px; }
.sm-textlink { font-weight: 600; font-size: 17px; color: var(--navy); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; background: linear-gradient(var(--yellow), var(--yellow)) 0 calc(100% - 10px) / 100% 3px no-repeat; }
.sm-textlink::after { content: "→"; transition: transform .15s; }
.sm-textlink:hover { color: var(--navy); }
.sm-textlink:hover::after { transform: translateX(4px); }
.sm-hero-notes { list-style: none; padding: 18px 0 0; margin: 0; border-top: 1px solid rgba(11, 37, 69, .18); display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--ink-2); }
.sm-hero-notes li { display: flex; align-items: center; gap: 8px; }
.sm-hero-notes li::before { content: ""; width: 10px; height: 8px; background: var(--yellow); box-shadow: 0 0 0 1.5px var(--navy); flex: none; }

/* Carte signature */
.sm-chart { position: relative; margin: 0; }
.sm-chart-map { position: relative; box-shadow: 0 30px 60px -30px rgba(11, 37, 69, .55), 0 2px 0 rgba(11, 37, 69, .08); background: #fff; }
.sm-chart-map img { display: block; width: 100%; height: auto; }
.sm-chart-map > span, .sm-port { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; line-height: 1; }
.sm-land { font-family: var(--font-head); font-size: 11px; font-weight: 400; letter-spacing: .38em; text-transform: uppercase; color: var(--sand-ink); }
.sm-water { font-style: italic; font-size: 13px; letter-spacing: .03em; color: var(--ocean-deep); }
.sm-water-small { font-size: 12px; }
.sm-water-big { font-size: 12.5px; letter-spacing: .42em; text-transform: uppercase; }
.sm-limit { font-style: italic; font-size: 12px; font-weight: 600; color: #b02a24; }
.sm-limit-far { font-weight: 400; color: var(--ocean-deep); }
.sm-port { width: 30px; height: 30px; display: grid; place-items: center; text-decoration: none; color: var(--navy); z-index: 2; }
.sm-port::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 2.5px var(--navy), 0 0 0 5px rgba(255, 255, 255, .85); transition: transform .15s; }
.sm-port span { position: absolute; font-family: var(--font-head); font-weight: 600; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 6px 2px; border-radius: 2px; text-shadow: 0 0 3px var(--sand), 0 0 3px var(--sand), 0 0 6px var(--sand); transition: background-color .15s, color .15s; }
.sm-port-up span { bottom: 78%; left: 50%; transform: translateX(-50%); }
.sm-port-down span { top: 78%; left: 50%; transform: translateX(-50%); }
.sm-port-left span { right: 82%; top: 50%; transform: translateY(-50%); }
.sm-port:hover span, .sm-port:focus-visible span { background: var(--navy); color: #fff; text-shadow: none; }
.sm-port:hover::before { transform: scale(1.3); }
.sm-cartouche { position: absolute; left: 5.2%; top: 6.6%; width: 39%; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 14px; background: rgba(255, 255, 255, .92); border: 1px solid var(--navy); outline: 1px solid var(--navy); outline-offset: 3px; color: var(--navy); font-size: 13px; line-height: 1.3; }
.sm-cartouche-title { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: 14px; }
.sm-cartouche-sub { font-style: italic; color: var(--ink-2); margin-bottom: 6px; }
.sm-legend { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.sm-legend i { flex: none; display: inline-block; }
.sm-key-port { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 2.5px var(--navy); margin: 0 6px 0 4px; }
.sm-key-limit { width: 24px; height: 0; border-top: 2.5px dashed var(--red); }
.sm-cartouche-warn { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 1400px) and (min-width: 1261px) { .sm-cartouche-sub { display: none; } .sm-cartouche { padding: 14px 16px 12px; } }
@media (max-width: 1260px) {
  .sm-hero { padding: 48px 0 64px; }
  .sm-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .sm-hero-text { max-width: 720px; }
  .sm-hero-lede { max-width: none; }
}
@media (max-width: 860px) { .sm-cartouche { width: 46%; padding: 12px 14px; font-size: 12px; } .sm-cartouche-sub { display: none; } }
@media (max-width: 640px) {
  .sm-hero h1 { font-size: clamp(38px, 10.5vw, 46px); }
  .sm-hero-lede { font-size: 18px; }
  .sm-hero-cta .btn { width: 100%; }
  .sm-hero-cta { gap: 6px; }
  .sm-kicker { white-space: normal; flex-direction: column; align-items: flex-start; gap: 10px; }
  .sm-hero-notes { flex-direction: column; gap: 6px; }
  .sm-kicker { font-size: 12px; letter-spacing: .14em; gap: 10px; }
  .sm-chart { margin: 0 -16px; }
  .sm-chart-map { box-shadow: none; }
  .sm-cartouche { position: static; width: auto; margin: 14px 16px 0; outline: none; font-size: 13px; padding: 16px 18px 14px; }
  .sm-cartouche-sub { display: block; }
  .sm-land, .sm-water, .sm-limit-far { display: none; }
  .sm-water-big { display: block; font-size: 8px; }
  .sm-limit { font-size: 8.5px; }
  .sm-port { pointer-events: none; width: 16px; height: 16px; }
  .sm-port::before { width: 6px; height: 6px; box-shadow: 0 0 0 1.5px var(--navy), 0 0 0 3px rgba(255, 255, 255, .85); }
  .sm-port span { font-size: 8.5px; letter-spacing: .06em; padding: 2px 3px 1px; }
}

/* ---------- Bandeau de chiffres ---------- */
.sm-sondes { position: relative; background: var(--navy); color: #fff; padding: 40px 0 46px; }
.sm-sondes::before, .sm-sondes::after { content: ""; position: absolute; left: 0; right: 0; height: 7px; background: var(--neat); border: solid var(--navy); border-width: 1px 0; }
.sm-sondes::before { top: -7px; }
.sm-sondes::after { bottom: -7px; }
.sm-sondes-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.sm-sondes-list li { padding: 4px 24px; border-left: 1px solid rgba(255, 255, 255, .16); display: flex; flex-direction: column; gap: 8px; }
.sm-sondes-list li:first-child { border-left: 0; padding-left: 0; }
.sm-sondes-list b { font-family: var(--font-head); font-weight: 600; font-size: clamp(34px, 3.4vw, 46px); line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.sm-sondes-list small { font-family: var(--font-body); font-size: .4em; font-weight: 600; letter-spacing: .04em; color: var(--yellow); margin-left: 3px; }
.sm-sondes-list span { font-size: 15px; line-height: 1.45; color: var(--mist); }
@media (max-width: 940px) {
  .sm-sondes-list { grid-template-columns: 1fr; }
  .sm-sondes-list li, .sm-sondes-list li:first-child { flex-direction: row; align-items: baseline; gap: 16px; padding: 12px 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
  .sm-sondes-list li:first-child { border-top: 0; }
  .sm-sondes-list b { flex: 0 0 132px; font-size: 32px; }
}

/* ---------- Formules ---------- */
.sm-formules-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: repeat(3, auto); gap: 16px 24px; }
.sm-formule { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; display: grid; grid-template-columns: 92px minmax(0, 1fr) 210px; grid-template-areas: "flag title prix" "flag zone prix" "flag zone link"; gap: 4px 22px; align-items: start; }
.sm-formule .sm-formule-top { grid-area: flag; }
.sm-formule h3 { grid-area: title; font-size: 23px; margin: 2px 0 0; }
.sm-formule .sm-formule-zone { grid-area: zone; margin: 0; font-size: 16.5px; color: var(--ink-2); }
.sm-formule .sm-prix { grid-area: prix; }
.sm-formule .sm-formule-link { grid-area: link; align-self: end; }
.sm-formule-flags { display: flex; gap: 4px; }
.sm-formule-flags img { width: 40px; height: 32px; display: block; }
.sm-prix { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.sm-prix span { font-family: var(--font-head); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.sm-prix strong { font-family: var(--font-head); font-weight: 600; font-size: 25px; line-height: 1.15; color: var(--navy); white-space: nowrap; }
.sm-prix small { font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.sm-formule-link { font-weight: 600; font-size: 15.5px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.sm-formule-link::after { content: "→"; transition: transform .15s; }
.sm-formule-link:hover::after { transform: translateX(4px); }
.sm-formule-main { grid-row: 1 / span 3; display: flex; flex-direction: column; align-items: flex-start; background: var(--navy); border-color: var(--navy); color: var(--mist); padding: 34px 34px 32px; gap: 0; align-content: start; overflow: hidden; }
.sm-formule-main::after { content: ""; position: absolute; right: -90px; bottom: -110px; width: 330px; height: 330px; background: url(/assets/rose-des-vents.svg) center / contain no-repeat; filter: invert(1) grayscale(1); opacity: .08; pointer-events: none; }
.sm-formule-main > * { position: relative; z-index: 1; }
.sm-formule-main .sm-formule-top { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.sm-formule-main .sm-formule-flags img { width: 64px; height: 51px; }
.sm-formule-tag { margin: 0; font-family: var(--font-head); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--yellow); }
.sm-formule-main h3 { color: #fff; font-size: 38px; margin: 0 0 12px; }
.sm-formule-main .sm-formule-zone { color: var(--mist); font-size: 17.5px; margin-bottom: 20px; }
.sm-formule-list { list-style: none; padding: 18px 0; margin: 0 0 22px; border-top: 1px solid rgba(255, 255, 255, .16); border-bottom: 1px solid rgba(255, 255, 255, .16); display: grid; gap: 10px; color: #fff; font-size: 16.5px; }
.sm-formule-list li { display: flex; gap: 12px; align-items: baseline; }
.sm-formule-list li::before { content: ""; width: 10px; height: 8px; background: var(--yellow); flex: none; transform: translateY(-1px); }
.sm-formule-main .sm-prix { margin-bottom: 24px; }
.sm-formule-main .sm-prix span { color: var(--mist); }
.sm-formule-main .sm-prix strong { color: var(--yellow); font-size: 40px; }
.sm-formule-main .sm-prix small { color: var(--mist); font-size: 14.5px; }
.sm-formule-main .btn { margin-top: auto; border-color: var(--yellow); }
.sm-formule-main .sm-formule-list { align-self: stretch; }
.sm-formule-main .btn:hover { box-shadow: 0 3px 0 #fff; }
.sm-note { margin: 28px 0 0; font-size: 15px; color: var(--muted); max-width: 920px; }
@media (max-width: 1100px) {
  .sm-formule { grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "flag title" "flag zone" "flag prix" "flag link"; }
  .sm-formule .sm-prix { margin-top: 10px; }
}
@media (max-width: 860px) {
  .sm-formules-grid { grid-template-columns: 1fr; }
  .sm-formule-main { grid-row: auto; padding: 28px 22px; }
  .sm-formule-main h3 { font-size: 32px; }
}
@media (max-width: 480px) {
  .sm-formule { grid-template-columns: 1fr; grid-template-areas: "flag" "title" "zone" "prix" "link"; padding: 20px; }
  .sm-formule .sm-formule-top { margin-bottom: 6px; }
}

/* ---------- Comment ça marche ---------- */
.sm-route { position: relative; background: var(--ocean); color: #dce8f3; overflow: hidden; }
.sm-route::before { content: ""; position: absolute; inset: 0; background: url(/assets/isobathes.svg) 50% 50% / cover no-repeat; filter: brightness(0) invert(1); opacity: .09; pointer-events: none; }
.sm-route .wrap { position: relative; }
.sm-head-light h2 { color: #fff; }
.sm-head-light .sm-eyebrow { color: var(--yellow); }
.sm-drisse { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 28px; }
.sm-drisse li { position: relative; padding-top: 34px; }
.sm-drisse li::before { content: ""; position: absolute; top: 0; left: 0; right: -28px; border-top: 2px dashed rgba(255, 255, 255, .55); }
.sm-drisse li:last-child::before { right: 0; }
.sm-drisse li::after { content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 2px var(--navy); }
.sm-drisse img { display: block; width: 60px; height: 32px; margin-bottom: 18px; }
.sm-drisse h3 { color: #fff; font-size: 23px; margin: 0 0 10px; }
.sm-drisse p { margin: 0; font-size: 16.5px; color: #dce8f3; }
.sm-drisse a { color: #fff; }
.sm-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--ecume); color: var(--ink-2); border: 1px solid var(--navy); outline: 1px solid rgba(255, 255, 255, .6); outline-offset: 5px; }
.sm-role { padding: 28px 30px; }
.sm-role + .sm-role { border-left: 1px solid var(--line); }
.sm-role h3 { font-size: 21px; margin: 0 0 14px; }
.sm-role ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 16.5px; }
.sm-role li { display: flex; gap: 12px; align-items: baseline; }
.sm-role li::before { content: ""; width: 9px; height: 9px; background: var(--ocean); flex: none; }
.sm-role + .sm-role li::before { background: var(--red); }
.sm-roles-note { grid-column: 1 / -1; margin: 0; padding: 18px 30px 18px 82px; border-top: 1px solid var(--line); background: #fff url(/assets/pavillon-p.svg) 30px 50% / 34px 27px no-repeat; font-size: 16.5px; color: var(--navy); font-weight: 600; }
@media (max-width: 900px) {
  .sm-drisse { grid-template-columns: 1fr; gap: 0; margin-left: 6px; }
  .sm-drisse li { padding: 0 0 34px 34px; }
  .sm-drisse li::before { top: 4px; bottom: 0; left: 4px; right: auto; border-top: 0; border-left: 2px dashed rgba(255, 255, 255, .55); }
  .sm-drisse li:last-child::before { display: none; }
  .sm-drisse li::after { top: 0; left: 0; }
  .sm-roles { grid-template-columns: 1fr; outline: none; }
  .sm-role + .sm-role { border-left: 0; border-top: 1px solid var(--line); }
  .sm-role { padding: 24px 22px; }
  .sm-roles-note { padding: 20px 22px 20px 72px; background-position: 22px 24px; background-size: 32px 26px; }
}

/* ---------- Secteurs ---------- */
.sm-secteurs { position: relative; background: var(--sea); overflow: hidden; }
.sm-secteurs::before { content: ""; position: absolute; inset: 0; background: url(/assets/isobathes.svg) 50% 50% / cover no-repeat; opacity: .16; pointer-events: none; }
.sm-secteurs .wrap { position: relative; }
.sm-secteurs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sm-secteur { background: #fff; border: 1px solid #c5d6e4; border-radius: var(--radius); padding: 26px 26px 18px; display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s; }
.sm-secteur:target { border-color: var(--navy); box-shadow: 0 0 0 3px var(--yellow); }
.sm-coord { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--font-head); font-size: 13px; letter-spacing: .14em; color: var(--ocean); }
.sm-coord::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; border: 1.5px solid var(--ocean); background: linear-gradient(var(--ocean), var(--ocean)) 50% / 1.5px 100% no-repeat, linear-gradient(var(--ocean), var(--ocean)) 50% / 100% 1.5px no-repeat; }
.sm-secteur h3 { font-size: 24px; margin: 0 0 4px; }
.sm-villes { margin: 0 0 14px; font-style: italic; color: var(--muted); font-size: 15.5px; }
.sm-secteur p:not(.sm-coord):not(.sm-villes) { margin: 0 0 14px; font-size: 16.5px; }
.sm-secteur-link { margin-top: auto; font-weight: 600; font-size: 15.5px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border-top: 1px solid var(--line); padding-top: 6px; }
.sm-secteur-link::after { content: "→"; transition: transform .15s; }
.sm-secteur-link:hover::after { transform: translateX(4px); }
.sm-partout { background: var(--navy); border-color: var(--navy); color: var(--mist); }
.sm-partout h3 { color: #fff; margin-bottom: 14px; }
.sm-partout ul { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 12px; font-size: 16px; }
.sm-partout strong { color: var(--yellow); font-weight: 600; }
.sm-partout a { color: #fff; }
.sm-partout .sm-secteur-link { color: #fff; border-color: rgba(255, 255, 255, .2); }
@media (max-width: 980px) { .sm-secteurs-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .sm-secteurs-grid { grid-template-columns: 1fr; } .sm-secteur { padding: 22px 20px 14px; } }

/* ---------- Tarifs (accueil) ---------- */
.sm-tarifs-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.sm-tarifs-main { min-width: 0; }
.sm-tarifs-main > p:not(.sm-eyebrow):not(.sm-small) { font-size: 19px; margin: 0 0 24px; }
.sm-small { font-size: 14.5px; color: var(--muted); margin: 0 0 22px; }
.sm-exigences { background: #fff; border: 1px solid var(--line); border-top: 0; padding: 0 28px 24px; position: relative; margin-top: 8px; }
.sm-exigences::before { content: ""; display: block; height: 7px; margin: 0 -29px 24px; background: var(--neat); border: 1px solid var(--navy); }
.sm-exigences h3 { font-size: 22px; margin: 0 0 16px; display: flex; align-items: center; gap: 12px; }
.sm-exigences h3::before { content: ""; width: 30px; height: 24px; flex: none; background: url(/assets/pavillon-c.svg) center / contain no-repeat; }
.sm-exigences ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; font-size: 16px; }
.sm-exigences li { padding-left: 16px; border-left: 3px solid var(--yellow); }
.sm-exigences strong { color: var(--navy); }
@media (max-width: 940px) { .sm-tarifs-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
@media (max-width: 600px) { .sm-tarifs th, .sm-tarifs td { padding: 10px 10px; font-size: 14.5px; } .sm-tarifs thead th { font-size: 11px; letter-spacing: .08em; } }

/* Tableaux : façon annuaire des marées */
.table-wrap { border: 1px solid #c5d6e4; border-radius: var(--radius); background: #fff; }
table { font-size: 15.5px; font-variant-numeric: tabular-nums; }
th, td { padding: 12px 16px; border-bottom: 1px solid #e1e8ee; }
thead th { background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; padding-top: 15px; }
tbody tr:nth-child(even) { background: #f4f8fb; }
tbody th { font-family: var(--font-head); font-weight: 600; color: var(--navy); background: transparent; font-size: 16px; }
tr:last-child th { border-bottom: 0; }
.sm-tarifs td:last-child, .prose td:last-child { font-weight: 600; color: var(--navy); white-space: nowrap; }

/* ---------- Outil (accueil) ---------- */
.sm-outil { background: var(--navy); color: var(--mist); padding: 70px 0; position: relative; overflow: hidden; }
.sm-outil-in { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 64px; align-items: center; }
.sm-outil-rose { width: 300px; height: 300px; background: var(--ecume); border-radius: 50%; padding: 18px; box-shadow: 0 0 0 1px var(--navy), 0 0 0 9px rgba(255, 255, 255, .08), 0 30px 50px -20px rgba(0, 0, 0, .6); transition: transform .8s ease; }
.sm-outil:hover .sm-outil-rose { transform: rotate(-12deg); }
.sm-outil h2 { color: #fff; }
.sm-outil .sm-eyebrow { color: var(--yellow); }
.sm-outil-text p:not(.sm-eyebrow) { font-size: 19px; margin: 0 0 26px; max-width: 640px; }
@media (max-width: 760px) {
  .sm-outil { padding: 56px 0; }
  .sm-outil-in { grid-template-columns: 1fr; gap: 30px; }
  .sm-outil-rose { width: 170px; height: 170px; padding: 10px; }
  .sm-outil .btn { width: 100%; }
}

/* ---------- Le permis en clair ---------- */
.sm-clair { background: #fff; border-top: 1px solid var(--line); }
.sm-clair-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 64px; align-items: start; }
.sm-clair-text h3 { font-size: 23px; margin: 34px 0 10px; }
.sm-clair-text p, .sm-clair-text ul { margin: 0 0 14px; }
.sm-clair-text ul { padding-left: 20px; }
.sm-clair-text li { margin: 6px 0; }
.sm-clair-text li::marker { color: var(--ocean); }
.sm-clair-side { position: sticky; top: 104px; }
@media (max-width: 940px) { .sm-clair-grid { grid-template-columns: 1fr; gap: 32px; } .sm-clair-side { position: static; } }

/* ---------- Encadrés communs ---------- */
.bref { background: var(--ecume); border: 1px solid var(--navy); border-radius: 0; outline: 1px solid var(--navy); outline-offset: -6px; padding: 26px 28px 22px; margin: 0 0 28px; }
.bref-title { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; font-size: 14px; color: var(--navy); margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(11, 37, 69, .2); display: flex; align-items: center; gap: 12px; }
.bref-title::before { content: ""; width: 28px; height: 22px; flex: none; background: url(/assets/pavillon-c.svg) center / contain no-repeat; }
.bref ul { list-style: none; padding: 0; margin: 0; }
.bref li { position: relative; padding-left: 20px; margin: 10px 0; font-size: 16px; line-height: 1.55; }
.bref li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--yellow); box-shadow: 0 0 0 1.5px var(--navy); }
.bref strong { color: var(--navy); }

.cta-box { position: relative; background: var(--navy); border: 0; border-radius: var(--radius); padding: 22px 26px 22px 88px; margin: 36px 0; color: #fff; gap: 14px 22px; }
.cta-box::before { content: ""; position: absolute; left: 26px; top: 50%; width: 40px; height: 32px; transform: translateY(-50%); background: url(/assets/pavillon-p.svg) center / contain no-repeat; box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
.cta-title { color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 20px; line-height: 1.3; flex: 1 1 260px; }
.cta-box .btn { border-color: var(--yellow); }
.cta-box .btn:hover { box-shadow: 0 3px 0 #fff; }
@media (max-width: 600px) { .cta-box { padding: 76px 20px 22px; } .cta-box::before { top: 22px; left: 20px; transform: none; } .cta-box .btn { width: 100%; } }

/* ---------- Pages standard ---------- */
.page-head { position: relative; background: var(--sea); border-bottom: 1px solid var(--navy); padding: 40px 0 46px; overflow: hidden; }
.page-head::before { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 62%; background: url(/assets/isobathes.svg) 0 50% / cover no-repeat; opacity: .2; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%); }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--neat); border-top: 1px solid var(--navy); }
.page-head .wrap { position: relative; }
.page-head h1 { font-size: clamp(32px, 4vw, 52px); line-height: 1.06; margin: 14px 0 14px; max-width: 920px; color: var(--navy); }
.page-head .lede { font-size: 20px; color: var(--ink-2); max-width: 800px; }
.crumbs { font-family: var(--font-head); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ocean); align-items: center; }
.crumbs a { color: var(--ocean); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.meta { color: var(--muted); font-size: 14.5px; }
.content-wrap { padding-top: 48px; padding-bottom: 72px; }
@media (min-width: 1000px) { .content-grid.has-side { grid-template-columns: minmax(0, 1fr) 312px; gap: 64px; } }

.prose { max-width: 740px; }
.prose h2 { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.12; margin: 56px 0 14px; padding-top: 20px; background: repeating-linear-gradient(90deg, var(--navy) 0 11px, transparent 11px 22px) 0 0 / 55px 4px no-repeat; }
.prose h2:first-child, .prose .bref + h2 { margin-top: 8px; }
.prose h3 { font-size: 21px; margin: 30px 0 8px; }
.prose li::marker { color: var(--ocean); }
.prose ol li::marker { font-family: var(--font-head); font-weight: 600; }
.prose strong { color: var(--navy); }
.prose blockquote { border-left-color: var(--yellow); background: #fff; }
.prose .table-wrap { margin: 6px 0 24px; }

.sidebar { top: 104px; }
.side-box { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 0; box-shadow: var(--shadow); padding: 24px 24px 22px; gap: 14px; }
.side-box::before { content: ""; display: block; height: 6px; margin: -25px -25px 8px; background: var(--neat); border: 1px solid var(--navy); }
.side-title { font-family: var(--font-head); font-weight: 600; font-size: 21px; color: var(--navy); display: flex; flex-direction: column; gap: 12px; }
.side-title::before { content: ""; width: 40px; height: 32px; background: url(/assets/pavillon-p.svg) center / contain no-repeat; }
.side-text { font-size: 15.5px; }
.side-box .btn { width: 100%; }
.side-link { font-weight: 600; font-size: 15px; text-align: center; }

/* Cartes de guides */
.related h2, .faq h2, .sources h2 { font-size: clamp(26px, 2.6vw, 34px); }
.cards { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.card { position: relative; border: 1px solid #c5d6e4; border-radius: var(--radius); padding: 24px 22px 22px; gap: 8px; background: #fff; }
.card::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 5px; border-radius: var(--radius) var(--radius) 0 0; background: var(--ocean); }
.card-tool::before { background: var(--yellow); }
.card-service::before { background: var(--red); }
.card:hover { border-color: var(--navy); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-kind { font-family: var(--font-head); font-weight: 600; font-size: 11.5px; letter-spacing: .18em; color: var(--ocean); }
.card-tool .card-kind { color: #8a6400; }
.card-service .card-kind { color: #a8281f; }
.card-title { font-family: var(--font-head); font-weight: 600; font-size: 19px; line-height: 1.25; color: var(--navy); }
.card-desc { font-size: 15px; color: var(--muted); }
.sm-guides { background: var(--ecume); padding-bottom: 40px; }
.sm-guides .related { margin-top: 0; }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border: 0; border-top: 1px solid rgba(11, 37, 69, .2); border-radius: 0; background: transparent; margin: 0; }
.faq details:last-of-type { border-bottom: 1px solid rgba(11, 37, 69, .2); }
.faq summary { padding: 18px 56px 18px 0; font-size: 18px; font-weight: 600; color: var(--navy); }
.faq summary::after { content: "+"; top: 50%; right: 4px; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; border: 1.5px solid var(--navy); border-radius: 50%; font-size: 20px; line-height: 1; color: var(--navy); transition: background-color .15s; }
.faq details[open] summary::after { content: "–"; background: var(--yellow); }
.faq summary:hover { color: var(--ocean); }
.faq details > div { padding: 0 56px 20px 0; font-size: 17px; }
.sm-faq-wrap { padding-top: 40px; padding-bottom: 80px; }
.sm-faq-wrap .faq { margin-top: 0; }
@media (min-width: 1000px) {
  .sm-faq-wrap .faq { max-width: none; display: grid; grid-template-columns: 340px minmax(0, 1fr); column-gap: 72px; align-items: start; }
  .sm-faq-wrap .faq h2 { grid-column: 1; grid-row: 1 / span 12; position: sticky; top: 110px; padding-top: 20px; background: repeating-linear-gradient(90deg, var(--navy) 0 11px, transparent 11px 22px) 0 0 / 55px 4px no-repeat; }
  .sm-faq-wrap .faq details { grid-column: 2; }
}
.sources { font-size: 15px; }
.sources h2 { font-size: 20px; }
.sources a { color: var(--ink-2); }
.sm-sources-wrap { padding: 8px 16px 56px; }
@media (min-width: 720px) { .sm-sources-wrap { padding: 8px 24px 64px; } }
.sm-sources-wrap .sources { margin-top: 40px; }
.page-tail { padding-bottom: 48px; }

/* ---------- Formulaire ---------- */
.lead { position: relative; background: var(--navy); color: var(--mist); border-top: 0; padding: 92px 0 96px; overflow: hidden; }
.lead::before { content: ""; position: absolute; inset: 0; background: url(/assets/isobathes.svg) 50% 50% / cover no-repeat; filter: brightness(0) invert(1); opacity: .07; pointer-events: none; }
.lead::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px; background: var(--neat); border-bottom: 1px solid var(--navy); }
.lead-in { position: relative; max-width: var(--maxw); }
@media (min-width: 900px) { .lead-in { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; } }
.lead h2 { color: #fff; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.06; margin-bottom: 16px; }
.lead-intro { color: var(--mist); font-size: 18px; margin-bottom: 26px; }
.lead-points { gap: 14px; }
.lead-points li { color: #fff; padding-left: 34px; }
.lead-points li::before { top: 3px; width: 20px; height: 20px; border-radius: 3px; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230b2545' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.lead-points strong { color: var(--yellow); }
.lead-form { background: var(--ecume); border: 0; border-radius: var(--radius); padding: 30px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); color: var(--ink-2); }
.lead-form::before { content: ""; display: block; height: 7px; margin: -30px -30px 26px; background: var(--neat); border: 1px solid var(--navy); border-radius: var(--radius) var(--radius) 0 0; }
.field label { color: var(--navy); font-size: 15px; }
.field input, .field select, .field textarea { border: 1.5px solid #b6c3cf; border-radius: 3px; min-height: 48px; color: var(--navy); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ocean); outline: 3px solid rgba(29, 95, 150, .25); }
.consent { color: var(--ink-2); }
.consent input { accent-color: var(--ocean); }
.btn-submit { margin-top: 2px; }
.form-note { color: var(--muted); }
.form-status { color: var(--red); }
.form-success { background: var(--ecume); border: 1px solid var(--navy); color: var(--navy); border-radius: var(--radius); }
.success-title { color: var(--navy); font-family: var(--font-head); font-weight: 600; }
@media (max-width: 600px) { .lead { padding: 64px 0 70px; } .lead-form { padding: 22px 18px; } .lead-form::before { margin: -22px -18px 22px; } }

/* ---------- Outil interactif ---------- */
.tool { position: relative; background: #fff; border: 1px solid #c5d6e4; border-top: 0; border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); padding: 30px 30px 26px; margin: 18px 0 40px; }
.tool::before { content: ""; display: block; height: 7px; margin: -30px -31px 26px; background: var(--neat); border: 1px solid var(--navy); }
.tool .q { margin: 0 0 24px; padding-bottom: 22px; border-bottom: 1px dashed #c5d6e4; }
.tool .q > label, .tool .q-label { font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--navy); margin-bottom: 12px; }
.tool .row label { font-weight: 600; font-size: 15px; color: var(--navy); display: block; margin-bottom: 6px; }
.tool input:not([type=radio]):not([type=checkbox]), .tool select { border: 1.5px solid #b6c3cf; border-radius: 3px; min-height: 48px; }
.tool input:not([type=radio]):not([type=checkbox]):focus, .tool select:focus { border-color: var(--ocean); outline: 3px solid rgba(29, 95, 150, .25); }
.choices { gap: 10px; }
.choices label { border: 1.5px solid #b6c3cf; border-radius: 3px; padding: 10px 16px; min-height: 46px; font-size: 16px; font-weight: 600; color: var(--navy); background: #fff; transition: background-color .15s, border-color .15s; }
.choices label:hover { border-color: var(--navy); }
.choices input { accent-color: var(--navy); width: 18px; height: 18px; }
.choices label:has(input:checked) { background: var(--navy); border-color: var(--navy); color: #fff; }
.choices label:has(input:checked) input { accent-color: var(--yellow); }
.choices label:has(input:focus-visible) { outline: 3px solid var(--ocean); outline-offset: 2px; }
.tool .hint { font-size: 14.5px; margin-top: 8px; }
.tool > form > .btn, #pb-go { margin-top: 2px; }
.result { background: #fff; border: 1px solid #c5d6e4; border-left: 6px solid var(--ocean); border-radius: 0 var(--radius) var(--radius) 0; padding: 22px 24px; margin-top: 24px; }
.result.ok { background: #f0f7f2; border-color: #b7dfc7; border-left-color: #1e7a4a; }
.result.warn { background: #fffaf0; border-color: #f0dca4; border-left-color: var(--yellow-2); }
.result.ko { background: #fdf1f0; border-color: #f2c4c0; border-left-color: var(--red); }
.result-title { font-family: var(--font-head); font-weight: 600; font-size: 21px; color: var(--navy); line-height: 1.3; }
.result-big { font-family: var(--font-head); font-weight: 600; font-size: clamp(30px, 4vw, 40px); color: var(--navy); margin: 8px 0 12px; }
.result ul, .result ol { padding-left: 22px; }
.result li { margin: 6px 0; }
.result .btn { margin-top: 6px; }
@media (max-width: 600px) { .tool { padding: 22px 18px 20px; } .tool::before { margin: -22px -19px 22px; } .choices label { width: 100%; } .tool .btn { width: 100%; } }

/* ---------- Pied de page ---------- */
.site-footer { position: relative; overflow: hidden; padding: 64px 0 30px; font-size: 15.5px; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px; background: var(--neat); border-bottom: 1px solid var(--navy); }
.site-footer::after { content: ""; position: absolute; right: -150px; bottom: -170px; width: 560px; height: 560px; background: url(/assets/rose-des-vents.svg) center / contain no-repeat; filter: invert(1) grayscale(1); opacity: .06; pointer-events: none; }
.site-footer .wrap { position: relative; z-index: 1; }
.footer-grid { gap: 40px; }
.brand-footer .brand-name { color: #fff; }
.site-footer .brand-logo rect { stroke: rgba(255, 255, 255, .35); stroke-width: 2; }
.footer-text { color: var(--mist); opacity: 1; max-width: 440px; }
.footer-title { font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--yellow); margin-bottom: 14px; }
.site-footer li { margin: 8px 0; }
.site-footer a:hover { color: var(--yellow); }
.disclaimer { opacity: 1; color: #a9bbcd; border-top-color: rgba(255, 255, 255, .16); margin-top: 44px; font-size: 13.5px; line-height: 1.6; }
.disclaimer a { color: #fff; }
.legal-links a { color: #a9bbcd; }
@media (max-width: 760px) { .footer-grid { gap: 28px 20px; grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } .site-footer li { margin: 0; } .site-footer li a { display: inline-block; padding: 10px 0; line-height: 1.4; } .legal-links a { padding: 8px 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (max-width: 600px) { .prose th, .prose td { padding: 10px 10px; font-size: 14.5px; } .prose thead th { font-size: 11px; letter-spacing: .08em; } }
