/* ═══════════════════════════════════════════════════════════════
   ASSUGERIS — Feuille de style partagée (pages de contenu SEO)
   Reprend les tokens de design de la page d'accueil (index.html)
   pour une identité visuelle cohérente sur tout le site.
   ═══════════════════════════════════════════════════════════════ */

:root {
    --burgundy: #7B2D3B;
    --burgundy-dark: #5E1F2C;
    --burgundy-light: #9E4A5A;
    --burgundy-pale: #F5EAEC;
    --charcoal: #2D3436;
    --charcoal-light: #3D4648;
    --green: #2D8B5E;
    --green-light: #3BA876;
    --green-pale: #E8F5EE;
    --cream: #F7F4EF;
    --white: #FEFDFB;
    --gray-50: #F5F2ED;
    --gray-100: #EFECE6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --radius: 10px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --shadow-burgundy: 0 4px 20px rgba(123,45,59,0.2);
}

/* Polices de repli à métriques alignées (anti-CLS) — voir landing.css.
   Valeurs calculées depuis les fichiers de police (méthode capsize/next-font)
   pour que la bascule police système → police de marque ne décale rien. */
@font-face {
    font-family: 'Outfit Fallback';
    src: local('Arial');
    size-adjust: 128.23%;
    ascent-override: 77.99%;
    descent-override: 20.28%;
    line-gap-override: 0%;
}
@font-face {
    font-family: 'Playfair Fallback';
    src: local('Times New Roman');
    size-adjust: 158.58%;
    ascent-override: 68.23%;
    descent-override: 15.83%;
    line-gap-override: 0%;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', 'Outfit Fallback', sans-serif;
    color: var(--charcoal);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Playfair Display', 'Playfair Fallback', serif; color: var(--charcoal); }
a { color: inherit; }

/* ═══════════ NAV ═══════════ */
nav.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: calc(14px + env(safe-area-inset-top)) 32px 14px;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(123,45,59,0.08);
}
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo svg { width: 34px; height: 38px; flex-shrink: 0; }
.nav-logo span { font-family: 'Playfair Display', 'Playfair Fallback', serif; font-size: 1.25rem; color: var(--charcoal); letter-spacing: 0.04em; font-weight: 600; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--gray-600); text-decoration: none; font-size: 0.86rem; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--burgundy); }
.nav-cta { background: var(--burgundy) !important; color: var(--white) !important; padding: 9px 20px !important; border-radius: 8px !important; font-weight: 600 !important; }
.nav-cta:hover { background: var(--burgundy-dark) !important; }
@media (max-width: 860px) { .nav-links a:not(.nav-cta) { display: none; } nav.site-nav { padding: calc(10px + env(safe-area-inset-top)) 16px 10px; } .nav-cta { padding: 8px 16px !important; font-size: 0.82rem !important; } }

/* ═══════════ BREADCRUMB ═══════════ */
.breadcrumb {
    max-width: 900px; margin: 0 auto; padding: 100px 32px 0;
    font-size: 0.78rem; color: var(--gray-400); display: flex; gap: 6px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--gray-500); text-decoration: none; }
.breadcrumb a:hover { color: var(--burgundy); text-decoration: underline; }
@media (max-width: 640px) { .breadcrumb { padding: 84px 16px 0; } }

/* ═══════════ PAGE HERO (landing situation) ═══════════ */
.page-hero { padding: 28px 32px 60px; }
.page-hero-inner { max-width: 900px; margin: 0 auto; }
.page-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--green-pale); border: 1px solid rgba(45,139,94,0.15);
    padding: 7px 16px; border-radius: 100px;
    font-size: 0.76rem; font-weight: 600; color: var(--green);
    margin-bottom: 18px;
}
.page-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.page-hero h1 {
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    line-height: 1.16; letter-spacing: -0.01em; margin-bottom: 20px;
}
.answer-block {
    background: var(--white); border: 1px solid var(--gray-200); border-left: 4px solid var(--burgundy);
    border-radius: var(--radius-lg); padding: 22px 26px; margin: 22px 0 28px;
    font-size: 1.02rem; line-height: 1.7; color: var(--charcoal-light);
    box-shadow: var(--shadow-sm);
}
.answer-block strong { color: var(--burgundy); }

