/* Page de présentation publique (templates/landing.html). Autonome : n'utilise pas style.css, ne charge aucune
   ressource externe (polices système, images locales). Clair ou sombre selon le système (prefers-color-scheme). */
:root {
  --encre: #1A2230;        /* bleu nuit Harpon (barbes du logo) */
  --tuile: #4A9DF8;        /* tuile du logo */
  --tuile-vive: #72B4FB;
  --nuit: #1A2230;         /* en-tête, accroche, appel final */
  --nuit-profond: #121926; /* pied de page */
  --sur-nuit: #EEF2F7;
  --sur-nuit-2: #B9C4D4;
  --lien-nuit: #A4D0FF;
  --fond: #FFFFFF;
  --fond-doux: #F3F6FA;
  --texte: #1A2230;
  --texte-2: #4A5568;
  --bord: #E1E6EE;
  --accent: #0A66C2;
  --ombre: 0 1px 2px rgba(16, 24, 40, .06), 0 18px 40px -18px rgba(16, 24, 40, .28);
  --focus: #0A66C2;
  --rayon: 14px;
  --gouttiere: clamp(16px, 4vw, 40px);
  /* Polices du système, sans system-ui : sous Linux il peut désigner une police CJK sans gras (constaté).
     Titres : Segoe UI Variable Display sous Windows 11 (plus ronde, proche du logo), Segoe UI ailleurs sous Windows ;
     gras 700 et non 800, qui tomberait sur Segoe UI Black, trop lourd. */
  --police: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
  --police-titre: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
  --decor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%234A9DF8' stroke-opacity='.075' stroke-width='18' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='22,110 100,32 178,110'/%3E%3Cpolyline points='46,172 100,118 154,172'/%3E%3C/svg%3E");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --nuit: #161E2C;
    --nuit-profond: #0B1018;
    --fond: #0F1520;
    --fond-doux: #131B28;
    --texte: #E8EDF4;
    --texte-2: #A9B4C4;
    --bord: #263146;
    --accent: #7AB8FA;
    --ombre: 0 18px 40px -18px rgba(0, 0, 0, .7);
    --focus: #8CC2FF;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font: 400 1.0625rem/1.6 var(--police); color: var(--texte); background: var(--fond);
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--police-titre); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.cadre { width: min(1160px, calc(100% - 2 * var(--gouttiere))); margin-inline: auto; }
.insecable { white-space: nowrap; }
.adresse { font-weight: 600; white-space: nowrap; -webkit-user-select: all; user-select: all; }

.evitement { position: absolute; left: 16px; top: -100px; z-index: 30; padding: .6rem 1rem; border-radius: 8px;
  background: var(--sur-nuit); color: var(--encre); font-weight: 600; text-decoration: none; }
.evitement:focus { top: 12px; }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 20; background: var(--nuit); border-bottom: 1px solid rgba(238, 242, 247, .08);
  --focus: #8CC2FF; }
