:root {
    --vert1: rgb(25, 178, 20);
    --vert2: rgb(15, 94, 12);
    --bg-opacity: 0.7;

    /* Mode sombre par défaut */
    --white: rgb(251, 251, 251);
    --black1: rgb(2, 2, 2);
    --black2: rgb(29, 28, 28);
}

/* Mode clair */
.light-theme {
    --white: rgb(10, 10, 10);
    --black1: rgb(251, 251, 251);
    --black2: rgb(240, 240, 240);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    color: var(--white);
    font-family: Verdana, Geneva, Tahoma, sans-serif ;
}
html body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--black1);
    font-size: 1.5vh;
    touch-action: pan-x pan-y; /* autorise le scroll mais bloque les zooms */
}

/* Style pour le header */
header {
    position: fixed; /* Nécessaire pour positionner le bouton hamburger */
    z-index: 3;
    width: 100vw;
    background-color: var(--black1);
    padding: 10px 20px;
    overflow: hidden;  /* Permet d'afficher le menu même si déborde du header */
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 2px solid var(--vert2);       /* Bordure verte */
    border-bottom: 2px solid var(--vert2);       /* Bordure verte */
    
}

/* Bouton thème */
#theme-toggle {
    cursor: pointer;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--white);
    margin-left: 10px;
    transition: transform 0.3s;
}
#theme-toggle:hover { transform: rotate(40deg); }


/* Style pour le menu de navigation sur grand écran */
nav ul {
    list-style: none;        /* Supprime les puces */
    display: flex;           /* Affiche les éléments en ligne */
    justify-content: right; /* Centre le menu horizontalement */
    min-height: 50px;
    flex-wrap: wrap;
    align-items: center;
    transition: color 0.5s;
}

nav ul li {
    display: flex;            /* Active flex sur le LI */
    justify-content: center;  /* Centre horizontalement */
    align-items: center;      /* Centre verticalement */
    margin: 0 10px;          /* Espace entre les items */
    
    transition: color 0.5s;
}

nav a {
    color: var(--white);            
    text-decoration: none;   /* Supprime le soulignement */
    font-size: 15px;
    font-weight: bold;
    transition: color 0.5s;
}

nav ul li:hover,
nav ul li.hovered {
    background-color: var(--white);
}

nav ul li:hover a,
nav ul li.hovered a {
    color: var(--vert1);
}

/* Bouton hamburger caché par défaut */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 30000;
}

#logo {
    position: fixed;
    z-index: 4;
    top: -35px;
    left: 5px;
    width: 150px;
    height: auto;
}

.boutton_header{
    align-items: center;
    border-radius: 10px;
    text-align: center;
    width: 130px;
    height: 30px;
}

.boutton_header:hover{
    cursor: pointer;  
}

.error-message {
    background-color: #ffdddd;
    padding: 5px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: center;
    font-size: 15px;
}

.error-message li{
    color: #d8000c;
}

.success-message {
    background-color: #e8f6ec;
    padding: 8px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: center;
    font-size: 15px;
    color: #1b5e20;
    border: 1px solid #2e7d32;
}

.info-message {
    background-color: #eef5ff;
    padding: 8px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: center;
    font-size: 15px;
    color: #1b3a57;
    border: 1px solid #2f5e8f;
}

.btn-paiement {
    background-color: var(--vert1);
    color: #ffffff;
    border-radius: 6px;
    padding: 10px 18px;
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
    animation: paiementPulse 1.8s infinite;
    box-shadow: 0 0 0 rgba(25, 178, 20, 0.6);
}

@keyframes paiementPulse {
    0% { box-shadow: 0 0 0 0 rgba(25, 178, 20, 0.6); }
    70% { box-shadow: 0 0 0 12px rgba(25, 178, 20, 0); }
    100% { box-shadow: 0 0 0 0 rgba(25, 178, 20, 0); }
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 15px 0 25px;
}

.payment-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--black2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--white);
}

.payment-logo {
    width: 90px;
    height: auto;
}

