:root {
    --brand: #da3c2a;
    --ink: #1b1b1b;
    --muted: #6b7280;
    --bg: #fff;
    --card: #0f0f0f;
    --shadow: 0 8px 30px rgba(0, 0, 0, .08);
    --radius: 16px;
    --app-vh: 100vh;
    --space: clamp(10px, 2.5vw, 18px);
    --fs-h1: clamp(18px, 2.2vw, 22px);
    --fs-h2: clamp(20px, 2.6vw, 30px);
    --fs-body: clamp(14px, 1.9vw, 16px);
    --slider-h-portrait: min(72vh, 680px);
    --slider-h-landscape: min(62vh, 520px);
}

#slideDetailModal h3 {
    display: none;
}

* { box-sizing: border-box }

html, body {
    margin: 0;
    background: var(--bg);
    color: #fff;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
    font-size: var(--fs-body);
		overflow: hidden;
}

.slider-control {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    padding: 10px;
}

.slider-control img {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* Positionnement */
.slider-control.prev {
    left: 10px;
}

.slider-control.next {
    right: 10px;
}


img { max-width: 100%; display: block }
button { cursor: pointer }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important }
}
header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #FFF;
    min-height: 55px;
}
header .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px var(--space)
}
header .brand img {
    position: absolute;
    left: 50%;
    bottom: -50px;
    height: 100px;
    transform: translateX(-50%);
}

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--space) var(--space) calc(120px + var(--space))
}

/* ---------- SLIDER ---------- */
.slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: calc(var(--app-vh) - 55px);
    background-repeat: no-repeat;
    background-size: cover;
}
.slider-track {
    display: flex;
    height: 100%;
    transition: transform .5s ease
}
.slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    color: #fff;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    align-items: stretch;
    isolation: isolate;
    background-image: url(../images/slide_bg.png);
}
.slide.right .text { text-align: left; }
.slide .text .text-white { color: #FFF; margin-bottom: 10px; }

.slide-inner {
    position: relative;
    z-index: 1;
    display: grid;
    height: 100%;
    grid-template-columns: 1fr;
    align-items: center;
    padding: 15px 60px;
}

/* centrage harmonisé */
.slide-inner { align-items: center; justify-items: center; }
.slide .image { display:flex; align-items:center; justify-content:center; height:100%; }

.slide.left .slide-inner { justify-items: start; text-align: left; }
.slide.right .slide-inner { justify-items: end;   text-align: right; }

@media (min-width: 1000px) and (max-width: 1100px) {
	header {
        min-height: 125px !important;
    }
	.slide_10 .image img {
		margin-right: -120px;
	}
	.slide_2 .slide-inner,.slide_7 .slide-inner,.slide_10 .slide-inner {
        display: flex !important;
        flex-direction: column-reverse !important;
    }
	#grandPrizeModal a {
		background: none;
		box-shadow: none;
		text-decoration: none;
		text-align: left;
		padding: 0 !important;
		padding-right: 130px !important;
		font-size: 25px !important;
	}
	#grandPrizeModal .follow {
		position: absolute;
		width: 120px;
		height: 120px;
		right: 20px;
		bottom: 20px;
	}
	#grandPrizeModal p {
		font-size: 25px;
	}
	#grandPrizeModal .follow {
		position: absolute;
		width: 120px;
		height: 120px;
		right: 20px;
		bottom: 20px;
	}
	#grandPrizeModal a {
		background: none;
		box-shadow: none;
		text-decoration: none;
		text-align: left;
	}
	.prize-img {
		max-width: 700px !important;
		width: 100%;
		height: auto;
		border-radius: 0px !important;
		background: none !important; 
		padding: 0px !important;
		box-shadow: none !important;
		margin: 25px 0px;
	}

	#grandPrizeModal h3 {
		color: #6e472d;
		font-size: 40px;
		margin-bottom: 0px;
	}
	
    header .brand img {
		bottom: -100px !important;
		height: 200px !important;
    }
	.slide.slide_0 .slide-inner {
        height: 100% !important;
    }
    .slide-inner {
        grid-template-columns: 1fr !important;
        height: max-content;
        padding-top: 150px;
        padding-left: 100px;
        padding-right: 100px;
    }
    .lang-switch {
        top: 25px !important;
    }
    .lang-btn {
        font-size: 22px !important;
        padding: 15px 20px !important;
    }
	.title {
		font-size: 41px !important;
		line-height: 41px !important;
		margin-bottom: 20px !important; 
    }
    .blurb,.text div,.text li {
        font-size: 25px !important;
		line-height: 40px !important;
        text-align: justify !important;
    }
	.btn {
		border: none;
		border-radius: 30px;
		padding: 45px 91px !important;
		font-weight: 300;
		margin-top: 45px;
		font-size: 28px !important;
		background: #fef3c7;
		color: #111;
		box-shadow: var(--shadow) 0 8px 30px rgba(0, 0, 0, .08);
		font-family: 'Cinzel';
	}
	.text {
		width: 100% !important;
		padding-top: 64px !important;
	}
}

