/* ============================================================
   EN-PLS.FR — Feuille de style principale
   Design : moderne, épuré, mobile-first
   Couleurs : bordeaux / rouge (conservées)
   ============================================================ */

/* ---------- 1. Variables & thème ---------- */
:root {
    /* Couleurs de marque (conservées) */
    --primary-color: #8B1538;
    --primary: #8B1538;
    --primary-dark: #6E1029;
    --primary-light: #A52A4A;
    --secondary-color: #A52A2A;
    --danger-color: #DC143C;

    /* Neutres */
    --bg: #FFFFFF;
    --bg-light: #FAFAFA;
    --surface: #FFFFFF;
    --text-dark: #1F1A1C;
    --text: #2A2326;
    --text-light: #6B6065;
    --border-color: #ECE6E8;
    --border: #ECE6E8;

    /* États */
    --green: #1FA463;
    --green-bg: #E7F6EE;
    --amber: #E08600;
    --amber-bg: #FCF3E2;
    --red: #DC143C;
    --red-bg: #FCE8EC;

    /* Rayons & ombres (épuré, doux) */
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(31, 26, 28, .04), 0 1px 3px rgba(31, 26, 28, .06);
    --shadow: 0 4px 6px rgba(31, 26, 28, .04), 0 10px 20px rgba(31, 26, 28, .06);
    --shadow-lg: 0 12px 24px rgba(31, 26, 28, .08), 0 24px 48px rgba(139, 21, 56, .07);
    --shadow-primary: 0 8px 20px rgba(139, 21, 56, .25);

    /* Mise en page */
    --container: 1140px;
    --header-h: 68px;
    --transition: .22s cubic-bezier(.4, 0, .2, 1);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

::selection { background: var(--primary); color: #fff; }

/* ---------- 3. Conteneur ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
    flex: 1;
}

main.container { padding-top: 2rem; padding-bottom: 3rem; }

/* ---------- 4. Header ---------- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo-container, .logo { display: flex; align-items: center; }
.logo img { height: 38px; width: auto; }

/* Navigation desktop */
header nav ul, .desktop-nav ul {
    display: flex;
    align-items: center;
    gap: .35rem;
}

header nav a, .desktop-nav a {
    display: inline-block;
    padding: .5rem .9rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .95rem;
    color: var(--text);
    transition: var(--transition);
}

header nav a:hover, .desktop-nav a:hover {
    background: var(--red-bg);
    color: var(--primary);
}

/* Burger */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.burger-menu:hover { background: var(--red-bg); }
.burger-menu span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 0 auto;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}
.burger-menu.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger-menu.active span:nth-child(2) { opacity: 0; }
.burger-menu.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. Tagline banner ---------- */
.tagline-banner {
    background: linear-gradient(100deg, var(--primary-dark), var(--primary) 55%, var(--primary-light));
    color: #fff;
    text-align: center;
    padding: .55rem 1rem;
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: .01em;
}
.tagline-text { opacity: .96; }

/* ---------- 6. Titres de page ---------- */
.page-title {
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--text-dark);
    margin-bottom: .35rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.page-subtitle {
    color: var(--text-light);
    font-size: 1.02rem;
    margin-bottom: 1.75rem;
}
.section-title {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--text-dark);
    margin: 2.5rem 0 1.25rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.section-title::before {
    content: "";
    width: 4px;
    height: 1.1em;
    background: var(--primary);
    border-radius: 4px;
}

/* ---------- 7. Recherche ---------- */
.search-box {
    position: relative;
    margin-bottom: 2rem;
}
.search-input {
    width: 100%;
    padding: .95rem 1.1rem .95rem 3rem;
    font-size: 1rem;
    color: var(--text);
    background: var(--surface);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.search-box::before {
    content: "";
    position: absolute;
    left: 1.05rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: var(--text-light);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M15.5 14h-.79l-.28-.27a6.5 6.5 0 1 0-.7.7l.27.28v.79l5 5 1.5-1.5-5-5zm-6 0A4.5 4.5 0 1 1 14 9.5 4.5 4.5 0 0 1 9.5 14z'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M15.5 14h-.79l-.28-.27a6.5 6.5 0 1 0-.7.7l.27.28v.79l5 5 1.5-1.5-5-5zm-6 0A4.5 4.5 0 1 1 14 9.5 4.5 4.5 0 0 1 9.5 14z'/%3E%3C/svg%3E") center/contain no-repeat;
    pointer-events: none;
}
.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(139, 21, 56, .1);
}
.search-input::placeholder { color: var(--text-light); }

/* ---------- 8. Grille de services ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
    gap: 1rem;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .75rem;
    padding: 1.5rem 1.1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}
.service-card::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.service-card:hover::after { transform: scaleX(1); }

.service-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 14px;
    background: var(--bg-light);
    padding: 6px;
    border: 1px solid var(--border-color);
}

.service-info { flex: 1; }
.service-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: .15rem;
}
.service-description {
    font-size: .85rem;
    color: var(--text-light);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-stats {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .25rem;
}

.report-count {
    font-size: .82rem;
    font-weight: 700;
    padding: .3rem .7rem;
    border-radius: 999px;
    background: var(--green-bg);
    color: var(--green);
}
.report-count.medium { background: var(--amber-bg); color: var(--amber); }
.report-count.low { background: var(--green-bg); color: var(--green); }
.report-count:not(.medium):not(.low) { background: var(--red-bg); color: var(--red); }

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 0 rgba(220, 20, 60, .5);
    animation: pulse 2s infinite;
}
.status-indicator.operational { background: var(--green); animation: none; }
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(220, 20, 60, .45); }
    70%  { box-shadow: 0 0 0 8px rgba(220, 20, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 20, 60, 0); }
}

/* ---------- 9. Bloc "Récemment signalés" ---------- */
.recent-alerts {
    background: linear-gradient(135deg, #fff, var(--red-bg));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}
.recent-alerts-head {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1.1rem;
}
.recent-alerts-head h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -.01em;
}
.recent-alerts-head .live-dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--red); animation: pulse 2s infinite;
}
.recent-scroll {
    display: flex;
    gap: .85rem;
    overflow-x: auto;
    padding-bottom: .5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.recent-scroll::-webkit-scrollbar { height: 6px; }
.recent-scroll::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 3px; }
.recent-chip {
    scroll-snap-align: start;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .65rem .9rem .65rem .65rem;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    min-width: 165px;
}
.recent-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.recent-chip img {
    width: 36px; height: 36px;
    border-radius: 10px; object-fit: contain;
    background: var(--bg-light); padding: 3px;
    border: 1px solid var(--border-color);
}
.recent-chip .rc-name { font-weight: 700; font-size: .92rem; color: var(--text-dark); line-height: 1.1; }
.recent-chip .rc-meta { font-size: .74rem; color: var(--red); font-weight: 600; }

