/* --- VARIABLES ET POLICES --- */
:root {
    --text-color: #02071a;
    --primary-color: #007bff;
    --btn-green: #29c11b;
    --btn-red: #f51b1b;
}

@font-face {
    font-family: 'Betm Rounded';
    src: url('Betm-Rounded-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Sunday Best';
    src: url('Sunday-Best.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* --- STYLES GLOBAUX --- */
body {
    font-family: 'Betm Rounded', sans-serif;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2 {
    font-family: 'Sunday Best', sans-serif;
    text-align: center;
}

h1 {
    color: var(--primary-color);
    font-size: 2.25rem; /* Remplace les px fixes pour la responsivité */
    margin: 2rem 0;
}

h2 {
    margin: 3rem 0 1.5rem 0;
}

p {
    font-size: 1.25rem; /* ~20px */
    text-align: justify;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

/* --- MISE EN PAGE --- */
.page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* --- IMAGES ET MEDIAS --- */
.image-container img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.photo-gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 2rem 0;
}

.photo-gallery img {
    border-radius: 20px;
    width: 45%;
    height: auto;
    object-fit: cover;
}

/* Container vidéo responsive grâce à l'aspect-ratio */
.video-container {
    display: flex;
    justify-content: center;
    margin: 2.5rem 0;
}

iframe {
    width: 100%;
    max-width: 560px;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    border: none;
}

/* --- BOUTONS --- */
.download-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 2rem 0;
    flex-wrap: wrap; /* Permet aux boutons de passer à la ligne sur petit écran */
}

.btn {
    border-radius: 10px;
    padding: 15px 25px;
    color: white;
    font-size: 1.2rem;
    text-align: center;
    display: inline-block;
}

.btn:hover {
    opacity: 0.8;
    text-decoration: none;
}

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

/* --- RESPONSIVE DESIGN --- */
@media only screen and (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }

    p {
        font-size: 1.1rem;
    }

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

    .photo-gallery img {
        width: 90%;
    }

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

    .btn {
        width: 80%;
    }
}