:root {
  --bleu: #1259b0;
  --bleu-fonce: #0d4590;
  --creme: #fdf3d8;
  --creme-fonce: #f5e6bd;
  --orange: #ec6a3c;
  --noir: #141414;
  --radius: 18px;
  --titre: "Outfit", "Europa", system-ui, sans-serif;
  --accent: "EB Garamond", "Cormorant Garamond", Georgia, serif;
  --texte: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--texte); font-size: 1.25rem; font-weight: 500; color: var(--noir); background: var(--creme); line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

h1, h2, h3 { font-family: var(--titre); font-weight: 800; line-height: 1.05; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.35rem; }
em, .it { font-family: var(--accent); font-style: italic; font-weight: 700; }
.eyebrow { font-family: var(--accent); font-style: italic; font-weight: 700; color: var(--orange); font-size: 1.3rem; margin-bottom: .6rem; display: block; }

/* Header */
.header { position: sticky; top: 0; z-index: 20; background: var(--bleu); color: var(--creme); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo img { height: 58px; width: auto; margin-block: -6px; }
.menu { display: flex; align-items: center; gap: 2rem; font-family: var(--titre); font-weight: 600; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; }
.menu a:not(.btn) { padding-block: .3rem; border-bottom: 2px solid transparent; }
.menu a:not(.btn):hover, .menu a.actif { border-color: var(--orange); }
.burger { display: none; background: none; border: 0; color: var(--creme); font-size: 1.8rem; cursor: pointer; }

/* Boutons */
.btn { display: inline-block; font-family: var(--titre); font-weight: 700; font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; background: var(--orange); color: var(--noir); padding: .85rem 1.7rem; border-radius: 999px; border: 2px solid var(--noir); cursor: pointer; box-shadow: 3px 3px 0 var(--noir); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--noir); }
.btn-bleu { background: var(--bleu); color: var(--creme); }
.btn-creme { background: var(--creme); color: var(--noir); }
.btn-small { padding: .5rem 1.1rem; box-shadow: 2px 2px 0 var(--noir); }

/* Hero */
.hero { background: var(--bleu); color: var(--creme); padding: 4rem 0 5rem; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 3rem; align-items: center; }
.hero p.lead { font-size: 1.5rem; margin: 1.3rem 0 2rem; max-width: 34ch; }
.hero h1 em { color: var(--orange); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero .sticker { width: min(420px, 100%); margin-inline: auto; transform: rotate(-4deg); filter: drop-shadow(0 12px 0 rgba(0,0,0,.18)); }
.page-hero { padding: 3.5rem 0 3rem; }
.page-hero p.lead { max-width: 40ch; }

.cover-hero { padding-bottom: 0; }
.cover-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: end; }
.cover-photo { border: 3px solid var(--noir); border-bottom: none; border-radius: var(--radius) var(--radius) 0 0; box-shadow: -8px -8px 0 var(--orange); overflow: hidden; align-self: end; }
.cover-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top; }
@media (max-width: 820px) {
  .cover-grid { grid-template-columns: 1fr; }
  .cover-photo { order: -1; box-shadow: -6px -6px 0 var(--orange); }
}

/* Bandeau */
.marquee { background: var(--orange); border-block: 2px solid var(--noir); overflow: hidden; white-space: nowrap; padding: .8rem 0; font-family: var(--titre); font-weight: 800; text-transform: uppercase; font-size: 1.1rem; }
.marquee span { display: inline-block; padding-right: 3rem; animation: defile 22s linear infinite; }
@keyframes defile { to { transform: translateX(-100%); } }

/* Sections */
.section { padding: 5rem 0; }
.section.bleu { background: var(--bleu); color: var(--creme); }
.section.noir { background: var(--noir); color: var(--creme); }

/* Épisodes */
.a-la-une { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: center; margin-bottom: 4rem; }
.video-thumb { position: relative; border-radius: var(--radius); overflow: hidden; border: 3px solid var(--noir); box-shadow: 8px 8px 0 var(--noir); aspect-ratio: 16/9; background: var(--bleu); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; inset: 0; display: grid; place-items: center; }
.play::after { content: "▶"; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--orange); color: var(--noir); border: 3px solid var(--noir); font-size: 1.6rem; padding-left: 5px; transition: transform .2s; }
.video-thumb:hover .play::after { transform: scale(1.12); }
.ep-meta { font-family: var(--titre); font-weight: 700; text-transform: uppercase; font-size: .85rem; letter-spacing: .08em; color: var(--bleu); margin-bottom: .6rem; }
.ep-desc { margin: 1rem 0 1.5rem; }
.liens { display: flex; flex-wrap: wrap; gap: .6rem; }
.liens a { font-family: var(--titre); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; padding: .45rem .9rem; border: 2px solid var(--noir); border-radius: 999px; background: var(--creme); color: var(--noir); transition: background .15s; }
.liens a:hover { background: var(--orange); }

