html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;

    background:
        linear-gradient(
            180deg,
            #FFFAFC 0%,
            #F8E6EB 40%,
            #EECCD3 100%
        );

    color: #5C0012;

    overflow-x: hidden;

    position: relative;
}

/* ========================= */
/* BACKGROUND GLOW */
/* ========================= */

body::before {

    content: "";

    position: fixed;

    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background:
        radial-gradient(
            circle at top left,
            rgba(204, 102, 122, 0.12),
            transparent 35%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(170, 0, 34, 0.08),
            transparent 40%
        );

    pointer-events: none;

    z-index: -1;
}

/* ========================= */
/* TYPOGRAPHY */
/* ========================= */

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
}

h2 {
    font-size: 3rem;

    text-align: center;

    margin-bottom: 60px;

    color: #AA0022;

    letter-spacing: 1px;
}

p {
    line-height: 1.9;
}

/* ========================= */
/* GENERAL SECTIONS */
/* ========================= */

.section {
    padding: 110px 10%;
}

/* ========================= */
/* HERO */
/* ========================= */

.hero {

    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            rgba(255,250,252,0.7),
            rgba(238,204,211,0.75)
        ),
        url("photos/photobg.png");

    background-size: cover;
    background-position: center;
}

.hero::after {

    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background:
        linear-gradient(
            to bottom,
            transparent,
            rgba(255,250,252,0.7)
        );
}

.hero-content {

    position: relative;

    z-index: 2;

    max-width: 850px;

    animation: fadeUp 1.2s ease;
}

.hero h1 {

    font-size: 5.5rem;

    color: #AA0022;

    margin-bottom: 25px;

    text-shadow:
        0 5px 25px rgba(170,0,34,0.12);
}

.hero p {

    font-size: 1.25rem;

    color: #5C0012;

    margin-bottom: 35px;
}

/* ========================= */
/* BUTTONS */
/* ========================= */

button {

    border: none;

    cursor: pointer;

    padding: 16px 36px;

    border-radius: 999px;

    font-size: 1rem;

    font-weight: 600;

    color: white;

    background:
        linear-gradient(
            135deg,
            #BB334E,
            #CC667A
        );

    box-shadow:
        0 10px 30px rgba(187,51,78,0.25);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        opacity 0.3s ease;
}

button:hover {

    transform:
        translateY(-4px)
        scale(1.03);

    box-shadow:
        0 15px 35px rgba(187,51,78,0.35);
}


/* ========================= */
/* MESSAGE CHAQUE JOUR */
/* ========================= */

.daily-love {

    padding: 60px 10%;

    text-align: center;
}

.love-message-card {

    max-width: 900px;

    margin: auto;

    padding: 35px;

    border-radius: 30px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.95),
            rgba(255,255,255,0.75)
        );

    box-shadow:
        0 15px 40px rgba(92,0,18,0.08);
}

#dailyLoveMessage {

    font-size: 1.2rem;

    color: #AA0022;

    line-height: 1.8;
}

/* ========================= */
/* PREMIUM CARDS */
/* ========================= */

.story-card,
.quiz-card,
.date-card,
.final-card,
.spotify-player {

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.9),
            rgba(255,255,255,0.6)
        );

    border:
        1px solid rgba(255,255,255,0.8);

    border-radius: 35px;

    padding: 50px;

    box-shadow:
        0 15px 40px rgba(92,0,18,0.08);

    position: relative;

    overflow: hidden;
}

.story-card::before,
.quiz-card::before,
.date-card::before,
.final-card::before {

    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    background:
        radial-gradient(
            rgba(221,153,167,0.25),
            transparent 70%
        );

    top: -150px;
    right: -150px;
}

/* ========================= */
/* STORY */
/* ========================= */

.story-card {

    max-width: 900px;

    margin: auto;

    text-align: center;

    font-size: 1.15rem;
}

/* ========================= */
/* GALERIE PHOTO */
/* ========================= */

.gallery {
    position: relative;
}

.premium-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 35px;
    align-items: flex-start;
}

/* ========================= */
/* PHOTO CARD */
/* ========================= */

