/* =========================================================================
   CUT!SESSION — CHARTE GRAPHIQUE
   Couleurs extraites du logo :
   Nuit    #120F30  contour de l'appareil, fonds sombres
   Ardoise #262932  texte du logo
   Crème   #FBFAF7  fond du logo
   Rose    #DC5F9C  haut du boîtier
   Violet  #A682BB  transition du dégradé
   Ciel    #5FBBEC  bas du boîtier
   Typographies : Bitter (titres, proche du logotype) + DM Sans (texte)
   ========================================================================= */

:root {
  --nuit: #120F30;
  --nuit-2: #1D1948;
  --ardoise: #262932;
  --creme: #FBFAF7;
  --creme-2: #F1EEF4;
  --rose: #DC5F9C;
  --violet: #A682BB;
  --ciel: #5FBBEC;
  --gris: #17143D;
  --bleu: #AEC6E0;     /* fond principal : bleu pastel */
  --fond-2: #5170B1;   /* second fond : second bleu (alternance, process, avis, pied de page) */
  --bande: #5170B1;    /* bleu des bandeaux (chiffres + bandeau final) */
  --accent: #2358B0;   /* bleu vif pour mettre en valeur « en vidéos qui marquent » */
  --texte-2: #26498A;  /* texte secondaire */
  --lien: #2F5E9E;
  --degrade: linear-gradient(165deg, var(--rose) 0%, var(--violet) 48%, var(--ciel) 100%);

  --serif: "Manrope", "Segoe UI", system-ui, sans-serif;
  --logotype: "Bitter", "Rockwell", "Georgia", serif;
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gris-clair: #26498A;

  --max: 1180px;
  --pad: clamp(1.1rem, 4vw, 2.5rem);
  --rayon: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bleu);
  background-repeat: no-repeat;
  color: var(--ardoise);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--nuit); line-height: 1.12; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--ciel); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: -999px; top: 0; background: var(--nuit); color: var(--creme); padding: .7rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid var(--nuit);
  font-weight: 700; text-decoration: none; line-height: 1.2; min-height: 48px;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn-plein { background: var(--nuit); color: var(--creme); }
.btn-plein:hover { background: var(--nuit-2); transform: translateY(-2px); }
.btn-contour { background: transparent; color: var(--nuit); }
.btn-contour:hover { background: var(--nuit); color: var(--creme); }
.btn-degrade { background: var(--degrade); color: var(--nuit); }
.btn-degrade:hover { transform: translateY(-2px); filter: saturate(1.15); }
.btn-clair { background: var(--creme); color: var(--nuit); border-color: var(--creme); }
.btn-clair:hover { transform: translateY(-2px); }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 50; background: #EAF2FA; border-bottom: 2px solid var(--nuit); box-shadow: 0 6px 18px -8px rgba(18,15,48,.35); }
.entete .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; min-height: 72px; }
.marque { display: flex; align-items: center; gap: .6rem; text-decoration: none; justify-self: start; }
.marque img { height: 40px; width: auto; }
.marque span { font-family: var(--logotype); font-weight: 800; font-size: 1.45rem; color: var(--ardoise); letter-spacing: -.01em; }
.nav { display: contents; }
.nav-liens { display: flex; align-items: center; justify-content: center; gap: 2.4rem; }
.nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: .7rem; }
.nav a { text-decoration: none; font-weight: 500; }
.nav-liens a:not(.btn) { font-weight: 700; color: var(--nuit); display: inline-block; transition: transform .15s ease; }
.nav-liens a:not(.btn):hover { transform: translateY(-2px); }
.nav-liens .btn { margin-left: .6rem; color: var(--creme); }
.nav a:not(.btn):hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--nuit); }
.nav .btn { padding: .6rem 1.2rem; min-height: 44px; }
.nav .btn-degrade { color: var(--nuit); }
.burger { display: none; width: 48px; height: 48px; background: none; border: 2px solid var(--nuit); border-radius: 12px; position: relative; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 11px; width: 22px; height: 2.5px; background: var(--nuit); border-radius: 2px; content: ""; transition: transform .2s, opacity .2s; }
.burger span { top: 21px; }
.burger span::before { left: 0; top: -7px; }
.burger span::after { left: 0; top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .entete .wrap { display: flex; justify-content: space-between; }
  .burger { display: block; }
  .nav-liens, .nav-actions { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-liens .btn { margin: 1rem 0 0; }
  .nav-actions { gap: .7rem; margin-top: .7rem; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; background: #EAF2FA;
    flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--pad) 1.2rem;
    border-bottom: 2px solid var(--nuit); display: none;
  }
  .nav.ouvert { display: flex; }
  .nav-liens a { text-align: center; }
  .nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--creme-2); font-size: 1.1rem; }
}

