/*-----------------------------------------*/
/*         CSS SITE CUMA 2018              */
/*-----------------------------------------*/
/*       REALISE PAR ANDY CREATIONS        */
/*-----------------------------------------*/

/* <-------------------> 
   <--- GENERALITE  ---> 
   <-------------------> */


body
{
/*background-image:url(../img/background.jpg);*/
/*background-repeat:no-repeat; background-position:top center; background-color:black;*/
margin:0; 
display:flex;
background-color:#204c5f;
}

html{
   display:flex;
   align-items: flex-start;
   justify-content: center;
   width:100%; height:100%;
}

.bodygris {
/*background-image:linear-gradient(#666666, white);*/
background-repeat:repeat-x; background-position:top center; background-color:white; width:100%; display:flex; flex-direction: column; height:100%;
}

a {
border:none;
text-decoration:none;
}

img {
border:none;
border:0px;
}

textarea {
resize:none;
}

/* <-------------------> 
   <----- POLICES -----> 
   <-------------------> */

@font-face{
    font-family : "dora";
    src : url('../police/akaDora.ttf');
}

@font-face{
    font-family : "adel";
    src : url('../police/Adelon-Serial-Regular.ttf');
}

@font-face{
    font-family : "adelh";
    src : url('../police/Adelon-Serial-Heavy-Regular.ttf');
}

@font-face{
    font-family : "adelbold";
    src : url('../police/Adelon-Serial-Bold.ttf');
}

@font-face{
    font-family : "dev";
    src : url('../police/AdobeDevanagari-Bold.otf');
}


/*<-------------------> 
  <------ MENU CONFIGURATION -----> 
  <-------------------> */

/* Assurez-vous d'avoir les variables de couleur définies dans un fichier CSS principal ou ici */
:root {
    --color-primary-soft: #5b94c5; /* Bleu Ciel Doux */
    --color-primary-dark: #3b74a5; /* Bleu Ciel plus foncé */
    --color-neutral-bg: #e9ecef;   /* Gris très clair/neutre */
    --color-text-dark: #343a40;    /* Bleu marine pour le texte */
}

.conteneur-config {
    display: flex;
    flex-direction: row; /* Alignement horizontal des modules */
    gap: 20px; /* Espace entre les groupes de modules */
    margin-top: 20px;
    padding: 10px;
    border-radius: 8px;
    /* Un fond légèrement contrasté pour le conteneur du menu */
    background-color: #f7f7f7; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); 
}

.module-config {
    display: flex;
    flex-direction: column; /* Alignement vertical des tuiles dans le module */
    gap: 8px; /* Espace entre les tuiles */
    padding: 10px;
    /* Ajout d'une ligne de séparation discrète entre les groupes (modules) */
   
}

#boutonSauvegarde {
    /* 1. Couleurs et visibilité (Succès) */
    background-color: #28a745; /* Un vert classique et rassurant (Success) */
    color: white;              /* Texte blanc pour un contraste maximal */
    
    /* 2. Forme et Dimensions */
    padding: 12px 30px;
    border: none;
    border-radius: 6px;        /* Coins modernes et légèrement arrondis */
    cursor: pointer;           /* Indique clairement qu'il est cliquable */
    
    /* 3. Typographie */
    font-size: 17px;
    font-weight: 600;          /* Semi-gras pour la lisibilité */
    text-transform: uppercase; /* Donne un côté 'action' formel */
    
    /* 4. Effets visuels */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Ombre légère pour le relief */
    transition: all 0.3s ease; /* Transition pour des animations douces */
}

/* Effet au Survol (HOVER) : Montre que le bouton est prêt à être cliqué */
#boutonSauvegarde:hover {
    background-color: #218838; /* Vert un peu plus foncé */
    transform: translateY(-2px); /* Léger soulèvement du bouton */
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.15); /* Ombre plus marquée */
}

/* Effet au Clic (ACTIVE) : Le bouton s'enfonce */
#boutonSauvegarde:active {
    background-color: #1e7e34; /* Vert encore plus foncé */
    transform: translateY(0);  /* Retour à la position normale (effet d'enfoncement) */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Ombre minimale */
}


/* ------------------ STYLE DE LA TUILE (config-tuile) ------------------ */

