/* public/assets/css/style.css */

/* --- 1. CONFIGURATION & VARIABLES --- */
@font-face {
    font-family: 'AntiqueOliveCondensed';
    src: url('../fonts/AntiqueOliveCompact.woff2') format('woff2');
    font-weight: normal; font-style: normal;
}
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;700&display=swap');

:root {
    /* --- PALETTE "ORGANIC TECH" --- */
    --c-forest-dark: #122822;   /* Textes, Titres, Footer */
    --c-forest-main: #1F453B;   /* Vert principal */
    --c-forest-light: #E6EFEC;  /* Fond vert très pâle (Sage) */
    
    --c-terra-main: #D96C4A;    /* Orange Terracotta (Actions) */
    --c-terra-hover: #C55B3B;
    
    --c-white: #FFFFFF;
    --c-border: #D1D9D6;        /* Couleur des lignes de séparation */
    
    /* --- STRUCTURE --- */
    --max-width: 1300px;
    --header-height: 80px;
    
    /* --- TYPO --- */
    --font-head: 'AntiqueOliveCondensed', sans-serif;
    --font-body: 'Manrope', sans-serif;
}

/* Reset de base */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--c-white);
    color: var(--c-forest-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; }

/* --- 2. TYPOGRAPHIE --- */
h1, h2, h3, h4 {
    font-family: var(--font-head);
    text-transform: uppercase;
    font-weight: 400;
    line-height: 1;
}

.text-display {
    font-size: clamp(3.5rem, 6vw, 5.5rem); /* Responsive text */
    letter-spacing: -1px;
    color: var(--c-forest-dark);
}

.text-section {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.text-lead {
    font-size: 1.25rem;
    opacity: 0.85;
    max-width: 600px;
}

/* --- 3. COMPOSANTS UI --- */

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--c-terra-main);
    color: var(--c-white);
}
.btn-primary:hover {
    background-color: var(--c-terra-hover);
    transform: translateY(-2px); /* Léger lift */
}

.btn-secondary {
    background-color: var(--c-forest-dark);
    color: var(--c-white);
}
.btn-secondary:hover {
    background-color: var(--c-forest-main);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--c-forest-dark);
    color: var(--c-forest-dark);
}
.btn-outline:hover {
    background: var(--c-forest-dark);
    color: var(--c-white);
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- 4. LAYOUTS SPECIFIQUES --- */

/* --- HEADER --- */
header {
    height: var(--header-height);
    background-color: #fff;
    border-bottom: 1px solid var(--c-border);
    position: sticky; top: 0; z-index: 1000;
    width: 100%;
    display: flex; align-items: center; /* Centrage vertical */
}

.header-inner {
    height: 100%;
    display: flex; justify-content: space-between; align-items: center;
    width: 100%;
}

/* LOGO IMAGE */
.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
    font-family: "AntiqueOliveCondensed", sans-serif;
}
.logo-img {
    height: 60px; /* Taille ajustée du logo */
    width: auto;
    object-fit: contain;
}

/* MENU DROITE */
.nav-menu {
    display: flex; align-items: center; gap: 15px;
}

/* BOUTON ROND (Compte) */
.btn-round {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: #f7f7f7;
    color: var(--c-forest-dark);
    display: flex; align-items: center; justify-content: center;
    border: 1px solid transparent;
    transition: 0.2s;
}
.btn-round:hover { background: #eee; border-color: #ddd; }

/* BOUTON PILULE (Commander/Prix) */
.btn-pill {
    background: var(--c-forest-main);
    color: white;
    padding: 0 24px; /* Padding horizontal */
    height: 48px;    /* Même hauteur que le rond */
    border-radius: 50px;
    font-family: var(--font-head); /* Police Titre pour le bouton */
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    display: flex; align-items: center; gap: 12px;
    text-decoration: none;
    transition: 0.2s;
}
.btn-pill:hover { background: var(--c-forest-dark); transform: translateY(-1px); }

/* Widget Prix spécifique (Contour vert) */
.btn-cart-widget { 
    background: white; 
    color: var(--c-forest-main);
    border: 2px solid var(--c-forest-main);
}
.btn-cart-widget:hover {
    background: var(--c-forest-main);
    color: white;
}

.btn-text { display: inline-block; padding-top: 2px; /* Petit ajustement optique pour la typo */ }

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 768px) {
    :root { --header-height: 70px; }
    
    .logo-img { height: 45px; } /* Logo plus petit */
    
    /* Transformer Pilule en Rond sur mobile */
    .btn-pill {
        padding: 0;
        width: 42px; height: 42px;
        justify-content: center;
    }
    .btn-round {
        width: 42px; height: 42px;
    }
    
    /* Cacher le texte sur mobile */
    .btn-text { display: none; }
    
    .nav-menu { gap: 10px; }
}

