/* Portolea — page « Préparer un itinéraire » (D040), feuille chargée par cette seule page. Formulaire : classes v- d'avis.css.
   Règles du système de design tenues : pas de dégradé, pas de texte posé sur une image (seules des pastilles opaques, comme le
   crédit des fiches) ; la « feuille » en surface mord sur la photo ; un filet plutôt qu'une ombre ; une seule couleur vive
   (large), le magenta réglementaire pour la seule clearance. Planches de carte : classes n-carte__ et c- des fiches.
   Classes déjà prises par site.css pour les pages d'information, à ne pas redéfinir : form, texte, photos, videos, retour, facultatif,
   piege, chiffres (« Qui sommes-nous » : sa grille écrasait celle des chiffres de la couverture, d'où i-totaux). */
.i-page { --i-bord: max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: var(--espace-5); padding-top: var(--espace-4); padding-bottom: var(--espace-8); }
.i-frise ol, .i-jours, .i-visites, .i-badges, .i-faits, .i-points, .i-autres__liste, .i-variantes ul, .i-idees, .i-totaux, .i-ruban, .i-etape, .i-puces,
.i-services, .i-fil, .i-pas, .i-liste, .i-agenda, .i-films, .i-table, .i-clearances { list-style: none; margin: 0; padding: 0; }
.i-surtitre { margin: 0; color: var(--large); font: 600 13px/18px var(--font-texte); letter-spacing: 0.08em; text-transform: uppercase; }
.i-feuille { display: flex; flex-direction: column; gap: var(--espace-4); min-width: 0; padding: var(--espace-5) var(--espace-4); border: 1px solid var(--trait); border-radius: var(--rayon-l); background: var(--surface); }
.n-scope .i-feuille > * { margin: 0; }

/* La une : la photo, la feuille du formulaire qui mord dessus, les idées de croisière */
.i-une { display: flex; flex-direction: column; }
.i-une__vue { position: relative; margin: 0 calc(-1 * var(--i-bord)); aspect-ratio: 16 / 9; overflow: hidden; background: var(--haut-fond); }
.i-une__vue img, .i-couv__vue img, .i-jour__vue img { display: block; width: 100%; height: 100%; object-fit: cover; }
.i-une__vue .l-photo__credit { top: 8px; bottom: auto; }  /* le bas de la photo passe sous la feuille : le crédit, exigé par la licence, reste lisible */
.i-une__corps { position: relative; display: grid; gap: var(--espace-6); margin-top: -48px; }
.i-une--sans .i-une__corps { margin-top: 0; }
.n-scope .i-une .t-h1 { font-size: 30px; line-height: 36px; text-wrap: balance; }
.i-une__cote { display: flex; flex-direction: column; gap: var(--espace-4); min-width: 0; }
.n-scope .i-une__cote > * { margin: 0; }
.i-idees { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: var(--espace-3); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding-bottom: var(--espace-2); }
.i-idee { display: flex; flex-direction: column; gap: 4px; min-width: 0; scroll-snap-align: start; }
.i-idee__carte { display: flex; flex-direction: column; width: 100%; padding: 0; border: 1px solid var(--trait); border-radius: var(--rayon-m); background: var(--surface); color: var(--encre); font: inherit; text-align: left; overflow: hidden; cursor: pointer; }
.i-idee__carte:hover, .i-idee__carte:focus-visible { border-color: var(--large); }
.i-idee__carte img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--haut-fond); }
.i-idee__texte { display: flex; flex-direction: column; padding: 10px 12px 12px; }
.i-idee__texte strong { font: 600 16px/22px var(--font-display); }
.i-idee__texte span { color: var(--encre-douce); font-size: 14px; line-height: 20px; }
.n-scope .i-idee__credit { margin: 0; color: var(--encre-douce); font-size: 12px; line-height: 16px; }
.i-points { display: grid; gap: var(--espace-4); }
.i-points li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; }
.n-scope .i-points svg.lucide { width: 24px; height: 24px; color: var(--large); }
.n-scope .i-points__titre { margin: 0; font: 600 16px/22px var(--font-display); }
.n-scope .i-points p { margin: 0; color: var(--encre-douce); font-size: 15px; line-height: 22px; }

/* Saisie */
.i-saisie { display: grid; gap: var(--espace-5); }
.i-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--espace-3); }
.i-champ { display: flex; flex-direction: column; gap: var(--espace-3); }
.i-champ .v-aide { margin: 0; color: var(--encre-douce); }
.i-ajout { display: flex; gap: var(--espace-2); }
.i-ajout .n-champ__saisie { flex: 1; min-width: 0; }
.i-ajout .h-combo { flex: 1; }
/* Croix qui efface le port choisi : cachée tant que le champ est vide */
.i-demande [name="depart"], .i-demande [name="retour"] { padding-right: 48px; }
.i-effacer { position: absolute; top: 50%; right: 2px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: none; color: var(--encre-douce); cursor: pointer; transform: translateY(-50%); }
.i-effacer:hover { color: var(--encre); background: var(--haut-fond); }
.n-scope .i-effacer svg.lucide { width: 20px; height: 20px; }
.n-champ__saisie:placeholder-shown + .i-effacer { display: none; }
/* Suggestions des ports et destinations : picto, nom, île sur une ligne ; la liste de l'en-tête (site.css) les met sur deux. */
.i-demande .h-option__nom, .i-demande .h-option__zone { display: inline; }
.i-demande .h-option__zone::before { content: " — "; }
.n-scope .i-demande .h-liste { inset: calc(100% + 6px) auto auto 0; width: max-content; min-width: 100%; max-width: min(100vw - 32px, 440px); }  /* plus large que son champ : les noms tiennent sur une ligne */
.i-grille > .n-champ:last-child .h-liste { left: auto; right: 0; }  /* le port de retour, à droite : la liste reste dans la feuille */
.i-visites { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--espace-2); }
.i-visites:empty { display: none; }
.i-visite { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border-radius: var(--rayon-pilule); background: var(--haut-fond); font-weight: 600; }
.i-visite__retirer { position: relative; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.i-visite__retirer::after { content: ""; position: absolute; inset: -10px; }  /* zone de toucher de 48 px autour du × */
.i-visite__retirer:hover { background: var(--surface); }
.n-scope .i-portee { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: var(--espace-2) 0 0; font-size: 15px; line-height: 22px; }
.i-portee__titre, .i-portee__loin { color: var(--encre-douce); }
.i-portee__ile { display: inline-flex; align-items: center; gap: 6px; min-height: var(--cible-tactile); padding: 4px 14px; border: 1px dashed var(--large); border-radius: var(--rayon-pilule); background: var(--surface); color: var(--large); font: 600 15px/22px var(--font-texte); cursor: pointer; }
.i-portee__ile:hover { background: var(--haut-fond); }
.i-portee__ile small { font-weight: 400; color: var(--encre-douce); }
.i-demande .i-plus > .i-champ, .i-demande .i-plus > .i-grille { margin-top: var(--espace-4); }
.i-demande .i-plus .k-case { margin-top: var(--espace-2); }
.i-acces { display: flex; flex-direction: column; gap: var(--espace-3); padding: var(--espace-4); border: 2px solid var(--large); border-radius: var(--rayon-l); }
.n-scope .i-acces > * { margin: 0; }
.i-acces .k-fournisseurs { max-width: 360px; }
.n-scope .i-attente { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; color: var(--encre-douce); }
.n-scope .i-feuille > .n-alerte { padding: 10px 14px; border-radius: var(--rayon-m); }
.n-scope .i-avertissement { display: flex; gap: 8px; align-items: flex-start; max-width: var(--mesure); margin: 0; color: var(--encre-douce); }
.n-scope .i-avertissement > svg.lucide { width: 18px; height: 18px; flex: none; margin-top: 2px; }
/* Programme affiché : la une se retire, la demande tient en une ligne */
.i-page--programme .i-une { display: none; }
.i-rappel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--espace-2) var(--espace-4); padding: var(--espace-2) var(--espace-4); border: 1px solid var(--trait); border-radius: var(--rayon-m); background: var(--surface); }
.n-scope .i-rappel p { margin: 0; font-weight: 600; }
.i-rappel .n-btn { min-height: var(--cible-tactile); }
/* Style et vitesse, réglables d'en haut du programme : pastilles du rappel, badges de la couverture, bouton de la frise */
.i-rappel__reglages { display: flex; gap: 8px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }  /* une ligne, même sur téléphone */
.i-pastille-reglage { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: var(--cible-tactile); padding: 0 12px; border: 1px solid var(--trait-fort); border-radius: var(--rayon-pilule);
  background: var(--surface); color: var(--encre); font: 400 14px/20px var(--font-texte); cursor: pointer; }
