/* =====================================================
 * FEUILLE DE STYLE COMPLÈTE ET NETTOYÉE
 * ===================================================== */

/* -------------------------------------
 * Styles Généraux (Reset & Body)
 * ------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #00795c;
    min-height: 100vh;
    padding-top: 0; 
}

.site-content {
    padding-top: 0px; 
}

h1 {
    color: #00795c;
}


/* -------------------------------------
 * Mise en page & Bandeau d'info
 * ------------------------------------- */

/* Bandeau d'information (placé au-dessus du header principal) */
.info-banner {
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    text-align: center;
    padding: 10px;
    font-weight: 500;
    width: 100%; 
}
.page-main {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 15px;
}

.main-container {
    max-width: 800px;
    width: 100%;
    background-color: #f9f9f9;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin: 40px 0;
}

.main-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* -------------------------------------
 * Conteneur de page (remplace le style="")
 * Son rôle est d'avoir un fond de couleur et de centrer son contenu.
 * ------------------------------------- */
.page-container {
    background-color: #00795c;
    border: 0px; /* Pas vraiment nécessaire, mais on le garde */

    /* On utilise Flexbox pour centrer la boîte de succès */
    display: flex;
    justify-content: center; /* Centre horizontalement */
    align-items: center;    /* Centre verticalement */
    
    /* On s'assure qu'il prend toute la hauteur pour que le centrage vertical marche */
    min-height: 100vh; 
    padding: 1rem;
    box-sizing: border-box;
}


/* -------------------------------------
 * Boîte de succès (ton code existant)
 * ------------------------------------- */
 
 .main-container-paiement {
    max-width: 800px;
    width: 100%;
    background-color: #00795c;
    padding: 2rem;
    text-align: left;
    margin: 40px 0;
}

 
.success-box {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    max-width: 550px; /* Limite la largeur sur les grands écrans */
    width: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.success-box h1 {
    color: #155724;
    margin-top: 0;
}

.success-box a {
    color: #155724;
    font-weight: bold;
    margin-top: 20px;
    display: inline-block;
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid #155724;
    border-radius: 5px;
    transition: background-color 0.2s, color 0.2s;
}

.success-box a:hover {
    background-color: #155724;
    color: white;
}
/* -------------------------------------
 * Header Sticky & Animé (Nouvelle Version)
 * ------------------------------------- */

.page-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 15px 30px;
    background-color: #00795c;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: padding 0.3s ease, background-color 0.3s ease;
    width: 100%; 
}

.header-logo-link {
    flex-shrink: 0;
}

.header-logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid white;
    transition: width 0.3s ease, height 0.3s ease, border-width 0.3s ease;
}

.top-menu {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.menu-item-group {
    padding: 0 40px;
    white-space: nowrap; /* <-- Ajoute cette ligne */
}

.menu-item {
    font-weight: 600;
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    margin-left: 10px;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.menu-item-highlight {
    background-color: white;
    color: #00795c;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.menu-item-highlight:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

/* État du header au scroll */
.page-header.header-scrolled {
    padding: 8px 30px;
    background-color: #006d52;
}

.page-header.header-scrolled .header-logo {
    width: 50px;
    height: 50px;
    border-width: 3px;
}


/* -------------------------------------
 * Sélecteur de langue & Contenu dynamique
 * ------------------------------------- */

.language-switcher {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.language-switcher button {
    background: none;
    border: 2px solid transparent;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.2s ease-in-out;
}

.language-switcher button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.language-switcher button.active {
    border-bottom: 2px solid #00795c;
    color: #00795c;
}

/* Logique d'affichage par langue */
.lang-menu,
.lang-text {
    display: none;
}

.lang-menu.active,
.lang-text.active {
    display: inline-block; /* Utiliser 'block' pour les conteneurs de texte */
}
.content > .lang-text.active {
    display: block;
}

/* -------------------------------------
 * Styles de la liste à puces (UL)
 * ------------------------------------- */
.main-container ul {
    list-style: none;
    padding-left: 20px;
    position: relative;
    display: inline-block;
    text-align: left;
    margin-top: 1.5rem;
}

.main-container ul::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: #e0e0e0;
}

.main-container ul li {
    position: relative;
    margin-bottom: 15px;
    padding-left: 25px;
    font-size: 1.1rem;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.main-container ul li::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 8px;
    height: 10px;
    width: 10px;
    border-radius: 50%;
    background: #00795c;
    border: 2px solid #fff;
    transition: all 0.3s ease;
}

.main-container ul li:hover {
    color: #00795c;
}

.main-container ul li:hover::before {
    transform: scale(1.3);
    background: #0abda0;
}
.centered-box {
    /* On sort la div du flux normal */
    position: absolute;

    /* On la place à 50% du haut et 50% de la gauche de l'écran */
    top: 50%;
    left: 50%;

    /* L'astuce magique : on la décale de la moitié de sa propre taille
       vers le haut et la gauche pour la centrer parfaitement */
    transform: translate(-50%, -50%);

    /* On peut garder les styles que tu avais déjà */
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    width: 90%; /* On lui donne une largeur pour les petits écrans */
    max-width: 500px; /* Et une largeur maximale */
}

/* =====================================================
 * STYLES RESPONSIVES (Media Queries)
 * ===================================================== */

@media (min-width: 768px) {

}

@media (max-width: 480px) {
    body {
        /* On ajuste le padding pour la hauteur du header sur mobile */
        padding-top: 0px;
    }
    .site-content {
        padding-top: 0px;
    }
    .page-header {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-header.header-scrolled {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .menu-item-group {
        padding: 0 10px;
    }

    .menu-item {
        font-size: 0.8rem;
        padding: 6px 8px;
        margin-left: 4px;
    }

    .main-container {
        padding: 1.5rem;
        margin: 20px 0;
    }
}