/* =====================================================
   Édition 2, réseau animé, concours, légalité, FAQ
===================================================== */
.btn-line { color: var(--nuit); border-color: var(--nuit); }
.btn-line:hover { background: var(--nuit); color: var(--page); }
.small { font-size: .9rem; color: var(--muted); margin-top: 1rem; }

/* hero : réseau et frise */
.hero { padding-bottom: 6.5rem; }
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-net line { stroke: var(--ocre); stroke-width: 1.6; opacity: .5; }
.hero-net circle { fill: var(--ocre); }
.hero-net .ring { fill: none; stroke: var(--ocre); stroke-width: 1.5; opacity: .6; }
.hero-inner { position: relative; z-index: 1; }
.frise {
  height: 34px; width: 100%;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='72' height='34' viewBox='0 0 72 34'><path d='M0 24 L9 12 L18 24 L27 12 L36 24' fill='none' stroke='%23EBA928' stroke-width='3' stroke-linejoin='round'/><circle cx='54' cy='17' r='8' fill='none' stroke='%23EBA928' stroke-width='3'/><circle cx='54' cy='17' r='2.5' fill='%23EBA928'/></svg>") repeat-x 0 50%;
}
.hero .frise { position: absolute; left: 0; bottom: 1.4rem; z-index: 1; }
.frise-foot { margin: 0 0 2.5rem; opacity: .9; }
.hero-play {
  position: absolute; right: 1rem; top: 1rem; z-index: 3;
  display: flex; align-items: center; gap: .7rem; padding: .6rem 1.1rem .6rem .6rem;
  border-radius: 999px; background: var(--page); color: var(--nuit);
  font-weight: 600; font-size: .85rem; line-height: 1.15; text-align: left;
  transition: transform .4s var(--ease), background-color .3s;
}
.hero-play:hover { transform: scale(1.05); background: var(--ocre); }
.play-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--brique); display: block; position: relative; flex-shrink: 0; }
.play-ico::after { content: ''; position: absolute; left: 16px; top: 11px; border-left: 14px solid var(--page); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.hero-badge { z-index: 3; }

/* réseau */
.reseau { background: var(--ocre); color: var(--nuit); padding: clamp(4rem, 9vw, 8rem) var(--gut); }
.reseau-in { max-width: 1500px; margin-inline: auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.reseau h2 { font-size: clamp(2.6rem, 6vw, 5.4rem); margin-bottom: 1.4rem; }
.reseau-txt { display: grid; gap: 1.4rem; justify-items: start; }
.reseau-txt p { font-size: 1.15rem; }
.reseau .btn-ink:hover { background: var(--page); color: var(--nuit); border-color: var(--page); }
.hub { width: 100%; max-width: 560px; justify-self: center; overflow: visible; }
.hn { transform-box: fill-box; transform-origin: center; }
@media (max-width: 860px) { .reseau-in { grid-template-columns: 1fr; } }

/* édition 2 */
.ed2 { grid-template-columns: 1.25fr 1fr; align-items: start; }
.ed2 h2 { font-size: clamp(2.6rem, 6.2vw, 5.8rem); margin-bottom: 1.4rem; }
.ed2-main { display: grid; gap: 1.6rem; justify-items: start; }
.ed2-main > p { opacity: .85; font-size: 1.12rem; }
.ed2-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; width: 100%; max-width: 640px; }
.ed2-facts div { border-top: 2px solid rgba(251, 248, 244, .3); padding-top: .6rem; }
.ed2-facts dt { font-size: .85rem; opacity: .7; }
.ed2-facts dd { font-weight: 600; font-size: 1.08rem; }
.ed2-facts a { color: var(--ocre); }
.countdown { display: flex; gap: .8rem; flex-wrap: wrap; }
.countdown div { min-width: 92px; padding: .8rem 1rem; border: 2px solid var(--ocre); border-radius: 8px; text-align: center; }
.countdown b { display: block; font: 800 clamp(2rem, 4vw, 3rem)/1 var(--f-display); letter-spacing: -.04em; color: var(--ocre); font-variant-numeric: tabular-nums; }
.countdown span { font-size: .85rem; opacity: .8; }
.ed2-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.affiche { display: block; border-radius: 8px; overflow: hidden; background: #2a1d19; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); transition: transform .6s var(--ease); max-width: 480px; justify-self: end; width: 100%; }
.affiche:hover { transform: rotate(-1.5deg) scale(1.02); }
.affiche img { width: 100%; height: auto; }
@media (max-width: 860px) { .affiche { justify-self: start; } .ed2-facts { grid-template-columns: 1fr; } }

.agenda { max-width: 1500px; margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) var(--gut) clamp(3rem, 6vw, 5rem); }
.agenda-title { font-size: clamp(1.8rem, 3.6vw, 3rem); margin-bottom: 1.6rem; }
.agenda-list li { display: grid; grid-template-columns: minmax(150px, 1fr) 3fr; gap: 1rem 2rem; padding: 1.3rem 0; border-top: 1.5px solid rgba(251, 248, 244, .25); }
.agenda-list li:last-child { border-bottom: 1.5px solid rgba(251, 248, 244, .25); }
.agenda-list time { color: var(--ocre); font-weight: 600; }
.agenda-list h4 { font: 800 clamp(1.3rem, 2.4vw, 1.9rem)/1.1 var(--f-display); letter-spacing: -.02em; margin-bottom: .3rem; }
.agenda-list p { opacity: .8; max-width: 60ch; }
@media (max-width: 700px) { .agenda-list li { grid-template-columns: 1fr; gap: .3rem; } }

/* concours */
.concours { background: var(--page); padding: clamp(4rem, 9vw, 8rem) var(--gut); }
.concours-in { max-width: 1500px; margin-inline: auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.concours h2 { font-size: clamp(2.6rem, 6.4vw, 6rem); color: var(--brique); margin-bottom: 1.4rem; }
.concours-lead { font-size: 1.2rem; max-width: 56ch; }
.concours-deadline { display: inline-block; margin: 1.4rem 0; padding: .6rem 1.1rem; background: var(--ocre); border-radius: 999px; font-weight: 600; }
.etapes { counter-reset: e; display: grid; gap: 0; margin-bottom: 2rem; }
.etapes li { counter-increment: e; position: relative; padding: 1.2rem 0 1.2rem 3.6rem; border-top: 2px solid var(--nuit); }
.etapes li::before { content: counter(e); position: absolute; left: 0; top: 1.2rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--nuit); color: var(--page); display: grid; place-items: center; font: 800 1rem var(--f-display); }
.etapes h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: .4rem; }
.etapes p { color: var(--muted); max-width: 54ch; }
.concours-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.concours .affiche { box-shadow: 0 24px 50px rgba(26, 18, 16, .25); position: sticky; top: calc(var(--nav-h) + 1.5rem); }
@media (max-width: 860px) { .concours-in { grid-template-columns: 1fr; } .concours .affiche { position: static; } }

