/* --- 1. RESET ET BASES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1; /* Pousse le footer vers le bas */
}

/* --- 2. VARIABLES COULEURS --- */
:root {
    --ps-green: #64A70B;       /* Vert Panier Sympa */
    --ps-grey: #707372;        /* Gris principal */
    --ps-dark-grey: #5A5A5A;   /* Gris foncé */
}

/* --- 3. HEADER GLOBAL --- */
header {
    background-color: var(--ps-grey);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-left { display: flex; align-items: center; gap: 15px; }
.hamburger { font-size: 24px; cursor: pointer; }

/* Logo Image */
.logo-link { text-decoration: none; display: flex; align-items: center; }
.header-logo-img { height: 50px; width: auto; object-fit: contain; }

/* Barre de recherche */
.search-bar {
    flex-grow: 1;
    margin: 0 20px;
    position: relative;
    max-width: 500px;
}
.search-bar input {
    width: 100%;
    padding: 10px 15px;
    border-radius: 4px;
    border: none;
    outline: none;
}
.search-icon {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    color: #333; cursor: pointer;
}

/* Droite du header */
.header-right { display: flex; align-items: center; gap: 20px; }
.header-icon { display: flex; align-items: center; gap: 5px; font-size: 18px; cursor: pointer; text-decoration: none; color: white;}
.price { font-weight: bold; font-size: 16px; }

/* --- 4. SECTION HERO (ACCUEIL) --- */
.hero-section {
    position: relative; width: 100%; height: 450px; overflow: hidden; background-color: #ddd;
}
.hero-bg-image {
    width: 100%; height: 100%; object-fit: cover;
    background-image: url('images/devanture-panier-sympa.jpg'); 
    background-position: center; background-size: cover;
}
.info-box {
    position: absolute; top: 50%; left: 10%; transform: translateY(-50%);
    background-color: var(--ps-dark-grey); width: 380px; padding: 0 0 30px 0;
    color: white; box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.info-title {
    background-color: var(--ps-green); display: inline-block; padding: 15px 40px 15px 30px;
    font-size: 20px; font-weight: bold; margin-top: 30px; margin-left: -30px;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.2); margin-bottom: 20px;
}
.info-text { padding: 0 40px 30px 40px; font-size: 15px; line-height: 1.6; }

.btn-savoir-plus {
    display: inline-flex; align-items: center; background-color: white; color: var(--ps-green);
    text-decoration: none; padding: 10px 25px; border-radius: 50px; font-weight: bold; margin-left: 40px; font-size: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2); transition: transform 0.2s;
}
.btn-savoir-plus i { margin-left: 10px; font-size: 18px; }
.btn-savoir-plus:hover { transform: scale(1.05); }