/* ---------- Accueil ---------- */
.accueil { position: relative; z-index: 2; padding-block: clamp(1.6rem, 3.9vw, 3.1rem) 0; overflow: hidden; }
.accueil .wrap { display: flex; flex-direction: column; align-items: center; gap: clamp(1.3rem, 2.9vw, 1.95rem); text-align: center; }
.accueil h1 { font-size: clamp(2.5rem, 5.7vw, 4.4rem); font-weight: 800; letter-spacing: -.03em; max-width: none; margin-inline: auto; color: var(--nuit); }
.accueil .intro { margin-top: 1.2rem; font-size: clamp(1.15rem, 2.4vw, 1.5rem); max-width: 56ch; margin-inline: auto; color: var(--gris-clair); }
.accueil .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; margin-top: 1.7rem; }

/* Objectif photo : écho du logo (anneau crème, anneau nuit, iris dégradé) */
.logo-accueil { width: min(39vw, 130px); height: auto; border-radius: 24px; background: var(--creme); box-shadow: 0 14px 28px -12px rgba(18,15,48,.35); }


/* ---------- Chiffres ---------- */
.chiffres { position: relative; isolation: isolate; color: #fff; padding-block: clamp(9rem, 21vw, 14rem); margin-top: clamp(1rem, 3.5vw, 3rem); }
.chiffres::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bande);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, rgba(0,0,0,0.022) 6.2%, rgba(0,0,0,0.138) 12.3%, rgba(0,0,0,0.353) 18.5%, rgba(0,0,0,0.611) 24.6%, rgba(0,0,0,0.837) 30.8%, rgba(0,0,0,0.968) 37.0%, #000 44%, #000 56%, rgba(0,0,0,0.968) 63.0%, rgba(0,0,0,0.837) 69.2%, rgba(0,0,0,0.611) 75.4%, rgba(0,0,0,0.353) 81.5%, rgba(0,0,0,0.138) 87.7%, rgba(0,0,0,0.022) 93.8%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, rgba(0,0,0,0.022) 6.2%, rgba(0,0,0,0.138) 12.3%, rgba(0,0,0,0.353) 18.5%, rgba(0,0,0,0.611) 24.6%, rgba(0,0,0,0.837) 30.8%, rgba(0,0,0,0.968) 37.0%, #000 44%, #000 56%, rgba(0,0,0,0.968) 63.0%, rgba(0,0,0,0.837) 69.2%, rgba(0,0,0,0.611) 75.4%, rgba(0,0,0,0.353) 81.5%, rgba(0,0,0,0.138) 87.7%, rgba(0,0,0,0.022) 93.8%, transparent 100%);
}
.chiffres ul { list-style: none; margin: 0 auto; padding: 0; max-width: 1066px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem 0; text-align: center; }
.chiffres li { flex: 1 1 200px; min-width: 160px; }
.chiffres strong { display: block; font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; color: #fff; line-height: 1.05; }
.chiffres span { color: #EEF2FA; font-weight: 600; }

/* ---------- Sections de projets ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); --fl: var(--bleu); }

.section-tete { margin-bottom: 2.8rem; text-align: center; }
.section-tete h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; letter-spacing: -.03em; color: var(--nuit); }
.section-tete p { margin: .8rem auto 0; color: var(--gris-clair); font-size: 1.15rem; max-width: 60ch; }

.pack + .pack { margin-top: 3rem; }
.pack-tete { text-align: center; margin-bottom: .6rem; }
.pack-tete h3 { font-size: 1.5rem; font-weight: 700; color: var(--nuit); }
.pack-tete p { margin: .3rem auto 0; color: var(--gris-clair); max-width: 58ch; }
.fleche { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--nuit); background: var(--ciel); color: var(--nuit); font-size: 1.2rem; line-height: 1; display: grid; place-items: center; }
.fleche:hover { background: var(--nuit); color: var(--ciel); }
.fleche[disabled] { opacity: .3; pointer-events: none; }

/* Flèches en surimpression de chaque côté de la ligne de vidéos */
.rail { position: relative; }
.rail .fleche {
  position: absolute; top: calc(50% - 1rem); transform: translateY(-50%); z-index: 3; width: 52px; height: 52px; font-size: 1.6rem;
  background: rgba(95,187,236,.78); border-color: rgba(18,15,48,.85); color: var(--nuit);
  opacity: .55; transition: opacity .3s ease, background-color .3s ease;
  box-shadow: 0 6px 16px -4px rgba(18,15,48,.5);
}
.rail .fleche.gauche { left: 8px; }
.rail .fleche.droite { right: 8px; }
.rail:hover .fleche { opacity: .85; }
.rail .fleche:hover { opacity: 1; background: #8ED3F5; color: var(--nuit); }
.rail .fleche[disabled] { opacity: 0; }
@media (max-width: 560px) { .rail .fleche { width: 42px; height: 42px; font-size: 1.3rem; } .rail .fleche.gauche { left: 4px; } .rail .fleche.droite { right: 4px; } }

.piste {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .6rem 6px 2.2rem; margin-inline: 0;
  scroll-padding-inline: 6px; scrollbar-width: none; -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.piste::-webkit-scrollbar { display: none; }
.piste {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,0.022) calc(var(--fg, 0px) * 0.14), rgba(0,0,0,0.138) calc(var(--fg, 0px) * 0.28), rgba(0,0,0,0.353) calc(var(--fg, 0px) * 0.42), rgba(0,0,0,0.611) calc(var(--fg, 0px) * 0.56), rgba(0,0,0,0.837) calc(var(--fg, 0px) * 0.7), rgba(0,0,0,0.968) calc(var(--fg, 0px) * 0.84), #000 var(--fg, 0px), #000 calc(100% - var(--fd, 56px)), rgba(0,0,0,0.968) calc(100% - var(--fd, 56px) * 0.84), rgba(0,0,0,0.837) calc(100% - var(--fd, 56px) * 0.7), rgba(0,0,0,0.611) calc(100% - var(--fd, 56px) * 0.56), rgba(0,0,0,0.353) calc(100% - var(--fd, 56px) * 0.42), rgba(0,0,0,0.138) calc(100% - var(--fd, 56px) * 0.28), rgba(0,0,0,0.022) calc(100% - var(--fd, 56px) * 0.14), transparent 100%), linear-gradient(180deg, transparent 0, rgba(0,0,0,.35) 5px, #000 12px, #000 calc(100% - 30px), rgba(0,0,0,.65) calc(100% - 18px), rgba(0,0,0,.2) calc(100% - 7px), transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,0.022) calc(var(--fg, 0px) * 0.14), rgba(0,0,0,0.138) calc(var(--fg, 0px) * 0.28), rgba(0,0,0,0.353) calc(var(--fg, 0px) * 0.42), rgba(0,0,0,0.611) calc(var(--fg, 0px) * 0.56), rgba(0,0,0,0.837) calc(var(--fg, 0px) * 0.7), rgba(0,0,0,0.968) calc(var(--fg, 0px) * 0.84), #000 var(--fg, 0px), #000 calc(100% - var(--fd, 56px)), rgba(0,0,0,0.968) calc(100% - var(--fd, 56px) * 0.84), rgba(0,0,0,0.837) calc(100% - var(--fd, 56px) * 0.7), rgba(0,0,0,0.611) calc(100% - var(--fd, 56px) * 0.56), rgba(0,0,0,0.353) calc(100% - var(--fd, 56px) * 0.42), rgba(0,0,0,0.138) calc(100% - var(--fd, 56px) * 0.28), rgba(0,0,0,0.022) calc(100% - var(--fd, 56px) * 0.14), transparent 100%), linear-gradient(180deg, transparent 0, rgba(0,0,0,.35) 5px, #000 12px, #000 calc(100% - 30px), rgba(0,0,0,.65) calc(100% - 18px), rgba(0,0,0,.2) calc(100% - 7px), transparent 100%);
  mask-composite: intersect;
}
.tuile {
  box-shadow: 0 14px 30px -20px rgba(18,15,48,.32);
  position: relative; flex: 0 0 auto; scroll-snap-align: start; border: 0; border-radius: var(--rayon);
  overflow: hidden; padding: 0; background: var(--nuit); display: block;
}
.tuile::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 12px 5px var(--fl, var(--bleu)); }
.tuile:hover img, .tuile:hover video { transform: scale(1.07); }
.format-horizontal .tuile { width: min(420px, 78vw); aspect-ratio: 16/9; }
.format-vertical .tuile { width: min(230px, 56vw); aspect-ratio: 9/16; }
.tuile img, .tuile video { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.tuile .lecture {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(to top, rgba(18,15,48,.55), rgba(18,15,48,0) 55%);
}
.tuile .lecture i { width: 56px; height: 56px; border-radius: 50%; background: var(--creme); display: grid; place-items: center; border: 2px solid var(--nuit); }
.tuile .lecture i::before { content: ""; margin-left: 4px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent var(--nuit); }
.tuile .legende { position: absolute; left: .8rem; right: .8rem; bottom: .6rem; color: var(--creme); font-size: .9rem; font-weight: 500; text-align: left; }
.tuile.vide { cursor: default; background: linear-gradient(160deg, #9DB0E4 0%, #7BAEE3 100%); }

.tuile.vide .lecture { background: none; }
.tuile.vide .lecture i { display: none; }
.tuile.vide .vide-texte { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1rem; font-family: var(--serif); font-weight: 700; font-size: 1.05rem; color: var(--nuit); }
.indice { margin-top: .4rem; font-size: .9rem; color: var(--gris); }

/* ---------- Process (accordéon) ---------- */
.process { background: linear-gradient(180deg, var(--bleu) 0, color-mix(in srgb, var(--fond-2) 2%, var(--bleu)) calc(0px + 21px), color-mix(in srgb, var(--fond-2) 14%, var(--bleu)) calc(0px + 42px), color-mix(in srgb, var(--fond-2) 35%, var(--bleu)) calc(0px + 63px), color-mix(in srgb, var(--fond-2) 61%, var(--bleu)) calc(0px + 84px), color-mix(in srgb, var(--fond-2) 84%, var(--bleu)) calc(0px + 105px), color-mix(in srgb, var(--fond-2) 97%, var(--bleu)) calc(0px + 126px), var(--fond-2) calc(0px + 150px)); color: var(--fond-2); padding-block: clamp(8rem, 11vw, 9.5rem) clamp(3rem, 7vw, 5rem); text-align: center; }
.process h2 { color: var(--nuit); font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; letter-spacing: -.015em; }
.process .entree p { margin: 1rem auto 0; color: var(--texte-2); max-width: 56ch; }
.etapes { list-style: none; margin: clamp(2rem, 5vw, 3.2rem) auto 0; padding: 0; max-width: 860px; border-top: 1px solid rgba(18,15,48,.18); text-align: center; }
.etape { position: relative; border-bottom: 1px solid rgba(18,15,48,.18); transition: background-color .35s ease; }
.etape::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--ciel); transition: width .5s cubic-bezier(.2,.7,.2,1); }
.etape.ouverte::before, .etape:hover::before { width: 100%; }
.etape.ouverte { background: rgba(255,255,255,.35); }
.etape-tete {
  width: 100%; display: grid; grid-template-columns: 4rem 1fr 4rem; align-items: center; gap: .5rem;
  background: none; border: 0; color: var(--nuit); padding: .95rem .4rem; text-align: center; min-height: 52px;
}
.etape-num { font-family: var(--serif); font-weight: 600; font-size: .88rem; color: var(--nuit); text-align: left; padding-left: .6rem; transition: color .3s ease; }
.etape-titre { font-family: var(--serif); font-weight: 700; font-size: clamp(1.1rem, 2.4vw, 1.45rem); letter-spacing: -.01em; transition: transform .35s ease; }
.etape-tete:hover .etape-titre, .etape.ouverte .etape-titre { transform: scale(1.03); }
.etape.ouverte .etape-num, .etape-tete:hover .etape-num { color: var(--nuit); }
.etape-icone { justify-self: end; margin-right: .6rem; position: relative; width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(18,15,48,.45); transition: background-color .3s ease, border-color .3s ease, transform .4s ease; }
.etape-icone::before, .etape-icone::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--nuit); border-radius: 2px; transition: transform .4s ease, background-color .3s ease; }
.etape-icone::after { transform: rotate(90deg); }
.etape.ouverte .etape-icone { background: #9ED3F2; border-color: transparent; transform: rotate(180deg); }
.etape.ouverte .etape-icone::before, .etape.ouverte .etape-icone::after { background: var(--nuit); }
.etape.ouverte .etape-icone::after { transform: rotate(0deg); }
.etape-corps { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2,.7,.2,1); }
.etape.ouverte .etape-corps { grid-template-rows: 1fr; }
.etape-int { overflow: hidden; min-height: 0; padding-inline: 1rem; }
.etape-int p { margin: 0 auto; max-width: 52ch; color: var(--texte-2); font-size: .98rem; opacity: 0; transform: translateY(8px); transition: opacity .4s ease .1s, transform .4s ease .1s; }
.etape.ouverte .etape-int p { opacity: 1; transform: none; }
.mots { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 1.1rem 0 0; padding: 0 0 1.8rem; }
.mots li { border: 1.5px solid rgba(18,15,48,.3); border-radius: 999px; padding: .2rem .9rem; font-size: .92rem; color: var(--nuit); opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease, background-color .2s ease; }
.etape.ouverte .mots li { opacity: 1; transform: none; }
.etape.ouverte .mots li:nth-child(1) { transition-delay: .15s; } .etape.ouverte .mots li:nth-child(2) { transition-delay: .22s; }
.etape.ouverte .mots li:nth-child(3) { transition-delay: .29s; } .etape.ouverte .mots li:nth-child(4) { transition-delay: .36s; }
.etape.ouverte .mots li:nth-child(5) { transition-delay: .43s; }
.mots li:hover { background: rgba(95,187,236,.28); }
/* Apparition en cascade des lignes */
.etapes.anim .etape { opacity: 0; transform: translateY(22px); }
.etapes.anim.visible .etape { opacity: 1; transform: none; transition: opacity .6s ease var(--d, 0ms), transform .6s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), background-color .35s ease; }
@media (max-width: 560px) {
  .etape-tete { grid-template-columns: 2.6rem 1fr 2.6rem; padding-block: .85rem; }
  .etape-num { font-size: .85rem; padding-left: .2rem; }
  .etape-icone { width: 28px; height: 28px; margin-right: .2rem; }
}