/* Inline lead form (compact — used on content pages) */
.lead-form {
    background: var(--white); border-radius: var(--radius-xl); padding: 28px;
    box-shadow: var(--shadow-lg); border: 1px solid var(--gray-200); margin: 28px 0; position: relative;
}
.lead-form::before {
    content: ''; position: absolute; top: -1px; left: 28px; right: 28px; height: 3px;
    background: linear-gradient(90deg, var(--burgundy), var(--burgundy-light)); border-radius: 0 0 3px 3px;
}
.lead-form h3 { font-size: 1.15rem; margin-bottom: 4px; }
.lead-form .lead-sub { font-size: 0.82rem; color: var(--gray-400); margin-bottom: 18px; }
.lf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.lf-row.single { grid-template-columns: 1fr; }
.lf-group { display: flex; flex-direction: column; gap: 4px; }
.lf-group label { font-size: 0.72rem; font-weight: 600; color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.04em; }
.lf-group input, .lf-group textarea {
    padding: 12px 14px; border: 1.5px solid var(--gray-200); border-radius: 8px;
    font-family: 'Outfit', 'Outfit Fallback', sans-serif; font-size: 1rem; color: var(--charcoal);
    background: var(--white); outline: none; transition: all 0.25s;
}
.lf-group input:focus, .lf-group textarea:focus { border-color: var(--burgundy); box-shadow: 0 0 0 3px rgba(123,45,59,0.08); }
.lf-group textarea { resize: vertical; min-height: 64px; }
.lf-btn {
    width: 100%; padding: 14px 20px; margin-top: 4px;
    background: var(--burgundy); color: var(--white); border: none; border-radius: var(--radius);
    font-family: 'Outfit', 'Outfit Fallback', sans-serif; font-size: 0.95rem; font-weight: 700;
    cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.lf-btn:hover { background: var(--burgundy-dark); transform: translateY(-1px); box-shadow: var(--shadow-burgundy); }
.lf-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.lf-btn .lf-spin { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: lfspin 0.6s linear infinite; }
.lf-btn.loading .lf-spin { display: inline-block; }
.lf-btn.loading .lf-btxt { display: none; }
@keyframes lfspin { to { transform: rotate(360deg); } }
.lf-alt { text-align: center; margin-top: 12px; font-size: 0.8rem; color: var(--gray-400); }
.lf-alt a { color: var(--burgundy); font-weight: 600; text-decoration: underline; }
.lf-success { display: none; text-align: center; padding: 30px 10px; }
.lf-success.show { display: block; }
.lf-success .ico { width: 52px; height: 52px; border-radius: 50%; background: var(--green-pale); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 1.6rem; }
.lf-success h4 { font-size: 1.1rem; margin-bottom: 6px; }
.lf-success p { color: var(--gray-500); font-size: 0.86rem; line-height: 1.55; }

/* ═══════════ ARTICLE / CONTENT SECTIONS ═══════════ */
.content-wrap { max-width: 900px; margin: 0 auto; padding: 0 32px 20px; }
.content-wrap h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 44px 0 14px; line-height: 1.25;
}
.content-wrap h2:first-of-type { margin-top: 8px; }
.content-wrap p { font-size: 1rem; color: var(--gray-700); line-height: 1.75; margin-bottom: 14px; }
.content-wrap ul, .content-wrap ol { margin: 0 0 16px 22px; color: var(--gray-700); line-height: 1.75; }
.content-wrap li { margin-bottom: 6px; }
.content-wrap strong { color: var(--charcoal); }
.content-wrap .lede { font-size: 1.08rem; color: var(--gray-600); line-height: 1.75; }
@media (max-width: 640px) { .content-wrap { padding: 0 16px 20px; } }

/* Fact strip (chiffres) */
.fact-strip {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
    margin: 24px 0 36px; padding: 0;
}
.fact-card {
    text-align: center; padding: 22px 12px; background: var(--white);
    border-radius: var(--radius-lg); border: 1px solid var(--gray-200);
}
.fact-n { font-family: 'Playfair Display', 'Playfair Fallback', serif; font-size: 1.8rem; color: var(--burgundy); font-weight: 700; line-height: 1; }
.fact-l { font-size: 0.72rem; color: var(--gray-500); margin-top: 6px; font-weight: 500; }
@media (max-width: 640px) { .fact-strip { grid-template-columns: 1fr 1fr; } .fact-card:last-child { grid-column: 1 / -1; } }

/* FAQ accordion */
.faq-list { margin: 20px 0 36px; }
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius); margin-bottom: 10px; background: var(--white); overflow: hidden; }
.faq-q {
    width: 100%; text-align: left; padding: 16px 18px; background: none; border: none;
    font-family: 'Outfit', 'Outfit Fallback', sans-serif; font-size: 0.96rem; font-weight: 600; color: var(--charcoal);
    cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
    -webkit-tap-highlight-color: transparent;
}
.faq-q .chev { transition: transform 0.25s; color: var(--burgundy); flex-shrink: 0; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding: 0 18px 16px; font-size: 0.9rem; color: var(--gray-600); line-height: 1.65; margin: 0; }