/* ---------- 10. Page service : en-tête ---------- */
.service-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}
.service-header .service-logo { width: 80px; height: 80px; }
.service-title h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--text-dark);
}
.service-title p { color: var(--text-light); margin: .25rem 0 .6rem; }
.visit-site {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-weight: 600;
    font-size: .9rem;
    color: var(--primary);
}
.visit-site::after { content: "↗"; }
.visit-site:hover { text-decoration: underline; }

/* ---------- 11. Graphique ---------- */
.chart-section {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}
.chart-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.chart-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -.01em;
}
.report-button {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: .92rem;
    padding: .7rem 1.3rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-primary);
    transition: var(--transition);
    white-space: nowrap;
}
.report-button:hover { background: var(--primary-dark); transform: translateY(-1px); }
.report-button:active { transform: translateY(0); }
.chart-wrapper { position: relative; width: 100%; }
.chart-section canvas,
#reportsChart { width: 100% !important; max-width: 100% !important; max-height: 300px; display: block; box-sizing: border-box; }

/* ---------- 12. Articles du blog (page service) ---------- */
.blog-articles {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.1rem;
    margin-top: 1.1rem;
}
.article-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.article-thumb {
    aspect-ratio: 16 / 9;
    width: 100%;
    object-fit: cover;
    background: var(--border-color);
}
.article-thumb.placeholder {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff; font-weight: 800; font-size: 1.5rem;
}
.article-body { padding: .95rem 1.05rem 1.1rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.article-title { font-weight: 700; font-size: .98rem; color: var(--text-dark); line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-date { font-size: .76rem; color: var(--text-light); margin-top: auto; }
.article-link { font-size: .85rem; font-weight: 600; color: var(--primary); }
.blog-cta {
    display: inline-block; margin-top: 1.1rem;
    font-weight: 600; color: var(--primary); font-size: .92rem;
}
.blog-cta:hover { text-decoration: underline; }

/* ---------- 13. Commentaires ---------- */
.comments-section {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}
.comment-form {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}
.form-group { margin-bottom: 1rem; }
.form-group:last-of-type { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: .4rem;
    color: var(--text-dark);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: .8rem .95rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background: var(--surface);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(139, 21, 56, .1);
}
.submit-button {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: .98rem;
    padding: .8rem 1.6rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-primary);
    transition: var(--transition);
}
.submit-button:hover { background: var(--primary-dark); transform: translateY(-1px); }

.comments-list { display: flex; flex-direction: column; gap: .85rem; }
.comment {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 1rem 1.1rem;
}
.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .75rem;
    margin-bottom: .4rem;
}
.comment-author { font-weight: 700; color: var(--text-dark); }
.comment-date { font-size: .78rem; color: var(--text-light); white-space: nowrap; }
.comment-text { color: var(--text); font-size: .95rem; line-height: 1.6; }

