/* GENERAL */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #1a1a1a; /* fond noir pour contraste pyrotech */
    color: #fff;
}

/* LOGO */
.logo {
    width: 80px;
    height: auto;
    vertical-align: middle;
    margin-right: 15px;
}

/* HEADER */
header {
    background: #ff2a00; /* rouge vif */
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav a {
    color: white;
    margin-left: 15px;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    color: #ffb400; /* orange néon */
}

/* HERO */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #ff2a00, #ffb400);
    color: white;
}

.hero h2 {
    font-size: 2.5em;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 25px;
}

.hero .btn {
    background: #1a1a1a;
    color: #ffb400;
    padding: 15px 30px;
    font-weight: bold;
    border-radius: 25px;
    text-decoration: none;
    transition: 0.3s;
}

.hero .btn:hover {
    background: #ff2a00;
    color: #fff;
}

/* SECTIONS */
.section {
    padding: 50px 20px;
    text-align: center;
    background: #1a1a1a;
}

.cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    background: #2a2a2a; /* gris foncé pour contraster */
    padding: 25px;
    border-radius: 15px;
    width: 220px;
    box-shadow: 0 0 15px rgba(255, 42, 0, 0.5); /* glow rouge */
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(229, 255, 0, 0.7); /* glow orange au hover */
}

/* AVATAR EQUIPE */
.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

/* TEXTES CARDS */
.card h3 {
    margin: 10px 0 5px;
}

.card span, .card p {
    font-size: 14px;
    color: #ccc;
}

/* FOOTER */
footer {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 20px;
}

/* FOOTER DROITS */


/* BOUTONS GENERIQUES */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 25px;
    background: #ff2a00;
    color: white;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
}

.btn:hover {
    background: #ffb400;
    color: #1a1a1a;
}

/* Footer noir et centré */
.footer {
    background-color: transparent; /* rien derrière, laisse ton fond noir visible */
    text-align: center;            /* centre le logo horizontalement */
    padding: 20px 0;               /* espace autour du logo */
    overflow: hidden;              /* évite les débordements */
}

/* Logo responsive */
.footer .logo-footer {
    max-width: 450px;   /* taille du logo */
    width: 100%;        /* responsive sur petits écrans */
    height: auto;
    display: inline-block;
}

/* ===== CONTENEUR DES DEUX CARTES ===== */
.cards-container {
    display: flex;
    justify-content: center;   /* centre horizontalement */
    align-items: stretch;
    gap: 40px;                 /* espace entre les deux blocs */
    margin-top: 40px;
    flex-wrap: nowrap;         /* reste côte à côte */
}

/* ===== STYLE DES CARTES ===== */
.card {
    background-color: #111;    /* fond sombre */
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    width: 250px;              /* largeur fixe pour éviter le bug */
    box-shadow: 0 5px 20px #ff2a00(255, 145, 0, 0.4);
}

/* Carte extérieure un peu différente */


/* ===== BOUTONS ===== */
.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background-color: #ff4d4d;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s ease;
}

.btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Bouton extérieur couleur différente */
.btn-ext {
    background-color: #444;
}

/* ===== RESPONSIVE (important) ===== */
@media (max-width: 768px) {
    .cards-container {
        flex-direction: column;
        align-items: center;
    }
}

body.droits {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* page prend au moins la hauteur de l'écran */
}

/* Contenu principal prend tout l'espace restant */
body.droits > .hero {
    flex: 0;                 /* ne pas étirer l'orange */
    padding: 80px 20px;      /* espace interne pour que le texte respire */
    background: linear-gradient(135deg, #ff2a00, #ffb400);
    color: white;
    text-align: center;
}
body.droits > .section {
    flex: 1;
}


/* Footer texte */
body.droits .footer:last-of-type {
    text-align: center;
    padding: 20px 0;
}

.footer-logo {
  margin-top: 0;
  padding-top: 0;
  background-color: #1a1a1a; /* fond noir uniforme */
  text-align: center;
}

/* Supprime les marges/paddings par défaut de l’image pour qu’elle colle bien */
footer.footer-logo {
    display: flex;
    flex-direction: column;
    flex: 1;                 /* prend l'espace restant du body */
    justify-content: center;  /* centre verticalement */
    align-items: center;      /* centre horizontalement */
    background-color: #1a1a1a;
}

.footer-logo img {
    max-width: 90%;          /* jamais plus large que le footer */
    max-height: 80vh;        /* jamais plus haut que 80% de la fenêtre */
    width: auto;             /* largeur automatique */
    height: auto;            /* hauteur automatique */
    object-fit: contain;     /* garde les proportions */
    display: block;
    margin: 0 auto;
}

/* Menu horizontal par défaut (desktop) */
#nav-links ul {
    list-style: none;
    display: flex;           /* <-- horizontal */
    gap: 20px;               /* espace entre les liens */
    margin: 0;
    padding: 0;
}

#nav-links ul li {
    margin: 0;               /* reset margin pour desktop */
}

#nav-links ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
}


@media (max-width: 1024px) {
    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        gap: 5px;
    }

    .hamburger span {
        height: 3px;
        width: 25px;
        background-color: white;
        border-radius: 2px;
    }

    /* Menu caché sur mobile par défaut */
    #nav-links ul {
        display: none;
        flex-direction: column;
        background-color: #ff2a00;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        padding: 10px;
        border-radius: 0 0 5px 5px;
        z-index: 200;
    }

    #nav-links ul.active {
        display: flex; /* visible quand hamburger cliqué */
    }

    #nav-links ul li {
        margin: 10px 0;
    }
}