/* static/css/style.css - Styles différés pour la performance au-dessus de la ligne de flottaison */

/* Variables et structure globale AIB */
:root {
    --primary: #2563eb;
    --primary-dark: #1e3a8a;
    --secondary: #f97316;
    --text-dark: #1e293b;
    --text-light: #f8fafc;
    --bg-light: #f1f5f9;
    --white: #ffffff;
    --alert-bg: #ffedd5;
    --alert-text: #7c2d12;
}

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

body {
    font-family: system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

.top-banner { background-color: var(--alert-bg); color: var(--alert-text); text-align: center; padding: 12px 1rem; font-size: 0.95rem; font-weight: 600; }
.seo-h1-phone { font-size: 1rem; margin: 0; display: inline; font-weight: normal; color: inherit; }
.seo-h2-subtitle { font-size: 1.1rem; text-align: center; padding: 10px; background: #fff; margin: 0; font-weight: 600; color: #475569; }
/* Page articles : pas de bandeau « 2019-2026 » au-dessus du hero (ancien HTML encore en cache serveur) */
.seo-h2-subtitle:has(+ .hero-landing--articles) { display: none !important; }
.hero-brand-line {
    margin-top: 0.75rem;
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(248, 250, 252, 0.65);
    letter-spacing: 0.04em;
    line-height: 1.4;
    max-width: 28rem;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #0f172a; color: #fff; padding: 0.75rem 1rem; z-index: 10000; text-decoration: none; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

.hero { background: linear-gradient(135deg, #1a2d52 0%, #2a4680 55%, #355a96 100%); color: var(--text-light); padding: 4.25rem 1rem 3.5rem; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); font-weight: 800; line-height: 1.08; margin-bottom: 1.1rem; text-transform: uppercase; letter-spacing: -0.02em; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.hero-subtitle { font-size: clamp(1.15rem, 2.8vw, 1.35rem); max-width: 760px; margin-bottom: 2rem; opacity: 0.92; color: rgba(248, 250, 252, 0.94); }
.hero-btn-group { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.hero-secondary-cta {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}
.hero-secondary-cta a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 700;
}
.hero-secondary-cta a:hover {
    text-decoration-thickness: 2px;
}
.hero-secondary-cta-sep {
    margin: 0 0.35rem;
    opacity: 0.85;
}
.cta-btn { background-color: var(--secondary); color: var(--white); padding: 1.02rem 2.4rem; border-radius: 9999px; text-decoration: none; font-weight: 800; font-size: 1.25rem; transition: transform 0.2s ease, box-shadow 0.2s ease; display: inline-flex; align-items: center; gap: 10px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2); border: none; cursor: pointer; }
.cta-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3); }
.cta-btn-outline { background-color: transparent; border: 2px solid var(--white); }
.cta-btn-outline:hover { background-color: rgba(255, 255, 255, 0.1); }
.hero-mini { background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%); text-align: center; padding: 1.5rem 1rem; }
.logo-aib { width: 108px; height: 108px; margin-bottom: 1.7rem; box-shadow: 0 6px 12px rgba(0,0,0,0.2); background: transparent; }
.trust-badge { margin-top: 2.6rem; display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); padding: 0.5rem 1.25rem; border-radius: 9999px; font-size: 0.95rem; font-weight: 600; backdrop-filter: blur(8px); }

#diagnosticModal::backdrop { background: rgba(15, 23, 42, 0.7); backdrop-filter: blur(4px); }