.i-pastille-reglage:hover { border-color: var(--large); }
.n-scope .i-pastille-reglage svg.lucide { width: 18px; height: 18px; color: var(--large); }
.i-pastille-reglage__mot { display: none; }  /* « Style : », « Vitesse : » à partir de 600 px */
.n-scope .i-badge-reglage { position: relative; border: 0; color: var(--large); cursor: pointer; }
.i-badge-reglage::after { content: ""; position: absolute; inset: -10px; }  /* badge de 24 px, zone de toucher agrandie */
.i-badge-reglage__geste { text-decoration: underline; text-underline-offset: 2px; }
.i-reglages { width: min(640px, calc(100vw - 32px)); }
.i-reglages__tete, .i-question__tete { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--espace-3); }
.n-scope .i-reglages__tete .t-h2 { margin: 0; }
.i-reglages__fermer, .i-question__fermer { flex: none; min-width: var(--cible-tactile); min-height: var(--cible-tactile); padding: 0; }
.i-reglages__part { display: grid; gap: var(--espace-3); margin-top: var(--espace-4); padding-top: var(--espace-4); border-top: 1px solid var(--trait); }
.n-scope .i-reglages__part .t-h3, .n-scope .i-reglages__part p { margin: 0; }

/* En tête du programme : une destination hors de portée (pourquoi, comment y aller d'un geste), puis ses réserves */
.i-manque, .i-reserves, .i-manque__une { display: flex; flex-direction: column; gap: var(--espace-2); }
.i-manque { gap: var(--espace-3); padding: var(--espace-4); border: 2px solid var(--alerte); border-radius: var(--rayon-l); background: var(--alerte-fond); }
.n-scope .i-manque p, .n-scope .i-manque h3, .n-scope .i-reserves p { margin: 0; }
.i-manque__une + .i-manque__une { padding-top: var(--espace-3); border-top: 1px solid var(--alerte); }
.n-scope .i-manque__titre { display: flex; gap: 8px; align-items: flex-start; font: 650 20px/26px var(--font-display); text-wrap: balance; }
.n-scope .i-manque__titre > svg.lucide { width: 24px; height: 24px; flex: none; margin-top: 1px; color: var(--alerte); }
.i-manque__sourire { font-style: italic; }
.i-manque__titre-pistes { font-weight: 600; }
.i-manque__pistes { display: flex; flex-wrap: wrap; gap: 8px; }
.i-adapter { min-height: var(--cible-tactile); padding: 8px 16px; text-align: left; }  /* sur deux lignes au téléphone : le texte ne touche pas le filet */
.i-manque__reserve, .i-reserve { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; line-height: 22px; }
.n-scope .i-manque__reserve > svg.lucide, .n-scope .i-reserve > svg.lucide { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--alerte); }
.n-scope .i-reserve--danger > svg.lucide { color: var(--danger); }
.i-manque__suite { color: var(--encre-douce); }
.n-scope .i-reserve { padding: var(--espace-3) var(--espace-4); border-radius: var(--rayon-m); background: var(--alerte-fond); }  /* .n-scope p remet le padding à 0 */
.i-reserve--danger { border: 2px solid var(--danger); background: var(--danger-fond); }