.payment-details {
    font-size: 14px;
    line-height: 1.4;
    color: var(--white);
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.loading-card {
    background: var(--black2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 22px;
    border-radius: 10px;
    text-align: center;
}

.loading-card img {
    width: 80px;
    height: auto;
    display: block;
    margin: 0 auto 8px;
}

.input_box{
    width: 100%;
    position: relative;
    margin-bottom: 25px;
    font-family: 'Poppins', sans-serif;
}

.dial-hint {
    font-size: 13px;
    margin-top: 8px;
    color: var(--white);
    opacity: 0.8;
}

.dial-hint span {
    color: var(--vert1);
    font-weight: 600;
}

.country-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 16px;
    margin-left: 6px;
    font-size: 14px;
    border-radius: 4px;
    background-color: #ffffff;
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    vertical-align: middle;
}

.input_box input{
    width: 100%;
    padding: 15px;
    border-radius: 25px;
    outline : none;
    background: transparent;
    border: 2px solid rgba(0, 0, 0, 0.2);
    color: var(--black1);
    outline: none;
    padding-right: 40px;
    transition: all 0.3s ease;
}

/* Effet au focus */
.input_box input:focus {
    border-color: #007bff;
    background: #fff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
}

/* Effet au focus */
.input_box select:focus {
    border-color: #007bff;
    background: #fff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
}

/* Placeholder plus doux */
.input_box input::placeholder {
    color: #aaa;
    font-style: italic;
}

/* Style du texte des options */
.input_box select option {
    color: #333;
    font-size: 15px;
    background: #fff;
}

/* Placeholder simulé (option vide) */
.input_box select option[value=""] {
    color: #aaa;
    font-style: italic;
}

.input_box textarea {
    display: block;
    width: 100%;
    height: 120px;
    padding: 12px 15px;
    border: 1.8px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f9;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    color: #333;
    resize: vertical; /* permet de redimensionner seulement verticalement */
    margin-top: 10px;
    transition: all 0.3s ease;
}

/* Effet au focus */
.input_box textarea:focus {
    border-color: #007bff; /* bleu moderne */
    background-color: #fff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
    outline: none;
}

/* Style pour placeholder */
.input_box textarea::placeholder {
    color: #aaa;
    font-style: italic;
}

/* Pour la partie register */
#formulaire_register{
                position: absolute;
                z-index: 1;
                background: rgba(25, 178, 20, 0.7); /* fond blanc semi-transparent */
                padding: 20px;
                margin-top: 50px;
                border-radius: 10px;
                box-shadow: 0 0 15px rgba(0,0,0,0.3);
                text-align: left;
                width: 100%;
                height: auto;
            }

#formulaire_register h2{
    color: var(--black1);
    text-align: center;
    margin: 20px 0;
    font-size: 1.5rem;
}

#affiche_formation {
    display: block;
    margin: 50px auto;
    width:40%;
    height:auto;
}

#texte_debut{
    width: 100%;
    padding: 20px;
    background: white;
    border: 5px solid var(--white);
    border-radius: 20px;
    text-align: justify;
    text-justify: inter-word;
    font-size: 1rem;
    line-height: 1.7;
    hyphens: auto;
    text-wrap: pretty;
    overflow-wrap: break-word;
}

#texte_debut p {
    text-align: justify;
    margin-bottom: 12px;
}

#texte_debut a {
    color: var(--black1);
    font-weight: bold;
    text-decoration: none;
}

.image_calendar{
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0 auto;
    margin-bottom: 20px;
}

.image_calendar #calendar{
    width: 80%;
    height: auto;
}

.image_calendar #certificat{
    width: 10%;
    margin-top: 10%;
    border-radius: 2px;
    animation: zoomGlow 2s ease-in-out infinite alternate,
               glowPulse 1.5s ease-in-out infinite alternate;
}

/*lueur et zoom animation*/
@keyframes zoomGlow {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgb(25, 178, 20, 0.5));
    }
    100% {
        transform: scale(1.15); /* Zoom */
        filter: drop-shadow(0 0 20px rgb(25, 178, 20, 1)); /* Lueur plus forte */
    }
}

@keyframes glowPulse {
    0% {
        filter: drop-shadow(0 0 10px rgb(25, 178, 20, 0.6));
    }
    100% {
        filter: drop-shadow(0 0 30px rgb(25, 178, 20, 1));
    }
}

#formulaire_register p{
    margin-bottom: 10px;
    text-align: justify;
    font-size: 18px;
    color: black;
    font-family:'Times New Roman', Times, serif;
}

#formulaire_register strong{
    color: var(--vert2);
}

