/* =========================================
   0. POLICES AUTO-HÉBERGÉES
   ========================================= */

/* Montserrat */
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/montserrat-v31-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/montserrat-v31-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/montserrat-v31-latin-600italic.woff2') format('woff2');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/montserrat-v31-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/montserrat-v31-latin-700italic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/montserrat-v31-latin-800.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('fonts/montserrat-v31-latin-800italic.woff2') format('woff2');
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}

/* Open Sans */
@font-face {
    font-family: 'Open Sans';
    src: url('fonts/open-sans-v44-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Open Sans';
    src: url('fonts/open-sans-v44-latin-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Open Sans';
    src: url('fonts/open-sans-v44-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Open Sans';
    src: url('fonts/open-sans-v44-latin-600italic.woff2') format('woff2');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

/* =========================================
   1. VARIABLES & AMBIANCE
   ========================================= */
:root {
    /* --- COULEURS --- */
    --brand-red: #c0392b;         /* ancien #ce4d47 — ratio 4.4 ❌ → 5.44 ✅ WCAG AA */
    --brand-red-hover: #a93226;   /* ancien #b53c36 — foncé proportionnellement */
    --brand-gradient: linear-gradient(135deg, #c0392b 0%, #cc4540 100%); /* extrémité claire ratio 4.67 ✅ */
    --brand-dark: #1f2937;
    --brand-grey: #64748b;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --success-green: #15803d; /* #16a34a ratio 3.3 ❌ → #15803d ratio 5.02 ✅ WCAG AA */
    
    /* --- OMBRES & FORMES --- */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-hover: 0 20px 25px -5px rgba(192, 57, 43, 0.15);
    --radius-card: 16px;
    --radius-btn: 50px;
    
    /* --- LAYOUT --- */
    --container-width: 1200px;
    --spacing-section: 6rem;
    --header-height: 80px;
}

/* =========================================
   2. TYPOGRAPHIE & BASE
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
    color: var(--brand-grey);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--brand-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 { font-weight: 800; letter-spacing: -0.02em; }
h2, h3, h4 { font-weight: 700; letter-spacing: -0.01em; }

p { margin-bottom: 1rem; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
img { max-width: 100%; display: block; }
ul { list-style: none; padding: 0; margin: 0; }

:focus-visible { outline: 3px solid var(--brand-red); outline-offset: 3px; border-radius: 4px; }

.evitement {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.evitement:focus {
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    top: 20px;
    left: 20px;
    background: var(--brand-red);
    color: white;
    padding: 15px;
    z-index: 2000;
    font-weight: 700;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
}

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; width: 100%; }
.mt-large { margin-top: 2.5rem; }
.text-center { text-align: center; }

/* =========================================
   3. HEADER
   ========================================= */
#header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex; align-items: center;
    position: sticky; top: 0; z-index: 1000;
}
.header-flex { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo a {
    display: block;
    border-radius: 4px;
}
.logo a:focus-visible {
    outline: 3px solid var(--brand-red);
    outline-offset: 4px;
}

.logo-text { font-family: 'Montserrat', sans-serif; font-size: 1.4rem; font-weight: 800; color: var(--brand-red); text-transform: uppercase; letter-spacing: 0.05em; }
.logo-baseline { display: block; font-family: 'Open Sans', sans-serif; font-size: 0.7rem; font-weight: 600; color: var(--brand-dark); letter-spacing: 0.15em; text-transform: uppercase; margin-top: 2px; } /* 0.7rem → brand-dark pour marge WCAG */

.nav-list { display: flex; gap: 40px; align-items: center; }
.nav-list a { font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 0.85rem; color: var(--brand-dark); text-transform: uppercase; letter-spacing: 0.05em; position: relative; }
.nav-list a:hover, .nav-list a.active-link { color: var(--brand-red); }
/* Soulignement animé — uniquement sur les liens de premier niveau (pas dans le dropdown) */
.nav-list > li > a::after { content: ''; display: block; width: 0; height: 2px; background: var(--brand-red); transition: width 0.3s; margin-top: 4px; border-radius: 2px; }
.nav-list > li > a:hover::after,
.nav-list > li > a[aria-current="page"]::after { width: 100%; }
/* Page active premier niveau — soulignement permanent + couleur */
.nav-list > li > a[aria-current="page"] { color: var(--brand-red); font-weight: 700; }
/* Lien actif dans le dropdown — couleur uniquement, sans ::after */
.dropdown-content a[aria-current="page"],
.dropdown-content a.nav-current { color: var(--brand-red); font-weight: 700; }
/* Bouton "Prestations" quand une sous-page prestation est active */
.dropdown-btn.nav-current-parent { color: var(--brand-red); font-weight: 700; border-bottom: 2px solid var(--brand-red); padding-bottom: 2px; }
#menu-toggle { display: none; }

/* =========================================
   4. UI ELEMENTS
   ========================================= */
.cta-button, .btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand-gradient); color: white !important;
    padding: 16px 36px; border-radius: var(--radius-btn);
    font-family: 'Montserrat', sans-serif; font-weight: 700; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.05em;
    box-shadow: 0 10px 20px -5px rgba(192, 57, 43, 0.4); border: none; cursor: pointer; transform: translateY(0);
}
.cta-button:hover, .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 30px -5px rgba(192, 57, 43, 0.6); }

.btn-secondary {
    display: inline-flex; align-items: center; justify-content: center;
    background: white; color: var(--brand-dark);
    padding: 16px 36px; border-radius: var(--radius-btn);
    font-family: 'Montserrat', sans-serif; font-weight: 700; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.05em;
    border: 1px solid #e2e8f0;
}
.btn-secondary:hover { border-color: var(--brand-red); color: var(--brand-red); background: #fff5f5; }

.section-tag {
    display: inline-block; color: var(--brand-red); font-family: 'Montserrat', sans-serif; font-weight: 700; 
    text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.75rem; 
    background: #fff0f0; padding: 8px 16px; border-radius: 30px; margin-bottom: 1.5rem;
}

/* =========================================
   5. SECTIONS HERO
   ========================================= */
.hero, .service-hero, .manifesto-hero {
    padding: 5rem 0 6rem 0; text-align: center;
    background: radial-gradient(circle at top, #fff1f0 0%, #ffffff 70%); position: relative; z-index: 0;
}

.text-highlight { color: var(--brand-red); position: relative; z-index: 1; display: inline-block;}
.text-highlight::after { 
    content: ''; position: absolute; bottom: 4px; left: 0; width: 100%; height: 8px; 
    background: rgba(192, 57, 43, 0.15); z-index: -1; transform: rotate(-1deg); 
}
.hero h1 { font-size: 2.8rem; margin-bottom: 1rem; letter-spacing: -0.02em; }
.hero-subtitle, .lead-text, .lead-manifesto {
    font-size: 1.1rem; color: var(--brand-dark); max-width: 800px; margin: 0 auto 2rem auto; font-weight: 400;
    /* brand-grey #64748b sur fond dégradé rosé = ratio ~4.33 ❌ → brand-dark = 14.68 ✅ */
}
.hero-actions { display: flex; gap: 1.5rem; justify-content: center; }

.custom-shape-divider-bottom svg { display: block; width: calc(100% + 1.3px); height: 80px; }
.custom-shape-divider-bottom .shape-fill { fill: #FFFFFF; }
.custom-shape-divider-bottom { position: absolute; bottom: 0; left: 0; width: 100%; overflow: hidden; line-height: 0; transform: rotate(180deg); }

.section-padding { padding: var(--spacing-section) 0; }
.bg-light { background: var(--bg-light); }
.bg-white { background: white; }

/* CENTRAGE AUTOMATIQUE DES SECTIONS CLÉS */
.diagnostic-section, .about-preview, .services-section h2, .portfolio-section h2, .faq-section, .contact-section { text-align: center !important; }

/* Fond rouge derrière les cartes prestations */
.services-section,
.offers-section,
.prestations-section {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%) !important;
}
.services-section h2,
.offers-section h2,
.prestations-section h2 {
    color: var(--white);
}
.services-section .section-subtitle,
.offers-section .section-subtitle,
.prestations-section .section-subtitle {
    color: rgba(255, 255, 255, 0.95);
}
.diagnostic-section .container, .about-preview .container, .contact-section .container { display: flex; flex-direction: column; align-items: center; }

/* =========================================
   6. GRILLES & COMPOSANTS
   ========================================= */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; width: 100%; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; width: 100%; } /* Pour aligner 4 éléments */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

/* Cartes */
.card, .pain-point, .offer-card, .step-item {
    background: white; padding: 1.8rem; border-radius: var(--radius-card); box-shadow: var(--shadow-card); 
    border: 1px solid rgba(255,255,255,1); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; overflow: hidden; text-align: left;
}
.pain-point, .offer-card, .step-item { text-align: center; } /* Force le centrage du contenu interne */

.card:hover, .pain-point:hover, .offer-card:hover, .step-item:hover { 
    transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: rgba(192, 57, 43, 0.1); 
}

/* Logos de confiance (Index) */
.trusted-bar { padding: 3rem 0; border-bottom: 1px solid #f1f5f9; background: white; text-align: center; }
.trusted-label { font-size: 0.85rem; font-weight: 700; color: var(--brand-dark); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.5rem; display: block;
    /* 0.85rem uppercasé = texte normal WCAG → brand-grey 4.76 trop borderline → brand-dark 14.68 ✅ */ }
.trusted-logos { display: flex; justify-content: center; align-items: center; gap: 3rem; flex-wrap: wrap; margin-top: 1.5rem; }
.trusted-logos img { height: 40px; width: auto; max-width: 150px; opacity: 1; transition: transform 0.3s; }
.trusted-logos img:hover { transform: scale(1.05); }

/* Icônes */
.icon-box {
    width: 70px; height: 70px; background: var(--brand-dark); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: white; margin: 0 auto 1.5rem auto;
}

/* *** CORRECTIF COCHES VERTES *** */
.icon-success {
    color: var(--success-green);
    stroke: var(--success-green); /* Force la couleur du trait SVG */
    width: 20px; height: 20px;
    margin-right: 10px;
    flex-shrink: 0;
}

/* Images Prestations */
.card-img-wrapper { margin: -2.5rem -2.5rem 1.5rem -2.5rem; height: 220px; overflow: hidden; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.card:hover .card-img { transform: scale(1.05); }
.card-link { font-weight: 700; color: var(--brand-red); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.05em; }

/* Story Box (Encadré Index) */
.story-box {
    background: white; padding: 3rem; border-radius: var(--radius-card); border-left: 5px solid var(--brand-red);
    margin: 2rem auto; font-style: italic; color: var(--brand-dark); text-align: left; box-shadow: var(--shadow-card);
}
.signature { margin-top: 1.5rem; font-weight: 800; color: var(--brand-red); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.85rem; text-align: right; }

/* =========================================
   7. BLOG & ARTICLES
   ========================================= */
/* Grille globale */
.blog-all-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 1024px) { .blog-all-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-all-grid { grid-template-columns: 1fr; } }
.blog-grid { display: contents; }
.category-section { display: contents; }
.blog-card { background: var(--white); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -8px rgba(0,0,0,0.12); }
.blog-card > a:first-child { display: block; position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.blog-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.4s ease; }
.blog-card:hover .blog-image { transform: scale(1.03); }

.blog-content { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.blog-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; color: var(--brand-dark); }
.blog-excerpt { font-size: 0.95rem; color: var(--brand-grey); margin-bottom: 1.5rem; flex-grow: 1; }
.blog-card-mini { background: white; padding: 1.5rem; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); border: 1px solid #f0f0f0; }
.link-arrow { display: inline-flex; align-items: center; font-weight: 700; color: var(--brand-red); gap: 5px; }
.text-limit { max-width: 700px; margin: 0 auto 2rem auto; }
.article-body img {
       max-width: 800px;
       width: 100%;
   }

/* Page Article */
.article-container { max-width: 720px; margin: 0 auto; }
.breadcrumb { font-size: 0.9rem; color: var(--brand-grey); margin-bottom: 2rem; }
.breadcrumb a { color: var(--brand-dark); font-weight: 600; }
.article-header { text-align: center; margin-bottom: 3rem; padding-top: 1rem; display: flex; flex-direction: column; align-items: center; }
.article-header .blog-tag { display: inline-block; background: #fff5f5; padding: 5px 15px; border-radius: 20px; color: #475569;}
.article-header h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 1.5rem; max-width: 900px; }
.article-header .article-meta { font-size: 0.95rem; color: var(--brand-grey); font-style: italic; padding-top: 1.5rem; }
.article-header .article-meta::before { content: ''; display: block; width: 50px; height: 3px; background-color: var(--brand-red); margin: 0 auto 1rem auto; opacity: 0.3; }
.article-featured-image { display: block; width: 100%; height: auto; border-radius: 12px; margin-bottom: 3rem; object-fit: cover; }
.article-body { font-size: 1.1rem; line-height: 1.8; color: var(--brand-dark); }
.article-body h2 { margin-top: 3rem; margin-bottom: 1.5rem; font-size: 1.8rem; }
.article-body ul { margin-bottom: 2rem; padding-left: 1.5rem; list-style: disc; }
.article-body blockquote { border-left: 4px solid var(--brand-red); padding-left: 1.5rem; font-style: italic; color: var(--brand-dark); margin: 2rem 0; }


/* =========================================
   8. CARROUSEL & FAQ
   ========================================= */
.carousel-wrapper { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.carousel-track { display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth; padding-bottom: 20px; list-style: none; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.snap-card { flex: 0 0 300px; background: white; }
.portfolio-card { background: white; padding: 1.8rem; border-radius: var(--radius-card); box-shadow: var(--shadow-card); display: flex; flex-direction: column; justify-content: space-between; border: 1px solid white; text-align: center; }
.portfolio-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: rgba(206,77,71,0.1); }
.portfolio-img { height: 60px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.portfolio-img img { max-height: 100%; width: auto; }
.portfolio-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 1rem; font-size: 0.9rem; font-weight: 700; color: var(--brand-red); border-bottom: 2px solid transparent; transition: all 0.3s ease; }
.portfolio-link:hover { border-bottom-color: var(--brand-red); }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: var(--white); border: 2px solid #e5e7eb; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-sm); z-index: 10; color: var(--brand-dark); transition: all 0.2s ease; }
.carousel-btn:hover { background: var(--brand-red); color: white; border-color: var(--brand-red); }
.carousel-btn.prev { left: -20px; }
.carousel-btn.next { right: -20px; }

/* FAQ */
.faq-grid { max-width: 800px; margin: 0 auto; text-align: left; }
.faq-item { background: white; border-radius: 12px; margin-bottom: 1rem; box-shadow: var(--shadow-card); border: 1px solid transparent; }
.faq-item summary { padding: 1.5rem; font-weight: 700; cursor: pointer; list-style: none; position: relative; font-family: 'Montserrat', sans-serif; }
.faq-item summary::after { content: '+'; position: absolute; right: 1.5rem; color: var(--brand-red); font-weight: 800; font-size: 1.4rem; top: 1.2rem; }
.faq-item[open] summary::after { content: '-'; color: var(--brand-dark); }
.faq-content { padding: 0 1.5rem 1.5rem 1.5rem; color: var(--brand-grey); }

/* =========================================
   8. FOOTER
   ========================================= */
footer { background: var(--brand-dark); color: #94a3b8; padding: 5rem 0; font-size: 0.9rem; }

/* ── Footer grid layout ── */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    text-align: left;
    margin-bottom: 3rem;
}

/* ── Footer column headings ── */
.footer-col h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #e2e8f0; /* 11.91:1 ✓ */
    margin-bottom: 1.25rem;
}

/* ── Footer links ── */
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a {
    color: #cbd5e1; /* 9.89:1 ✓ */
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}
.footer-col a:hover,
.footer-col a:focus {
    color: #ffffff; /* 14.68:1 ✓ */
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── Brand column ── */
.footer-brand .logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: #ffffff;
    display: block;
    margin-bottom: 0.25rem;
}
.footer-brand .logo-baseline {
    color: #94a3b8; /* 5.72:1 ✓ */
    font-size: 0.85rem;
    display: block;
    margin-bottom: 1.25rem;
}
.footer-brand p {
    color: #94a3b8; /* 5.72:1 ✓ */
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* ── Social icons ── */
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #334155;
    color: #cbd5e1; /* 9.89:1 ✓ */
    transition: all 0.2s ease;
}
.footer-socials a:hover,
.footer-socials a:focus {
    color: #ffffff;
    border-color: #f87171; /* décoratif */
    background: rgba(248, 113, 113, 0.1);
}

/* ── Badge "Nouveau" ── */
.footer-badge {
    display: inline-block;
    font-size: 0.70rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(248, 113, 113, 0.15);
    color: #fca5a5; /* 7.73:1 ✓ */
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 6px;
    vertical-align: middle;
}

/* ── Copyright bar ── */
.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-bottom p {
    color: #94a3b8; /* 5.72:1 ✓ */
    font-size: 0.82rem;
    margin: 0;
}
.footer-bottom a {
    color: #cbd5e1; /* 9.89:1 ✓ */
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 0.82rem;
}
.footer-bottom a:hover,
.footer-bottom a:focus {
    color: #ffffff;
}

/* =========================================
   9. RESPONSIVE
   ========================================= */
@media (max-width: 900px) {

    /* ── Header : logo gauche, burger droite — une seule ligne ── */
    .header-flex {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        height: auto;
        padding: 15px 0;
    }

    /* ── Burger ── */
    #menu-toggle {
        display: flex;
        flex-shrink: 0;
        align-items: center;
        gap: 10px;
        padding: 10px 20px;
        border: 1px solid #e5e7eb;
        border-radius: 30px;
        background: var(--white);
        font-weight: 700;
        color: var(--brand-dark);
        cursor: pointer;
        z-index: 1001;
    }

    /* ── Nav-list fermée ── */
    .nav-list {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--header-height);   /* suit la hauteur réelle du header */
        left: 0;
        right: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--white);
        padding: 1.5rem;
        gap: 0;
        z-index: 1002;               /* au-dessus du header (1000) et du burger (1001) */
        overflow-y: auto;            /* scroll si contenu dépasse */
        /* Animation fluide — plus performante que opacity sur mobile */
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.3s ease-in-out, visibility 0.3s;
    }

    /* ── Nav-list ouverte ── */
    .nav-list.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-list > li { width: 100%; }
    .nav-list > li > a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid #f3f4f6;
        font-size: 0.95rem;
    }
    .nav-list > li > a::after { display: none; }

    /* ── Dropdown mobile : statique dans le flux ── */
    .dropdown-item { position: static; }
    .dropdown-btn {
        width: 100%;
        justify-content: space-between;
        padding: 0.75rem 0;
        border-bottom: 1px solid #f3f4f6;
        font-size: 0.95rem;
    }
    .dropdown-btn.nav-current-parent { border-bottom-color: #f3f4f6; }
    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        min-width: unset;
        padding: 0 0 0 1rem;
        margin-top: 0;
        background: transparent;
        /* Animation glissement — remplace display:none/block */
        display: block;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    .dropdown-item.open .dropdown-content {
        max-height: 300px; /* suffisant pour 3 liens */
    }
    /* Cibles tactiles 44px min — WCAG 2.5.5 */
    .dropdown-content a {
        padding: 0.9rem 0;
        font-size: 1rem;
        border-bottom: 1px solid #f9fafb;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    .dropdown-content a:last-child { border-bottom: none; }

    /* ── Typographie ── */
    .hero h1, .service-hero h1, .manifesto-hero h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.2rem; }
    .lead, .lead-text, .lead-manifesto { font-size: 1rem; }

    /* ── Hero ── */
    .hero, .service-hero, .manifesto-hero { padding: 3rem 0 4rem 0; }

    /* ── Grilles ── */
    .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 1.5rem; }
    [style*="grid-column: span 2"] { grid-column: span 1 !important; }

    /* ── Carousel ── */
    .carousel-btn { display: none; }
    .snap-card { flex: 0 0 85%; }

    /* ── Divers ── */
    :root { --spacing-section: 3rem; }
    .project-details { flex-direction: column; gap: 1rem; }
    .about-portrait { max-height: 320px; }
    .section-tag { font-size: 0.75rem; }
    .cta-button, .btn-secondary { width: 100%; text-align: center; justify-content: center; }
    .form-row { grid-template-columns: 1fr; }
}



