/* ==========================================================================
   Mondial Elec — feuille de style du site vitrine
   Aucune dépendance (ni Bootstrap ni jQuery). Mobile first.
   Sommaire :
   1. Variables          6. Hero               11. Formulaires
   2. Base               7. Sections / titres  12. Alertes
   3. Utilitaires        8. Cartes / grilles   13. FAQ
   4. Boutons            9. Pages intérieures  14. Pied de page
   5. En-tête / menu    10. Contact / infos    15. Auth / erreurs
   ========================================================================== */

/* 1. Variables ------------------------------------------------------------ */
:root {
    --c-primary: #1b75bb;
    --c-primary-dark: #135a91;
    --c-primary-light: #e8f2fa;
    --c-navy: #0b1f33;
    --c-navy-2: #12304f;
    --c-accent: #f5a623;
    --c-accent-dark: #d98c0b;
    --c-text: #1f2a37;
    --c-muted: #5b6b7c;
    --c-border: #e2e8f0;
    --c-bg: #ffffff;
    --c-bg-soft: #f5f8fb;
    --c-success: #15803d;
    --c-success-bg: #ecfdf3;
    --c-danger: #b42318;
    --c-danger-bg: #fef3f2;

    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(11, 31, 51, .06), 0 1px 3px rgba(11, 31, 51, .08);
    --shadow: 0 10px 30px -12px rgba(11, 31, 51, .25);
    --container: 1180px;
    --header-h: 76px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--c-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-primary-dark); }

h1, h2, h3, h4 { color: var(--c-navy); line-height: 1.2; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
.h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
address { font-style: normal; }
ul { margin: 0 0 1em; padding-left: 1.2em; }

:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 4px; }

.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 1000;
    background: var(--c-navy); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* 3. Utilitaires ----------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.text-center { text-align: center; }
.text-muted { color: var(--c-muted); }
.small { font-size: .875rem; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: 2.5rem; }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 1em; height: 1em; }
.highlight { color: var(--c-primary); }
.hidden-mobile { display: none; }