/* --- 5. SECTION VIDEO --- */
.video-section {
    text-align: center; margin-top: 0; padding-bottom: 60px;
    background: linear-gradient(to bottom, #7cbd42 0%, #64A70B 100%);
}
.video-titles { display: flex; flex-direction: column; align-items: center; transform: translateY(-50%); position: relative; z-index: 10; }
.title-green { background-color: var(--ps-green); color: white; padding: 10px 40px; font-size: 20px; font-weight: bold; text-transform: uppercase; }
.title-grey { background-color: var(--ps-grey); color: white; padding: 5px 30px; font-size: 16px; margin-top: 0; }
.video-container { width: 80%; max-width: 800px; margin: 0 auto; position: relative; z-index: 5; padding-top: 30px; }
.video-placeholder {
    width: 100%; height: 400px; background-color: #333;
    background-image: url('images/rayon-panier-sympa.jpg'); 
    background-size: cover; display: flex; align-items: center; justify-content: center; position: relative;
}
.play-button { width: 60px; height: 60px; background-color: rgba(0,0,0,0.6); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 24px; cursor: pointer; }

/* --- 6. SECTION NOS VALEURS --- */
.values-section {
    background: linear-gradient(to bottom, #85c341 0%, #64A70B 100%);
    padding: 60px 20px; 
    display: flex; flex-direction: column; align-items: center;
}
.values-header-box {
    background-color: var(--ps-grey); color: white; text-align: center;
    padding: 40px; max-width: 800px; position: relative; margin-bottom: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.values-title-badge {
    background-color: var(--ps-green); color: white; font-weight: bold; font-size: 22px;
    padding: 15px 40px; position: absolute; top: -25px; left: 50%; transform: translateX(-50%);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.values-intro-text { margin-top: 10px; font-size: 16px; line-height: 1.5; }

.values-cards-container { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; max-width: 1200px; }
.value-card {
    background-color: var(--ps-grey); color: white; width: 300px; padding: 0 0 30px 0;
    border-radius: 15px; text-align: center; position: relative; margin-top: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.value-icon-circle {
    width: 70px; height: 70px; background-color: #64A70B; border: 3px solid white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 28px; color: white;
    margin: -35px auto 20px auto; box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.value-card-title { background-color: var(--ps-green); display: inline-block; padding: 10px 20px; font-weight: bold; margin-bottom: 20px; font-size: 17px; border-radius: 4px; }
.value-card-text { padding: 0 20px; font-size: 13px; line-height: 1.4; }

/* --- 7. SECTION MDD (ACCUEIL) --- */
.mdd-section {
    position: relative; background-color: #eee;
    background-image: url('images/rayon-panier-sympa.jpg');
    background-size: cover; background-position: center; padding: 60px 20px;
    display: flex; flex-direction: column; align-items: center;
}
.mdd-content-wrapper { width: 100%; max-width: 1000px; display: flex; flex-direction: column; }

.mdd-header { 
    display: flex; justify-content: flex-start; align-self: flex-start; 
    margin-bottom: 30px; box-shadow: 0 4px 8px rgba(0,0,0,0.4); 
}
.mdd-badge-green { background-color: var(--ps-green); color: white; font-weight: bold; font-size: 20px; padding: 12px 25px; text-transform: uppercase; }
.mdd-badge-grey { background-color: var(--ps-grey); color: white; font-weight: bold; font-size: 20px; padding: 12px 30px; }

.mdd-logos-container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; width: 100%; }
.mdd-card {
    background-color: white; border-radius: 15px; border: 3px solid var(--ps-green);
    width: 220px; height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 20px; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s; flex-grow: 1; max-width: 230px;
}
.mdd-card:hover { transform: translateY(-5px); }
.mdd-card img { width: auto; max-width: 90%; height: 90px; object-fit: contain; margin-bottom: 20px; }
.mdd-card-title { font-weight: bold; color: black; font-size: 17px; line-height: 1.3; }

.mdd-btn-container { text-align: center; width: 100%; margin-top: 10px;}
.btn-white-green {
    background-color: white; color: var(--ps-green); font-weight: bold; padding: 12px 35px;
    border-radius: 50px; text-decoration: none; font-size: 16px; display: inline-flex; align-items: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2); transition: transform 0.2s;
}
.btn-white-green:hover { transform: scale(1.05); }

/* --- 8. FOOTER --- */
footer { width: 100%; margin-top: 50px; font-size: 14px; }
.footer-top { background-color: #f9f9f9; color: #333; padding: 40px 20px; border-top: 1px solid #ddd; }
.footer-container { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 30px; }
.footer-col { flex: 1; min-width: 200px; }
.footer-col p { margin-bottom: 10px; line-height: 1.5; }
.footer-logo { max-width: 180px; height: auto; }
.partner-logo { max-width: 120px; margin-top: 10px; }
.social-block { margin-top: 15px; }
.social-icons { display: flex; gap: 15px; margin-top: 5px; }
.social-icons a { color: #333; font-size: 24px; text-decoration: none; transition: color 0.3s; }
.social-icons a:hover { color: var(--ps-green); }
.footer-bottom { background-color: var(--ps-grey); color: white; padding: 20px; text-align: center; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; }
.footer-links a { color: white; text-decoration: none; font-weight: bold; font-size: 14px; }
.footer-links a:hover { text-decoration: underline; color: #ddd; }

/* --- 9. MENU SIDENAV --- */
.sidenav {
    height: 100%; width: 280px; position: fixed; z-index: 2000; top: 0; left: -280px;
    background-color: white; box-shadow: 2px 0 5px rgba(0,0,0,0.5); transition: 0.3s ease-in-out;
    overflow-y: auto;
}
.sidenav.active { left: 0; }
.sidenav-header { background-color: var(--ps-grey); color: white; padding: 20px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.sidenav-title { font-weight: bold; font-size: 20px; text-transform: uppercase; }
.closebtn { text-decoration: none; color: white; font-size: 30px; font-weight: bold; cursor: pointer; }
.sidenav a:not(.closebtn) { padding: 15px 25px; text-decoration: none; font-size: 16px; color: #333; display: block; transition: 0.2s; border-left: 5px solid transparent; }
.sidenav a:not(.closebtn):hover { background-color: #f4f4f4; border-left: 5px solid var(--ps-green); color: var(--ps-green); }
.sidenav i { width: 30px; color: var(--ps-grey); }
.sidenav hr { margin: 10px 0; border: 0; border-top: 1px solid #eee; }
.overlay { position: fixed; display: none; width: 100%; height: 100%; top: 0; left: 0; background-color: rgba(0,0,0,0.5); z-index: 1500; cursor: pointer; }
.overlay.active { display: block; }

/* --- 10. RESPONSIVE --- */
@media (max-width: 768px) {
    .header-left .logo-text, .search-bar { display: none; }
    .info-box { position: relative; top: auto; left: auto; transform: none; width: 90%; margin: -50px auto 0 auto; }
    .hero-section { height: 250px; }
    .values-cards-container { flex-direction: column; align-items: center; }
    .mdd-header { margin-left: 10px; } 
    .mdd-logos-container { justify-content: center; }
    .footer-container { flex-direction: column; align-items: center; text-align: center; }
    .footer-links { flex-direction: column; gap: 15px; }
    .social-icons { justify-content: center; }
}

/* --- 11. PAGES LOGIN & INSCRIPTION (FORMS) --- */
.login-page-container {
    display: flex; height: calc(100vh - 70px); width: 100%;
}
.login-image-side {
    flex: 1; 
    background-image: url('https://www.lsa-conso.fr/mediatheque/3/7/9/000629973_896x598_c.jpg');
    background-size: cover; background-position: center;
}
.login-form-side {
    flex: 1; background-color: var(--ps-green);
    display: flex; justify-content: center; align-items: center; position: relative; padding: 20px;
}
/* Le bouton "Retour" */
.btn-retour {
    position: absolute; top: 30px; left: 30px;
    background-color: white; color: var(--ps-green); padding: 8px 20px; border-radius: 20px;
    text-decoration: none; font-weight: bold; font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); 
    display: flex; align-items: center; gap: 8px; line-height: 1;
    transition: transform 0.2s;
}
.btn-retour:hover { transform: scale(1.05); }

.login-card {
    background-color: white; width: 100%; max-width: 450px; padding: 40px;
    border-radius: 30px; box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.login-card h1 { font-size: 24px; margin-bottom: 30px; color: black; font-weight: bold; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 14px; }
.required { color: var(--ps-green); }
.form-group input { width: 100%; padding: 12px 15px; border: 1px solid #ccc; border-radius: 8px; font-size: 16px; outline: none; }
.form-group input:focus { border-color: var(--ps-green); }
.forgot-password { text-align: center; margin-bottom: 25px; }
.forgot-password a { color: #333; font-size: 13px; text-decoration: none; }
.forgot-password a:hover { text-decoration: underline; }
.required-note { margin-top: 20px; font-size: 12px; color: var(--ps-green); }

/* BOUTONS CONNEXION / INSCRIPTION UNIFIÉS */
.btn-login-submit {
    width: 100%; background-color: var(--ps-green); color: white; border: none; padding: 12px;
    border-radius: 25px; font-size: 16px; font-weight: bold; cursor: pointer; margin-bottom: 15px; transition: background-color 0.2s;
    display: flex; justify-content: center; align-items: center;
}
.btn-login-submit:hover { background-color: #558e09; }

.btn-login-register {
    width: 100%; background-color: white; color: black; border: 1px solid #333; padding: 12px;
    border-radius: 25px; font-size: 16px; font-weight: bold; cursor: pointer;
    text-decoration: none; transition: background-color 0.2s;
    display: flex; justify-content: center; align-items: center; box-sizing: border-box; 
}
.btn-login-register:hover { background-color: #f9f9f9; }

@media (max-width: 768px) {
    .login-page-container { flex-direction: column; height: auto; }
    .login-image-side { display: none; }
    .login-form-side { height: calc(100vh - 70px); }
    .btn-retour { top: 20px; left: 20px; }
}

/* --- 12. PAGE SERVICES (ET STRUCTURE POUR PAGE MDD) --- */

/* La bannière Hero */
.services-hero {
    height: 300px;
    /* Image par défaut (Services) */
    background-image: url('images/services-bannière.png'); 
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Overlay sombre/blanc léger si besoin */
.services-hero::before {
    content: "";
    position: absolute; top:0; left:0; right:0; bottom:0;
    background: rgba(0,0,0,0.3); /* Filtre sombre pour texte blanc */
}

.services-hero-content {
    position: relative; z-index: 2;
    color: white; text-align: center;
}
.services-hero-content h1 {
    font-size: 48px; font-weight: bold; text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    text-transform: uppercase;
}

/* Liste de contenu (Services & Marques) */
.services-list-section {
    padding: 50px 20px;
    background-color: white;
}
.services-intro-title {
    text-align: center; font-size: 28px; font-weight: bold;
    margin-bottom: 60px; max-width: 800px; margin-left: auto; margin-right: auto;
}
.services-container { max-width: 1000px; margin: 0 auto; }

.service-item {
    display: flex; align-items: center; gap: 40px; margin-bottom: 30px;
}
.service-img {
    flex: 0 0 250px; display: flex; justify-content: center;
}
.service-img img {
    width: 100%; max-width: 200px; height: auto; object-fit: contain;
}
.service-text { flex: 1; }
.service-text h3 {
    font-size: 24px; font-weight: bold; margin-bottom: 15px; color: black;
}
.service-text p { font-size: 16px; line-height: 1.6; color: #333; }

.service-separator {
    border: 0; border-top: 2px solid var(--ps-green); width: 100%; margin: 40px 0;
}

/* Responsive Services/MDD */
@media (max-width: 768px) {
    .service-item { flex-direction: column; text-align: center; }
    .service-img { flex: auto; margin-bottom: 20px; }
    .services-hero h1 { font-size: 32px; }
    .services-intro-title { font-size: 22px; }
}

/* --- 13. SPÉCIFIQUE PAGE MDD (NOS MARQUES) --- */

/* Permet de changer l'image de fond pour la page Marques */
.mdd-hero-bg {
    /* Mettez ici le nom de votre image pour la page Marques */
    background-image: url('images/mdd-bannière.png'); 
}

/* --- 14. PAGE MENTIONS LEGALES & PAGES TEXTE --- */

.legal-page-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.legal-page-container h1 {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 50px;
    color: black;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-size: 18px;
    text-transform: uppercase;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ps-green); /* Soulignement vert Panier Sympa */
}

.legal-section p {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 10px;
    text-align: justify;
}

.legal-section strong {
    color: black;
    font-weight: 700;
}

/* Style pour mettre en évidence le lien actif dans le menu burger (optionnel) */
.sidenav a.active-link {
    background-color: #f4f4f4;
    border-left: 5px solid var(--ps-green);
    color: var(--ps-green);
}

@media (max-width: 768px) {
    .legal-page-container {
        margin: 20px;
        padding: 20px;
    }
    .legal-page-container h1 {
        font-size: 28px;
    }
}

/* --- 15. PAGE CONTACT --- */

/* Image de fond spécifique pour le header contact */
.contact-hero-bg {
    background-image: url('images/contactez-bannière.png'); 
}

.contact-section {
    background-color: white;
    padding: 60px 20px;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-section-title {
    font-size: 22px;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 25px;
    color: black;
}

/* Boutons Radio (Profil) */
.radio-group {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 16px;
}
.radio-label input[type="radio"] {
    accent-color: var(--ps-green); /* Couleur verte pour le bouton */
    width: 18px; height: 18px;
}

/* Mise en page Colonnes (Nom/Prénom, etc.) */
.form-row-contact {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
}
.form-col-contact {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.full-width {
    width: 100%;
}

/* Labels */
.form-col-contact label {
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 15px;
}

/* Inputs Soulignés (Style Contact) */
.input-line {
    border: none;
    border-bottom: 1px solid #999;
    padding: 8px 0;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
    background: transparent;
    width: 100%;
}
.input-line:focus {
    border-bottom: 2px solid var(--ps-green);
}

/* Textarea Message */
.textarea-line {
    min-height: 100px;
    resize: vertical;
    margin-top: 20px; /* Espace après le label */
}

/* --- Ajout Style Fichiers (CV/LM) --- */
.file-input {
    margin-top: 10px;
    font-size: 15px;
    color: #555;
}

/* On stylise le bouton natif "Choisir un fichier" */
.file-input::file-selector-button {
    background-color: #f4f4f4;
    border: 1px solid #999;
    padding: 8px 15px;
    border-radius: 20px; /* Bordures arrondies comme nos autres boutons */
    cursor: pointer;
    font-weight: bold;
    color: #333;
    transition: all 0.2s ease-in-out;
    margin-right: 15px; /* Espace entre le bouton et le nom du fichier */
}

.file-input::file-selector-button:hover {
    background-color: var(--ps-green);
    color: white;
    border-color: var(--ps-green);
}

/* Bouton Envoyer Vert */
.contact-submit-wrapper {
    margin-top: 40px;
}
.btn-contact-submit {
    background-color: var(--ps-green);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}
.btn-contact-submit:hover {
    background-color: #558e09;
}

/* Responsive Mobile Contact */
@media (max-width: 768px) {
    .form-row-contact {
        flex-direction: column;
        gap: 20px;
    }
    .radio-group {
        flex-direction: column;
        gap: 15px;
    }
}

/* --- 16. PAGE GESTION DES COOKIES --- */

.cookies-page-container {
    max-width: 800px; margin: 40px auto; padding: 20px; text-align: center;
}
.cookies-page-container h1 {
    font-size: 36px; font-weight: bold; margin-bottom: 40px; color: black;
}
.cookie-panel {
    background-color: white; border: 1px solid #ccc; text-align: left;
    max-width: 600px; margin: 0 auto; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.cookie-header {
    padding: 20px; background-color: #f9f9f9; border-bottom: 1px solid #ddd;
}
.cookie-logo { max-width: 150px; height: auto; }
.cookie-body {
    padding: 20px; border-bottom: 2px solid black;
}
.cookie-body h2 { font-size: 18px; font-weight: bold; margin-bottom: 10px; color: black; }
.cookie-body p { font-size: 13px; line-height: 1.5; color: #333; margin-bottom: 20px; }

.btn-cookie-accept-all {
    background-color: #64A70B; color: white; border: none; padding: 10px 20px;
    font-weight: bold; font-size: 14px; cursor: pointer; width: 100%; max-width: 200px;
}

/* Liste des options */
.cookie-options-list { background-color: white; }
.cookie-option-item {
    display: flex; justify-content: space-between; align-items: center; padding: 15px 20px;
}
.border-top { border-top: 1px solid #ddd; }

/* NOUVEAU : Curseur pointeur pour indiquer que c'est cliquable */
.cookie-option-info {
    display: flex; align-items: center; gap: 15px;
    cursor: pointer; 
    user-select: none;
}
.cookie-icon {
    font-size: 24px; font-weight: 300; width: 20px; text-align: center;
}
.cookie-icon.minus { margin-top: -5px; } 

/* NOUVEAU : Les descriptions sont cachées par défaut (display: none) */
.cookie-option-desc {
    padding: 0 20px 20px 55px; 
    font-size: 12px; color: #666; background-color: #f9f9f9;
    border-bottom: 1px solid #ddd;
    display: none; 
}
/* La classe active révèle le texte */
.cookie-option-desc.active {
    display: block;
}

.status-text { color: #64A70B; font-size: 12px; font-weight: bold; }

/* Le Toggle Switch (Interrupteur) */
.switch { position: relative; display: inline-block; width: 50px; height: 28px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc; transition: .4s;
}
.slider:before {
    position: absolute; content: ""; height: 24px; width: 24px; left: 2px; bottom: 2px;
    background-color: white; transition: .4s;
}
input:checked + .slider { background-color: #64A70B; }
input:checked + .slider:before { transform: translateX(22px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

/* Footer Actions */
.cookie-footer-actions {
    padding: 20px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid #ddd;
}
.btn-cookie-refuse, .btn-cookie-confirm {
    background-color: #64A70B; color: white; border: none; padding: 10px 20px;
    font-weight: bold; font-size: 14px; cursor: pointer;
}
.btn-cookie-refuse:hover, .btn-cookie-confirm:hover, .btn-cookie-accept-all:hover {
    background-color: #558e09;
}

@media (max-width: 600px) {
    .cookie-footer-actions { flex-direction: column; }
    .btn-cookie-refuse, .btn-cookie-confirm, .btn-cookie-accept-all {
        width: 100%; max-width: none;
    }
}

/* --- 17. PAGE PANIER --- */

.panier-page-bg {
    background-color: #d1d5d6; /* Le fond gris clair de votre image */
    display: flex;
    flex-direction: column;
}

.panier-top-bar {
    background-color: white;
    padding: 15px 30px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 3px solid black;
    border-radius: 50%;
    color: black;
    text-decoration: none;
    font-size: 22px;
    transition: transform 0.2s;
}
.back-btn:hover {
    transform: scale(1.1);
    background-color: #f4f4f4;
}

.panier-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    flex: 1; /* Prend le reste de la hauteur */
}

.empty-cart-card {
    background-color: white;
    width: 100%;
    max-width: 800px;
    padding: 80px 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.empty-cart-icon {
    font-size: 70px;
    color: black;
    margin-bottom: 25px;
}

.empty-cart-card h2 {
    font-size: 22px;
    font-weight: bold;
    color: black;
    margin-bottom: 35px;
}

.btn-start-shopping {
    background-color: var(--ps-green);
    color: white;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    display: inline-block;
    transition: background-color 0.2s;
}

.btn-start-shopping:hover {
    background-color: #558e09;
}

/* --- 18. PAGE COMMANDES (ADMIN) --- */

.bg-grey-admin {
    background-color: #d1d5d6; /* Fond gris spécifique à cette page */
}

/* Barre du haut (Bouton retour + Filtres) */
.admin-top-bar {
    background-color: white;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.back-btn-admin {
    display: inline-flex; justify-content: center; align-items: center;
    width: 45px; height: 45px; border: 3px solid black; border-radius: 50%;
    color: black; text-decoration: none; font-size: 22px; transition: transform 0.2s;
}
.back-btn-admin:hover { transform: scale(1.1); background-color: #f4f4f4; }

.filter-buttons {
    display: flex; gap: 15px; flex-wrap: wrap;
}
.filter-btn {
    background-color: white; border: 2px solid black; border-radius: 10px;
    padding: 8px 20px; font-size: 15px; font-weight: 500; cursor: pointer; transition: 0.2s;
}
.filter-btn:hover, .filter-btn.active {
    background-color: #f4f4f4; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Conteneur des commandes */
.orders-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* CARTE COMMANDE */
.order-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Header des cartes (Couleurs dynamiques) */
.order-header {
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}
.header-red { background-color: #f93b58; }
.header-orange { background-color: #df6a18; }
.header-green { background-color: #52b747; }
.header-grey { background-color: #707372; }

.order-user-info { display: flex; align-items: center; gap: 15px; }
.user-avatar { font-size: 40px; color: rgba(255,255,255,0.8); }
.order-meta { display: flex; flex-direction: column; font-size: 15px; }
.order-title { font-size: 18px; margin-bottom: 3px; }

/* Badges de statut */
.status-badge {
    background-color: white; border-radius: 20px; padding: 5px 15px;
    font-weight: bold; font-size: 14px; display: flex; align-items: center; gap: 8px;
}
.badge-red { color: #f93b58; }
.badge-orange { color: #df6a18; }
.badge-green { color: #52b747; }
.badge-grey { color: #707372; }

.status-dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background-color: #f93b58; }
.dot-orange { background-color: #df6a18; }
.dot-green { background-color: #52b747; }
.dot-grey { background-color: #707372; }

/* Corps de la carte */
.order-body {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}
.order-products-col { flex: 1; }
.products-count { font-size: 16px; margin-bottom: 10px; color: #333; }

/* Boîte des produits */
.products-box {
    border: 2px solid black;
    border-radius: 10px;
    padding: 15px;
    font-size: 12px;
    line-height: 1.6;
    color: black;
    position: relative;
    background-color: #fbfbfb;
}
.products-box p { margin-bottom: 5px; }
.plus-text {
    text-align: right; color: #666; font-style: italic; font-size: 11px; margin-top: 5px;
}

/* Actions et Prix */
.order-actions-col {
    display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end;
    min-width: 200px;
}
.order-price { font-size: 20px; font-weight: bold; color: black; margin-top: 30px;}
.order-price span { font-size: 22px; }
.disabled-price { color: #888; } /* Pour la carte grisée */

.action-buttons { display: flex; gap: 10px; }
.btn-signaler {
    background-color: #df6a18; color: white; border: none; padding: 8px 15px;
    border-radius: 20px; cursor: pointer; font-weight: bold; transition: 0.2s;
}
.btn-details {
    background-color: white; color: black; border: 1px solid #ccc; padding: 8px 15px;
    border-radius: 20px; cursor: pointer; font-weight: bold; transition: 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.btn-signaler:hover { background-color: #c55a12; }
.btn-details:hover { background-color: #f4f4f4; }

.btn-payer {
    background-color: #707372; color: white; border: none; padding: 10px 40px;
    border-radius: 10px; font-weight: bold; font-size: 16px; cursor: pointer;
    margin-top: 10px; transition: 0.2s; width: 100%;
}
.btn-payer:hover { background-color: #5A5A5A; }

@media (max-width: 768px) {
    .order-body { flex-direction: column; }
    .order-actions-col { align-items: flex-start; margin-top: 15px; }
    .order-price { margin-top: 0; margin-bottom: 15px;}
}

/* --- 19. PAGE SONDAGE --- */

.sondage-page-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.sondage-page-container h1 {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 50px;
    color: black;
}

.sondage-question {
    font-size: 18px;
    font-weight: bold;
    color: black;
    margin-bottom: 20px;
    margin-top: 50px;
}

/* Les Tableaux */
.sondage-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.sondage-table th, 
.sondage-table td {
    border: 1px solid #000;
    padding: 12px 15px;
    text-align: left;
    font-size: 15px;
    color: black;
}

.sondage-table th {
    font-weight: normal;
}

.col-oui {
    width: 60px;
    text-align: center !important;
}

.center-td {
    text-align: center !important;
}

/* Cases à cocher (Radios) */
.sondage-table input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--ps-green);
}

/* Champs textes invisibles dans les tableaux */
.sondage-table input[type="text"] {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
}

/* Zone de texte libre (Question 4) */
.sondage-textarea {
    width: 100%;
    min-height: 150px;
    border: 1px solid #000;
    padding: 15px;
    font-size: 15px;
    resize: vertical;
    outline: none;
}

/* Bouton Envoyer */
.sondage-submit-wrapper {
    display: flex;
    justify-content: flex-end; /* Aligné à droite */
    margin-top: 50px;
}

.btn-sondage-submit {
    background-color: var(--ps-green);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-sondage-submit:hover {
    background-color: #558e09;
}

@media (max-width: 768px) {
    .sondage-page-container {
        margin: 20px;
        padding: 20px;
    }
    
    /* Permettre le défilement horizontal du tableau sur petit écran */
    .sondage-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* --- 20. PAGE NOS PRODUITS --- */

.bg-grey-products { background-color: #d1d5d6; }
.products-hero-bg { background-image: url('images/rayon-panier-sympa.jpg'); }

/* Barre de filtres verte */
.products-filter-bar { background-color: var(--ps-green); padding: 15px 20px; display: flex; gap: 15px; align-items: center; overflow-x: auto; }
.filter-pill { background-color: white; color: black; border: 2px solid transparent; padding: 8px 20px; border-radius: 25px; font-size: 15px; font-weight: 500; cursor: pointer; display: flex; align-items: center; gap: 8px; white-space: nowrap; transition: 0.2s; }
.filter-pill.active { border-color: black; font-weight: bold; }
.filter-pill:hover { background-color: #f4f4f4; }

/* Pagination Globale */
.pagination-bar { background-color: white; display: flex; justify-content: center; align-items: center; padding: 15px 20px; gap: 20px; }
.page-btn { border: 1.5px solid black; padding: 6px 15px; border-radius: 20px; text-decoration: none; color: black; font-weight: 500; display: flex; align-items: center; gap: 8px; transition: 0.2s; }
.page-btn:hover:not(.disabled) { background-color: #f4f4f4; }
.page-numbers { display: flex; gap: 15px; align-items: center; font-size: 16px; }
.page-numbers a { text-decoration: none; color: black; }
.page-numbers a:hover { color: var(--ps-green); font-weight: bold; }

/* --- Styles Dynamiques Pagination --- */
.page-numbers a.active { color: var(--ps-green); font-weight: bold; font-size: 18px; }
.page-btn.disabled { color: #aaa; border-color: #ddd; background-color: #fbfbfb; cursor: not-allowed; pointer-events: none; }

/* Grille des produits */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; padding: 30px 20px; max-width: 1200px; margin: 0 auto; }

/* Carte Produit */
.product-card { background-color: white; border-radius: 15px; padding: 20px; display: flex; flex-direction: column; text-decoration: none; color: black; position: relative; box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: transform 0.2s, box-shadow 0.2s; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 8px 15px rgba(0,0,0,0.1); }

/* Badges Promo/Nouveau */
.product-badge { position: absolute; top: 0; left: 0; padding: 5px 15px; color: white; font-weight: bold; font-size: 13px; border-bottom-right-radius: 15px; border-top-left-radius: 15px; z-index: 2; }
.badge-promo { background-color: var(--ps-green); }
.badge-nouveau { background-color: #df6a18; }

/* Image et Textes */
.product-img { width: 100%; height: 180px; object-fit: contain; margin-bottom: 15px; }
.product-name { font-size: 15px; line-height: 1.4; flex-grow: 1; margin-bottom: 20px; }

/* Bas de la carte (Poids + Prix) */
.product-bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.product-weight { border: 1px solid #999; padding: 2px 6px; border-radius: 4px; font-size: 11px; color: #555; }
.product-pricing { text-align: right; }
.current-price { color: var(--ps-green); font-size: 18px; font-weight: bold; }
.promo-info { display: flex; align-items: center; justify-content: flex-end; gap: 5px; margin-bottom: 2px; }
.promo-percent { background-color: var(--ps-green); color: white; border-radius: 10px; padding: 2px 6px; font-size: 10px; font-weight: bold; }
.old-price { text-decoration: line-through; color: #999; font-size: 12px; }

/* --- LE GRAND PANNEAU "PLUS DE FILTRES" --- */
.extended-filters-panel {
    background-color: white;
    border-bottom: 2px solid var(--ps-green);
    display: none; /* Caché par défaut */
    padding: 25px 20px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
}
.extended-filters-panel.show {
    display: block; /* Affiché quand on clique */
}
.extended-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}
.extended-filter-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    background-color: #f9f9f9;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #eee;
}
.extended-filter-btn i {
    color: var(--ps-green);
    font-size: 20px;
    width: 25px; /* Largeur fixe pour aligner parfaitement tous les textes */
    text-align: center;
}
.extended-filter-btn:hover, .extended-filter-btn.active {
    background-color: #eaf3e1;
    border-color: var(--ps-green);
    color: var(--ps-green);
    transform: translateY(-2px);
}