#formulaire_register textarea{
    font-family: 'Times New Roman', Times, serif;
}

#contenu_form{
    width: 100%;
    margin: 0 auto;
    background: rgb(var(--bg-color) / var(--bg-opacity));
    padding: 10px;
    border: 5px solid var(--white);
    border-radius: 20px;
    font-size: 1rem;
}

.input_box{
    width: 100%;
    margin-bottom: 5px;
}

input[type="date"] {
    position: relative;
    cursor: pointer; /* le curseur devient une main sur tout le champ */
}

/* Supprimer les styles par défaut dans certains navigateurs */
/* input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer; /* le curseur change sur l’icône calendrier */
/*} */

.input_box input{
    width: 100%;
    padding: 15px;
    border-radius: 25px;
    outline : none;
    background: transparent;
    border: 2px solid rgba(0, 0, 0, 0.2);
    color: black;
    padding-right: 40px;
}


.input_box input::placeholder{
    color: black;
}

.input_box select {
    width: 100%;
    padding: 15px;
    border-radius: 25px;
    outline : none;
    background: transparent;
    cursor: pointer;
    border: 2px solid rgba(0, 0, 0, 0.2);
    color: black;
    padding-right: 40px;
    appearance: none; /* supprime le style par défaut */
    -webkit-appearance: none;
    -moz-appearance: none;
}

.input_box select option{
    color: black;
}


.login_part{
    transition: 0.5s;
    font-size: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.login_part a :hover {
    text-decoration: none;
}

.register_bouton{
    width: 100%;
    padding: 15px;
    border-radius: 25px;
    outline: none;
    font-weight: bold;
    color: black;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.5s;
}

.register_bouton:hover{
    background-color: transparent;
    border: 2px solid rgba(0, 0, 0, 0.2);
    color: rgb(251, 251, 251);
}

.msg_montant{
    margin-bottom: 15px;
}

.msg_montant p{
    color: var(--black1);
    font-weight: bold;
}

#montant_affiche{

}

/* Media Query pour les petits écrans ----------------------------- */
@media screen and (max-width: 980px) {

    #logo{
        position: fixed;
        z-index: 4;
        top: -20px;
        left: 85vw;
        width: 100px;
        height: auto;
    }

    /* Affichage du bouton hamburger */
    .hamburger {
        display: block;
        position: relative;
        top: 15px;                 /* Place le coin supérieur du bouton à 50% du header */
        right: 0;              /* 20px du bord droit */
        transform: translateY(-50%); /* Centre verticalement */
        font-size: 28px;
        color:rgb(15, 94, 12);
        background: none;
        border: none;
    }

    /* Cache le menu initialement */
    nav ul {
        flex-direction: column;   /* Items en colonne */
        justify-content: center;
        align-items: center;
        height: 0;
        margin: 0 auto;          /* centre le bloc horizontalement */
        padding: 0;
        display: none;            /* Menu caché par défaut */
        background-color: transparent;   /* Fond noir pour le menu */
        transition: height 0.3s ease;
    }

    /* Lorsque la classe active est présente, on affiche le menu */
    nav ul.active {
        display: flex;
        height: 150px; /* Assez grand pour contenir tous les éléments */
    }

    nav li {
        display: flex;            /* Active flex sur le LI */
        justify-content: center;  /* Centre horizontalement */
        align-items: center;      /* Centre verticalement */
    }

    @media screen and (max-width: 662px) {
        #logo{
            left: 75vw;
        }
    }
}

.succes{
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    margin-top: 150px;
    font-size: 20px;
}

.succes img{
    width: 10%;
    height: auto;
    margin: 0 auto;
    animation: zoomGlow 2s ease-in-out infinite alternate,
                glowPulse 1.5s ease-in-out infinite alternate;
}

.formation-accordion {
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid var(--white);
    border-radius: 10px;
    overflow: hidden;
}

.formation-title {
    background: var(--black1);
    padding: 15px;
    cursor: pointer;
    border-bottom: 1px solid var(--white);
    font-weight: 600;
}

.formation-title:hover {
    background: var(--vert1);
}

.formation-title.highlight {
    background: var();
    color: var(--white);
}

.formation-content {
    display: none;
    padding: 15px;
    color: black;
    background: white;
    border-bottom: 1px solid var(--black1);
}