/* 4. Boutons -------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .8rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
    font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.2;
    cursor: pointer; text-align: center; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--c-primary); color: #fff; box-shadow: 0 8px 20px -8px rgba(27, 117, 187, .6); }
.btn-primary:hover { background: var(--c-primary-dark); color: #fff; }
.btn-accent { background: var(--c-accent); color: var(--c-navy); box-shadow: 0 8px 20px -8px rgba(245, 166, 35, .7); }
.btn-accent:hover { background: var(--c-accent-dark); color: var(--c-navy); }
.btn-outline { border-color: currentColor; color: var(--c-primary); background: transparent; }
.btn-outline:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.btn-ghost-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--c-navy); }
.btn-block { width: 100%; }
.btn-sm { padding: .5rem 1rem; font-size: .85rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: .75rem; }

/* 5. En-tête / menu -------------------------------------------------------- */
.topbar { background: var(--c-navy); color: #c9d6e3; font-size: .85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; }
.topbar-list { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.topbar-list li { display: flex; align-items: center; gap: .4rem; }
.topbar a { color: #fff; }
.topbar a:hover { color: var(--c-accent); }
.topbar-hours { display: none; }

/* Pas de backdrop-filter ici : il ferait de l'en-tête le conteneur des éléments
   « position: fixed » (le menu mobile serait tronqué et déborderait en largeur). */
.site-header {
    position: sticky; top: 0; z-index: 100; background: #fff;
    border-bottom: 1px solid var(--c-border); transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); }
.brand { display: flex; align-items: center; }
.brand-logo { width: 170px; height: auto; }

.nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: #fff; color: var(--c-navy); cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

/* Menu mobile : plein écran sous l'en-tête (--menu-top est calculé par site.js à l'ouverture).
   Masqué par fondu (et non par décalage hors écran, qui provoquait un défilement horizontal). */
.main-nav {
    position: fixed; top: var(--menu-top, calc(var(--header-h) + 1px)); left: 0; right: 0; bottom: 0;
    background: #fff; padding: 1rem 20px 2rem; overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s var(--ease), visibility .2s;
}
.nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
.nav-open { overflow: hidden; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-link {
    display: flex; align-items: center; justify-content: space-between; gap: .4rem; width: 100%;
    padding: .9rem .25rem; border: 0; border-bottom: 1px solid var(--c-border); background: none;
    font: inherit; font-weight: 600; color: var(--c-navy); cursor: pointer; text-align: left;
}
.nav-link:hover, .nav-link.is-active { color: var(--c-primary); }
.submenu { list-style: none; margin: 0; padding: 0 0 .5rem .75rem; display: none; }
.has-submenu.is-open .submenu { display: block; }
.has-submenu.is-open .nav-chevron { transform: rotate(180deg); }
.nav-chevron { transition: transform .2s; }
.submenu a { display: block; padding: .6rem .25rem; color: var(--c-text); font-weight: 500; }
.submenu a:hover, .submenu a.is-active { color: var(--c-primary); }
.nav-cta { display: grid; gap: .6rem; margin-top: 1.25rem; }

/* 6. Hero ------------------------------------------------------------------ */
.hero {
    position: relative; color: #fff; padding: 4.5rem 0 5rem; overflow: hidden;
    background: linear-gradient(110deg, rgba(11, 31, 51, .95) 0%, rgba(11, 31, 51, .85) 45%, rgba(27, 117, 187, .55) 100%), url("../images/2.jpg") center / cover no-repeat;
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .9rem; margin-bottom: 1.25rem;
    border-radius: 999px; background: rgba(245, 166, 35, .15); color: var(--c-accent); font-weight: 700; font-size: .85rem;
}
.hero-lead { font-size: 1.1rem; color: #d6e2ee; max-width: 60ch; margin-bottom: 1.75rem; }
.hero-points { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .5rem; }
.hero-points li { display: flex; align-items: center; gap: .6rem; color: #eaf1f8; }
.hero-points .icon { color: var(--c-accent); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 3rem; }
.stat { padding: 1.1rem; border-radius: var(--radius); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.stat-value { display: block; font-size: 1.5rem; font-weight: 800; color: #fff; }
.stat-label { font-size: .85rem; color: #c9d6e3; }

/* 7. Sections / titres ----------------------------------------------------- */
.section { padding: 4.5rem 0; }
.section-soft { background: var(--c-bg-soft); }
.section-dark { background: var(--c-navy); color: #c9d6e3; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 2.75rem; text-align: center; }
.section-head p { color: var(--c-muted); font-size: 1.05rem; }
.section-dark .section-head p { color: #c9d6e3; }
.kicker { display: inline-block; margin-bottom: .6rem; color: var(--c-primary); font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.section-dark .kicker { color: var(--c-accent); }
.lead { font-size: 1.1rem; color: var(--c-muted); }

/* 8. Cartes / grilles ------------------------------------------------------ */
.grid { display: grid; gap: 1.5rem; }
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

.card {
    background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.75rem;
    transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--c-muted); margin-bottom: 0; }
.card-link { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; font-weight: 700; }

.icon-badge {
    display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 1.1rem;
    border-radius: 14px; background: var(--c-primary-light); color: var(--c-primary);
}
.icon-badge .icon { width: 26px; height: 26px; }
.icon-badge-accent { background: rgba(245, 166, 35, .15); color: var(--c-accent-dark); }

.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature .icon-badge { margin-bottom: 0; }
.feature h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.feature p { color: var(--c-muted); margin: 0; font-size: .95rem; }
.section-dark .feature p { color: #c9d6e3; }
.section-dark .icon-badge { background: rgba(255, 255, 255, .08); color: var(--c-accent); }

.service-card { display: flex; gap: 1.1rem; align-items: flex-start; }
/* Photos sources de 162 px : affichées en vignette pour rester nettes */
.service-media { flex: 0 0 88px; width: 88px; height: 88px; border-radius: 12px; background: var(--c-bg-soft); overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.service-card:hover .service-media img { transform: scale(1.08); }
.service-body { min-width: 0; }
.service-body h3 { font-size: 1.05rem; }
.service-num { display: block; color: var(--c-primary); font-weight: 800; font-size: .8rem; margin-bottom: .3rem; }

.split { display: grid; gap: 2.5rem; align-items: center; }
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }

.check-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .65rem; }
.check-list li { display: flex; gap: .65rem; align-items: flex-start; }
.check-list .icon { color: var(--c-primary); margin-top: .2em; }

.value-card { border-top: 4px solid var(--c-primary); }
.value-card:nth-child(2) { border-top-color: var(--c-accent); }
.value-card:nth-child(3) { border-top-color: var(--c-navy-2); }

.badge-card { display: grid; gap: 1.5rem; align-items: center; padding: 2rem; }
.badge-card img { width: 160px; margin: 0 auto; }
.badge-meta { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; }
.badge-meta li { display: flex; gap: .6rem; align-items: flex-start; }
.badge-meta .icon { color: var(--c-primary); margin-top: .2em; }

.team-card { text-align: center; }
.team-avatar {
    width: 88px; height: 88px; margin: 0 auto 1rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.6rem;
    color: #fff; background: linear-gradient(135deg, var(--c-primary), var(--c-navy-2));
}
.team-avatar .icon { width: 38px; height: 38px; }
.team-role { color: var(--c-primary); font-weight: 600; margin: 0; }
.team-card-lead { border: 2px solid var(--c-primary); }

.cta-band {
    background: linear-gradient(120deg, var(--c-primary) 0%, var(--c-navy-2) 100%); color: #fff;
    border-radius: var(--radius); padding: 2.5rem 1.75rem; display: grid; gap: 1.5rem; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: .4rem; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.cta-band p { color: #dbe8f4; margin: 0; }

/* 9. Pages intérieures ----------------------------------------------------- */
.page-hero {
    background: linear-gradient(120deg, var(--c-navy) 0%, var(--c-navy-2) 60%, var(--c-primary) 140%);
    color: #c9d6e3; padding: 3rem 0 3.25rem;
}
.page-hero h1 { color: #fff; margin-bottom: .5rem; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-hero p { max-width: 70ch; margin: 0; font-size: 1.05rem; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0 0 1rem; font-size: .85rem; }
.breadcrumb li { display: flex; align-items: center; gap: .35rem; }
.breadcrumb li + li::before { content: "›"; color: #7f96ad; }
.breadcrumb a { color: #c9d6e3; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: var(--c-accent); }

.prose { max-width: 75ch; }
.prose h2 { font-size: 1.6rem; margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose p, .prose li { color: #374151; }

.notice { border-left: 4px solid var(--c-primary); background: var(--c-primary-light); padding: 1.25rem 1.5rem; border-radius: var(--radius-sm); }
.notice p:last-child { margin-bottom: 0; }

/* 10. Contact / infos ------------------------------------------------------ */
.contact-layout { display: grid; gap: 2rem; }
.contact-aside { display: grid; gap: 1.5rem; }
.contact-aside .legal-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.info-item { display: flex; gap: .9rem; align-items: flex-start; }
.info-item .icon-badge { width: 44px; height: 44px; margin: 0; border-radius: 12px; }
.info-item .icon-badge .icon { width: 22px; height: 22px; }
.info-label { display: block; font-size: .8rem; font-weight: 700; color: var(--c-muted); text-transform: uppercase; letter-spacing: .06em; }
.info-value { display: block; color: var(--c-navy); font-weight: 600; word-break: break-word; }
.info-value a { color: var(--c-navy); }
.info-value a:hover { color: var(--c-primary); }

.legal-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 0; }
.legal-list div { background: var(--c-bg-soft); border-radius: var(--radius-sm); padding: .75rem 1rem; }
.legal-list dt { font-size: .75rem; font-weight: 700; color: var(--c-muted); text-transform: uppercase; letter-spacing: .05em; }
.legal-list dd { margin: 0; font-weight: 700; color: var(--c-navy); word-break: break-all; }

.hours-figure { margin: 1.5rem 0 0; }
.hours-figure img { border-radius: var(--radius-sm); border: 1px solid var(--c-border); }
.hours-figure figcaption { font-size: .85rem; color: var(--c-muted); margin-top: .5rem; }

/* 11. Formulaires ---------------------------------------------------------- */
.form-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; gap: 1.1rem; }
.form-group { display: grid; gap: .4rem; }
.form-label { font-weight: 700; font-size: .9rem; color: var(--c-navy); }
.form-control {
    width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--c-border); border-radius: var(--radius-sm);
    font: inherit; color: var(--c-text); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.form-control:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(27, 117, 187, .15); }
.form-control.is-invalid { border-color: var(--c-danger); }
textarea.form-control { min-height: 160px; resize: vertical; }
.form-error { color: var(--c-danger); font-size: .85rem; font-weight: 600; }
.form-check { display: flex; align-items: center; gap: .5rem; font-size: .95rem; }
.form-check input { width: 18px; height: 18px; accent-color: var(--c-primary); }
.form-note { font-size: .78rem; color: var(--c-muted); margin: .5rem 0 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }

/* 12. Alertes -------------------------------------------------------------- */
.alert { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; font-weight: 500; }
.alert ul { margin: 0; padding-left: 1.1rem; }
.alert-success { background: var(--c-success-bg); color: var(--c-success); border: 1px solid #abefc6; }
.alert-danger { background: var(--c-danger-bg); color: var(--c-danger); border: 1px solid #fecdca; }

/* 13. FAQ ------------------------------------------------------------------ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: .75rem; }
.faq-item { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-sm); }
.faq-item summary {
    list-style: none; cursor: pointer; padding: 1.1rem 1.25rem; font-weight: 700; color: var(--c-navy);
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { transition: transform .2s; color: var(--c-primary); }
.faq-item[open] summary .icon { transform: rotate(45deg); }
.faq-answer { padding: 0 1.25rem 1.1rem; color: var(--c-muted); }
.faq-answer p:last-child { margin-bottom: 0; }

/* 14. Pied de page --------------------------------------------------------- */
.site-footer { background: var(--c-navy); color: #a9bccf; padding: 4rem 0 0; font-size: .95rem; }
.footer-grid { display: grid; gap: 2.5rem; }
.footer-logo { background: #fff; border-radius: var(--radius-sm); padding: .5rem .75rem; width: 190px; margin-bottom: 1rem; }
.footer-title { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-links a, .site-footer .info-value a { color: #a9bccf; }
.footer-links a:hover, .site-footer .info-value a:hover { color: #fff; }
.site-footer .info-value { color: #dbe6f0; font-weight: 500; }
.site-footer .info-label { color: #7f96ad; }
.site-footer .icon-badge { background: rgba(255, 255, 255, .06); color: var(--c-accent); }
.footer-bottom {
    margin-top: 3rem; padding: 1.25rem 0; border-top: 1px solid rgba(255, 255, 255, .08);
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: .85rem;
}
.footer-bottom a { color: #a9bccf; }

/* 15. Auth / erreurs ------------------------------------------------------- */
.auth-section { padding: 4rem 0; background: var(--c-bg-soft); min-height: 60vh; }
.auth-card { max-width: 460px; margin: 0 auto; }
.auth-card h1 { font-size: 1.6rem; }
.error-page { padding: 5rem 0; text-align: center; }
.error-code { font-size: clamp(4rem, 14vw, 8rem); font-weight: 800; line-height: 1; color: var(--c-primary); margin-bottom: .5rem; }
.error-page .btn-group { justify-content: center; margin-top: 1.5rem; }

/* Responsive ---------------------------------------------------------------- */
@media (min-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(4, 1fr); }
    .form-grid-2 { grid-template-columns: repeat(2, 1fr); }
    .form-grid-2 .form-group-full { grid-column: 1 / -1; }
    .badge-card { grid-template-columns: 180px 1fr; }
    .legal-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
    .topbar-hours { display: flex; }
    .hidden-mobile { display: inline; }
    .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
    .split-reverse .split-media { order: 2; }
    .cta-band { grid-template-columns: 1fr auto; padding: 2.75rem 3rem; }
    .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
    .contact-layout { grid-template-columns: 1fr 1.4fr; align-items: start; }
    .form-card { padding: 2.25rem; }
}

@media (min-width: 1024px) {
    :root { --header-h: 84px; }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
    .section { padding: 6rem 0; }
    .hero { padding: 6.5rem 0 6rem; }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; }
    .brand-logo { width: 200px; }

    /* Menu horizontal */
    .nav-toggle { display: none; }
    .main-nav { position: static; transform: none; visibility: visible; opacity: 1; padding: 0; overflow: visible; background: none; display: flex; align-items: center; gap: 1.5rem; }
    .nav-list { display: flex; align-items: center; gap: .25rem; }
    .nav-item { position: relative; }
    .nav-link { border: 0; padding: .6rem .8rem; border-radius: var(--radius-sm); font-size: .95rem; width: auto; }
    .nav-link:hover, .nav-link.is-active { background: var(--c-primary-light); }
    .submenu {
        position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px; padding: .5rem;
        background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow);
        display: block; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s;
    }
    .submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
    .has-submenu:hover .submenu, .has-submenu:focus-within .submenu, .has-submenu.is-open .submenu { opacity: 1; visibility: visible; transform: none; }
    .submenu a { padding: .55rem .75rem; border-radius: var(--radius-sm); }
    .submenu a:hover, .submenu a.is-active { background: var(--c-primary-light); }
    .nav-cta { display: flex; margin-top: 0; }
    .nav-open { overflow: auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
    .topbar, .site-header, .site-footer, .cta-band, .nav-toggle { display: none; }
    .page-hero, .hero { background: none; color: #000; }
    .page-hero h1, .hero h1 { color: #000; }
}

/* Page d'erreur serveur (resources/views/errors/exception.blade.php) ---------- */
.error-body { background: var(--c-bg-soft); }
.error-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 16px; }
.error-card { width: 100%; max-width: 720px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem 1.5rem; text-align: center; }
.error-logo { width: 180px; margin: 0 auto 1rem; }
.error-card .error-code { font-size: clamp(3rem, 12vw, 5rem); margin-bottom: .25rem; }
.error-card h1 { font-size: clamp(1.4rem, 4vw, 1.9rem); }
.error-id { display: inline-flex; flex-direction: column; gap: .25rem; margin: .5rem 0 1.5rem; padding: .75rem 1.25rem; border: 1px dashed var(--c-primary); border-radius: var(--radius-sm); background: var(--c-primary-light); }
.error-id-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); }
.error-id code { font-size: 1.15rem; font-weight: 800; color: var(--c-navy); word-break: break-all; }
.error-details { text-align: left; margin: 0 0 1.5rem; padding: 1.25rem; border-radius: var(--radius-sm); background: var(--c-danger-bg); border: 1px solid #fecdca; }
.error-details dl { margin: 0; display: grid; gap: .25rem .75rem; }
.error-details dt { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--c-danger); }
.error-details dd { margin: 0 0 .5rem; color: var(--c-text); word-break: break-word; }
.error-details code { font-size: .85rem; word-break: break-all; }
.error-trace { margin-top: .5rem; }
.error-trace summary { cursor: pointer; font-weight: 700; color: var(--c-navy); }
.error-trace ol { margin: .5rem 0 0; padding-left: 1.25rem; font-size: .8rem; }
.error-trace li { margin-bottom: .25rem; }
.error-note { margin: .75rem 0 0; font-size: .8rem; color: var(--c-muted); }
.error-actions { justify-content: center; }
@media (min-width: 640px) { .error-details dl { grid-template-columns: 110px 1fr; } .error-details dd { margin-bottom: .25rem; } }

/* Liens légaux du pied de page */
.footer-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.footer-legal a { color: #a9bccf; }
.footer-legal a:hover { color: #fff; }

/* Signature / dates des pages ------------------------------------------------ */
.page-byline { margin: 1rem 0 0; font-size: .85rem; color: #9fb3c8; }
.page-byline a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.page-byline-light { color: var(--c-muted); text-align: center; margin-top: 2rem; }
.page-byline-light a { color: var(--c-primary); }

/* Réponse directe en tête de section (answer-first) -------------------------- */
.answer { font-size: 1.08rem; color: var(--c-text); background: var(--c-primary-light); border-left: 4px solid var(--c-primary); padding: 1rem 1.25rem; border-radius: var(--radius-sm); margin: 0 auto 2rem; max-width: 860px; text-align: left; }
.answer strong { color: var(--c-navy); }
.section-dark .answer { background: rgba(255, 255, 255, .06); color: #e2ebf3; border-left-color: var(--c-accent); }
.section-dark .answer strong { color: #fff; }

/* Citations ----------------------------------------------------------------- */
.quote { margin: 0; padding: 1.25rem 1.5rem; border-left: 4px solid var(--c-accent); background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.quote p { font-size: 1.05rem; font-style: italic; color: var(--c-navy); margin-bottom: .5rem; }
.quote footer { font-size: .85rem; color: var(--c-muted); }
.sources { margin-top: 1.5rem; font-size: .85rem; color: var(--c-muted); }
.sources ul { margin: .35rem 0 0; }
.mb-lg { margin-bottom: 2.5rem; }
.quote { max-width: 860px; margin-left: auto; margin-right: auto; }
.prose .answer, .contact-layout .answer, .split .answer { margin-left: 0; margin-right: 0; }