/* --- BOUTON PANIER "DRIVE" --- */
.btn-cart {
    background-color: var(--c-forest-main); /* Fond Vert */
    color: var(--c-white); /* Texte/Icone Blanc */
    padding: 12px 24px;
    border-radius: 50px; /* Arrondi style "Pill" moderne */
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.3s ease;
    overflow: hidden; /* Important pour l'animation */
    position: relative;
}

.btn-cart:hover {
    background-color: var(--c-forest-dark); /* Devient plus sombre au survol */
}

/* Wrapper pour gérer l'animation du caddie */
.cart-icon-wrapper {
    position: relative;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-icon {
    position: absolute;
    transition: transform 0.4s cubic-bezier(0.5, 0, 0.2, 1);
}

/* L'ANIMATION : Le Caddie roule ! */
/* 1. Le caddie visible part vers la droite */
.btn-cart:hover .cart-icon {
    animation: cartDrive 0.6s forwards;
}

@keyframes cartDrive {
    0% {
        transform: translateX(0);
    }
    49% {
        transform: translateX(30px); /* Part à droite */
        opacity: 0;
    }
    50% {
        transform: translateX(-30px); /* Revient instantanément à gauche (invisible) */
        opacity: 0;
    }
    100% {
        transform: translateX(0); /* Revient à sa place */
        opacity: 1;
    }
}


/* HERO SECTION (Split) */
.hero-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; /* Texte un peu plus large */
    min-height: calc(100vh - var(--header-height));
    border-bottom: 1px solid var(--c-border);
}

.hero-content {
    padding: 80px 60px;
    display: flex; flex-direction: column; justify-content: center;
    background-color: var(--c-forest-light); /* Fond vert pâle */
}

.hero-image {
    position: relative;
    overflow: hidden;
}
.hero-image img {
    width: 100%; height: 100%; object-fit: cover;
}

/* BANDEAU DEFILANT (Ticker) */
.ticker-wrap {
    background: var(--c-forest-main);
    color: var(--c-white);
    padding: 18px 0;
    overflow: hidden;
    white-space: nowrap;
}
.ticker-content {
    display: inline-block;
    animation: marquee 25s linear infinite;
}
.ticker-item {
    display: inline-block;
    padding: 0 40px;
    font-family: var(--font-head);
    font-size: 1.3rem;
    letter-spacing: 1px;
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- SECTION CONCEPT (Refonte) --- */
.concept-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Pas de gap, on utilise les bordures pour faire une grille parfaite */
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
    background: var(--c-border); /* Crée les lignes verticales via le gap si besoin, ou via border-right */
    gap: 1px; 
}

.concept-item {
    background: var(--c-white);
    padding: 60px 40px;
    position: relative;
    transition: background 0.3s;
}

.concept-item:hover {
    background: #F9FAFB;
}

.step-number {
    font-family: var(--font-head);
    font-size: 4rem;
    color: var(--c-forest-light); /* Très pâle pour faire un fond */
    line-height: 1;
    margin-bottom: 20px;
    position: absolute;
    top: 20px;
    right: 30px;
    opacity: 0.5;
}

.concept-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}


