/* Feuille commune du site de présentation NautiLink (toutes les pages sauf securite.html, qui a ses propres styles).
   Identité graphique du 2026-11-26 (D-157) et mise en page de l'étude docs/etudes/Nautilinkimages261126.png (D-161) :
   valeurs dans docs/05-identite-marque.md §15. */
:root {
  --navy: #0B2A55;
  --teal: #17A2B0;
  --action: #0B7F86;
  --action-hover: #096A70;
  --action-fg: #FFFFFF;
  --link: #1565C0;
  --icon: #1565C0;
  --alert: #D94343;
  --alert-text: #B3261E;
  --alert-bg: #FDE8E8;
  --alert-line: #F6C6C6;
  --sky: #DDEFFB;
  --page: #F4FAFE;
  --surface: #FFFFFF;
  --fg: #0B2A55;
  --muted: #4A6380;
  --line: #D6E6F2;
  --sea-1: #4D9BD6;
  --sea-2: #1F6FB5;
  --sea-3: #0D4F8C;
  --wave-1: #A9D3EE;
  --wave-2: #4B9BD8;
  --footer: #0D4F8C;
  --footer-fg: #E6F0F5;
  --shadow: 0 8px 24px rgba(11, 42, 85, .09);
  --radius: 18px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  /* Thème sombre (D-97, §15). */
  :root {
    --navy: #0E2A43; --teal: #2BC0C6; --action: #2BC0C6; --action-hover: #5ED3D8; --action-fg: #08172A;
    --link: #5AAEE6; --icon: #5AAEE6; --alert: #E35D5D; --alert-text: #FFB4AB; --alert-bg: #3A1518; --alert-line: #6B2A30;
    --sky: #0F2438; --page: #08172A; --surface: #15314D; --fg: #E3EEF7; --muted: #9BB4C9; --line: #24476A;
    --sea-1: #1B5384; --sea-2: #123F68; --sea-3: #0A2A48;
    --wave-1: #1B4A73; --wave-2: #123F68; --footer: #0A2A48; --footer-fg: #E3EEF7;
    --shadow: 0 8px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--fg); font-family: var(--font); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
svg { display: block; }
a { color: var(--link); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font); font-weight: 800; letter-spacing: -.015em; line-height: 1.2; text-wrap: balance; margin: 0; color: var(--fg); }
p { margin: 0; }
.wrap { max-width: 1140px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }

/* En-tête */
.topnav { background: var(--surface); box-shadow: var(--shadow); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.topnav .wrap { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-block: .75rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--fg); min-width: 0; }
.brand img { width: 64px; height: 64px; border-radius: 14px; box-shadow: 0 4px 12px rgba(11, 42, 85, .25); }
.brand .name { display: flex; align-items: center; flex-wrap: wrap; gap: .1rem .5rem; font-weight: 800; font-size: 2.1rem; line-height: 1.05; letter-spacing: -.02em; }
.brand .sig { display: block; font-style: italic; font-weight: 500; font-size: 1rem; }
.badge { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--alert-text); background: var(--alert-bg); border: 1px solid var(--alert-line); border-radius: 999px; padding: .05rem .5rem; }
.topnav nav { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem 1.2rem; }
.topnav nav a { color: var(--fg); text-decoration: none; font-weight: 600; font-size: .98rem; min-height: 44px; display: inline-flex; align-items: center; gap: .35rem; border-bottom: 3px solid transparent; }
.topnav nav a:hover { color: var(--link); }
.topnav nav a[aria-current="page"] { border-bottom-color: var(--teal); }
.topnav nav a.home { min-width: 44px; justify-content: center; }
.topnav nav a.home .ico { width: 1.7em; height: 1.7em; }
.topnav nav a.button { border-bottom: 0; color: var(--action-fg); padding-inline: 1.3rem; }
.topnav nav a.button[aria-current="page"] { outline: 3px solid var(--teal); outline-offset: 2px; }
@media (min-width: 821px) { .topnav { position: sticky; top: 0; } }