/* légalité */
.legal { background: var(--nuit); color: var(--page); padding: clamp(4rem, 9vw, 8rem) var(--gut); }
.legal .btn-line { color: var(--page); border-color: var(--page); }
.legal .btn-line:hover { background: var(--page); color: var(--nuit); }
.legal-grid { max-width: 1500px; margin-inline: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.legal-card { border: 2px solid rgba(251, 248, 244, .3); border-radius: 8px; padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: 1rem; align-content: start; transition: border-color .3s, background-color .3s; }
.legal-card:hover { border-color: var(--ocre); background: rgba(235, 169, 40, .06); }
.legal-card h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.legal-card p { opacity: .8; }
.legal-card .btn { justify-self: start; margin-top: .6rem; }
@media (max-width: 860px) { .legal-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { background: var(--page); padding: clamp(4rem, 9vw, 8rem) var(--gut); }
.faq-in { max-width: 1500px; margin-inline: auto; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 6rem); }
.faq h2 { font-size: clamp(2.6rem, 6vw, 5.4rem); }
.faq details { border-top: 2px solid var(--nuit); }
.faq details:last-child { border-bottom: 2px solid var(--nuit); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1.3rem 0; font: 700 clamp(1.15rem, 2vw, 1.5rem)/1.2 var(--f-display); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.8rem; line-height: 1; transition: transform .4s var(--ease); flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--brique); }
.faq details p { padding: 0 0 1.4rem; color: var(--muted); max-width: 60ch; }
@media (max-width: 860px) { .faq-in { grid-template-columns: 1fr; } }