/* ---------- 14. Pagination ---------- */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    justify-content: center;
    margin-top: 1.75rem;
}
.pagination a, .pagination span {
    min-width: 40px;
    padding: .5rem .75rem;
    text-align: center;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .9rem;
    border: 1px solid var(--border-color);
    background: var(--surface);
    color: var(--text);
    transition: var(--transition);
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- 15. Messages (succès / erreur) ---------- */
.message {
    padding: .9rem 1.1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
}
.message.success { background: var(--green-bg); color: var(--green); border-color: #c5ead6; }
.message.error { background: var(--red-bg); color: var(--red); border-color: #f6cdd6; }

/* ---------- 16. Espaces publicitaires ---------- */
.ad-space {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    margin: 1.5rem 0;
    background: var(--bg-light);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius);
    color: var(--text-light);
    font-size: .82rem;
}

/* ---------- 17. Pages de contenu (légal, à propos) ---------- */
.privacy-content, .info-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}
.privacy-section { margin-bottom: 1.75rem; }
.privacy-section:last-child { margin-bottom: 0; }
.privacy-section h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: .65rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid var(--border-color);
}
.privacy-section h3 { font-size: 1.02rem; font-weight: 700; color: var(--text-dark); margin: 1rem 0 .4rem; }
.privacy-section p { margin-bottom: .7rem; color: var(--text); }
.privacy-section ul { padding-left: 1.25rem; margin-bottom: .7rem; list-style: disc; }
.privacy-section li { margin-bottom: .35rem; }
.privacy-section a { color: var(--primary); font-weight: 600; }
.privacy-section a:hover { text-decoration: underline; }

/* ---------- 18. Footer ---------- */
footer {
    background: var(--text-dark);
    color: #fff;
    margin-top: auto;
    padding: 2.5rem 1.25rem 2rem;
}
.footer-container {
    max-width: var(--container);
    margin: 0 auto;
    text-align: center;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem 1.5rem;
    margin-bottom: 1.25rem;
}
.footer-links a {
    color: rgba(255, 255, 255, .82);
    font-weight: 500;
    font-size: .92rem;
    transition: var(--transition);
}
.footer-links a:hover { color: #fff; }
.footer-text, footer p { color: rgba(255, 255, 255, .55); font-size: .85rem; }

/* ---------- 19. Mobile nav (offcanvas) ---------- */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(31, 26, 28, .45);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1100;
}
.mobile-nav-overlay.active { opacity: 1; visibility: visible; }