@media (min-width: 700px) and (max-width: 800px) {
	header {
        min-height: 90px !important;
    }
	.slide_10 .image img {
        margin-right: 304px;
        max-width: 199%;
    }
	.slide_2 .slide-inner,.slide_7 .slide-inner,.slide_10 .slide-inner {
        display: flex !important;
        flex-direction: column-reverse !important;
    }
	#slideDetailModal .modal-dialog img {
		width: 80%;
		position: relative;
		left: 50%;
		transform: translateX(-50%);
	}

	#slideDetailModal .modal-dialog {
		width: 95%;
	}
	#grandPrizeModal a {
		background: none;
		box-shadow: none;
		text-decoration: none;
		text-align: left;
		padding: 0 !important;
		padding-right: 130px !important;
		font-size: 25px !important;
		display: inline-flex;
	}
	#grandPrizeModal .follow {
		position: absolute;
		width: 120px;
		height: 120px;
		right: 20px;
		bottom: 20px;
	}
	#grandPrizeModal p {
		font-size: 25px;
	}
	#grandPrizeModal .follow {
		position: absolute;
		width: 120px;
		height: 120px;
		right: 20px;
		bottom: 20px;
	}
	#grandPrizeModal a {
		background: none;
		box-shadow: none;
		text-decoration: none;
		text-align: left;
	}
	.prize-img {
		max-width: 700px !important;
		width: 100%;
		height: auto;
		border-radius: 0px !important;
		background: none !important; 
		padding: 0px !important;
		box-shadow: none !important;
		margin: 25px 0px;
	}

	#grandPrizeModal h3 {
		color: #6e472d;
		font-size: 40px;
		margin-bottom: 0px;
	}
	
    header .brand img {
		bottom: -75px !important;
		height: 150px !important;
    }
	.slide.slide_0 .slide-inner {
        height: 100% !important;
    }
    .slide-inner {
        grid-template-columns: 1fr !important;
        height: max-content;
        padding-top: 150px;
        padding-left: 100px;
        padding-right: 100px;
        height: 100% !important;
		overflow: auto;
		padding-bottom: 50px;
		overflow-x: hidden;
    }
    .lang-switch {
        top: 25px !important;
    }
    .lang-btn {
        font-size: 18px !important;
        padding: 10px 15px !important;
    }
	.title {
        font-size: 35px !important;
        line-height: 50px !important;
        margin-bottom: 20px !important;
    }
    .blurb,.text div,.text li {
        font-size: 20px !important;
		line-height: 40px !important;
        text-align: justify !important;
    }
	    .btn {
        border: none;
        border-radius: 30px;
        padding: 35px 66px !important;
        font-weight: 300;
        margin-top: 45px;
        font-size: 20px !important;
        background: #fef3c7;
        color: #111;
        box-shadow: var(--shadow) 0 8px 30px rgba(0, 0, 0, .08);
        font-family: 'Cinzel';
    }
	.text {
		width: 100% !important;
		padding-top: 64px !important;
	}
}
    