/* Deep-dive / "En savoir plus" accordion — roomier than the FAQ, for rich blog-style detail.
   Toggled by the same delegated click handler in site.js (matches .dd-head). */
.deepdive { margin: 22px 0 36px; }
.dd-intro { font-size: 0.95rem; color: var(--gray-500); line-height: 1.6; margin-bottom: 16px; }
.dd-item { border: 1px solid var(--gray-200); border-radius: var(--radius-lg); margin-bottom: 12px; background: var(--white); overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; }
.dd-item.open { border-color: rgba(123,45,59,0.22); box-shadow: var(--shadow-sm); }
.dd-head {
    width: 100%; text-align: left; padding: 18px 20px; background: none; border: none;
    font-family: 'Playfair Display', 'Playfair Fallback', serif; font-size: 1.02rem; font-weight: 600; color: var(--charcoal);
    cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px;
    -webkit-tap-highlight-color: transparent;
}
.dd-head .dd-ico { display: inline-flex; align-items: center; gap: 10px; }
.dd-head .dd-emoji { font-size: 1.1rem; flex-shrink: 0; }
.dd-head .chev { transition: transform 0.25s; color: var(--burgundy); flex-shrink: 0; font-family: 'Outfit', 'Outfit Fallback', sans-serif; }
.dd-item.open .dd-head .chev { transform: rotate(180deg); }
.dd-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.dd-item.open .dd-body { max-height: 3000px; }
.dd-body-inner { padding: 0 20px 20px; }
.dd-body-inner p { font-size: 0.92rem; color: var(--gray-700); line-height: 1.7; margin-bottom: 12px; }
.dd-body-inner ul, .dd-body-inner ol { margin: 0 0 14px 20px; color: var(--gray-700); line-height: 1.7; font-size: 0.92rem; }
.dd-body-inner li { margin-bottom: 6px; }
.dd-body-inner strong { color: var(--charcoal); }
.dd-body-inner h4 { font-family: 'Outfit', 'Outfit Fallback', sans-serif; font-size: 0.9rem; font-weight: 700; color: var(--burgundy); text-transform: uppercase; letter-spacing: 0.04em; margin: 16px 0 8px; }
.dd-callout {
    background: var(--burgundy-pale); border-left: 3px solid var(--burgundy);
    border-radius: 8px; padding: 12px 16px; margin: 14px 0;
    font-size: 0.9rem; color: var(--charcoal-light); line-height: 1.6;
}
.dd-callout strong { color: var(--burgundy); }
.dd-source { display: block; margin-top: 8px; font-size: 0.76rem; color: var(--gray-400); font-style: italic; }

/* Data table inside deep-dive (bonus-malus etc.) */
.dd-table-wrap { overflow-x: auto; margin: 12px 0 16px; }
.dd-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.dd-table th, .dd-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--gray-200); }
.dd-table th { font-weight: 700; color: var(--gray-600); background: var(--gray-50); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }
.dd-table td { color: var(--gray-700); font-variant-numeric: tabular-nums; }
.dd-table tr:last-child td { border-bottom: none; }
.dd-table tr.dd-row-hl td { background: var(--green-pale); font-weight: 600; color: var(--charcoal); }

/* Related links */
.related-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0 40px; }
.related-card {
    padding: 18px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
    text-decoration: none; color: var(--charcoal); transition: all 0.25s;
}
.related-card:hover { border-color: rgba(123,45,59,0.25); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.related-card .rc-tag { font-size: 0.68rem; font-weight: 700; color: var(--burgundy); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.related-card .rc-title { font-size: 0.92rem; font-weight: 600; line-height: 1.4; }
@media (max-width: 760px) { .related-links { grid-template-columns: 1fr; } }

/* CTA block */
.cta-block {
    background: var(--burgundy-dark); text-align: center; border-radius: var(--radius-xl);
    margin: 0 32px 64px; padding: 56px 32px; position: relative; overflow: hidden;
}
.cta-block h2 { color: var(--white); font-size: 1.7rem; margin-bottom: 10px; }
.cta-block p { color: rgba(255,255,255,0.55); font-size: 0.92rem; margin-bottom: 22px; }
.cta-block .cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-link {
    display: inline-block; padding: 13px 30px; background: var(--burgundy); color: var(--white);
    border-radius: var(--radius); font-size: 0.92rem; font-weight: 700; text-decoration: none; transition: all 0.3s;
}
.cta-link:hover { background: var(--burgundy-light); transform: translateY(-2px); }
.cta-link.alt { background: transparent; border: 1.5px solid rgba(255,255,255,0.3); color: white; }
@media (max-width: 640px) { .cta-block { margin: 0 16px 40px; padding: 40px 20px; } }

/* Generic section (guides, pillar) */
.sec-tag { font-size: 0.7rem; font-weight: 700; color: var(--burgundy); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 10px; }
.sec-h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.16; margin-bottom: 14px; }
.sec-desc { font-size: 1rem; color: var(--gray-500); line-height: 1.7; max-width: 560px; }

.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; }
.feat-card { padding: 26px; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--gray-200); }
.feat-card .feat-ico { width: 42px; height: 42px; border-radius: 10px; background: var(--burgundy-pale); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: 14px; }
.feat-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.feat-card p { color: var(--gray-500); font-size: 0.85rem; line-height: 1.6; }
@media (max-width: 760px) { .feat-grid { grid-template-columns: 1fr; } }

