@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-700.woff2") format("woff2"); }

:root {
  --nuit: #060a26;
  --nuit-2: #0b1140;
  --bleu: #1b3bd6;
  --violet: #5b1fb8;
  --cyan: #2da5da;
  --corail-1: #c9245e;
  --corail-2: #f39c6b;
  --texte: #eef1ff;
  --doux: #a9b2dc;
  --trait: rgba(255, 255, 255, .12);
  --carte: rgba(255, 255, 255, .05);
  --titre: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --corps: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --large: min(1180px, 100% - 2 * clamp(16px, 4vw, 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--nuit); color: var(--texte); font: 17px/1.6 var(--corps); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titre); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: 1; margin: 0; }
.bloc { width: var(--large); margin: 0 auto; }
.pastille { display: inline-block; padding: .28em .9em .22em; border-radius: 6px; background: linear-gradient(90deg, var(--corail-1), var(--corail-2)); color: #fff; font: 600 clamp(13px, 1.5vw, 15px)/1.3 var(--titre); letter-spacing: .14em; text-transform: uppercase; }

/* Barre du haut */
.barre { position: fixed; inset: 14px 0 auto 0; z-index: 20; pointer-events: none; }
.barre nav { pointer-events: auto; width: var(--large); margin: 0 auto; display: flex; align-items: center; gap: 22px; padding: 10px 18px; border: 1px solid var(--trait); border-radius: 999px; background: rgba(6, 10, 38, .62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.sigle { font: 700 26px/1 var(--titre); letter-spacing: .08em; text-decoration: none; margin-right: auto; }
.sigle img { display: block; height: 26px; width: auto; }
.barre a.lien { text-decoration: none; font: 600 16px/1 var(--titre); letter-spacing: .1em; text-transform: uppercase; color: var(--doux); transition: color .2s; }
.barre a.lien:hover { color: #fff; }
@media (max-width: 720px) { .barre a.lien.secondaire { display: none; } }

/* Ouverture */
.ouverture { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 84px 0 60px; isolation: isolate; background:
  radial-gradient(1100px 700px at 78% 30%, rgba(91, 31, 184, .55), transparent 60%),
  radial-gradient(900px 620px at 15% 70%, rgba(27, 59, 214, .6), transparent 62%),
  linear-gradient(160deg, #0a1a8c 0%, #0b1140 45%, var(--nuit) 100%); }
#toile { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.ouverture::after { content: ""; position: absolute; inset: auto 0 0 0; height: 180px; background: linear-gradient(transparent, var(--nuit)); z-index: -1; }
.grand-sigle { font: 700 clamp(96px, 22vw, 260px)/.82 var(--titre); letter-spacing: .04em; margin: 0; }
.grand-sigle b { color: var(--cyan); font-weight: 700; }
/* Logo officiel (fourni le 14/10, gris passé en blanc pour le fond nuit) */
.logo-titre { margin: 0 0 26px; line-height: 0; }
.logo-titre img { width: clamp(280px, min(1200px, (100svh - 380px) * 3.06), 92vw); height: auto; margin: 0 auto; }
.ouverture h1 { font-size: clamp(26px, 5vw, 54px); letter-spacing: .12em; margin: 14px 0 22px; }
.ouverture .accroche { margin: 22px auto 0; max-width: 620px; color: var(--doux); font-size: clamp(16px, 2vw, 19px); }
.actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.bouton { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; border: 1px solid var(--trait); background: var(--carte); color: #fff; text-decoration: none; cursor: pointer; font: 600 18px/1 var(--titre); letter-spacing: .1em; text-transform: uppercase; transition: transform .2s, background .2s, box-shadow .2s; }
.bouton:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .1); }
.bouton.plein { border: 0; background: linear-gradient(90deg, var(--corail-1), var(--corail-2)); box-shadow: 0 12px 40px -12px rgba(243, 108, 107, .8); }
.bouton.plein:hover { box-shadow: 0 16px 50px -10px rgba(243, 108, 107, .95); }
.bouton svg { width: 16px; height: 16px; fill: currentColor; }

/* Sections */
section { padding: clamp(64px, 9vw, 120px) 0; }
.tete { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); }
.tete h2 { font-size: clamp(38px, 6vw, 72px); }
.tete p { margin: 0; color: var(--doux); max-width: 640px; }
.cyan { color: var(--cyan); }

/* Lauréats */
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 22px; }
.carte { position: relative; display: flex; flex-direction: column; text-align: left; padding: 0; border: 1px solid var(--trait); border-radius: 18px; overflow: hidden; background: var(--carte); color: inherit; font: inherit; cursor: pointer; transition: transform .25s, border-color .25s, box-shadow .25s; }
.carte:hover, .carte:has(.ouvrir:focus-visible) { transform: translateY(-6px); border-color: rgba(45, 165, 218, .7); box-shadow: 0 24px 60px -24px rgba(45, 165, 218, .6); outline: none; }
.ouvrir { display: flex; flex-direction: column; flex: 1; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ouvrir:focus-visible { outline: none; }
.carte.attente, .carte.attente .ouvrir { cursor: default; }
.carte.attente:hover { transform: none; border-color: var(--trait); box-shadow: none; }
.vignette { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--nuit-2); }
.vignette img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.carte:hover .vignette img { transform: scale(1.05); }
.vignette::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(6, 10, 38, .85)); }
.lecture { position: absolute; z-index: 1; left: 14px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(90deg, var(--corail-1), var(--corail-2)); }
.lecture svg { width: 16px; height: 16px; fill: #fff; margin-left: 2px; }
.duree { position: absolute; z-index: 1; right: 12px; bottom: 14px; font: 600 15px/1 var(--titre); letter-spacing: .08em; color: #fff; }
.bientot { position: absolute; z-index: 1; left: 14px; bottom: 14px; font: 600 14px/1 var(--titre); letter-spacing: .12em; text-transform: uppercase; color: var(--doux); }
.corps { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.corps .pastille { align-self: flex-start; font-size: 13px; }
.corps h3 { font-size: 30px; }
.corps .nommes { margin: auto 0 0; font-size: 14px; color: var(--doux); line-height: 1.45; }

/* Cérémonie */
.ceremonie { background: linear-gradient(180deg, transparent, rgba(27, 59, 214, .18), transparent); }
.affiche { position: relative; width: 100%; padding: 0; border: 1px solid var(--trait); border-radius: 24px; overflow: hidden; background: var(--nuit-2); color: inherit; cursor: pointer; aspect-ratio: 16 / 9; display: block; }
.affiche img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity .3s, transform .6s; }
.affiche:hover img { opacity: .95; transform: scale(1.03); }
.affiche .centre { position: absolute; inset: 0; display: grid; place-items: center; }
.affiche .rond { width: clamp(64px, 9vw, 104px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(90deg, var(--corail-1), var(--corail-2)); box-shadow: 0 0 0 14px rgba(255, 255, 255, .1); }
.affiche .rond svg { width: 34%; fill: #fff; margin-left: 6%; }

/* Chiffres */
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 22px; }
.chiffre { padding: 26px; border: 1px solid var(--trait); border-radius: 18px; background: var(--carte); }
.chiffre strong { display: block; font: 700 clamp(56px, 8vw, 92px)/.9 var(--titre); background: linear-gradient(90deg, var(--cyan), #9fd9f4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chiffre span { color: var(--doux); }

/* Partenaires */
.partenaires { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 16px; }
.partenaires .logo { display: block; border-radius: 16px; overflow: hidden; background: #fff; transition: transform .25s, box-shadow .25s; }
.partenaires .logo:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -22px rgba(45, 165, 218, .8); }
.partenaires .logo img { width: 100%; height: auto; }
.partenaires .nom { display: grid; place-items: center; text-align: center; padding: 14px; border: 1px solid var(--trait); border-radius: 16px; background: var(--carte); font: 600 22px/1.2 var(--titre); letter-spacing: .08em; text-transform: uppercase; }

footer { border-top: 1px solid var(--trait); padding: 34px 0 44px; color: var(--doux); font-size: 14px; }
footer .bloc { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; }
footer a { color: var(--texte); }

/* Lecteur */
dialog { width: min(1100px, 100% - 24px); padding: 0; border: 1px solid var(--trait); border-radius: 18px; background: #000; color: var(--texte); overflow: hidden; }
dialog::backdrop { background: rgba(3, 5, 20, .86); backdrop-filter: blur(6px); }
dialog video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
dialog .legende { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--nuit-2); }
dialog .legende strong { font: 700 22px/1.1 var(--titre); text-transform: uppercase; margin-right: auto; }
dialog .fermer { border: 1px solid var(--trait); background: none; color: #fff; border-radius: 999px; padding: 8px 16px; cursor: pointer; font: 600 15px/1 var(--titre); letter-spacing: .1em; text-transform: uppercase; }

/* Apparitions */
.apparait { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .7s; }
.apparait.vu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .apparait { opacity: 1; transform: none; transition: none; }
  .carte, .bouton, .vignette img, .affiche img { transition: none; }
}

/* Partage : une rangée de logos sous chaque vidéo et dans le lecteur. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.partage { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 18px; }
.affiche + .partage { padding: 16px 0 0; justify-content: center; }
.reseau { width: 34px; height: 34px; padding: 0; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--trait); background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.reseau svg { width: 15px; height: 15px; fill: currentColor; }
.reseau:hover, .reseau:focus-visible { background: var(--cyan, #2da5da); border-color: transparent; transform: translateY(-2px); outline: none; }
dialog .partage-lecteur .partage { padding: 0; }
#bulle { position: fixed; left: 50%; bottom: 28px; z-index: 10; transform: translate(-50%, 20px); max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 999px; background: #fff; color: #060a26; font-weight: 600; font-size: 15px; box-shadow: 0 12px 40px rgba(0, 0, 0, .4); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
#bulle.visible { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 640px) {
  dialog .legende { flex-wrap: wrap; }
  dialog .partage-lecteur { order: 3; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .reseau, #bulle { transition: none; } }