@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }

/* ── Mobile breakpoint ── */
@media (max-width: 768px) {
    /* Footer responsive mobile */
    footer { padding: 3rem 0; }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .footer-socials { justify-content: center; }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .grid-4 { grid-template-columns: 1fr; }
    .hero h1, .service-hero h1 { font-size: 1.7rem; }
    h2 { font-size: 1.4rem; }
    .modal-box { padding: 1.5rem; }
    .form-row { grid-template-columns: 1fr; }
        gap: 2rem;
        text-align: center;
    }
    .footer-socials { justify-content: center; }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* PAGES SPÉCIFIQUES */
.story-container { max-width: 800px; margin: 0 auto; }
.story-step { margin-bottom: 4rem; padding-left: 2rem; border-left: 4px solid var(--brand-red); display: flex; flex-direction: column; }
.step-year { display: block; font-weight: 800; color: var(--brand-red); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; line-height: 1.2; }
.value-number { font-size: 3rem; color: var(--brand-red); font-weight: 800; display: block; margin-bottom: 0.5rem; }
.about-image-wrapper { text-align: center; margin: 2rem auto; }
.about-portrait { max-height: 400px; width: auto; max-width: 100%; border-radius: var(--radius-card); box-shadow: var(--shadow-card); display: inline-block; }