.photo-card {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.55));
    padding: 12px;
    box-shadow: 0 15px 40px rgba(92,0,18,0.12);
    transition: transform 0.45s ease, box-shadow 0.45s ease;
    cursor: pointer;
}

.photo-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 22px 55px rgba(92,0,18,0.18);
}

/* ========================= */
/* IMAGES */
/* ========================= */

.photo-card img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    border-radius: 24px;
    position: relative;
    z-index: 2;
    transition: transform 0.6s ease;
}

.photo-card:hover img {
    transform: scale(1.05);
}

/* ========================= */
/* OVERLAY TEXTE */
/* ========================= */

.photo-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    bottom: 12px;
    left: 12px;
    border-radius: 24px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    background: rgba(255, 255, 255, 0);
    transition: opacity 0.45s ease, background 0.45s ease;
    pointer-events: none;
}

.photo-card:hover .photo-overlay {
    opacity: 1;
    background: rgba(255, 255, 255, 0.82);
}

.photo-overlay span {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: #5C0012 !important;
    text-align: center;
    line-height: 1.6;
    transform: translateY(10px);
    transition: transform 0.45s ease;
}

.photo-card:hover .photo-overlay span {
    transform: translateY(0);
}

/* ========================= */
/* MOBILE */
/* ========================= */

@media (max-width: 768px) {
    .photo-card { border-radius: 26px; }
    .photo-card img { height: 280px; border-radius: 18px; }
    .photo-overlay {
        top: 8px; right: 8px; bottom: 8px; left: 8px;
        border-radius: 18px;
    }
    .photo-overlay span { font-size: 1rem; }
}

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

.quiz-card {

    max-width: 850px;

    margin: auto;

    text-align: center;

    position: relative;

    overflow: visible !important;
}

.quiz-card p {

    font-size: 1.35rem;

    margin-bottom: 30px;
}

.quiz-buttons {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 20px;

    min-height: 120px;
}

/* bouton normal */

.correct {

    position: relative;

    z-index: 2;
}

/* bouton fuyant */

#escapeBtn {

    transition:
        transform 0.18s ease;
}

#quiz-result {

    margin-top: 30px;

    font-size: 1.2rem;

    font-weight: 600;

    color: #AA0022;
}

/* ========================= */
/* DATE */
/* ========================= */

.date-card {

    max-width: 850px;

    margin: auto;

    text-align: center;
}

.date-card ul {

    list-style: none;

    margin-top: 30px;

    font-size: 1.15rem;

    line-height: 2.5;
}

/* ========================= */
/* FINAL MESSAGE */
/* ========================= */

.final-message {

    padding-bottom: 150px;
}

.final-card {

    max-width: 900px;

    margin: auto;

    text-align: center;
}

.final-card h2 {

    font-size: 4rem;

    margin-bottom: 25px;
}

/* ========================= */
/* MUSIC */
/* ========================= */

.music-title {

    text-align: center;

    margin-bottom: 20px;

    font-size: 1.3rem;

    font-weight: 600;

    color: #AA0022;
}

/* ========================= */
/* FLOATING HEARTS */
/* ========================= */

.hearts::before,
.hearts::after {

    content: "❤";

    position: fixed;

    font-size: 7rem;

    color:
        rgba(204,102,122,0.08);

    z-index: -1;

    animation:
        floatHearts 14s linear infinite;
}

.hearts::before {

    left: 8%;
    top: 100%;
}

.hearts::after {

    right: 8%;
    top: 120%;

    animation-delay: 6s;
}

/* ========================= */
/* SCROLLBAR */
/* ========================= */

::-webkit-scrollbar {

    width: 10px;
}

::-webkit-scrollbar-track {

    background: #FFFAFC;
}

::-webkit-scrollbar-thumb {

    background: #CC667A;

    border-radius: 999px;
}

/* ========================= */
/* HIDDEN */
/* ========================= */

.hidden {

    display: none;
}

/* ========================= */
/* ANIMATIONS */
/* ========================= */

@keyframes fadeUp {

    from {

        opacity: 0;

        transform:
            translateY(30px);
    }

    to {

        opacity: 1;

        transform:
            translateY(0);
    }
}