/* photos en défilement */
.photo-rows { display: grid; gap: clamp(.7rem, 1.5vw, 1.2rem); overflow: hidden; margin-inline: calc(-1 * var(--gut)); max-width: none; }
.photo-row { overflow: hidden; }
.photo-track { display: flex; gap: clamp(.7rem, 1.5vw, 1.2rem); width: max-content; will-change: transform; }
.photo-item { flex: 0 0 auto; width: clamp(240px, 27vw, 440px); aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: #E8DFD3; cursor: pointer; padding: 0; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75); transition: transform .8s var(--ease), filter .5s; }
.photo-item:hover img { transform: scale(1.1); filter: saturate(1.15); }

/* fenêtre vidéo / photo */
.modal { border: 0; background: transparent; padding: 0; max-width: min(92vw, 560px); max-height: 92vh; margin: auto; overflow: visible; color: var(--page); }
.modal::backdrop { background: rgba(10, 6, 5, .9); }
.modal[open] { animation: pop .5s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.modal-body video, .modal-body img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; margin-inline: auto; border-radius: 8px; background: #000; display: block; }
.modal-close { position: absolute; top: -3.2rem; right: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--page); color: var(--nuit); font-size: 1.8rem; line-height: 1; }
.modal-close:hover { background: var(--ocre); }

@media (prefers-reduced-motion: reduce) { .modal[open] { animation: none; } }

.frise { animation: frise 5s linear infinite; }
@keyframes frise { to { background-position-x: -72px; } }
@media (prefers-reduced-motion: reduce) { .frise { animation: none; } }

/* ---------- hero : cadre photo agrandi ---------- */
@media (min-width: 901px) {
  .hero h1 { grid-column: 1 / span 6; font-size: clamp(3rem, 6.2vw, 7rem); }
  .hero-aside { grid-column: 7 / -1; width: 100%; max-width: 700px; align-self: center; }
  .hero-photo { aspect-ratio: 4 / 3; border-radius: 8px; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
  .hero-lead { grid-column: 1 / span 6; }
  .hero-cta { grid-column: 1 / span 6; }
}

/* ---------- cartes : photos d'illustration ---------- */
.offre { grid-template-columns: 1fr 1fr; align-items: stretch; }
.offre-photo { margin: 0; border-radius: 8px; overflow: hidden; min-height: 280px; background: rgba(0, 0, 0, .15); position: relative; }
.offre-photo img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; }
.o2 .offre-photo img { object-position: 50% 30%; }
@media (max-width: 800px) { .offre-photo { order: -1; min-height: 200px; } }

/* ---------- application ---------- */
.app { background: var(--brique-fonce); color: var(--page); padding: clamp(4rem, 9vw, 8rem) var(--gut); overflow: hidden; }
.app-in { max-width: 1500px; margin-inline: auto; display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.app h2 { font-size: clamp(2.5rem, 5.6vw, 5.2rem); margin-bottom: 1.4rem; }
.app-lead { font-size: 1.2rem; opacity: .9; max-width: 54ch; }
.app-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; margin: 2rem 0; }
.app-feats li { border-top: 1.5px solid rgba(251, 248, 244, .3); padding: 1rem 0; }
.app-feats h3 { font-size: 1.3rem; margin-bottom: .2rem; letter-spacing: -.02em; }
.app-feats p { opacity: .8; font-size: .98rem; }
.app-call { background: var(--page); color: var(--nuit); border-radius: 10px; padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: 1rem; }
.app-call h3 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.app-call > p { color: var(--muted); max-width: 56ch; }
.app-call .small { margin-top: 0; }
.app-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.app-call .btn-ghost { color: var(--nuit); border-color: var(--nuit); }
.app-call .btn-ghost:hover { background: var(--nuit); color: var(--page); }
.phone-wrap { display: grid; justify-items: center; gap: .8rem; }
.phone { width: min(300px, 78vw); aspect-ratio: 9 / 18.5; border-radius: 38px; background: var(--nuit); padding: 12px; box-shadow: 0 40px 80px rgba(0, 0, 0, .5), inset 0 0 0 2px #3a2a25; position: relative; transform: rotate(-4deg); }
.phone-notch { position: absolute; top: 12px; left: 50%; width: 90px; height: 22px; border-radius: 0 0 14px 14px; background: var(--nuit); transform: translateX(-50%); z-index: 2; }
.phone-screen { height: 100%; border-radius: 28px; background: #F3EEE7; padding: 38px 14px 14px; display: grid; gap: 10px; align-content: start; overflow: hidden; color: var(--nuit); }
.ui-head { display: flex; align-items: baseline; gap: .4rem; font-family: var(--f-display); }
.ui-head b { font-size: 1.3rem; letter-spacing: -.03em; color: var(--indigo); }
.ui-head span { font-size: .85rem; color: var(--brique); font-weight: 700; }
.ui-card { background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: 0 2px 8px rgba(26, 18, 16, .08); display: grid; gap: 4px; }
.ui-card small { font-weight: 700; font-size: .68rem; color: var(--brique); }
.ui-card p { font-size: .8rem; line-height: 1.3; }
.ui-birth { background: var(--ocre); }
.ui-birth small { color: var(--nuit); }
.ui-row { display: flex; align-items: center; gap: 8px; font-size: .78rem; }
.ui-row i { width: 22px; height: 22px; border-radius: 50%; background: var(--indigo); flex-shrink: 0; }
.ui-row:nth-child(3) i { background: var(--brique); }
.ui-row:nth-child(4) i { background: var(--nuit); }
.phone-cap { font-size: .85rem; opacity: .7; }
@media (max-width: 900px) { .app-in { grid-template-columns: 1fr; } .app-feats { grid-template-columns: 1fr; } }

/* ---------- application : captures ---------- */
.app-in { grid-template-columns: 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.app-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem 4rem; align-items: end; }
.app-head h2 { margin-bottom: 0; }
.app-feats { grid-template-columns: repeat(3, 1fr); margin: 0; }
.shot { display: grid; gap: 1rem; max-width: 1180px; width: 100%; margin-inline: auto; }
.shot-tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.shot-tabs button { padding: .6rem 1.1rem; border: 2px solid rgba(251, 248, 244, .45); border-radius: 999px; font-weight: 600; font-size: .92rem; transition: background-color .3s, color .3s, border-color .3s; }
.shot-tabs button:hover { border-color: var(--ocre); }
.shot-tabs button.on { background: var(--ocre); color: var(--nuit); border-color: var(--ocre); }
.shot-frame { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px rgba(0, 0, 0, .45); }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: .6rem .9rem; background: #E9E3DB; color: var(--nuit); font-size: .8rem; }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c9bfb3; }
.shot-bar span { margin-left: .6rem; padding: .15rem .8rem; border-radius: 999px; background: #fff; flex: 1; max-width: 340px; }
.shot-stage { position: relative; aspect-ratio: 1400 / 394; background: #fff; }
.shot-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity .6s var(--ease), transform .9s var(--ease); }
.shot-stage img.on { opacity: 1; transform: none; }
.shot-cap { font-size: 1.1rem; min-height: 1.6em; }
.shot-note { margin: 0; opacity: .7; color: var(--page); }
@media (max-width: 900px) { .app-head { grid-template-columns: 1fr; } .app-feats { grid-template-columns: 1fr; } .shot-stage { aspect-ratio: 16 / 10; } .shot-stage img { object-position: 30% 0; } }

/* bouton WhatsApp relevé pour ne pas cacher le crédit du pied de page */
.wa { bottom: 4.6rem; }
.foot-bottom { padding-bottom: .5rem; }

/* bouton retour en haut */
.totop { position: fixed; right: 1.2rem; bottom: 8.6rem; z-index: 80; width: 48px; height: 48px; border-radius: 50%; background: var(--ocre); color: var(--nuit); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease), background-color .3s; }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--page); }
.totop svg { width: 22px; height: 22px; }
@media (max-width: 600px) { .totop { bottom: 8rem; right: 1.35rem; } }
