/* --- RESET & BASICS --- */
:root {
    --bg: #ffffff;
    --text: #000000;
    --bezel: #000000;
    --accent-grey: #f0f0f0;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding-bottom: 60px; 
    overflow-x: hidden;
}


/* --- HEADER & CONTROLS SIMPLIFIÉS --- */
header {
    padding: 30px 5%;
    text-align: center;
}

/* La boîte globale du header, centrée */
.header-box {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 20px 0; /* optionnel */
}

/* Contenu limité à 1050px */
.logo-container {
    width: 1050px;
    display: flex;
    justify-content: center; /* logo à gauche, slogan à droite */
    align-items: flex-end;            /* alignement vertical par le bas*/
}

.site-title { 
    font-size: 2.5rem; 
    font-weight: 900; 
    letter-spacing: -2px; 
    text-decoration: none; 
    color: var(--text); 
}

.logo-header {
    height: 48px;   
    width: auto;    
}

.site-subtitle { 
    font-size: 1rem; 
    color: #666; 
    margin-top: 5px; 
    letter-spacing: 1px; 
    text-transform: uppercase;
}
.search-container { display: none; }

.controls-bar.centered {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}
.toggle-group.no-border {
    border: none;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* États du toggle : texte en gras quand actif */
.toggle-group.no-border span {
    transition: font-weight 0.2s;
}

.toggle-group.no-border span.active {
    font-weight: 700;
}


/* --- LE CŒUR DU DESIGN : PHONE & WRAPPER --- */

.ranking-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 70vh; 
}