@keyframes floatHearts {

    from {

        transform:
            translateY(0)
            rotate(0deg);
    }

    to {

        transform:
            translateY(-140vh)
            rotate(360deg);
    }
}

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

@media (max-width: 768px) {

    .hero h1 {

        font-size: 3.5rem;
    }

    h2 {

        font-size: 2.3rem;
    }

    .section {

        padding: 90px 7%;
    }

    .story-card,
    .quiz-card,
    .date-card,
    .final-card,
    .spotify-player {

        padding: 35px;
    }

    button {

        width: 100%;
    }

    .gallery-grid img {

        height: 280px;
    }
}

/* ========================= */
/* RELATIONSHIP TIMELINE */
/* ========================= */

.timeline-section {

    position: relative;
}

.timeline-header {

    text-align: center;

    margin-bottom: 80px;
}

.timeline-subtitle {

    text-transform: uppercase;

    letter-spacing: 6px;

    font-size: 0.75rem;

    color: #CC667A;

    margin-bottom: 15px;
}

/* timeline */

.relationship-timeline {

    position: relative;

    max-width: 900px;

    margin: auto;

    display: flex;

    flex-direction: column;

    gap: 45px;
}

/* ligne centrale */

.relationship-timeline::before {

    content: "";

    position: absolute;

    left: 50%;

    top: 0;
    bottom: 0;

    width: 2px;

    background:
        linear-gradient(
            to bottom,
            #CC667A,
            rgba(204,102,122,0.15)
        );

    transform: translateX(-50%);
}

/* event */

.timeline-event {

    display: flex;

    align-items: center;

    justify-content: space-between;

    position: relative;
}

/* date */

.timeline-date {

    width: 120px;

    text-align: center;

    font-size: 0.9rem;

    letter-spacing: 2px;

    color: #AA0022;

    font-weight: 600;
}

/* card */

.timeline-card {

    width: calc(50% - 60px);

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.92),
            rgba(255,255,255,0.65)
        );

    border-radius: 28px;

    padding: 28px;

    border:
        1px solid rgba(255,255,255,0.8);

    box-shadow:
        0 15px 40px rgba(92,0,18,0.08);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.timeline-card:hover {

    transform:
        translateY(-5px);

    box-shadow:
        0 20px 50px rgba(92,0,18,0.12);
}

.timeline-card h3 {

    color: #AA0022;

    margin-bottom: 12px;

    font-size: 1.35rem;
}

.timeline-card p {

    line-height: 1.8;
}

/* alternance */

.timeline-event:nth-child(even) {

    flex-direction: row-reverse;
}

/* mobile */

@media (max-width: 768px) {

    .relationship-timeline::before {

        left: 20px;
    }

    .timeline-event,
    .timeline-event:nth-child(even) {

        flex-direction: column;

        align-items: flex-start;

        padding-left: 50px;
    }

    .timeline-date {

        width: auto;

        margin-bottom: 12px;
    }

    .timeline-card {

        width: 100%;
    }
}

/* ========================= */
/* LOVE COUNTER */
/* ========================= */

.love-counter-section {
    padding-top: 0;
}

.love-counter-card {
    max-width: 850px;
    margin: auto;
    text-align: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.6));
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 35px;
    padding: 50px;
    box-shadow: 0 15px 40px rgba(92,0,18,0.08);
}

.counter-label {
    text-transform: uppercase;
    letter-spacing: 6px;
    font-size: 0.7rem;
    color: #CC667A;
    margin-bottom: 8px;
}

.counter-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #AA0022;
    margin-bottom: 2.5rem;
}

.counter-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.counter-unit {
    background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(255,255,255,0.65));
    border: 1px solid rgba(204,102,122,0.2);
    border-radius: 20px;
    padding: 1.5rem 1.2rem 1.2rem;
    min-width: 100px;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 28px rgba(92,0,18,0.08);
}

.counter-unit::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(90deg, #BB334E, #CC667A);
}

.counter-unit span {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #AA0022;
    line-height: 1;
    display: block;
    margin-bottom: 0.6rem;
    letter-spacing: -1px;
}

