/* Site de Folium. Aucune ressource extérieure : polices du système, images locales, pas de script.
   Facture : grand bandeau sombre à titre fin, aperçu de l'application, sections alternées,
   boutons en pilule, prix en cartes. */

:root {
  --nuit: #071a33;
  --nuit-2: #0d2b52;
  --bleu: #1f6fe0;
  --bleu-clair: #6fb1ff;
  --vert: #2fd27a;
  --vert-fonce: #0f8f4c;
  --encre: #0c1726;
  --texte: #1c2738;
  --discret: #5b6779;
  --fond: #ffffff;
  --fond-doux: #f3f6fb;
  --surface: #ffffff;
  --trait: #dfe6f0;
  --ombre: 0 18px 50px rgba(7, 26, 51, .14);
  --rayon: 18px;
  --police: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --encre: #f2f6fc;
    --texte: #d6deea;
    --discret: #98a5b8;
    --fond: #0a1422;
    --fond-doux: #0f1c2e;
    --surface: #132238;
    --trait: #24364f;
    --ombre: 0 18px 50px rgba(0, 0, 0, .45);
    --vert-fonce: #2fd27a;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--police); font-size: 17px; line-height: 1.6; color: var(--texte); background: var(--fond); }
img { max-width: 100%; height: auto; }
a { color: var(--bleu); }
h1, h2, h3 { color: var(--encre); line-height: 1.15; margin: 0; }
p { margin: 0; }
.cadre { width: min(1180px, 100% - 48px); margin-inline: auto; }

/* En-tête */
.entete { position: sticky; top: 0; z-index: 10; background: rgba(7, 26, 51, .92); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.entete .cadre { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.marque { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 22px; font-weight: 600; letter-spacing: .01em; text-decoration: none; }
.marque img { width: 36px; height: 36px; border-radius: 9px; }
.navigation { display: flex; gap: 26px; margin-left: auto; }
.navigation a { color: rgba(255, 255, 255, .82); text-decoration: none; font-size: 15px; font-weight: 500; }
.navigation a:hover { color: #fff; }
.langues { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.langues a { padding: 3px 10px; border-radius: 999px; color: rgba(255, 255, 255, .75); font-size: 13px; font-weight: 600; text-decoration: none; }
.langues a[aria-current] { background: #fff; color: var(--nuit); }
.entete .bouton { padding: 9px 20px; font-size: 14px; }

/* Boutons */
.bouton { display: inline-block; padding: 14px 30px; border-radius: 999px; background: var(--vert); color: #04220f; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid var(--vert); transition: transform .15s, box-shadow .15s; }
.bouton:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(47, 210, 122, .35); }
.bouton.discret { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.bouton.discret:hover { box-shadow: none; border-color: #fff; }
.bouton.contour { background: transparent; border-color: var(--trait); color: var(--encre); }
.bouton.contour:hover { box-shadow: none; border-color: var(--bleu); }

/* Bandeau d'accueil */
.accueil { position: relative; overflow: hidden; color: #fff; text-align: center; padding: 84px 0 0;
  background:
    radial-gradient(900px 480px at 82% -10%, rgba(47, 210, 122, .22), transparent 60%),
    radial-gradient(900px 520px at 10% 0%, rgba(31, 111, 224, .5), transparent 62%),
    linear-gradient(180deg, var(--nuit) 0%, var(--nuit-2) 100%); }
.etat { display: inline-block; padding: 6px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #d9e8ff; font-size: 13px; font-weight: 600; letter-spacing: .03em; }
.accueil h1 { margin: 26px auto 0; max-width: 15ch; color: #fff; font-size: clamp(40px, 7vw, 76px); font-weight: 200; letter-spacing: -.02em; }
.accueil h1 strong { font-weight: 600; color: var(--vert); }
.accueil .chapeau { margin: 24px auto 0; max-width: 62ch; color: #c9d8ee; font-size: clamp(17px, 2vw, 21px); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.sous-actions { margin-top: 16px; color: #9fb4d3; font-size: 14px; }

/* Aperçu de l'application, dessiné en CSS */
.apercu { margin: 64px auto -1px; max-width: 1040px; text-align: left; border-radius: 16px 16px 0 0; background: #fdfeff; color: #1c2738; box-shadow: 0 -10px 80px rgba(111, 177, 255, .25), 0 30px 80px rgba(0, 0, 0, .5); overflow: hidden; font-size: 13px; line-height: 1.3; }
.apercu-titre { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #e9eef6; border-bottom: 1px solid #d5deea; }
.apercu-titre i { width: 11px; height: 11px; border-radius: 50%; background: #c5cfdd; }
.apercu-titre span { margin-left: 10px; color: #5b6779; font-weight: 600; }
.apercu-recherche { margin-left: auto; width: 34%; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid #d5deea; color: #8793a5; }
.apercu-corps { display: grid; grid-template-columns: 210px 1fr 250px; min-height: 330px; }
.apercu-lateral { padding: 14px 10px; background: #f3f6fb; border-right: 1px solid #dfe6f0; }
.apercu-lateral b { display: block; margin: 10px 8px 6px; color: #8793a5; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.apercu-lateral span { display: flex; justify-content: space-between; padding: 6px 10px; border-radius: 7px; }
.apercu-lateral span.choisi { background: #cfe0fb; outline: 2px solid var(--bleu); font-weight: 600; }
.apercu-lateral em { font-style: normal; padding: 0 7px; border-radius: 999px; background: var(--bleu); color: #fff; font-size: 11px; }
.apercu-centre { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 18px; align-content: start; }
.tuile { text-align: center; color: #3a475a; }
.tuile i { display: block; height: 96px; margin-bottom: 7px; border-radius: 6px; border: 1px solid #dfe6f0; background: linear-gradient(#fff, #fff) padding-box, repeating-linear-gradient(#fff 0 9px, #e3e9f2 9px 11px); background-origin: content-box; padding: 16px 12px; box-shadow: 0 3px 8px rgba(7, 26, 51, .08); }
.tuile i.photo { background: linear-gradient(135deg, #6fb1ff, #2fd27a); }
.tuile i.rouge { border-top: 5px solid #e5534b; }
.tuile i.vert { border-top: 5px solid var(--vert); }
.tuile i.bleu { border-top: 5px solid var(--bleu); }
.apercu-inspecteur { padding: 16px; background: #f8fafd; border-left: 1px solid #dfe6f0; }
.apercu-inspecteur .page { height: 150px; border-radius: 6px; border: 1px solid #dfe6f0; background: repeating-linear-gradient(#fff 0 10px, #e3e9f2 10px 12px); background-origin: content-box; background-clip: content-box, border-box; padding: 18px 16px; background-color: #fff; }
.apercu-inspecteur p { margin-top: 12px; font-weight: 600; }
.apercu-inspecteur small { display: block; color: #6b7789; }
.pastille { display: inline-block; margin: 8px 4px 0 0; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; color: #fff; background: var(--bleu); }
.pastille.v { background: var(--vert-fonce); }
.pastille.o { background: #d9822b; }

/* Bande de repères */
.reperes { background: var(--surface); border-bottom: 1px solid var(--trait); }
.reperes .cadre { display: grid; grid-template-columns: repeat(4, 1fr); }
.reperes div { padding: 30px 18px; text-align: center; border-left: 1px solid var(--trait); }
.reperes div:first-child { border-left: 0; }
.reperes b { display: block; color: var(--encre); font-size: 34px; font-weight: 300; letter-spacing: -.01em; }
.reperes span { color: var(--discret); font-size: 14px; }

/* Sections */
section { padding: 96px 0; }
section.douce { background: var(--fond-doux); }
.surtitre { display: block; margin-bottom: 14px; color: var(--vert-fonce); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
section h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 300; letter-spacing: -.015em; }
section .chapeau { margin-top: 16px; max-width: 64ch; color: var(--discret); font-size: 19px; }
.centre { text-align: center; }
.centre .chapeau { margin-inline: auto; }

/* Rangées alternées : texte et illustration */
.rangee { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; margin-top: 84px; }
.rangee:nth-of-type(even) .illustration, .rangee:nth-of-type(even) .vitrine { order: -1; }
.rangee h3 { font-size: 30px; font-weight: 400; }
.rangee p { margin-top: 14px; color: var(--discret); }
.liste-nette { list-style: none; margin: 20px 0 0; padding: 0; }
.liste-nette li { position: relative; margin-top: 10px; padding-left: 30px; }
.liste-nette li::before { content: ""; position: absolute; left: 0; top: .38em; width: 18px; height: 18px; border-radius: 50%; background: var(--vert) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.7 2.6L13 6.5' fill='none' stroke='%2304220f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.illustration { padding: 28px; border-radius: 24px; background: linear-gradient(145deg, #0d2b52, #071a33); box-shadow: var(--ombre); color: #1c2738; font-size: 14px; }
.fiche { padding: 14px 16px; border-radius: 12px; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.fiche + .fiche { margin-top: 12px; }
.fiche b { display: block; color: #0c1726; }
.fiche small { color: #6b7789; }
.fiche mark { padding: 0 3px; border-radius: 3px; background: #ffe58a; color: inherit; }
.fiche.saisie { display: flex; align-items: center; gap: 10px; border-radius: 999px; color: #0c1726; font-weight: 600; }
.fiche.saisie::before { content: ""; width: 15px; height: 15px; border: 2px solid var(--bleu); border-radius: 50%; }
.fiche.regle { border-left: 5px solid var(--vert); font-family: Consolas, "Cascadia Mono", monospace; font-size: 13px; }
.fiche.regle b { display: inline; color: var(--bleu); }
.fleche { margin: 10px 0; text-align: center; color: var(--vert); font-size: 22px; line-height: 1; }

/* Cartes de fonctions */
.grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.carte { padding: 30px; border-radius: var(--rayon); background: var(--surface); border: 1px solid var(--trait); transition: transform .15s, box-shadow .15s; }
.grille .carte:hover { transform: translateY(-3px); box-shadow: var(--ombre); }
.carte svg { width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: rgba(31, 111, 224, .12); stroke: var(--bleu); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.carte h3 { margin-top: 18px; font-size: 20px; font-weight: 600; }
.carte p { margin-top: 10px; color: var(--discret); font-size: 16px; }

/* Section sombre (confidentialité) */
section.sombre { color: #c9d8ee; background: radial-gradient(800px 400px at 90% 0%, rgba(47, 210, 122, .16), transparent 60%), linear-gradient(180deg, var(--nuit), var(--nuit-2)); }
section.sombre h2, section.sombre h3 { color: #fff; }
section.sombre .surtitre { color: var(--vert); }
section.sombre .chapeau { color: #a9bddb; }
section.sombre .carte { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
section.sombre .carte:hover { box-shadow: none; }
section.sombre .carte p { color: #b7c8e2; }
section.sombre .carte svg { background: rgba(47, 210, 122, .16); stroke: var(--vert); }

/* Prix */
.deux-colonnes { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 28px; margin-top: 56px; }
.offre { position: relative; display: flex; flex-direction: column; padding: 38px 34px; text-align: left; }
.offre.phare { border: 2px solid var(--vert); box-shadow: var(--ombre); }
.ruban { position: absolute; top: -15px; left: 30px; padding: 4px 14px; border-radius: 999px; background: var(--vert); color: #04220f; font-size: 13px; font-weight: 700; }
.ruban.gris { background: var(--nuit-2); color: #fff; }
.offre h3 { margin: 0; font-size: 26px; font-weight: 600; }
.offre .pour { margin-top: 6px; }
.carte p.prix { margin-top: 22px; color: var(--encre); font-size: 60px; font-weight: 200; line-height: 1; letter-spacing: -.02em; }
.prix s { margin-right: 10px; color: var(--discret); font-size: 24px; font-weight: 400; }
.prix small { display: block; margin-top: 10px; color: var(--discret); font-size: 15px; font-weight: 400; letter-spacing: 0; }
.offre .liste-nette { margin-bottom: 30px; }
.offre .bouton { margin-top: auto; text-align: center; }
.note { margin-top: 18px; color: var(--discret); font-size: 14px; }

/* Appel final */
.appel { padding: 84px 0; text-align: center; color: #fff; background: linear-gradient(120deg, #0d2b52, #1f6fe0 55%, #17a35e); }
.appel h2 { color: #fff; font-size: clamp(30px, 4.2vw, 46px); font-weight: 300; }
.appel p { margin: 14px auto 0; max-width: 60ch; color: #e1ecfb; }
.appel .note { color: #cfe0fb; }

/* Pages de texte (mentions légales) */
.texte { max-width: 780px; }
.texte h1 { font-size: 40px; font-weight: 300; }
.texte h2 { margin-top: 42px; font-size: 24px; font-weight: 600; letter-spacing: 0; }
.texte p { margin-top: 12px; }
.a-completer { padding: 1px 6px; border-radius: 4px; background: #ffe58a; color: #3d2f00; }

/* Pied de page */
.pied { padding: 56px 0 30px; background: #050f1f; color: #9fb0c8; font-size: 15px; }
.pied a { color: #d6e2f3; text-decoration: none; }
.pied a:hover { text-decoration: underline; }
.pied .cadre { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.pied .colonnes { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; width: 100%; padding-bottom: 36px; margin-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.pied .colonnes b { display: block; margin-bottom: 12px; color: #fff; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.pied .colonnes a { display: block; margin-top: 7px; }
.pied .colonnes p { max-width: 34ch; margin-top: 12px; }

/* Écrans étroits */
@media (max-width: 980px) {
  .navigation { display: none; }
  .langues { margin-left: auto; }
  .apercu-corps { grid-template-columns: 170px 1fr; }
  .apercu-inspecteur { display: none; }
  .apercu-centre { grid-template-columns: repeat(3, 1fr); }
  .rangee { grid-template-columns: 1fr; gap: 32px; margin-top: 60px; }
  .rangee:nth-of-type(even) .illustration, .rangee:nth-of-type(even) .vitrine { order: 0; }
  .grille { grid-template-columns: repeat(2, 1fr); }
  .pied .colonnes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .cadre { width: calc(100% - 32px); }
  .entete .bouton { display: none; }
  section { padding: 64px 0; }
  .accueil { padding-top: 56px; }
  .apercu { margin-top: 44px; }
  .apercu-lateral, .apercu-recherche { display: none; }
  .apercu-corps { grid-template-columns: 1fr; min-height: 0; }
  .reperes .cadre { grid-template-columns: 1fr 1fr; }
  .reperes div:nth-child(3) { border-left: 0; }
  .reperes div:nth-child(n+3) { border-top: 1px solid var(--trait); }
  .grille, .deux-colonnes { grid-template-columns: 1fr; }
  .pied .colonnes { grid-template-columns: 1fr; gap: 26px; }
}

/* ------------------------------------------------------------------
   Captures de l'application et animations (CSS seul : le site n'a pas de script).
   Tout mouvement s'arrête si le système demande moins d'animations.
   ------------------------------------------------------------------ */

/* Capture encadrée comme une fenêtre */
.capture { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid rgba(7, 26, 51, .12); box-shadow: 0 30px 70px rgba(7, 26, 51, .22), 0 6px 18px rgba(7, 26, 51, .1); }
.capture img { display: block; width: 100%; height: auto; }
.capture::before { content: ""; display: block; height: 26px; background: #e9eef6 radial-gradient(circle at 16px 13px, #f26b5e 0 5px, transparent 5.5px) no-repeat, radial-gradient(circle at 34px 13px, #f5be4f 0 5px, transparent 5.5px) no-repeat, radial-gradient(circle at 52px 13px, #5bc76a 0 5px, transparent 5.5px) no-repeat #e9eef6; border-bottom: 1px solid #d5deea; }

/* Bandeau d'accueil : la vraie fenêtre de Folium */
.ecran { position: relative; isolation: isolate; max-width: 1080px; margin: 64px auto -1px; perspective: 1600px; text-align: left; }
.ecran .capture { border-radius: 16px 16px 0 0; border-bottom: 0; box-shadow: 0 -10px 90px rgba(111, 177, 255, .3), 0 30px 80px rgba(0, 0, 0, .5); transform-origin: 50% 100%; animation: bascule 1.4s cubic-bezier(.2, .8, .2, 1) .35s both; }
.ecran::after { content: ""; position: absolute; inset: -12% 8% auto; height: 70%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(47, 210, 122, .35), transparent); filter: blur(30px); animation: lueur 7s ease-in-out infinite alternate; }
.ecran .encart { position: absolute; right: -34px; bottom: 9%; width: 25%; border-radius: 12px; animation: glisse 1.1s cubic-bezier(.2, .8, .2, 1) 1.5s both, flotte 7s ease-in-out 2.6s infinite; }
.ecran .encart::before { display: none; }

.accueil .etat, .accueil h1, .accueil .chapeau, .accueil .actions, .accueil .sous-actions { animation: monte .9s cubic-bezier(.2, .8, .2, 1) both; }
.accueil h1 { animation-delay: .08s; }
.accueil .chapeau { animation-delay: .18s; }
.accueil .actions { animation-delay: .28s; }
.accueil .sous-actions { animation-delay: .36s; }
.accueil h1 strong { background: linear-gradient(90deg, var(--vert), #8ff0bd, var(--vert)) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: reflet 6s linear infinite; }

/* Illustrations faites de vraies captures */
.vitrine { position: relative; }
.vitrine .capture { transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s; }
.vitrine:hover .capture:first-child { transform: translateY(-6px); box-shadow: 0 40px 90px rgba(7, 26, 51, .28), 0 8px 20px rgba(7, 26, 51, .12); }
.vitrine.haute { max-width: 420px; margin-inline: auto; }

/* Photos : la grille, puis le panneau des réglages qui vient s'y poser */
.vitrine.duo { padding: 0 0 70px 0; }
.vitrine.duo .capture:first-child { width: 88%; }
.vitrine.duo .capture + .capture { position: absolute; right: 0; bottom: 0; width: 40%; animation: flotte 8s ease-in-out infinite; }

/* Le mot trouvé : un anneau qui bat autour du surlignage */
.capture .cible { position: absolute; left: 56%; top: calc(26px + (100% - 26px) * .2); width: 18%; height: calc((100% - 26px) * .032); border: 3px solid var(--vert); border-radius: 8px; box-shadow: 0 0 0 0 rgba(47, 210, 122, .55); animation: battement 2.2s ease-out infinite; pointer-events: none; }

/* Pellicule : lent travelling sur la capture */
.vitrine.travelling .capture img { animation: travelling 18s ease-in-out infinite alternate; transform-origin: 30% 40%; }

/* Liseuse : reflet qui balaie la page de temps en temps */
.vitrine.reflet .capture::after { content: ""; position: absolute; inset: 26px 0 0; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .45) 50%, transparent 60%) -150% 0 / 60% 100% no-repeat; animation: balaie 7s ease-in-out 1s infinite; pointer-events: none; }

/* Apparition au défilement, là où le navigateur la connaît (sinon tout reste visible) */
@supports (animation-timeline: view()) {
  .rangee > div, .grille .carte, .reperes .cadre > div, .deux-colonnes .offre, section .centre > * {
    animation: apparait linear both; animation-timeline: view(); animation-range: entry 0% cover 22%;
  }
  .rangee > div + div { animation-name: apparait-cote; }
  .grille .carte:nth-child(3n+2) { animation-range: entry 6% cover 26%; }
  .grille .carte:nth-child(3n) { animation-range: entry 12% cover 30%; }
}

@keyframes monte { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes bascule { from { opacity: 0; transform: rotateX(24deg) translateY(90px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes glisse { from { opacity: 0; transform: translate(60px, 30px) rotate(3deg); } to { opacity: 1; transform: none; } }
@keyframes flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes lueur { from { opacity: .55; transform: scale(.92); } to { opacity: 1; transform: scale(1.08); } }
@keyframes reflet { to { background-position: -200% 0; } }
@keyframes battement { 0% { box-shadow: 0 0 0 0 rgba(47, 210, 122, .6); } 70%, 100% { box-shadow: 0 0 0 16px rgba(47, 210, 122, 0); } }
@keyframes travelling { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-3%, -2%); } }
@keyframes balaie { 0% { background-position: -150% 0; } 45%, 100% { background-position: 250% 0; } }
@keyframes apparait { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }
@keyframes apparait-cote { from { opacity: 0; transform: translateX(48px) scale(.97); } to { opacity: 1; transform: none; } }

@media (prefers-color-scheme: dark) {
  .capture { border-color: rgba(255, 255, 255, .1); box-shadow: 0 30px 70px rgba(0, 0, 0, .55); }
}
@media (max-width: 980px) {
  .ecran .encart { display: none; }
  .vitrine.duo .capture:first-child { width: 100%; }
}
@media (max-width: 640px) {
  .ecran { margin-top: 44px; }
  .vitrine.duo { padding-bottom: 0; }
  .vitrine.duo .capture + .capture { display: none; }
}
/* ------------------------------------------------------------------
   Animations marquées (demande du 12/11/2026 : « je veux des animations »)
   ------------------------------------------------------------------ */

/* Aurore qui ondule derrière le bandeau */
.accueil::before, .accueil::after { content: ""; position: absolute; z-index: 0; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; border-radius: 50%; filter: blur(90px); opacity: .55; pointer-events: none; }
.accueil::before { top: -35%; left: -20%; background: radial-gradient(closest-side, #1f6fe0, transparent); animation: aurore-a 16s ease-in-out infinite alternate; }
.accueil::after { top: -10%; right: -25%; background: radial-gradient(closest-side, #2fd27a, transparent); opacity: .35; animation: aurore-b 19s ease-in-out infinite alternate; }
.accueil > .cadre { position: relative; z-index: 1; }

/* Diaporama dans la fenêtre du bandeau : la vraie application, écran après écran */
.diaporama { aspect-ratio: auto; }
.diaporama > img:first-of-type { animation: zoom-lent 20s ease-in-out infinite alternate; transform-origin: 20% 0; }
.diaporama .diapo { position: absolute; left: 0; top: 26px; width: 100%; height: calc(100% - 26px); object-fit: cover; object-position: 50% 0; opacity: 0; animation: diapo 20s ease-in-out infinite; }
.diaporama .d1 { animation-delay: 5s; }
.diaporama .d2 { animation-delay: 10s; object-fit: contain; background: #f4f1ea; }
.diaporama .d3 { animation-delay: 15s; }

/* Bandeau des formats qui défile sans fin */
.defile { overflow: hidden; padding: 22px 0; background: var(--fond-doux); border-bottom: 1px solid var(--trait); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.piste { display: flex; gap: 14px; width: max-content; animation: defile 45s linear infinite; }
.defile:hover .piste { animation-play-state: paused; }
.piste span { padding: 8px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--trait); color: var(--encre); font-size: 15px; font-weight: 600; white-space: nowrap; box-shadow: 0 4px 12px rgba(7, 26, 51, .06); }
.piste span:nth-child(3n+1) { color: var(--bleu); }
.piste span:nth-child(3n+2) { color: var(--vert-fonce); }

/* Boutons : reflet qui passe */
.bouton { position: relative; overflow: hidden; }
.bouton:not(.discret):not(.contour)::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent); transform: skewX(-20deg); animation: eclat 4.5s ease-in-out infinite; }

/* Cartes : icône qui s'anime, liseré lumineux au survol */
.carte svg { transition: transform .4s cubic-bezier(.3, 1.6, .5, 1), background .3s; }
.grille .carte:hover svg { transform: rotate(-8deg) scale(1.18); background: rgba(31, 111, 224, .22); }
.grille .carte { position: relative; }
.grille .carte::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 2px; background: conic-gradient(from var(--angle, 0deg), transparent 0 70%, var(--vert), var(--bleu), transparent); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s; pointer-events: none; }
.grille .carte:hover::after { opacity: 1; animation: tour 2.5s linear infinite; }
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.grille .carte svg { animation: respire 4s ease-in-out infinite; }
.grille .carte:nth-child(2n) svg { animation-delay: -1.3s; }
.grille .carte:nth-child(3n) svg { animation-delay: -2.6s; }

/* Captures des rangées : elles pivotent en 3D en entrant dans l'écran */
@supports (animation-timeline: view()) {
  .rangee > .vitrine { animation-name: pivote; animation-range: entry 0% cover 40%; }
  .rangee:nth-of-type(even) > .vitrine { animation-name: pivote-inverse; }
  .reperes .cadre > div b { animation: grossit linear both; animation-timeline: view(); animation-range: entry 10% cover 35%; }
}

@keyframes aurore-a { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(18vw, 6vw) scale(1.2); } 100% { transform: translate(6vw, 14vw) scale(.9); } }
@keyframes aurore-b { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-16vw, 10vw) scale(1.15); } 100% { transform: translate(-4vw, -4vw) scale(1.25); } }
@keyframes zoom-lent { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes diapo { 0% { opacity: 0; transform: scale(1.08); } 4% { opacity: 1; } 24% { opacity: 1; transform: scale(1); } 28%, 100% { opacity: 0; transform: scale(1); } }
@keyframes defile { to { transform: translateX(calc(-50% - 7px)); } }
@keyframes eclat { 0%, 60% { left: -60%; } 85%, 100% { left: 130%; } }
@keyframes tour { to { --angle: 360deg; } }
@keyframes respire { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes pivote { from { opacity: 0; transform: perspective(1200px) rotateY(-28deg) rotateX(10deg) translateY(80px) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes pivote-inverse { from { opacity: 0; transform: perspective(1200px) rotateY(28deg) rotateX(10deg) translateY(80px) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes grossit { from { opacity: 0; transform: scale(.4); letter-spacing: .4em; } to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
  .accueil::before, .accueil::after { filter: blur(60px); }
}

/* Animations réduites demandées par le système (réglage « Effets d'animation » de Windows, par exemple) :
   on garde les fondus, le diaporama, le bandeau et les reflets, on retire les grands mouvements. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .accueil::before, .accueil::after, .diaporama > img:first-of-type, .vitrine.travelling .capture img,
  .grille .carte svg, .vitrine.duo .capture + .capture { animation: none; }
  .accueil .etat, .accueil h1, .accueil .chapeau, .accueil .actions, .accueil .sous-actions, .ecran .capture { animation-name: fondu; }
  .ecran .encart { animation: fondu 1s ease 1.5s both; }
  .diaporama .diapo { animation-name: diapo-fondu; }
  .piste { animation-duration: 80s; }
  .grille .carte:hover, .bouton:hover, .vitrine:hover .capture:first-child { transform: none; }
  .grille .carte:hover svg { transform: none; }
  @supports (animation-timeline: view()) {
    .rangee > div, .rangee > .vitrine, .rangee:nth-of-type(even) > .vitrine, .grille .carte, .reperes .cadre > div, .reperes .cadre > div b,
    .deux-colonnes .offre, section .centre > * { animation-name: fondu; }
  }
}
@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }
@keyframes diapo-fondu { 0% { opacity: 0; } 4%, 24% { opacity: 1; } 28%, 100% { opacity: 0; } }