/* Boutons */
.button { display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; font-weight: 700; text-decoration: none; border-radius: 999px; padding: .65rem 1.5rem; background: var(--action); color: var(--action-fg); box-shadow: 0 6px 16px rgba(11, 127, 134, .28); border: 0; }
.button:hover { background: var(--action-hover); }
.button.navy { background: var(--fg); color: var(--surface); box-shadow: none; }
.button.ghost { background: var(--surface); color: var(--fg); box-shadow: var(--shadow); }
.button.large { font-size: 1.1rem; padding: .8rem 1.8rem; }
.button .ico { width: 1.2em; height: 1.2em; }

/* Bandeau mer et voilier : photo docs/etudes/IMG_20230508_112008.jpg de l'utilisateur, réduite à 2000 px (assets/mer-voilier.jpg) */
.hero { position: relative; overflow: hidden; min-height: clamp(380px, 44vw, 560px);
  background: url(assets/mer-voilier.jpg) 68% 100% / cover no-repeat, #CFE8F8; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(244,250,254,.55), rgba(244,250,254,0) 60%); }
.hero .wrap { position: relative; z-index: 1; padding-block: 3rem 3rem; display: grid; gap: 1rem; justify-items: start; }
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 3.2rem); color: #0B2A55; }
.hero h1 span { display: block; }
.bar { width: 110px; height: 4px; border-radius: 4px; background: var(--teal); }
.hero .slogan { font-style: italic; font-weight: 500; font-size: clamp(1.1rem, 2.3vw, 1.45rem); color: #0B2A55; }
.hero .button { margin-top: .4rem; }

/* Rangée des six fonctions */
.strip { background: var(--surface); box-shadow: var(--shadow); position: relative; z-index: 1; }
.strip ul { list-style: none; margin: 0; padding: 1.1rem 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.strip li { text-align: center; padding: .3rem .6rem; border-left: 1px solid var(--line); }
.strip li:first-child { border-left: 0; }
.strip a { display: grid; justify-items: center; gap: .35rem; color: var(--fg); text-decoration: none; font-weight: 500; line-height: 1.3; min-height: 44px; }
.strip a:hover span { text-decoration: underline; }
.strip .ico { width: 36px; height: 36px; color: var(--icon); }
.sos-dot { width: 38px; height: 38px; border-radius: 50%; background: var(--alert); color: #FFFFFF; font-weight: 800; font-size: .76rem; display: grid; place-items: center; }

/* Cartes de l'accueil */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; padding-top: 2rem; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.card .body { padding: 1.5rem; display: grid; gap: .8rem; align-content: start; }
.card h2 { font-size: clamp(1.3rem, 2.3vw, 1.55rem); }
.card .button { justify-self: start; }
.card.prepare { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.card.prepare .art { background: url(assets/carte-winch.jpg) center / cover no-repeat, var(--sea-1); min-height: 200px; } /* découpé dans l'étude, D-171 */
.card.simple { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 210px); align-items: center; }
.card.simple .art { padding: 1rem 1.2rem 1rem 0; }
.card.simple .art img { display: block; width: 100%; height: auto; border-radius: 12px; } /* découpé dans l'étude, D-171 */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.checks li { display: flex; gap: .6rem; align-items: flex-start; }
.checks .ico { width: 24px; height: 24px; color: var(--action); margin-top: .1rem; }

/* Bandeau bêta et sponsor, en bas de chaque page */
.notice { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 1.5rem; align-items: center; margin-top: 2.5rem; }
.beta { display: flex; gap: 1rem; align-items: center; background: var(--alert-bg); border: 1px solid var(--alert-line); border-radius: 14px; padding: .9rem 1.2rem; color: var(--alert-text); font-weight: 600; }
.beta .ico { width: 44px; height: 44px; color: var(--alert); }
.beta b { display: block; color: var(--fg); font-weight: 800; }
.beta a { color: var(--alert-text); }
.sponsor { display: flex; gap: .7rem; align-items: center; color: #1E3296; }
.sponsor img { height: 48px; width: auto; }
.sponsor p { line-height: 1.35; font-weight: 500; }
.sponsor a { color: #1E3296; font-weight: 700; }
@media (prefers-color-scheme: dark) { .sponsor, .sponsor a { color: var(--fg); } }

/* Sections de contenu */
main section { padding-top: 3rem; }
.kicker { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--link); }
.head { display: grid; gap: .5rem; margin-bottom: 1.6rem; max-width: 70ch; }
.head h2 { font-size: clamp(1.5rem, 3.3vw, 2.05rem); }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.feature { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem; display: grid; gap: .5rem; align-content: start; min-width: 0; }
.feature h3 { font-size: 1.1rem; }
.feature.sos { border-top: 4px solid var(--alert); }
.feature.sos h3 { color: var(--alert-text); }
.feature .button { justify-self: start; margin-top: .4rem; }
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.role { border-radius: var(--radius); padding: 1.5rem; display: grid; gap: .7rem; align-content: start; min-width: 0; background: var(--surface); box-shadow: var(--shadow); }
.role.nav { background: linear-gradient(160deg, #1565C0, #0B2A55); color: #FFFFFF; }
.role.nav h3 { color: #FFFFFF; }
.role ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.quota { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.big { font-weight: 800; font-size: clamp(2.4rem, 6vw, 3.4rem); color: var(--link); line-height: 1; letter-spacing: -.02em; }
.free { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.free li { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); padding: .65rem 1rem; }

/* Pages de texte (télécharger, abonnement, avertissement) */
main.text section { padding-top: 1.5rem; }
main.text section:first-child { padding-top: 2.2rem; }
main.text .legal { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.2rem, 3vw, 2rem); width: calc(100% - 24px); }
main.text h1 { font-size: clamp(1.8rem, 4.2vw, 2.5rem); }
.legal { display: grid; gap: 1rem; }
.legal h2 { font-size: 1.35rem; }
.legal h3 { font-size: 1.05rem; margin-top: .5rem; }
.legal .button { justify-self: start; }
.legal ul { margin: 0; padding-left: 1.3rem; display: grid; gap: .35rem; }
/* FAQ (D-171) */
.faq { border-top: 1px solid var(--line); padding-top: .9rem; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--fg); list-style-position: outside; }
.faq summary:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 4px; }
.faq p { margin: .6rem 0 0; }
ol.steps { margin: 0; padding-left: 1.3rem; display: grid; gap: .45rem; }
code { font-size: .9em; background: var(--page); border: 1px solid var(--line); border-radius: 4px; padding: 0 .25rem; }
.note { background: var(--page); border-left: 4px solid var(--teal); border-radius: 12px; padding: 1rem 1.2rem; }
.note.danger { background: var(--alert-bg); border-left-color: var(--alert); color: var(--alert-text); font-weight: 600; }
.commit { font-size: .85rem; }

/* Vagues et pied de page */
.waves { margin-top: 2.5rem; height: 70px; }
.waves svg { width: 100%; height: 100%; }
.wave-1 { fill: var(--wave-1); }
.wave-2 { fill: var(--wave-2); }
.wave-3 { fill: var(--footer); }
footer { background: var(--footer); color: var(--footer-fg); font-size: .92rem; }
footer .wrap { padding-block: .4rem 2rem; display: grid; gap: .6rem; }
footer a { color: #FFFFFF; }

@media (max-width: 980px) {
  .strip ul { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1rem; }
  .strip li:nth-child(4) { border-left: 0; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .features, .roles, .quota, .notice { grid-template-columns: 1fr; }
  .topnav .wrap, .topnav nav { justify-content: center; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand img { width: 52px; height: 52px; }
  .brand .name { font-size: 1.7rem; }
  .brand .sig { font-size: .86rem; }
  .topnav nav { gap: 0 .9rem; }
  .hero .wrap { padding-top: 2rem; }
  .strip ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip li { border-left: 0; }
  .strip li:nth-child(odd) { border-right: 1px solid var(--line); }
  .card.prepare, .card.simple { grid-template-columns: 1fr; }
  .card.prepare .art { min-height: 150px; }
  .card.simple .art { padding: 0 1.5rem 1.5rem; max-width: 280px; }
  .beta { align-items: flex-start; }
  .beta .ico { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