/* Header landing — largeur confortable, colonne texte centrée dans l’espace libre, typo lisible */
.hero-landing {
    position: relative;
    overflow: hidden;
    padding: 2.35rem clamp(0.85rem, 3vw, 2rem) 2.1rem;
    background: radial-gradient(ellipse 118% 88% at 46% 20%, #3d5f90 0%, #2a4a78 40%, #1a2d52 75%, #111a2a 100%);
    text-align: center;
}
.hero-landing-deco {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    color: #ffffff;
}
.hero-deco {
    position: absolute;
    opacity: 0.055;
}
.hero-deco svg {
    display: block;
    width: 100%;
    height: 100%;
}
.hero-deco--tl { top: 4%; left: 0.5%; width: clamp(56px, 12vw, 96px); height: clamp(56px, 12vw, 96px); }
.hero-deco--tr { top: 3%; right: 0.5%; width: clamp(60px, 13vw, 100px); height: clamp(60px, 13vw, 100px); }
.hero-deco--bl { bottom: 5%; left: 0.5%; width: clamp(64px, 14vw, 108px); height: clamp(64px, 14vw, 108px); }
.hero-deco--br { bottom: 2%; right: 0.5%; width: clamp(68px, 14vw, 112px); height: clamp(72px, 15vw, 118px); }
.hero-landing-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: min(1620px, calc(100vw - 1.75rem));
    margin: 0 auto;
}
.hero-landing-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}
.hero-landing-col--brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
    text-align: center;
}
.hero-landing-col--content {
    flex: 1;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 58rem;
    margin-inline: auto;
}
.hero-landing-brand {
    display: block;
    line-height: 0;
}
.hero-landing-brand .logo-aib {
    width: clamp(104px, 12vw, 140px);
    height: clamp(104px, 12vw, 140px);
    margin: 0;
    box-shadow: none;
    background: transparent;
}
.hero-landing .hero-slogan {
    font-size: clamp(0.95rem, 1.45vw + 0.2rem, 1.14rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    color: rgba(248, 250, 252, 0.94);
    margin: 0;
    line-height: 1.3;
    max-width: none;
    text-align: center;
    white-space: nowrap;
}
.hero.hero-landing h1.hero-landing-title {
    width: 100%;
    max-width: 48rem;
    margin: 0 auto 0.55rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: none;
    text-align: center;
    line-height: 1.28;
    color: #ffffff;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
    font-size: clamp(1.22rem, 2.1vw + 0.45rem, 1.95rem);
    text-wrap: balance;
}
@media (min-width: 1280px) {
    .hero.hero-landing h1.hero-landing-title {
        white-space: nowrap;
        max-width: none;
    }
}
@media (min-width: 768px) and (max-width: 1279px) {
    .hero.hero-landing h1.hero-landing-title {
        white-space: normal;
    }
}
.hero-landing .hero-subtitle {
    font-size: clamp(1.02rem, 1.25vw + 0.45rem, 1.2rem);
    max-width: 42rem;
    margin: 0 auto 1.1rem;
    opacity: 0.93;
    color: rgba(248, 250, 252, 0.95);
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
}
.hero-landing .hero-btn-group {
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    gap: 0.85rem 1.1rem;
}
.hero-landing .cta-btn {
    min-height: 48px;
    padding: 0.85rem 1.65rem;
    font-size: clamp(1rem, 0.9vw + 0.55rem, 1.12rem);
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22), 0 2px 0 rgba(255, 255, 255, 0.12) inset;
    background-color: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: 9999px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.hero-landing .cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28), 0 2px 0 rgba(255, 255, 255, 0.14) inset;
}
.hero-landing .cta-btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}
.hero-landing .cta-btn-outline {
    background-color: rgba(15, 23, 42, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.92);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.hero-landing .cta-btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.14);
    border-color: #fff;
}
.hero-landing .cta-btn-form {
    font-weight: 800;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 100%);
    border-width: 2px;
}
.hero-landing .cta-btn-form:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.1) 100%);
}
.hero-landing .trust-badge {
    margin-top: 0.85rem;
    font-size: clamp(0.88rem, 0.8vw + 0.35rem, 0.98rem);
    padding: 0.45rem 1.05rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: none;
}
.hero-landing .hero-brand-line {
    margin-top: 0.55rem;
    text-align: center;
    max-width: none;
    font-size: clamp(0.75rem, 0.65vw + 0.35rem, 0.82rem);
}
.hero-landing .hero-secondary-cta {
    width: 100%;
    margin-top: 0.55rem;
    text-align: center;
    font-size: clamp(0.92rem, 0.75vw + 0.4rem, 1.02rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}
@media (min-width: 768px) {
    .hero-landing-layout {
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-start;
        gap: clamp(1.1rem, 2.8vw, 2.5rem);
    }
    .hero-landing-col--brand {
        flex: 0 0 auto;
        padding-top: 0.35rem;
        align-items: center;
    }
    .hero-landing-col--content {
        flex: 1 1 0;
        max-width: none;
        align-items: center;
        margin-inline: 0;
        padding-left: clamp(0, 0.8vw, 0.35rem);
        padding-right: clamp(2.25rem, 9vw, 7.5rem);
        transform: translateX(clamp(-0.25rem, -0.9vw, -1.35rem));
    }
    .hero.hero-landing h1.hero-landing-title {
        max-width: 56rem;
    }
    .hero-landing .hero-subtitle {
        max-width: 46rem;
    }
}
@media (max-width: 380px) {
    .hero-landing .hero-slogan {
        white-space: normal;
        font-size: 0.9rem;
    }
}

/* Header blog (/articles) — même grille que l'accueil */
.hero-landing--articles h1.hero-articles-title {
    width: 100%;
    max-width: 52rem;
    margin: 0 auto 0.55rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    line-height: 1.12;
    font-size: clamp(1.65rem, 3.6vw, 2.85rem);
    color: #fff;
}
@media (max-width: 900px) {
    .hero-landing--articles h1.hero-articles-title {
        font-size: clamp(1.35rem, 5vw, 2rem);
    }
}
/* Grille symétrique : logo à gauche, contenu au centre visuel de la page */
@media (min-width: 768px) {
    .hero-landing--articles .hero-landing-layout {
        display: grid;
        grid-template-columns: 1fr minmax(0, 58rem) 1fr;
        align-items: center;
        justify-content: stretch;
        gap: clamp(1rem, 2.5vw, 2rem);
    }
    .hero-landing--articles .hero-landing-col--brand {
        grid-column: 1;
        justify-self: end;
        align-self: center;
        padding-top: 0;
    }
    .hero-landing--articles .hero-landing-col--content {
        grid-column: 2;
        flex: unset;
        width: 100%;
        max-width: none;
        margin-inline: 0;
        padding-left: 0;
        padding-right: 0;
        transform: none;
        align-items: center;
        align-self: center;
        text-align: center;
    }
    .hero-landing--articles h1.hero-articles-title,
    .hero-landing--articles .hero-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}

.hero-blog { padding: 4.2rem 1rem 3.2rem; }
.hero-blog h1 { font-size: clamp(3rem, 6.2vw, 5rem); margin-bottom: 1rem; }
.hero-blog .hero-subtitle { font-size: clamp(1.15rem, 2.8vw, 1.45rem); max-width: 820px; margin-bottom: 1.8rem; }
.hero-blog .logo-aib,
.logo-aib--hero {
    width: 112px;
    height: 112px;
    margin-bottom: 1.6rem;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    object-fit: contain;
}
.hero-blog .cta-btn { padding: 1rem 2.6rem; font-size: 1.18rem; }
.hero-blog .trust-badge { margin-top: 2rem; font-size: 1rem; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--primary-dark);
    margin-bottom: 3.5rem;
    font-weight: 900;
}