.counter-unit p {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #CC667A;
    line-height: 1;
}

.counter-sep {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: rgba(204,102,122,0.35);
    padding-bottom: 1rem;
    line-height: 1;
    align-self: center;
}

@media (max-width: 768px) {
    .counter-unit span { font-size: 2.2rem; }
    .counter-unit { min-width: 72px; padding: 1.2rem 0.8rem 1rem; }
    .counter-sep { display: none; }
}

/* ========================= */
/* 10 RAISONS */
/* ========================= */

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: auto;
}

.reason-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(204, 102, 122, 0.2);
    border-top: 3px solid #CC667A;
    border-radius: 28px;
    padding: 32px 28px;
    box-shadow: 0 10px 30px rgba(92, 0, 18, 0.07);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.reason-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(92,0,18,0.12);
}

.reason-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: rgba(204,102,122,0.2);
    line-height: 1;
    font-weight: 700;
}

.reason-card p {
    font-size: 1rem;
    line-height: 1.75;
    color: #5C0012;
}

.reason-card--last {
    grid-column: span 1;
    max-width: 100%;
    margin: 0;
}

@media (max-width: 768px) {
    .reasons-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================= */
/* QUIZ SUR MOI */
/* ========================= */

.my-quiz-card {
    max-width: 750px;
    margin: auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(204, 102, 122, 0.2);
    border-top: 3px solid #CC667A;
    border-radius: 35px;
    padding: 50px;
    box-shadow: 0 15px 40px rgba(92, 0, 18, 0.08);
}

#quiz-intro p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: #5C0012;
}

.quiz-progress {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 35px;
}

.quiz-progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(204, 102, 122, 0.15);
    border-radius: 999px;
    overflow: hidden;
}

#progressFill {
    height: 100%;
    background: linear-gradient(90deg, #BB334E, #CC667A);
    border-radius: 999px;
    transition: width 0.4s ease;
    width: 10%;
}

#questionCounter {
    font-size: 0.8rem;
    color: #CC667A;
    font-weight: 600;
    letter-spacing: 2px;
    white-space: nowrap;
}

.quiz-question {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #AA0022;
    margin-bottom: 30px;
    line-height: 1.5;
}

.quiz-choices {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.quiz-choice-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid rgba(204, 102, 122, 0.25);
    border-radius: 16px;
    padding: 16px 20px;
    font-size: 0.95rem;
    color: #5C0012;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    width: 100%;
}

.quiz-choice-btn:hover {
    background: rgba(204, 102, 122, 0.08);
    border-color: #CC667A;
    transform: translateY(-2px);
}

.quiz-choice-btn.correct-answer {
    background: rgba(180, 220, 180, 0.4);
    border-color: #5a9e5a;
    color: #2d5a2d;
}

.quiz-choice-btn.wrong-answer {
    background: rgba(220, 150, 150, 0.3);
    border-color: #c05050;
    color: #7a2020;
}

.quiz-choice-btn:disabled {
    cursor: default;
    transform: none;
}

.quiz-feedback {
    min-height: 32px;
    font-size: 1rem;
    font-weight: 600;
    color: #AA0022;
    margin-top: 10px;
}

.quiz-score-label {
    text-transform: uppercase;
    letter-spacing: 6px;
    font-size: 0.7rem;
    color: #CC667A;
    margin-bottom: 10px;
}

.quiz-score-number {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    color: #AA0022;
    line-height: 1;
    margin-bottom: 20px;
}

.quiz-score-message {
    font-size: 1.1rem;
    color: #5C0012;
    line-height: 1.8;
    margin-bottom: 35px;
}

@media (max-width: 768px) {
    .quiz-choices {
        grid-template-columns: 1fr;
    }
    .quiz-question {
        font-size: 1.2rem;
    }
    .my-quiz-card {
        padding: 30px 20px;
    }
}

/* ========================= */
/* TOP 10 MEILLEUR COPAIN */
/* ========================= */