.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 2rem; }
.ep-card { background: #fff8e6; border: 2px solid var(--noir); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 5px 5px 0 var(--noir); transition: transform .15s; }
.ep-card:hover { transform: translateY(-4px); }
.ep-card .video-thumb { border: 0; border-bottom: 2px solid var(--noir); border-radius: 0; box-shadow: none; }
.ep-card .body { padding: 1.3rem 1.4rem 1.5rem; display: grid; gap: .6rem; flex: 1; align-content: start; }
.ep-card.bientot .video-thumb { display: grid; place-items: center; }
.ep-card.bientot .video-thumb img { width: 50%; height: auto; object-fit: contain; }
.ep-card.bientot .play { display: none; }
.badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--orange); color: var(--noir); font-family: var(--titre); font-weight: 700; font-size: .75rem; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; border: 2px solid var(--noir); }

/* Plateformes */
.plateformes { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.2rem; }
.plateforme { border: 2px solid var(--creme); border-radius: var(--radius); padding: 1.5rem; transition: background .2s, color .2s, border-color .2s; }
.plateforme:hover { background: var(--creme); color: var(--noir); }
.plateforme:hover .icon-badge { border-color: var(--noir); }
.plateforme h3 { margin-bottom: .3rem; }
.plateforme p { font-size: 1.05rem; opacity: .9; }
.icon-badge { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; background: var(--bleu-fonce); border: 2px solid var(--creme); transition: border-color .2s; }
.icon-badge svg { width: 28px; height: 28px; fill: var(--orange); }
.icon-badge.two { width: auto; height: 60px; padding: 0 1rem; gap: .6rem; border-radius: 999px; }
.icon-badge.two svg { width: 24px; height: 24px; }

/* Léopold */
.duo { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: center; }
.duo.inverse { grid-template-columns: 1.1fr 1fr; }
.photo { border: 3px solid var(--noir); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--noir); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.photo.large img { aspect-ratio: 3/2; }
.texte p { text-align: justify; }
.texte p + p { margin-top: 1.1rem; }
.texte h2 { margin-bottom: 1.2rem; }
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; text-align: center; }
.chiffres strong { display: block; font-family: var(--titre); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--orange); line-height: 1; }
.timeline { list-style: none; border-left: 3px solid var(--orange); padding-left: 2rem; display: grid; gap: 2rem; max-width: 720px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: calc(-2rem - 10px); top: .35rem; width: 17px; height: 17px; border-radius: 50%; background: var(--creme); border: 3px solid var(--orange); }
.timeline .date { font-family: var(--titre); font-weight: 700; color: var(--orange); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.citation { font-family: var(--accent); font-style: italic; font-weight: 700; font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.2; max-width: 24ch; margin-inline: auto; text-align: center; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3.5rem; align-items: start; }
.contact-infos { display: grid; gap: 1.6rem; }
.contact-infos h3 { margin-bottom: .2rem; }
.contact-infos a { border-bottom: 2px solid var(--orange); }
form { display: grid; gap: 1.1rem; background: #fff8e6; border: 3px solid var(--noir); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--noir); padding: 2rem; }
label { display: grid; gap: .35rem; font-family: var(--titre); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
input, textarea, select { font: inherit; font-family: var(--texte); font-size: 1.15rem; font-weight: 500; padding: .7rem .9rem; border: 2px solid var(--noir); border-radius: 12px; background: var(--creme); text-transform: none; letter-spacing: 0; }
input:focus, textarea:focus, select:focus { outline: 3px solid var(--orange); outline-offset: 1px; }
.form-note { color: var(--bleu); font-weight: 700; min-height: 1.4em; }

/* Footer */
.footer { background: var(--noir); color: var(--creme); padding: 3rem 0 2rem; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.footer img { height: 70px; width: auto; }
.footer nav { display: flex; gap: 1.5rem; font-family: var(--titre); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.footer nav a:hover { color: var(--orange); }
.copy { margin-top: 2rem; font-size: .95rem; opacity: .7; }

/* Mobile */
@media (max-width: 820px) {
  .burger { display: block; }
  .menu { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 1.2rem; background: var(--bleu); padding: 1.5rem 1.25rem 2rem; border-top: 2px solid var(--creme); }
  .menu.open { display: flex; }
  .hero-grid, .a-la-une, .duo, .duo.inverse, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero .sticker { width: 260px; order: -1; }
  .section { padding: 3.5rem 0; }
  .photo img { aspect-ratio: 4/3; }

  /* Carrousel : la grille des épisodes se défile au doigt, de gauche à droite */
  .grille {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    margin: 0 -1.25rem;
    padding: 0 1.25rem .75rem;
    scrollbar-width: none;
  }
  .grille::-webkit-scrollbar { display: none; }
  .grille .ep-card { flex: 0 0 82%; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) { .marquee span { animation: none; } }