/* Nouveau Formulaire Rapide */
.quick-contact-section {
    background: var(--white);
    padding: 4rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    margin: 2rem auto 4rem auto;
    max-width: 800px;
    border-top: 5px solid var(--secondary);
}

.quick-contact-section .section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #0f172a;
    margin-bottom: 2rem;
}

.diagnostic-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group { display: flex; flex-direction: column; }
.full-width { grid-column: 1 / -1; }

.form-group label {
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input, .form-group textarea {
    padding: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.field-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}

.form-error-message {
    display: none;
    margin-top: 0.4rem;
    color: #b91c1c;
    font-size: 0.85rem;
    font-weight: 600;
}

.form-error-message.active {
    display: block;
}

.form-note { font-size: 0.85rem; color: #64748b; margin-top: 1rem; text-align: center; }
.text-center { text-align: center; }

/* Cases « type de panne » (modale diagnostic — liste lisible, hors flux hero) */
.diagnostic-form .form-group .diagnostic-pannes {
    min-width: 0;
    width: 100%;
}
.diagnostic-pannes {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0.75rem 0.85rem 0.85rem;
    margin: 0;
    background: #f1f5f9;
}
.diagnostic-pannes legend {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.88rem;
    line-height: 1.35;
    padding: 0 0.25rem;
    margin-bottom: 0.15rem;
}
ul.diagnostic-panne-list {
    list-style: none;
    margin: 0.55rem 0 0;
    padding: 0;
    display: block;
    width: 100%;
}
li.diagnostic-panne-row {
    display: block;
    margin: 0;
    padding: 0;
}
li.diagnostic-panne-row + li.diagnostic-panne-row {
    margin-top: 0.35rem;
}
label.diagnostic-panne-item {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0.42rem 0.55rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    line-height: 1.38;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
label.diagnostic-panne-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
li.diagnostic-panne-row--autre label.diagnostic-panne-item {
    background: #fafafa;
    border-style: dashed;
}
.diagnostic-panne-text {
    flex: 1;
    min-width: 0;
}
.diagnostic-form label.diagnostic-panne-item input[type="checkbox"] {
    width: 1.05rem;
    height: 1.05rem;
    min-width: 1.05rem;
    margin: 0.12rem 0 0;
    padding: 0;
    flex-shrink: 0;
    border: 1px solid #94a3b8;
    border-radius: 4px;
    box-shadow: none;
    accent-color: var(--primary, #2563eb);
    cursor: pointer;
    align-self: flex-start;
}
.diagnostic-form label.diagnostic-panne-item input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--primary, #2563eb);
    outline-offset: 2px;
}

/* Services */
.services { padding: 4rem 0; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover { transform: translateY(-5px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }
.service-card img { width: 100%; height: 220px; object-fit: cover; background-color: #e2e8f0; }

img {
    max-width: 100%;
    height: auto;
}

.service-content { padding: 2rem; flex: 1; }
.service-content h3 { font-size: 1.4rem; color: var(--text-dark); margin-bottom: 1rem; font-weight: 800; }
.service-content p { color: #475569; font-size: 1.1rem; line-height: 1.6; }

/* Arguments (Pourquoi nous) */
.arguments-section {
    background-color: var(--white);
    padding: 5rem 2rem;
    border-radius: 24px;
    margin: 4rem 0;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.02);
}

.args-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 3rem; text-align: center; }
.arg-icon { font-size: 3rem; margin-bottom: 1.5rem; }
.arg-item h4 { font-size: 1.25rem; margin-bottom: 1rem; color: var(--primary-dark); }
.arg-item p { color: #64748b; font-size: 1.05rem; }

/* Aperçu formules (accueil) */
.aib-formules-home {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}
.aib-formules-home-title {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    color: var(--primary-dark);
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.aib-formules-home-lead {
    color: #64748b;
    font-size: 1rem;
    max-width: 36rem;
    margin: 0 auto 2rem;
    line-height: 1.55;
}
.aib-formules-home-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    text-align: left;
    max-width: 1000px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .aib-formules-home-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}
.aib-formules-home-card {
    position: relative;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.35rem 1.25rem 1.5rem;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.aib-formules-home-card:hover {
    box-shadow: 0 12px 24px -8px rgba(15, 23, 42, 0.12);
    transform: translateY(-3px);
}
.aib-formules-home-card--featured {
    border: 2px solid #fbbf24;
    background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
}
.aib-formules-home-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #f59e0b;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
}
.aib-formules-home-icon {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.35rem;
}
.aib-formules-home-name {
    font-size: 1.15rem;
    color: var(--primary-dark);
    font-weight: 800;
    margin-bottom: 0.35rem;
    text-align: center;
}
.aib-formules-home-tagline {
    font-size: 0.9rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 0.85rem;
    line-height: 1.45;
}
.aib-formules-home-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.55;
}
.aib-formules-home-list li {
    position: relative;
    padding-left: 1.15rem;
    margin-bottom: 0.4rem;
}
.aib-formules-home-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: 700;
}
.aib-formules-home-more {
    margin-top: 2rem;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    justify-content: center;
    align-items: center;
}
.aib-formules-home-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.5rem;
    border-radius: 999px;
    background: var(--primary-dark);
    color: #fff !important;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.95rem;
    transition: background 0.2s ease, transform 0.2s ease;
}
.aib-formules-home-link:hover {
    background: #172554;
    transform: translateY(-2px);
}
.aib-formules-home-link--secondary {
    background: #fff;
    color: var(--primary-dark) !important;
    border: 2px solid var(--primary-dark);
}
.aib-formules-home-link--secondary:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.testimonial-card {
    background: #f8fafc;
    border-left: 4px solid var(--secondary);
    padding: 2rem;
    border-radius: 8px;
    font-style: italic;
    color: #334155;
}
.testimonial-card footer { margin-top: 1.5rem; font-weight: 700; color: var(--text-dark); font-style: normal; }

/* Contact Section */
.contact-section {
    background: linear-gradient(to right, #eff6ff, #e0e7ff);
    padding: 5rem 2rem;
    border-radius: 24px;
    text-align: center;
    margin-bottom: 4rem;
}
.contact-section p { font-size: 1.2rem; color: #475569; max-width: 650px; margin: 0 auto 2.5rem auto; }
.contact-email { margin-top: 2rem !important; font-weight: 600; }
.contact-email a { color: var(--primary); text-decoration: none; }

.btn-primary {
    display: inline-flex;
    background-color: var(--secondary);
    color: var(--white);
    text-decoration: none;
    border: none;
    cursor: pointer;
    padding: 1.25rem 3rem;
    border-radius: 9999px;
    font-size: 1.35rem;
    font-weight: 800;
    transition: all 0.2s ease;
    box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.3);
}
.btn-primary:hover { background-color: #ea580c; transform: scale(1.05); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }

/* Footer */
.site-footer { background-color: var(--text-dark); color: #94a3b8; padding: 4rem 1rem; text-align: center; }
.footer-mentions { margin-top: 1.5rem; font-size: 0.95rem; line-height: 1.8; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; margin-top: 2rem; }
.article-card { background: #fff; border-radius: 16px; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit; }
.article-card:hover { transform: translateY(-8px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.article-card-image { width: 100%; height: 200px; object-fit: cover; border-bottom: 4px solid var(--secondary); }
.article-card-content { padding: 2rem; display: flex; flex-direction: column; flex: 1; }
.article-card h2 { font-size: 1.35rem; color: var(--primary-dark); margin-bottom: 1rem; line-height: 1.4; font-weight: 800; }
.article-read-more { margin-top: auto; color: var(--secondary); font-weight: 800; display: inline-flex; align-items: center; gap: 5px; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.5px; }

/* Header compact des pages article individuelles */
.hero-landing--article-page {
    padding: 1.35rem clamp(0.85rem, 3vw, 2rem) 1.2rem;
}
.hero-landing-layout--brand-only {
    justify-content: center;
    width: 100%;
}
.hero-landing--article-page .hero-landing-col--brand {
    width: 100%;
    max-width: none;
}

.article-reading-env { max-width: 800px; margin: 4rem auto; background: var(--white); padding: 4rem; border-radius: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.article-featured-image {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 2rem;
    border-bottom: 4px solid var(--secondary);
    display: block;
}
.article-header { text-align: center; margin-bottom: 3rem; border-bottom: 2px solid var(--bg-light); padding-bottom: 2rem; }
.article-header h1 { font-size: clamp(2rem, 5vw, 3rem); color: var(--primary-dark); line-height: 1.2; margin-bottom: 1rem; letter-spacing: -0.02em; text-transform: none; }
.article-meta { color: #64748b; font-size: 0.95rem; font-weight: 500; }
.article-content { font-size: 1.2rem; line-height: 1.8; color: #334155; }
.article-content h2 { font-size: 1.8rem; color: var(--text-dark); margin-top: 3rem; margin-bottom: 1.5rem; }
.article-content p { margin-bottom: 1.5rem; }
.article-content ul, .article-content ol { margin-bottom: 1.5rem; padding-left: 2rem; }
.article-content li { margin-bottom: 0.5rem; }
.back-link { display: inline-flex; align-items: center; color: var(--primary); font-weight: 600; text-decoration: none; margin-bottom: 2rem; transition: transform 0.2s; }
.back-link:hover { transform: translateX(-5px); }

.legal-content { max-width: 800px; margin: 4rem auto; background: var(--white); padding: 3rem; border-radius: 16px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); text-align: left; }
.legal-content h2 { color: var(--primary-dark); margin-bottom: 1rem; margin-top: 2rem; font-size: 1.5rem; }
.legal-content p { margin-bottom: 1rem; color: #475569; font-size: 1.05rem; }

.error-container { text-align: center; padding: 8rem 1rem; min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.error-code { font-size: 8rem; font-weight: 900; color: var(--primary); line-height: 1; margin-bottom: 1rem; text-shadow: 0 10px 20px rgba(37, 99, 235, 0.2); }
.error-title { font-size: 2.5rem; color: var(--primary-dark); margin-bottom: 1.5rem; }
.error-text { font-size: 1.2rem; color: #475569; max-width: 600px; margin: 0 auto 3rem auto; line-height: 1.8; }
.btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-outline { display: inline-flex; background-color: transparent; color: var(--primary-dark); border: 2px solid var(--primary-dark); text-decoration: none; padding: 1rem 2rem; border-radius: 9999px; font-size: 1.1rem; font-weight: 700; transition: all 0.2s ease; }
.btn-outline:hover { background-color: var(--primary-dark); color: #fff; }

.mobile-sticky-call { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background-color: var(--secondary); color: white; text-align: center; padding: 1.2rem; font-size: 1.4rem; font-weight: 900; text-decoration: none; z-index: 9999; box-shadow: 0 -4px 15px rgba(249, 115, 22, 0.4); text-transform: uppercase; letter-spacing: 0.5px;}

.back-to-top {
    position: fixed;
    right: 1rem;
    bottom: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 0.9rem;
    border-radius: 9999px;
    background-color: var(--primary-dark);
    color: var(--white);
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.25);
    z-index: 9998;
}

.back-to-top:hover {
    background-color: #172554;
}

/* Improve mobile rendering cost by skipping offscreen layout work */
.services,
.arguments-section,
.testimonials,
#articles-preview,
.contact-section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 800px;
}

@media (max-width: 768px) {
    body { padding-bottom: 70px; }
    .section-title { font-size: 1.8rem; }
    .top-banner { font-size: 0.85rem; padding: 8px 1rem; }
    .seo-h2-subtitle { font-size: 0.95rem; }
    .hero { padding: 2.5rem 1rem; }
    .hero h1 { font-size: 2.2rem; margin-bottom: 0.6rem; }
    .hero-subtitle { font-size: 1rem; max-width: 95%; }
    .logo-aib { width: 80px; height: 80px; margin-bottom: 1rem; }
    .hero-landing { padding: 1.5rem 0.85rem 1.4rem; }
    .hero-landing-brand .logo-aib { width: 96px; height: 96px; }
    .hero.hero-landing h1.hero-landing-title { font-size: clamp(1.05rem, 4.2vw, 1.35rem); white-space: normal; max-width: 100%; }
    .hero-landing .hero-subtitle { font-size: clamp(0.98rem, 3.2vw, 1.08rem); }
    .hero-brand-line { font-size: 0.72rem; padding: 0 0.5rem; }
    .hero-landing .cta-btn { padding: 0.8rem 1.35rem; font-size: 1.02rem; min-height: 48px; }
    .hero-blog { padding: 2.6rem 1rem 2.2rem; }
    .hero-blog h1 { font-size: 2.45rem; }
    .hero-blog .cta-btn { padding: 0.9rem 1.6rem; font-size: 1.02rem; }
    .mobile-sticky-call { display: block; }
    .back-to-top { bottom: 5.5rem; }
    .services, .testimonials { padding: 2rem 0; }
    .contact-section, .arguments-section { padding: 3rem 1.5rem; }
    .btn-primary { padding: 1rem 2rem; font-size: 1.15rem; }
    .diagnostic-form { grid-template-columns: 1fr; }
    .article-reading-env { padding: 2rem 1.5rem; margin: 2rem auto; border-radius: 16px; }
    .article-content { font-size: 1.1rem; }
}