/* Le cadre du smartphone */
.phone-bezel {
    border: 12px solid var(--bezel);
    border-radius: 50px;
    padding: 20px 0 40px 0;
    background: var(--bg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    
    width: 400px;
    height: 650px;
    overflow: hidden;
    transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

/* L'état "Tablette" étendu */
.phone-bezel.tablet-mode {
    width: 1050px; /* Élargi pour inclure la colonne Design */
}

/* L'écran à l'intérieur du cadre */
.phone-screen {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 25px 0 25px; /* Padding droit réduit pour rapprocher la scrollbar */
    overflow-x: hidden; /* MODIFICATION 1 : Empêcher le scroll horizontal */
}


/* --- LA FLÈCHE D'EXPANSION --- */
.expand-trigger {
    font-size: 4rem;
    font-weight: 300;
    margin-left: 30px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.expand-trigger.rotated {
    transform: rotate(180deg);
}


/* --- LA GRILLE DU TABLEAU (CSS Grid animé) --- */

/* Définition de la grille de base (Smartphone) */
.grid-layout {
    display: grid;
    grid-template-columns: 40px 2fr 80px 0fr 0fr 0fr 0fr 0fr; /* 8 colonnes avec Design */
    gap: 0px;
    align-items: center;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Définition de la grille étendue (Tablette) */
.phone-bezel.tablet-mode .grid-layout {
    grid-template-columns: 40px 1.5fr 80px 1fr 1fr 1fr 1fr 1fr; /* Design inclus */
    gap: 15px;
}


/* --- STYLE DU CONTENU DU TABLEAU --- */

.table-header {
    font-weight: 900; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-size: 0.9rem;
    padding-bottom: 15px;
}
.header-separator {
    height: 4px; 
    background: black; 
    margin-bottom: 20px; 
    width: 100%;
}

/* Gestion de l'apparition des colonnes détails */
.col-detail, .sortable:not(.header-note) {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease 0.1s, visibility 0.4s;
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis;
    font-size: 0.9rem;
    text-align: center;
}

/* Quand on passe en mode tablette, on les rend visibles */
.phone-bezel.tablet-mode .col-detail,
.phone-bezel.tablet-mode .sortable:not(.header-note) {
    opacity: 1;
    visibility: visible;
    transition-delay: 0.2s;
}


.scrollable-content {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden; /* MODIFICATION 1 : Empêcher le scroll horizontal */
    
    /* MODIFICATION 2 : Scrollbar stylisée plus proche du bord */
    scrollbar-width: thin;
    scrollbar-color: #999 #ffffff;
    padding-right: 5px; /* Petit padding pour espacer légèrement du bord */
}

.scrollable-content::-webkit-scrollbar {
    width: 8px;
}

.scrollable-content::-webkit-scrollbar-track {
    background: #ffffff;
}

.scrollable-content::-webkit-scrollbar-thumb {
    background: #999;
    border-radius: 4px;
}

.scrollable-content::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.phone-row {
    padding: 15px 0;
    border-bottom: 1px solid var(--accent-grey); 
    font-weight: 500; 
    font-size: 1.1rem;
    position: relative;
    transition: border-bottom 0.3s ease;
}

/* Quand le détail est ouvert, on cache la bordure de la ligne */
.phone-row-group.expanded .phone-row {
    border-bottom: none;
}

/* La bordure passe sous le contenu déplié */
.phone-row-group::after {
    content: '';
    display: block;
    height: 1px;
    background: var(--accent-grey);
    margin: 0;
    transition: margin-top 0.4s ease-out;
}

.phone-row-group.expanded::after {
    margin-top: 0;
}
/* Médailles pour le podium */
.col-rank {
    font-weight: 900;
    font-size: 0.9rem;
    color: #999;
    position: relative;
}

/* MODIFICATION 3 : Cacher le numéro pour le top 3 */
.podium-1 .col-rank,
.podium-2 .col-rank,
.podium-3 .col-rank {
    color: transparent; /* Cache le numéro */
}

.medal {
    display: inline-block;
    font-size: 1.5rem;
    margin-right: 5px;
    vertical-align: middle;
}

.medal-gold { color: #FFD700; }
.medal-silver { color: #C0C0C0; }
.medal-bronze { color: #CD7F32; }


.col-score { 
    font-weight: 900; 
    text-align: right; 
    font-size: 1.2rem;
}
.header-note { text-align: right; }


/* --- ACCORDÉON DESCRIPTIF MODIFIÉ --- */
.toggle-desc-btn {
    font-size: 0.7rem; 
    margin-left: 8px; 
    cursor: pointer; 
    vertical-align: middle; 
    color: #999; 
    transition: transform 0.3s; 
    display: inline-block;
}

.phone-desc-content {
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.4s ease-out;
    margin: 0 -25px;
}

.phone-desc-content.open { 
    max-height: 180px; 
}

.desc-inner { 
    padding: 20px 25px; 
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Image miniature */
.phone-mini-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
}

.desc-text {
    flex: 1;
}

.desc-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.read-more-link { 
    display: inline-block; 
    margin-top: 5px; 
    font-weight: 900; 
    text-decoration: none; 
    color: black; 
    text-transform: uppercase; 
    font-size: 0.8rem; 
    letter-spacing: 1px;
}


/* --- TOGGLE SWITCH --- MODIFICATION 4 : Reste gris */
.switch { 
    position: relative; 
    display: inline-block; 
    width: 40px; 
    height: 20px; 
    margin: 0 10px; 
    vertical-align: middle;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider { 
    position: absolute; 
    cursor: pointer; 
    top: 0; left: 0; right: 0; bottom: 0; 
    background-color: #e0e0e0; 
    transition: .4s; 
}
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }
.slider:before { 
    position: absolute; 
    content: ""; 
    height: 14px; 
    width: 14px; 
    left: 3px; 
    bottom: 3px; 
    background-color: white; 
    transition: .4s; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
/* MODIFICATION 4 : Le slider reste gris même quand coché */
input:checked + .slider { background-color: #b0b0b0; }
input:checked + .slider:before { transform: translateX(20px); }


/* ========================================= */
/* --- PAGE DÉTAILLÉE (PHONE.HTML) --- */
/* ========================================= */

.detail-controls {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    padding: 20px 0;
    margin-bottom: 20px;
}

.detail-page-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    min-height: 100vh;
}

/* Cadre noir style tablette pour la page détaillée - TAILLE FIXE */
.detail-bezel {
    width: 1050px !important;
    height: 650px !important; /* Hauteur fixe */
    padding: 40px 0 !important;
    overflow: hidden; /* Important pour le scroll interne */
    margin-bottom: 0; /* MODIFICATION 8 : Pas de marge en bas */
}

.detail-screen {
    padding: 0 50px !important;
    overflow-y: auto !important; /* Scroll vertical à l'intérieur */
    overflow-x: hidden;
    height: 100% !important; /* Prend toute la hauteur du cadre */
    
    /* Scrollbar stylisée */
    scrollbar-width: thin;
    scrollbar-color: #999 #f0f0f0;
}

.detail-screen::-webkit-scrollbar {
    width: 8px;
}

.detail-screen::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.detail-screen::-webkit-scrollbar-thumb {
    background: #999;
    border-radius: 4px;
}

.detail-screen::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* En-tête avec image */
.detail-header {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 3px solid #000;
}

.detail-phone-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    flex-shrink: 0;
}

.detail-header-text {
    flex: 1;
}

.detail-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0 0 10px 0;
    letter-spacing: -1px;
}

.detail-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin: 0 0 20px 0;
    font-weight: 500;
}

/* Stats : Classement + Note */
.detail-stats {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 20px;
}

.detail-rank {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.rank-label {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rank-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: #000;
}

.rank-total {
    font-size: 1.2rem;
    color: #999;
}

.detail-global-score {
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.score-label {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.score-value {
    font-size: 3rem;
    font-weight: 900;
    color: #000;
    transition: color 0.3s;
}

.score-max {
    font-size: 1.5rem;
    color: #999;
}

/* Synthèse */
.detail-synthesis {
    margin-bottom: 40px;
}

.detail-synthesis h2 {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.detail-synthesis p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}

/* Points forts/faibles */
.detail-points-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.points-box {
    background: var(--accent-grey);
    padding: 25px;
    border-radius: 10px;
}

.points-box h3 {
    font-size: 1.2rem;
    font-weight: 900;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.points-forts h3 {
    color: #2d7f2d;
}

.points-faibles h3 {
    color: #c53030;
}

.points-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.points-box li {
    padding: 8px 0;
    font-size: 1rem;
    line-height: 1.5;
}

/* Tableau des prix */
.price-table {
    background: var(--accent-grey);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.price-table h3 {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 20px 0;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}

.price-row:last-child {
    border-bottom: none;
}

.price-row.best-price {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.best-badge {
    background: #2d7f2d;
    color: white;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 3px;
    margin-left: 10px;
    font-weight: 700;
}

.merchant-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.price {
    font-weight: 900;
    font-size: 1.3rem;
    color: #2d7f2d;
}

.price-unavailable {
    font-size: 0.9rem;
    color: #999;
    font-style: italic;
}

.price-update-info {
    margin-top: 15px;
    text-align: center;
}

.price-update-info small {
    color: #666;
}

.buy-btn {
    background: #000;
    color: #fff;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s;
}

.buy-btn:hover {
    background: #333;
}

/* Grille des catégories */
.categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.cat-card {
    background: var(--accent-grey);
    padding: 25px;
    border-radius: 10px;
}

.cat-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.cat-title {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.cat-score {
    font-size: 1.2rem;
    font-weight: 900;
    color: #000;
    transition: color 0.3s;
}

.cat-score-max {
    font-size: 1rem;
    color: #999;
}

.cat-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    margin: 0 0 15px 0;
    font-style: italic;
}

.cat-details {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

/* MODIFICATION 8 : Lien retour sous le cadre */
.back-link-container {
    text-align: center;
    margin-top: 30px;
    padding-top: 0;
    border-top: none;
    width: 100%;
}

.back-link {
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
    display: inline-block;
}

.back-link:hover {
    color: #666;
}

/* Footer pour les mentions légales */
footer {
    text-align: center;
    padding: 20px;
    background: #ffffff;
    margin-top: 40px;
}

footer a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
}

footer a:hover {
    color: #000;
}

/* Page mentions légales */
.legal-page {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.legal-page h1 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 30px;
}

.legal-page h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-page p {
    line-height: 1.7;
    margin-bottom: 15px;
}

/* ========================================= */
/* --- RESPONSIVE MOBILE --- */
/* ========================================= */

@media (max-width: 768px) {
    /* Réduction des marges générales */
    body {
        padding-bottom: 30px;
    }
    
    /* Header plus compact */
    header {
        padding: 15px 3%;
    }
    
    .logo-container {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    
    .logo-header {
        height: 36px;
    }
    
    .site-subtitle {
        font-size: 0.75rem;
    }
    
    /* Contrôles plus compacts */
    .controls-bar.centered {
        margin-bottom: 20px;
    }
    
    .toggle-group.no-border {
        font-size: 0.85rem;
    }
    
    /* === PAGE PRINCIPALE === */
    
    .ranking-wrapper {
        padding: 10px 5px;
    }
    
    /* Cadre noir plus fin sur mobile */
    .phone-bezel {
        border-width: 6px;
        border-radius: 25px;
        padding: 15px 0 20px 0;
        width: 100%;
        max-width: 400px;
        height: auto;
        min-height: 500px;
    }
    
    /* IMPORTANT : Désactiver l'expansion tablette sur mobile */
    .phone-bezel.tablet-mode {
        width: 100% !important;
        max-width: 400px !important;
    }
    
    /* Forcer la grille smartphone même en mode "tablette" */
    .phone-bezel.tablet-mode .grid-layout {
        grid-template-columns: 40px 2fr 80px 0fr 0fr 0fr 0fr 0fr !important;
        gap: 0px !important;
    }
    
    /* Garder les détails cachés sur mobile */
    .phone-bezel.tablet-mode .col-detail,
    .phone-bezel.tablet-mode .sortable:not(.header-note) {
        opacity: 0 !important;
        visibility: hidden !important;
    }
    
    /* Cacher la flèche d'expansion sur mobile */
    .expand-trigger {
        display: none;
    }
    
    .phone-screen {
        padding: 0 15px;
    }
    
    .scrollable-content {
        padding-right: 3px;
    }
    
    /* Lignes du tableau plus compactes */
    .phone-row {
        padding: 12px 0;
        font-size: 1rem;
    }
    
    .col-rank {
        font-size: 0.85rem;
    }
    
    .col-score {
        font-size: 1.1rem;
    }
    
    /* Accordéon description plus compact */
    .phone-desc-content.open {
        max-height: 200px;
    }
    
    .desc-inner {
        padding: 15px;
        gap: 15px;
    }
    
    .phone-mini-img {
        width: 60px;
        height: 60px;
    }
    
    .desc-title {
        font-size: 0.95rem;
    }
    
    .read-more-link {
        font-size: 0.75rem;
    }
    
    /* === PAGE DÉTAILLÉE === */
    
    .detail-page-wrapper {
        padding: 10px 5px;
    }
    
    /* Cadre noir plus fin sur mobile */
    .detail-bezel {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 600px !important;
        border-width: 6px !important;
        border-radius: 25px !important;
        padding: 20px 0 !important;
    }
    
    .detail-screen {
        padding: 0 15px !important;
    }
    
    /* En-tête responsive */
    .detail-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding-bottom: 20px;
    }
    
    .detail-phone-img {
        width: 150px;
        height: 150px;
    }
    
    .detail-title {
        font-size: 1.8rem;
    }
    
    .detail-subtitle {
        font-size: 1rem;
    }
    
    /* Stats sur deux lignes si nécessaire */
    .detail-stats {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .detail-rank,
    .detail-global-score {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .rank-value,
    .score-value {
        font-size: 2rem;
    }
    
    /* Synthèse */
    .detail-synthesis h2 {
        font-size: 1.3rem;
    }
    
    .detail-synthesis p {
        font-size: 1rem;
    }
    
    /* Points forts/faibles sur une colonne */
    .detail-points-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .points-box {
        padding: 20px;
    }
    
    /* Tableau des prix */
    .price-table {
        padding: 20px;
    }
    
    .price-table h3 {
        font-size: 1.3rem;
    }
    
    .price-row {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .price-row.best-price {
        padding: 12px;
    }
    
    .merchant-name {
        width: 100%;
        font-size: 1rem;
    }
    
    .best-badge {
        margin-left: 0;
        margin-top: 5px;
    }
    
    .price {
        flex: 1;
        font-size: 1.2rem;
    }
    
    .buy-btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
    
    .price-unavailable {
        width: 100%;
        text-align: center;
        margin-top: 5px;
    }
    
    /* Catégories sur une colonne */
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cat-card {
        padding: 20px;
    }
    
    .cat-title {
        font-size: 1.1rem;
    }
    
    .cat-subtitle {
        font-size: 0.95rem;
    }
    
    .cat-details {
        font-size: 0.9rem;
    }
    
    /* Lien retour */
    .back-link-container {
        margin-top: 20px;
    }
    
    .back-link {
        font-size: 0.9rem;
    }
    
    /* Page légale */
    .legal-page {
        padding: 0 15px;
    }
    
    .legal-page h1 {
        font-size: 1.6rem;
    }
    
    .legal-page h2 {
        font-size: 1.2rem;
    }
}

/* Responsive pour tablettes */
@media (max-width: 1100px) and (min-width: 769px) {
    .detail-bezel {
        width: 95% !important;
        border-radius: 20px;
    }
    
    .categories-grid,
    .detail-points-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-header {
        flex-direction: column;
        text-align: center;
    }
}


        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            line-height: 1.6;
        }

        /* Overlay semi-transparent */
        .cookie-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 9998;
        }

        .cookie-overlay.active {
            display: block;
        }

        /* Bannière principale */
        .cookie-banner {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: #ffffff;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
            z-index: 9999;
            padding: 30px;
            max-height: 90vh;
            overflow-y: auto;
        }

        .cookie-banner.active {
            display: block;
        }

        .cookie-content {
            max-width: 1200px;
            margin: 0 auto;
        }

        .cookie-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
        }

        .cookie-icon {
            font-size: 2rem;
        }

        .cookie-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: #000;
        }

        .cookie-description {
            margin-bottom: 20px;
            color: #333;
            font-size: 0.95rem;
        }

        .cookie-description a {
            color: #000;
            text-decoration: underline;
        }

        /* Boutons principaux */
        .cookie-buttons {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            margin-bottom: 15px;
        }

        .btn {
            padding: 12px 30px;
            border: none;
            border-radius: 6px;
            font-weight: 600;
            font-size: 0.95rem;
            cursor: pointer;
            transition: all 0.3s;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .btn-accept {
            background: #000;
            color: #fff;
        }

        .btn-accept:hover {
            background: #333;
        }

        .btn-refuse {
            background: #000;
            color: #fff;
        }

        .btn-refuse:hover {
            background: #333;
        }

        .btn-customize {
            background: #f0f0f0;
            color: #000;
            border: 2px solid #000;
        }

        .btn-customize:hover {
            background: #e0e0e0;
        }

        /* Panel de personnalisation */
        .cookie-customize {
            display: none;
            margin-top: 25px;
            padding-top: 25px;
            border-top: 2px solid #e0e0e0;
        }

        .cookie-customize.active {
            display: block;
        }

        .cookie-category {
            margin-bottom: 20px;
            padding: 20px;
            background: #f9f9f9;
            border-radius: 8px;
        }

        .category-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }

        .category-title {
            font-weight: 700;
            font-size: 1.1rem;
            color: #000;
        }

        .category-required {
            font-size: 0.85rem;
            color: #666;
            font-style: italic;
        }

        .category-description {
            color: #555;
            font-size: 0.9rem;
            line-height: 1.5;
        }

        /* Toggle switch */
        .switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 26px;
        }

        .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: 0.4s;
            border-radius: 26px;
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 20px;
            width: 20px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: 0.4s;
            border-radius: 50%;
        }

        input:checked + .slider {
            background-color: #000;
        }

        input:checked + .slider:before {
            transform: translateX(24px);
        }

        input:disabled + .slider {
            background-color: #999;
            cursor: not-allowed;
        }

        /* Bouton de gestion (petit bouton en bas de page) */
        .cookie-manage-btn {
            display: none;
            position: fixed;
            bottom: 20px;
            left: 20px;
            background: #000;
            color: #fff;
            border: none;
            padding: 10px 20px;
            border-radius: 6px;
            font-weight: 600;
            cursor: pointer;
            z-index: 9997;
            font-size: 0.85rem;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }

        .cookie-manage-btn:hover {
            background: #333;
        }

        .cookie-manage-btn.visible {
            display: block;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .cookie-banner {
                padding: 20px;
            }

            .cookie-title {
                font-size: 1.2rem;
            }

            .cookie-buttons {
                flex-direction: column;
            }

            .btn {
                width: 100%;
            }

            .cookie-manage-btn {
                bottom: 10px;
                left: 10px;
                right: 10px;
                width: calc(100% - 20px);
            }
        }

        /* Demo content */
        .demo-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 20px;
        }

        .demo-content h1 {
            font-size: 2.5rem;
            margin-bottom: 20px;
        }

        .demo-content p {
            margin-bottom: 15px;
            color: #333;
        }