/* --- SECTION IMPACT (Le Bloc Vert amélioré) --- */
.impact-section {
    background-color: var(--c-forest-main);
    color: var(--c-white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Grille interne du bloc vert */
.impact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.impact-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.impact-stat h4 {
    font-size: 2.5rem;
    color: var(--c-terra-main);
    margin-bottom: 5px;
}
.impact-stat p {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* --- FAQ SECTION (Accordéon) --- */
.faq-section {
    background: var(--c-white);
    padding: 100px 0;
    border-top: 1px solid var(--c-border);
}

.faq-item {
    border-bottom: 1px solid var(--c-border);
}

.faq-summary {
    padding: 30px 0;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    list-style: none; /* Cache la flèche par défaut */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-summary::-webkit-details-marker { display: none; } /* Cache flèche Chrome */

.faq-summary:hover {
    color: var(--c-terra-main);
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
    color: var(--c-terra-main);
}

/* Quand c'est ouvert, on tourne la flèche */
details[open] .faq-icon {
    transform: rotate(45deg); /* Transforme le + en x */
}

.faq-content {
    padding-bottom: 30px;
    padding-right: 50px;
    color: #555;
    line-height: 1.6;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* PRODUCTEURS (Grille simple avec hover image) */
.producers-section {
    padding: 100px 0;
    background: var(--c-white);
}
.producers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.producer-card {
    cursor: pointer;
}
.producer-img {
    height: 320px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #eee;
}
.producer-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.producer-card:hover .producer-img img {
    transform: scale(1.08); /* Zoom lent */
}

/* FOOTER */
footer {
    background: var(--c-forest-dark);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 30px;
}
footer h4 { color: var(--c-white); margin-bottom: 20px; font-size: 1.5rem; }
footer a:hover { color: var(--c-terra-main); }

/* RESPONSIVE */
@media (max-width: 960px) {
    .hero-split { grid-template-columns: 1fr; }
    .hero-image { height: 400px; order: -1; } /* Image au dessus sur mobile */
    .border-grid { grid-template-columns: 1fr; }
    .text-display { font-size: 3rem; }
}

/* --- AMÉLIORATION BOUTONS & ANIMATIONS --- */

/* Classe utilitaire pour l'animation du caddie (à ajouter sur les boutons) */
.btn-icon-anim {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    overflow: hidden; /* Vital pour que le caddie disparaisse sur les bords */
    position: relative;
    padding-right: 28px; /* Un peu plus de place pour l'icone */
}

.btn-icon-anim .icon-wrapper {
    position: relative;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-anim svg {
    position: absolute;
    transition: transform 0.4s cubic-bezier(0.5, 0, 0.2, 1);
}

/* L'animation "Drive" au survol */
.btn-icon-anim:hover svg {
    animation: cartDrive 0.6s forwards;
}

/* Le Keyframe (déjà présent mais je le remets pour être sûr) */
@keyframes cartDrive {
    0% { transform: translateX(0); }
    49% { transform: translateX(30px); opacity: 0; } /* Part à droite */
    50% { transform: translateX(-30px); opacity: 0; } /* Revient gauche invisible */
    100% { transform: translateX(0); opacity: 1; } /* Reprend sa place */
}

/* --- SHOP LAYOUT --- */
.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr; /* Sidebar fixe + Contenu fluide */
    gap: 40px;
    padding: 60px 0;
    align-items: start;
}

/* Sidebar Filtres */
.shop-sidebar {
    position: sticky;
    top: 100px; /* Prend en compte le header */
    background: var(--c-white);
    border: 1px solid var(--c-border);
    padding: 30px;
    border-radius: var(--radius-sm);
}

.filter-group { margin-bottom: 30px; }
.filter-title {
    font-family: var(--font-head);
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: block;
    color: var(--c-forest-dark);
}

/* Checkboxes Stylisées */
.checkbox-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #555;
    transition: color 0.2s;
}
.checkbox-row:hover { color: var(--c-terra-main); }
.checkbox-row input {
    margin-right: 10px;
    accent-color: var(--c-forest-main); /* Couleur verte native */
    width: 16px; height: 16px;
}

/* Grille Produits */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

/* Carte Produit "Drive" */
.product-card {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--c-forest-main);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Badges (Bio, Promo) */
.badge-container {
    position: absolute;
    top: 10px; left: 10px;
    z-index: 2;
    display: flex; 
    flex-direction: column; 
    gap: 5px;
    align-items: flex-start; /* FIX: Empêche les badges de s'étirer */
}
.badge {
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
}
.badge-bio { background: #E8F5E9; color: #2E7D32; }
.badge-promo { background: #FFEBEE; color: #C62828; }

.product-img-box {
    height: 180px;
    overflow: hidden;
    background: #f9f9f9;
}
.product-img-box img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s;
}
.product-card:hover .product-img-box img { transform: scale(1.05); }

.product-info {
    padding: 20px;
    flex-grow: 1; /* Pousse le footer vers le bas */
    display: flex; flex-direction: column;
}

.product-producer {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-family: var(--font-body); /* Plus lisible pour les listes */
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-price-row {
    margin-top: auto; /* Colle au bas de product-info */
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.price-box { display: flex; flex-direction: column; }
.price-main {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--c-forest-main);
}
.price-unit { font-size: 0.85rem; color: #999; }
.price-old { text-decoration: line-through; color: #ccc; font-size: 0.9rem; margin-left: 5px;}

/* Bouton Ajout (+) */
.btn-add {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--c-terra-main);
    color: white;
    display: flex; align-items: center; justify-content: center;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    font-size: 1.2rem;
}
.btn-add:hover { background: var(--c-terra-hover); transform: scale(1.1); }

/* Responsive Shop */
@media (max-width: 900px) {
    .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar { 
        position: relative; top: 0; 
        margin-bottom: 30px;
        max-height: 200px; overflow-y: auto; /* Scroll interne si trop long sur mobile */
    }
}

/* --- CART PAGE --- */

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 350px; /* Liste produits large | Résumé étroit */
    gap: 40px;
    align-items: start;
}

/* Liste des produits */
.cart-list {
    border-top: 1px solid var(--c-border);
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--c-border);
}

.cart-img {
    width: 80px; height: 80px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    margin-right: 20px;
    background: #f5f5f5;
}

.cart-info {
    flex: 1; /* Prend toute la place dispo */
}
.cart-title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 4px;
}
.cart-prod {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
}

/* Contrôle Quantité (+ 1 -) */
.qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--c-border);
    border-radius: 4px;
    margin: 0 20px;
}
.qty-btn {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--c-forest-dark);
    font-weight: bold;
}
.qty-btn:hover { background: #eee; }
.qty-display {
    width: 30px; text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.cart-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--c-forest-main);
    width: 80px;
    text-align: right;
}

.btn-remove {
    margin-left: 20px;
    color: #ccc;
    cursor: pointer;
    font-size: 1.2rem;
}
.btn-remove:hover { color: var(--c-terra-main); }

/* Résumé (Box droite) */
.cart-summary {
    background: var(--c-white);
    border: 1px solid var(--c-border);
    padding: 30px;
    border-radius: var(--radius-sm);
    position: sticky; top: 100px;
}

.summary-row {
    display: flex; justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.95rem;
}
.summary-total {
    border-top: 1px solid var(--c-border);
    padding-top: 20px;
    margin-top: 20px;
    font-family: var(--font-head);
    font-size: 1.5rem;
    display: flex; justify-content: space-between;
    color: var(--c-forest-main);
}

/* Responsive */
@media (max-width: 900px) {
    .cart-layout { grid-template-columns: 1fr; }
    .cart-item { flex-wrap: wrap; }
    .cart-price { margin-left: auto; }
}

/* --- MODAL PRODUIT (Quick View) --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(18, 40, 34, 0.6); /* Vert forêt transparent */
    backdrop-filter: blur(4px); /* Effet flou moderne */
    z-index: 2000;
    display: none; /* Caché par défaut */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-card {
    background: var(--c-white);
    width: 90%; max-width: 800px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-img-col {
    background: #f0f0f0;
    height: 100%;
    min-height: 400px;
}
.modal-img-col img {
    width: 100%; height: 100%; object-fit: cover;
}

.modal-info-col {
    padding: 40px;
    display: flex; flex-direction: column;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px; right: 20px;
    background: transparent; border: none;
    font-size: 2rem; line-height: 1;
    cursor: pointer; color: #999;
}
.modal-close:hover { color: var(--c-terra-main); }

.modal-producer-badge {
    display: inline-flex; align-items: center; gap: 10px;
    margin-bottom: 15px;
    background: var(--c-forest-light);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--c-forest-dark);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-card { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
    .modal-img-col { height: 250px; min-height: auto; }
}

/* Widget Panier Header (Style Shop) */
.btn-cart-widget {
    background: var(--c-forest-dark);
    color: var(--c-white);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    display: flex; align-items: center; gap: 10px;
    transition: 0.3s;
    border: 1px solid transparent;
}
.btn-cart-widget:hover {
    background: var(--c-white);
    color: var(--c-forest-dark);
    border-color: var(--c-forest-dark);
}
.bump-anim { animation: bump 0.3s ease-out; }
@keyframes bump {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Nouveau contrôleur de quantité sur les cartes (- 0 +) */
.qty-pill {
    background: #f4f4f4;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 110px; /* Largeur fixe pour éviter que ça bouge */
    padding: 4px;
    border: 1px solid #ddd;
}
/* Quand il y a au moins 1 article, on colore la bordure */
.qty-pill.active {
    border-color: var(--c-forest-main);
    background: #e8f5e9;
}

.qty-pill button {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--c-white);
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--c-forest-main);
    display: flex; align-items: center; justify-content: center;
    transition: 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.qty-pill button:hover { background: var(--c-forest-main); color: white; }

.qty-pill span {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--c-forest-dark);
    width: 30px; text-align: center;
}

/* --- CART DRAWER (TIROIR PANIER) --- */
.cart-drawer-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 2000;
    opacity: 0; visibility: hidden; transition: 0.3s;
    backdrop-filter: blur(2px);
}
.cart-drawer-overlay.open { opacity: 1; visibility: visible; }