.entete-cadre { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.marque { display: block; flex: none; border-radius: 6px; }
.marque img { height: 29px; width: auto; max-width: none; }
.entete-liens { display: flex; align-items: center; gap: 1.5rem; }
.entete-liens .btn + .btn { margin-left: -.75rem; } /* les deux boutons plus proches l'un de l'autre que des liens */
.lien-section { color: var(--sur-nuit-2); font-weight: 500; font-size: .95rem; text-decoration: none; padding: .35rem 0; }
.lien-section:hover { color: #fff; }
@media (max-width: 880px) { .lien-section { display: none; } }
/* Petits écrans : le logo se réduit à sa tuile (le mot-symbole est rogné), les deux boutons tiennent jusqu'à 320 px. */
@media (max-width: 480px) {
  .entete-cadre { min-height: 58px; gap: .75rem; }
  .marque { width: 30px; height: 30px; overflow: hidden; border-radius: 7px; }
  .marque img { height: 30px; }
  .entete-liens { gap: .75rem; }
  .entete-liens .btn + .btn { margin-left: -.25rem; }
  .entete .btn-petit { min-height: 40px; padding: .45rem .75rem; font-size: .9rem; }
}

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.4rem;
  border: 1px solid transparent; border-radius: 10px; font-family: var(--police-titre); font-size: 1rem; font-weight: 600;
  line-height: 1.2; text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s; }
.btn-petit { min-height: 40px; padding: .5rem 1rem; font-size: .95rem; }
.btn-principal { background: var(--tuile); color: var(--encre); }
.btn-principal:hover { background: var(--tuile-vive); }
.btn-contour { color: var(--sur-nuit); border-color: rgba(238, 242, 247, .38); }
.btn-contour:hover { background: rgba(238, 242, 247, .08); border-color: rgba(238, 242, 247, .7); }
.boutons { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.boutons-centres { justify-content: center; }
.seulement-mobile { display: none; }
@media (max-width: 600px) {
  .sauf-mobile { display: none; }
  .seulement-mobile { display: inline-flex; }
}
@media (max-width: 420px) { .boutons .btn { flex: 1 1 auto; } }

/* Adresse de contact en clair (un lien mailto n'ouvre rien sans logiciel de messagerie) */
.ecrire { margin-top: 1rem; color: var(--sur-nuit-2); font-size: .95rem; }
.ecrire .adresse { color: #fff; }
.copier { margin-left: .4rem; min-height: 32px; padding: .25rem .7rem; border: 1px solid rgba(238, 242, 247, .38);
  border-radius: 8px; background: transparent; color: var(--sur-nuit); font: 500 .875rem/1.2 var(--police); cursor: pointer; }
.copier:hover { background: rgba(238, 242, 247, .08); border-color: rgba(238, 242, 247, .7); }
.copie-etat { margin-left: .4rem; color: var(--lien-nuit); font-size: .875rem; }
.copie-etat:empty { display: none; }

/* ---------- Accroche + vidéo ---------- */
.heros { position: relative; overflow: hidden; color: var(--sur-nuit); --focus: #8CC2FF;
  background: var(--decor) no-repeat right -90px bottom -150px / min(620px, 80vw), var(--nuit);
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.heros-grille { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .heros-grille { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 3rem; } }
.surtitre { margin-bottom: 1rem; color: var(--tuile); font-size: .95rem; font-weight: 600; letter-spacing: .01em; text-wrap: balance; }
.heros h1 { color: #fff; font-size: clamp(2.1rem, 1.45rem + 3.2vw, 3.15rem); letter-spacing: -.015em; line-height: 1.08; }
.heros h1 .ligne { display: block; text-wrap: balance; }
.bleu { color: var(--tuile); }
.chapo { max-width: 34rem; margin-top: 1.25rem; color: var(--sur-nuit-2); font-size: clamp(1.075rem, 1rem + .35vw, 1.2rem); }

.video { margin: 0; scroll-margin-top: 80px; }
@media (max-width: 959px) { .video { max-width: 720px; } }
.video-cadre { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--rayon); background: #111826;
  box-shadow: 0 0 0 1px rgba(238, 242, 247, .1), 0 30px 70px -24px rgba(0, 0, 0, .65); }
.video-cadre video, .video-facade, .video-facade img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-cadre video { background: #000; object-fit: contain; }
.video-cadre video:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.video-facade { display: block; color: #fff; text-decoration: none; }
.video-facade img { z-index: 0; object-fit: cover; }
/* Voile : léger sur toute l'image, plus dense en bas pour l'étiquette. */
.video-facade::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(10, 15, 24, .62), rgba(10, 15, 24, 0) 42%), rgba(10, 15, 24, .14); }
/* Anneau de focus dessiné par-dessus l'image (un outline serait recouvert par elle). */
.video-facade::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: var(--rayon); pointer-events: none; }
.video-facade:focus-visible { outline: none; }
.video-facade:focus-visible::after { box-shadow: inset 0 0 0 3px var(--focus), inset 0 0 0 5px rgba(10, 15, 24, .8); }
.video-lecture { position: absolute; left: 50%; top: 50%; z-index: 2; display: grid; place-items: center; width: 76px; height: 76px;
  margin: -38px 0 0 -38px; border-radius: 50%; background: var(--tuile); color: var(--encre);
  box-shadow: 0 0 0 10px rgba(74, 157, 248, .22), 0 12px 30px rgba(0, 0, 0, .45); transition: transform .15s, background-color .15s; }
.video-lecture svg { fill: currentColor; margin-left: 4px; }
.video-facade:hover .video-lecture, .video-facade:focus-visible .video-lecture { background: var(--tuile-vive); transform: scale(1.06); }
.video-titre { position: absolute; left: 14px; bottom: 14px; z-index: 2; display: flex; align-items: baseline; gap: .6rem;
  max-width: calc(100% - 28px); padding: .4rem .75rem; border-radius: 8px; background: rgba(10, 15, 24, .82); font-size: .9rem; }
.video-titre span { color: var(--sur-nuit-2); }
.video-note { margin-top: .85rem; color: var(--sur-nuit-2); font-size: .875rem; }
@media (max-width: 600px) {
  .video-lecture { width: 58px; height: 58px; margin: -29px 0 0 -29px; box-shadow: 0 0 0 7px rgba(74, 157, 248, .22), 0 8px 20px rgba(0, 0, 0, .45); }
  .video-lecture svg { width: 22px; height: 22px; margin-left: 3px; }
  .video-titre { left: 10px; bottom: 10px; padding: .3rem .6rem; font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) { .btn, .video-lecture { transition: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; scroll-margin-top: 56px; }
.section-douce { background: var(--fond-doux); }
.section-tete { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section h2 { font-size: clamp(1.85rem, 1.3rem + 2vw, 2.6rem); }
.section-tete p, .section-chapo { margin-top: .9rem; color: var(--texte-2); font-size: 1.15rem; }
/* Toutes les images au même format (16:9, ou 4:3 pour la scène garde-fous), même bord, même ombre. */
.vignette { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--bord); border-radius: var(--rayon);
  background: #F5F6F8; box-shadow: var(--ombre); }
.vignette-43 { aspect-ratio: 4 / 3; }
.vignette-claire { aspect-ratio: auto; }
@media (max-width: 600px) { .vignette-detail { aspect-ratio: 4 / 3; } } /* recadrage zoomé, lisible sur téléphone */
.mention, figcaption { color: var(--texte-2); font-size: .85rem; }

.etapes { display: grid; gap: 3rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 860px) { .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.5rem 3rem; } }
.etape-texte { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .45rem .9rem; margin-top: 1.4rem; }
.num { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 9px; background: var(--tuile);
  color: var(--encre); font-family: var(--police-titre); font-weight: 700; line-height: 1; }
.etape h3 { font-size: 1.3rem; }
.etape p { grid-column: 2; color: var(--texte-2); }
@media (max-width: 480px) { .etape p { grid-column: 1 / -1; } }
.mention { margin-top: 2rem; }

.aussi { display: grid; gap: 1.75rem 2.5rem; margin: clamp(3rem, 6vw, 4.5rem) 0 0; padding: 2.25rem 0 0; list-style: none;
  border-top: 1px solid var(--bord); }
@media (min-width: 860px) { .aussi { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.aussi li { position: relative; padding-left: 1.35rem; }
.aussi h3 { font-size: 1.08rem; }
.aussi p { margin-top: .4rem; color: var(--texte-2); font-size: 1rem; }

/* Puces : un petit carré arrondi couleur tuile (rappel du logo), qui ne ressemble pas à une commande. */
.aussi li::before, .points li::before, .coches li::before { content: ""; position: absolute; left: 0; top: .42em;
  width: 8px; height: 8px; border-radius: 2.5px; background: var(--tuile); }
.coches li::before { top: .62em; }

.duo { display: grid; gap: 2rem 4rem; align-items: center; }
@media (min-width: 960px) {
  .duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .duo-inverse .duo-image { order: 2; }
}
.duo + .duo { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.duo-image { margin: 0; }
.duo-image figcaption { margin-top: .7rem; }
.points { display: grid; gap: 1.35rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.points li { position: relative; padding-left: 1.35rem; }
.points h3 { font-size: 1.1rem; }
.points p { margin-top: .25rem; color: var(--texte-2); }
.duo-titre { font-size: 1.55rem; }
.coches { display: grid; gap: 1rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.coches li { position: relative; padding-left: 1.35rem; color: var(--texte-2); }
.coches b { color: var(--texte); font-weight: 650; }
.appuye { margin-top: 1.6rem; padding: .9rem 1.1rem; border-left: 3px solid var(--tuile); border-radius: 0 10px 10px 0;
  background: var(--fond-doux); font-weight: 600; }

/* ---------- Appel final et pied de page ---------- */
.appel { padding: clamp(3.5rem, 8vw, 6rem) 0; text-align: center; color: var(--sur-nuit); --focus: #8CC2FF;
  background: var(--decor) no-repeat left -120px bottom -170px / min(560px, 80vw), var(--nuit); }
.appel h2 { color: #fff; font-size: clamp(1.85rem, 1.3rem + 2vw, 2.6rem); }
.appel-cadre > p { max-width: 40rem; margin: 1rem auto 0; color: var(--sur-nuit-2); font-size: 1.15rem; }
.appel-cadre > .ecrire-appel { margin-top: 1.4rem; font-size: 1rem; line-height: 2.1; }
.appel .prerequis { margin-top: 2rem; font-size: .9rem; }

.pied { padding: 2.5rem 0 2.75rem; background: var(--nuit-profond); color: var(--sur-nuit-2); font-size: .95rem; --focus: #8CC2FF; }
.pied-cadre { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1.5rem 3rem; }
.pied-marque { max-width: 30rem; }
.pied-marque img { height: 24px; width: auto; }
.pied-marque p { margin-top: .7rem; }
.pied-marque .pied-note { font-size: .8rem; color: #8F9BAD; }
.pied-liens { display: grid; gap: .3rem; justify-items: end; text-align: right; }
.pied .adresse { color: #fff; }
.pied-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.pied-nav a { display: inline-block; padding-block: .35rem; color: var(--sur-nuit); white-space: nowrap; }
@media (max-width: 700px) {
  .pied-liens { justify-items: start; text-align: left; }
  .pied-nav { justify-content: flex-start; }
}

/* Lien vers les pages légales, en bas du pied de page (seulement quand elles sont renseignées, voir mentions.py) */
.pied-legal { display: flex; flex-wrap: wrap; flex-basis: 100%; gap: .25rem 1.5rem; margin: 0; padding: 1.1rem 0 0; list-style: none;
  border-top: 1px solid rgba(238, 242, 247, .1); font-size: .875rem; }
.pied-legal a { display: inline-block; padding-block: .3rem; color: var(--sur-nuit-2); }
.pied-legal a:hover, .pied-legal a[aria-current="page"] { color: #fff; }

/* ---------- Pages légales (mentions.html, confidentialite.html) ---------- */
.legal-cadre { width: min(48rem, calc(100% - 2 * var(--gouttiere))); }
.legal-tete { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2.25rem, 5vw, 3.25rem); color: var(--sur-nuit-2); --focus: #8CC2FF;
  background: var(--decor) no-repeat right -110px bottom -200px / min(460px, 70vw), var(--nuit); }
.legal-tete h1 { color: #fff; font-size: clamp(2rem, 1.5rem + 2vw, 2.6rem); }
.legal-tete p { margin-top: .75rem; font-size: 1.1rem; }
.legal-corps { padding: clamp(2.25rem, 5vw, 3.5rem) 0 clamp(3.5rem, 8vw, 5.5rem); }
.legal-corps > section { padding-top: 2.25rem; margin-top: 2.25rem; border-top: 1px solid var(--bord); scroll-margin-top: 72px; }
.legal-corps > section:first-of-type { padding-top: 0; margin-top: 0; border-top: 0; }
.legal-corps > .sommaire + section { padding-top: 0; margin-top: 2.25rem; border-top: 0; }
.legal h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.7rem); }
.legal h3 { margin-top: 1.75rem; font-size: 1.1rem; }
.legal-corps p, .legal-liste li { color: var(--texte-2); }
.legal-corps b { color: var(--texte); font-weight: 650; }
.legal-corps h2 + p, .legal-corps h2 + ul, .legal-corps h2 + dl, .legal-corps h3 + p, .legal-corps h3 + ul { margin-top: .85rem; }
.legal-corps p + p { margin-top: .85rem; }
.legal .adresse { color: var(--texte); }
.legal-liste { display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.legal-liste li { position: relative; padding-left: 1.35rem; }
.legal-liste li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 2.5px; background: var(--tuile); }
.appuye-legal { padding: .8rem 1rem; border-left: 3px solid var(--tuile); border-radius: 0 10px 10px 0; background: var(--fond-doux); }

.sommaire { padding: 1rem 1.25rem; border: 1px solid var(--bord); border-radius: var(--rayon); background: var(--fond-doux); }
.sommaire ol { display: flex; flex-wrap: wrap; gap: .1rem 1.4rem; margin: 0; padding: 0; list-style: none; counter-reset: sommaire; }
.sommaire li { counter-increment: sommaire; }
.sommaire a { display: inline-block; padding-block: .3rem; font-weight: 500; }
.sommaire a::before { content: counter(sommaire) "."; display: inline-block; margin-right: .3em; color: var(--texte-2); font-weight: 400; }

.fiche-legale { margin: 0; border-top: 1px solid var(--bord); }
.fiche-legale > div { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: .2rem 1.5rem; padding: .8rem 0;
  border-bottom: 1px solid var(--bord); }
.fiche-legale > div:last-child { border-bottom: 0; }
.fiche-legale dt { color: var(--texte-2); }
.fiche-legale dd { margin: 0; color: var(--texte); font-weight: 500; }
@media (max-width: 600px) { .fiche-legale > div { grid-template-columns: minmax(0, 1fr); } }