/* La couverture du voyage : ses vues, puis la feuille qui mord dessus (titre, chiffres, pays) */
.i-resultat { display: flex; flex-direction: column; gap: var(--espace-4); scroll-margin-top: 72px; }
.i-couv { display: flex; flex-direction: column; }
.i-couv__vues { display: grid; gap: 4px; aspect-ratio: 16 / 10; margin: 0 calc(-1 * var(--i-bord)); overflow: hidden; }
.i-couv__vue { position: relative; min-height: 0; margin: 0; overflow: hidden; background: var(--haut-fond); }
.i-couv__vue:nth-child(n + 2) { display: none; }
.i-couv__vue .l-photo__credit { top: 8px; bottom: auto; }  /* le bas de l'image passe sous la feuille */
.i-couv__feuille { position: relative; margin-top: -40px; }
.i-couv--sans .i-couv__feuille { margin-top: 0; }
.n-scope .i-couv__titre { margin: 0; font: 650 30px/36px var(--font-display); letter-spacing: -0.01em; text-wrap: balance; }
.n-scope .i-couv__resume { margin: 0; color: var(--encre-douce); font-size: 17px; line-height: 26px; }
.i-totaux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--espace-3) var(--espace-4); }
.i-totaux li { display: flex; flex-direction: column; color: var(--encre-douce); font-size: 14px; line-height: 20px; }
.i-totaux strong { color: var(--encre); font: 650 30px/34px var(--font-display); font-variant-numeric: tabular-nums; }
.i-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.n-scope .i-badges .n-badge { display: inline-flex; align-items: center; gap: 6px; }
.n-scope .i-souhait { display: flex; gap: 8px; align-items: flex-start; margin: 0; color: var(--succes); font-weight: 600; }
.n-scope .i-souhait--manque { color: var(--alerte); }
.n-scope .i-souhait svg.lucide { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.i-allonger { min-height: var(--cible-tactile); margin-left: 6px; padding: 0 14px; font-size: 15px; vertical-align: middle; }
.i-ruban { display: flex; gap: 2px; overflow-x: auto; border-radius: var(--rayon-m); }
.i-ruban li { flex: 1 1 0; display: flex; flex-direction: column; gap: 2px; min-width: 104px; padding: 10px 12px; background: var(--surface-creux); font-size: 14px; line-height: 18px; }
.i-ruban__nom { font-weight: 600; }
.i-ruban__nuits { color: var(--encre-douce); }
.i-drapeau { width: auto; height: 14px; flex: none; border: 1px solid var(--trait); border-radius: 2px; }
.i-ruban .i-drapeau { align-self: flex-start; }  /* case en colonne : sans cela, le drapeau s'étire à sa largeur */
.n-scope .i-ruban svg.lucide { width: 16px; height: 16px; }  /* les nuits en mer : une lune à la place du drapeau */

/* Frise des jours : reste en haut de l'écran pendant la lecture */
.i-frise { position: sticky; top: 0; z-index: 12; display: flex; align-items: center; gap: 8px; margin: 0 calc(-1 * var(--i-bord)); padding: var(--espace-2) var(--i-bord) 2px; background: var(--fond); border-bottom: 1px solid var(--trait); }
.i-frise ol { display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin; padding: 6px 2px 6px; }
.i-frise li { flex: none; scroll-snap-align: center; }
.i-frise ol { flex: 1; min-width: 0; }
.i-frise__reglages { flex: none; display: inline-flex; align-items: center; gap: 6px; min-width: var(--cible-tactile); min-height: var(--cible-tactile); padding: 0 12px;
  border: 1px solid var(--trait-fort); border-radius: var(--rayon-m); background: var(--surface); color: var(--large); font: 600 13px/18px var(--font-texte); cursor: pointer; }
.n-scope .i-frise__reglages svg.lucide { width: 18px; height: 18px; }
.i-frise__reglages span { display: none; }
.i-frise__jour { position: relative; display: grid; grid-template-columns: auto auto; align-items: center; justify-items: start; column-gap: 6px; width: 108px; min-height: var(--cible-tactile); padding: 6px 10px;
  border: 1px solid var(--trait-fort); border-radius: var(--rayon-m); background: var(--surface); color: var(--encre); font: 600 13px/18px var(--font-texte); text-align: left; cursor: pointer; }
.i-frise__num { color: var(--encre-douce); }
.n-scope .i-frise__jour > svg.lucide { width: 16px; height: 16px; justify-self: end; color: var(--large); }
.i-frise__nom { grid-column: 1 / -1; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.i-frise__barre { grid-column: 1 / -1; width: 100%; height: 4px; margin-top: 3px; border-radius: 2px; background: var(--surface-creux); overflow: hidden; }
.i-frise__barre span { display: block; height: 100%; border-radius: 2px; background: var(--large); }
.i-frise__jour--nuit_en_mer .i-frise__barre span { background: var(--fond); }
.i-frise__signes { position: absolute; top: -6px; right: 6px; display: flex; gap: 2px; }
.i-frise__signe { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; }
.i-frise__signe--formalites { background: var(--reglement-fond); color: var(--reglement); }
.i-frise__signe--vivres { background: var(--succes-fond); color: var(--succes); }
.n-scope .i-frise__signe svg.lucide { width: 12px; height: 12px; }
.i-frise__jour--repos, .i-frise__jour--attente, .i-frise__jour--embarquement, .i-frise__jour--arrivee, .i-frise__jour--atterrissage { background: var(--surface-creux); }
.i-frise__jour--nuit_en_mer, .i-frise__jour--en_mer { background: var(--encre); color: var(--fond); }
.n-scope .i-frise__jour--nuit_en_mer > svg.lucide, .i-frise__jour--nuit_en_mer .i-frise__num, .n-scope .i-frise__jour--en_mer > svg.lucide, .i-frise__jour--en_mer .i-frise__num { color: inherit; }
.i-frise__jour--actif { border-color: var(--large); box-shadow: inset 0 0 0 2px var(--large); }

/* Corps : les journées, et la carte qui les suit */
.i-corps { display: grid; gap: var(--espace-5); }
.i-colonne { display: flex; flex-direction: column; gap: var(--espace-5); min-width: 0; }
.i-cote { order: -1; display: flex; flex-direction: column; gap: var(--espace-2); min-width: 0; }
.i-carte { position: relative; height: 300px; border: 1px solid var(--trait); border-radius: var(--rayon-l); background: var(--haut-fond); overflow: hidden; color: var(--encre-douce); }
.i-carte:empty::before { content: "Chargement de la carte…"; display: block; padding: var(--espace-4); }
.n-scope .i-carte__mention { margin: 0; color: var(--encre-douce); font-size: 13px; line-height: 18px; }
.i-carte__apercu { position: absolute; inset: 0; }
.i-planche__num { fill: var(--large); font: 700 11px var(--font-texte); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
.i-lire { align-self: flex-start; }
.i-repere { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 6px; border: 2px solid var(--surface); border-radius: var(--rayon-pilule); background: var(--large); color: var(--sur-large); font: 600 13px/1 var(--font-texte); cursor: pointer; box-shadow: var(--ombre-1); }
.i-repere::after { content: ""; position: absolute; inset: -10px; }  /* zone de toucher de 48 px ; le repère reste en position absolue (MapLibre), jamais relative */
.i-repere--actif { z-index: 2; min-width: 36px; height: 36px; background: var(--encre); color: var(--fond); font-size: 15px; }
/* Le bateau sur la carte, vu de dessus : au-dessus des repères, sans prendre leurs touchers ; position laissée à MapLibre */
.i-bateau { z-index: 3; width: 40px; height: 40px; pointer-events: none; }
.i-bateau svg { display: block; width: 100%; height: 100%; overflow: visible; }
.i-bateau path, .i-bateau circle { fill: var(--encre); stroke: var(--surface); stroke-width: 1.5; stroke-linejoin: round; paint-order: stroke; }
.i-bateau .i-bateau__pont { fill: var(--surface); stroke: none; }
/* Les voiles : toujours blanches (thème sombre compris), creux visible ; faseyantes face au vent, absentes au moteur */
.i-bateau .i-voile { fill: #fbfaf5; stroke: rgb(20 32 44 / 0.6); stroke-width: 0.5; stroke-linejoin: round; paint-order: normal; }
.i-bateau .i-voile__laize { fill: none; stroke: rgb(20 32 44 / 0.25); stroke-width: 0.35; }
.i-bateau .i-bome { fill: none; stroke: var(--encre); stroke-width: 0.8; stroke-linecap: round; }
.i-bateau .i-mat { fill: var(--encre); stroke: var(--surface); stroke-width: 0.4; }
.i-voiles--affalees { display: none; }
.i-voiles--faseye .i-voile { animation: i-faseye 0.3s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 0 0; }
@keyframes i-faseye { to { transform: scaleX(-0.4); } }
.n-scope .i-rubrique { margin: var(--espace-3) 0 0; font: 650 24px/30px var(--font-display); }

/* Le voyage en un coup d'œil : une ligne par journée */
.i-table { display: grid; border: 1px solid var(--trait); border-radius: var(--rayon-l); background: var(--surface); overflow: hidden; }
.i-table li + li { border-top: 1px solid var(--trait); }
.i-table__pays { display: flex; align-items: center; gap: 8px; padding: 6px 14px; background: var(--surface-creux); font-size: 14px; line-height: 20px; }
.i-table__jour { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline; width: 100%; min-height: var(--cible-tactile); padding: 8px 14px; border: 0; background: transparent; color: var(--encre); font: inherit; text-align: left; cursor: pointer; }
.i-table__jour:hover { background: var(--surface-creux); }
.i-table__num { color: var(--large); font: 650 18px/24px var(--font-display); font-variant-numeric: tabular-nums; }
.i-table__nom { min-width: 0; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.i-table__nom small { margin-left: 6px; color: var(--encre-douce); font-weight: 400; font-size: 14px; }
.i-table__mer { display: inline-flex; align-items: center; gap: 6px; color: var(--encre-douce); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.n-scope .i-table__mer svg.lucide { width: 16px; height: 16px; color: var(--reglement); }

/* Avant de partir : formalités, avitaillement, vent */
.i-bloc--preparer { gap: var(--espace-3); }  /* dans la feuille du premier jour : une colonne, la feuille est étroite */
.i-preparer { display: grid; gap: var(--espace-4); }
.i-carton { display: flex; flex-direction: column; gap: var(--espace-3); min-width: 0; padding: var(--espace-4) var(--espace-5); border: 1px solid var(--trait); border-radius: var(--rayon-l); background: var(--surface); }
.n-scope .i-carton > * { margin: 0; }
.n-scope .i-carton__titre { display: flex; align-items: center; gap: 8px; font: 600 19px/26px var(--font-display); }
.n-scope .i-carton__titre svg.lucide { width: 22px; height: 22px; color: var(--large); }
.n-scope .i-carton--formalites .i-carton__titre svg.lucide { color: var(--reglement); }
.i-carton__sous { font-weight: 600; color: var(--encre-douce); }
.i-pas { display: grid; gap: 8px; }
.i-pas li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.i-pas__jour { min-height: var(--cible-tactile); padding: 2px 6px; border: 0; border-radius: var(--rayon-s); background: var(--haut-fond); color: var(--encre); font: 600 13px/20px var(--font-texte); font-variant-numeric: tabular-nums; cursor: pointer; }
.i-pas__jour:hover { background: var(--large); color: var(--sur-large); }
.n-scope .i-liste { display: grid; gap: 6px; padding-left: 18px; list-style: disc; }
.n-scope .i-alerte { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: var(--rayon-m); background: var(--alerte-fond); }
.n-scope .i-alerte svg.lucide { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--alerte); }

/* Une journée : la vue, puis la feuille qui mord dessus */
.i-jours { display: grid; gap: var(--espace-7); }
.i-jour { display: flex; flex-direction: column; min-width: 0; scroll-margin-top: 150px; }
.i-jour__vue { position: relative; margin: 0 calc(-1 * var(--i-bord)); aspect-ratio: 4 / 3; background: var(--haut-fond); overflow: hidden; }
.i-jour__vue--planche { aspect-ratio: 16 / 9; }
.i-jour__etiquettes { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; gap: 6px; margin: 0; }
.i-jour__num, .i-jour__genre { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 2px 12px; border-radius: var(--rayon-pilule); background: var(--surface); color: var(--encre); font: 600 14px/20px var(--font-texte); }
.n-scope .i-jour__genre svg.lucide { width: 16px; height: 16px; color: var(--large); }
.i-jour__vue .l-photo__credit { bottom: 32px; }
.n-scope .i-jour__vue .l-galerie__defile { height: 100%; margin: 0; padding: 0; border-radius: 0; list-style: none; }  /* la galerie des fiches, au format de la vue */
.i-jour__vue .l-photo { aspect-ratio: auto; height: 100%; }
.i-jour__vue .l-galerie__compte { top: 12px; right: 12px; }
.i-planche { display: block; width: 100%; height: 100%; }
.i-jour__vue--planche .i-planche { height: calc(100% - 24px); }  /* la feuille mord de 24 px : l'escale du jour reste au-dessus */
.i-planche__lisere { fill: none; stroke: var(--surface); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.i-planche__route { fill: none; stroke: var(--large); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.i-planche__depart { fill: var(--surface); stroke: var(--large); stroke-width: 2.5; }
.i-planche__escale { fill: var(--large); stroke: var(--surface); stroke-width: 2.5; }
.i-planche__anneau { fill: none; stroke: var(--large); stroke-width: 1.5; opacity: 0.5; }
.i-planche__bateau { fill: var(--encre); stroke: var(--surface); stroke-width: 2.5; }  /* en traversée : où est le bateau ce soir-là */
.i-planche .n-carte__terre { stroke: none; }  /* anneaux découpés par tuile : leur filet dessinerait les coutures */
.i-planche__cote { fill: none; stroke: var(--trait-fort); stroke-width: 2; stroke-linejoin: round; }
.i-planche__nom { fill: var(--encre-douce); font: 600 12px var(--font-texte); paint-order: stroke; stroke: var(--haut-fond); stroke-width: 3px; }
.i-jour__corps { position: relative; display: flex; flex-direction: column; gap: var(--espace-4); margin-top: -24px; padding: var(--espace-5) var(--espace-4); border: 1px solid var(--trait); border-radius: var(--rayon-l); background: var(--surface); transition: border-color 160ms ease; }
.i-jour--actif .i-jour__corps { border-color: var(--large); }
.i-jour[data-theme="dark"] .i-jour__corps { color: var(--encre); }  /* nuit en mer : la feuille passe en thème Nuit */
.n-scope .i-jour__corps > * { margin: 0; }
.i-jour__tete { display: flex; flex-direction: column; gap: 4px; }
.n-scope .i-jour__tete > * { margin: 0; }
.i-jour__date { color: var(--large); font: 600 13px/18px var(--font-texte); letter-spacing: 0.08em; text-transform: uppercase; }
.n-scope .i-jour__titre { font: 650 26px/32px var(--font-display); letter-spacing: -0.01em; text-wrap: balance; }
.i-jour__titre .n-note { margin-left: 6px; font-size: 16px; vertical-align: middle; }
.i-jour__lieu { display: flex; gap: 8px; align-items: center; color: var(--encre-douce); }
.i-etape { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--espace-3); }
.i-etape li { display: flex; flex-direction: column; min-width: 0; }
.i-etape__nom { color: var(--encre-douce); font: 600 12px/16px var(--font-texte); letter-spacing: 0.06em; text-transform: uppercase; }
.i-etape strong { font: 650 26px/32px var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.i-etape__plus { color: var(--encre-douce); font-size: 14px; line-height: 20px; }
.i-chapitre { display: flex; flex-direction: column; gap: 4px; padding: var(--espace-3) var(--espace-4); border-radius: var(--rayon-m); background: var(--haut-fond); }
.n-scope .i-chapitre > * { margin: 0; }
.i-chapitre__nom { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.i-chapitre__nom strong { font: 600 19px/26px var(--font-display); }
.i-chapitre__nom span { color: var(--encre-douce); font-size: 14px; }
.i-bloc { display: flex; flex-direction: column; gap: var(--espace-2); padding-top: var(--espace-4); border-top: 1px solid var(--trait); }
.n-scope .i-bloc > * { margin: 0; }
.n-scope .i-bloc__titre { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font: 600 17px/24px var(--font-display); }
.n-scope .i-bloc__titre > svg.lucide { width: 20px; height: 20px; color: var(--large); }
.i-bloc__titre > span:not(.n-badge) { font: 400 15px/22px var(--font-texte); color: var(--encre-douce); }
.i-bloc--depart { padding: var(--espace-4); border: 0; border-radius: var(--rayon-m); background: var(--surface-creux); }
.i-base__consignes { max-width: var(--mesure); white-space: pre-line; }  /* consignes de la base du loueur (D066) : ses retours à la ligne */
/* Clearance du jour : où, quand, durée, à savoir ; au magenta réglementaire */
.i-bloc--clearance { padding: var(--espace-4); border: 0; border-left: 4px solid var(--reglement); border-radius: var(--rayon-m); background: var(--reglement-fond); }
.n-scope .i-bloc--clearance .i-bloc__titre, .n-scope .i-bloc--clearance .i-bloc__titre > svg.lucide { color: var(--reglement); }
.i-clearances { display: grid; gap: var(--espace-3); }
.i-clearance { display: flex; flex-direction: column; gap: 4px; }
.i-clearance + .i-clearance { padding-top: var(--espace-3); border-top: 1px solid var(--reglement); }
.n-scope .i-clearance dl { display: grid; gap: 2px; margin: 0; }
.i-clearance dl > div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px; }
.n-scope .i-clearance dt { font: 600 13px/22px var(--font-texte); letter-spacing: 0.04em; text-transform: uppercase; color: var(--reglement); }
.n-scope .i-clearance dd { margin: 0; font-size: 15px; line-height: 22px; }
/* Le fil de la journée : l'heure, un nœud sur le trait, le fait */
.i-fil { display: grid; }
.i-fil__pas { position: relative; display: grid; grid-template-columns: 62px 28px minmax(0, 1fr); gap: 0 10px; padding-bottom: var(--espace-3); }
.i-fil__pas:last-child { padding-bottom: 0; }
.i-fil__pas::before { content: ""; position: absolute; left: 85px; top: 28px; bottom: 0; width: 2px; background: var(--trait); }
.i-fil__pas:last-child::before { display: none; }
.i-fil__heure { padding-top: 3px; color: var(--encre); font: 600 14px/22px var(--font-texte); font-variant-numeric: tabular-nums; text-align: right; }
.i-fil__noeud { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--haut-fond); color: var(--large); }
.n-scope .i-fil__noeud svg.lucide { width: 16px; height: 16px; }
.i-fil__texte { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 2px; }
.i-fil__texte > span { color: var(--encre-douce); font-size: 15px; line-height: 22px; }
.i-fil__pas--formalite .i-fil__noeud { background: var(--reglement-fond); color: var(--reglement); }
.i-fil__pas--formalite .i-fil__texte strong { color: var(--reglement); }
.i-puces { display: flex; flex-wrap: wrap; gap: 8px; }
.i-puces li { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border-radius: var(--rayon-pilule); background: var(--haut-fond); font-weight: 600; font-size: 15px; line-height: 20px; }
.n-scope .i-puces svg.lucide { width: 16px; height: 16px; color: var(--large); }
.i-doute { font-style: normal; color: var(--encre-douce); font-size: 14px; }
.i-voir, .i-agenda li, .i-services li, .i-faits li { display: flex; gap: 8px; align-items: flex-start; }
.n-scope .i-voir svg.lucide, .n-scope .i-agenda svg.lucide, .n-scope .i-services svg.lucide, .n-scope .i-faits svg.lucide { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--large); }
.i-agenda, .i-services, .i-faits { display: grid; gap: 6px; }
.i-agenda__conseil { display: block; color: var(--encre-douce); }
.i-services .i-lien { position: relative; }
.i-services .i-lien::after { content: ""; position: absolute; inset: -12px 0; }  /* zone de toucher de 48 px sur une ligne de 24 px */
.n-scope .i-bloc--vivres .i-bloc__titre > svg.lucide { color: var(--succes); }
.i-plus > summary { display: inline-flex; align-items: center; gap: 6px; min-height: var(--cible-tactile); color: var(--large); font-weight: 600; cursor: pointer; }
.n-scope .i-jour .i-plus > :not(summary), .n-scope .i-carton .i-plus > :not(summary) { margin: var(--espace-2) 0 0; }
.n-scope .i-calcul p { color: var(--encre-douce); font-size: 15px; line-height: 22px; }
.n-scope .i-lien { display: inline-flex; align-items: center; gap: 4px; color: var(--large); font-weight: 600; text-underline-offset: 3px; }
.n-scope .i-lien svg.lucide { width: 16px; height: 16px; }
.i-films { display: flex; gap: var(--espace-3); overflow-x: auto; overscroll-behavior-x: contain; padding-bottom: var(--espace-2); }
.i-films .l-video { flex: 0 0 240px; }
.i-films .l-video--court { flex-basis: 135px; }
.n-scope .i-films .l-video__titre, .n-scope .i-films .l-video__source { margin: 0; }
.i-autres { display: flex; flex-direction: column; align-items: flex-start; gap: var(--espace-2); }
.i-autres__liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; width: 100%; }
.i-autre { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; width: 100%; min-height: 64px; padding: 6px; border: 1px solid var(--trait-fort); border-radius: var(--rayon-m); background: var(--fond); color: var(--encre); text-align: left; font: inherit; cursor: pointer; }
.i-autre:hover { border-color: var(--large); }
.i-autre__vue { display: grid; place-items: center; width: 64px; height: 52px; border-radius: var(--rayon-s); background: var(--haut-fond); overflow: hidden; }
.i-autre__vue img { width: 100%; height: 100%; object-fit: cover; }
.n-scope .i-autre__vue svg.lucide { width: 22px; height: 22px; color: var(--large); }
.i-autre__texte { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; min-width: 0; }
.i-autre__texte .t-petit { flex-basis: 100%; color: var(--encre-douce); }

/* Variantes, réglages, actions */
.n-scope .i-variantes .t-h3 { margin: 0 0 var(--espace-2); font-size: 17px; line-height: 24px; }
.i-variantes ul { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: var(--espace-3); overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.i-variante { display: flex; flex-direction: column; gap: 2px; width: 100%; height: 100%; padding: var(--espace-3) var(--espace-4); border: 1px solid var(--trait-fort); border-radius: var(--rayon-l); background: var(--surface); color: var(--encre); font: inherit; text-align: left; cursor: pointer; }
.i-variante strong { font: 600 17px/24px var(--font-display); }
.i-variante__etapes { color: var(--encre-douce); font-size: 14px; line-height: 20px; }
.i-variante--choisie { border-color: var(--large); box-shadow: inset 0 0 0 2px var(--large); background: var(--haut-fond); }
.i-reglages .i-grille, .i-reglages .v-actions { margin-top: var(--espace-3); }
.i-rythmes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.i-rythmes__titre { margin-right: 4px; font-weight: 600; }
.i-rythmes .n-btn { min-height: var(--cible-tactile); padding: 0 16px; border-radius: var(--rayon-pilule); }
.i-rythmes .n-btn[aria-pressed="true"] { border-color: var(--large); background: var(--haut-fond); }
.i-actions { margin-top: 0; }
/* Avis sur le programme (D065) : étoiles et pastilles de avis.css, à la taille d'un doigt */
.i-avis { display: grid; gap: var(--espace-3); padding-top: var(--espace-5); border-top: 1px solid var(--trait); }
.i-avis__form, .i-avis__suite { display: grid; gap: var(--espace-4); }
/* La question posée au bon moment : dans la confirmation de l'envoi, ou en carte flottante (feuille du bas sur téléphone) */
.i-question { display: grid; gap: var(--espace-2); margin-top: var(--espace-5); padding-top: var(--espace-4); border-top: 1px solid var(--trait); color: var(--encre); font: 400 16px/24px var(--font-texte); }
.i-question p, .i-question legend { margin: 0; font-family: var(--font-texte); }  /* hors de .n-scope dans la fenêtre de l'envoi */
.i-question .i-question__titre { margin: 0; font: 650 19px/26px var(--font-display); }
.i-question .v-note label { width: var(--cible-tactile); height: var(--cible-tactile); }
.i-question .v-pastille { min-height: var(--cible-tactile); }
.i-question--flottante { position: fixed; z-index: 40; inset: auto 0 0 0; max-height: 80vh; overflow-y: auto; margin: 0; padding: var(--espace-4) var(--espace-4) calc(var(--espace-4) + env(safe-area-inset-bottom));
  border: 1px solid var(--trait); border-radius: var(--rayon-l) var(--rayon-l) 0 0; background: var(--surface); box-shadow: var(--ombre-1); }
.i-avis .v-note label { width: var(--cible-tactile); height: var(--cible-tactile); }
.i-avis .v-pastille { min-height: var(--cible-tactile); }
.i-avis__jours summary { display: flex; align-items: center; gap: 8px; min-height: var(--cible-tactile); color: var(--large); cursor: pointer; font-weight: 600; list-style: none; }
.i-avis__jours summary svg.lucide { width: 20px; height: 20px; transition: transform 0.15s; }
.i-avis__jours[open] summary svg.lucide { transform: rotate(180deg); }
.i-avis__jours .v-pastilles { padding-top: var(--espace-2); }
.n-scope .i-avis__mot { min-height: 96px; padding-block: 10px; resize: vertical; }
.i-avis__mention { margin: 0; color: var(--encre-douce); }
.i-actions--tete { padding-top: var(--espace-4); border-top: 1px solid var(--trait); }  /* envoyer, imprimer : dès la couverture */

@media (min-width: 600px) {
  .i-feuille { padding: var(--espace-5); }
  .i-frise__reglages span, .i-pastille-reglage__mot { display: inline; }
  .i-question--flottante { inset: auto 24px 24px auto; width: 400px; max-height: calc(100vh - 48px); border-radius: var(--rayon-l); padding-bottom: var(--espace-4); }
  .i-une__vue { margin: 0; border-radius: var(--rayon-l); aspect-ratio: 21 / 9; }
  .i-une__corps { padding-inline: var(--espace-4); }
  .i-idees { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; padding-bottom: 0; }
  .i-couv__vues { margin: 0; border-radius: var(--rayon-l); }
  .i-couv__feuille { margin: -48px var(--espace-4) 0; }
  .i-totaux { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .i-jour__vue { margin: 0; border-radius: var(--rayon-l); aspect-ratio: 16 / 9; }
  .i-jour__vue--planche { aspect-ratio: 21 / 9; }
  .i-jour__corps { margin-inline: var(--espace-4); padding: var(--espace-5); }
}
@media (min-width: 800px) {
  .n-scope .i-une .t-h1 { font-size: 40px; line-height: 46px; }
  .i-couv__vues { aspect-ratio: 21 / 9; grid-template-columns: 2fr 1fr; grid-auto-rows: minmax(0, 1fr); }
  .i-couv__vues--1 { grid-template-columns: 1fr; }
  .i-couv__vues--3 .i-couv__vue:first-child { grid-row: span 2; }
  .i-couv__vue:nth-child(n + 2) { display: block; }
  .i-couv__feuille { margin-inline: var(--espace-6); padding: var(--espace-6); }
  .n-scope .i-couv__titre { font-size: 40px; line-height: 46px; }
}
@media (min-width: 900px) { .i-frise { top: 65px; } }
@media (min-width: 1000px) {
  .i-une__corps { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .i-une__cote { padding-top: calc(48px + var(--espace-5)); }
  .i-une--sans .i-une__cote { padding-top: 0; }
}
@media (min-width: 1100px) {
  .i-corps { grid-template-columns: minmax(0, 1fr) minmax(340px, 38%); align-items: start; }
  .i-cote { order: 0; position: sticky; top: 164px; height: calc(100vh - 184px); min-height: 360px; }
  .i-carte { flex: 1; height: auto; }
  .i-lire { align-self: stretch; }
}
@media (max-width: 599px) {
  .i-ajout { flex-direction: column; }
  .n-scope .i-demande .h-liste { width: 100%; max-width: none; }  /* téléphone : la liste a la largeur de son champ, pas plus */
  .i-ruban li { min-width: max-content; }  /* « Saint-Vincent-et-les-Grenadines » sur une ligne : le ruban défile */
  .n-scope .i-jour__titre { font-size: 22px; line-height: 28px; }
  .i-etape strong { font-size: 19px; line-height: 26px; }  /* « 460 milles » et « 3 j 20 h » côte à côte à 360 px */
}
.i-sans-defilement, .i-sans-defilement body { overflow: hidden; }
/* « Dérouler le voyage » en mode cinéma : la carte prend l'écran, les commandes et le bandeau du jour flottent dessus */
.i-cote--cinema { position: fixed; inset: 0; z-index: 60; height: auto; min-height: 0; gap: 0; background: var(--fond); }
.i-cote--cinema .i-carte { flex: 1; height: auto; border: 0; border-radius: 0; }
.i-cote--cinema .i-lire, .i-cote--cinema .maplibregl-ctrl-top-right { display: none !important; }  /* les commandes du voyage prennent la place du zoom */
.n-scope .i-cote--cinema .i-carte__mention { padding: 6px 16px calc(6px + env(safe-area-inset-bottom)); background: var(--surface); }
.i-cine { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.i-cine button, .i-cine__fin, .i-cine__hud { pointer-events: auto; }
.i-cine__haut { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 12px; right: 12px; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.i-cine__passeport { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.i-tampon { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border: 2px solid var(--large); border-radius: var(--rayon-pilule); background: var(--surface);
  color: var(--large); font: 700 12px/16px var(--font-texte); letter-spacing: 0.04em; text-transform: uppercase; box-shadow: var(--ombre-1); }
.i-tampon span { white-space: nowrap; }
@media (max-width: 599px) { .i-tampon { padding: 4px 6px; } .i-tampon span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }  /* le drapeau seul ; le nom reste lu */
.i-tampon--frappe { animation: i-frappe 0.7s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes i-frappe { 0% { transform: scale(2.6) rotate(-14deg); opacity: 0; } 60% { transform: scale(0.92) rotate(-4deg); opacity: 1; } 100% { transform: none; } }
.i-cine__commandes { display: flex; gap: 6px; flex: none; }
.i-cine__btn { display: inline-flex; align-items: center; justify-content: center; width: var(--cible-tactile); height: var(--cible-tactile); padding: 0; border: 1px solid var(--trait);
  border-radius: 50%; background: var(--surface); color: var(--encre); box-shadow: var(--ombre-1); cursor: pointer; }
.n-scope .i-cine__btn svg.lucide { width: 22px; height: 22px; }
.i-cine__btn--texte { font: 700 15px/1 var(--font-texte); }
.i-cine__btn[aria-pressed="true"] { border-color: var(--large); background: var(--large); color: var(--sur-large); }
.i-cine__bas { position: absolute; left: 12px; right: 12px; bottom: 30px; display: grid; gap: 6px; max-width: 640px; margin-inline: auto; }
.i-cine__hud { padding: 10px 14px; border: 1px solid var(--trait); border-radius: var(--rayon-l); background: var(--surface); box-shadow: var(--ombre-1); }
.n-scope .i-cine__hud p { margin: 0; }
.n-scope .i-cine__titre { font: 650 18px/24px var(--font-display); color: var(--encre); }
.i-cine__jour { margin-right: 4px; color: var(--large); }
.n-scope .i-cine__chiffres { display: flex; flex-wrap: wrap; gap: 0 12px; color: var(--encre-douce); font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums; }
.i-cine__frise { display: flex; gap: 3px; margin: 0; padding: 0; list-style: none; }
.i-cine__frise li { flex: 1; min-width: 0; }
.i-cine__frise button { display: block; width: 100%; min-height: var(--cible-tactile); padding: 0; border: 0; background: none; cursor: pointer; }
.i-cine__frise button::before { content: ""; display: block; height: 8px; border-radius: 4px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--trait-fort); }
.i-cine__frise .i-cine__fait::before { background: var(--large); box-shadow: none; }
.i-cine__frise .i-cine__courant::before { height: 12px; background: var(--lagon); box-shadow: none; }
.i-cine--fin .i-cine__bas, .i-cine--fin .i-cine__commandes [data-cine="pause"], .i-cine--fin .i-cine__commandes [data-cine="vite"], .i-cine--fin .i-cine__commandes [data-cine="suivant"] { display: none; }
/* Escales : grises à venir, allumées une fois atteintes (anneau qui s'élargit : le repère garde son transform, posé par MapLibre) */
.i-cote--cinema .i-repere:not(.i-repere--vu) { background: var(--surface-creux); color: var(--encre-douce); box-shadow: none; }
.i-cote--cinema .i-repere--vu { animation: i-allume 0.9s ease-out; }
.i-cote--cinema .i-bateau { width: 76px; height: 76px; }
.i-cote--cinema .i-bateau svg { filter: drop-shadow(3px 5px 2px rgb(0 0 0 / 0.28)); animation: i-tangue 2.8s ease-in-out infinite; transform-origin: 50% 60%; }  /* le dessin tangue, le repère garde sa place */
@keyframes i-tangue { 0%, 100% { transform: rotate(-5deg) translateY(0); } 50% { transform: rotate(5deg) translateY(-1.5px); } }
@keyframes i-allume { from { box-shadow: 0 0 0 0 var(--lagon); } to { box-shadow: 0 0 0 16px transparent; } }
.i-cine__etiquette { z-index: 4; pointer-events: none; }
.i-cine__carton { display: flex; align-items: center; gap: 8px; max-width: 240px; padding: 6px 12px 6px 6px; border-radius: var(--rayon-m); background: var(--surface); color: var(--encre);
  box-shadow: var(--ombre-1); font: 400 13px/18px var(--font-texte); animation: i-monte 0.5s cubic-bezier(.2, 1.4, .4, 1) both; transform-origin: 50% 100%; }
@keyframes i-monte { from { transform: translateY(10px) scale(0.7); opacity: 0; } to { transform: none; opacity: 1; } }
.i-cine__vignette { flex: none; width: 48px; height: 48px; border-radius: var(--rayon-s, 6px); overflow: hidden; }
.i-cine__vignette img { display: block; width: 100%; height: 100%; object-fit: cover; }
.i-cine__nom { display: flex; flex-direction: column; min-width: 0; }
.i-cine__nom strong { overflow: hidden; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.i-cine__nom > span:not(.i-cine__pictos) { color: var(--encre-douce); }
.i-cine__pictos { display: flex; gap: 6px; margin-top: 2px; color: var(--large); }
.n-scope .i-cine__pictos svg.lucide { width: 15px; height: 15px; }
.i-cine__fin { position: absolute; top: 50%; left: 50%; display: grid; gap: var(--espace-3); width: min(520px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow-y: auto;
  padding: var(--espace-5); border: 1px solid var(--trait); border-radius: var(--rayon-l); background: var(--surface); box-shadow: var(--ombre-1); transform: translate(-50%, -50%); }
.n-scope .i-cine__fin p, .n-scope .i-cine__fin h2 { margin: 0; }
.n-scope .i-cine__fin-titre { font: 650 26px/32px var(--font-display); text-wrap: balance; }
.i-cine__totaux { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: var(--espace-3); margin: 0; padding: 0; list-style: none; }
.i-cine__totaux li { display: flex; flex-direction: column; color: var(--encre-douce); font-size: 14px; line-height: 20px; }
.i-cine__totaux strong { color: var(--encre); font: 650 24px/30px var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (min-width: 900px) { .i-cine__fin { left: 24px; transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) { .i-jour__corps { transition: none; } .i-voiles--faseye .i-voile, .i-cote--cinema .i-bateau svg, .i-tampon--frappe, .i-cote--cinema .i-repere--vu, .i-cine__carton { animation: none; } }
.i-papier { display: none; }  /* la carte du voyage : sur le papier, où la carte interactive ne s'imprime pas */
/* Le papier (ou le PDF) : un livret qui se lit sans l'écran. Tout ce qui est colonne ou grille à l'écran devient des blocs qui
   se suivent, les gap des marges : une journée tenue d'un seul tenant laissait des pages à moitié vides, WebKit ne coupe ni
   les colonnes flex ni les grilles, Chrome y laisse un titre seul en bas de page. Ce qui se tient ensemble (une photo et son
   titre, un bloc, une ligne de liste) ne se coupe pas. Essayé dans Chrome et dans WebKit (Safari, iPhone) le 26/11/2026. */
@media print {
  @page { margin: 12mm; }
  .i-une, .i-rappel, .i-frise, .i-cote, .i-autres, .i-avis, .i-variantes, .i-reglages, .i-rythmes, .i-actions, .i-question, .i-badge-reglage__geste, .i-bloc--videos, .i-attente, .i-allonger,
  .i-manque__pistes, .i-manque__titre-pistes, .l-galerie__nav, .s-entete, .s-pied { display: none !important; }
  .i-page { print-color-adjust: exact; -webkit-print-color-adjust: exact; padding: 0; }  /* les fonds teintés (clearance, réserves) restent */
  .i-page, .i-resultat, .i-corps, .i-colonne, .i-jours, .i-jour, .i-preparer, .i-jour__corps, .i-carton, .i-bloc, .i-couv, .i-feuille, .i-table, .i-fil,
  .i-services, .i-faits, .i-agenda, .i-pas, .i-clearances, .i-manque, .i-manque__une, .i-reserves, .i-jour__tete, .i-chapitre { display: block; }
  .i-page > *, .i-resultat > *, .i-colonne > *, .i-preparer > * { margin-bottom: var(--espace-4); }
  .n-scope .i-jour__corps > * + *, .n-scope .i-carton > * + *, .n-scope .i-feuille > * + * { margin-top: var(--espace-4); }
  .n-scope .i-bloc > * + *, .n-scope .i-manque > * + *, .n-scope .i-manque__une > * + *, .n-scope .i-reserves > * + * { margin-top: var(--espace-2); }
  .i-services > li + li, .i-faits > li + li, .i-agenda > li + li, .i-pas > li + li { margin-top: 6px; }
  .i-clearances > li + li { margin-top: var(--espace-3); }
  .i-jour { margin-bottom: var(--espace-6); }
  .i-papier { display: block; aspect-ratio: 900 / 380; border: 1px solid var(--trait); border-radius: var(--rayon-l); overflow: hidden; }
  .i-couv__vues { aspect-ratio: 21 / 9; }
  .i-ruban { flex-wrap: wrap; overflow: visible; }  /* le ruban des pays ne défile pas sur le papier */
  .i-jour__vue, .i-couv__vues { margin-left: 0; margin-right: 0; }  /* Safari garde les règles de la fenêtre : au téléphone, ces vues débordaient */
  /* Une galerie n'imprime que sa première photo : les crédits des suivantes, rangés hors de la page, la faisaient rétrécir aux
     deux tiers dans Chrome. */
  .i-jour__vue .l-photo:not(:first-child) { display: none; }
  /* La photo d'une journée ne reste pas seule en bas de page : sa boîte, qui ne se coupe pas, descend de 150 px sous l'image,
     là où la feuille pose la date et le titre du jour (marge de -174 px : entre deux blocs, elle absorbe les -24 px de la
     feuille). L'image porte elle-même son rapport : WebKit compte le remplissage dans une hauteur en pourcentage. */
  .i-jour__vue { aspect-ratio: auto; box-sizing: content-box; padding-bottom: 150px; margin-bottom: -174px; background: none; }
  .n-scope .i-jour__vue > img, .n-scope .i-jour__vue > .l-galerie__defile, .n-scope .i-jour__vue > .i-planche { height: auto; aspect-ratio: 16 / 6; }
  .i-jour__corps { margin-top: 0; }
  .i-jour__vue > .l-photo__credit { bottom: 182px; }
  .i-plus:not([open]) { display: none; }  /* un repli resté fermé (calcul de l'étape, commerces déjà dits) : pas de titre orphelin */
  .i-plus > summary { display: flex; min-height: 0; break-inside: avoid; }  /* en bloc : break-after ne vaut pas pour une boîte en ligne */
  .i-couv__vues, .i-totaux, .i-ruban, .i-badges, .i-papier, .i-table li, .i-pas li, .i-etape, .i-chapitre, .i-bloc, .i-clearance, .i-fil__pas, .i-services li,
  .i-faits li, .i-jour__vue, .i-jour__tete, .i-reserve, .i-manque__une { break-inside: avoid; }
  .i-bloc--vivres, .i-bloc--fil, .i-bloc--preparer { break-inside: auto; }  /* les listes longues se coupent entre deux lignes */
  .i-table li:nth-child(-n+3), .i-table__pays { break-after: avoid; }  /* la table des journées se coupe, mais ni après un pays ni à ses bouts */
  .i-table li:nth-last-child(-n+2) { break-before: avoid; }
  .i-bloc__titre, .i-carton__titre, .i-carton__sous, .i-plus > summary { break-after: avoid; }
  /* Un titre de rubrique ne reste pas seul en bas de page (Safari ignore break-after: avoid) : il descend de 120 px sous lui,
     comme la photo d'un jour ; devant les journées, de la hauteur de la première photo en plus. */
  .n-scope .i-rubrique { margin: var(--espace-5) 0 calc(var(--espace-3) - 120px); padding-bottom: 120px; break-inside: avoid; }
  .n-scope .i-rubrique:has(+ .i-jours) { padding-bottom: calc(37.5% + 270px); margin-bottom: calc(var(--espace-3) - 37.5% - 270px); }
}
.i-cote--cinema .i-repere--sous-bateau { visibility: hidden; }  /* cinéma 3D : un repère d'escale caché sous le bateau */