.cart-drawer {
    position: fixed; top: 0; right: -450px; /* Caché à droite */
    width: 400px; max-width: 90vw; height: 100%;
    background: var(--c-white);
    z-index: 2001;
    transition: right 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex; flex-direction: column;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
}
.cart-drawer.open { right: 0; }

/* Header du tiroir */
.drawer-header {
    padding: 20px; border-bottom: 1px solid var(--c-border);
    display: flex; justify-content: space-between; align-items: center;
    background: var(--c-forest-dark); color: white;
}
.drawer-close {
    background: none; border: none; color: white; font-size: 2rem; cursor: pointer;
}

/* Corps (Liste des produits) */
.drawer-body {
    flex: 1; overflow-y: auto; padding: 20px;
}
.empty-cart-msg { text-align: center; color: #888; padding-top: 50px; font-size: 1.2rem; }

/* Item dans le tiroir */
.drawer-item {
    display: flex; align-items: center; gap: 15px;
    margin-bottom: 20px; padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.d-img { width: 60px; height: 60px; flex-shrink: 0; background: #f5f5f5; border-radius: 4px; overflow: hidden; }
.d-img img { width: 100%; height: 100%; object-fit: cover; }
.d-info { flex: 1; }
.d-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; line-height: 1.2; }
.d-price { font-size: 0.8rem; color: #888; margin-bottom: 5px; }

/* Contrôles +/- petits */
.d-controls {
    display: flex; align-items: center; gap: 10px;
    background: #f4f4f4; padding: 2px 8px; border-radius: 20px; width: fit-content;
}
.d-controls button { border: none; background: transparent; cursor: pointer; font-weight: bold; color: var(--c-forest-main); font-size: 1.1rem; }
.d-controls span { font-size: 0.9rem; font-weight: 600; min-width: 15px; text-align: center; }

.d-total { font-weight: 700; color: var(--c-forest-main); }

/* Footer du tiroir (Total + Bouton) */
.drawer-footer {
    padding: 20px; border-top: 1px solid var(--c-border);
    background: #fbfbfb;
}
.df-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.9rem; }
.df-total { font-size: 1.4rem; font-weight: 700; color: var(--c-forest-dark); margin-top: 10px; padding-top: 10px; border-top: 1px solid #ddd; }

/* ==========================================================================
   PAGE CHECKOUT & PAIEMENT (STYLE COMPLET)
   ========================================================================== */

/* --- 1. LAYOUT PRINCIPAL --- */
.checkout-wrapper {
    display: grid;
    grid-template-columns: 380px 1fr; /* Sidebar fixe | Contenu fluide */
    min-height: calc(100vh - 80px);
    background: var(--c-white);
    position: relative;
}

/* --- 2. COLONNE GAUCHE : TICKET DE CAISSE --- */
.checkout-summary {
    background: #F9FAFB; /* Gris très léger */
    padding: 40px 30px;
    border-right: 1px solid #E5E7EB;
    position: sticky;
    top: 80px; /* Hauteur du header */
    height: calc(100vh - 80px);
    overflow-y: auto;
    z-index: 10;
}

.checkout-summary h2 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--c-forest-dark);
}

/* Ligne Produit */
.ticket-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Alignement haut pour gérer les noms longs */
    margin-bottom: 20px;
    font-size: 0.9rem;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}
