/* ===== Variables & Reset ===== */
:root {
    --red: #E2203C;
    --red-dark: #B81A30;
    --burgundy: #5C1A2A;
    --white: #FFFFFF;
    --off-white: #FFF5F5;
    --dark: #1A0A10;
    --gold: #D4A843;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--white);
    background: var(--dark);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 10, 16, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--red);
    transition: background 0.3s;
}

.nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 110px;
}

.nav__logo img {
    border-radius: 50%;
}

.nav__links {
    display: flex;
    gap: 30px;
}

.nav__links a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

.nav__links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width 0.3s;
}

.nav__links a:hover {
    color: var(--red);
}

.nav__links a:hover::after {
    width: 100%;
}

/* Burger menu */
.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav__burger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav__burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav__burger.active span:nth-child(2) {
    opacity: 0;
}

.nav__burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(ellipse at center, var(--burgundy) 0%, var(--dark) 70%);
    overflow: hidden;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        repeating-conic-gradient(
            from 0deg at 50% 50%,
            rgba(226, 32, 60, 0.05) 0deg 10deg,
            transparent 10deg 20deg
        );
    animation: spin 60s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hero__content {
    position: relative;
    z-index: 1;
    padding: 20px;
}

.hero__logo {
    width: 500px;
    height: 500px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 30px rgba(226, 32, 60, 0.5));
    animation: float 3s ease-in-out infinite;
}

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

.hero__title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 3px 3px 0 var(--burgundy), 0 0 30px rgba(226, 32, 60, 0.3);
    margin-bottom: 10px;
}

.hero__subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--red);
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    border: 2px solid var(--red);
    transition: all 0.3s;
    cursor: pointer;
}

.btn:hover {
    background: transparent;
    color: var(--red);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(226, 32, 60, 0.4);
}

/* ===== Sections ===== */
.section {
    padding: 80px 0;
}

.section__title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    color: var(--white);
}

.section__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--red);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section__subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

/* ===== À propos ===== */
.apropos {
    background: linear-gradient(180deg, var(--dark) 0%, var(--burgundy) 100%);
}

.apropos__text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.8;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
}

.apropos__text p + p {
    margin-top: 15px;
}

.apropos__features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(226, 32, 60, 0.2);
    transition: transform 0.3s, border-color 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
    border-color: var(--red);
}

.feature__icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.feature h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--gold);
}

.feature p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ===== Nos Gagnants ===== */
.gagnants {
    background: var(--dark);
}

.gagnants__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gagnant-card {
    background: linear-gradient(145deg, rgba(92, 26, 42, 0.5), rgba(26, 10, 16, 0.8));
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(226, 32, 60, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.gagnant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(226, 32, 60, 0.3);
}

.gagnant-card__img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, var(--burgundy), var(--dark));
}

.gagnant-card__placeholder {
    font-size: 5rem;
}

.gagnant-card__info {
    padding: 20px;
}

.gagnant-card__info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: 8px;
}

.gagnant-card__info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===== La Tournée ===== */
.tournee {
    background: linear-gradient(180deg, var(--dark) 0%, var(--burgundy) 50%, var(--dark) 100%);
}

.tournee__grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 700px;
    margin: 0 auto;
}

.tournee-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(226, 32, 60, 0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.tournee-card:hover {
    background: rgba(226, 32, 60, 0.15);
    border-color: var(--red);
    transform: translateX(5px);
}

.tournee-card__status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tournee-card__status.a-venir {
    background: var(--gold);
    box-shadow: 0 0 8px rgba(212, 168, 67, 0.5);
}

.tournee-card__status.en-cours {
    background: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
    animation: pulse-status 2s ease-in-out infinite;
}

.tournee-card__status.passe {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes pulse-status {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.tournee-card__content {
    flex: 1;
}

.tournee-card__content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--white);
    margin-bottom: 4px;
}

.tournee-card__lieu {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.tournee-card__dates {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 4px;
}

.tournee-card__arrow {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.2rem;
    transition: color 0.3s, transform 0.3s;
}

.tournee-card:hover .tournee-card__arrow {
    color: var(--red);
    transform: translateX(3px);
}

/* Carte OpenStreetMap */
.tournee__map {
    margin-top: 30px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(226, 32, 60, 0.3);
    background: rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease;
}

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

.tournee__map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(226, 32, 60, 0.15);
}

.tournee__map-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--white);
}

