/* === css/main.css === */
/**
 * R-Advertising — Styles globaux
 *
 * Variables CSS, reset, typographie, layout, composants communs.
 * Basé sur le design system du site WordPress existant.
 */

/* =============================================================================
   CSS Variables (Design Tokens)
   ============================================================================= */
:root {
    /* Couleurs */
    --color-orange: #e55945;
    --color-vert-fonce: #124014;
    --color-olive: #babf73;
    --color-beige: #fcfaf2;
    --color-anthracite: #212621;
    --color-noir: #000000;
    --color-white: #ffffff;

    /* Typographie */
    --font-family: 'Manrope', sans-serif;
    --font-size-small: 14px;
    --font-size-base: clamp(14px, 0.875rem + ((1vw - 3.2px) * 0.5), 18px);
    --font-size-large: clamp(1.875rem, 1.875rem + ((1vw - 0.2rem) * 1.667), 46px);
    --font-size-xlarge: clamp(25px, 1.563rem + ((1vw - 3.2px) * 1.769), 42px);

    /* Espacements */
    --space-xs: 0.44rem;
    --space-sm: 0.67rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.25rem;
    --space-2xl: 3.38rem;
    --space-3xl: 5.06rem;

    /* Ombres */
    --shadow-natural: 6px 6px 9px rgba(0, 0, 0, 0.2);
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08);

    /* Layout */
    --container-width: 1280px;
    --container-narrow: 860px;

    /* Boutons */
    --btn-radius: 14px;
    --btn-font-size: clamp(14px, 0.875rem + ((1vw - 3.2px) * 0.208), 16px);
    --btn-padding: 10px 16px;
    --btn-font-weight: 600;
}

/* =============================================================================
   Background color utilities
   ============================================================================= */
.bg-white       { background-color: var(--color-white); }
.bg-beige       { background-color: var(--color-beige); }
.bg-vert-fonce  { background-color: var(--color-vert-fonce); }
.bg-anthracite  { background-color: var(--color-anthracite); }
.bg-orange      { background-color: var(--color-orange); }

/* Mots colorés dans les textes : syntaxe [couleur]mot[/couleur] (cf. Block::colorText) */
.text-color-orange     { color: var(--color-orange); }
.text-color-olive      { color: var(--color-olive); }
.text-color-vert-fonce { color: var(--color-vert-fonce); }
.text-color-white      { color: var(--color-white); }
.text-color-anthracite { color: var(--color-anthracite); }

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

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

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-anthracite);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* =============================================================================
   Typography
   ============================================================================= */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: var(--font-size-large); }
h2 { font-size: var(--font-size-xlarge); }
h3 { font-size: clamp(20px, 1.25rem + 0.5vw, 26px); }
h4 { font-size: clamp(18px, 1.125rem + 0.3vw, 22px); }

p + p { margin-top: var(--space-md); }

/* =============================================================================
   Layout
   ============================================================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container--narrow {
    max-width: var(--container-narrow);
}

main {
    min-height: 50vh;
}

/* =============================================================================
   Buttons
   ============================================================================= */
.btn {
    display: inline-block;
    padding: var(--btn-padding);
    border-radius: var(--btn-radius);
    font-size: var(--btn-font-size);
    font-weight: var(--btn-font-weight);
    text-align: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    border: 2px solid transparent;
}

.btn--primary {
    background: var(--color-vert-fonce);
    color: var(--color-white);
    border-color: var(--color-vert-fonce);
}
.btn--primary:hover {
    background: #0d2e0f;
    border-color: #0d2e0f;
}

.btn--outline-green {
    background: transparent;
    color: var(--color-vert-fonce);
    border-color: var(--color-vert-fonce);
}
.btn--outline-green:hover {
    background: var(--color-vert-fonce);
    color: var(--color-white);
}

.btn--outline-white {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}
.btn--outline-white:hover {
    background: var(--color-white);
    color: var(--color-vert-fonce);
}

.btn--sm {
    padding: 6px 12px;
    font-size: var(--font-size-small);
}

/* =============================================================================
   Header
   ============================================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg, var(--color-orange));
    color: var(--color-white);
    transition: background-color 0.3s;
}

/* Couleur du header choisie par la page ($layout['header_color']) */
.has-header-vert-fonce { --header-bg: var(--color-vert-fonce); }

/* Barre d'action fixe en bas d'écran, mobile uniquement ($layout['sticky_cta']) */
.sticky-cta { display: none; }
@media (max-width: 900px) {
    .has-sticky-cta { padding-bottom: 76px; }
    .sticky-cta {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 90;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.97);
        border-top: 1px solid #e7e4d8;
        box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
        transition: transform 0.25s ease;
    }
    .sticky-cta.is-hidden { transform: translateY(110%); }
    .sticky-cta__btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 13px 16px;
        font-weight: 700;
    }
}
@media (prefers-reduced-motion: reduce) {
    .sticky-cta { transition: none; }
}

/* Transparent header — le header se superpose au hero */
.has-transparent-header .site-header {
    position: absolute;
    left: 0;
    right: 0;
    background: transparent;
}

.has-transparent-header .site-header.is-scrolled {
    position: fixed;
    background: var(--header-bg, var(--color-orange));
}

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

.header-logo img {
    width: 165px;
    height: auto;
}

