/* 1. POSITIONNEMENT DU MAIN */
main {
    position: relative;
    min-height: 100vh;
    width: 100%;
    /* On commence l'image juste sous le header */
    margin-top: 0; 
    
    /* L'IMAGE : Netteté maximale */
    background-image: url('../img/arriere-plan.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed; /* L'image reste fixe pendant le scroll */
}

/* 2. LE VOILE (FILIGRANE LUMINEUX) */
/* Ce voile permet de voir l'image sans qu'elle n'empêche de lire le texte */
main::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Réglage de la clarté : 0.8 pour très clair, 0.4 pour très coloré */
    background-color: rgba(255, 255, 255, 0.75); 
    z-index: 0;
}

/* 3. PROTECTION DU CONTENU */
/* On force le contenu des pages à passer au-dessus du voile */
.page-section, .container, section {
    position: relative;
    z-index: 1;
}

/* 4. LE HEADER */
/* On s'assure qu'il reste bien au-dessus et opaque */
.header-main {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, #1e3a8a 0%, #1e40af 100%);
}



/* Personnalisation Congo Service */

/* En-tête avec dégradé et ombre */
.header-main {
    background: linear-gradient(90deg, #1e3a8a 0%, #1e40af 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Sidebar et transitions */
.sidebar {
    transition: transform 0.3s ease-in-out;
}

.hidden-sidebar {
    transform: translateX(-100%);
}

/* Liens du menu */
.menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    color: #374151;
    font-weight: 500;
    transition: all 0.2s;
}

.menu-link:hover {
    background-color: #f3f4f6;
    color: #1e3a8a;
}

/* Bouton vert assistance (Dégradé vert) */
.btn-primary-gradient {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
    color: white;
    transition: opacity 0.2s;
}

.btn-primary-gradient:active {
    opacity: 0.9;
}

/* Champs de formulaire */
.input-form {
    width: 100%;
    padding: 12px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s;
}

.input-form:focus {
    border-color: #1e3a8a;
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.1);
}

/* Libellés (Labels) */
.label-form {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

/* Bouton WhatsApp */
.btn-whatsapp {
    width: 100%;
    background-color: #25d366;
    color: white;
    font-weight: bold;
    padding: 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-whatsapp:hover {
    background-color: #20ba5a;
}

.btn-whatsapp:active {
    transform: scale(0.98);
}

/* Styles pour les sections cachées */
.page-section {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}

/* Harmonisation des hauteurs pour les select et input */
select.input-form {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}


/* Style pour l'arrière-plan en filigrane */
/* #accueil {
    position: relative;
    overflow: hidden;
    min-height: 80vh;  *//* S'assure que la section est assez grande */
    /* display: flex;
    flex-direction: column;
    justify-content: center;
} */

/* #accueil::before {
    content: "";
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
 */    /* Assurez-vous que l'image est bien dans le dossier img */
    /* background-image: url('img/arriere-plan.jpg'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;*/
    /* RÉGLAGES DEMANDÉS : Image plus lumineuse et moins floue */
    /* filter: blur(2px) brightness(1.2); 
    opacity: 0.7;                     
    
    z-index: -1;
} */

/* Petit ajout pour que le texte "Congo Tonnerre" ressorte parfaitement sur l'image éclaircie */
/* #accueil h1, #accueil p {
    position: relative;
    z-index: 1; */
    /* Un léger ombrage pour garantir la lisibilité si l'image est très claire */
/*     text-shadow: 0 2px 4px rgba(0,0,0,0.1);
} */