/* ---------- 20. Responsive ---------- */
@media (max-width: 820px) {
    .burger-menu { display: flex; }

    /* Sur mobile, header opaque (pas de flou) pour éviter tout effet
       de transparence/flou qui bavait sur le menu coulissant */
    header {
        background: #FFFFFF;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    header nav, .desktop-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(80vw, 320px);
        height: 100vh;
        height: 100dvh;
        background: #FFFFFF;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: -10px 0 40px rgba(0, 0, 0, .18);
        transform: translateX(100%);
        transition: var(--transition);
        z-index: 1200;
        padding: calc(var(--header-h) + 1rem) 1.25rem 1.25rem;
        overflow-y: auto;
    }
    header nav.active, .desktop-nav.active { transform: translateX(0); }

    header nav ul, .desktop-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: .25rem;
    }
    header nav a, .desktop-nav a {
        display: block;
        padding: .85rem 1rem;
        font-size: 1.05rem;
        border-radius: var(--radius-sm);
    }

    .service-header { flex-direction: column; text-align: center; }
    .chart-header { flex-direction: column; }
    .report-button { width: 100%; }
}

@media (max-width: 540px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
    .service-card { padding: 1.1rem .7rem .9rem; }
    .service-logo { width: 52px; height: 52px; }
    .service-name { font-size: .92rem; }
    .service-description { display: none; }
    .articles-grid { grid-template-columns: 1fr; }
    main.container { padding-top: 1.25rem; }
    .privacy-content, .chart-section, .comments-section,
    .service-header, .blog-articles, .recent-alerts { padding: 1.1rem; }
}

/* ---------- 21. Accessibilité & préférences ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
/* ============================================================
   MENU MOBILE AUTONOME — EN-PLS.FR
   À coller À LA FIN de /css/style.css
   Noms uniques (enpls-*) pour zéro conflit avec l'ancien code.
   ============================================================ */

/* Le bouton burger : caché en desktop, visible en mobile */
.enpls-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px; height: 46px;
    border: none; background: none; cursor: pointer;
    border-radius: 10px;
    padding: 0;
    z-index: 1310;            /* au-dessus de tout */
    position: relative;
}
.enpls-burger span {
    display: block; width: 24px; height: 2px;
    background: var(--primary, #8B1538);
    border-radius: 2px; margin: 0 auto;
    transition: .25s ease;
}
.enpls-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.enpls-burger.is-open span:nth-child(2) { opacity: 0; }
.enpls-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Le panneau (drawer) */
.enpls-drawer {
    position: fixed;
    top: 0; right: 0;
    width: min(82vw, 320px);
    height: 100vh; height: 100dvh;
    background: #FFFFFF;       /* blanc opaque, jamais sombre */
    box-shadow: -12px 0 40px rgba(0,0,0,.18);
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    z-index: 1300;
    padding: 5rem 1.25rem 1.5rem;
    overflow-y: auto;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.enpls-drawer.is-open { transform: translateX(0); }
.enpls-drawer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
.enpls-drawer a {
    display: block;
    padding: .9rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-dark, #1F1A1C);
    text-decoration: none;
}
.enpls-drawer a:hover { background: var(--red-bg, #FCE8EC); color: var(--primary, #8B1538); }

/* Le voile (scrim) derrière le panneau : léger, NET, jamais flou */
.enpls-scrim {
    position: fixed;
    inset: 0;
    background: rgba(20,16,18,.38);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s ease, visibility .28s ease;
    z-index: 1290;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.enpls-scrim.is-open { opacity: 1; visibility: visible; }

/* Affichage mobile uniquement */
@media (max-width: 820px) {
    .enpls-burger { display: flex; }
    /* On masque l'ancienne nav desktop et l'ancien burger pour éviter tout doublon */
    header nav#mainNav, header .burger-menu, .mobile-nav-overlay { display: none !important; }
    /* header opaque sur mobile (pas de flou qui bave) */
    header { background: #FFFFFF !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
}
@media (min-width: 821px) {
    .enpls-burger, .enpls-drawer, .enpls-scrim { display: none !important; }
}
