/* Application web de NautiLink : identité graphique du 2026-11-26 (D-157,
   docs/05-identite-marque.md §15) : ciel et mer, cartes blanches arrondies,
   boutons turquoise, titres bleu marine ; thème sombre (D-97) selon le
   réglage de l'appareil. */
:root {
  --fond: #F4FAFE; --bandeau: rgba(255,255,255,.82); --surface: #FFFFFF; --texte: #0B2A55; --texte2: #4A6380;
  --filet: #D6E6F2; --action: #1565C0; --bouton: #0B7F86; --sur-action: #FFFFFF; --sos: #D94343; --beta: #FDE8E8;
  --sur-beta: #B3261E; --ok: #0B7F86; --ciel: #DDEFFB; --ombre: 0 6px 20px rgba(11,42,85,.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #08172A; --bandeau: rgba(15,36,56,.9); --surface: #15314D; --texte: #E3EEF7; --texte2: #9BB4C9;
    --filet: #24476A; --action: #5AAEE6; --bouton: #2BC0C6; --sur-action: #08172A; --sos: #E35D5D;
    --beta: #3A1518; --sur-beta: #FFB4AB; --ciel: #0F2438; --ombre: 0 6px 20px rgba(0,0,0,.35);
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: linear-gradient(180deg, var(--ciel) 0, var(--fond) 360px) no-repeat, var(--fond); color: var(--texte);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.5;
}
.beta { background: var(--beta); color: var(--sur-beta); font-size: .92rem; font-weight: 600; padding: 8px 16px; text-align: center; }
.beta::before { content: "⚠ "; }
.beta a { color: var(--sur-beta); font-weight: 700; }
header { background: var(--bandeau); border-bottom: 1px solid var(--filet); box-shadow: var(--ombre); padding: 12px 16px; position: sticky; top: 0; z-index: 20; backdrop-filter: blur(6px); }
header .ligne { max-width: 860px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
header .marque { font-family: Inter, system-ui, sans-serif; font-weight: 800; font-size: 1.6rem; letter-spacing: -.01em; color: var(--texte); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
header .marque img.logo { width: 44px; height: 44px; border-radius: 12px; box-shadow: var(--ombre); } /* logo devant le titre (D-156) */
header .signature { font-style: italic; font-weight: 500; font-size: .9rem; color: var(--texte2); }
nav { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; margin-left: auto; }
nav a, .lien { color: var(--action); font-weight: 600; text-decoration: none; }
nav a:hover, .lien:hover { text-decoration: underline; }
main { max-width: 860px; margin: 0 auto; padding: 24px 16px; }
h1, h2 { font-family: Inter, system-ui, sans-serif; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
h1 { font-size: 1.8rem; margin: 0 0 16px; }
h2 { font-size: 1.2rem; margin: 0 0 12px; }
.carte { background: var(--surface); border: 1px solid var(--filet); border-radius: 16px; box-shadow: var(--ombre); padding: 20px; margin-bottom: 16px; }
.message { border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; border: 2px solid var(--ok); }
.erreur { border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; border: 2px solid var(--sos); }
label { display: block; font-weight: 600; margin: 12px 0 4px; }
label.case { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
label.case input { margin-top: 5px; width: 20px; height: 20px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], select {
  width: 100%; min-height: 44px; padding: 8px 12px; font-size: 1rem; color: var(--texte);
  background: var(--surface); border: 1px solid var(--filet); border-radius: 12px;
}
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; }
button, .bouton {
  display: inline-block; min-height: 44px; padding: 10px 18px; margin-top: 16px; font-size: 1rem; font-weight: 600;
  color: var(--sur-action); background: var(--bouton); border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 12px rgba(23,162,176,.28);
}
button:hover, .bouton:hover { filter: brightness(1.06); }
button.secondaire { background: var(--surface); color: var(--action); border: 1px solid var(--filet); box-shadow: none; }
button.danger { background: transparent; color: var(--sos); border: 2px solid var(--sos); box-shadow: none; }
.bouton.sos, button.sos { background: #D94343; color: #FFFFFF; box-shadow: 0 4px 12px rgba(217,67,67,.3); }
form.enligne { display: inline; }
form.enligne button { margin-top: 0; }
.aide { color: var(--texte2); font-size: .9rem; margin: 4px 0 0; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--filet); vertical-align: top; }
.grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.photo-bateau { max-width: 100%; max-height: 260px; border-radius: 8px; }
code.lien-invitation { word-break: break-all; }
.historique-sos, .liens-assistance { list-style: none; padding: 0; margin: 0; }
.alerte-sos { border-left: 4px solid var(--sos); padding: 4px 0 4px 12px; margin-bottom: 16px; }
.liens-assistance li { margin-bottom: 12px; }
/* Pied de page : vagues (D-157). */
footer { text-align: center; color: var(--texte2); font-size: .85rem; padding: 56px 16px 16px; margin-top: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 C200 0 400 60 600 30 S1000 0 1200 30 V60 H0Z' fill='%2317A2B0' fill-opacity='.18'/%3E%3Cpath d='M0 42 C250 18 450 66 700 40 S1050 24 1200 44 V60 H0Z' fill='%231565C0' fill-opacity='.16'/%3E%3C/svg%3E") top / 100% 48px no-repeat, var(--ciel); }
footer p { margin: .2rem 0; }
footer .construction { font-size: .75rem; }

/* Annonces de l'administrateur (RG-ADM-06) et espace administrateur. */
.annonce { display: flex; gap: 12px; align-items: center; justify-content: space-between; background: var(--surface);
  border: 2px solid var(--action); border-radius: 16px; padding: 12px 16px; margin-bottom: 16px; }
.annonce p { margin: 0; }
textarea, input[type=date] { width: 100%; padding: 8px 12px; font: inherit; color: var(--texte);
  background: var(--surface); border: 1px solid var(--filet); border-radius: 12px; }
.admin header { background: var(--texte); }
.admin header .marque, .admin header .signature { color: var(--fond); }
.admin nav a { color: var(--fond); }
dl.chiffres { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; }
dl.chiffres dd { margin: 0; font-weight: 600; }

/* Log de nav (TODO-6.1, D-156) : une ligne par navigation ; au survol (ou
   au clavier), une fenêtre avec le détail et l'aperçu, sans JavaScript. */
h3 { font-size: 1.05rem; margin: 0 0 4px; }
section { margin-bottom: 24px; }
.masque { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.filtres { margin-bottom: 8px; }
.filtres .actif { text-decoration: underline; }
ul.log { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--filet); border-radius: 16px; box-shadow: var(--ombre); }
ul.log li.navigation { position: relative; padding: 10px 16px; border-top: 1px solid var(--filet); white-space: nowrap; overflow: visible; }
ul.log li.navigation:first-child { border-top: 0; }
ul.log li.navigation:hover, ul.log li.navigation:focus-within { background: var(--fond); }
a.titre-log { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95rem; color: var(--texte); text-decoration: none; white-space: normal; }
a.titre-log:hover { text-decoration: underline; }
.etiquette { display: inline-block; padding: 0 8px; border-radius: 10px; background: var(--bouton); color: var(--sur-action); font-size: .8rem; font-weight: 600; }
dl.resume { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 8px 0 0; }
dl.resume dt { color: var(--texte2); }
dl.resume dd { margin: 0; }
.bulle { display: none; position: absolute; z-index: 10; left: 16px; top: 100%; width: min(360px, calc(100vw - 48px)); white-space: normal;
  background: var(--surface); border: 1px solid var(--filet); border-radius: 12px; padding: 12px 14px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.bulle p { margin: 0 0 4px; }
@media (hover: hover) { ul.log li.navigation:hover .bulle { display: block; } }
ul.log li.navigation:focus-within .bulle { display: block; }
.bulle svg.carte { max-width: 332px; margin-top: 8px; }

/* Carte (RG-NAV-29) : dalles OpenStreetMap et OpenSeaMap, tracé, points. */
svg.carte { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--filet); }
svg.carte .mer { fill: #AAD3DF; }
svg.carte .trace { fill: none; stroke: #0E6BA8; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
svg.carte .point { stroke: #FFFFFF; stroke-width: 2; fill: #0E6BA8; }
svg.carte .point.position { fill: #0E6BA8; stroke-width: 1; }
svg.carte .point.depart { fill: #13A6AD; }
svg.carte .point.arrivee, svg.carte .point.derniere { fill: #0E2A47; }
svg.carte .point.evenement { fill: #F2C14E; }
svg.carte .point.sos { fill: #D94343; }
svg.carte .point.incident { fill: #E8833A; }

/* Page d'une navigation (TODO-6.2). */
.etat { font-weight: 600; margin: 0 0 8px; }
.etat.en_cours { color: var(--ok); }
.etat.corbeille { color: var(--sos); }
.deux { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; align-items: start; }
.legende .pastille { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: middle; }
.pastille.depart { background: #13A6AD; }
.pastille.arrivee, .pastille.derniere { background: #0E2A47; outline: 1px solid var(--texte2); }
.pastille.evenement { background: #F2C14E; }
.pastille.sos { background: #D94343; }
.pastille.incident { background: #E8833A; }
.source a { color: var(--texte2); }
.alertes { border: 2px solid var(--sos); }
.alertes ul { margin: 0; padding-left: 20px; }
ol.journal { list-style: none; margin: 0; padding: 0; }
ol.journal li.evenement { border-left: 3px solid var(--filet); padding: 4px 0 8px 12px; margin-bottom: 8px; }
ol.journal li.sos { border-left-color: var(--sos); }
ol.journal li.incident { border-left: 6px solid #E8833A; background: var(--bandeau); }
ol.journal li.debut, ol.journal li.fin { border-left-color: var(--action); }
ol.journal .entete { margin: 0; }
ol.journal .texte { margin: 4px 0; white-space: pre-line; }
img.photo { max-width: 100%; max-height: 360px; border-radius: 8px; }
audio { width: 100%; max-width: 420px; }
ul.personnes { margin: 0 0 12px; padding-left: 20px; }
ul.personnes li { margin-bottom: 4px; }
ul.personnes.alertees { padding-left: 0; list-style: none; }
ul.personnes.alertees li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; border-bottom: 1px solid var(--filet); padding: 4px 0; }
ul.personnes.alertees label.case { margin: 0; align-items: center; min-height: 44px; }
ul.personnes.alertees label.case input { margin-top: 0; }

/* Formulaires du navigateur (TODO-6.3). */
input[type=datetime-local], input[type=file] { width: 100%; min-height: 44px; padding: 8px 12px; font: inherit; color: var(--texte);
  background: var(--fond); border: 1px solid var(--filet); border-radius: 8px; }
details.modifier { margin-top: 6px; }
details.modifier summary { color: var(--action); font-weight: 600; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; }
details.modifier form { margin-bottom: 8px; }

/* Écrans d'accès (connexion, création du compte, mot de passe oublié) :
   écran de connexion de l'étude Nautilinkimages261126 (D-157, §15) ;
   largeur d'un téléphone d'abord, carte centrée sur un grand écran. */
.acces { max-width: 440px; margin: 0 auto 8px; background: var(--surface); border-radius: 24px; box-shadow: var(--ombre); overflow: hidden; }
.acces-ciel { position: relative; min-height: 210px; }
.acces-decor { display: block; width: 100%; height: 210px; }
.acces-decor .ciel-haut { stop-color: #CFE8FA; }
.acces-decor .ciel-bas { stop-color: #F4FAFE; }
.acces-decor .mer-haut { stop-color: #2F7FC8; }
.acces-decor .mer-bas { stop-color: #0B4F94; }
.acces-decor .nuage { fill: #FFFFFF; opacity: .85; }
.acces-decor .ile { fill: #7FA6C9; }
.acces-decor .reflet { stroke: #FFFFFF; stroke-opacity: .45; stroke-width: 2; stroke-linecap: round; fill: none; }
.acces-decor .coque { fill: #0B2A55; }
.acces-decor .mat { stroke: #0B2A55; stroke-width: 2; }
.acces-decor .voile { fill: #FFFFFF; stroke: #C9D8E6; stroke-width: 1; }
.acces-decor .vague-1, .acces-vagues .vague-1 { fill: #17A2B0; fill-opacity: .55; }
.acces-decor .vague-2 { fill: var(--surface); }
.acces-vagues .vague-2 { fill: #1565C0; fill-opacity: .45; }
.acces-marque { position: absolute; top: 18px; left: 18px; right: 18px; display: flex; gap: 12px; align-items: center; }
.acces-marque img { width: 72px; height: 72px; border-radius: 16px; box-shadow: var(--ombre); flex: none; }
.acces-nom { margin: 0; font-weight: 800; font-size: 2rem; letter-spacing: -.02em; color: #0B2A55; line-height: 1.1; }
.acces-signature { margin: 2px 0 0; font-style: italic; font-size: .9rem; color: #0B2A55; }
.acces-corps { padding: 4px 20px 12px; }
.acces h1 { text-align: center; margin: 0 0 4px; }
.acces-sous-titre { text-align: center; color: var(--texte2); margin: 0 0 16px; }
.acces-lien, .acces-pied { text-align: center; margin: 12px 0 0; }
.acces-pied { border-top: 1px solid var(--filet); padding-top: 12px; color: var(--texte2); }
.acces-vagues { display: block; width: 100%; height: 40px; }
.champ-icone { position: relative; margin-top: 12px; }
.champ-icone .icone { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%);
  fill: none; stroke: var(--texte2); stroke-width: 1.6; stroke-linejoin: round; pointer-events: none; }
.champ-icone input { padding-left: 44px; min-height: 48px; }
.champ-icone input[type=password], .champ-icone input#motdepasse { padding-right: 52px; }
button.oeil { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); margin: 0; width: 44px; min-height: 44px; padding: 0;
  background: transparent; box-shadow: none; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
button.oeil[hidden] { display: none; }
button.oeil svg { width: 22px; height: 22px; fill: none; stroke: var(--texte2); stroke-width: 1.6; }
button.oeil[aria-pressed=true] svg { stroke: var(--action); }
button.pleine { display: block; width: 100%; min-height: 48px; font-size: 1.05rem; }
@media (prefers-color-scheme: dark) {
  .acces-decor .ciel-haut { stop-color: #1B3F63; }
  .acces-decor .ciel-bas { stop-color: #15314D; }
  .acces-nom, .acces-signature { color: #E3EEF7; }
}

/* Application web sur l'écran d'un téléphone (RG-WEB-04, D-162) : menu
   replié derrière « Menu », tableaux empilés avec l'intitulé de chaque
   colonne, zones à toucher de 44 px, rien de plus large que l'écran. */
html { -webkit-text-size-adjust: 100%; }
img, svg, video, audio, iframe { max-width: 100%; }
main, .carte, dd, td, .texte { overflow-wrap: anywhere; }
dl.resume { grid-template-columns: max-content minmax(0, 1fr); }
.menu-bouton { margin: 0 0 0 auto; }
@media (min-width: 721px) { .menu-bouton { display: none; } }
@media (max-width: 720px) {
  header .ligne { gap: 8px 12px; }
  header .signature { flex-basis: 100%; order: 3; }
  header.menu-js nav { display: none; flex-basis: 100%; order: 4; flex-direction: column; align-items: stretch; margin: 4px 0 0; gap: 0; }
  header.menu-js.ouvert nav { display: flex; }
  nav a { display: flex; align-items: center; min-height: 44px; padding: 0 4px; border-top: 1px solid var(--filet); }
  nav form.enligne { display: block; padding-top: 8px; }
  nav form.enligne button { width: 100%; }
  main { padding: 16px 12px; }
  .carte { padding: 16px; }
  h1 { font-size: 1.5rem; }
  table.empilable, table.empilable tbody, table.empilable tr, table.empilable td { display: block; width: 100%; }
  table.empilable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.empilable tr { border-bottom: 1px solid var(--filet); padding: 8px 0; }
  table.empilable td { border: 0; padding: 2px 0; }
  table.empilable td[data-label]::before { content: attr(data-label) " : "; color: var(--texte2); font-weight: 600; }
  .filtres a, .lien { display: inline-flex; align-items: center; min-height: 44px; }
  dl.resume, dl.chiffres { grid-template-columns: minmax(0, 1fr); }
  dl.resume dt { margin-top: 6px; }
  ul.log li.navigation { white-space: normal; }
  .bulle { left: 0; width: calc(100vw - 40px); }
  .annonce { flex-wrap: wrap; }
}
[hidden] { display: none !important; }