.tournee__map-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
    transition: color 0.3s;
}

.tournee__map-close:hover {
    color: var(--red);
}

.tournee__map iframe {
    display: block;
}

/* ===== Contact ===== */
.contact {
    background: linear-gradient(180deg, var(--dark) 0%, var(--burgundy) 100%);
}

.contact__socials {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 25px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(226, 32, 60, 0.3);
    transition: all 0.3s;
    min-width: 140px;
}

.social-link:hover {
    background: var(--red);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(226, 32, 60, 0.4);
}

.social-link svg {
    transition: transform 0.3s;
}

.social-link:hover svg {
    transform: scale(1.2);
}

.social-link span {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.contact__info {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* ===== Footer ===== */
.footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 30px 0;
    border-top: 2px solid var(--red);
}

.footer__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.footer__logo {
    border-radius: 50%;
}

.footer__content p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer__socials {
    display: flex;
    gap: 15px;
}

.footer__socials a {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s;
}

.footer__socials a:hover {
    color: var(--red);
}

/* ===== Nav Actions (bouton connexion) ===== */
.nav__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn--small {
    padding: 8px 20px;
    font-size: 0.8rem;
}

.btn--outline {
    background: transparent;
    color: var(--red);
}

.btn--outline:hover {
    background: var(--red);
    color: var(--white);
}

.btn--logged {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--dark);
}

.btn--logged:hover {
    background: transparent;
    color: var(--gold);
}

/* ===== Modales ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal__content {
    position: relative;
    background: var(--dark);
    border: 1px solid rgba(226, 32, 60, 0.3);
    border-radius: 15px;
    padding: 40px;
    width: 90%;
    max-width: 450px;
    animation: fadeIn 0.3s ease;
}

.modal__close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.modal__close:hover {
    color: var(--red);
}

.modal__content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 25px;
    color: var(--gold);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.7);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(226, 32, 60, 0.2);
    border-radius: 8px;
    color: var(--white);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--red);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-error {
    color: var(--red);
    font-size: 0.85rem;
    margin-bottom: 10px;
    min-height: 1.2em;
}

.modal__content .btn {
    width: 100%;
    margin-top: 5px;
}

.modal__switch {
    text-align: center;
    margin-top: 15px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.modal__switch a {
    color: var(--gold);
    font-weight: 600;
}

.modal__switch a:hover {
    text-decoration: underline;
}

.profile-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

#profile-info {
    text-align: center;
    margin-bottom: 10px;
}

#profile-info p {
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.8);
}

/* ===== Images gagnants ===== */
.gagnant-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav__links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(26, 10, 16, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        gap: 20px;
        transform: translateY(-120%);
        transition: transform 0.3s;
    }

    .nav__links.active {
        transform: translateY(0);
    }

    .nav__burger {
        display: flex;
    }

    .hero__logo {
        width: 200px;
        height: 200px;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .apropos__features {
        grid-template-columns: 1fr;
    }

    .gagnants__grid {
        grid-template-columns: 1fr;
    }

    .tournee__map iframe {
        height: 300px;
    }

    .contact__socials {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .footer__content {
        flex-direction: column;
        text-align: center;
    }

    .section__title {
        font-size: 1.8rem;
    }

    .modal__content {
        padding: 25px;
        width: 95%;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .hero__logo {
        width: 160px;
        height: 160px;
    }

    .btn {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}