@media (min-width:640px) {
    .slide-inner { grid-template-columns: 1fr 1fr; }
    .slide.left .text { grid-column: 1; }
    .slide.right .text { grid-column: 2; }
}

.text {
    width: min(90%, 560px);
    padding: clamp(12px, 2.2vw, 22px);
    margin: 0 auto; /* centre horizontal */
}
.eyebrow {
    font: 700 12px/1 Cinzel, serif;
    letter-spacing: .08em;
    color: #fef08a;
    text-transform: uppercase;
    margin-bottom: 6px
}
.title {
    font-family: Cinzel, serif;
    font-weight: 900;
    font-size: clamp(22px, 4.4vw, 30px);
    font-weight: 300;
    line-height: 1.05;
    color: #6e472d;
    margin: 0 0 10px
}
.text div { color: #000; font-weight: 300 !important; font-family: 'Cinzel'; }
.lead { margin: 0 0 8px; line-height: 1.5 }
.bullets {
    margin: 8px 0 0;
    padding: 0px !important;
    padding-left: 1rem;
    list-style-type: none;
    color: #000;
    font-weight: 300 !important;
}
.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
    justify-content: flex-start
}
.btn {
    border: none;
    border-radius: 30px;
    padding: 20px 45px;
    font-weight: 300;
    margin-top: 10px;
    font-size: 18px;
    background: #fef3c7;
    color: #111;
    box-shadow: var(--shadow);
    font-family: 'Cinzel';
}
.btn-outline { color: #6e472d; background: #b68a3f; }
.btn-accent { background: var(--brand); color: #fff }
.tiny { font-size: 12px; color: #e5e7eb; margin-top: 6px }

.slider-controls { display:flex; justify-content:center; gap:10px; margin-top:10px }
.ctrl { border:none; border-radius:12px; background:#111; color:#fff; padding:8px 14px; font-weight:800 }
.dots { display:flex; justify-content:center; gap:6px; margin-top:8px }
.dot { width:8px; height:8px; border-radius:50%; background:#334155 }
.dot.active { background:#fff }

/* ---------- STICKY FOOTER CTA ---------- */
.footer-cta {
    position: fixed; left:0; right:0; bottom:0; z-index:30;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), #000 32%);
    padding:10px var(--space);
    display:flex; gap:10px; justify-content:center; align-items:center;
    border-top:1px solid #111
}
.footer-cta .btn { min-width: clamp(140px, 28vw, 220px) }

/* ---------- MODALS ---------- */
.modal {
    position: fixed; inset: 0; z-index: 100;
    display:none; align-items: flex-end; justify-content: center;
    background: rgba(0,0,0,.48)
}
.modal.open { display:flex }
/*.modal-dialog {
    width: 100%; max-width: 880px; background: #0b0b0b;
    border-top-left-radius: 20px; border-top-right-radius: 20px; color:#fff;
    border:1px solid #1f2937; box-shadow: 0 -10px 30px rgba(0,0,0,.6);
    padding: 16px 14px 18px; max-height: calc(var(--app-vh) - 10vh);
    overflow: auto; animation: pop .18s ease
}*/
.modal-dialog {
    width: 100%;
    max-width: 880px;
    background: #0b0b0b;
    border-radius: 20px;
    color: #fff;
    padding: 16px 14px 18px;
    max-height: calc(var(--app-vh) - 10vh);
    overflow: auto;
    left: 50%;
    top: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
}
@keyframes pop { from { transform: translateY(14px); opacity:.8 } to { transform: translateY(0); opacity:1 } }
.modal .header { display:flex; justify-content: space-between; align-items:center; margin-bottom:8px }
.x { background:#111; color:#fff; border:1px solid #222; border-radius:12px; width:36px; height:36px; font-weight:900 }
.muted { color:#cbd5e1 }
.grid-2 { display:grid; gap:12px }
@media(min-width:760px){ .grid-2 { grid-template-columns: 1fr 1fr } }

/* ---------- QUIZ ---------- */
.quiz-shell {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.progress {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}
.step {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
}
.step.active {
    background: #fff;
    color: #000;
}
.quiz-q {
    margin: 6px 0;
    padding: 12px;
    border: 1px solid #1f2937;
    border-radius: 12px;
    background: #0f172a;
}
.quiz-q h4 {
    margin: 0 0 10px;
    color: #6e472d;
}
.choice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid #1f2937;
    background: #0b1220;
    margin: 6px 0;
}
.choice input {
    accent-color: var(--brand);
}
.quiz-nav {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
}
.quiz-error {
    margin-top: 8px;
    color: #c00;
    font-size: 13px;
    font-weight: 600;
}
.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}


/* ---------- WHEEL ---------- */
.center {
    text-align: center;
}
.hero-number {
    font-family: Cinzel, serif;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 900;
}
.badge {
    display: inline-block;
    background: #fef3c7;
    color: #111;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
}
.wheel-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 6px;
}
.wheel {
    width: min(72vw, 320px);
    height: min(72vw, 320px);
    border-radius: 50%;
    border: 6px solid #111;
    position: relative;
    overflow: hidden;
    background: conic-gradient(#fef3c7 0 45deg, #fde68a 45deg 90deg, #fecaca 90deg 135deg, #fca5a5 135deg 180deg, #fef3c7 180deg 225deg, #fde68a 225deg 270deg, #fecaca 270deg 315deg, #fca5a5 315deg 360deg);
    transition: transform 3.2s cubic-bezier(0.2, 0.9, 0.15, 1);
}
#wheel {
    width: min(72vw, 320px);
    height: min(72vw, 320px);
    text-align: center; /*margin-left:26px;*/
}
#wheel img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: rotate(0deg);
    transition: transform 3.2s cubic-bezier(0.2, 0.9, 0.15, 1);
}
.pointer {
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 18px solid #7b462c;
    margin-bottom: -28px;
    margin-top: 30px;
    z-index: 9;
}
.spin-btn {
    min-width: 150px;
}
.pill {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    background: #111;
    font-size: 12px;
}
.note {
    font-size: 12px;
    color: #94a3b8;
}
b {
    font-weight: bold !important;
    margin-top: 10px;
    display: inline-block;
}


@media (min-width:992px) {
	.slide_10 .image img {
		margin-right: -120px;
	}
    .slide_9 .title { font-size: 41px; }
    .slide_9 .slide-inner { grid-template-columns: 2fr 1fr; }
    .slide_9 .slide-inner .text { width: 100%; }
    .slide_9 .slide-inner { padding: 0px; padding-left: 60px; }
    .slide_9 .slide-inner .image img {
        position: absolute; right: -59%; top: -15%; height: 148%; max-width: none;
    }
    .slide_9 .slide-inner .image { height: 100%; position: relative; width: 455px; }
	.slide_10 .image img {
        margin-right: 13%;
        width: 136%;
        max-width: 136%;
    }
	
}

#chocoModal h3,#loseModal h3,#wheelModal h3,#wheelLoseModal h3{ width:100%; text-align:center; }
.result { display:flex; justify-content:center; font-size:74px; margin-top:15px; color:#6e472d; line-height:74px; }

@media (max-width: 480px) {
    .slide_0 {
        height: 100vh;
    }
    header {
        min-height: 100px !important;
    }

    .slide_1 .slide-inner,.slide_3 .slide-inner,.slide_5 .slide-inner,.slide_7 .slide-inner {
        display: flex !important;
        flex-direction: column-reverse !important;
    }

    header .brand img {
        bottom: -75px !important;
        height: 150px !important;
    }
    .slider {
        height: max-content;
    }
    .slide .slide-inner {
        padding-top: 100px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .text {
        width: 100%;
    }
    .text .title {
        text-align: center;
        font-size: 25px;
    }
    .bullets {
        text-align: center;
        font-weight: bold !important;
    }
    .text div {
        justify-content: center;
    }
    .modal-dialog .header h3 {
        font-size: 23px !important;
        margin-bottom: 0px;
    }
    .no_worries {
        color: #6e472d;
        font-size: 17px;
    }
    .lost {
        font-size: 34px;
        line-height: 24px;
    }
    #loseModal img,
    #wheelLoseModal img {
        width: 120px;
        display: inline-block;
    }
    .slide:not(.slide_0) .text div .text-white {
        font-size: 14px;
    }
    .slide:not(.slide_0) .text div {
        text-align: center;
        font-size: 18px;
    }
    .slide:not(.slide_0) .title {
        font-size: 32px;
    }
    .slide_9 .image {
        position: relative;
        width: 100%;
        height: 600px;
    }
    .slide_9 .image img {
        position: absolute;
        right: -196px;
        width: 598px;
        max-width: fit-content;
        height: auto !important;
        top: -70px;
    }
    .mobile {
        width: 100%;
    }

    .slide_2 .slide-inner,
    .slide_5 .slide-inner,
    .slide_10 .slide-inner {
        display: flex !important;
        flex-direction: column-reverse !important;
    }
}


.no_worries { color:#6e472d; font-size:22px; }
.lost { font-size:45px; line-height:24px; }
#loseModal img, #wheelLoseModal img { width:150px; display:inline-block; }

.modal-dialog { background:#b8a874; font-family:'Cinzel'; }
.quiz-q { border:1px solid #b9a975; background:#b9a975; }
.choice { border:1px solid #b9a975; background:#6e472d; }
.step { background:#6e472d; text-shadow:0 0 1px #000; }

#rulesModal .modal-dialog {
    max-width:480px; border-radius:20px; position:fixed; top:50%; left:50%;
    transform: translate(-50%, -50%); text-align:center;
}
.btn-outline { background:#6e472d;color: #FFF; }
.modal-dialog .x { background:#6e472d; color:#b8a874; }
#rulesModal .x {
    background:#b8a874; color:#6e472d; border:navajowhite;
    position:absolute; top:15px; right:15px; font-size:24px;
}
#rulesModal .question { color:#000; font-weight:bold; font-size:13px; }
#rulesModal .response { color:#000; margin-bottom:20px; font-size:13px; }
#rulesModal .content { padding:15px; }
#rulesModal header { justify-content:center !important; }
.modal-dialog .header h3 { color:#6e472d; font-size:29px; }
#rulesModal .header h3 { color:#6e472d; width:100%; text-align:center; margin:0; font-size:29px; margin-top:15px; }

/* =========================
   AJOUTS : Lang switcher + vidéo
   ========================= */
.lang-switch {
  position: absolute;
  top: 8px;
  right: 12px;
  display: flex;
  gap: 6px;
  z-index: 25;
}
.lang-btn {
  font-family: Cinzel, serif;
  font-size: 12px;
  line-height: 1;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid #b8a874;
  background: #fef3c7;
  color: #6e472d;
  cursor: pointer;
}
.lang-btn[aria-pressed="true"] {
  background: #947b2b;
  color: #fff;
  border-color: #6e472d;
}

/* Badge "Play" sur la slide vidéo si un poster existe */
.slide.video .image { position: relative; }
.slide.video .play-badge {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
}
.slide.video .play-badge span{
  display:inline-block; padding: 12px 18px; border-radius: 999px;
  background: rgba(0,0,0,.55); color: #fff; font-family: Cinzel, serif; font-size: 14px;
}

/* Vidéo full-width sur la slide 1 */
.hero-video { width:100%; height:100%; object-fit:cover; }

.slide.slide_0 .slide-inner { padding:0; grid-template-columns:1fr; }
.slide.slide_0 .slide-inner .image { height:100%; }
