/*
 * Conciergerie du Geek — theme.css
 * Styles custom non-couverts par Tailwind CDN.
 */

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* ============================================================
   BARRE DE NAVIGATION SECONDAIRE
   ============================================================ */
.lcdg-subnav {
    background: #0f1e3d; /* légèrement plus sombre que la nav principale */
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
html.dark .lcdg-subnav {
    background: #0a1228;
    border-bottom-color: rgba(255,255,255,0.05);
}
.lcdg-subnav-list {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}
.lcdg-subnav-list::-webkit-scrollbar { display: none; }
.lcdg-subnav-list li { flex-shrink: 0; }
.lcdg-subnav-list li a {
    display: block;
    padding: 0.45rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color 0.15s;
    white-space: nowrap;
}
.lcdg-subnav-list li a:hover,
.lcdg-subnav-list li.current-menu-item a {
    color: var(--lcdg-accent, #f5a623);
}

/* ============================================================
   ARTICLE CARDS — forcer le clipping border-radius sur Safari/Chrome
   overflow:hidden seul ne suffit pas toujours (bug de compositing)
   ============================================================ */
.lcdg-article-card {
    isolation: isolate;          /* crée un nouveau contexte de composition */
    -webkit-mask-image: -webkit-radial-gradient(white, black); /* hack Safari */
}

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
#lcdg-read-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    height: 3px;
    width: 0%;
    background: var(--lcdg-accent, #FFD600);
    box-shadow: 0 0 6px var(--lcdg-accent, #FFD600);
    transition: width 0.1s linear;
    pointer-events: none;
    border-radius: 0 2px 2px 0;
}

body {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   VARIABLES CSS (synchronisées avec le Customizer via wp_head)
   ============================================================ */
:root {
    --lcdg-navy:      #1e3a6e;
    --lcdg-accent:    #FFD600;
    --lcdg-dark-bg:   #12121f;
    --lcdg-dark-card: #1e1e33;
}

/* ============================================================
   DARK MODE — overrides globaux
   ============================================================ */
html.dark body                  { background-color: var(--lcdg-dark-bg); color: #e2e8f0; }
html.dark .bg-white             { background-color: var(--lcdg-dark-card) !important; }
html.dark .bg-gray-50           { background-color: #16213e !important; }
html.dark .bg-gray-100          { background-color: #1a2748 !important; }
html.dark .bg-page-bg           { background-color: var(--lcdg-dark-bg) !important; }
html.dark .text-gray-800        { color: #e2e8f0 !important; }
html.dark .text-gray-700        { color: #cbd5e1 !important; }
html.dark .text-gray-600        { color: #94a3b8 !important; }
html.dark .text-gray-500        { color: #8892b0 !important; }
html.dark .border-gray-100      { border-color: #2d3748 !important; }
html.dark .border-gray-200      { border-color: #2d3748 !important; }
html.dark .border-gray-300      { border-color: #374151 !important; }

/* ============================================================
   HERO HOMEPAGE — layout aligné sans Tailwind
   ============================================================ */

/* Grille flex : colonne gauche 2/3, colonne droite 1/3, même hauteur */
.lcdg-hero-grid {
    display: flex;
    gap: 1rem;
    align-items: stretch;   /* les deux colonnes s'étirent à la même hauteur */
    min-height: 420px;
}

/* Colonne gauche */
.lcdg-hero-main {
    flex: 2;                /* 2/3 de la largeur */
    min-width: 0;
}

/* Lien/carte hero gauche : remplit toute la hauteur */
.lcdg-hero-link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    text-decoration: none;
}

/* Image hero : absolute pour remplir le parent */
.lcdg-hero-img {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.lcdg-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.lcdg-hero-link:hover .lcdg-hero-img img {
    transform: scale(1.04);
}
.lcdg-hero-img--fallback {
    background: linear-gradient(135deg, var(--lcdg-navy, #1e3a6e), #2a4f9a);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay dégradé */
.lcdg-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}

/* Contenu texte ancré en bas */
.lcdg-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
}

/* Colonne droite */
.lcdg-hero-aside {
    flex: 1;                /* 1/3 de la largeur */
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Chaque carte droite prend la moitié de la hauteur */
.lcdg-aside-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 1px 8px rgba(0,0,0,0.08);
    text-decoration: none;
    color: #1f2937;
    transition: box-shadow 0.2s;
}
html.dark .lcdg-aside-card {
    background: var(--lcdg-dark-card, #1e1e33);
    color: #e2e8f0;
}
.lcdg-aside-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.15); }

/* Zone image droite : hauteur explicite obligatoire pour que inset:0 fonctionne */
.lcdg-aside-img {
    position: relative;
    height: 160px;
    flex-shrink: 0;
    overflow: hidden;
}
.lcdg-aside-img-inner {
    position: absolute;
    inset: 0;
}
.lcdg-aside-img-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.lcdg-aside-card:hover .lcdg-aside-img-inner img {
    transform: scale(1.04);
}

/* Zone texte droite : hauteur fixe */
.lcdg-aside-text {
    padding: 0.75rem;
    flex-shrink: 0;
}

/* Responsive : sur mobile, empilé verticalement */
@media (max-width: 1023px) {
    .lcdg-hero-grid {
        flex-direction: column;
        min-height: auto;
    }
    .lcdg-hero-link {
        min-height: 280px;
    }
    .lcdg-hero-aside {
        flex-direction: row;
    }
    .lcdg-aside-img { height: 140px; }
}
@media (max-width: 639px) {
    .lcdg-hero-aside { flex-direction: column; }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#masthead { transition: transform 0.3s ease; }

/* Dropdown animation */
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:visible     { visibility: visible; }

/* ============================================================
   TICKER BREAKING NEWS
   ============================================================ */
.lcdg-ticker-bar {
    display: flex;
    align-items: center;
    background: #0d1e3d;
    color: #fff;
    height: 36px;
    overflow: hidden;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    position: relative;
    z-index: 60;
}

/* Badge BREAKING */
.lcdg-ticker-badge {
    flex-shrink: 0;
    background: var(--lcdg-accent, #FFD600);
    color: #0d1e3d;
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    padding: 0 12px;
    height: 100%;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Zone de défilement */
.lcdg-ticker-track-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    /* fondu sur les bords */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 32px, black calc(100% - 32px), transparent 100%);
    mask-image:         linear-gradient(to right, transparent 0%, black 32px, black calc(100% - 32px), transparent 100%);
}

.lcdg-ticker-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    height: 100%;
    animation: lcdg-ticker-scroll 40s linear infinite;
    will-change: transform;
}
.lcdg-ticker-track-wrap:hover .lcdg-ticker-track {
    animation-play-state: paused;
}

@keyframes lcdg-ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.lcdg-ticker-item {
    color: #e2e8f0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0 4px;
    transition: color 0.15s;
    white-space: nowrap;
}
.lcdg-ticker-item:hover { color: var(--lcdg-accent, #FFD600); }

.lcdg-ticker-sep {
    color: var(--lcdg-accent, #FFD600);
    font-size: 0.5rem;
    margin: 0 12px;
    opacity: 0.7;
    flex-shrink: 0;
}

/* Date à droite */
.lcdg-ticker-date {
    flex-shrink: 0;
    padding: 0 14px;
    font-size: 0.72rem;
    color: #94a3b8;
    white-space: nowrap;
    border-left: 1px solid rgba(255,255,255,0.1);
    height: 100%;
    display: flex;
    align-items: center;
}

/* Responsive : on masque la date sur mobile étroit */
@media (max-width: 480px) {
    .lcdg-ticker-date { display: none; }
}

/* ============================================================
   ARTICLE BODY — typographie
   ============================================================ */
.article-body {
    line-height: 1.85;
    color: #374151;
}
html.dark .article-body { color: #cbd5e1; }

.article-body h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--lcdg-navy);
    margin: 2rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--lcdg-accent);
}
html.dark .article-body h2 { color: #ffffff; }

.article-body h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: #1f2937;
    margin: 1.5rem 0 0.5rem;
}
html.dark .article-body h3 { color: #e2e8f0; }

.article-body p { margin-bottom: 1.25rem; }

.article-body a {
    color: var(--lcdg-navy);
    text-decoration: underline;
    text-decoration-color: var(--lcdg-accent);
    text-underline-offset: 3px;
    transition: color 0.15s;
}
html.dark .article-body a { color: #93c5fd; }
.article-body a:hover { color: #d97706; }

.article-body blockquote {
    border-left: 4px solid var(--lcdg-accent);
    background: #fefce8;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: #6b7280;
}
html.dark .article-body blockquote {
    background: rgba(255, 214, 0, 0.08);
    color: #94a3b8;
}

.article-body code {
    background: #f1f5f9;
    color: #1e3a6e;
    padding: 0.15em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: 'Fira Code', 'Courier New', monospace;
}
html.dark .article-body code { background: #1e1e33; color: #93c5fd; }

.article-body pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1.25rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}
.article-body pre code { background: none; color: inherit; padding: 0; }

.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 0.4rem; }

.article-body img {
    border-radius: 0.75rem;
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto;
    display: block;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}
.article-body th {
    background: var(--lcdg-navy);
    color: white;
    padding: 0.6rem 0.75rem;
    text-align: left;
    font-weight: 600;
}
.article-body td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}
html.dark .article-body td { border-color: #2d3748; }
.article-body tr:nth-child(even) { background: #f9fafb; }
html.dark .article-body tr:nth-child(even) { background: rgba(255,255,255,0.03); }

/* Embeds responsifs (YouTube, Vimeo, Twitter, etc.) */
.article-body iframe,
.article-body embed,
.article-body object {
    max-width: 100%;
}

/* Wrapper 16:9 automatique pour les iframes YouTube/Vimeo */
.article-body .wp-block-embed__wrapper,
.article-body figure.wp-block-embed {
    margin: 1.5rem 0;
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 0.75rem;
}

.article-body .wp-block-embed__wrapper iframe,
.article-body figure.wp-block-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0.75rem;
}

/* Iframes YouTube insérées directement (shortcode ou éditeur classique) */
.article-body > iframe[src*="youtube"],
.article-body > iframe[src*="youtu.be"],
.article-body > iframe[src*="vimeo"],
.article-body p > iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
}

/* ============================================================
   GLITCH ANIMATION (page 404)
   ============================================================ */
.glitch {
    position: relative;
    color: var(--lcdg-navy);
}
html.dark .glitch { color: #ffffff; }

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    overflow: hidden;
}
.glitch::before {
    color: var(--lcdg-accent);
    animation: glitch-before 3s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}
.glitch::after {
    color: #7c3aed;
    animation: glitch-after 3s infinite;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch-before {
    0%, 90%, 100% { transform: translate(0); }
    91% { transform: translate(-4px, 2px); }
    93% { transform: translate(4px, -2px); }
    95% { transform: translate(-2px, 3px); }
}
@keyframes glitch-after {
    0%, 90%, 100% { transform: translate(0); }
    91% { transform: translate(4px, -2px); }
    93% { transform: translate(-4px, 2px); }
    95% { transform: translate(3px, -1px); }
}

/* ============================================================
   PAGINATION WordPress
   ============================================================ */
.lcdg-pagination .nav-links,
.navigation .nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.lcdg-pagination .page-numbers,
.navigation .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    color: #374151;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    transition: all 0.15s;
}
html.dark .lcdg-pagination .page-numbers,
html.dark .navigation .page-numbers {
    background: #1e1e33;
    color: #e2e8f0;
    border-color: #2d3748;
}
.lcdg-pagination .page-numbers:hover,
.navigation .page-numbers:hover {
    background: var(--lcdg-navy);
    color: white;
    border-color: var(--lcdg-navy);
}
.lcdg-pagination .page-numbers.current,
.navigation .page-numbers.current {
    background: var(--lcdg-navy);
    color: white;
    border-color: var(--lcdg-navy);
}
.lcdg-pagination .page-numbers.dots { border: none; background: none; }

/* ============================================================
   COMMENTAIRES WordPress
   ============================================================ */
.comment-list { list-style: none; padding: 0; }
.comment-body {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f3f4f6;
}
html.dark .comment-body { border-color: #2d3748; }
.comment-author img { border-radius: 50%; }
.comment-meta { font-size: 0.8rem; color: #6b7280; margin-bottom: 0.5rem; }
.comment-meta a { color: #1e3a6e; font-weight: 600; }
html.dark .comment-meta a { color: #93c5fd; }

/* Formulaire commentaire */
.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.6rem 0.9rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    margin-top: 0.25rem;
    background: #fff;
    color: #374151;
    transition: border-color 0.15s;
}
html.dark .comment-form input,
html.dark .comment-form textarea {
    background: #1e1e33;
    border-color: #374151;
    color: #e2e8f0;
}
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--lcdg-navy);
}
.comment-form .form-submit input[type="submit"] {
    width: auto;
    background: var(--lcdg-navy);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    padding: 0.6rem 1.5rem;
}
.comment-form .form-submit input[type="submit"]:hover {
    background: #152d55;
}

/* ============================================================
   SEARCH FORM WordPress
   ============================================================ */
.search-form {
    display: flex;
    gap: 0.5rem;
}
.search-form .search-field {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    background: #fff;
    color: #374151;
}
html.dark .search-form .search-field {
    background: #1e1e33;
    border-color: #374151;
    color: #e2e8f0;
}
.search-form .search-field:focus { outline: none; border-color: var(--lcdg-navy); }
.search-form .search-submit {
    padding: 0.6rem 1.25rem;
    background: var(--lcdg-navy);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.search-form .search-submit:hover { background: #152d55; }

/* ============================================================
   WIDGETS — sidebar cards
   ============================================================ */
.widget { margin-bottom: 1.5rem; }
.widget-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--lcdg-navy);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--lcdg-accent);
}
html.dark .widget-title { color: #ffffff; }

/* ── Nouvelle sidebar card ── */
.lcdg-widget-card {
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 1px 8px rgba(0,0,0,0.07);
    padding: 1.25rem 1.25rem 1rem;
}
html.dark .lcdg-widget-card {
    background: var(--lcdg-dark-card, #1e1e33);
    box-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

/* Titre widget : barre accent gauche + uppercase gras */
.lcdg-widget-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #111827;
    margin: 0 0 1.1rem 0;
}
html.dark .lcdg-widget-title { color: #f1f5f9; }
.lcdg-widget-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 1.1em;
    background: var(--lcdg-accent, #FFD600);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ── Ligne catégorie ── */
.lcdg-cat-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0;
    border-top: 1px solid #f3f4f6;
    text-decoration: none;
    transition: background 0.12s;
}
.lcdg-cat-row.first { border-top: none; padding-top: 0; }
html.dark .lcdg-cat-row { border-top-color: #2d3748; }
.lcdg-cat-row:hover .lcdg-cat-name {
    color: var(--lcdg-navy, #1e3a6e);
}
html.dark .lcdg-cat-row:hover .lcdg-cat-name { color: var(--lcdg-accent, #FFD600); }

/* Dot coloré */
.lcdg-cat-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Nom catégorie */
.lcdg-cat-name {
    flex: 1;
    font-size: 0.92rem;
    font-weight: 500;
    color: #1f2937;
    transition: color 0.12s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
html.dark .lcdg-cat-name { color: #e2e8f0; }

/* Badge count */
.lcdg-cat-count {
    flex-shrink: 0;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.4rem;
}
html.dark .lcdg-cat-count {
    background: #374151;
    color: #9ca3af;
}

/* Widget Menu nav — flèche & état actif */
.lcdg-menu-arrow {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--lcdg-accent, #FFD600);
    flex-shrink: 0;
    line-height: 1;
}
.lcdg-menu-active {
    background: rgba(255, 214, 0, 0.12);
    border-radius: 0.4rem;
}
.lcdg-menu-active .lcdg-cat-name {
    font-weight: 700;
    color: var(--lcdg-navy, #1e3a6e);
}
html.dark .lcdg-menu-active .lcdg-cat-name {
    color: var(--lcdg-accent, #FFD600);
}

/* ============================================================
   PUBLICITÉS
   ============================================================ */
.lcdg-ad { text-align: center; overflow: hidden; }
.lcdg-ad--header        { padding: 0.75rem 0; margin: 1rem auto 0.5rem; max-width: 728px; background: #f9fafb; }
html.dark .lcdg-ad--header { background: rgba(255,255,255,0.03); }
.lcdg-ad--sidebar_top    { margin-bottom: 1rem; }
.lcdg-ad--sidebar_bottom { margin: 1rem 0 1rem; }
.lcdg-ad--deals_sidebar  { margin-bottom: 1rem; }

/* Placeholder pub (admins uniquement — zone activée mais vide) */
.lcdg-ad--placeholder {
    border: 2px dashed #cbd5e1;
    border-radius: 0.75rem;
    background: #f8fafc;
    transition: border-color .2s;
}
.lcdg-ad--placeholder:hover { border-color: #94a3b8; }
html.dark .lcdg-ad--placeholder { background: rgba(255,255,255,0.03); border-color: #334155; }
html.dark .lcdg-ad--placeholder:hover { border-color: #64748b; }

/* ============================================================
   LOGO WP (custom-logo)
   ============================================================ */
.custom-logo-link img {
    max-height: 48px;
    width: auto;
}

/* ============================================================
   LIVE SEARCH — overlay
   ============================================================ */
.lcdg-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 50, 0.75);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.lcdg-search-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.lcdg-search-inner {
    width: 100%;
    max-width: 640px;
    margin: 0 1rem;
}
.lcdg-search-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #ffffff;
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
html.dark .lcdg-search-box {
    background: #1e1e33;
}
.lcdg-search-icon-input {
    width: 1.25rem;
    height: 1.25rem;
    color: #9ca3af;
    flex-shrink: 0;
}
.lcdg-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    color: #111827;
    font-family: inherit;
}
html.dark .lcdg-search-input { color: #f3f4f6; }
.lcdg-search-input::placeholder { color: #9ca3af; }
.lcdg-search-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    color: #9ca3af;
    padding: 0 4px;
    flex-shrink: 0;
    transition: color 0.15s;
}
.lcdg-search-close:hover { color: #ef4444; }

/* Résultats */
.lcdg-search-results {
    background: #ffffff;
    border-radius: 1rem;
    margin-top: 0.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    overflow: hidden;
    max-height: 420px;
    overflow-y: auto;
}
html.dark .lcdg-search-results { background: #1e1e33; }
.lcdg-search-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    transition: background 0.15s;
}
html.dark .lcdg-search-item { border-bottom-color: #2d2d4a; }
.lcdg-search-item:last-of-type { border-bottom: none; }
.lcdg-search-item:hover { background: #f0f4ff; }
html.dark .lcdg-search-item:hover { background: #252545; }
.lcdg-search-thumb {
    width: 56px;
    height: 42px;
    object-fit: cover;
    border-radius: 0.5rem;
    flex-shrink: 0;
}
.lcdg-search-thumb--empty {
    width: 56px;
    height: 42px;
    border-radius: 0.5rem;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
html.dark .lcdg-search-thumb--empty { background: #2d2d4a; }
.lcdg-search-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}
.lcdg-search-cat {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--lcdg-navy, #1e3a6e);
}
html.dark .lcdg-search-cat { color: var(--lcdg-accent, #FFD600); }
.lcdg-search-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
html.dark .lcdg-search-title { color: #f3f4f6; }
.lcdg-search-date {
    font-size: 0.7rem;
    color: #9ca3af;
}
.lcdg-search-loading,
.lcdg-search-empty {
    padding: 1.25rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
}
.lcdg-search-all {
    display: block;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--lcdg-navy, #1e3a6e);
    background: #f8faff;
    text-decoration: none;
    border-top: 1px solid #e5e7eb;
    transition: background 0.15s;
}
html.dark .lcdg-search-all {
    background: #252545;
    color: var(--lcdg-accent, #FFD600);
    border-top-color: #2d2d4a;
}
.lcdg-search-all:hover { background: var(--lcdg-accent, #FFD600); color: var(--lcdg-navy, #1e3a6e); }

/* ============================================================
   CHARGER PLUS — bouton Load More
   ============================================================ */
.lcdg-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.lcdg-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--lcdg-navy, #1e3a6e);
    border: 2px solid var(--lcdg-navy, #1e3a6e);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.65rem 2rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.02em;
}
.lcdg-load-more-btn:hover {
    background: var(--lcdg-navy, #1e3a6e);
    color: #fff;
}
html.dark .lcdg-load-more-btn {
    color: var(--lcdg-accent, #FFD600);
    border-color: var(--lcdg-accent, #FFD600);
}
html.dark .lcdg-load-more-btn:hover {
    background: var(--lcdg-accent, #FFD600);
    color: var(--lcdg-navy, #1e3a6e);
}
.lcdg-load-more-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
}
.lcdg-load-more-btn.loading::before {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: lcdg-spin 0.6s linear infinite;
}
@keyframes lcdg-spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   SOMMAIRE (TOC) — articles uniquement
   ============================================================ */
.lcdg-toc {
    background: #f1f5f9;
    border-left: 3px solid #cbd5e1;
    border-radius: 0 0.75rem 0.75rem 0;
    padding: 1rem 1.25rem 0.75rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
}
html.dark .lcdg-toc {
    background: #1a2340;
    border-left-color: var(--lcdg-accent, #FFD600);
}

.lcdg-toc-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    color: var(--lcdg-navy, #1e3a6e);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.75rem;
    margin-bottom: 0.6rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(30,58,110,0.1);
}
html.dark .lcdg-toc-header {
    color: var(--lcdg-accent, #FFD600);
    border-bottom-color: rgba(255,214,0,0.15);
}

.lcdg-toc-icon { font-size: 0.9rem; line-height: 1; }

.lcdg-toc-toggle {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 0;
    line-height: 1;
    font-size: 0.65rem;
    transition: color 0.15s, transform 0.2s;
}
.lcdg-toc-toggle:hover { color: var(--lcdg-navy, #1e3a6e); }
html.dark .lcdg-toc-toggle:hover { color: var(--lcdg-accent, #FFD600); }
.lcdg-toc-toggle.collapsed { transform: rotate(180deg); }

.lcdg-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    max-height: 2000px;
}
.lcdg-toc-list.hidden { max-height: 0; }

/* Chaque item = flex row pour aligner flèche + lien */
.lcdg-toc-item {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    padding: 0.15rem 0;
}
.lcdg-toc-item .lcdg-toc-arrow {
    color: var(--lcdg-accent, #FFD600);
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    line-height: 1.5;
}
.lcdg-toc-item a {
    color: #374151;
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.15s;
    flex: 1;
}
html.dark .lcdg-toc-item a { color: #d1d5db; }
.lcdg-toc-item a:hover { color: var(--lcdg-navy, #1e3a6e); text-decoration: underline; text-decoration-color: var(--lcdg-accent, #FFD600); }
html.dark .lcdg-toc-item a:hover { color: var(--lcdg-accent, #FFD600); }

/* H3 indentés */
.lcdg-toc-sub {
    padding-left: 1rem;
}
.lcdg-toc-sub .lcdg-toc-arrow {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* ============================================================
   PAGES D'AUTHENTIFICATION — connexion / inscription / reset
   ============================================================ */

.lcdg-auth-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #f1f5f9;
    display: flex;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}
html.dark .lcdg-auth-body { background: #0d1117; }

/* Layout split */
.lcdg-auth-wrap {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ── Panneau gauche — branding ── */
.lcdg-auth-brand {
    display: none;
    flex: 1;
    background: var(--lcdg-navy, #1e3a6e);
    background-image: radial-gradient(ellipse at 60% 40%, rgba(255,214,0,0.08) 0%, transparent 60%),
                      radial-gradient(ellipse at 20% 80%, rgba(255,255,255,0.04) 0%, transparent 50%);
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}
@media (min-width: 1024px) { .lcdg-auth-brand { display: flex; } }

.lcdg-auth-brand__inner {
    text-align: center;
    z-index: 1;
}
.lcdg-auth-brand__logo {
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1.5rem;
}
.lcdg-auth-brand__name {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    color: #fff;
    letter-spacing: -0.02em;
}
.lcdg-auth-brand__name span { color: var(--lcdg-accent, #FFD600); }
.lcdg-auth-brand__logo img { max-height: 60px; width: auto; }
.lcdg-auth-brand__tagline {
    color: rgba(255,255,255,0.55);
    font-size: 1rem;
    margin: 0 0 2.5rem;
    line-height: 1.6;
}
.lcdg-auth-brand__deco {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 2.5rem;
    opacity: 0.18;
}

/* ── Panneau droit — formulaire ── */
.lcdg-auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}
@media (min-width: 1024px) { .lcdg-auth-form-panel { max-width: 520px; flex: 0 0 520px; } }

/* ── Carte formulaire ── */
.lcdg-auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 32px rgba(0,0,0,0.08);
}
html.dark .lcdg-auth-card {
    background: #161b27;
    box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}

.lcdg-auth-card__header { margin-bottom: 1.75rem; }
.lcdg-auth-card__header h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--lcdg-navy, #1e3a6e);
    margin: 0 0 0.35rem;
    line-height: 1.2;
}
html.dark .lcdg-auth-card__header h1 { color: #f1f5f9; }
.lcdg-auth-card__header p {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
}
html.dark .lcdg-auth-card__header p { color: #94a3b8; }

/* ── Alertes ── */
.lcdg-auth-alert {
    border-radius: 0.625rem;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}
.lcdg-auth-alert--error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
html.dark .lcdg-auth-alert--error {
    background: rgba(239,68,68,0.1);
    border-color: rgba(239,68,68,0.25);
    color: #f87171;
}
.lcdg-auth-alert--success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
html.dark .lcdg-auth-alert--success {
    background: rgba(34,197,94,0.1);
    border-color: rgba(34,197,94,0.25);
    color: #4ade80;
}

/* ── Formulaire ── */
.lcdg-auth-form { display: flex; flex-direction: column; gap: 1.1rem; }

.lcdg-auth-field { display: flex; flex-direction: column; gap: 0.4rem; }
.lcdg-auth-field label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
}
html.dark .lcdg-auth-field label { color: #d1d5db; }
.lcdg-auth-field__link {
    font-size: 0.78rem;
    color: var(--lcdg-navy, #1e3a6e);
    text-decoration: none;
    font-weight: 500;
}
html.dark .lcdg-auth-field__link { color: var(--lcdg-accent, #FFD600); }
.lcdg-auth-field__link:hover { text-decoration: underline; }

.lcdg-auth-field input[type="text"],
.lcdg-auth-field input[type="email"],
.lcdg-auth-field input[type="password"] {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.625rem;
    font-size: 0.9rem;
    background: #f9fafb;
    color: #111827;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    box-sizing: border-box;
}
html.dark .lcdg-auth-field input {
    background: #1e2535;
    border-color: #2d3748;
    color: #f1f5f9;
}
.lcdg-auth-field input:focus {
    border-color: var(--lcdg-navy, #1e3a6e);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(30,58,110,0.1);
}
html.dark .lcdg-auth-field input:focus {
    border-color: var(--lcdg-accent, #FFD600);
    background: #1e2535;
    box-shadow: 0 0 0 3px rgba(255,214,0,0.1);
}

/* Wrap mot de passe avec toggle */
.lcdg-auth-pwd-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.lcdg-auth-pwd-wrap input { flex: 1; padding-right: 2.75rem !important; }
.lcdg-auth-pwd-toggle {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 0.2rem;
    transition: color 0.15s;
    display: flex;
    align-items: center;
}
.lcdg-auth-pwd-toggle:hover { color: var(--lcdg-navy, #1e3a6e); }
html.dark .lcdg-auth-pwd-toggle:hover { color: var(--lcdg-accent, #FFD600); }
.lcdg-auth-eye { width: 1.1rem; height: 1.1rem; }

/* Remember me */
.lcdg-auth-remember { display: flex; align-items: center; }
.lcdg-auth-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: #6b7280;
    cursor: pointer;
    user-select: none;
}
html.dark .lcdg-auth-checkbox { color: #9ca3af; }
.lcdg-auth-checkbox input { display: none; }
.lcdg-auth-checkbox__box {
    width: 1rem;
    height: 1rem;
    border: 1.5px solid #d1d5db;
    border-radius: 0.25rem;
    background: #f9fafb;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
}
.lcdg-auth-checkbox input:checked ~ .lcdg-auth-checkbox__box {
    background: var(--lcdg-navy, #1e3a6e);
    border-color: var(--lcdg-navy, #1e3a6e);
}
.lcdg-auth-checkbox input:checked ~ .lcdg-auth-checkbox__box::after {
    content: '✓';
    color: #fff;
    font-size: 0.65rem;
    font-weight: 900;
}

/* Hint texte */
.lcdg-auth-hint {
    font-size: 0.78rem;
    color: #9ca3af;
    margin: 0;
    line-height: 1.5;
}

/* Bouton submit */
.lcdg-auth-submit {
    width: 100%;
    background: var(--lcdg-navy, #1e3a6e);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 2px 12px rgba(30,58,110,0.25);
    margin-top: 0.25rem;
}
.lcdg-auth-submit:hover {
    background: #152d55;
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(30,58,110,0.35);
}
html.dark .lcdg-auth-submit {
    background: var(--lcdg-accent, #FFD600);
    color: var(--lcdg-navy, #1e3a6e);
    box-shadow: 0 2px 12px rgba(255,214,0,0.25);
}
html.dark .lcdg-auth-submit:hover { background: #e6c200; }

/* Footer carte */
.lcdg-auth-card__footer {
    text-align: center;
    font-size: 0.82rem;
    color: #6b7280;
    margin: 1.5rem 0 0;
}
html.dark .lcdg-auth-card__footer { color: #9ca3af; }
.lcdg-auth-card__footer a {
    color: var(--lcdg-navy, #1e3a6e);
    font-weight: 600;
    text-decoration: none;
}
html.dark .lcdg-auth-card__footer a { color: var(--lcdg-accent, #FFD600); }
.lcdg-auth-card__footer a:hover { text-decoration: underline; }

/* Lien retour au site */
.lcdg-auth-back {
    display: block;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.78rem;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.15s;
}
.lcdg-auth-back:hover { color: #6b7280; }
html.dark .lcdg-auth-back:hover { color: #cbd5e1; }

/* ── Indicateur de force MDP ── */
.lcdg-auth-strength {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: -0.25rem;
}
.lcdg-auth-strength__bar {
    flex: 1;
    height: 4px;
    background: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
}
html.dark .lcdg-auth-strength__bar { background: #2d3748; }
.lcdg-auth-strength__fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.3s ease, background 0.3s ease;
}
.lcdg-auth-strength__label {
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    min-width: 5rem;
    text-align: right;
}

/* ============================================================
   UTILITAIRES
   ============================================================ */
.line-clamp-1 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.line-clamp-2 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.line-clamp-3 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }

/* Mark — surbrillance recherche */
mark {
    background: rgba(255, 214, 0, 0.35);
    color: inherit;
    border-radius: 2px;
    padding: 0 2px;
}

/* ============================================================
   SIDEBAR STICKY
   ============================================================ */
@media (min-width: 1024px) {
    .lcdg-sticky-sidebar {
        position: sticky;
        top: 6rem; /* sous la nav sticky (~96px) */
        align-self: flex-start;
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
    .article-body h2 { font-size: 1.25rem; }
    .article-body h3 { font-size: 1.1rem; }
    .glitch { font-size: 5rem; }
}

/* ============================================================
   PAGE SINGLE DEAL — refonte complète
   ============================================================ */

/* ── Bandeau top ── */
.lcdg-deal-topbar {
    background: #f59e0b;
    padding: 0.6rem 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
}
.lcdg-deal-topbar__badge {
    background: #fff;
    color: #d97706;
    font-weight: 900;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    white-space: nowrap;
}
.lcdg-deal-topbar__text { opacity: 0.9; }
.lcdg-deal-topbar__expire { font-weight: 700; }

/* ── Hero produit ── */
.lcdg-deal-hero {
    background: var(--lcdg-navy, #1e3a6e);
}
html.dark .lcdg-deal-hero { background: #0d1424; }

/* Breadcrumb dans le hero */
.lcdg-deal-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.lcdg-deal-breadcrumb a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.15s;
}
.lcdg-deal-breadcrumb a:hover { color: #fff; }
.lcdg-deal-breadcrumb span:last-child { color: rgba(255,255,255,0.85); }

/* Grille hero : image + infos */
.lcdg-deal-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
@media (max-width: 1023px) {
    .lcdg-deal-hero__grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── Zone image ── */
.lcdg-deal-img-wrap {
    position: relative;
    background: rgba(255,255,255,0.06);
    border-radius: 1.25rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 340px;
    padding: 2rem;
}
.lcdg-deal-img {
    max-width: 100%;
    max-height: 340px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3));
}
.lcdg-deal-img-placeholder {
    font-size: 6rem;
    opacity: 0.2;
}
.lcdg-deal-discount-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ef4444;
    color: #fff;
    font-weight: 900;
    font-size: 1rem;
    padding: 0.35rem 0.8rem;
    border-radius: 9999px;
    letter-spacing: 0.02em;
}
.lcdg-deal-merchant-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(255,255,255,0.2);
}

/* ── Zone infos ── */
.lcdg-deal-info { color: #fff; }

.lcdg-deal-info__cat-badge {
    display: inline-block;
    background: rgba(245,158,11,0.2);
    color: #fbbf24;
    border: 1px solid rgba(245,158,11,0.4);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
}
.lcdg-deal-info__title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.25;
    color: #fff;
    margin: 0 0 1rem;
}
.lcdg-deal-info__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.lcdg-deal-info__meta img { width: 28px; height: 28px; border-radius: 50%; }
.lcdg-deal-info__meta-sep { opacity: 0.4; }

/* ── Bloc prix ── */
.lcdg-deal-price-block {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.lcdg-deal-price-new {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: clamp(2.2rem, 5vw, 3rem);
    color: #fbbf24;
    line-height: 1;
}
.lcdg-deal-price-old {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.4);
    text-decoration: line-through;
}
.lcdg-deal-price-pct {
    background: #ef4444;
    color: #fff;
    font-weight: 900;
    font-size: 0.9rem;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
}

/* ── Barre de stock ── */
.lcdg-deal-stock { margin-bottom: 1.5rem; }
.lcdg-deal-stock__labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.4rem;
    font-weight: 600;
}
.lcdg-deal-stock__bar {
    height: 6px;
    background: rgba(255,255,255,0.12);
    border-radius: 9999px;
    overflow: hidden;
}
.lcdg-deal-stock__fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.6s ease;
}

/* ── CTA principal ── */
.lcdg-deal-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: #f59e0b;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border-radius: 0.875rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(245,158,11,0.4);
    margin-bottom: 0.6rem;
}
.lcdg-deal-cta-btn:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(245,158,11,0.5);
    color: #fff;
}
.lcdg-deal-cta-btn--lg {
    font-size: 1.05rem;
    padding: 0.9rem 2rem;
}
.lcdg-deal-aff-notice {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
    margin: 0 0 1.25rem;
    text-align: center;
}

/* ── Boutons de partage ── */
.lcdg-deal-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    flex-wrap: wrap;
}
.lcdg-deal-share__btn {
    padding: 0.3rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.15s;
}
.lcdg-deal-share__btn:hover { opacity: 0.8; }
.lcdg-deal-share__btn--tw { background: #000; }
.lcdg-deal-share__btn--fb { background: #1877f2; }
.lcdg-deal-share__btn--rd { background: #ff4500; }

/* ── Sticky bar (mobile + desktop au scroll) ── */
.lcdg-deal-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--lcdg-navy, #1e3a6e);
    border-top: 2px solid #f59e0b;
    z-index: 200;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
html.dark .lcdg-deal-sticky { background: #0d1424; }
.lcdg-deal-sticky--visible { transform: translateY(0); }
.lcdg-deal-sticky__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
}
.lcdg-deal-sticky__price {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    color: #fbbf24;
    display: block;
}
.lcdg-deal-sticky__old {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    text-decoration: line-through;
    display: block;
}
.lcdg-deal-sticky__btn {
    background: #f59e0b;
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 0.65rem 1.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
    flex-shrink: 0;
}
.lcdg-deal-sticky__btn:hover { background: #d97706; color: #fff; }

/* ── Pros & Cons ── */
.lcdg-deal-proscons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}
@media (max-width: 640px) { .lcdg-deal-proscons { grid-template-columns: 1fr; } }

.lcdg-deal-proscons__col {
    border-radius: 0.875rem;
    padding: 1.25rem;
}
.lcdg-deal-proscons__col--pro {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}
html.dark .lcdg-deal-proscons__col--pro {
    background: rgba(34,197,94,0.08);
    border-color: rgba(34,197,94,0.2);
}
.lcdg-deal-proscons__col--con {
    background: #fef2f2;
    border: 1px solid #fecaca;
}
html.dark .lcdg-deal-proscons__col--con {
    background: rgba(239,68,68,0.08);
    border-color: rgba(239,68,68,0.2);
}
.lcdg-deal-proscons__col h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0 0 0.75rem;
}
.lcdg-deal-proscons__col--pro h3 { color: #15803d; }
html.dark .lcdg-deal-proscons__col--pro h3 { color: #4ade80; }
.lcdg-deal-proscons__col--con h3 { color: #b91c1c; }
html.dark .lcdg-deal-proscons__col--con h3 { color: #f87171; }
.lcdg-deal-proscons__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.lcdg-deal-proscons__col li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.85rem; }
.lcdg-deal-proscons__icon { font-weight: 900; font-size: 0.9rem; flex-shrink: 0; margin-top: 0.05rem; }
.lcdg-deal-proscons__col--pro .lcdg-deal-proscons__icon { color: #16a34a; }
.lcdg-deal-proscons__col--con .lcdg-deal-proscons__icon { color: #dc2626; }
.lcdg-deal-proscons__col--pro li { color: #166534; }
html.dark .lcdg-deal-proscons__col--pro li { color: #86efac; }
.lcdg-deal-proscons__col--con li { color: #991b1b; }
html.dark .lcdg-deal-proscons__col--con li { color: #fca5a5; }

/* ── Body deal — bullets stylés ── */
.lcdg-deal-body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.lcdg-deal-body ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.95rem;
    line-height: 1.6;
    padding: 0.5rem 0.75rem;
    background: #f8faff;
    border-radius: 0.5rem;
    border-left: 3px solid var(--lcdg-accent, #FFD600);
}
html.dark .lcdg-deal-body ul li {
    background: rgba(255,255,255,0.04);
    color: #cbd5e1;
}
.lcdg-deal-body ul li::before {
    content: '✓';
    color: var(--lcdg-accent, #FFD600);
    font-weight: 900;
    flex-shrink: 0;
    margin-top: 0.1rem;
    filter: drop-shadow(0 0 3px rgba(255,214,0,0.4));
}

/* ── CTA bas ── */
.lcdg-deal-cta-bottom {
    background: linear-gradient(135deg, var(--lcdg-navy, #1e3a6e) 0%, #152d55 100%);
    border-radius: 1.25rem;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
}
html.dark .lcdg-deal-cta-bottom { background: linear-gradient(135deg, #0d1424 0%, #1a2748 100%); }
.lcdg-deal-cta-bottom__price {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    color: #fbbf24;
    margin: 0 0 0.25rem;
}
.lcdg-deal-cta-bottom__notice {
    color: rgba(255,255,255,0.45);
    font-size: 0.78rem;
    margin: 0 0 1.25rem;
}
.lcdg-deal-cta-bottom .lcdg-deal-cta-btn { max-width: 320px; margin: 0 auto; }

/* ── Deals similaires ── */
.lcdg-deal-related { margin-bottom: 2.5rem; }
.lcdg-deal-related__title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--lcdg-navy, #1e3a6e);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--lcdg-accent, #FFD600);
    display: inline-block;
}
html.dark .lcdg-deal-related__title { color: #fff; }
.lcdg-deal-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
@media (max-width: 768px) { .lcdg-deal-related__grid { grid-template-columns: 1fr; } }
.lcdg-deal-related__card {
    background: #fff;
    border-radius: 0.875rem;
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(0,0,0,0.07);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.15s;
}
html.dark .lcdg-deal-related__card { background: #1e1e33; }
.lcdg-deal-related__card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.12); transform: translateY(-2px); }
.lcdg-deal-related__img {
    height: 140px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0.75rem;
}
html.dark .lcdg-deal-related__img { background: #252545; }
.lcdg-deal-related__body { padding: 0.875rem; flex: 1; }
.lcdg-deal-related__body h3 {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    margin: 0 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
html.dark .lcdg-deal-related__body h3 { color: #e2e8f0; }
.lcdg-deal-related__card:hover .lcdg-deal-related__body h3 { color: #f59e0b; }
.lcdg-deal-related__prices { display: flex; align-items: center; gap: 0.5rem; }
.lcdg-deal-related__price { font-family: 'Poppins', sans-serif; font-weight: 800; color: #f59e0b; font-size: 1rem; }
.lcdg-deal-related__disc { background: #fee2e2; color: #dc2626; font-size: 0.7rem; font-weight: 700; padding: 0.15rem 0.4rem; border-radius: 0.25rem; }

/* ── Padding bas pour la sticky bar ── */
body:has(.lcdg-deal-sticky--visible) { padding-bottom: 72px; }

/* ── Slider partenaires homepage ─────────────────────────────────────── */
.lcdg-partners-wrap {
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 48px, black calc(100% - 48px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, black 48px, black calc(100% - 48px), transparent 100%);
}
.lcdg-partners-track {
    display: flex;
    width: max-content;
    animation: lcdg-partners-scroll 22s linear infinite;
}
.lcdg-partners-section:hover .lcdg-partners-track,
.lcdg-partners-section:focus-within .lcdg-partners-track {
    animation-play-state: paused;
}
@keyframes lcdg-partners-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.lcdg-partner-item {
    opacity: 0.55;
    transition: opacity 0.2s ease;
}
.lcdg-partner-item:hover,
.lcdg-partner-item:focus {
    opacity: 1;
}
/* Swipe tactile mobile : on autorise le scroll horizontal sur la piste */
@media (pointer: coarse) {
    .lcdg-partners-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .lcdg-partner-item {
        scroll-snap-align: start;
        opacity: 1;
    }
    .lcdg-partners-track {
        animation: none;
    }
}

/* ── Container global 1600px ─────────────────────────────────────────── */
/* Tailwind CDN max-w-7xl = 80rem (1280px) — on l'élargit à 1600px
   pour tout le thème sans toucher au HTML.                              */
.max-w-7xl {
    max-width: 1600px !important;
}

/* ── Séparateurs verticaux colonnes footer ───────────────────────────── */
@media (min-width: 1024px) {
    .lcdg-footer-grid {
        gap: 0 !important;
    }
    .lcdg-footer-grid > div {
        padding: 0 2rem;
    }
    .lcdg-footer-grid > div:first-child {
        padding-left: 0;
    }
    .lcdg-footer-grid > div:last-child {
        padding-right: 0;
    }
    .lcdg-footer-grid > div:not(:last-child) {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* ── Crédits footer — liens cliquables ───────────────────────────────── */
.lcdg-footer-credit a {
    transition: color 0.15s;
}
.lcdg-footer-credit a:hover {
    color: var(--lcdg-accent, #FFD600);
}

/* ── Partenaires : opacité pleine en mode clair ──────────────────────── */
html:not(.dark) .lcdg-partner-item {
    opacity: 0.85;
}
html:not(.dark) .lcdg-partner-item:hover {
    opacity: 1;
}