.ticket-line:last-child { border-bottom: none; }

/* Groupe Image + Texte */
.ticket-prod-info {
    display: flex;
    align-items: center;
    gap: 15px; /* Espace vital entre image et texte */
    flex: 1;
    padding-right: 10px;
}

.ticket-img {
    width: 50px; height: 50px;
    object-fit: cover;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #eee;
    flex-shrink: 0; /* Empêche l'écrasement */
}

.ticket-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ticket-name {
    font-weight: 700;
    color: var(--c-forest-dark);
    line-height: 1.2;
    margin-bottom: 3px;
}

.ticket-qty {
    color: #999;
    font-size: 0.85em;
    font-weight: 500;
}

/* Totaux */
.ticket-divider {
    border-top: 2px dashed #e0e0e0;
    margin: 25px 0;
}

.ticket-total {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--c-forest-dark);
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}


/* --- 3. COLONNE DROITE : LE TUNNEL --- */
.checkout-steps {
    padding: 60px 10%;
    background: var(--c-white);
}

/* Accordéon / Étapes */
.step-container {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    margin-bottom: 25px;
    background: #fff;
    transition: all 0.3s ease;
    opacity: 0.5;
    pointer-events: none; /* Désactivé par défaut */
}

.step-container.active {
    opacity: 1;
    pointer-events: auto;
    border-color: var(--c-forest-main);
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}

.step-container.completed {
    opacity: 0.6;
    background: #FAFAFA;
}

.step-header {
    padding: 20px 30px;
    background: #F9FAFB;
    border-bottom: 1px solid transparent;
    font-family: var(--font-head);
    font-size: 1.3rem;
    color: var(--c-forest-dark);
    border-radius: 12px 12px 0 0;
}

.step-container.active .step-header {
    background: var(--c-forest-main);
    color: white;
}

.step-content {
    padding: 30px;
    display: none; /* Caché */
}
.step-container.active .step-content { display: block; }


/* --- 4. COMPOSANTS : SLOTS --- */
.slots-day-group { margin-bottom: 25px; }
.slots-day-group h4 { margin-bottom: 10px; font-size: 0.85rem; text-transform: uppercase; color:#888; letter-spacing: 1px; }

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
}

.slot-btn {
    padding: 12px 0;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    background: white;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.2s;
}