.bf-card {
    max-width: 750px;
    margin: auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(204, 102, 122, 0.2);
    border-top: 3px solid #CC667A;
    border-radius: 35px;
    padding: 50px;
    box-shadow: 0 15px 40px rgba(92, 0, 18, 0.08);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.bf-counter {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.bf-counter span {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: #AA0022;
    line-height: 1;
    transition: all 0.3s ease;
}

.bf-counter p {
    font-size: 1rem;
    color: #CC667A;
    font-weight: 600;
}

.bf-reason {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    color: #5C0012;
    line-height: 1.7;
    max-width: 580px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeUp 0.4s ease;
}

.bf-final-text {
    font-size: 1.1rem;
    color: #AA0022;
    font-style: italic;
    animation: fadeUp 0.5s ease;
}

@media (max-width: 768px) {
    .bf-card { padding: 35px 25px; }
    .bf-reason { font-size: 1.15rem; }
    .bf-counter span { font-size: 3rem; }
}

/* ========================= */
/* TEST DE COMPATIBILITE */
/* ========================= */

.compat-card {
    max-width: 750px;
    margin: auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(204, 102, 122, 0.2);
    border-top: 3px solid #CC667A;
    border-radius: 35px;
    padding: 50px;
    box-shadow: 0 15px 40px rgba(92, 0, 18, 0.08);
}

.compat-intro-text {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: #5C0012;
    text-align: center;
}

#compatProgressFill {
    height: 100%;
    background: linear-gradient(90deg, #BB334E, #CC667A);
    border-radius: 999px;
    transition: width 0.4s ease;
    width: 10%;
}

#compatCounter {
    font-size: 0.8rem;
    color: #CC667A;
    font-weight: 600;
    letter-spacing: 2px;
    white-space: nowrap;
}

.compat-score-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, #BB334E, #CC667A);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px auto;
    box-shadow: 0 15px 40px rgba(187, 51, 78, 0.3);
}

.compat-score-circle span {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: white;
    font-weight: 700;
}

.compat-result-label {
    text-transform: uppercase;
    letter-spacing: 6px;
    font-size: 0.7rem;
    color: #CC667A;
    margin-bottom: 5px;
}

.compat-souls {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: #AA0022;
    margin-bottom: 20px;
}

.compat-result-text {
    font-size: 1.05rem;
    color: #5C0012;
    line-height: 1.8;
    max-width: 520px;
    margin: 0 auto 35px;
}

@media (max-width: 768px) {
    .compat-card { padding: 35px 25px; }
    .compat-score-circle { width: 150px; height: 150px; }
    .compat-score-circle span { font-size: 2.5rem; }
}

/* ========================= */
/* LABYRINTHE */
/* ========================= */

.labyrinth-section {
    text-align: center;
}

.labyrinth-subtitle {
    text-align: center;
    color: #CC667A;
    margin-bottom: 40px;
    margin-top: -40px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.labyrinth-wrapper {
    position: relative;
    display: block;
    max-width: 560px;
    margin: auto;
}

#mazeCanvas {
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(92,0,18,0.12);
    display: block;
    margin: auto;
    max-width: 100%;
}

#mazeWin {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    animation: fadeUp 0.6s ease;
    padding: 40px;
    margin-top: 30px;
}

#mazeWin.visible {
    display: flex;
}

.maze-win-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(92,0,18,0.15);
    border: 4px solid #CC667A;
}

.maze-win-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: #AA0022;
}

/* ========================= */
/* SECTION SECRETE */
/* ========================= */

.secret-section {
    padding-top: 0;
}

.secret-card {
    max-width: 420px;
    margin: auto;
    text-align: center;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(204,102,122,0.2);
    border-top: 3px solid #CC667A;
    border-radius: 35px;
    padding: 45px 40px;
    box-shadow: 0 15px 40px rgba(92,0,18,0.08);
}

.secret-hint {
    font-size: 1rem;
    color: #5C0012;
    margin-bottom: 30px;
}

.password-display {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;
}

.pwd-digit {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #AA0022;
    width: 50px;
    height: 60px;
    background: rgba(204,102,122,0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(204,102,122,0.2);
}

.password-pad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 260px;
    margin: auto;
}

