/* =========================================
   VARIABLES DE COULEURS ET PARAMÈTRES GLOBAUX
   ========================================= */
:root {
    --primary-red: #dc143c;
    --primary-blue: #003893;
    --light-bg: #f9f9f9;
    --text-dark: #333333;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--light-bg);
}

a {
    text-decoration: none;
    color: var(--text-dark);
}

/* =========================================
   EN-TÊTE ET NAVIGATION (HEADER)
   ========================================= */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1200px;
    margin: auto;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    border-radius: 50%;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
}

.logo-text span {
    color: var(--primary-red);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links li a {
    font-weight: 500;
    transition: color 0.3s;
    display: block;
    padding: 10px 0;
}

.nav-links li a:hover {
    color: var(--primary-red);
}

/* === Dropdown Menu === */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    min-width: 200px;
    z-index: 1000;
    list-style: none;
    padding: 10px 0;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    padding: 10px 20px;
    color: var(--text-dark);
    font-weight: normal;
}

.dropdown-menu li a:hover {
    background-color: var(--light-bg);
    color: var(--primary-blue);
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
    display: block;
}

.btn-don,
.nav-links li a.btn-don {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background 0.3s;
    display: inline-block;
}

.btn-don:hover,
.nav-links li a.btn-don:hover {
    background-color: #b01030;
    color: var(--white);
}

/* =========================================
   PAGE D'ACCUEIL : SECTION PRINCIPALE (HERO)
   ========================================= */
.hero {
    background: linear-gradient(rgba(0, 56, 147, 0.7), rgba(0, 56, 147, 0.7)), url('https://images.unsplash.com/photo-1544735701-1e24744795b8?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 60px 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
}

/* =========================================
   PAGE D'ACCUEIL : GALERIE PHOTO (SLIDER)
   ========================================= */
.slider-container {
    width: 100%;
    max-width: 900px;
    height: 450px;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slider-img.active {
    opacity: 1;
}

/* =========================================
   PAGE D'ACCUEIL : SECTION NOS ACTIONS
   ========================================= */
.actions {
    padding: 60px 5%;
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.actions h2 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 40px;
}

.cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    width: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.card-link {
    display: block;
    text-decoration: none;
    color: var(--text-dark);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card h3 {
    color: var(--primary-red);
    margin-bottom: 15px;
}

/* =========================================
   PAGE NOTRE HISTOIRE : CONTENU TEXTE
   ========================================= */
.content-section {
    padding: 60px 5%;
    max-width: 900px;
    margin: auto;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-top: 40px;
    margin-bottom: 40px;
}

.content-section h1 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.content-section p,
.content-section ul {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.content-section ul {
    list-style-type: disc;
    margin-left: 40px;
}

/* =========================================
   PAGE CONTACT ET FORMULAIRE
   ========================================= */
.contact-info {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--light-bg);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: bold;
    color: var(--primary-blue);
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
}

.btn-submit {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    align-self: center;
    /* Centrer le bouton */
}

.btn-submit:hover {
    background-color: #b01030;
    transform: scale(1.02);
}

/* =========================================
   PIED DE PAGE ET RÉSEAUX SOCIAUX (FOOTER)
   ========================================= */
footer {
    background-color: var(--primary-blue);
    color: var(--white);
    text-align: center;
    padding: 30px 20px;
    margin-top: auto;
}

footer p {
    margin-bottom: 10px;
}

.social-links {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 5px;
    color: var(--white);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: opacity 0.3s, transform 0.2s;
}

.social-btn:hover {
    opacity: 0.8;
    transform: scale(1.05);
    color: var(--white);
}

.youtube {
    background-color: #FF0000;
}

.facebook {
    background-color: #1877F2;
}

/* =========================================
   PAGE CONTACT : FORMULAIRE ET INFOS
   ========================================= */
.contact-info {
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary-blue);
    text-align: left;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.contact-form {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--primary-blue);
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

/* Effet quand on clique dans une case */
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 5px rgba(220, 20, 60, 0.2);
}

.btn-submit {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 15px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
    /* Le bouton prend toute la largeur */
}

.btn-submit:hover {
    background-color: #b01030;
}

/* =========================================
   ADAPTATION POUR LES MOBILES (RESPONSIVE)
   ========================================= */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }

    .logo-container {
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .slider-container {
        height: 250px;
        margin-top: 30px;
    }

    .content-section {
        padding: 40px 20px;
    }

    .content-section h1 {
        font-size: 2rem;
    }
}