/* Logo + pastille « 20 ans » (lien vers /20-ans, FR seulement) */
.header-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.header-anniv {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: 14px;
    color: var(--color-white);
    border-radius: 50%;
}
.header-anniv::before {
    content: '';
    width: 1px;
    height: 34px;
    background: currentColor;
    opacity: .55;
}
.header-anniv svg {
    display: block;
    font-family: inherit;
    transition: transform .25s ease;
}
.header-anniv:hover svg,
.header-anniv:focus-visible svg { transform: rotate(-8deg) scale(1.06); }
@media (prefers-reduced-motion: reduce) {
    .header-anniv svg { transition: none; }
}
/* Étoiles autour de la pastille, une fois par session (main.js → initAnnivSparkle) */
.header-anniv { position: relative; }
.header-anniv.is-sparkling > svg { animation: anniv-pop .7s .5s ease-out; }
.header-anniv__spark {
    position: absolute;
    /* centre de la pastille : trait (1px) + espace (14px) + rayon (20px) */
    left: calc(35px + var(--x));
    top: calc(50% + var(--y));
    width: var(--s);
    height: var(--s);
    margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
    color: var(--color-white);
    pointer-events: none;
    opacity: 0;
    transform: scale(0);
    animation: anniv-spark 1.4s ease-in-out forwards;
}
.header-anniv__spark.is-gold { color: #ffe29a; }
.header-anniv__spark svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, .7));
}
@keyframes anniv-spark {
    0%   { opacity: 0; transform: scale(0) rotate(0); }
    45%  { opacity: 1; transform: scale(1) rotate(90deg); }
    100% { opacity: 0; transform: scale(.2) rotate(180deg); }
}
@keyframes anniv-pop {
    0%, 100% { transform: scale(1); }
    40%      { transform: scale(1.07); }
}

/* Main navigation */
.main-nav { flex: 1; }

.nav-list {
    display: flex;
    gap: var(--space-xs);
    justify-content: center;
}

.nav-item { position: relative; }

.nav-link {
    display: inline-flex;
    align-items: center;
    color: var(--color-white);
    font-size: 15px;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
}

.nav-item.has-submenu .nav-link::after {
    display: none;
}

/* =============================================================================
   Minimenu — full-width banner dropdowns (Cas d'usage, Nous découvrir, Ressources)
   ============================================================================= */
.nav-item.has-minimenu { position: static; }

.minimenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    color: var(--color-anthracite);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
    z-index: 110;
}
.minimenu.is-open { display: block; }

.minimenu__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    max-width: 1060px;
    margin: 0 auto;
    padding: var(--space-xl);
}

/* Ressources — 2 items → 2 columns centered */
/* Ressources : autant de colonnes que d'entrées (--cols posé par header.php : 3 en FR, 2 en EN) */
#minimenu-ressources .minimenu__grid {
    grid-template-columns: repeat(var(--cols, 2), 1fr);
    max-width: calc(320px * var(--cols, 2));
}

/* Keyboard accessibility */
.nav-item.has-minimenu:focus-within .minimenu { display: block; }

/* =============================================================================
   Megamenu — Expertises dropdown
   ============================================================================= */
.nav-item.has-megamenu {
    position: static;
}

.megamenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    color: var(--color-anthracite);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
    border-top: 1px solid var(--color-orange);
    z-index: 110;
}

.megamenu.is-open {
    display: block;
}

.megamenu__inner {
    display: flex;
    max-width: 1060px;
    margin: 0 auto;
    min-height: 280px;
}

/* Left column — category list */
.megamenu__categories {
    width: 280px;
    flex-shrink: 0;
    border-right: 1px solid #eee;
    padding: var(--space-lg) 0;
}

.megamenu__cat {
    position: relative;
}

.megamenu__cat a {
    display: block;
    padding: 0.875rem var(--space-xl);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-anthracite);
    transition: color 0.15s, background 0.15s;
}

.megamenu__cat:hover a,
.megamenu__cat.is-active a {
    color: var(--color-orange);
}

.megamenu__cat.is-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: var(--color-orange);
    border-radius: 0 3px 3px 0;
}

.megamenu__section-title {
    padding: 0.5rem var(--space-xl) 0.25rem;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
    pointer-events: none;
}
.megamenu__section-title:not(:first-child) {
    margin-top: 0.5rem;
    border-top: 1px solid #eee;
    padding-top: 0.75rem;
}

/* Right column — card panels */
.megamenu__panels {
    flex: 1;
    padding: var(--space-xl);
    position: relative;
}

.megamenu__panel {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    align-content: start;
}

.megamenu__panel.is-active {
    display: grid;
}

/* Card */
.megamenu-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: 10px;
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
}

.megamenu-card:hover {
    background: var(--color-beige);
}

.megamenu-card__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.megamenu-card__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.megamenu-card__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-anthracite);
    line-height: 1.3;
}

.megamenu-card__desc {
    font-size: 12px;
    line-height: 1.5;
    color: #777;
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-white);
    text-decoration: none;
}
.header-phone svg { flex-shrink: 0; }
@media (max-width: 768px) {
    .header-phone__number { display: none; }
}

.lang-switch {
    font-size: 13px;
    font-weight: 700;
    opacity: 0.8;
    padding: 4px 8px;
}
.lang-switch:hover { opacity: 1; }

.header-cta {
    font-size: 13px;
}

/* Burger menu (mobile) */
.burger-menu {
    display: none;
    width: 28px;
    height: 20px;
    position: relative;
}
.burger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-white);
    position: absolute;
    left: 0;
    transition: transform 0.3s, opacity 0.3s;
}
.burger-menu span:nth-child(1) { top: 0; }
.burger-menu span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.burger-menu span:nth-child(3) { bottom: 0; }

.burger-menu[aria-expanded="true"] span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.burger-menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger-menu[aria-expanded="true"] span:nth-child(3) { top: 50%; bottom: auto; transform: translateY(-50%) rotate(-45deg); }

/* =============================================================================
   Footer
   ============================================================================= */