.pwd-btn {
    padding: 16px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 14px;
    background: rgba(255,255,255,0.9);
    border: 1.5px solid rgba(204,102,122,0.25);
    color: #5C0012;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.pwd-btn:hover {
    background: rgba(204,102,122,0.1);
    border-color: #CC667A;
    transform: translateY(-2px);
}

.pwd-btn--clear {
    background: rgba(220,150,150,0.15);
    border-color: rgba(200,80,80,0.2);
    color: #c05050;
}

.pwd-btn--ok {
    background: linear-gradient(135deg, #BB334E, #CC667A);
    color: white;
    border: none;
}

.pwd-error {
    margin-top: 20px;
    color: #c05050;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ========================= */
/* DORO LIST */
/* ========================= */

.doro-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #AA0022;
    text-align: center;
    margin-bottom: 10px;
}

.doro-subtitle {
    text-align: center;
    color: #CC667A;
    margin-bottom: 40px;
    font-size: 0.95rem;
}

.doro-list {
    list-style: none;
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.doro-item {
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(204,102,122,0.2);
    border-radius: 16px;
    padding: 18px 24px;
    font-size: 1.05rem;
    color: #5C0012;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 16px rgba(92,0,18,0.05);
    transition: transform 0.2s ease;
}

.doro-item:hover {
    transform: translateX(6px);
}

.doro-check {
    display: none;
}

.doro-item[data-done="true"] {
    background: rgba(180,220,180,0.25);
    border-color: rgba(90,158,90,0.3);
    color: #2d5a2d;
    text-decoration: line-through;
    opacity: 0.8;
}

.doro-item[data-done="true"]::before {
    content: "✓";
    color: #5a9e5a;
    font-weight: 700;
    font-size: 1.4rem;
    min-width: 28px;
    display: inline-block;
}

.doro-item[data-done="false"]::before {
    content: "☐";
    color: #CC667A;
    font-size: 1.4rem;
    min-width: 28px;
    display: inline-block;
}

/* ========================= */
/* MOTS FLECHES */
/* ========================= */

.wordsearch-section {
    text-align: center;
}

.wordsearch-subtitle {
    text-align: center;
    color: #CC667A;
    margin-bottom: 40px;
    margin-top: -40px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.wordsearch-card {
    max-width: 820px;
    margin: auto;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(204,102,122,0.2);
    border-top: 3px solid #CC667A;
    border-radius: 35px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(92,0,18,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.ws-wordlist {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 520px !important;
}

.ws-wordlist > div {
    width: 150px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    display: inline-block !important;
}

.wordsearch-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.ws-grid {
    display: grid;
    grid-template-columns: repeat(14, 34px);
    width: 476px;
    gap: 2px;
    flex-shrink: 0;
}

.ws-cell {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #5C0012;
    background: rgba(255,255,255,0.9);
    border-radius: 6px;
    border: 1px solid rgba(204,102,122,0.15);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    user-select: none;
    -webkit-user-select: none;
}

.ws-cell.selecting {
    background: rgba(187,51,78,0.2);
    color: #AA0022;
}

.ws-cell.found {
    background: linear-gradient(135deg, #BB334E, #CC667A);
    color: white;
    border-color: transparent;
}

.ws-word {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #5C0012;
    padding: 6px 14px;
    background: rgba(255,255,255,0.9);
    border: 1.5px solid rgba(204,102,122,0.2);
    border-radius: 999px;
    transition: all 0.3s ease;
    text-align: center;
}

.ws-word.found {
    background: rgba(180,220,180,0.3);
    border-color: rgba(90,158,90,0.3);
    color: #5a9e5a;
    text-decoration: line-through;
}

.ws-score {
    font-size: 1rem;
    font-weight: 600;
    color: #CC667A;
}

.ws-msg {
    font-size: 1.1rem;
    font-weight: 600;
    color: #AA0022;
    min-height: 24px;
}

@media (max-width: 768px) {
    .ws-grid {
        grid-template-columns: repeat(14, 22px);
        width: 308px;
    }
    .ws-cell {
        width: 22px;
        height: 22px;
        font-size: 0.65rem;
        border-radius: 3px;
    }
    .wordsearch-card { padding: 20px 12px; }
}