/* Page d'accueil VisiPub Studio — bleu nuit, bleu électrique, or (bannière validée). Sobre : peu de texte,
   animations courtes (transform / opacity), rien de lourd au chargement. */
:root {
  --nuit: #050d24; --nuit2: #0a1a3f; --bleu: #2f7cf6; --bleu-clair: #7fb2ff; --or: #f2b736; --or-clair: #ffd77a;
  --texte: #eef3ff; --doux: #9fb0d6; --ligne: rgba(127, 178, 255, .2);
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --rayon: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font: 16px/1.6 var(--sans); color: var(--texte); min-height: 100vh;
  background: radial-gradient(900px 500px at 85% -5%, rgba(47, 124, 246, .25), transparent 60%),
              radial-gradient(700px 400px at 0% 30%, rgba(242, 183, 54, .08), transparent 60%),
              linear-gradient(180deg, var(--nuit2), var(--nuit) 60%);
}
img { max-width: 100%; height: auto; display: block; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg .plein { fill: currentColor; stroke: none; }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.entete {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 28px;
  padding: 12px clamp(16px, 4vw, 48px); background: rgba(5, 13, 36, .82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ligne);
}
.marque { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: .2px; }
.marque b { color: var(--or-clair); font-weight: 700; }
.entete nav { display: flex; gap: 26px; margin-left: auto; }
.entete nav a { color: var(--doux); text-decoration: none; font-weight: 600; font-size: 15px; transition: color .15s; }
.entete nav a:hover { color: #fff; }

.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 24px;
  border-radius: 999px; font-weight: 700; font-size: 15.5px; text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 0; transition: transform .15s ease, box-shadow .15s ease, background .15s;
}
.bouton:hover { transform: translateY(-1px); }
.bouton.petit { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
.bouton.or { background: linear-gradient(180deg, var(--or-clair), var(--or)); color: #1a1405; box-shadow: 0 8px 24px rgba(242, 183, 54, .3); }
.bouton.bleu { background: linear-gradient(180deg, #4a90ff, var(--bleu)); color: #fff; box-shadow: 0 8px 24px rgba(47, 124, 246, .3); }
.bouton.contour { background: rgba(255, 255, 255, .04); border: 1.5px solid rgba(242, 183, 54, .7); color: var(--or-clair); }
.bouton:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--or-clair); outline-offset: 3px; }

.hero { max-width: 1320px; margin: 0 auto; padding: clamp(14px, 3vw, 32px) clamp(12px, 4vw, 40px) 0; }
.banniere { width: 100%; border-radius: var(--rayon); box-shadow: 0 30px 70px rgba(0, 0, 0, .5), 0 0 0 1px var(--ligne); }
.barre-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap;
  margin: 18px auto 0; padding: 16px 20px; border-radius: var(--rayon);
  background: rgba(10, 26, 63, .65); border: 1px solid var(--ligne);
}
.barre-actions p { margin: 0; font-size: clamp(17px, 1.9vw, 20px); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.bloc { max-width: 1180px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) clamp(16px, 4vw, 40px) 0; }
.bloc h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; margin: 0 0 28px; text-align: center; letter-spacing: -.3px; }

/* vitrine : de vraies créations, pas de longs paragraphes */
.vitrine { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: end; }
.creation { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.creation > img, .creation .lecture, .creation .pages {
  border-radius: 16px; overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 0 0 1px var(--ligne);
  transition: transform .25s ease, box-shadow .25s ease;
}
.creation:hover > img, .creation:hover .lecture, .creation:hover .pages { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(0, 0, 0, .55), 0 0 0 1px rgba(242, 183, 54, .5); }
.creation figcaption { display: flex; flex-direction: column; align-items: center; text-align: center; }
.creation figcaption b { font-size: 17px; }
.creation figcaption span { color: var(--doux); font-size: 14px; }
.telephone > img, .telephone .lecture { aspect-ratio: 9 / 16; }
.carre > img { aspect-ratio: 1; }
.lecture { position: relative; padding: 0; border: 0; background: #000; cursor: pointer; display: block; width: 100%; }
.lecture img { width: 100%; height: 100%; object-fit: cover; }
.icone-lecture {
  position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(5, 13, 36, .55); border: 2px solid var(--or-clair); color: var(--or-clair); backdrop-filter: blur(4px);
  transition: transform .2s ease;
}
.icone-lecture svg { width: 28px; height: 28px; margin-left: 4px; }
.lecture:hover .icone-lecture { transform: scale(1.08); }
.pile .pages { position: relative; display: block; aspect-ratio: 4 / 5; overflow: visible; box-shadow: none; }
.pile .pages img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 14px; box-shadow: 0 14px 34px rgba(0, 0, 0, .45); }
.pile .pages img:nth-child(1) { transform: rotate(6deg) translate(10px, -4px) scale(.94); opacity: .75; }
.pile .pages img:nth-child(2) { transform: rotate(3deg) translate(5px, -2px) scale(.97); opacity: .9; }

.etapes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.etapes li {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 26px 20px;
  border-radius: var(--rayon); background: rgba(10, 26, 63, .55); border: 1px solid var(--ligne);
}
.etapes b { font-size: 19px; }
.etapes li > span:last-child { color: var(--doux); }
.pastille-icone {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: var(--or-clair);
  background: radial-gradient(circle at 30% 30%, rgba(242, 183, 54, .28), rgba(242, 183, 54, .06)); border: 1.5px solid rgba(242, 183, 54, .55);
}
.pastille-icone svg { width: 24px; height: 24px; }

.disponible { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.disponible > div { padding: 24px; border-radius: var(--rayon); background: rgba(10, 26, 63, .45); border: 1px solid var(--ligne); }
.disponible h3 { margin: 0 0 10px; }
.etat { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.etat.ok { background: rgba(46, 204, 113, .15); color: #6ee7a8; border: 1px solid rgba(110, 231, 168, .4); }
.etat.prep { background: rgba(242, 183, 54, .13); color: var(--or-clair); border: 1px solid rgba(242, 183, 54, .45); }
.puces { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.puces li { padding-left: 22px; position: relative; color: #dbe4fb; }
.puces li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--bleu-clair); }
.disponible > div:last-child .puces li::before { background: var(--or); }
.note { color: var(--doux); font-size: 14px; margin: 14px 0 0; }

.appel { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.appel h2 { margin-bottom: 18px; }
.symbole { width: 120px; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .5)); }

.pied { text-align: center; color: var(--doux); font-size: 14px; padding: 64px 16px 36px; }

dialog { border: 0; padding: 14px; border-radius: 20px; background: var(--nuit2); color: var(--texte); max-width: min(92vw, 420px); }
dialog::backdrop { background: rgba(2, 6, 18, .78); }
dialog video { width: 100%; height: auto; max-height: 78vh; border-radius: 12px; background: #000; display: block; }
dialog form { display: flex; justify-content: center; margin-top: 12px; }

@media (max-width: 980px) {
  .vitrine { grid-template-columns: repeat(2, 1fr); gap: 26px 18px; }
  .entete nav { display: none; }
  .entete .bouton { margin-left: auto; }
}
@media (max-width: 640px) {
  .barre-actions { flex-direction: column; align-items: stretch; text-align: center; }
  .actions { flex-direction: column; }
  .actions .bouton { width: 100%; }
  .etapes, .disponible { grid-template-columns: 1fr; }
  .banniere { border-radius: 12px; }
  .marque span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