/* ---------- Témoignages ---------- */
.avis-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.avis { border: 2px solid var(--nuit); border-radius: var(--rayon); padding: 1.8rem 1.6rem; background: #fff; margin: 0; display: flex; flex-direction: column; gap: 1.2rem; text-align: center; box-shadow: 0 16px 28px -14px rgba(18,15,48,.3); }
.avis blockquote { margin: 0; font-family: var(--serif); font-size: 1.15rem; line-height: 1.5; color: var(--nuit); }
.avis figcaption { display: flex; flex-direction: column; align-items: center; gap: .5rem; margin-top: auto; }
.avis figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--nuit); }
.avis figcaption b { display: block; }
.avis figcaption small { color: var(--gris); font-size: .9rem; }

/* ---------- Bandeau contact (pleine largeur, dégradé) ---------- */
.contact { background: linear-gradient(180deg, rgba(81,112,177,1) 0, rgba(81,112,177,0.978) 16px, rgba(81,112,177,0.862) 32px, rgba(81,112,177,0.647) 48px, rgba(81,112,177,0.389) 64px, rgba(81,112,177,0.163) 80px, rgba(81,112,177,0.032) 97px, rgba(81,112,177,0) 115px), linear-gradient(var(--bleu), var(--bleu)); padding-block: clamp(11.25rem, 22.5vw, 18rem); text-align: center; color: var(--nuit); }
.contact-bloc h2 { font-size: clamp(1.8rem, 4.6vw, 3.2rem); font-weight: 800; max-width: none; margin-inline: auto; color: var(--accent); }
.contact-bloc p { margin-top: 1rem; font-size: 1.2rem; color: var(--gris-clair); font-weight: 500; }
.contact-bloc .btn { margin-top: 1.8rem; }