/* Situations grid (used on home + pillar) */
.sit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.sit-card {
    display: block; padding: 22px; background: var(--white); border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200); text-decoration: none; color: var(--charcoal); transition: all 0.25s;
}
.sit-card:hover { border-color: rgba(123,45,59,0.25); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.sit-card .sit-ico { font-size: 1.4rem; margin-bottom: 10px; display: block; }
.sit-card h3 { font-size: 1rem; margin-bottom: 5px; }
.sit-card p { font-size: 0.82rem; color: var(--gray-500); line-height: 1.55; }
@media (max-width: 900px) { .sit-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .sit-grid { grid-template-columns: 1fr; } }

/* Author / E-E-A-T byline for guides */
.byline { display: flex; align-items: center; gap: 12px; margin: 4px 0 30px; font-size: 0.82rem; color: var(--gray-500); }
.byline .av { width: 38px; height: 38px; border-radius: 50%; background: var(--burgundy-pale); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', 'Playfair Fallback', serif; font-weight: 700; color: var(--burgundy); flex-shrink: 0; }
.byline strong { color: var(--charcoal); }

/* ═══════════ FOOTER ═══════════ */
footer.site-footer { padding: 36px 32px calc(36px + env(safe-area-inset-bottom)); border-top: 1px solid var(--gray-200); }
.foot-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.foot-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.foot-col h4 { font-size: 0.78rem; font-weight: 700; color: var(--charcoal); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.foot-col a { display: block; font-size: 0.82rem; color: var(--gray-500); text-decoration: none; margin-bottom: 7px; }
.foot-col a:hover { color: var(--burgundy); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 18px; border-top: 1px solid var(--gray-200); }
.foot-txt { font-size: 0.76rem; color: var(--gray-400); }
.foot-orias { font-size: 0.72rem; color: var(--gray-400); }
@media (max-width: 640px) { .foot-bottom { flex-direction: column; text-align: center; } }

/* Phone float CTA */
.phone-float {
    position: fixed; bottom: calc(20px + env(safe-area-inset-bottom)); right: calc(20px + env(safe-area-inset-right)); z-index: 99;
    display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.phone-float .phone-number {
    background: #FFFFFF; padding: 13px 22px; border-radius: 14px; font-family: 'Outfit', 'Outfit Fallback', sans-serif;
    font-size: 1.3rem; font-weight: 800; letter-spacing: 0.01em; color: var(--burgundy); box-shadow: 0 6px 24px rgba(0,0,0,0.14);
    border: 1.5px solid rgba(123,45,59,0.18);
}
.phone-float .phone-btn {
    width: 66px; height: 66px; background: var(--burgundy); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(123,45,59,0.35);
    flex-shrink: 0;
}
.phone-float .phone-btn svg { width: 30px; height: 30px; fill: none; stroke: white; }
/* Valeur textuelle (ex. « De nombreux clients ») : plus petite pour tenir sur la carte */
.fact-n.fact-n--word, .trust-n.trust-n--word, .hero-stat .num.num--word { font-size: 1.12rem; line-height: 1.2; }
/* Tableau comparatif (guides) — scrollable sur mobile, sans casser la mise en page */
.table-wrap { overflow-x: auto; margin: 24px 0; border-radius: 12px; border: 1px solid var(--gray-200); }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; min-width: 540px; }
.cmp-table th, .cmp-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--gray-200); vertical-align: top; line-height: 1.45; }
.cmp-table tr:last-child th, .cmp-table tr:last-child td { border-bottom: 0; }
.cmp-table thead th { background: var(--burgundy-pale); color: var(--burgundy); font-weight: 700; letter-spacing: 0.01em; }
.cmp-table th[scope="row"] { font-weight: 700; color: var(--charcoal); white-space: nowrap; background: #FBF8F4; }
@media (max-width: 480px) { .phone-float .phone-number { display: none; } }

/* Layout helpers shared across pages */
section { padding: 70px 32px; }
.sec-inner { max-width: 1100px; margin: 0 auto; }
@media (max-width: 640px) { section { padding: 46px 16px; } }
