/* Variables de couleurs */
:root {
    --bg-color: #e9f4f5;
    --primary-color: #1a3a4a; 
    --accent-color: #ff7e67;  
    --text-color: #2d3436;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    text-decoration: none;
    color: inherit;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; /* Évite le scroll horizontal parasite */
}


.logo .mbo-size {
    font-size: 0.8rem !important;    /* Plus petit que le reste du logo */
    font-weight: normal;  /* Enlève le gras si besoin */
    opacity: 0.8;         /* Un peu plus discret (optionnel) */
    margin-left: 5px;     /* Petit espace avec Expert */
    color: var(--primary);
}

.hero-content .mbo-size {
    font-size: 1.2rem !important;    /* Plus petit que le reste du logo */
    font-weight: normal;  /* Enlève le gras si besoin */
    opacity: 1;         /* Un peu plus discret (optionnel) */
    margin-left: 5px;     /* Petit espace avec Expert */
    font-weight: 500;
    color: var(--primary);
}
/* --- Navigation --- */


.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    white-space: nowrap;
    margin: 0; /* Empêche le centrage automatique */

}

.logo span {
    color: var(--accent-color);
}

.logo2 {
    font-size: 3rem !important; /* Taille normale sur grand écran */
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    text-shadow: 2px 2px 4px rgb(255, 255, 255);
    margin: auto;
    display: block; /* S'assure que le margin: auto fonctionne pour centrer */
    
    /* On retire le nowrap ici pour permettre l'adaptation */
    white-space: normal; 
}

.logo2 span {
    color: var(--accent-color);
    text-shadow: 2px 2px 4px rgb(0, 0, 0);
}
.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.btn-login {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 5px;
}




/* --- Style général Navbar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #c1e0ff; /* Ton bleu MBO */
    padding: 15px 25px;
    position: relative;
    z-index: 1000;
}
/* --- Style du Burger --- */
/* On s'assure que le burger ne bouge pas */
.menu-burger {
    display: none; /* Caché sur PC */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 2000; /* Très haut pour passer devant tout */
}

.menu-burger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: rgb(79, 116, 236); /* Couleur des barres */
    border-radius: 3px;
    transition: all 0.3s ease;
}



/* --- Hero Section --- */
.hero {
    position: relative; /* Indispensable pour positionner le calque par-dessus */
    background-image: url('vente.png');
    background-size: cover;
    background-position: center;
    min-height:60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 50%;
    color: white;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(245, 245, 245, 0.63); /* C'est ici que tu règles l'intensité */
    z-index: 1; /* Le calque passe au premier plan de la section */
}

.hero-content {
    position: relative;
    z-index: 2; /* On place le texte au-dessus du calque sombre */
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem); /* Taille de police fluide */
    color: var(--primary-color);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--primary);
    font-size: 1.6rem;
    text-align: center;
    font-weight: 900;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    min-width: 200px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.MP3-section {
    text-align: center;
    font-size: 1.2rem;
    color: var(--primary-color);
}
/****************************style de la section MP3 - start **************************/ 

.music-card-mini {
    background: #1a3a4a; /* Ton bleu marine */
    color: white;
    border-radius: 16px;
    padding: 15px 20px;
    max-width: 380px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(26, 58, 74, 0.2);
    font-family: 'Segoe UI', Roboto, sans-serif;
}

.music-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-disc {
    font-size: 24px;
    background: rgba(255, 255, 255, 0.1);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    animation: pulse-music 2s infinite;
}

.text-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.music-title {
    font-weight: bold;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.music-subtitle {
    font-size: 0.75rem;
    opacity: 0.7;
}

.mini-dl-btn {
    color: white;
    opacity: 0.6;
    transition: 0.3s;
    display: flex;
    align-items: center;
}

.mini-dl-btn:hover {
    opacity: 1;
    transform: translateY(2px);
}

.player-zone audio {
    width: 100%;
    height: 35px; /* Plus fin */
    filter: invert(100%) hue-rotate(180deg) brightness(1.5); /* Force le lecteur en blanc/bleu */
}

@keyframes pulse-music {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 400px) {
    .music-card-mini { margin: 15px; width: auto; }
}

/****************************style de la section MP3 - end **************************/ 

/* --- Grille de cartes (Features) --- */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 40px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
 
    
}

    