.footer-newsletter {
    background: var(--color-vert-fonce);
    color: var(--color-white);
    padding: var(--space-2xl) var(--space-lg);
    text-align: center;
}
.footer-newsletter__title {
    font-size: clamp(18px, 1.125rem + 0.5vw, 24px);
    margin-bottom: var(--space-xs);
}
.footer-newsletter__form {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.footer-newsletter__form input[type="email"] {
    flex: 1;
    padding: 0.625rem 1rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--btn-radius);
    background: rgba(255,255,255,0.1);
    color: var(--color-white);
    font-size: 14px;
}
.footer-newsletter__form input::placeholder { color: rgba(255,255,255,0.6); }

.footer-main {
    padding: var(--space-2xl) 0;
}
.footer-main__top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-2xl);
}

.footer-brand img { width: 460px; height: auto; margin-bottom: var(--space-md); }
.footer-social {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}
.footer-social a {
    color: var(--color-anthracite);
    transition: color 0.2s;
}
.footer-social a:hover { color: var(--color-vert-fonce); }
.footer-tagline {
    font-size: var(--font-size-small);
    color: #666;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}
.footer-nav h3 {
    font-size: var(--font-size-small);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: var(--space-sm);
    color: var(--color-vert-fonce);
}
.footer-nav a {
    display: block;
    font-size: var(--font-size-small);
    padding: 0.25rem 0;
    color: #555;
    transition: color 0.2s;
}
.footer-nav a:hover { color: var(--color-vert-fonce); }

.footer-certifs {
    display: flex;
    gap: var(--space-xl);
    justify-content: center;
    flex-wrap: wrap;
    padding: var(--space-xl) 0;
    border-top: 1px solid #eee;
    margin-top: var(--space-xl);
}

/* Footer de landing « liens légaux + certifications » : bandeau de certifications seul */
.footer-certifs-only .footer-certifs {
    border-top: 1px solid #eee;
    padding: var(--space-lg) 0;
}
.footer-legal {
    background: var(--color-vert-fonce);
    color: var(--color-white);
    padding: var(--space-sm) 0;
    font-size: 11px;
}
.footer-legal .container {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}
.footer-legal a, .footer-legal button {
    color: rgba(255,255,255,0.7);
    font-size: 11px;
    transition: color 0.2s;
}
.footer-legal a:hover, .footer-legal button:hover { color: var(--color-white); }

/* =============================================================================
   Blocks — Common
   ============================================================================= */
.block {
    padding: var(--space-3xl) 0;
}

/* =============================================================================
   Breadcrumb
   ============================================================================= */
.breadcrumb {
    padding: var(--space-md) 0;
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
}
.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    list-style: none;
    font-size: var(--font-size-small);
}
.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin-left: 0.25rem;
    color: #999;
}
.breadcrumb a { color: var(--color-vert-fonce); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span[aria-current] { color: #666; }

/* =============================================================================
   Preview banner
   ============================================================================= */
.preview-banner {
    background: #fef3c7;
    color: #92400e;
    text-align: center;
    padding: 0.5rem;
    font-size: 14px;
    font-weight: 600;
}

/* =============================================================================
   Responsive
   ============================================================================= */
@media (max-width: 1024px) {
    .footer-main__top {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .burger-menu { display: block; }
    .header-cta { display: none; }

    /* Mobile nav open — logo + burger au-dessus de l'overlay nav */
    body.nav-open .header-logo,
    body.nav-open .header-anniv,
    body.nav-open .header-actions {
        position: relative;
        z-index: 103;
    }
    body.nav-open .main-nav {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--header-bg, var(--color-orange));
        padding: 70px var(--space-lg) var(--space-lg);
        overflow-y: auto;
        z-index: 101;
    }
    body.nav-open .nav-list {
        flex-direction: column;
        gap: 0;
    }
    body.nav-open .megamenu {
        position: static;
        box-shadow: none;
        background: rgba(255,255,255,0.1);
        border-radius: 0;
    }

    /* Minimenu mobile */
    body.nav-open .minimenu {
        position: static;
        box-shadow: none;
        background: rgba(255,255,255,0.1);
        border-radius: 0;
        padding: var(--space-md);
        width: 100%;
        display: none;
    }
    body.nav-open .has-minimenu > .nav-link[aria-expanded="true"] + .minimenu {
        display: block;
    }
    body.nav-open .minimenu__grid {
        display: flex;
        flex-direction: column;
        gap: var(--space-sm);
    }
    body.nav-open .minimenu .megamenu-card { padding: var(--space-sm) 0; }
    body.nav-open .minimenu .megamenu-card__icon { display: none; }
    body.nav-open .minimenu .megamenu-card__title { color: var(--color-white); }
    body.nav-open .minimenu .megamenu-card__desc { color: rgba(255,255,255,0.7); }
    body.nav-open .minimenu .megamenu-card:hover { background: rgba(255,255,255,0.1); }

    /* Megamenu mobile — vertical layout */
    body.nav-open .megamenu {
        display: none;
    }
    body.nav-open .has-megamenu > .nav-link[aria-expanded="true"] + .megamenu {
        display: block;
    }
    body.nav-open .megamenu__inner {
        flex-direction: column;
        min-height: auto;
    }
    body.nav-open .megamenu__categories {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.15);
        padding: var(--space-sm) 0;
    }
    body.nav-open .megamenu__cat a {
        color: var(--color-white);
        padding: 0.5rem 2rem;
        font-size: 14px;
    }
    body.nav-open .megamenu__cat.is-active a { color: var(--color-white); opacity: 1; }
    body.nav-open .megamenu__cat:not(.is-active) a { opacity: 0.7; }
    body.nav-open .megamenu__cat.is-active::before { background: var(--color-white); }
    body.nav-open .megamenu__section-title {
        color: rgba(255,255,255,0.5);
        padding: 0.25rem 2rem;
        font-size: 10px;
    }
    body.nav-open .megamenu__panels { padding: var(--space-md); }
    body.nav-open .megamenu__panel.is-active { display: flex; flex-direction: column; gap: var(--space-sm); }
    body.nav-open .megamenu-card { padding: var(--space-sm) 0; }
    body.nav-open .megamenu-card__icon { display: none; }
    body.nav-open .megamenu-card__title { color: var(--color-white); }
    body.nav-open .megamenu-card__desc { color: rgba(255,255,255,0.7); }
    body.nav-open .megamenu-card:hover { background: rgba(255,255,255,0.1); }

    .footer-nav {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    .footer-newsletter__form {
        flex-direction: column;
    }
}

/* =============================================================================
   Font face — Manrope
   ============================================================================= */
@font-face {
    font-family: 'Manrope';
    src: url('/assets/fonts/manrope-var.woff2') format('woff2');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

/* === css/blocks/hero-page.css === */
/**
 * Hero Page — Pages internes (services, a propos, juridique)
 *
 * Deux modes :
 * 1. Centré (défaut) — fond beige ou blanc, titre h1 centré, sous-titre.
 * 2. Avec image (.hero-page--with-image) — 2 colonnes : texte à gauche,
 *    image à droite. Reproduit le layout WordPress.
 */

/* =============================================================================
   Layout
   ============================================================================= */
.hero-page {
    padding: var(--space-2xl) 0 var(--space-xl);
}

.hero-page__inner {
    text-align: center;
}

/* =============================================================================
   Breadcrumb override (centered in hero)
   ============================================================================= */
.hero-page .breadcrumb {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: var(--space-md);
}

.hero-page .breadcrumb ol {
    justify-content: center;
}

/* =============================================================================
   Title
   ============================================================================= */
.hero-page__title {
    font-size: var(--font-size-large);
    font-weight: 500;
    color: var(--color-anthracite);
    line-height: 1.15;
    margin-bottom: var(--space-md);
}

.hero-page__title--massive {
    font-size: clamp(42px, 2.625rem + 3vw, 86px);
    font-weight: 500;
    line-height: 1.1;
}

/* =============================================================================
   Subtitle
   ============================================================================= */
.hero-page__subtitle {
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
    color: #555;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

/* =============================================================================
   CTA Buttons
   ============================================================================= */
.hero-page__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

/* Centered variant (no image) — center the buttons */
.hero-page:not(.hero-page--with-image) .hero-page__ctas {
    justify-content: center;
}

/* =============================================================================
   Two-column variant — image on right (matches WordPress layout)
   ============================================================================= */
.hero-page--with-image .hero-page__inner {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.hero-page--with-image .hero-page__subtitle {
    margin: 0;
    max-width: 100%;
}

.hero-page--with-image .breadcrumb ol {
    justify-content: flex-start;
}

.hero-page__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-page__media {
    flex-shrink: 0;
    width: 100%;
}

.hero-page__media img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
}

/* =============================================================================
   Image-left variant — image à gauche, texte à droite
   ============================================================================= */
.hero-page--image-left .hero-page__media {
    order: -1;
}

/* =============================================================================
   Image Mask & Badges (pastilles) — optionnel
   ============================================================================= */

/* Allow badges to overflow the media column */
.hero-page__media--overlay {
    overflow: visible;
}

/* Wrapper — positioning context for badges */
.hero-page__img-wrapper {
    position: relative;
}

/* Mask container */
.hero-page__img-mask {
    display: block;
}

.hero-page__img-mask picture {
    display: block;
}

.hero-page__img-mask img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
}

/* Blob mask shape (400×400 rounded with concave corners) */
.hero-page__img-mask--blob {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='400' height='400' viewBox='0 0 400 400' fill='none' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath d='M361.412 160.016C360.94 160.032 360.467 160.043 359.995 160.043C359.522 160.043 359.05 160.032 358.577 160.016C358.362 160.011 358.147 160 357.933 159.989C336.797 158.919 319.989 141.441 319.989 120.032V40.0108C319.989 17.9134 302.081 0 279.984 0H120.016C97.9192 0 80.0107 17.9134 80.0107 40.0108C80.0107 62.1081 62.1023 80.0215 40.0054 80.0215C17.9084 80.0215 0 97.9349 0 120.032V200C0 222.097 17.9084 240.011 40.0054 240.011C62.1023 240.011 80.0107 257.924 80.0107 280.022V360.043C80.0107 381.452 96.8184 398.93 117.954 400H362.057C383.192 398.93 400 381.452 400 360.043V200C400 178.376 382.854 160.758 361.412 160.016Z' fill='black'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg width='400' height='400' viewBox='0 0 400 400' fill='none' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'%3E%3Cpath d='M361.412 160.016C360.94 160.032 360.467 160.043 359.995 160.043C359.522 160.043 359.05 160.032 358.577 160.016C358.362 160.011 358.147 160 357.933 159.989C336.797 158.919 319.989 141.441 319.989 120.032V40.0108C319.989 17.9134 302.081 0 279.984 0H120.016C97.9192 0 80.0107 17.9134 80.0107 40.0108C80.0107 62.1081 62.1023 80.0215 40.0054 80.0215C17.9084 80.0215 0 97.9349 0 120.032V200C0 222.097 17.9084 240.011 40.0054 240.011C62.1023 240.011 80.0107 257.924 80.0107 280.022V360.043C80.0107 381.452 96.8184 398.93 117.954 400H362.057C383.192 398.93 400 381.452 400 360.043V200C400 178.376 382.854 160.758 361.412 160.016Z' fill='black'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
}

.hero-page__img-mask--blob img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    max-height: 480px;
}

/* Wave mask — landscape shape with circular cutouts */
.hero-page__img-mask--wave {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 638 383' preserveAspectRatio='none'%3E%3Cpath d='M576.453 0.043C575.699 0.069 574.945 0.086 574.191 0.086C573.438 0.086 572.684 0.069 571.93 0.043C571.588 0.034 571.245 0.017 570.903 0H449.863C449.521 0.017 449.178 0.034 448.835 0.043C448.082 0.069 447.328 0.086 446.574 0.086C445.821 0.086 445.067 0.069 444.313 0.043C410.113 1.227 382.766 29.341 382.766 63.848C382.766 98.354 354.202 127.695 318.957 127.695C283.713 127.695 256.382 100.328 255.191 66.113C255.183 66.457 255.166 66.791 255.149 67.134V60.561C253.478 27.573 226.79 1.193 193.687 0.043C192.933 0.069 192.179 0.086 191.426 0.086C190.672 0.086 189.918 0.069 189.165 0.043C154.965 1.227 127.617 29.341 127.617 63.848C127.617 98.354 99.053 127.695 63.809 127.695C28.564 127.695 0 156.281 0 191.543V319.238C0 353.402 26.808 381.292 60.52 383H449.863C483.575 381.292 510.383 353.402 510.383 319.238C510.383 285.075 538.947 255.391 574.191 255.391C609.436 255.391 638 226.771 638 191.457V63.848C638 29.341 610.652 1.227 576.453 0.043Z' fill='%23000'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 638 383' preserveAspectRatio='none'%3E%3Cpath d='M576.453 0.043C575.699 0.069 574.945 0.086 574.191 0.086C573.438 0.086 572.684 0.069 571.93 0.043C571.588 0.034 571.245 0.017 570.903 0H449.863C449.521 0.017 449.178 0.034 448.835 0.043C448.082 0.069 447.328 0.086 446.574 0.086C445.821 0.086 445.067 0.069 444.313 0.043C410.113 1.227 382.766 29.341 382.766 63.848C382.766 98.354 354.202 127.695 318.957 127.695C283.713 127.695 256.382 100.328 255.191 66.113C255.183 66.457 255.166 66.791 255.149 67.134V60.561C253.478 27.573 226.79 1.193 193.687 0.043C192.933 0.069 192.179 0.086 191.426 0.086C190.672 0.086 189.918 0.069 189.165 0.043C154.965 1.227 127.617 29.341 127.617 63.848C127.617 98.354 99.053 127.695 63.809 127.695C28.564 127.695 0 156.281 0 191.543V319.238C0 353.402 26.808 381.292 60.52 383H449.863C483.575 381.292 510.383 353.402 510.383 319.238C510.383 285.075 538.947 255.391 574.191 255.391C609.436 255.391 638 226.771 638 191.457V63.848C638 29.341 610.652 1.227 576.453 0.043Z' fill='%23000'/%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.hero-page__img-mask--wave img {
    aspect-ratio: 638 / 383;
    object-fit: cover;
    max-height: 480px;
}

/* Badges (pastilles) — floating labels on the image */
.hero-badge {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: absolute;
    z-index: 10;
    background: #fff;
    border-radius: 20px;
    padding: 5px 15px 5px 5px;
    box-sizing: border-box;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
    width: 220px;
    gap: 5px;
}

.hero-badge--left {
    top: 3%;
    left: 5%;
}

.hero-badge--right {
    bottom: 21%;
    right: 2%;
}

.hero-badge__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--color-orange);
    padding: 10px;
    box-sizing: border-box;
    height: 46px;
    width: 46px;
    transform: scale(0.7);
    color: var(--icon-color, white);
}

.hero-badge__icon svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.hero-badge__text {
    font-weight: 700;
    line-height: 20px;
    font-size: 12px;
    color: var(--color-anthracite);
}

@media (min-width: 1024px) {
    .hero-badge {
        width: 260px;
        gap: 10px;
        padding: 5px 20px 5px 5px;
    }

    .hero-badge__icon {
        transform: scale(1);
    }

    .hero-badge__text {
        font-size: 14px;
    }
}

/* =============================================================================
   Decorative circle background (motif WordPress)
   ============================================================================= */
.hero-page.has-circle-bg {
    position: relative;
    overflow: hidden;
}

.hero-page.has-circle-bg .hero-page__inner {
    position: relative;
    z-index: 1;
}

.hero-page .circle-bg {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 0;
    width: min(50vw, 750px);
    pointer-events: none;
    color: #fcfbf2;
}

.hero-page .circle-bg svg {
    width: 100%;
    height: auto;
    display: block;
}

/* =============================================================================
   Responsive
   ============================================================================= */
@media (max-width: 768px) {
    .hero-page {
        padding: var(--space-xl) 0 var(--space-lg);
    }

    .hero-page__subtitle {
        max-width: 100%;
    }
}

@media (min-width: 768px) {
    .hero-page--with-image .hero-page__inner {
        flex-direction: row;
        align-items: center;
        gap: var(--space-2xl);
    }

    .hero-page__text {
        width: 55%;
        flex: none;
    }

    .hero-page__media {
        width: 45%;
    }
}

@media (min-width: 1024px) {
    .hero-page {
        padding: var(--space-3xl) 0 var(--space-2xl);
    }

    .hero-page--with-image .hero-page__inner {
        gap: var(--space-3xl);
    }

    .hero-page__media img {
        border-radius: 20px;
    }
}

/* === css/custom/simulateur-drive-to-store.css === */
/**
 * Bloc personnalisé « Simulateur Drive-to-Store »
 *
 * Carte cliquable (collante au bureau) à gauche, choix et résultat à droite ; une colonne sous 980 px,
 * avec une barre de résultat fixée en bas de l'écran tant que le résultat n'est pas visible.
 * Toutes les classes sont préfixées dts : aucun effet sur le reste du site.
 */

.dts {
    --dts-orange: var(--color-orange, #e55945);
    --dts-orange-soft: #fbe3df;
    --dts-vert: var(--color-vert-fonce, #124014);
    --dts-vert-2: #1d5a20;
    --dts-olive: var(--color-olive, #babf73);
    --dts-olive-soft: #eef0d8;
    --dts-beige: var(--color-beige, #fcfaf2);
    --dts-anthra: var(--color-anthracite, #212621);
    --dts-gris: #6b6f69;
    --dts-trait: #e6e3d6;
    --dts-radius: 18px;
    --dts-ease: cubic-bezier(.2, .7, .2, 1);
    background: var(--dts-beige);
    color: var(--dts-anthra);
    padding: 0 0 72px;
}
/* Police du site sur les contrôles, sans imposer de taille (:where = spécificité nulle) */
:where(.dts) :where(button, input) { font-family: inherit; color: inherit; }
.dts h2, .dts h3 { color: inherit; }

.dts__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.dts__card {
    background: #fff;
    border-radius: var(--dts-radius);
    box-shadow: 0 10px 40px rgba(18, 64, 20, .08);
}

/* --- Carte --- */
.dts__map { position: sticky; top: 96px; padding: 22px 22px 18px; }
.dts__map-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.dts__map-head h2 { margin: 0; font-size: 18px; }
.dts__map-head p { margin: 0; font-size: 13px; color: var(--dts-gris); }
.dts__map-box { position: relative; }
.dts__map svg { display: block; width: 100%; height: auto; overflow: visible; }
.dts__dep {
    fill: #f3f1e7;
    stroke: #fff;
    stroke-width: .8;
    cursor: pointer;
    transition: fill .2s;
}
.dts__dep:hover { fill: var(--dts-olive-soft); }
.dts__dep.has-city { fill: #f6e4df; }
.dts__dep.is-on { fill: var(--dts-orange); }
.dts__dep.is-on:hover { fill: #d24a37; }
.dts__map.is-full .dts__dep:not(.is-on) { cursor: not-allowed; }
.dts__map.is-full .dts__dep:not(.is-on):hover { fill: #f3f1e7; }
.dts__city { cursor: pointer; }
.dts__city circle { fill: var(--dts-vert); stroke: #fff; stroke-width: 1.6; transition: fill .2s; }
.dts__city .dts__halo { fill: var(--dts-orange); opacity: 0; stroke: none; }
.dts__city:hover circle:not(.dts__halo) { fill: var(--dts-vert-2); }
.dts__city.is-on circle:not(.dts__halo) { fill: var(--dts-orange); }
.dts__city.is-on .dts__halo {
    opacity: .25;
    animation: dts-halo 2.4s var(--dts-ease) infinite;
    transform-box: fill-box;
    transform-origin: center;
}
@keyframes dts-halo { 0% { transform: scale(.6); opacity: .35; } 100% { transform: scale(1.8); opacity: 0; } }
.dts__city text {
    font-size: 10.5px; font-weight: 700; fill: var(--dts-vert);
    paint-order: stroke; stroke: rgba(255, 255, 255, .9); stroke-width: 3px; stroke-linejoin: round;
    pointer-events: none;
}
.dts__idf {
    position: absolute; left: 0; bottom: 0; width: 22%;
    background: #fff; border: 1px solid var(--dts-trait); border-radius: 12px; padding: 4px 6px 2px;
}
.dts__idf span { display: block; font-size: 10.5px; font-weight: 700; color: var(--dts-gris); text-align: center; }
.dts__idf .dts__dep { stroke-width: .35; }
.dts__tip {
    position: absolute; z-index: 5; pointer-events: none;
    padding: 6px 10px; border-radius: 8px; background: var(--dts-anthra); color: #fff;
    font-size: 13px; font-weight: 600; white-space: nowrap;
    transform: translate(-50%, calc(-100% - 12px)); opacity: 0; transition: opacity .15s;
}
.dts__tip small { display: block; font-weight: 500; opacity: .75; font-size: 12px; }
.dts__tip.is-on { opacity: 1; }
.dts__legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 13px; color: var(--dts-gris); }
.dts__legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.dts__l-dep { background: var(--dts-orange); }
.dts__l-city { background: var(--dts-vert); border-radius: 50% !important; }

/* --- Panneau de choix --- */
.dts__panel { padding: 28px; }
.dts__field + .dts__field { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--dts-trait); }
.dts__title { margin: 0 0 12px; font-size: 16px; font-weight: 800; }
.dts__num { color: var(--dts-orange); margin-right: 6px; }
.dts__sub { margin: 16px 0 8px; font-size: 13px; font-weight: 700; color: var(--dts-gris); text-transform: uppercase; letter-spacing: .06em; }
.dts__title + .dts__sub { margin-top: 0; }
.dts__count { margin-left: 4px; }
.dts__count.is-max { color: var(--dts-orange); }

.dts__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dts__chip {
    border: 1.5px solid var(--dts-trait); background: #fff; border-radius: 999px;
    padding: 6px 13px; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: border-color .2s, background .2s, color .2s;
}
.dts__chip:hover { border-color: var(--dts-olive); }
.dts__chip[aria-pressed="true"] { background: var(--dts-vert); border-color: var(--dts-vert); color: #fff; }
.dts__chip:focus-visible, .dts__seg button:focus-visible,
.dts__btn:focus-visible, .dts__tag button:focus-visible {
    outline: 3px solid var(--dts-olive); outline-offset: 2px;
}

/* --- Recherche de département + liste déroulante --- */
.dts__pick { position: relative; }
.dts__search {
    width: 100%;
    border: 1.5px solid var(--dts-trait); border-radius: 12px; background: #fff;
    padding: 11px 40px 11px 42px; font-size: 15px; color: var(--dts-anthra);
    transition: border-color .2s, box-shadow .2s;
}
.dts__search::placeholder { color: var(--dts-gris); opacity: 1; }
.dts__search:hover { border-color: var(--dts-olive); }
.dts__search:focus { outline: none; border-color: var(--dts-vert); box-shadow: 0 0 0 3px rgba(186, 191, 115, .45); }
.dts__pick-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--dts-gris); pointer-events: none; }
.dts__pick::after {
    content: ''; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px;
    border-right: 2px solid var(--dts-vert); border-bottom: 2px solid var(--dts-vert);
    transform: translateY(-70%) rotate(45deg); pointer-events: none; transition: transform .2s;
}
.dts__pick.is-open::after { transform: translateY(-20%) rotate(-135deg); }
.dts__list {
    position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px);
    margin: 0; padding: 6px; list-style: none;
    max-height: 300px; overflow-y: auto; overscroll-behavior: contain;
    background: #fff; border: 1px solid var(--dts-trait); border-radius: 14px;
    box-shadow: 0 16px 40px rgba(18, 64, 20, .16);
    scrollbar-width: thin; scrollbar-color: var(--dts-olive) transparent;
    animation: dts-drop .18s var(--dts-ease);
}
.dts__list[hidden] { display: none; }
@keyframes dts-drop { from { opacity: 0; transform: translateY(-4px); } }
.dts__group {
    position: sticky; top: -6px; z-index: 1;
    margin: 0 -6px; padding: 10px 16px 6px; background: #fff;
    font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dts-gris);
}
.dts__opt {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 10px; border-radius: 10px;
    font-size: 14.5px; cursor: pointer; transition: background .12s;
}
.dts__opt-code {
    min-width: 36px; padding: 2px 6px; border-radius: 6px; text-align: center;
    background: #f3f1e7; color: var(--dts-vert); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.dts__opt-name { flex: 1; }
.dts__opt.is-active { background: var(--dts-olive-soft); }
.dts__opt[aria-selected="true"] { font-weight: 700; color: #9c2f20; }
.dts__opt[aria-selected="true"] .dts__opt-code { background: var(--dts-orange); color: #fff; }
.dts__opt-on { font-size: 12px; font-weight: 700; color: var(--dts-orange); }
.dts__opt-on::before { content: '✓ '; }
.dts__opt[aria-selected="true"].is-active .dts__opt-on::after { content: ' · retirer'; font-weight: 600; color: var(--dts-gris); }
.dts__opt[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.dts__empty { padding: 12px 10px; font-size: 14px; color: var(--dts-gris); }
.dts__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dts__tags:empty { display: none; }
.dts__tag {
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--dts-orange-soft); color: #9c2f20; border-radius: 999px;
    padding: 4px 4px 4px 12px; font-size: 14px; font-weight: 700;
    animation: dts-pop .25s var(--dts-ease);
}
.dts__tag button {
    display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 50%;
    background: transparent; color: inherit; cursor: pointer; font-size: 16px; line-height: 1;
}
.dts__tag button:hover { background: rgba(229, 89, 69, .18); }
@keyframes dts-pop { from { transform: scale(.85); opacity: 0; } }
.dts__note { margin: 10px 0 0; font-size: 13px; color: var(--dts-gris); }
.dts__note:empty { display: none; }
.dts__note--warn { color: var(--dts-orange); font-weight: 600; }
.dts__shake { animation: dts-shake .4s; }
@keyframes dts-shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }

.dts__seg { display: flex; padding: 4px; background: #f3f1e7; border-radius: 14px; gap: 4px; }
.dts__seg button {
    flex: 1; border: 0; background: transparent; border-radius: 10px;
    padding: 10px 8px; font-size: 15px; font-weight: 700; cursor: pointer; color: var(--dts-gris);
    transition: background .2s, color .2s, box-shadow .2s;
}
.dts__seg button[aria-pressed="true"] { background: #fff; color: var(--dts-vert); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.dts__seg button small { display: block; font-size: 11.5px; font-weight: 600; opacity: .75; }

/* --- Résultat --- */
.dts__result {
    margin-top: 24px; padding: 26px 28px 28px;
    background: var(--dts-vert); color: #fff; border-radius: var(--dts-radius);
    scroll-margin-top: 100px;
}
.dts__result-label { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--dts-olive); }
.dts__value {
    margin: 8px 0 4px; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; line-height: 1.1; letter-spacing: -.01em;
    transition: opacity .2s;
}
.dts__value--empty { font-size: 20px; font-weight: 700; color: rgba(255, 255, 255, .75); }
.dts__result.is-loading .dts__value { opacity: .55; }
.dts__bump { animation: dts-bump .45s var(--dts-ease); }
@keyframes dts-bump { 0% { transform: translateY(6px); opacity: .2; } }
.dts__ctx { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .75); min-height: 1.5em; }
.dts__gauge { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 20px 0 8px; }
.dts__gauge span { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .14); transition: background .35s; }
.dts__gauge span.is-fill { background: rgba(186, 191, 115, .55); }
.dts__gauge span.is-on { background: var(--dts-orange); }
.dts__gauge-labels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; font-size: 11.5px; font-weight: 600; color: rgba(255, 255, 255, .6); }
.dts__gauge-labels span.is-on { color: #fff; }
.dts__advice { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 14.5px; color: rgba(255, 255, 255, .88); }

.dts__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 20px; }
.dts__btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--dts-orange); color: #fff; text-decoration: none;
    border-radius: 14px; padding: 13px 20px; font-weight: 700; font-size: 16px;
    transition: transform .2s, background .2s;
}
.dts__btn:hover { background: #d24a37; color: #fff; transform: translateY(-1px); }
.dts__btn svg { transition: transform .2s; }
.dts__btn:hover svg { transform: translateX(3px); }
.dts__cta-alt { font-size: 14px; color: rgba(255, 255, 255, .75); }
.dts__cta-alt a { color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.dts__disclaimer { margin: 14px 2px 0; font-size: 12.5px; color: var(--dts-gris); }
.dts__more { margin: 24px 0 0; font-size: 15px; }
.dts__more a { color: var(--dts-vert); font-weight: 700; text-decoration-color: var(--dts-orange); text-underline-offset: 3px; }

/* --- Comment lire l'estimation --- */
.dts__how { margin-top: 64px; }
.dts__how h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 0 0 24px; letter-spacing: -.01em; }
.dts__how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dts__how-item { padding: 24px; }
.dts__how-item h3 { margin: 12px 0 8px; font-size: 17px; }
.dts__how-item p { margin: 0; font-size: 15px; color: var(--dts-gris); }
.dts__how-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--dts-olive-soft); color: var(--dts-vert); }

/* --- Barre de résultat fixe (mobile/tablette) --- */
.dts__bar {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
    display: none; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 10px 10px 16px; border-radius: 16px; background: var(--dts-vert); color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    transform: translateY(140%); transition: transform .35s var(--dts-ease);
}
.dts__bar span { font-size: 12px; color: var(--dts-olive); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.dts__bar b { display: block; font-size: 17px; color: #fff; text-transform: none; letter-spacing: 0; }
.dts__bar a { background: var(--dts-orange); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; padding: 10px 14px; border-radius: 12px; white-space: nowrap; }
.dts__bar.is-on { transform: none; }

@media (max-width: 980px) {
    .dts__grid { grid-template-columns: 1fr; }
    .dts__map { position: static; }
    .dts__how-grid { grid-template-columns: 1fr; }
    .dts__bar { display: flex; }
}
@media (max-width: 560px) {
    .dts__map, .dts__panel { padding: 18px; }
    .dts__result { padding: 22px 20px; }
    .dts__gauge-labels { font-size: 10px; }
    .dts__city text { display: none; }
    .dts__idf { width: 25%; }
    .dts__search { font-size: 16px; } /* sous 16 px, iOS zoome sur le champ au toucher */
    .dts__list { max-height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
    .dts *, .dts *::before, .dts *::after { animation: none !important; transition: none !important; }
}

/* === css/blocks/cta-prefooter.css === */
/**
 * CTA Pre-footer — Appel a l'action avant le pied de page
 *
 * Deux variantes :
 * 1. Défaut — Fond beige, texte anthracite, bouton vert (style WordPress).
 * 2. .cta-prefooter--orange — Fond orange, texte blanc, bouton plein vert.
 *
 * 2 colonnes : image gauche (coins arrondis), texte droite avec
 * h2 + paragraphe + bouton.
 */

/* =============================================================================
   Section — Default (beige, matches WordPress)
   ============================================================================= */
.cta-prefooter {
    color: var(--color-anthracite);
    padding: var(--space-3xl) 0;
    overflow: hidden;
}

/* =============================================================================
   Inner layout
   ============================================================================= */
.cta-prefooter__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2xl);
}

/* =============================================================================
   Image column
   ============================================================================= */
.cta-prefooter__media {
    flex-shrink: 0;
    width: 100%;
}

.cta-prefooter__media img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
}

/* =============================================================================
   Text column
   ============================================================================= */
.cta-prefooter__content {
    width: 100%;
}

.cta-prefooter__title {
    font-size: var(--font-size-xlarge);
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: var(--space-lg);
    color: var(--color-anthracite);
}

.cta-prefooter__desc {
    font-size: var(--font-size-base);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
    color: #555;
}

/* =============================================================================
   Orange variant (legacy / optional)
   ============================================================================= */
.cta-prefooter--orange {
    background-color: var(--color-orange);
    color: var(--color-white);
}

.cta-prefooter--orange .cta-prefooter__title {
    color: var(--color-white);
}

.cta-prefooter--orange .cta-prefooter__desc {
    color: var(--color-white);
    opacity: 0.92;
}

/* =============================================================================
   Fond choisi (background_color) en variante beige
   ============================================================================= */
/* Fond sombre (vert-fonce, anthracite) : textes clairs */
.cta-prefooter--dark .cta-prefooter__title {
    color: var(--color-white);
}
.cta-prefooter--dark .cta-prefooter__desc {
    color: rgba(255, 255, 255, 0.85);
}
/* Le bouton principal (vert) disparaîtrait sur fond vert : passage en orange, comme le bloc vidéo */
.cta-prefooter--dark .btn--primary {
    background: var(--color-orange);
    border-color: var(--color-orange);
    color: var(--color-white);
}
.cta-prefooter--dark .btn--primary:hover {
    background: #cf4a37;
    border-color: #cf4a37;
}

/* Fond orange : textes anthracite (le gris du texte y serait illisible), bouton vert conservé */
.cta-prefooter--accent .cta-prefooter__title,
.cta-prefooter--accent .cta-prefooter__desc {
    color: var(--color-anthracite);
}

/* =============================================================================
   Responsive
   ============================================================================= */
@media (max-width: 768px) {
    .cta-prefooter {
        padding: var(--space-2xl) 0;
    }

    .cta-prefooter__title {
        font-size: clamp(1.5rem, 1.25rem + 1.5vw, 2.25rem);
    }
}

@media (min-width: 768px) {
    .cta-prefooter__inner {
        flex-direction: row;
        align-items: center;
    }

    .cta-prefooter__media {
        width: 50%;
    }

    .cta-prefooter__content {
        width: 50%;
    }
}

@media (min-width: 1024px) {
    .cta-prefooter__media img {
        border-radius: 20px;
        max-height: 400px;
    }

    .cta-prefooter__inner {
        gap: var(--space-3xl);
    }
}