.slot-green { border-color: #A5D6A7; color: #2E7D32; background: #E8F5E9; }
.slot-green:hover { background: #4CAF50; color: white; border-color: #4CAF50; }

.slot-yellow { border-color: #FFE082; color: #F57F17; background: #FFFDE7; }
.slot-yellow:hover { background: #FFD54F; }

.slot-red { border-color: #EF9A9A; color: #C62828; background: #FFEBEE; opacity: 0.6; cursor: not-allowed; text-decoration: line-through; }

.slot-btn.selected {
    background: var(--c-forest-main) !important;
    color: white !important;
    border-color: var(--c-forest-main) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: scale(1.05);
}


/* --- PROMOS (FIX COCHE & STYLE) --- */
.promos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.promo-radio-label {
    display: block;
    cursor: pointer;
    height: 100%;
    position: relative; /* Important pour le positionnement */
}

/* On cache le vrai bouton radio */
.promo-radio-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.promo-card {
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: white;
    transition: all 0.2s ease;
}

.promo-card.no-code {
    border-style: dashed;
    color: #999;
}

/* QUAND SÉLECTIONNÉ */
.promo-radio-input:checked + .promo-card {
    border-color: var(--c-forest-main);
    background: #E8F5E9; /* Vert très pâle */
    color: var(--c-forest-dark);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.15);
}

/* LA COCHE VERTE */
.promo-radio-input:checked + .promo-card::after {
    content: "✓";
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    background: var(--c-forest-main);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}


/* --- 6. COMPOSANT : SOLIDARITÉ (Fix Alignement) --- */
.solidarity-container { margin-bottom: 30px; }

.btn-solidarity {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #eee;
    border-radius: 12px;
    background: #fff;
    display: flex;
    justify-content: space-between; /* Pousse Gauche et Droite aux bords */
    align-items: center;            /* Centre verticalement */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.btn-solidarity:hover {
    border-color: #ddd;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.btn-solidarity.active {
    border-color: var(--c-forest-main);
    background: #E8F5E9;
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.1);
}

/* Groupe Gauche : Icone + Texte */
.sol-left {
    display: flex;
    align-items: center;
    gap: 15px; /* Espace entre le cœur et le texte */
}

.heart-icon {
    font-size: 1.8rem;
    filter: grayscale(100%);
    opacity: 0.3;
    transition: 0.3s;
    line-height: 1; /* Important pour ne pas décaler */
}

.btn-solidarity.active .heart-icon {
    filter: grayscale(0%);
    opacity: 1;
    animation: heartPulse 1s infinite;
}

.sol-text {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2; /* Resserre les lignes de texte */
}

.sol-text strong {
    font-size: 1rem;
    color: var(--c-forest-dark);
    margin: 0;
}

.sol-text small {
    color: #888;
    font-size: 0.85rem;
}

/* Groupe Droite : Prix */
.sol-amount {
    font-weight: 800;
    font-size: 1.1rem;
    background: #f4f4f4;
    padding: 6px 12px;
    border-radius: 8px;
    color: #999;
    white-space: nowrap;
    transition: 0.3s;
}

.btn-solidarity.active .sol-amount {
    background: var(--c-forest-main);
    color: white;
}

@keyframes heartPulse { 0% {transform:scale(1);} 50% {transform:scale(1.2);} 100% {transform:scale(1);} }


/* --- 7. PAIEMENT : STRIPE & BOUTON --- */

/* Container Stripe */
.stripe-box {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #ffffff; /* Fond blanc obligatoire */
    min-height: 48px;          /* Hauteur minimale obligatoire */
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
}

/* Element Stripe (injecté par JS) */
.StripeElement {
    width: 100%;
    display: block;
}

/* Bouton Bleu */
.btn-pay-blue {
    width: 100%;
    padding: 18px;
    font-size: 1.2rem;
    font-weight: 700;
    background: #2962FF;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(41, 98, 255, 0.2);
}

.btn-pay-blue:hover {
    background: #1E88E5;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(41, 98, 255, 0.3);
}

.btn-pay-blue.loading {
    color: transparent;
    pointer-events: none;
}
.btn-pay-blue.loading::after {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    margin-left: -12px; margin-top: -12px;
    width: 24px; height: 24px;
    border: 3px solid #fff; border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s infinite linear;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn-pay-blue.success {
    background: #4CAF50;
    pointer-events: none;
    box-shadow: none;
}

.cgv-text {
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    margin-top: 15px;
}


/* --- 8. AUTHENTIFICATION (Split & Modal) --- */
.auth-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.auth-login-box { padding-right: 40px; border-right: 1px solid #eee; }
.auth-register-box {
    background: #FFF8E1; padding: 30px; border-radius: 12px;
    border: 1px solid #FFE0B2; text-align: center;
}
.promo-highlight {
    display: block; font-family: var(--font-head); font-size: 2.5rem; color: #F57C00; margin: 10px 0;
}

/* Modale */
.auth-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(18, 40, 34, 0.9); backdrop-filter: blur(5px);
    z-index: 9999; display: none; justify-content: center; align-items: center;
}
.auth-modal.open { display: flex; animation: fadeIn 0.3s; }
.auth-box-modal {
    background: white; padding: 40px; border-radius: 16px;
    width: 100%; max-width: 450px; position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}


/* --- 9. ÉCRAN SUCCÈS --- */
.confirmation-screen {
    display: none;
    height: 70vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    animation: slideUp 0.5s ease-out;
}
.confirmation-screen.visible { display: flex; }

.success-icon {
    width: 90px; height: 90px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 45px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
}

@keyframes slideUp { from {opacity:0; transform:translateY(20px);} to {opacity:1; transform:translateY(0);} }


/* --- 10. RESPONSIVE MOBILE --- */
@media (max-width: 900px) {
    .checkout-wrapper {
        display: flex;
        flex-direction: column; /* Empilement vertical */
    }
    
    /* ORDRE INVERSÉ : Tunnel (1) puis Ticket (2) */
    .checkout-steps {
        order: 1;
        padding: 30px 5%;
    }
    
    .checkout-summary {
        order: 2;
        height: auto;
        position: static;
        border-right: none;
        border-top: 5px solid #eee;
    }
    
    .auth-split { grid-template-columns: 1fr; gap: 30px; }
    .auth-login-box { border-right: none; border-bottom: 1px solid #eee; padding-bottom: 30px; padding-right: 0;}
}

/* =========================================
   PAGE CGV (Design Épuré & Exemples)
   ========================================= */

.cgv-wrapper {
    max-width: 900px; /* Un peu plus large pour respirer */
    margin: 0 auto;
    background: var(--c-white);
    padding: 60px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    border: 1px solid var(--c-border);
}

/* En-tête */
.cgv-header {
    text-align: center;
    margin-bottom: 80px;
    border-bottom: 1px solid #eee;
    padding-bottom: 40px;
}

.cgv-intro {
    font-size: 1.2rem;
    color: #666;
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Sections */
.cgv-section {
    margin-bottom: 60px; /* Gros espacement entre les règles */
}

.cgv-section-title {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.section-number {
    font-family: var(--font-head);
    font-size: 2.5rem;
    color: #e0e0e0; /* Gris très clair discret */
    font-weight: bold;
    line-height: 1;
}

.cgv-section h3 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--c-forest-dark);
}

.cgv-section h4 {
    font-size: 1.2rem;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--c-forest-main);
}

.cgv-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
}

/* --- BOÎTES D'EXEMPLES (LE NOUVEAU TRUC) --- */
.cgv-example {
    background-color: #F1F8E9; /* Vert très très pâle */
    border-left: 4px solid var(--c-forest-main);
    padding: 25px;
    border-radius: 0 8px 8px 0;
    margin: 25px 0;
    font-size: 0.95rem;
    color: #33691E;
}

.cgv-example strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: var(--c-forest-dark);
}

/* Variante "Warning" pour l'argent */
.cgv-example.warning {
    background-color: #FFF8E1; /* Jaune pâle */
    border-left-color: #FFC107;
    color: #8D6E63;
}

/* --- BOÎTE ALERTE (POUR LES LAPINS) --- */
.cgv-alert {
    background-color: #FFEBEE; /* Rouge très pâle */
    border: 2px solid #FFCDD2;
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
    color: #C62828;
}

.cgv-alert strong {
    font-size: 1.2rem;
    display: block;
    margin-bottom: 15px;
    color: #B71C1C;
}

.cgv-alert ul {
    padding-left: 20px;
    margin: 0;
}

.cgv-alert li {
    margin-bottom: 5px;
    list-style-type: disc;
}

/* Responsive */
@media (max-width: 768px) {
    .cgv-wrapper { padding: 30px 20px; }
    .cgv-section-title { flex-direction: column; align-items: flex-start; gap: 5px; }
    .section-number { font-size: 1.5rem; }
}

/* =========================================
   PAGE DASHBOARD
   ========================================= */

.dashboard-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 80px);
    background: #F9FAFB; /* Fond très léger global */
}

