/* ====================================
   ANNIV MARINE - QUIZ DESTINATION
   ==================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --bg-deep: #0f0f1e;
    --bg-warm: #1a1a2e;
    --accent-gold: #d4a574;
    --accent-rose: #e8a4a4;
    --accent-cream: #f5e6d3;
    --text-light: #f5e6d3;
    --text-muted: #9d8b73;
    --shadow-soft: 0 10px 40px rgba(0,0,0,0.3);
    --shadow-deep: 0 20px 60px rgba(0,0,0,0.5);
}

html, body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-deep);
    background-image:
        radial-gradient(ellipse at top, rgba(212, 165, 116, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(232, 164, 164, 0.1) 0%, transparent 50%);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ====== ÉCRANS ====== */

.screen {
    display: none;
    min-height: 100vh;
    width: 100%;
    padding: 2rem 1.25rem;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.6s ease;
}

.screen.active {
    display: flex;
}

.container {
    width: 100%;
    max-width: 480px;
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ====== ÉCRAN 1 : ACCUEIL ====== */

.welcome-photo-wrap {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent-gold);
    box-shadow: var(--shadow-deep), 0 0 60px rgba(212, 165, 116, 0.3);
    animation: floatPhoto 4s ease-in-out infinite;
}

.welcome-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@keyframes floatPhoto {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

.welcome-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.welcome-title .name {
    font-style: italic;
    font-weight: 600;
    color: var(--accent-gold);
    font-size: 3rem;
}

.welcome-message {
    font-size: 1.05rem;
    color: var(--accent-cream);
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 300;
}

.welcome-message em {
    font-style: italic;
    color: var(--accent-gold);
    font-weight: 500;
}

/* ====== BOUTONS ====== */

.btn {
    display: inline-block;
    padding: 1rem 2.2rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-rose));
    color: var(--bg-deep);
    box-shadow: 0 8px 24px rgba(212, 165, 116, 0.4);
}

.btn-primary:hover, .btn-primary:active {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(212, 165, 116, 0.6);
}

/* ====== QUIZ ====== */

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(245, 230, 211, 0.15);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-rose));
    border-radius: 4px;
    width: 0%;
    transition: width 0.5s ease;
}

.quiz-step-counter {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.quiz-question {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 2rem;
    color: var(--accent-cream);
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.quiz-option {
    background: rgba(245, 230, 211, 0.05);
    border: 1.5px solid rgba(212, 165, 116, 0.25);
    color: var(--text-light);
    padding: 1.1rem 1.25rem;
    border-radius: 16px;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    line-height: 1.45;
}

.quiz-option:hover, .quiz-option:active {
    background: rgba(212, 165, 116, 0.15);
    border-color: var(--accent-gold);
    transform: translateX(4px);
}

.quiz-option.selected {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.25), rgba(232, 164, 164, 0.25));
    border-color: var(--accent-gold);
}

/* ====== CALCUL ====== */

.computing-content {
    text-align: center;
}

.globe {
    font-size: 6rem;
    margin-bottom: 1.5rem;
    animation: spinGlobe 3s linear infinite;
    display: inline-block;
}

@keyframes spinGlobe {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.computing-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 500;
    color: var(--accent-cream);
    margin-bottom: 0.5rem;
}

.computing-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.computing-dots {
    display: inline-block;
}

.computing-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 50%;
    margin: 0 4px;
    animation: bounceDot 1.4s ease-in-out infinite both;
}

.computing-dots span:nth-child(1) { animation-delay: -0.32s; }
.computing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounceDot {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40%           { transform: scale(1);   opacity: 1;   }
}

/* ====== REVEAL : BOARDING PASS ====== */

.reveal-content {
    text-align: center;
}

.reveal-intro {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--accent-cream);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeIn 0.8s 0.2s forwards;
}

.boarding-pass {
    background: linear-gradient(135deg, #fefcf6, #f5e6d3);
    color: #2a2a3e;
    padding: 1.75rem 1.5rem 1.25rem;
    border-radius: 20px;
    box-shadow: var(--shadow-deep), 0 0 80px rgba(212, 165, 116, 0.2);
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    text-align: left;
    transform: scale(0.8);
    opacity: 0;
    animation: bpAppear 1s 0.5s forwards cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bpAppear {
    to { transform: scale(1); opacity: 1; }
}

.bp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px dashed rgba(42, 42, 62, 0.2);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.bp-airline {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
}

.bp-class {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    background: var(--bg-deep);
    color: var(--accent-gold);
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-weight: 600;
}

.bp-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.bp-city {
    text-align: center;
    flex: 1;
}

.bp-code {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
}

.bp-name {
    display: block;
    font-size: 0.75rem;
    color: rgba(42, 42, 62, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 0.25rem;
}

.bp-plane {
    font-size: 1.6rem;
    color: var(--accent-gold);
    flex: 0 0 auto;
    padding: 0 0.5rem;
}

.bp-info {
    display: flex;
    justify-content: space-between;
    border-top: 2px dashed rgba(42, 42, 62, 0.2);
    padding-top: 0.85rem;
    gap: 0.5rem;
}

.bp-info-block {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.bp-info-block:nth-child(2) { text-align: center; }
.bp-info-block:nth-child(3) { text-align: right; }

.bp-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(42, 42, 62, 0.5);
    margin-bottom: 0.15rem;
}

.bp-value {
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

/* La couche à gratter */
.bp-scratch {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(45deg,
            #c9b896 0px, #c9b896 10px,
            #b8a583 10px, #b8a583 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.bp-scratch.scratched {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.1);
}

.scratch-text {
    background: var(--bg-deep);
    color: var(--accent-gold);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-soft);
    animation: pulseScratch 2s ease-in-out infinite;
}

@keyframes pulseScratch {
    0%, 100% { transform: scale(1);    opacity: 1;   }
    50%      { transform: scale(1.08); opacity: 0.9; }
}

.reveal-detail {
    opacity: 0;
    animation: fadeIn 1s 0.3s forwards;
}

.reveal-detail h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 0.75rem;
    line-height: 1.15;
}

.reveal-detail p {
    color: var(--accent-cream);
    margin-bottom: 1rem;
    font-size: 0.98rem;
    opacity: 0.9;
}

.reveal-love {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.25rem !important;
    color: var(--accent-rose) !important;
    margin-top: 1.25rem;
}

/* ====== CONFETTIS ====== */

.confetti {
    position: fixed;
    width: 8px;
    height: 14px;
    pointer-events: none;
    z-index: 9999;
    animation: fall linear forwards;
}

@keyframes fall {
    to { transform: translateY(110vh) rotate(720deg); }
}

/* ====== RESPONSIVE ====== */

@media (max-width: 380px) {
    .welcome-title { font-size: 2rem; }
    .welcome-title .name { font-size: 2.5rem; }
    .quiz-question { font-size: 1.45rem; }
    .bp-code { font-size: 2.2rem; }
    .welcome-photo-wrap { width: 170px; height: 170px; }
}

@media (min-width: 600px) {
    .container { max-width: 540px; }
    .welcome-title { font-size: 3rem; }
    .welcome-title .name { font-size: 3.6rem; }
    .quiz-question { font-size: 2rem; }
}