/* ---------- Pied de page ---------- */
.pied { position: relative; isolation: isolate; color: #fff; padding-block: calc(3rem + 70px) 2rem; }
.pied::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #41609F; -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0) 0px, rgba(0,0,0,0.022) 18px, rgba(0,0,0,0.138) 36px, rgba(0,0,0,0.353) 55px, rgba(0,0,0,0.611) 73px, rgba(0,0,0,0.837) 91px, rgba(0,0,0,0.968) 109px, rgba(0,0,0,1) 130px, #000 130px); mask-image: linear-gradient(180deg, rgba(0,0,0,0) 0px, rgba(0,0,0,0.022) 18px, rgba(0,0,0,0.138) 36px, rgba(0,0,0,0.353) 55px, rgba(0,0,0,0.611) 73px, rgba(0,0,0,0.837) 91px, rgba(0,0,0,0.968) 109px, rgba(0,0,0,1) 130px, #000 130px); }
.pied { text-align: center; }
.pied .haut { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.pied .logo-texte { font-family: var(--logotype); font-weight: 800; font-size: 1.8rem; color: #fff; }
.pied .liens { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.pied .liens a { text-decoration: none; font-weight: 500; padding: .3rem 0; border-bottom: 2px solid transparent; }
.pied .liens a:hover { border-bottom-color: #fff; }
.pied .bas { margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.3); display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.8rem; font-size: .92rem; color: #fff; }
.pied .bas a { color: #fff; }

/* ---------- Lecteur vidéo (fenêtre) ---------- */
dialog.lecteur { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100dvh; width: 100%; height: 100%; color: var(--creme); }
dialog.lecteur::backdrop { background: rgba(18,15,48,.94); }
.lecteur-int { height: 100%; display: grid; grid-template-rows: auto 1fr auto; gap: .8rem; padding: 1rem var(--pad) 1.2rem; }
.lecteur-haut { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.lecteur-haut strong { font-family: var(--serif); font-size: 1.1rem; }
.lecteur .fermer { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--creme); background: transparent; color: var(--creme); font-size: 1.6rem; line-height: 1; }
.lecteur .fermer:hover { background: var(--creme); color: var(--nuit); }
.scene { display: grid; place-items: center; min-height: 0; }
.scene iframe, .scene video { border: 0; background: #000; border-radius: 10px; max-width: 100%; max-height: 100%; }
.scene.h iframe, .scene.h video { width: min(100%, calc((100dvh - 190px) * 16 / 9)); aspect-ratio: 16/9; }
.scene.v iframe, .scene.v video { height: min(100%, calc(100dvh - 190px)); aspect-ratio: 9/16; }
.lecteur-bas { display: flex; justify-content: center; align-items: center; gap: 1rem; }
.lecteur-bas .fleche { background: transparent; border-color: var(--creme); color: var(--creme); }
.lecteur-bas .fleche:hover { background: var(--creme); color: var(--nuit); }
.lecteur-bas .compte { min-width: 4.5rem; text-align: center; }

/* ---------- Mentions légales ---------- */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(6rem, 12vw, 9rem); background: linear-gradient(180deg, var(--bleu) 0, var(--bleu) calc(100% - 170px), var(--bleu) calc(100% - 146px), var(--bleu) calc(100% - 122px), var(--bleu) calc(100% - 99px), var(--bleu) calc(100% - 75px), var(--bleu) calc(100% - 51px), var(--bleu) calc(100% - 27px), var(--bleu) 100%); }
.legal h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; margin-bottom: 2rem; text-align: center; color: var(--nuit); }
.legal h2 { font-size: 1.5rem; font-weight: 700; margin: 2.4rem 0 .8rem; color: var(--nuit); }
.legal p + p { margin-top: .9rem; }
.legal .retour { display: inline-block; margin-bottom: 1.4rem; font-weight: 700; color: var(--nuit); }
.legal-contenu { max-width: 74ch; margin-inline: auto; background: rgba(255,255,255,.6); border: 1px solid rgba(18,15,48,.14); border-radius: var(--rayon); padding: clamp(1.4rem, 4vw, 2.6rem); color: var(--texte-2); box-shadow: 0 16px 28px -16px rgba(18,15,48,.3); }
.legal-contenu h2:first-child { margin-top: 0; }
.legal a { color: var(--lien); text-decoration-color: var(--lien); text-underline-offset: 3px; }
.legal-contenu strong { color: var(--nuit); }

/* ---------- Accessibilité : réduction des animations ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.avis-vide { text-align: center; max-width: 52ch; margin: 0 auto; font-size: 1.15rem; color: var(--nuit); background: rgba(255,255,255,.55); border: 2px solid var(--nuit); border-radius: var(--rayon); padding: 1.6rem; }

.section.sombre { --fl: var(--bleu); background: linear-gradient(180deg, var(--fond-2) 0, color-mix(in srgb, var(--fond-2) 98%, var(--bleu)) 18px, color-mix(in srgb, var(--fond-2) 86%, var(--bleu)) 36px, color-mix(in srgb, var(--fond-2) 65%, var(--bleu)) 55px, color-mix(in srgb, var(--fond-2) 39%, var(--bleu)) 73px, color-mix(in srgb, var(--fond-2) 16%, var(--bleu)) 91px, color-mix(in srgb, var(--fond-2) 3%, var(--bleu)) 109px, var(--bleu) 130px, var(--bleu) calc(100% - 130px), color-mix(in srgb, var(--fond-2) 2%, var(--bleu)) calc(100% - 112px), color-mix(in srgb, var(--fond-2) 14%, var(--bleu)) calc(100% - 94px), color-mix(in srgb, var(--fond-2) 35%, var(--bleu)) calc(100% - 75px), color-mix(in srgb, var(--fond-2) 61%, var(--bleu)) calc(100% - 57px), color-mix(in srgb, var(--fond-2) 84%, var(--bleu)) calc(100% - 39px), color-mix(in srgb, var(--fond-2) 97%, var(--bleu)) calc(100% - 21px), var(--fond-2) 100%); padding-block: 8rem 8.5rem; }
.section.sombre .section-tete h2 { color: var(--nuit); }
.section.sombre .section-tete p { color: var(--texte-2); }
.section.sombre .avis-vide { color: var(--nuit); background: rgba(255,255,255,.55); border: 1px solid rgba(18,15,48,.15); }

/* Vidéos centrées quand il n'y a rien à faire défiler (les marges auto se réduisent à 0 s'il y a débordement) */
.piste > :first-child { margin-left: auto; }
.piste > :last-child { margin-right: auto; }

/* Alternance de deux couleurs entre les catégories, fondue aux jonctions */
.section.alt {
  --fl: var(--fond-2);
  background: linear-gradient(180deg, var(--bleu) 0, color-mix(in srgb, var(--fond-2) 2%, var(--bleu)) calc(0px + 18px), color-mix(in srgb, var(--fond-2) 14%, var(--bleu)) calc(0px + 36px), color-mix(in srgb, var(--fond-2) 35%, var(--bleu)) calc(0px + 55px), color-mix(in srgb, var(--fond-2) 61%, var(--bleu)) calc(0px + 73px), color-mix(in srgb, var(--fond-2) 84%, var(--bleu)) calc(0px + 91px), color-mix(in srgb, var(--fond-2) 97%, var(--bleu)) calc(0px + 109px), var(--fond-2) calc(0px + 130px), var(--fond-2) calc(100% - 130px), color-mix(in srgb, var(--fond-2) 97%, var(--bleu)) calc(100% - 109px), color-mix(in srgb, var(--fond-2) 84%, var(--bleu)) calc(100% - 91px), color-mix(in srgb, var(--fond-2) 61%, var(--bleu)) calc(100% - 73px), color-mix(in srgb, var(--fond-2) 35%, var(--bleu)) calc(100% - 55px), color-mix(in srgb, var(--fond-2) 14%, var(--bleu)) calc(100% - 36px), color-mix(in srgb, var(--fond-2) 2%, var(--bleu)) calc(100% - 18px), var(--bleu) 100%);
  padding-block: clamp(7.5rem, 10vw, 8.5rem);
}

/* Deuxième ligne des grands titres, en couleur contrastée */
.titre-accent { display: block; }
.accueil h1 { color: var(--accent); }
.accueil h1 .titre-accent { color: var(--nuit); }
.contact-bloc h2 .titre-accent { color: var(--nuit); }

/* ---------- Hiérarchie : petits textes en bleu (clair sur les bandeaux foncés) ---------- */
.section.alt .section-tete p, .section.alt .pack-tete p,
.process .entree p, .etape-int p, .etape-num { color: #E4EDF9; }
.etape.ouverte { background: rgba(18,15,48,.2); }
.mots li { color: #E4EDF9; border-color: rgba(228,237,249,.45); }
.etape.ouverte .etape-num, .etape-tete:hover .etape-num { color: #fff; }