/* --- SIDEBAR --- */
.dash-sidebar {
    background: var(--c-white);
    border-right: 1px solid var(--c-border);
    padding: 40px 20px;
}

.user-profile-summary {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
}
.user-avatar {
    width: 50px; height: 50px;
    background: var(--c-forest-light);
    color: var(--c-forest-main);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.2rem;
}
.user-name { font-weight: 700; color: var(--c-forest-dark); display: block; }
.user-role { font-size: 0.8rem; color: #888; text-transform: uppercase; letter-spacing: 1px; }

.dash-nav a {
    display: flex; align-items: center; gap: 15px;
    padding: 15px 20px;
    color: #666;
    border-radius: 8px;
    margin-bottom: 5px;
    font-weight: 500;
    transition: 0.2s;
}
.dash-nav a:hover { background: #f4f4f4; color: #333; }
.dash-nav a.active {
    background: var(--c-forest-light);
    color: var(--c-forest-main);
    font-weight: 700;
}

/* --- CONTENU --- */
.dash-content {
    padding: 40px 50px;
}

.dash-title {
    font-family: var(--font-head);
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--c-forest-dark);
}

/* Cards Widget (Cagnotte, Info) */
.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px; margin-bottom: 40px;
}
.stat-card {
    background: white; border: 1px solid var(--c-border);
    border-radius: 12px; padding: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    display: flex; flex-direction: column;
}
.stat-label { color: #888; font-size: 0.9rem; margin-bottom: 5px; }
.stat-value { font-size: 2rem; font-weight: 700; color: var(--c-forest-main); }
.stat-action { margin-top: 15px; font-size: 0.9rem; text-decoration: underline; cursor: pointer; }

/* Liste Commandes */
.order-card {
    background: white; border: 1px solid var(--c-border);
    border-radius: 8px; margin-bottom: 20px; overflow: hidden;
}
.order-header {
    padding: 20px; background: #fcfcfc; border-bottom: 1px solid #eee;
    display: flex; justify-content: space-between; align-items: center;
}
.order-ref { font-weight: 700; color: var(--c-forest-dark); }
.order-date { color: #888; font-size: 0.9rem; margin-left: 10px; }
.order-status {
    padding: 5px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
}
.status-payee { background: #E8F5E9; color: #2E7D32; }
.status-annulee { background: #FFEBEE; color: #C62828; }

.order-body { padding: 20px; display: none; } /* Accordéon */
.order-card.open .order-body { display: block; }

.order-products-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 10px; margin-top: 15px;
}
.mini-prod-img {
    width: 60px; height: 60px; border-radius: 4px; object-fit: cover; border: 1px solid #eee;
}

/* Parrainage Box */
.referral-box {
    background: #FFF8E1; border: 1px dashed #FFC107; border-radius: 12px;
    padding: 30px; text-align: center; max-width: 600px; margin: 0 auto;
}
.referral-code {
    font-family: monospace; font-size: 2.5rem; letter-spacing: 5px;
    background: white; padding: 15px; margin: 20px 0; display: inline-block;
    border-radius: 8px; border: 2px solid #FFC107; color: #333;
}

/* Responsive */
@media (max-width: 900px) {
    .dashboard-wrapper { grid-template-columns: 1fr; }
    .dash-sidebar { padding: 20px; border-right: none; border-bottom: 1px solid #ccc; }
    .dash-content { padding: 20px; }
}

/* --- MODALE D'ANNULATION (Custom) --- */
.custom-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26, 47, 35, 0.6); backdrop-filter: blur(4px);
    z-index: 5000; display: none; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.custom-modal-overlay.active { display: flex; opacity: 1; }

.custom-modal-box {
    background: white; width: 500px; max-width: 95%;
    border-radius: 16px; padding: 0;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    transform: translateY(20px); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}
.custom-modal-overlay.active .custom-modal-box { transform: translateY(0); }

.modal-header-danger {
    background: #FFF4F4; padding: 25px; text-align: center; border-bottom: 1px solid #FFEBEE;
}
.modal-icon-danger {
    width: 60px; height: 60px; background: #FFEBEE; color: #D32F2F;
    border-radius: 50%; font-size: 30px; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 15px;
}
.modal-body { padding: 30px; }

/* Choix de remboursement */
.refund-options { display: grid; gap: 15px; margin-top: 20px; }
.refund-option {
    border: 2px solid #eee; border-radius: 10px; padding: 20px;
    cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    transition: 0.2s;
}
.refund-option:hover { border-color: #ccc; background: #fafafa; }
.refund-option.selected { border-color: var(--c-forest-main); background: #E8F5E9; }

/* Boutons */
.modal-actions {
    padding: 20px 30px; background: #f9f9f9; border-top: 1px solid #eee;
    display: flex; justify-content: flex-end; gap: 15px;
}

/* --- DASHBOARD FIXES --- */

/* Flèche d'accordéon animée */
.order-arrow {
    font-size: 1.2rem;
    color: #ccc;
    transition: transform 0.3s ease;
}
.order-card.open .order-arrow {
    transform: rotate(180deg);
    color: var(--c-forest-main);
}

/* Modale d'annulation (Style Identique Checkout) */
.custom-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
    z-index: 9999; display: none; justify-content: center; align-items: center;
}
.custom-modal-overlay.active { display: flex; animation: fadeIn 0.2s; }

.custom-modal-box {
    background: white; width: 90%; max-width: 500px;
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: slideUp 0.3s;
}

.modal-header-danger {
    background: #FFEBEE; padding: 20px; text-align: center; border-bottom: 1px solid #FFCDD2;
}
.modal-body { padding: 30px; }

.refund-option {
    border: 2px solid #eee; border-radius: 10px; padding: 15px; margin-bottom: 10px;
    cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.refund-option.selected { border-color: var(--c-forest-main); background: #E8F5E9; }
.refund-option:hover { border-color: #ddd; }

.modal-actions {
    padding: 20px; background: #f9f9f9; border-top: 1px solid #eee;
    display: flex; justify-content: flex-end; gap: 10px;
}