.legal-container { max-width: 800px; margin: 0 auto; }
.legal-article { margin-bottom: 3rem; }
.legal-h2 { color: var(--brand-red); border-bottom: 1px solid #e5e7eb; padding-bottom: 0.5rem; margin-bottom: 1.5rem; }
.legal-list { list-style: none; padding: 0; line-height: 1.8; }
.legal-sublist { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.5rem; }
.legal-separator { border: 0; border-top: 4px solid var(--brand-red); margin: 4rem 0; opacity: 0.2; }
.cgv-content h3 { font-size: 1.2rem; margin-top: 2rem; }
.underline-link { color: var(--brand-dark); text-decoration: underline; }

/* Liens inline dans le contenu éditorial */
.section-padding p a,
.section-padding span a,
.section-padding li a {
    color: var(--brand-red);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.section-padding p a:hover,
.section-padding span a:hover,
.section-padding li a:hover {
    color: var(--brand-red-hover);
}

.check-list { margin-top: 1.5rem; }
.check-item { display: flex; align-items: flex-start; margin-bottom: 25px; }
.check-icon { margin-right: 12px; margin-top: 4px; flex-shrink: 0; width: 20px; height: 20px; }
.check-content strong { display: block; color: var(--brand-dark); }
.check-content span { display: block; font-size: 0.95rem; color: var(--brand-grey); }
.highlight-card { text-align: center; display: flex; flex-direction: column; justify-content: center; align-self: center; padding: 2rem; border-top: 5px solid var(--brand-red); }
.highlight-number { font-size: 2.5rem; font-weight: 800; color: var(--brand-red); line-height: 1; }
.highlight-number.large { font-size: 3.5rem; }
.highlight-subtitle { font-size: 0.9rem; font-weight: 700; color: var(--brand-dark); display: block; margin: 0.5rem 0 1rem 0; }
.highlight-badge { font-size: 0.75rem; background: #fff1f0; color: var(--brand-red); padding: 5px 10px; border-radius: 20px; font-weight: 700; display: inline-block; }
.highlight-link { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed #ddd; }
.project-box { max-width: 800px; margin: 0 auto; background: white; padding: 2.5rem; border-radius: var(--radius-card); box-shadow: var(--shadow-card); text-align: left; }
.project-tag { display: inline-block; background: var(--brand-red); color: white; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: 0.05em; text-transform: uppercase; }
.project-box--grid { max-width: 100%; margin: 0; border-top: 4px solid var(--brand-red); transition: transform 0.2s, box-shadow 0.2s; }
.project-box--grid:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.project-box--grid h3 { font-size: 1.05rem; font-weight: 700; color: var(--brand-dark); margin: 0 0 1rem 0; line-height: 1.4; }
.project-details { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 1.5rem; }
.project-col-left { flex: 1; min-width: 250px; font-size: 0.95rem; line-height: 1.6; color: var(--brand-grey); }
.project-col-right { flex: 1; min-width: 250px; background: #f9fafb; padding: 1.5rem; border-radius: 8px; }
.result-list li { margin-bottom: 8px; display: flex; align-items: center; }

/* --- MENU DÉROULANT ACCESSIBLE --- */
.dropdown-item {
    position: relative;
    list-style: none;
}

.dropdown-btn {
    background: none;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-dark);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
    transition: color 0.3s ease;
}

.dropdown-btn:hover,
.dropdown-btn:focus-within {
    color: var(--brand-red);
}

.dropdown-btn:focus {
    outline: 2px solid var(--brand-red); 
    outline-offset: 4px;
    border-radius: 4px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    border: 1px solid #eeeeee;
    padding: 0.5rem 0;
    z-index: 100;
    list-style: none;
    margin-top: 15px;
}

.dropdown-item.open .dropdown-content {
    display: block;
}

.dropdown-content li {
    margin: 0;
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--brand-dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-family: 'Open Sans', sans-serif;
    text-transform: none;
    letter-spacing: normal;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-content a:hover,
.dropdown-content a:focus {
    background-color: var(--bg-light);
    color: var(--brand-red);
}

/* =========================================
   10. MODALE DE CONTACT
   ========================================= */

/* Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay.is-open { display: flex; }

/* Boite modale */
.modal-box {
    background: white;
    border-radius: var(--radius-card);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
    animation: modalIn 0.25s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Bouton fermeture */
.modal-close {
    position: absolute;
    top: 1.25rem; right: 1.25rem;
    background: var(--bg-light);
    border: none; border-radius: 50%;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--brand-grey);
    font-size: 1.2rem;
    transition: background 0.2s, color 0.2s;
}
.modal-close:hover { background: #fee2e2; color: var(--brand-red); }

/* En-tete modale */
.modal-header { margin-bottom: 2rem; }
.modal-header h2 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.modal-header p { font-size: 0.9rem; color: var(--brand-grey); margin: 0; }

/* Champs */
.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--brand-dark); margin-bottom: 0.4rem;
}
.form-group label .required { color: var(--brand-red); margin-left: 2px; }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--brand-dark);
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none; appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

/* États d'erreur accessibles (RGAA) */
.error-message {
    display: block;
    color: var(--brand-red);
    font-size: 0.85rem;
    margin-top: 4px;
    font-weight: 600;
}

.form-group input[aria-invalid="true"], 
.form-group select[aria-invalid="true"], 
.form-group textarea[aria-invalid="true"] {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 1px var(--brand-red); /* Renforce la visibilité de l'erreur */
}

.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Honeypot */
.form-honeypot {
    position: absolute; left: -9999px;
    width: 1px; height: 1px;
    overflow: hidden; opacity: 0;
}

/* Submit */
.form-submit {
    width: 100%; margin-top: 0.5rem; padding: 1rem;
    background: var(--brand-gradient);
    color: white; border: none;
    border-radius: var(--radius-btn);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; font-size: 0.95rem;
    text-transform: uppercase; letter-spacing: 0.05em;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 10px 20px -5px rgba(192, 57, 43, 0.4);
}
.form-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(192, 57, 43, 0.6);
}
.form-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

/* Statut */
.form-status {
    display: none; padding: 1rem 1.25rem;
    border-radius: 10px; font-size: 0.9rem;
    font-weight: 600; margin-top: 1rem; text-align: center;
}
.form-status.success {
    display: block; background: #f0fdf4;
    color: var(--success-green); border: 1.5px solid #bbf7d0;
}
.form-status.error {
    display: block; background: #fff1f0;
    color: var(--brand-red); border: 1.5px solid #fecaca;
}

/* RGPD */
.form-rgpd {
    font-size: 0.75rem; color: var(--brand-grey);
    text-align: center; margin-top: 1rem; line-height: 1.5;
}


/* =========================================
   11. BLOG — SECTIONS PAR CATÉGORIE
   ========================================= */
.category-section {
    display: contents;
}
.category-title {
    position: absolute;
    width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* =========================================
   12. ACCESSIBILITÉ — UTILITAIRES
   ========================================= */

/* Masque visuellement un élément tout en le gardant accessible aux lecteurs d'écran */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Note d'explication de l'astérisque dans les formulaires — RGAA 11.1 */
.form-required-note {
    font-size: 0.85rem;
    color: var(--brand-grey);
    margin-bottom: 1.25rem;
}

/* Retour à la ligne visuel dans les titres sans <br> — RGAA / WCAG 1.3.1 */
.title-break {
    display: block;
}

/* =========================================
   13. CLASSES UTILITAIRES — remplacement
       des styles inline hardcodés
   ========================================= */

/* Texte */
/* .text-center défini ligne 66 */
.text-left    { text-align: left; }
.text-italic  { font-style: italic; }

/* Tailles de corps de texte */
.text-xs   { font-size: 0.75rem; }   /* 12px */
.text-sm   { font-size: 0.85rem; }   /* 13.6px */
.text-body { font-size: 0.95rem; }   /* 15.2px */
.text-md   { font-size: 0.9rem;  }   /* 14.4px */

/* Texte secondaire / discret */
.text-muted {
    font-size: 0.85rem;
    color: var(--brand-grey);
}

/* Bouton lang blog */
.btn-lang {
    font-weight: bold;
    color: var(--brand-red);
    margin-left: 5px;
}

/* Tailles de titres inline (h2/h3 surchargés) */
.h2-section  { font-size: 1.5rem; text-align: center; margin-bottom: 2rem; }
.h3-sub      { font-size: 1.1rem; margin: 0.5rem 0; }
.h3-glossary { font-size: 1.2rem; color: var(--brand-red); }
.h3-mt       { font-size: 1.1rem; margin-top: 1.5rem; }
.h2-mt       { text-align: center; }    /* mutualisé avec text-center */

/* Témoignages */
.testimonial-quote  { font-style: italic; font-size: 0.95rem; color: var(--brand-grey); }
.testimonial-author { font-size: 0.85rem; color: var(--brand-grey); }

/* Glossaire / définitions */
.gloss-body { font-size: 0.95rem; }

/* Badge highlight (redaction.html — offre SEO & Accessibilité) */
.badge-highlight {
    font-size: 0.75rem;
    background: #fff1f0;
    color: var(--brand-red);
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 700;
    display: inline-block;
}

/* Lien discret souligné */
.link-subtle {
    font-size: 0.85rem;
    color: var(--brand-grey);
    text-decoration: underline;
}

/* Cards et sections centrées */
.card-center   { text-align: center; }
.section-center { text-align: center; }

/* Paragraphe de description compact (project-box) */
.text-body-left { font-size: 0.95rem; color: var(--brand-grey); }

/* Mini-card blog dans aside */
.blog-card-aside { background: white; padding: 1.5rem; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }

/* Actif dans la nav (page courante) */
/* .nav-current conservé pour rétrocompatibilité — styles gérés par [aria-current="page"] */
.nav-current { color: var(--brand-red); font-weight: 700; }

/* Opacité légère */
.opacity-90 { opacity: 0.9; }

/* Cartes de prestations cliquables (Page À Propos) */
.card-prestation {
    display: block;
    text-decoration: none;
    text-align: center;
    padding: 2rem;
}

.card-prestation h3 {
    color: var(--brand-red);
    margin-bottom: 0.75rem;
}

.card-prestation p {
    color: var(--brand-grey);
    font-size: 0.95rem;
    margin-bottom: 0;
}


/* --- Utilitaires d'espacements standards --- */
.mt-0 { margin-top: 0 !important; }
.mt-medium { margin-top: 1.5rem; }
.mb-small { margin-bottom: 0.5rem; }
.mb-medium { margin-bottom: 2rem; }

/* --- Typographie et conteneurs textuels --- */
.section-intro {
    text-align: center;
    color: var(--brand-grey);
    max-width: 600px;
    margin: 0 auto 2rem auto;
    font-size: 0.95rem;
}

.results-title {
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 0.5rem;
}

/* --- Icône du menu --- */
.dropdown-icon {
    margin-left: 5px;
}

/* --- Éléments du Portfolio --- */
.portfolio-success {
    color: var(--success-green);
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.portfolio-link.disabled {
    color: var(--brand-grey);
    cursor: default;
    pointer-events: none;
}

/* --- Cartes Témoignages --- */
.card-testimonial {
    border-left: 4px solid var(--brand-red);
}

.testimonial-icon {
    margin-bottom: 1rem;
    color: var(--brand-red);
}

.testimonial-footer {
    margin-top: 1.5rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.testimonial-name {
    display: block;
    color: var(--brand-dark);
}

/* --- Utilitaires supplémentaires --- */
.mt-small { margin-top: 0.75rem; }
.container-small { max-width: 1000px; margin: 0 auto; }

/* --- Typographie spécifique --- */
.event-title {
    font-size: 0.95rem;
    color: var(--brand-dark);
    font-weight: 600;
    margin: 0.25rem 0 0 0;
}

/* --- Bouton lien inline accessible --- */
.link-inline-red {
    color: var(--brand-red);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
    text-decoration: underline;
}
.link-inline-red:hover,
.link-inline-red:focus {
    color: var(--brand-red-hover);
    text-decoration: none;
}
.link-inline-red:focus-visible {
    outline: 3px solid var(--brand-red);
    outline-offset: 2px;
    border-radius: 2px;
    text-decoration: none;
}

/* --- Utilitaires supplémentaires d'espacement --- */
.mb-0 { margin-bottom: 0 !important; }
.mb-xl { margin-bottom: 4rem; }
.mt-1 { margin-top: 1rem; }

/* --- Conteneurs et Cartes --- */
.container-xs { 
    max-width: 780px; 
    margin: 0 auto; 
}

.card-border-top { 
    border-top: 4px solid var(--brand-red) !important; 
    padding: 2rem !important; 
}

/* --- Couleurs et Espacements supplémentaires --- */
.text-brand-red { color: var(--brand-red) !important; }
.pb-medium { padding-bottom: 2rem !important; }
/* ═══════════════════════════════════════
   14 SECTION TARIFS
   ═══════════════════════════════════════ */

.tarifs-section h2 { margin-bottom: 0.25rem; }

.tarif-intro {
    color: var(--brand-grey);
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}

.tarifs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    max-width: 860px;
    margin: 0 auto;
}

.tarif-card {
    background: var(--white);
    border-radius: var(--radius-card);
    border-left: 4px solid var(--brand-red);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tarif-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.tarif-titre {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin: 0;
}

.tarif-desc {
    font-size: 0.875rem;
    color: var(--brand-grey);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.tarif-prix {
    padding-top: 0.75rem;
    border-top: 1px solid var(--bg-light);
    margin-top: 0.25rem;
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.tarif-montant {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--brand-red);
}

.tarif-unite {
    font-size: 0.8rem;
    color: var(--brand-grey);
}

.tarif-footer-note {
    margin-top: 1.5rem;
    font-size: 0.82rem;
    color: var(--brand-grey);
}

@media (max-width: 600px) {
    .tarifs-grid { grid-template-columns: 1fr; }
}

.col-span-2 { grid-column: span 2; }

.blog-category-tag { 
    font-size: 0.8rem; 
    font-weight: 700; 
    color: var(--brand-red); 
    text-transform: uppercase; 
}

/* =========================================
   14. PAGE 404
   ========================================= */
.section-404 {
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.title-404 {
    font-size: 8rem;
    font-weight: 800;
    color: var(--brand-red);
    line-height: 1;
    display: block;
    margin-bottom: 1rem;
    text-shadow: 4px 4px 0px var(--brand-dark);
}

.text-limit-sm {
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.btn-group-center {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.mb-large {
    margin-bottom: 3rem !important;
}

/* =========================================
   15. STYLE ARTICLES
   ========================================= */
   
   /* --- ENCADRÉS EXPERTS --- */
.article-aside {
    margin: 2.5rem 0;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 6px solid;
    background-color: var(--bg-light);
    font-size: 1rem;
}

.aside-title {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

/* Variantes avec icônes */
.aside-note { border-color: var(--brand-dark); }
.aside-note .aside-title { color: var(--brand-dark); }

.aside-savoir { border-color: var(--success-green); }
.aside-savoir .aside-title { color: var(--success-green); }

.aside-plus { border-color: var(--brand-red); }
.aside-plus .aside-title { color: var(--brand-red); }

/* --- BLOC RÉSUMÉ EXPERT --- */
.resume-expert {
    margin: 2.5rem 0;
    padding: 1.5rem;
    background-color: var(--bg-light); /* Ton gris très clair */
    border: 1px solid #e2e8f0;
    border-left: 5px solid var(--brand-red); /* Ton rouge signature */
    border-radius: 0 8px 8px 0;
}

.resume-label {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--brand-red);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.resume-list {
    margin: 0;
    padding-left: 1.25rem;
    list-style-type: none;
}

.resume-list li {
    position: relative;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--brand-dark);
}

.resume-list li::before {
    content: "→";
    position: absolute;
    left: -1.25rem;
    color: var(--brand-red);
    font-weight: bold;
}

.resume-list li:last-child {
    margin-bottom: 0;
}


/* --- TABLEAUX DANS LES ARTICLES --- */
.article-body table {
    border-collapse: collapse;
    width: auto;           /* S'adapte au contenu */
    margin: 2.5rem auto;   /* Centré horizontalement */
    min-width: 60%;        /* Évite tableaux trop étroits */
}
.article-body th, 
.article-body td {
    border: 1px solid #d1d5db;
    padding: 12px;
    text-align: left;
}
.article-body th {
    background-color: #f3f4f6;
    font-family: 'Montserrat', sans-serif;
}
.article-body caption {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    text-align: left;
    color: var(--brand-dark);
}

/* --- ENCADRÉ "RÉSUMÉ EXPERT" --- */
.resume-header {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: var(--brand-red);
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* --- CTA EN FIN D'ARTICLE --- */
.article-cta-box { background: var(--bg-light); padding: 2rem; border-radius: 12px; margin: 2.5rem 0; border: 1px solid #e5e7eb; text-align: center; }
.article-cta-box p { font-weight: 600; color: var(--brand-dark); margin-bottom: 1.5rem; }
.article-cta-box .btn-secondary { background: var(--brand-red); color: #fff; padding: 12px 24px; border-radius: 50px; text-decoration: none; font-weight: bold; font-family: 'Montserrat', sans-serif; display: inline-block; }
.article-cta-box .btn-secondary:hover { background: var(--brand-red-hover); }

/* =========================================
   16. ACCESSIBILITÉ — ANIMATIONS RÉDUITES
   ========================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Conserver les transitions essentielles pour l'accessibilité */
    :focus-visible {
        transition: none !important;
    }
}

/* =========================================
   17. CLASSES UTILITAIRES SUPPLÉMENTAIRES
   ========================================= */

/* Numéros d'étapes (utilisé dans accessibilite.html) */
.step-number {
    font-size: 3rem;
    color: var(--brand-red);
    font-weight: 800;
    display: block;
}

/* Actions centrées avec espacement (utilisé dans strategie.html) */
.hero-actions-center {
    justify-content: center;
    margin-top: 1.5rem;
}

/* =========================================
   18. UTILITAIRES COMPLÉMENTAIRES
   ========================================= */

.font-bold  { font-weight: 700; }
.p-medium   { padding: 1.25rem; }
.btn-full   { width: 100%; }

/* =========================================
   19. SCANNER DE VISIBILITÉ IA
   ========================================= */

/* Score circulaire */
.score-display {
    width: 140px; height: 140px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Montserrat', sans-serif; font-size: 3rem; font-weight: 800;
    margin: 0 auto 1.5rem; color: var(--white);
    box-shadow: var(--shadow-card);
}
.score-good   { background-color: var(--success-green); }
.score-medium { background-color: #b45309; }
.score-bad    { background-color: var(--brand-red); }

/* Spinner de chargement */
.loader-spinner {
    width: 40px; height: 40px; border: 4px solid var(--bg-light);
    border-top: 4px solid var(--brand-red); border-radius: 50%;
    animation: spin 1s linear infinite; margin: 0 auto 1rem;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.hidden-view { display: none !important; }

/* Cartes du plan d'action */
.action-card {
    padding: 1.25rem; margin-bottom: 1rem;
    border-radius: var(--radius-card);
    background: var(--white); box-shadow: var(--shadow-sm);
}
.action-card[data-severity="high"]   { border-left: 5px solid var(--brand-red); }
.action-card[data-severity="medium"] { border-left: 5px solid #b45309; }
.action-card[data-severity="info"]   { border-left: 5px solid var(--success-green); }
.action-card strong { color: var(--brand-dark); display: block; margin-bottom: 0.35rem; font-size: 0.95rem; }
.action-card small  { color: var(--brand-grey); line-height: 1.6; display: block; }

/* Titres de catégorie du diagnostic */
.action-category {
    font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.05rem;
    color: var(--brand-dark); margin: 2rem 0 1rem; padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bg-light);
}
.action-category:first-child { margin-top: 0; }
.action-category-center { border: none; text-align: center; }

/* Badges technologies */
.tech-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 2rem; }
.tech-badge {
    display: inline-block; padding: 0.35rem 0.85rem; border-radius: 20px;
    font-size: 0.85rem; font-weight: 600; font-family: 'Montserrat', sans-serif;
    background: var(--bg-light); color: var(--brand-dark); border: 1px solid #e2e8f0;
}

/* Code source brut (dans details) */
.html-preview-box {
    padding: 1rem 1.5rem; background: #1e293b; color: #e2e8f0;
    border-radius: 0 0 var(--radius-card) var(--radius-card);
    font-family: 'Courier New', monospace; font-size: 0.78rem;
    line-height: 1.5; max-height: 400px; overflow-y: auto;
    white-space: pre-wrap; word-break: break-all;
}

/* Bandeau d'avertissement anti-bot */
.warning-banner {
    background: #fef3c7; border: 1px solid #f59e0b; border-radius: 12px;
    padding: 1rem 1.25rem; margin-bottom: 2rem; text-align: left;
}
.warning-banner strong { color: #92400e; display: block; margin-bottom: 0.25rem; }
.warning-banner p { color: #78350f; margin: 0; font-size: 0.9rem; }

/* Grille stats (5 colonnes) */
.grid-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; width: 100%; }
@media (max-width: 1024px) { .grid-stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .grid-stats { grid-template-columns: repeat(2, 1fr); } }

/* Verdict textuel */
.verdict-text { font-size: 1rem; color: var(--brand-grey); max-width: 560px; margin: 0.5rem auto 0; }

/* Bouton retour */
.btn-retour {
    background: none; border: none; cursor: pointer;
    color: var(--brand-red); font-weight: 600; font-size: 0.95rem;
    font-family: 'Open Sans', sans-serif; padding: 0; margin-bottom: 1.5rem;
}
.btn-retour:hover { text-decoration: underline; }

/* URL analysée */
.analysed-url {
    font-size: 0.9rem; color: var(--brand-grey); margin-bottom: 1.5rem;
    word-break: break-all; font-family: 'Courier New', monospace;
}

/* Blocs accordéon (details/summary) */
.explain-block {
    background: var(--bg-light); border-radius: var(--radius-card);
    border: 1px solid #e2e8f0; overflow: hidden;
}
.explain-summary {
    padding: 1.25rem 1.5rem; cursor: pointer;
    font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1rem;
    color: var(--brand-dark); list-style: none; position: relative;
}
.explain-summary::-webkit-details-marker { display: none; }
.explain-summary::after {
    content: '+'; position: absolute; right: 1.5rem; top: 1.1rem;
    color: var(--brand-red); font-weight: 800; font-size: 1.3rem;
}
.explain-block[open] .explain-summary::after { content: '\2212'; }
.explain-content {
    padding: 0 1.5rem 1.5rem; color: var(--brand-dark);
    font-size: 0.95rem; line-height: 1.7;
}
.explain-content ul { padding-left: 1.25rem; margin: 1rem 0; list-style: disc; }
.explain-content li { margin-bottom: 0.5rem; }

/* Vue texte IA */
.ia-view-content {
    padding: 0 1.5rem 1.5rem; font-size: 0.95rem;
    line-height: 1.7; color: var(--brand-dark);
}
.ia-view-content .ia-heading {
    font-family: 'Montserrat', sans-serif; font-weight: 700;
    color: var(--brand-dark); margin: 1.5rem 0 0.5rem; display: block;
}
.ia-view-content .ia-h1 { font-size: 1.2rem; color: var(--brand-red); margin-top: 0; }
.ia-view-content .ia-h2 { font-size: 1.05rem; }
.ia-view-content .ia-h3 { font-size: 0.95rem; color: var(--brand-grey); }
.ia-view-content .ia-paragraph { margin: 0.5rem 0; color: var(--brand-dark); }
.ia-view-content .ia-meta-block {
    background: #f1f5f9; border-radius: 8px; padding: 1rem;
    margin-bottom: 1rem; font-size: 0.88rem; color: var(--brand-grey);
}
.ia-view-content .ia-meta-label { font-weight: 700; color: var(--brand-dark); }
.ia-view-content .ia-truncated {
    text-align: center; color: var(--brand-grey); font-style: italic;
    margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #e2e8f0;
    font-size: 0.9rem;
}
.ia-view-content .ia-empty {
    font-style: italic; color: var(--brand-red);
}

/* Bouton partage */
.btn-partage {
    background: none; border: 1px solid var(--brand-grey); border-radius: var(--radius-btn);
    padding: 0.5rem 1.25rem; cursor: pointer; font-size: 0.9rem; color: var(--brand-grey);
    transition: all 0.3s ease; font-family: 'Open Sans', sans-serif;
}
.btn-partage:hover { border-color: var(--brand-red); color: var(--brand-red); }
.partage-confirm {
    display: inline-block; margin-left: 0.75rem;
    color: var(--success-green); font-weight: 600; font-size: 0.9rem;
}

/* Capture email */
.capture-box {
    background: var(--bg-light); border-radius: var(--radius-card);
    border: 1px solid #e2e8f0; padding: 2rem; text-align: center;
}
.capture-titre {
    font-family: 'Montserrat', sans-serif; font-weight: 700;
    font-size: 1.1rem; color: var(--brand-dark); margin-bottom: 0.5rem;
}
.capture-desc { color: var(--brand-grey); font-size: 0.95rem; margin-bottom: 1.25rem; }
.capture-form { max-width: 480px; margin: 0 auto; }
.capture-input-group { display: flex; gap: 0.75rem; }
.capture-input {
    flex: 1; padding: 0.75rem 1rem; border: 1px solid #d1d5db; border-radius: var(--radius-btn);
    font-size: 0.95rem; font-family: 'Open Sans', sans-serif;
}
.capture-input:focus { border-color: var(--brand-red); outline: 2px solid var(--brand-red); outline-offset: 2px; }
.capture-btn { white-space: nowrap; padding: 0.75rem 1.5rem; font-size: 0.85rem; }
.capture-rgpd { font-size: 0.78rem; color: var(--brand-grey); margin-top: 0.75rem; }
.capture-success { color: var(--success-green); font-weight: 600; font-size: 0.95rem; }
@media (max-width: 640px) { .capture-input-group { flex-direction: column; } }

/* Scores par catégorie — mini-cartes */
.scores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
@media (max-width: 768px) { .scores-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .scores-grid { grid-template-columns: 1fr 1fr; } }

.score-cat-item {
    background: var(--white); border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm); padding: 1.25rem 1rem;
    text-align: center; border-top: 4px solid #e2e8f0;
}
.score-cat-item.cat-good  { border-top-color: var(--success-green); }
.score-cat-item.cat-medium { border-top-color: #b45309; }
.score-cat-item.cat-bad   { border-top-color: var(--brand-red); }

.score-cat-label {
    font-size: 0.8rem; font-weight: 600; color: var(--brand-grey);
    text-transform: uppercase; letter-spacing: 0.04em; display: block; margin-bottom: 0.5rem;
}
.score-cat-val {
    font-size: 1.6rem; font-weight: 800; font-family: 'Montserrat', sans-serif;
    color: var(--brand-dark); display: block; line-height: 1;
}
.score-cat-max {
    font-size: 0.8rem; color: var(--brand-grey); display: block; margin-top: 0.2rem;
}

/* Lien d'action dans les cartes diagnostic */
.action-link {
    display: inline-block; margin-top: 0.35rem; color: var(--brand-red);
    font-weight: 600; font-size: 0.85rem; text-decoration: underline;
}
.action-link:hover { color: var(--brand-dark); }
.portfolio-section .section-subtitle { text-align: center; }