.config-tuile {
    /* Style de base pour chaque tuile */
    display: flex;
    align-items: center;
    padding: 8px 12px;
    width: 180px; /* Largeur fixe pour l'uniformité */
    height: 40px;
    
    background-color: #fff; /* Fond blanc */
    border: 1px solid #ced4da; /* Bordure discrète */
    border-radius: 4px;
    color: var(--color-text-dark);
    text-decoration: none; /* Pour les balises <a> */
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.config-tuile:hover {
    background-color: var(--color-neutral-bg); /* Gris neutre au survol */
    color: var(--color-primary-soft); /* Accentuation en bleu au survol */
    border-color: var(--color-primary-soft);
}

.config-tuile i {
    /* Style de l'icône */
    margin-right: 10px;
    font-size: 1.1em;
    width: 20px;
    /* AJOUT : Couleur d'accentuation Bleu Ciel Doux */
    color: var(--color-primary-soft); 
    transition: color 0.2s ease-in-out; /* Ajout d'une transition pour la couleur */
}

.span-config {
    font-weight: 500;
}

/* ------------------ STYLE ACTIF (config-tuile-actif) ------------------ */

.config-tuile-actif {
    background-color: var(--color-primary-soft); /* Fond Bleu Ciel Solide */
    border-color: var(--color-primary-dark);
    color: white; /* Texte blanc sur fond actif */
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.config-tuile-actif i {
    color: white; /* Icône blanche sur fond actif */
}

/* ------------------ STYLE DE LA TUILE D'ACTION (Forçage) ------------------ */

.config-tuile-action {
    /* Pour les actions critiques, utilisons une couleur d'avertissement */
    background-color: #fff3cd; /* Jaune très pâle */
    border-color: #ffc107; /* Jaune d'avertissement */
    color: #856404; /* Texte brun/jaune foncé */
    font-weight: 600;

}

.config-tuile-action i {
    color: #ffc107; /* Icône jaune */
}

.config-tuile:hover {
    background-color: var(--color-neutral-bg); 
    /* AJOUT : Le texte change de couleur au survol */
    color: var(--color-primary-dark); 
    border-color: var(--color-primary-dark);
}

.config-tuile:hover i {
    /* AJOUT : L'icône prend une couleur plus foncée au survol */
    color: var(--color-primary-dark); 
}

.config-tuile-action:hover {
    /* ANCIEN: background-color: #ffe8a1; Jaune très pâle au survol */
    background-color: #ffda69; /* Jaune plus soutenu au survol */
    border-color: #d49a00; /* Bordure plus foncée pour le contraste */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Donne un effet "soulevé" */
    color: #856404; /* Texte brun/jaune foncé */
}

/* Nouveau sélecteur pour l'icône au survol */
.config-tuile-action:hover i {
    color: #7a5d05; /* Change l'icône en brun foncé pour un contraste maximal */
} 

/* ------------------ NOUVEAU STYLE DE LA TUILE SUPER (Rouge Rosé Doux) ------------------ */

.config-tuile-super {
    /* 1. Couleurs de base (Rouge Rosé / Blush) */
    background-color: #FFF0F5; /* Fond Rose très très pâle (Blush) */
    border: 1px solid #E0B0C4; /* Bordure Rosé-Gris clair */
    color: #B22222; /* Texte Bourgogne Profond pour un bon contraste */
    font-weight: 600; 
}

.config-tuile-super i {
    /* 2. Icône dans la même couleur foncée */
    color: #B22222; 
    transition: color 0.2s ease-in-out;
}

/* 3. Comportement au Survol (HOVER) */
.config-tuile-super:hover {
    background-color: #FEECEF; /* Légèrement plus soutenu au survol */
    border-color: #DDA0DD; /* Bordure Mauve/Rose plus foncée */
    color: #8B0000; /* Texte Rouge Cerise / Bourgogne plus foncé */
}

.config-tuile-super:hover i {
    color: #8B0000; /* Icône plus foncée */
}

/* 4. Style Actif (Si la page SUPER est en cours) */
.config-tuile-super.config-tuile-actif {
    background-color: #B22222; /* Fond Bourgogne Solide (Très foncée) */
    border-color: #8B0000;
    color: white; /* Texte blanc sur fond foncé */
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.config-tuile-super.config-tuile-actif i {
    color: white; /* Icône blanche */
}

/* <-------------------> 
   <----- HEADER  -----> 
   <-------------------> */
  
header {
width:100%;
height:180px;
padding-top:1px;
display: flex;
flex-direction: row;
justify-content: center;
background: #f8f8f8;
/*border-bottom: 1px solid #ddd; /* Une ligne fine pour délimiter le header */
box-shadow: 0 1px 5px #999; /* Une ombre légère pour le relief */
} 

.main_header {
width:1000px;
height:200px;
display: flex;
flex-direction: row;
background-image:url('../img/header.jpg');
} 

/* <-------------------> 
   <--- HEADER GRIS ---> 
   <-------------------> */

.main_header_gris {
width:1000px;
box-sizing: border-box;
padding: 0px 20px; /* Ajoute de l'espace autour du contenu */
height: 180px; /* Permet à la hauteur de s'adapter au contenu */
display: flex;
flex-direction: row;
justify-content:space-between;
background-color: #f8f8f8;
align-items:flex-end;
/*background-image:url('../img/header-gris.jpg');*/
}

.logo-sikoa-container {
    display: flex;
    flex-direction: column;
    width:100px;
    align-items: center;
    position: relative;
    padding: 10px;
}

.sikoa-shape {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #df474762, #1a61be70); /* Dégradé de gris */
    border-radius: 8px; /* Carré arrondi */
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Ombre portée */
}

/* La forme en arc de cercle */
.sikoa-shape::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    background: #f8f8f8; /* Couleur de la forme interne */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
    -webkit-mask: radial-gradient(circle at center, transparent 40%, black 30%);
    mask: radial-gradient(circle at center, transparent 40%, black 40%);
}

.sikoa-text {
    font-family: Arial, sans-serif;
    font-size:28px;
    font-weight: bold;
    text-shadow: 1px 1px 3px #33333356;
    color: transparent;
    position: absolute;
    top: 41%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.sik{
   -webkit-background-clip: text;
    background-clip: text;
    background-image: linear-gradient(145deg, #0146a0, #1e4fd4); /* Dégradé de texte */
}

.oa{
   -webkit-background-clip: text;
    background-clip: text;
    background-image: linear-gradient(145deg, #c00202, #d33607); /* Dégradé de texte */
}

.sikoa-tagline {
    font-size: 11px;
    color: #555;
    margin-top: 5px;
}

.logo-cuma-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: url('../img/pomme-rouge.png');
    background-repeat: no-repeat;
    background-size: cover;
}

.cuma-text {
    font-family: 'Segoe UI', sans-serif; /* Une police qui ressemble */
    font-size: 100px;
    font-weight: bold;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    background-image: linear-gradient(180deg, #4f93a6, #007290); /* Dégradé de bleu */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Ombre de texte */
}

.cuma-line {
    width: 80%;
    height: 3px;
    background: linear-gradient(to right, #007290, #4f93a6, #007290); /* Dégradé de la ligne */
    margin-top: 2px;
}

.cuma-tagline {
    font-family: 'Segoe UI', sans-serif;
    font-size: 26px;
    font-style: italic;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    background-image: linear-gradient(180deg, #4f93a6, #007290); /* Dégradé de bleu */
    margin-top: 5px;
}

.bonjour {
display:flex;
flex-direction:row;
width:300px;
justify-content:flex-end;
align-items: center;
margin-right:15px;
margin-bottom:12px;
}

.bonjour span {
/*font-family:dev;*/
font-family: 'Segoe UI', sans-serif;
color:#022833;
font-size:24px;
}

.bonjour i{
   color:#007290;
   margin-left:8px;
   margin-top:18px;
   transition-duration: 0.3s;
}

.bonjour i:hover{
   color:chartreuse;
   transition-duration: 0.3s;
}

.decobtn {
width:20px;
height:22px;
background:url(../img/bouton-deconnex.png) no-repeat transparent;
border:none;
}
 
 /*<-------------------> 
   <----- CENTRE  -----> 
   <-------------------> */  
   
.main {
width:100%;
min-height:auto;
display: flex;
flex-grow: 1;
flex-direction: column;
justify-content:flex-start;
align-items:center;

} 

.main-centre {
padding-top:5px;
width:1000px;
min-height:auto;
display: flex;
flex-grow:1;
flex-direction: row;
justify-content: flex-start;	
background-image:url('../img/img-page-accueil.jpg');
background-repeat:no-repeat;
background-color:white;
}

.message-accueil {
padding-top:15px;
width:850px;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items:center;
}

.message-accueil-txt {
font-family:adel;
font-size:35px;
color:#4f93a6;
}

 /*<-------------------> 
   <--- CENTRE GRIS ---> 
   <-------------------> */ 
   
 .main-centre-gris {
padding-top:5px;
width:1000px;
min-height:590px;
display: flex;
flex-direction: column;
justify-content: flex-start;	
margin-top:15px;
padding-bottom:15px;
align-items:center;
background-color:white;
}  

.conteneradmin {
display:flex;
height:210px;
width:800px;
flex-direction:column;
justify-content:flex-start;
}

.conteneur-preca {
display:flex;
width:970px;
flex-direction:column;
justify-content:flex-start;
}

.ligneadmin {
display:flex;
margin-top:15px;
flex-direction:row;
justify-content:space-around;
}

.ligneadmin-adh {
display:flex;
height:60px;
width:850px;
margin-top:15px;
flex-direction:row;
justify-content:flex-start;
align-items:flex-end;
}

.page-titre {
font-family: "shrikhand", serif;
display:flex;
font-size:30px;
font-weight: normal;
padding-top:20px;
}

.za-adh {
display:flex;
width:396px;
flex-direction:column;
}

.za-admin {
display:flex;
width:480px;
flex-direction:column;
}

.za-adh-info {
display:flex;
width:814px;
flex-direction:column;
}

.za-admin-info {
display:flex;
width:971px;
flex-direction:column;
}

.zone-alerte2 {
display:flex;
width:480px;
min-height:200px;
border:2px solid #999999;
border-radius:5px;
padding-top:10px;
flex-direction:column;
justify-content:flex-start;
}

.contenerza {
display:flex;
width:980px;
justify-content:space-around;
}

.ligne-za {
display:flex;
justify-content: flex-start;
font-size:17px;
min-width:900px;
min-height:20px;
padding-top:3px;
padding-left:5px;
}

.ligne-za-adh {
display:flex;
font-size:17px;
min-width:300px;
min-height:20px;
padding-top:3px;
margin-left:25px;
}

.ligne-za-adh1 {
display:flex;
justify-content: flex-start;
font-size:17px;
min-width:40%;
min-height:20px;
padding-top:3px;
}

.ligne-za-adh2 {
display:flex;
justify-content: flex-end;
font-size:17px;
min-width:60%;
min-height:20px;
padding-top:3px;
}

.connexion-contener {
display:flex;
flex-direction:column;
justify-content:flex-start;
align-items:flex-start;
}

.connexion-contener span {
font-family:dev;
color:#868382;
font-size:18px;
}

.inputconnexion {
background-color:white;
border: 1px solid #868382;
border-radius:3px;
font-family:dev;
color:#868382;
height:20px;
font-size:18px;
}

.submitconnexion {
width:41px;
height:33px;
background-image:url(../img/coche1.jpg);
border:none;
}

input[type=password]:focus, input[type=text]:focus {
   background-color: white;
}

 /*<-----------------------> 
   <------ ANIMATIONS -----> 
   <-----------------------> */

/* Définir l'animation */
@keyframes rotation {
   from {
     transform: rotate(0deg);
   }
   to {
     transform: rotate(360deg);
   }
 }


/*<-------------------> 
  <--- MENU H DOUX ---> 
  <-------------------> */
 
/* Définition des couleurs d'accentuation pour plus de douceur */
:root {
    --color-primary-soft: #5b94c5; /* Bleu Ciel Doux */
    --color-primary-dark: #3b74a5; /* Bleu Ciel plus foncé (hover) */
    --color-neutral-bg: #e9ecef;   /* Gris très clair/neutre */
    --color-text-dark: #343a40;    /* Bleu marine pour le texte */
    --color-form-bg: #f5faff; /* Bleu très léger pour les fonds de formulaire */
}

.menuH-contener {
    display: flex;
    min-height: 50px;
    min-width: 1000px;
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-end;
    padding-bottom: 3px;
    align-self: flex-start;
    font-family: 'Roboto', sans-serif;
}

/* ------------------ BOUTONS D'ICÔNES (Accueil, Config, Chant) ------------------ */

.icon-btn { 
    /* PROPRIÉTÉS DE BASE (que vous aviez supprimées) */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px; 
    height: 30px;
    min-width: 40px;
    min-height: 30px;
    font-size: 1.2em; /* Rend l'icône plus visible */
    transition: all 0.2s ease-in-out; /* Assure la transition */

    /* STYLE DOUX (que vous vouliez) */
    background-color: var(--color-neutral-bg); /* Gris neutre */
    border: 1px solid #ced4da; /* Bordure discrète */
    border-radius: 5px;
    color: var(--color-text-dark); /* Texte gris foncé */
    box-shadow: none; /* On enlève les ombres pour un look plus plat */
}

.icon-btn:hover {
    background-color: #d1d6db; /* Légèrement plus foncé au survol */
    color: var(--color-primary-soft); /* Met l'accent en Bleu Ciel au survol */
}

/* ------------------ BOUTONS DE NAVIGATION (Chambres, Lots, etc.) ------------------ */

.new-btn, .new-btnH {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 130px; 
    height: 35px;
    font-weight: 500; 
    font-size: 0.95em;
    border-radius: 5px;
    text-align: center;
    transition: all 0.2s ease-in-out;
    box-shadow: none; /* Pas d'ombre */
}

.new-btn { /* Bouton Normal (non actif) */
    background-color: var(--color-primary-soft); /* Bleu Ciel Doux Solide */
    border: 1px solid var(--color-primary-soft);
    color: white; /* Texte blanc classique sur fond coloré */
}

.new-btn:hover {
    background-color: var(--color-primary-dark); /* Bleu plus foncé au survol */
    border-color: var(--color-primary-dark);
}

.new-btnH { /* Bouton Actif (Page en Cours) */
    background-color: #fff; /* Fond Blanc */
    border: 1px solid var(--color-primary-soft); /* Bordure Bleu Ciel (Accentuation) */
    font-weight: 700; /* Gras pour l'accentuation */
    color: var(--color-primary-soft); /* Texte Bleu Ciel */
    /* Ajout d'une légère ombre portée pour signaler l'état "actif" */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

 /*<-------------------> 
   <----- CONFIG ------> 
   <-------------------> */

.lots-contenerNEW {
display:flex;
flex-direction:column;
min-width:1000px;
max-width: 1000px;
min-height:400px;
align-items:center;
padding-top:10px;
}

.conteneur-config {
display:flex;
flex-direction:row;
width:100%;
justify-content: space-around;
padding-top:15px;
}

/* Assure que la bordure et le padding sont inclus dans la largeur/hauteur définie */
.conteneur-config-trans,
.module-config-col,
.module-config-option-retour,
.module-config-option,
.lots-contenerNEW {
    box-sizing: border-box; 
}

.conteneur-config-trans {
    display: flex;
    flex-direction: row;
    width: 960px; /* Garder votre largeur fixe */
    max-width: 960px;
    justify-content: flex-start; /* Aligner à gauche */
    /* ENLEVER : padding-top:40px; (déjà géré par lots-contenerNEW) */
    padding-top: 0; 
}

.conteneur-config-trans-retour {
    display: flex;
    flex-direction: row;
    width: 960px;
    justify-content: flex-start;
    
    /* Retire le padding vertical car on a augmenté la hauteur des colonnes */
    padding: 0; 
    
    border: 1px solid #e9ecef; 
    border-radius: 5px; /* Garde les coins arrondis pour le conteneur complet */
    margin-top: 5px;
    background-color: #fff;
    box-shadow: none;
    transition: all 0.2s ease-in-out;
}

.conteneur-config-trans-retour:hover {
    /* Gris très, très pâle. C'est juste assez pour être remarqué. */
    background-color: #f8f9fa; 
    
    /* Optionnel : Légère élévation pour donner un effet "pop" */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08); 
    
    /* Optionnel : Assurez-vous que la transition est douce (s'il n'y en a pas déjà une) */
    transition: all 0.2s ease-in-out; 
}

/* Annuler la bordure pour le formulaire d'ajout/modification pour plus de légèreté */
.conteneur-config-trans-retour.hidden,
.conteneur-config-trans-retour.nobord {
    /* Utilisation de la couleur très pâle pour distinguer la zone de saisie */
    background-color: var(--color-form-bg); 
    
    /* Assure que la ligne se démarque légèrement même si les bordures sont enlevées */
    border: 1px solid #e9f0f9; /* Bordure plus claire que la ligne de données */
    border-radius: 5px;
    margin-top: 5px; 
    box-shadow: none; /* Pas d'ombre portée sur les formulaires */
}

/* S'assurer que les champs input sont bien intégrés sur ce fond */
.conteneur-config-trans-retour input[type="text"] {
    background-color: #ffffff; /* Fond blanc à l'intérieur du champ de saisie */
}

/* NOUVELLE CLASSE POUR LES COLONNES DE DONNÉES LARGES (75%) */
.module-config-col-large {
    display: flex;
    flex-direction: column;
    /* Largeur ajustée pour les 960px. 960 * 75% = 720px */
    width: 750px; /* On donne 750px au lieu de 720px pour simplifier */
    min-width: 650px;
    align-items: flex-start;
    justify-content: center;
    font-size: 16px;
    height: 40px; /* Hauteur pour aérer verticalement */
    box-sizing: border-box;
    padding-left: 15px; /* Espace à gauche du contenu */
    padding-right: 5px;
    border-right: 1px solid #f8f9fa; /* Ligne de séparation très très pâle */
}

/* On s'assure que la colonne OPTIONS est bien alignée (25%) */
.module-config-option {
    /* Largeur ajustée : 960px - 750px = 210px */
    width: 210px; 
    min-width: 150px;
    /* ... (le reste du style est déjà défini) ... */
}

.module-config-trans {
display:flex;
flex-direction:column;
width:780px;
align-items: flex-start;
justify-content: center;
font-size:16px;
border:1px solid grey;
border-collapse: collapse;
height:25px;
border-radius: 5px 0px 0px 5px;
}

.module-config-trans-line {
display:flex;
flex-direction:row;
width:780px;
align-items: center;
justify-content: flex-start;
font-size:16px;
border:1px solid grey;
border-collapse: collapse;
height:25px;
border-radius: 5px 0px 0px 5px;
}

/* Définition des colonnes de données pour la page Parcelles (Largeur ajustée pour 3 colonnes) */

/* Colonne 'PARCELLE' (environ 40% de l'espace de contenu) */
.module-config-parcelle {
    display: flex;
    flex-direction: column;
    width: 380px; /* 380px pour la parcelle */
    min-width: 300px;
    align-items: flex-start;
    justify-content: center;
    font-size: 16px;
    height: 40px; /* Hauteur pour aérer verticalement */
    box-sizing: border-box;
    padding-left: 15px;
    padding-right: 5px;
    border-right: 1px solid #f8f9fa; /* Ligne de séparation très pâle */
}

/* Colonne 'ADHERENT' (environ 40% de l'espace de contenu) */
.module-config-parcelle2 {
    display: flex;
    flex-direction: column;
    width: 380px; /* 380px pour l'adhérent */
    min-width: 300px;
    align-items: flex-start;
    justify-content: center;
    font-size: 16px;
    height: 40px;
    box-sizing: border-box;
    padding-left: 15px;
    padding-right: 5px;
    border-right: 1px solid #f8f9fa; 
}
/* Note : 380 (Parcelle) + 380 (Adhérent) + 200 (Options) = 960px (Total) */


/* Style spécifique pour les champs de formulaire de type Select (dans l'ajout/modification) */
.module-config-parcelle select,
.module-config-parcelle2 select {
    /* Style pour s'intégrer dans la ligne de formulaire bleutée */
    width: 95%; 
    height: 30px;
    padding: 2px 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #ffffff; /* Fond blanc à l'intérieur du select */
}

.module-config-col {
    display: flex;
    flex-direction: column;
    /* Largeur ajustée : (960px * 80%) / 3 = 256px. On utilise une largeur fixe. */
    width: 250px; /* Largeur fixe pour Nom, Prénom, Exploitation */
    min-width: 150px; /* Ajout d'un minimum */
    align-items: flex-start;
    justify-content: center;
    font-size: 16px;
    height: 40px; /* Augmentation de la hauteur pour aérer verticalement */
    box-sizing: border-box;
    padding-left: 15px; /* Augmente l'espace à gauche du contenu */
    padding-right: 5px;
    border-right: 1px solid #f8f9fa;
}

/* Retirer la bordure de la dernière colonne de données */
.conteneur-config-trans-retour .module-config-col:nth-child(3) {
    border-right: none;
}

/* Cible les champs de saisie dans les colonnes aérées */
.module-config-col input[type="text"],
.module-config-col input[type="password"] {
    width: 90%; /* Occupe bien l'espace de la colonne */
    /* On utilise les 10% restants comme marge (l'espace) */
    margin-right: 10%; 
    
    /* Marge verticale pour aérer */
    margin-top: 2px;
    margin-bottom: 2px;
    padding: 5px; /* Plus d'espace à l'intérieur du champ */
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box;
}

/* On s'assure que le contenu standard (span) soit bien espacé */
.module-config-col .contenu {
    padding-left: 0; /* Ne pas forcer un padding gauche sur le span à l'intérieur du conteneur */
}

/* Les titres doivent avoir une bordure très discrète sur le conteneur complet */
.titre-config {
    /* ... (Gardez le fond Bleu Ciel, mais assurez-vous de n'avoir qu'une seule bordure sur le conteneur trans) */
    background-color: var(--color-primary-dark);
    color: white;
    font-weight: 700;
    height: 40px; /* Plus d'espace pour le titre */
    border-radius: 5px 5px 0 0; /* Coins supérieurs arrondis pour l'en-tête */
    margin-bottom: 5px;
}
/* Bordure à appliquer aux titres et aux lignes de données */
.module-config-col-bordered {
    border: 1px solid #ced4da; /* Bordure légère et moderne */
    border-radius: 0; /* Pas de coins arrondis sur les côtés */
}

.titre-config {
    background-color: var(--color-primary-dark); /* Bleu plus foncé pour le contraste */
    color: white;
    font-weight: 700;
    /* S'assurer que les titres sont centrés verticalement et alignés à gauche */
    align-items: center; 
}

/* Colone Option du TITRE (en-tête) */
.module-config-option {
    display: flex;
    width: 210px; /* 960px - (3 * 250px) = 210px restant pour la colonne options */
    min-width: 150px;
    justify-content: center; /* Centre le mot "OPTIONS" */
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
}

/* Colone Option pour les DONNÉES (lignes) */
.module-config-option-retour {
    display: flex;
    width: 210px; /* Même largeur que le titre */
    min-width: 150px;
    justify-content: space-evenly; /* Centre et espace les icônes (Pen et Trash) */
    align-items: center;
    box-sizing: border-box;
    height: 40px; /* Même hauteur que les autres colonnes */
}

/* Assurez-vous que les icônes à l'intérieur de ce conteneur soient bien stylées */
.module-config-option-retour .contenu {
    cursor: pointer;
    font-size: 1.1em;
    padding: 0 5px; /* Espace autour de chaque icône */
}

.contenu {
padding-left:10px;
}

.span-config {
display:flex;
align-items: flex-end;
justify-content: baseline;
padding-left:10px;
}

.nobord {
border:none;
}

.plus {
cursor:pointer;
transition-duration: .3s;
}

.plus:hover {
color:#28a745;
transition-duration: .3s;
}

.jaune {
cursor:pointer;
transition-duration: .3s;
}

.jaune:hover {
color:orange;
transition-duration: .3s;
}

.rouge {
cursor:pointer;
transition-duration: .3s;
}

.rouge:hover {
color:red;
transition-duration: .3s;
}

.hidden {
display:none;
}

 /*<-------------------> 
   <------ Lots -------> 
   <-------------------> */
   
.lots-contener {
display:flex;
flex-direction:column;
min-width:980px;
min-height:400px;
border:2px solid #999999;
border-radius:5px;
align-items:center;
}

.bouton-contener {
display:flex;
min-width:980px;
flex-direction:row;
justify-content:flex-end;
align-items:center;
}

.bouton-contener-adh {
display:flex;
min-width:980px;
flex-direction:row;
justify-content:flex-start;
align-items:center;
}

.ligne-contener {
display:flex;
width:970px;
height:25px;
border:1px dotted #999999;
margin-top:10px;
background-color:lightgrey;
}

.ligne-contener-ch {
display:flex;
width:970px;
height:30px;
margin-top:10px;
padding-top:10px;
align-items: center;
justify-content: center;
}

.ligne-contener-stock {
display:flex;
flex-direction:row;
width:970px;
height:20px;
font-family:dev;
color:#007290;
font-style:italic;
font-size:24px;
align-items:center;
border:1px dotted #999999;
margin-top:10px;
padding-left:10px;
background-color:lightgrey;
}

.ligne-contener2 {
display:flex;
width:970px;
min-height:25px;
border:1px dotted #999999;
margin-top:8px;
}

.ligne-contener3 {
display:flex;
width:970px;
min-height:20px;
margin-top:6px;
margin-left:20px;
}

.ligne50 {
display:flex;
width:49px;
border-right:1px dotted #999999;
justify-content:center;
align-items:center;
font-family:calibri;
font-weight:bold;
font-size:14px;
color:#006699;
}

.ligne70 {
display:flex;
width:69px;
border-right:1px dotted #999999;
justify-content:center;
align-items:center;
font-family:calibri;
font-weight:bold;
font-size:14px;
color:#006699;
}

.ligne100 {
display:flex;
width:99px;
border-right:1px dotted #999999;
justify-content:center;
align-items:center;
font-family:calibri;
font-weight:bold;
font-size:14px;
color:#006699;
}

.ligne165 {
display:flex;
width:165px;
border-right:1px dotted #999999;
justify-content:center;
align-items:center;
font-family:calibri;
font-weight:bold;
font-size:14px;
color:#006699;
}

.ligne200 {
display:flex;
width:139px;
border-right:1px dotted #999999;
justify-content:center;
align-items:center;
font-family:calibri;
font-weight:bold;
font-size:14px;
color:#006699;
}

.ligne210 {
display:flex;
width:210px;
border-right:1px dotted #999999;
justify-content:center;
align-items:center;
font-family:calibri;
font-weight:bold;
font-size:14px;
color:#006699;
}

.ligne220 {
display:flex;
width:280px;
justify-content:space-around;
align-items:center;
font-family:calibri;
font-weight:bold;
font-size:14px;
color:#006699;
}

.ligne220D {
display:flex;
width:280px;
justify-content:flex-end;
align-items:center;
font-family:calibri;
font-weight:bold;
font-size:14px;
color:#006699;
}

.tri {
display:flex;
margin-right:8px;
margin-top:10px;
}

/* ----------------------------------------------------------- */
/* --- Styles généraux pour le formulaire de Palox --- */
/* ----------------------------------------------------------- */

/* Conteneur principal du formulaire */
#formu {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff; /* Fond blanc pour le formulaire */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

/* Styles pour le bandeau d'en-tête (Titre et Stock Actuel) */
.header-formulaire-palox {
    display: flex;
    flex-direction: row;
    justify-content: space-between; /* Espacement automatique entre les blocs */
    align-items: flex-end; /* Alignement vertical au bas */
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #36a9e1; /* Ligne de séparation */
}

.header-formulaire-palox .titre-formulaire {
    font-weight: bold;
    font-size: 1.2em;
    color: #333;
}

.header-formulaire-palox .stock-actuel-label {
    font-style: italic;
    font-size: 0.9em;
    color: #666;
    /* Conserve l'espacement d'origine pour l'alignement */
    margin-left: 60px; 
}

/* ----------------------------------------------------------- */
/* --- Structure des Palox (Grille) --- */
/* ----------------------------------------------------------- */

/* Conteneur pour aligner la saisie et le stock côte à côte */
.conteneur-palox-grille {
    display: flex;
    flex-direction: row;
    gap: 50px; /* Grand espace entre les deux blocs principaux */
}

/* Les deux blocs principaux (bloc-saisie-palox et bloc-affichage-stock) */
.bloc-saisie-palox, 
.bloc-affichage-stock {
    display: flex;
    flex-direction: row;
    gap: 15px; /* Espace entre les palox BOIS et PVC */
}

/* Conteneur d'une catégorie de palox (ex: Bois, PVC) - ex: case-ajout-lot3 */
.case-ajout-lot3 {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px;
    background-color: #f9f9f9;
}

/* Ligne interne pour aligner les éléments (AJH) */
.AJH {
    display: flex;
    flex-direction: row;
    margin-bottom: 5px;
    text-align: center;
}

/* Titres de colonnes (100/120, 120/120) ou affichage des valeurs */
.titre-case4 {
    flex-grow: 1; /* Distribue l'espace également */
    width: 50%; 
    padding: 5px;
    font-size: 0.9em;
    font-weight: 500;
}

/* ----------------------------------------------------------- */
/* --- Styles spécifiques aux éléments --- */
/* ----------------------------------------------------------- */

/* Styles pour les images des palox */
.AJH.images-palox img {
    max-width: 90%;
    height: auto;
    border-radius: 4px;
    opacity: 0.85;
}

/* Champs de saisie */
.inputtxt {
    width: 80%;
    padding: 5px 0;
    text-align: center;
    border: 1px solid #999;
    border-radius: 4px;
    font-size: 1em;
    font-weight: bold;
    transition: border-color 0.3s;
}

.inputtxt:focus {
    border-color: #36a9e1;
    outline: none;
    box-shadow: 0 0 5px rgba(54, 169, 225, 0.5);
}

/* Styles pour la modale HTML5 */
#addPaloxModal {
    /* Le navigateur centre et ajuste automatiquement par défaut ! */
    padding: 0;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    max-width: 90%; /* Limite la taille pour les grands écrans */
    min-width: 600px;
    background: #f0f0f0;
}

/* Style de l'arrière-plan semi-transparent lorsque la modale est ouverte */
#addPaloxModal::backdrop {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

/* Conteneur pour le formulaire chargé (s'applique au div #formu-modal) */
#formu-modal {
    padding: 20px;
}

/* Messages d'état */
.loading-message, .error-message {
    padding: 20px;
    text-align: center;
    font-style: italic;
    color: #666;
}

/* Boutons d'action dans la modale */
.actions-form {
    text-align: right;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.actions-form button {
    padding: 8px 15px;
    margin-left: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

.actions-form button[type="submit"] {
    background-color: #36a9e1;
    color: white;
    border: 1px solid #36a9e1;
}

.actions-form button[type="button"] { /* Annuler */
    background-color: #ccc;
    color: #333;
    border: 1px solid #ccc;
}

/* Affichage des valeurs actuelles */
.AJH.valeurs-stock .titre-case4 {
    font-weight: bold;
    color: #007bff; /* Couleur d'accentuation pour les chiffres du stock */
    font-size: 1.1em;
    padding-top: 10px;
}

/* Bouton Valider */
input[type="submit"] {
    background-color: #28a745; /* Couleur verte de succès */
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin-top: 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
    background-color: #218838;
}

 /*<-------------------------> 
   <------ AJOUTER LOT ------> 
   <-------------------------> */
   
.lots-contener2 {
display:flex;
flex-direction:column;
min-width:980px;
min-height:400px;
border:2px solid #999999;
border-radius:5px;
align-items:center;
background-color:#d3e7f0;
}
   
.lot-ligne-titre {
display:flex;
width:970px;
flex-direction:row;
justify-content:flex-start;
align-items:flex-start;
color:#336633;
font-size:22px;
font-family:dev;
margin-left:10px;
margin-top:10px;
}

.ligne-ajout-lot {
display:flex;
flex-direction:row;
width:960px;
margin-top:20px;
margin-left:20px;
}

.case-ajout-lot {
display:flex;
width:200px;
flex-direction:column;
}

.case-ajout-lot2 {
display:flex;
width:400px;
flex-direction:column;
}

.case-ajout-lot3 {
display:flex;
width:200px;
flex-direction:column;
align-items:center;
justify-content:center;
}

.AJH {
display:flex;
width:200px;
flex-direction:row;
align-items:center;
justify-content:flex-start;
}

.titre-case {
font-family:calibri;
font-weight:bold;
font-size:16px;
color:#006699;
height:22px;
}

.titre-case2 {
width:400px;
font-family:calibri;
font-weight:bold;
font-size:16px;
color:#006699;
height:20px;
}

.titre-case3 {
display:flex;
align-self:flex-start;
font-family:calibri;
font-weight:bold;
font-size:16px;
height:20px;
}

.titre-case4 {
display:flex;
align-items:center;
justify-content:space-around;
width:80px;
font-family:calibri;
font-weight:bold;
font-size:16px;
color:#336633;
height:30px;
}

.inputtxt {
width:50px;
margin:auto;
}

.cboxlot {
display:flex;
align-self:flex-start;
}

.ALINPUT select {
max-width:170px;
min-width:170px;
height:20px;
max-height:60px;
margin:auto;
}

.ligne-validation {
display:flex;
flex-direction:row;
width:980px;
justify-content:flex-end;
}

.ligne-validation2 {
display:flex;
flex-direction:row;
width:180px;
justify-content:space-around;
margin-left:800px;
}

 /*<----------------------------> 
   <------ Ajout Adherent ------> 
   <----------------------------> */

.txt-vert {
font-family:calibri;
font-weight:bold;
font-size:16px;
color:#336633;
padding-top:-8px;
}

.checkajoutadh {
display:flex;
align-items:center; 
}

 /*<-------------------> 
   <----  STOCK  ------> 
   <-------------------> */  
   
.search-bar {
display:flex;
width:980px;
height:20px;
flex-direction:row;
justify-content:flex-start;
align-items:center;	
}  
   
.titre-sb {
padding-left:30px;
padding-top:10px;
}   
   
.titre-sb-2 {
padding-left:3px;
padding-top:10px;
}    
   
 /*<-------------------> 
   <--- FOOTER GRIS ---> 
   <-------------------> */

/* Style du pied de page principal */
.footer {
    width: 100%;
    height:130px;
    /*padding: 30px 0;*/
    background-color: #f8f8f8; /* Un gris très clair */
    border-top: 1px solid #e0e0e0;
    font-family: Arial, sans-serif;
    color: #555;
}

/* Conteneur pour l'alignement du contenu */
.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start; /* Aligner les sections en haut */
}

/* Sections du pied de page */
.footer-section {
    padding: 10px 20px;
    flex: 1; /* Permet aux sections de s'étendre */
    min-width: 200px; /* Assure un minimum de largeur pour l'empilement sur mobile */
}

/* Style de l'adresse et des informations de contact */
.company-address {
    font-style: normal; /* Supprime le style italique par défaut de <address> */
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.footer-email {
    color: #4f93a6;
    text-decoration: none;
    margin-top: 5px;
}

.footer-email:hover {
    text-decoration: underline;
}

/* Style de la navigation (si vous l'ajoutez) */
.footer-nav {
    display: flex;
    flex-direction: column;
}

.footer-nav a {
    color: #4f93a6;
    text-decoration: none;
    margin-bottom: 5px;
}

.footer-nav a:hover {
    text-decoration: underline;
}

/* Style du copyright */
.copyright {
    font-size: 0.85em;
    color: #888;
    text-align: right;
    align-self: flex-end; /* Aligner le copyright en bas à droite */
}

 /*<------------> 
   <--- OUPS ---> 
   <------------> */
   
.oupstitre {
display:flex;
color:#3daecf;
font-size:38px;
font-weight:bold;
align-self:center;
padding-top:20px;
}
 
.oups {
display:flex;
color:#3daecf;
font-size:18px;
align-self:flex-start;
padding-left:35px;
}

.imgoups {
display:flex;	
flex-direction:row;
min-width:900px;
padding-right:50px;
justify-content:flex-end;
align-items:flex-end;
}

/* Style pour le suivi des factures */

/* Conteneur principal des factures (si nécessaire) */
.factures-contener {
    width: 90%; /* ou la largeur souhaitée */
    margin: 20px auto;
}

/* 1. Définir le conteneur de ligne comme Flexbox */
.ligne-contener-facture {
    display: flex; /* Ceci est la clé de l'alignement horizontal */
    width: 100%;
    min-width:1000px;
    margin-bottom: 5px;
    border-radius: 4px;
    box-sizing: border-box; /* IMPORTANT: Inclut padding et border dans la largeur */
}

/* 2. Style des Cellules/Colonnes dans la ligne */
.ligne-contener-facture > div {
    /* Règle générale pour que toutes les colonnes prennent leur largeur définie */
    /* Elles sont dimensionnées via les styles inline (width: X%) dans le HTML, 
       mais ce flex-grow évite qu'elles ne s'étirent inégalement */
    padding: 8px 10px; 
    box-sizing: border-box;
    /* alignement par défaut */
    display: flex;
    align-items: center; 
    justify-content: center; /* Centrage horizontal par défaut */
}

/* 3. Style spécifique pour l'En-tête */
.ligne-entete {
    background-color: #5b94c5; /* Bleu CUMA */
    color: white;
    font-weight: bold;
    border-radius: 4px 4px 0 0;
}

/* 4. Style spécifique pour les Données */
.ligne-donnees {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
}