.card:hover {
    transform: translateY(-8px);
}
footer {
    background-color: var(--white); /* Fond blanc pour trancher avec le fond de page */
    padding: 30px 20px;
    margin-top: 50px; /* Espace avec le contenu du dessus */
    border-top: 1px solid rgba(0,0,0,0.05);
    text-align: center;
}

.footer-content p {
    font-size: 0.85rem;
    color: #7f8c8d; /* Gris plus doux pour les mentions légales */
    max-width: 800px;
    margin: 0 auto;
    letter-spacing: 0.5px;
}


/***************** style de la page popup-index *****************/


/* Style du Popup Index */
.modal-index {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0; top: 0;
    width: 100%; height: 100%; 
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.modal-content-index {
    background-color: #fefefe;
    margin: 5% auto;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-popup {
    position: absolute;
    right: 15px; top: 10px;
    color: rgb(236, 7, 7);
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.popup-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.popup-body { padding: 0px; text-align: center; }
.popup-body h2 { color: #1a3a4a; margin-bottom: 10px; }


.news-section {
    background: #f4f7f9;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: left;
  
}

.news-section h3 {
    font-size: 14px;
    color: #e67e22;
    margin-bottom: 10px;
    text-align: center;
}

.news-section ul { list-style: none; padding: 0; font-size: 14px; }
.news-section li { margin-bottom: 8px; color: #333; width: 100%; }

.popup-footer { font-style: italic; color: #888; font-size: 13px; }


.btn-popup-close {
    background-color: #27ae60; /* Vert comme tes boutons d'enregistrement */
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 70%; /* Le bouton prend toute la largeur sur mobile */
}

.btn-popup-close:hover {
    background-color: #219150;
    transform: scale(1.02);
}

.btn-popup-close:active {
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .popup-body h2 {
        font-size: 1rem;
    }
    .popup-body p {
        font-size: 0.7rem;
    
}
.news-section {
        margin: 0;
     
    }
}




/* --- Page de Connexion --- */
.login-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.login-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-card h2 {
    color: var(--primary-color);
    margin: 20px 0 10px;
}

.login-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 30px;
}

/* Formulaire */
.input-group {
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: var(--bg-color);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background-color: #e66d58; /* Variante un peu plus sombre du corail */
}

.back-link {
    display: block;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

/* Responsive Login */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }
}


/* --- Styles Espace Formation --- */

.formation-content {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

:root {
    --mbo-blue: #5887b6;
    --mbo-orange: rgb(255, 126, 103);
    --mbo-light: #f4f7f6;
}

.header-formations {
    background: var(--mbo-blue);
    color: white;
    padding: 40px 20px;
    text-align: center;
    margin-top: 10px;
  
}

@media (max-width: 768px) {
    

    .header-formations {

  font-size: 0.9rem;

  
}
}

.formations-container {
    max-width: 1100px;
    margin: 40px auto; /* On a enlevé le -30px et mis 40px d'espace positif */
    padding: 0 20px;
}

.formations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.formation-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    padding: 25px;
    border-top: 5px solid var(--mbo-orange); /* On garde ton vert fétiche */
    display: flex;
    flex-direction: column;
    transition: 0.3s ease;
}

.formation-card:hover {
    transform: translateY(-5px);
}

.formation-card h3 {
    color: var(--mbo-blue);
    margin-top: 0;
    font-size: 1.4em;
}

.formation-card p {
    color: #555;
    font-size: 0.95em;
    line-height: 1.6;
    flex-grow: 1;
}

.btn-formation {
    display: block;
    background: var(--mbo-orange); /* Couleur du bouton validée */
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    margin-top: 20px;
    transition: opacity 0.2s;
}

.btn-formation:hover {
    opacity: 0.9;
}

.nav-back-link {
    display: inline-block;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 1.3em;
    font-weight: 900;
}




/* --- Slider de Formation --- */
/* Conteneur global de la formation */
.formation-content {
    max-width: 1300px; /* On élargit pour laisser la place aux flèches sur les côtés */
    margin: 40px auto;
    padding: 0 60px; /* Espace pour les flèches */
    position: relative;
}

/* Le cadre qui contient l'image */
.slider-wrapper {
    position: relative;
    max-width: 1000px; /* Largeur de l'image elle-même */
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    margin-top: 50px;
 
}

.slides img {
    width: 100%;
    display: block;
    max-height: 80vh;
    object-fit: contain;
    background-color: #fff; /* Fond blanc si l'image ne remplit pas tout */
}

/* Flèches à l'extérieur */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* Centrage vertical parfait */
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mbo-blue); /* Couleur de ton thème */
    font-weight: bold;
    font-size: 40px;
    transition: 0.3s;
    user-select: none;
    text-decoration: none;
}

.prev { left: 0; }  /* Placé dans la marge gauche */
.next { right: 0; } /* Placé dans la marge droite */

.prev:hover, .next:hover {
    color: var(--mbo-green); /* Change de couleur au survol */
    transform: translateY(-50%) scale(1.2);
}

/* On cache le numéro de page s'il gêne ou on le met en gris discret */
.numbertext {
    color: #999;
    font-size: 14px;
    text-align: center;
    margin-top: 15px;
}




/* Style pour l'image quand elle est cliquable */
.slides img {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

/* Le fond noir (Overlay) */
.fullscreen-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

/* L'image agrandie */
.fullscreen-overlay img {
    max-width: 95%;
    max-height: 95vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border: 2px solid #444;
}

/* Bouton pour fermer */
.close-overlay {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Flèches spécifiques au mode plein écran */
.prev-fs, .next-fs {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 60px;
    padding: 20px;
    text-decoration: none;
    user-select: none;
    transition: 0.3s;
    z-index: 10000;
}

.prev-fs { left: 20px; }
.next-fs { right: 20px; }

.prev-fs:hover, .next-fs:hover { color: var(--mbo-green); }

/* On s'assure que l'image ne couvre pas les flèches */
#overlayImg {
    max-width: 80%; /* On réduit un peu la largeur pour laisser de la place aux flèches */
}

/** css page calculette de pose **/

     .container {
            max-width: 900px;
            margin: auto;
            background: white;
            padding: 30px;
            border-radius: 12px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
           
        
        
           
        }

  #page-content { display: none; }
        :root {
            --primary: #2c3e50;
            --secondary: #34495e;
            --accent: #27ae60;
            --danger: #e74c3c;
            --light: #f4f7f6;
        }


/* Ajoute ceci pour forcer les boutons à rester à droite même si le milieu est vide */
.actions {
    margin-left: auto; 
    margin-top: 50px;
}

        .logo-container img {
            max-height: 70px;
            max-width: 180px;
            object-fit: contain;
        }

        .header-title {
            text-align: center;
            flex-grow: 1;
        }

        h1 { margin: 0; color: var(--primary); font-size: 22px; text-transform: uppercase; }
        
        /* Style pour ta nouvelle ligne de référence */
   .ref-interne {
    margin-top: 5px;
    font-weight: normal; /* Moins épais pour paraître plus discret */
    color: #2a7cb3ab;      /* Gris clair */
    font-size: 0.75em;   /* Plus petit (75% de la taille normale) */
    letter-spacing: 0.5px;
}

        #currentDate { margin: 5px 0 0 0; font-size: 0.85em; color: #d4d4d4; }

        .client-info {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 15px;
            margin-bottom: 25px;
        }

        .field-group { display: flex; flex-direction: column; }
        label { font-weight: bold; font-size: 0.85em; margin-bottom: 5px; color: var(--secondary); }
        
        input[type="text"], input[type="number"], select {
            padding: 8px;
            border: 1px solid #ccc;
            border-radius: 4px;
            font-size: 14px;
            width: 50%;
            box-sizing: border-box;
            color: var(--text-color);
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 30px;
            max-width: 100% !important; /* Assure que le tableau ne dépasse pas la largeur de son conteneur */
            
        }

        th {
            background-color: var(--primary);
            color: white;
            padding: 12px 8px;
            text-align: left;
            font-size: 12px;
        }

        td { padding: 5px 4px; border-bottom: 1px solid #eee; font-size: 14px; }

        .category-row {
            background-color: #ecf0f1;
            font-weight: bold;
            color: var(--primary);
        }

        .qty { width: 55px !important; text-align: center; }

        .summary-wrapper { display: flex; justify-content: flex-end; }

        .total-box {
            width: 100%;
            max-width: 350px;
            background: var(--secondary);
            color: white;
            padding: 20px;
            border-radius: 8px;
            box-sizing: border-box;
        }

        .total-line { display: flex; justify-content: space-between; margin-bottom: 12px; }

        .grand-total {
            border-top: 1px solid #7f8c8d;
            padding-top: 15px;
            margin-top: 10px;
            font-size: 1.4em;
            color: var(--accent);
            font-weight: bold;
        }

    
        .actions { display: flex; gap: 10px; }
        .btn { padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; font-weight: bold; }
        .btn-print { background: var(--accent); color: white; }
        .btn-reset { background: var(--danger); color: white; }

        @media print {
            @page { size: A4; margin: 1cm; }
            body { background: white; padding: 0; }
            .container { box-shadow: none; width: 100% !important; max-width: 100% !important; padding: 0; }
            .actions, .btn-reset, .btn-print, #unitPrice, label[for="unitPrice"], footer,.about-liens,.header-formations {
                display: none !important;
            }
            
            input, select { border: none !important; background: transparent !important; appearance: none; }
            tr:has(.qty[value="0"]) { display: none; }
            .total-box { background: white !important; color: black !important; border: 2px solid #333; }
            .grand-total { color: black !important; }
        }

@media print {
    .field-group:has(#unitPrice) {
        display: none !important;
    }
}


/*** page links css des cards***/

/* Le conteneur qui aligne les cartes */
.cards-grid {
    display: grid;
    /* Crée des colonnes automatiques de 280px minimum */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px; /* Espace entre les cartes */
    padding: 20px 0;
}

/* Le style des cartes */
.card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px); /* Petit effet de survol */
}

.card-logo {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    padding: 20px;
}

.card-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card-body {
    padding: 20px;
    text-align: center;
}

.btn-link {
    display: inline-block;
       background: var(--mbo-blue);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 15px;
}
.btn-link-2 {
    display: table;           /* Permet d'utiliser margin: auto sur un lien */
    margin: 20px auto 0 auto; /* Centre horizontalement (auto gauche/droite) */
    background: var(--mbo-blue);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
}

.btn-link-2:hover {
    background: #0056b3; /* Une nuance plus sombre au survol */
    transform: scale(1.05);
}
.section-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-size: 2em;
    font-weight: bold;
}


/* Conteneur principal */
.container-links {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

/* Grille adaptative (Responsive) */
.links-grid {
    display: grid;
    /* Par défaut (mobile) : 1 seule colonne */
    grid-template-columns: 1fr; 
    gap: 20px; /* Espace entre les cartes */
    padding: 20px;
}

/* Style des cartes */
.card-link {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Effet au survol */
.card-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Logo dans la carte */
.card-link img {
    height: 60px;
    margin-bottom: 20px;
    object-fit: contain;
}

/* Bouton dans la carte */
.btn-card {
    margin-top: auto;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-card:hover {
    background-color: #0056b3;
}


/* 💻 Quand l'écran est assez large (ordinateur) */
@media (min-width: 1024px) {
    .links-grid {
        /* On force l'affichage sur 4 colonnes égales */
        grid-template-columns: repeat(4, 1fr);
    }
}


/**** style des downloads sur la page liens **********/
.download-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.download-grid {
    display: grid;
    /* 5 par ligne sur grand écran */
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.download-item {
    position: relative;
    min-height: 180px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid #ddd;
    background-color: #000; /* Fond noir pour aider au contraste si image claire */
}

/* Gestion de l'image de fond avec opacité */
.download-item::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    opacity: var(--opacity); /* Réglable via le style inline dans le HTML */
    z-index: 1;
}

.download-content {
    position: relative;
    z-index: 2; /* Passe au-dessus de l'image */
    padding: 15px;
    color: white; /* Texte blanc pour ressortir sur l'image */
}

.download-content h3 { font-size: 1rem; margin-bottom: 5px; }
.download-content p { font-size: 0.8rem; margin-bottom: 10px; }

.btn-download {
    display: inline-block;
    background: #e67e22; /* Couleur orange pro */
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
}


.about-liens {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}




/* 📱 Responsive : 2 par ligne sur mobile */



@media (max-width: 768px) {
    .download-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/***** style de la page suici de dossiers ***/

.container-suivi {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.suivi-block {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 50px;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
}

/* Le petit numéro de l'étape */
.suivi-number {
    background: var(--accent-color, #e67e22);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.suivi-content {
    display: flex;
    gap: 30px;
    width: 100%;
    align-items: center;
}

.suivi-text {
    flex: 1;
    text-align: justify;
}

.suivi-text h2 {
    margin-top: 0;
    color: #333;
    font-size: 1.4rem;
}

.suivi-image {
    flex: 1;
    max-width: 300px;
}

.suivi-image img {
    width: 100%;
    border-radius: 8px;
    display: block;
    object-fit: cover;
}


/***** page conception de cuisines --------------------------*/
/* --- Mise en page globale du Tuto --- */
.tuto-container {
    max-width: 1100px;
    margin: 0px auto;
    padding: 20px;
}
.tuto-container  h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-size: 2rem;
}

/* Chaque étape de conception */
.tuto-step {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 80px;
    margin-top: 20px;
}

/* Inversion texte/image pour alterner */
.tuto-step.reverse {
    flex-direction: row-reverse;
}

.tuto-text {
    flex: 1;
}

.tuto-text h2 {
    color: var(--primary-color);
    border-bottom: 3px solid var(--accent-color);
    display: inline-block;
    margin-bottom: 20px;
    font-size: clamp(1.2rem, 4vw, 1.8rem); 
}


.tuto-text p {
    line-height: 1.6;
    color: #444;
    text-align: justify;
}

/* --- Gestion des Images et Galeries --- */
.tuto-gallery {
    flex: 1;
    display: flex;
    justify-content: center; /* Centre l'image seule */
    align-items: center;
    gap: 15px;
}

/* Style par défaut pour TOUTES les images de tuto */
.tuto-gallery img {
    max-width: 100%; /* Empêche l'image de déborder de sa colonne */
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: zoom-in;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.tuto-gallery img:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Mode Multi-images (2 images côte à côte) */
.tuto-gallery.multi img {
    width: calc(50% - 8px); /* Partage l'espace 50/50 */
    object-fit: cover;
}

/* --- Fenêtre Lightbox (Agrandissement) --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    animation: zoomAnim 0.3s ease-out;
}

@keyframes zoomAnim {
    from { transform: scale(0.5); opacity: 0; } 
    to { transform: scale(1); opacity: 1; }
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    text-align: center;
    color: #fff;
    font-weight: bold;
    padding: 20px 0;
}


/*** css bouttons page conception de cuisines ***/
.menu-tuto-selection {

    max-width: 1400px;
    margin: 30px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 20px;
}
.menu-tuto-selection .btn-link {
    min-width: 180px;
    text-align: center;
    transition: all 0.3s ease;
}
/* Effet au survol (Hover) */
.menu-tuto-selection .btn-link:hover {
    transform: translateY(-5px); /* Le bouton monte légèrement */
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
    background-color: var(--primary-color);
    color: white;
}

/* Style pour le bouton "actif" (quand on clique) */
.menu-tuto-selection .btn-link:active {
    transform: scale(0.95); /* Petit effet d'enfoncement */
}

/* Défilement fluide pour que l'ancre ne saute pas brutalement */
html {
    scroll-behavior: smooth;
}
/* Ajoute un défilement doux quand on clique sur un bouton */
html {
    scroll-behavior: smooth;
}





/****** mentions légales css *********/
.mentions-container {
    padding: 40px;
    line-height: 1.6;
    color: #333;
    text-align: justify;
}

.mentions-container h1 {
    color: var(--mbo-blue);
    border-bottom: 2px solid var(--mbo-blue);
    padding-bottom: 10px;
}

.mentions-container h2 {
    margin-top: 30px;
    color: #444;
    font-size: 1.2em;
}

.mentions-container section {
    margin-bottom: 20px;
}

















/* --- 📱 Responsive (Mobile) --- */
/* 📱 Mode Mobile (Tablettes et Smartphones) */
@media (max-width: 768px) {



    
     .container {
            max-width: 100% !important;
      
           
        
        
           
        }

    /* 1. Le Menu Horizontal scrollable */
/* 1. Le Menu Horizontal scrollable (CORRIGÉ) */
.menu-tuto-selection {
        display: grid !important; /* On passe en mode grille */
        /* On crée 3 colonnes de taille identique (1fr) */
        grid-template-columns: repeat(3, 1fr) !important; 
        gap: 8px !important; /* Espace réduit pour que ça tienne */
        padding: 10px !important;
        margin: 10px auto !important;
    }

    .menu-tuto-selection .btn-link {
        min-width: 0 !important; /* On annule la largeur mini du desktop */
        width: 100% !important;
        padding: 10px 5px !important; /* Padding réduit sur les côtés */
        font-size: 0.75rem !important; /* Texte un peu plus petit pour ne pas déborder */
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%; /* Pour que tous les boutons aient la même hauteur */
    }



    /* Étape 3 : Les boutons eux-mêmes */
    .menu-tuto-selection .btn-link {
        flex: 0 0 auto !important; /* Interdiction formelle de rétrécir */
        white-space: nowrap !important; /* Texte sur une seule ligne */
        min-width: 120px; /* Taille minimum pour chaque bouton */
        text-align: center;
    }


.tuto-step, .tuto-step.reverse {
        flex-direction: column; /* On empile texte et image */
        gap: 20px;
        margin-bottom: 50px;
    }

    .tuto-text {
        text-align: center;
    }
        .tuto-text p {
        text-align: justify;
    }

    .tuto-gallery {
        width: 100%;
    }

    /* Sur mobile, même le multi passe en colonne */
    .tuto-gallery.multi {
        flex-direction: column;
    }

    .tuto-gallery.multi img {
        width: 100%;
    }
    /* Cache la barre de scroll pour un look appli */
    .menu-tuto-selection::-webkit-scrollbar {
        display: none;
    }
} /* <--- Cette accolade ferme bien tout le bloc responsive maintenant */

/* 📱 Responsive : On empile tout sur mobile */
@media (max-width: 768px) {
    .suivi-content {
        flex-direction: column;
    }
    .suivi-image {
        max-width: 100%;
    }
    .suivi-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}


/* --- RESPONSIVE DESIGN --- */

@media screen and (max-width: 768px) {
    /* 1. On donne plus d'espace au contenu */
    .formation-content {
        padding: 0 10px; /* On réduit l'espace pour les flèches */
        margin-top: 20px;
    }

    h1 {
        font-size: 1.5rem; /* Titre plus petit sur mobile */
    }

    /* 2. On repositionne les flèches pour qu'elles ne sortent pas de l'écran */
    .prev, .next {
        font-size: 30px;
        padding: 5px;
        top: auto;
        bottom: -10px; /* On place les flèches SOUS l'image sur mobile */
        transform: none;
    }

    .prev { left: 20%; }
    .next { right: 20%; }

    /* 3. On ajuste le slider pour mobile */
    .slider-wrapper {
        max-width: 100%;
        border-radius: 5px;
    }

    .slides img {
        max-height: 60vh; /* Image moins haute pour laisser de la place au reste */
    }

    /* 4. Plein écran (Lightbox) sur mobile */
    .prev-fs, .next-fs {
        font-size: 40px;
        padding: 10px;
    }
    
    #overlayImg {
        max-width: 100%; /* L'image prend toute la largeur en zoom */
    }
    
    .close-overlay {
        top: 10px;
        right: 20px;
    }

    /* 5. Le compteur */
    .numbertext {
        margin-top: 30px; /* On descend le compteur car les flèches sont là */
    }
}

/* --- OPTIMISATION TABLETTE --- */
@media screen and (min-width: 769px) and (max-width: 1100px) {
    .formation-content {
        max-width: 90%;
        padding: 0 50px;
    }
}










/* --- MEDIA QUERIES (RESPONSIVE) --- */

/* Pour les tablettes et mobiles */
@media (max-width: 768px) {
.navbar {
        /* flex-direction: column; <--- C'ÉTAIT ÇA LE PROBLÈME, ON L'ENLÈVE */
        display: flex;
        justify-content: space-between; /* Garde le logo à gauche et burger à droite */
        align-items: center;
        padding: 0 20px;
        height: 70px; /* Assure-toi que la hauteur est fixe */
    }

 .menu-burger {
        display: flex !important; /* On force l'apparition */
    }

    .nav-links {
        position: fixed;
        right: -100%; /* Caché à droite par défaut */
        top: 0;
        height: 80vh;
        width: 60%;
        background-color: var(--mbo-blue);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.5s;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
        z-index: 1000;
    }
    .menu-burger span {
        background-color: #000000; /* Si ta navbar est foncée (#2c3e50), garde blanc */
        /* background-color: #1a3a4a; <-- Si ta navbar est claire, utilise ça */
    }

    .nav-links.active {
        right: 0; /* S'affiche au clic */
        margin-top: 75px;
       
    }

    
    .nav-links li {
        margin: 20px 0;
    }
     

    /* Animation du burger en "X" quand il est ouvert */
    .menu-burger.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .menu-burger.open span:nth-child(2) {
        opacity: 0;
    }
    .menu-burger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .nav-links a {
        display: block;
        padding: 10px;
        background: #f0f7f8;
        border-radius: 5px;
        color: var(--primary-color); /* Assure-toi que le texte est lisible sur le fond clair */
        width: 200px;
        text-align: center;
    }

    .btn-login {
        background: var(--accent-color) !important;
        width: 80%; /* Plus joli sur mobile */
        text-align: center;
    }

    .hero h1 {
        font-size: 2.4rem;
        font-weight: 800;
        text-align: center;
    }
    .hero p {
        font-size: 1.2rem;
        max-width: 90%;
        margin: 0 auto 20px;
        font-weight: 700;
    }
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    
      footer {
        padding: 20px 10px;
    }
    .footer-content p {
        font-size: 0.75rem;
    }
}

/* Pour les très petits écrans (téléphones) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .card {
        padding: 20px;
    }
    .logo2 {
        font-size: 1.9rem !important; /* On réduit la taille du texte */
        width: 100%;       /* On utilise toute la largeur disponible */
        max-width: 100%;
    }
}


/********* css de la page suivid de sav **************/


.container-sav { max-width: 1000px;
     margin: 30px auto;
      background: #fff;
       padding: 40px;
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
         color: #000;
        
        
        }

.button-suiviesav {
    margin-top: 30px; text-align: center;  
    background: var(--accent);
    color: white;
    width: 300px;
    padding: 8px;
    border-radius: 20px;

    font-size: 1.2rem;
    margin: auto;
    margin-bottom: 50px;
}


.main-title { text-align: center; font-weight: bold; font-size: 2rem; margin-bottom: 30px; letter-spacing: 2px; }

.row-flex { display: flex; gap: 20px; margin-bottom: 20px; }
.col-main { flex: 2; }
.col-side { flex: 1.5; }

.input-group { display: flex; align-items: flex-end; margin-bottom: 15px; }
.input-group label { font-weight: bold; margin-right: 10px; white-space: nowrap; }
.input-group input { border: none; border-bottom: 1px dotted #000; flex: 1; padding: 5px; outline: none; }

.grid-2x2 { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #000; }
.cell { border: 0.5px solid #000; padding: 5px; font-size: 0.7rem; font-weight: bold; }
.cell input { width: 100%; border: none; font-size: 0.8rem; outline: none; background: transparent; }

.type-sav-bar { background: #ffb84d; padding: 10px; display: flex; justify-content: space-around; font-weight: bold; font-size: 0.8rem; margin: 20px 0; border: 1px solid #000; }
.box-section { border: 1px solid #000; padding: 10px; margin-top: 10px; position: relative; }
.box-label { font-weight: bold; display: block; margin-bottom: 10px; }
.box-section textarea { width: 100%; border: none; resize: none; outline: none; font-family: inherit; line-height: 1.8; background: repeating-linear-gradient(transparent, transparent 27px, #ccc 28px); }

.btn-submit { 
    background: #1a3a4a; 
    color: white; 
    padding: 15px 30px; 
    border: none; 
    border-radius: 5px; 
    font-size: 1.2rem;
    width: 80%; 
    margin-top: 30px; 
    
    /* LES DEUX LIGNES CLÉS POUR LE CENTRER */
    display: block; 
    margin-left: auto;
    margin-right: auto;

    cursor: pointer; 
    font-weight: bold; 
    transition: 0.3s;
    text-align: center; 
}
.btn-submit:hover { background: #ff7e67; }

@media (max-width: 768px) {
    .row-flex { flex-direction: column; }
    .container-sav { padding: 15px; }
}


.container-suivi { max-width: 1200px; margin: 30px auto; padding: 20px; }
.table-responsive { overflow-x: auto; background: white; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

table { width: 100%; border-collapse: collapse; min-width: 100% !important; }
th { background: #1a3a4a; color: white; padding: 15px; text-align: left; font-size: 0.9rem; }
td { padding: 12px; border-bottom: 1px solid #eee; vertical-align: middle; }

/* Styles des états */
.status-badge { padding: 5px 10px; border-radius: 4px; font-weight: bold; font-size: 0.8rem; border: none; cursor: pointer; }



.etat-enregistre { background: #dfe6e9; color: #636e72;width: 200Px }    /* Gris (Début) */
.etat-charge { background: #81ecec; color: #0097e6;width: 200Px }        /* Bleu clair */
.etat-faite { background: #ffeaa7; color: #d35400; width: 200Px}         /* Jaune/Orange */
.etat-retour-ok { background: #a29bfe; color: #6c5ce7; width: 200Px}     /* Violet (Info reçue) */
.etat-cours { background: #fab1a0; color: #e17055; width: 200Px}         /* Corail/Orange foncé */
.etat-recu { background: #55efc4; color: #00b894;width: 200Px }          /* Vert (Terminé) */









.comment-input { width: 100%; border: 1px solid #ddd; padding: 5px; border-radius: 4px; }
.btn-save { background: #1a3a4a; color: white; border: none; padding: 5px 10px; border-radius: 4px; cursor: pointer; }


/* La boîte noire de fond */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
}

/* Le contenu de la fenêtre */
.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-content textarea {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.toast-success {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #27ae60;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 2000;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein { from {bottom: 0; opacity: 0;} to {bottom: 20px; opacity: 1;} }
@keyframes fadeout { from {bottom: 20px; opacity: 1;} to {bottom: 0; opacity: 0;} }



/******* css du suivi de command et de pose ***********/


/* Pour uniformiser les champs date dans le tableau */
.table-suivi input[type="date"] {
    font-size: 11px; /* Un peu plus petit pour que ça tienne */
    cursor: pointer;
    text-transform: uppercase;
}

/* Supprime l'icône calendrier sur certains navigateurs si tu veux gagner de la place */
.table-suivi input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
}
.table-suivi input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}


.aide-colonnes {
    margin-top: 40px;
    background: #fdfdfd;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e1e8ed;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.aide-colonnes h3 {
    margin-top: 0;
    color: #1a3a4a;
    font-size: 18px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.grille-aide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.groupe-aide {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    margin-bottom: 12px;
    color: white;
}

/* Couleurs des badges */
.badge-client { background-color: #3498db; } /* Bleu */
.badge-cde    { background-color: #f39c12; } /* Orange */
.badge-pose   { background-color: #2ecc71; } /* Vert */
.badge-sav    { background-color: #e74c3c; } /* Rouge */

.item-aide {
    font-size: 12px;
    color: #4a5568;
    margin-bottom: 8px;
    line-height: 1.5;
    border-bottom: 1px dashed #f0f0f0;
    padding-bottom: 4px;
}

.item-aide:last-child { border-bottom: none; }

.item-aide strong {
    color: #2d3748;
    font-weight: 600;
}

.table-suivi tbody tr:hover {
    background-color: #f0f7ff !important;
    transition: background-color 0.2s ease;
}

/* Donne un style un peu plus "bouton" aux sélecteurs (OUI/NON) */
.table-suivi select {
    cursor: pointer;
    font-weight: bold;
    color: #1a3a4a;
}

/* Couleurs dynamiques pour le tableau */
.select-non { background-color: #ffe5e5 !important; color: #d63031 !important; font-weight: bold; border-radius: 4px; }
.select-oui { background-color: #dff9fb !important; color: #27ae60 !important; font-weight: bold; border-radius: 4px; }

.date-vide { color: #e74c3c !important; font-weight: bold; }
.date-remplie { color: #27ae60 !important; font-weight: bold; }

/* Petit ajustement pour que les inputs date soient bien lisibles */
.table-suivi input[type="date"] { cursor: pointer; }

.search-container {
    margin-bottom: 20px;
    text-align: left;
    margin-left: 20px;
}

#search-input {
    width: 100%;
    max-width: 400px;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

#search-input:focus {
    border-color: #1a3a4a;
    background-color: #fff;
}

.btn-archive { 
    color: #f39c12; 
    cursor: pointer; 
    font-weight: bold; 
    border: none; 
    background: none; 
    font-size: 18px; 
    margin-right: 10px;
}
.btn-archive:hover { transform: scale(1.2); }