/* Directory Factory — styles communs aux blocs Gutenberg */

/* ═══════════════════════════════════════════════════════════
   NEUTRALISATION CONTAINERS ASTRA (pages avec hero DF)
   Astra wrap le contenu dans : #content > .ast-container >
   #primary > #main > article > .entry-content. Tous ces wrappers
   ont des max-width / padding / margin asymétriques qui décalent
   nos blocs. On les force à 100% width, sans padding.
   ═══════════════════════════════════════════════════════════ */
body.df-has-hero #content,
body.df-has-hero .site-content,
body.df-has-hero #content > .ast-container,
body.df-has-hero #primary,
body.df-has-hero .content-area,
body.df-has-hero #main,
body.df-has-hero .site-main,
body.df-has-hero .ast-article-single,
body.df-has-hero .entry-content,
body.df-has-hero [data-ast-blocks-layout] {
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    float: none !important;
    /* Astra met `.site-content .ast-container` en display:flex. Sur les
       templates DF (hero + main, 2 enfants) ça les colle côte à côte =
       2 colonnes. On force le bloc pour qu'ils s'empilent normalement.
       NB : sélecteur scopé `#content > .ast-container` pour NE PAS
       toucher le `.ast-container` interne du header. */
    display: block !important;
}
/* Sidebar Astra (#secondary) : cachée sur nos pages */
body.df-has-hero #secondary,
body.df-has-hero .ast-sidebar-layout-wrap {
    display: none !important;
}
/* Titre de page WP parasite (« Accueil DF ») : caché */
body.df-has-hero .entry-header,
body.df-has-hero .entry-title {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════
   HERO COLLÉ EN HAUT — header transparent NATIF Astra
   Le header transparent est géré par Astra : option per-page
   `theme-transparent-header-meta = enabled` (posée par le
   builder, voir ph_deploy.py). Astra ajoute alors
   `ast-theme-transparent-header` sur le <body> et positionne le
   #masthead en absolute lui-même — on ne le force PLUS ici.
   Il reste à : (1) coller le hero tout en haut, (2) compenser
   la hauteur du header par un padding, (3) garder le menu
   lisible sur le hero sombre.
   ═══════════════════════════════════════════════════════════ */
/* Pas de marge parasite entre le haut de page et le hero */
body.df-has-hero #page,
body.df-has-hero #content,
body.df-has-hero .site-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
/* Astra met le #masthead en position:absolute mais SANS z-index ni
   top : sans ça le hero passe par-dessus et le header ne colle pas
   au bord haut. On force z-index + top:0 (on garde le position:absolute
   d'Astra). */
body.df-has-hero #masthead {
    top: 0 !important;
    z-index: 999 !important;
}
/* Logo importé (PNG DÉTOURÉ obligatoire — un PNG avec marge transparente
   paraît minuscule) : cap 310x70px, hauteur auto. Fond transparent.
   S'applique partout (blocks.css chargé sur tout le front). */
#masthead .custom-logo,
#masthead .transparent-custom-logo img,
#masthead .site-logo-img img,
#masthead .custom-logo {
    width: auto !important;
    max-width: 310px !important;
    height: auto !important;
    max-height: 70px !important;   /* logo remplit quasi toute la hauteur du header */
}
/* Header compact : padding vertical réduit + hauteur de ligne mini neutralisée. */
body.df-has-hero #masthead .main-header-bar,
body.df-has-hero #masthead .ast-primary-header-bar,
body.df-has-hero #masthead .site-primary-header-wrap,
body.df-has-hero #masthead .site-header-primary-section-left,
body.df-has-hero #masthead .ast-builder-layout-element {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    min-height: 0 !important;
}
/* Le conteneur logo ne doit pas ajouter de hauteur (logo = quasi toute la hauteur). */
body.df-has-hero #masthead .site-branding,
body.df-has-hero #masthead .ast-site-identity { padding: 0 !important; }
body.df-has-hero #masthead .custom-logo-link { display: inline-flex !important; align-items: center; }
/* Pas de titre de site en texte dans le header : le logo suffit.
   (Filet de sécurité — l'option Astra `display-site-title` est aussi
   désactivée par ph_deploy.py.) */
#masthead .site-title {
    display: none !important;
}
/* === Header NON transparent (fond blanc) sur les pages annuaire ===
   La transparence est désactivée côté plugin (astra_is_transparent_header=false) :
   Astra rend son header opaque normal (logo + menu foncés). On garantit juste un
   fond blanc + une ombre légère ; le hero démarre normalement SOUS le header
   (plus de padding-top de compensation, plus de scrim, plus de menu blanc). */
body.df-has-hero #masthead {
    background: #fff !important;
    box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.05);
}
/* Menu de 1er niveau foncé sur le header blanc (filet de sécurité si la couleur
   de menu Astra avait été mise en blanc pour l'ancien header transparent). */
body.df-has-hero #masthead .main-header-menu > .menu-item > .menu-link,
body.df-has-hero #masthead .ast-nav-menu > .menu-item > .menu-link,
body.df-has-hero #masthead .ast-nav-menu > li > a {
    color: #1a1a1a !important;
    text-shadow: none !important;
}
body.df-has-hero #masthead .main-header-menu > .menu-item > .menu-link:hover,
body.df-has-hero #masthead .ast-nav-menu > .menu-item > .menu-link:hover,
body.df-has-hero #masthead .ast-nav-menu > li > a:hover {
    color: var(--df-accent, #2c8a4a) !important;
}
/* Sous-menu déroulant (ex : Prestations) : fond blanc, texte foncé, ombre. */
body.df-has-hero #masthead .sub-menu {
    background-color: #fff !important;
    box-shadow: 0 12px 32px rgba(0,0,0,.16) !important;
    border: 0 !important;
}
body.df-has-hero #masthead .sub-menu .menu-link { color: #1a1a1a !important; }
body.df-has-hero #masthead .sub-menu .menu-link:hover {
    color: var(--df-accent, #2c8a4a) !important;
    background-color: #f3f5f7 !important;
}


/* Variables dispo globalement : les pages annuaire (templates) réutilisent les
   classes de cartes (.df-card-pro, .df-pro-check…) HORS d'un wrapper .df-block.
   Sans ce :root, var(--df-block-*) y est indéfini → check/carte/contour invisibles. */
:root {
    --df-block-accent: #2c8a4a;
    --df-block-accent-dark: #1f6535;
    --df-block-text: #1a1a1a;
    --df-block-muted: #6b7280;
    --df-block-border: #e5e7eb;
    --df-block-bg: #f9fafb;
}

.df-block {
    --df-block-accent: #2c8a4a;
    --df-block-accent-dark: #1f6535;
    --df-block-text: #1a1a1a;
    --df-block-muted: #6b7280;
    --df-block-border: #e5e7eb;
    --df-block-bg: #f9fafb;
    --df-block-max: 1200px;
    margin-block: 3.5rem;
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 2.5rem);
    max-width: var(--df-block-max);
    color: var(--df-block-text);
    font-family: inherit;
    box-sizing: border-box;
}
/* Hero pleine largeur : on annule le container des autres blocs */
.df-block.df-block-hero-metier {
    max-width: none;
    margin-inline: 0;
    padding-inline: 0;
    width: 100%;
}
/* Alignement Gutenberg "wide" : un peu plus large */
.df-block.alignwide {
    --df-block-max: 1320px;
}
/* Alignement Gutenberg "full" : 100% largeur, mais on garde un padding interne */
.df-block.alignfull {
    --df-block-max: none;
    max-width: none;
}

.df-block-title {
    font-size: clamp( 1.6rem, 2.5vw, 2rem );
    font-weight: 700;
    margin: 0 0 .3rem;
    line-height: 1.2;
}
.df-block-subtitle {
    color: var(--df-block-muted);
    font-size: 1.05rem;
    margin: 0 0 1.8rem;
    max-width: 720px;
}

/* ───────── Grille générique ───────── */
.df-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.2rem;
}
.df-grid-prestations {
    grid-template-columns: repeat( auto-fill, minmax(260px, 1fr) );
}

/* ───────── Card prestation ───────── */
.df-card-presta {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--df-block-border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    height: 100%;
}
.df-card-presta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0,0,0,.08);
    border-color: var(--df-block-accent);
}
.df-card--inactive {
    opacity: .65;
    cursor: default;
}
.df-card-img {
    display: block;
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    background-color: var(--df-block-bg);
}
.df-card-img--placeholder {
    background: linear-gradient(135deg, var(--df-block-bg), #e5e7eb);
}
.df-card-body {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 1rem 1.1rem 1.1rem;
    flex: 1;
}
.df-card-title {
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--df-block-text);
}
.df-card-tagline {
    color: var(--df-block-muted);
    font-size: .92rem;
    line-height: 1.4;
}
.df-card-cta {
    margin-top: auto;
    padding-top: .6rem;
    color: var(--df-block-accent);
    font-weight: 600;
    font-size: .92rem;
}
.df-card-presta:hover .df-card-cta {
    color: var(--df-block-accent-dark);
}

/* ═════════ ARTICLES DE LA PRESTATION ═════════ */
/* Réutilise la card prestation (.df-card-presta) ; ajoute juste la grille
   et la date. */
.df-grid-articles {
    grid-template-columns: repeat( auto-fill, minmax(280px, 1fr) );
}
.df-card-date {
    color: var(--df-block-muted);
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ═════════ HERO MÉTIER ═════════ */
.df-block-hero-metier {
    margin: 0 !important;
    padding: 5rem 1.5rem;
    min-height: 480px;
    background-color: var(--df-block-accent-dark);
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.df-block-hero-metier.df-hero--no-image {
    background: linear-gradient(135deg, var(--df-block-accent) 0%, var(--df-block-accent-dark) 100%);
}
.df-block-hero-metier .df-hero-inner {
    max-width: 880px;
    width: 100%;
}
.df-hero-title {
    font-size: clamp( 2rem, 5vw, 3.4rem );
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 .8rem;
    color: #fff;
    text-shadow: 0 2px 14px rgba(0,0,0,.5);
}
.df-hero-highlight {
    display: block;
    color: #b9f0c8;
    font-size: .75em;
    font-weight: 600;
    margin-top: .2em;
}
.df-block-hero-metier .df-hero-lead {
    font-size: clamp( 1rem, 2vw, 1.25rem );
    color: #f4f4f4;
    max-width: 680px;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
    text-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.df-hero-stats {
    display: flex;
    justify-content: center;
    gap: clamp(1.2rem, 4vw, 3rem);
    flex-wrap: wrap;
    margin-top: 1.5rem;
}
.df-stat {
    display: flex;
    flex-direction: column;
    color: #fff;
}
.df-stat-num {
    font-size: clamp( 1.5rem, 3vw, 2.4rem );
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.df-stat-label {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255,255,255,.9);
    margin-top: .35rem;
}

/* ═════════ TOP PROS ═════════ */
.df-grid-pros {
    grid-template-columns: repeat( auto-fill, minmax(310px, 1fr) );
}
.df-card-pro {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--df-block-border);
    border-radius: 12px;
    padding: 1.1rem 1.3rem;
    text-decoration: none;
    color: inherit;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.df-card-pro:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0,0,0,.08);
    border-color: var(--df-block-accent);
}
/* Top sélection : vraies cartes pros nettement mises en avant (fond vert clair,
   halo, contour vert, nom en gras + badge ✓). Bien plus visibles que les « autres ». */
.df-card-pro--top {
    position: relative;
    border-color: var(--df-block-accent) !important;
    background: #fff;
    box-shadow: 0 0 0 1.5px rgba(44,138,74,.35), 0 6px 18px rgba(44,138,74,.12);
}
.df-card-pro--top .df-pro-name { font-weight: 700; }
.df-card-pro--top .df-pro-body { padding-right: 1.5rem; }
.df-pro-check {
    position: absolute;
    top: .6rem;
    right: .6rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--df-block-accent-dark);
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(31,101,53,.45);
}
.df-pro-rank {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--df-block-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
}
.df-pro-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}
.df-pro-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--df-block-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.df-pro-city {
    color: var(--df-block-muted);
    font-size: .88rem;
}
.df-pro-rating {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin-top: .2rem;
    color: #d97706;
    font-weight: 600;
    font-size: .92rem;
}
.df-pro-rating small {
    color: var(--df-block-muted);
    font-weight: 400;
    font-size: .82rem;
}
.df-pro-stars { font-size: 1rem; }
.df-pro-cta {
    color: var(--df-block-accent);
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
}
/* Carte « Votre société ici » (Top sélection) : fond vert dégradé, texte blanc. */
.df-card-pro--placeholder {
    border: 1px solid transparent !important;
    background: linear-gradient(135deg, var(--df-block-accent) 0%, var(--df-block-accent-dark) 100%);
    color: #fff;
    text-decoration: none;
}
.df-card-pro--placeholder:hover {
    background: linear-gradient(135deg, var(--df-block-accent-dark) 0%, var(--df-block-accent-dark) 100%);
    border-color: transparent !important;
}
.df-card-pro--placeholder .df-pro-name,
.df-card-pro--placeholder .df-pro-city,
.df-card-pro--placeholder .df-pro-cta-text {
    color: #fff !important;
}
.df-card-pro--placeholder .df-pro-city { opacity: .9; }
.df-pro-rank--cta {
    background: rgba(255,255,255,.18) !important;
    color: #fff !important;
    border: 2px dashed rgba(255,255,255,.75);
    font-size: 1.4rem !important;
}
.df-pro-cta-text {
    color: var(--df-block-accent);
    font-weight: 700;
    font-size: .9rem;
    margin-top: .25rem;
}

/* ═════════ PAGE HERO (actualités, mentions, contact…) ═════════ */
.df-page-hero {
    margin: 0 0 2.5rem;
    padding: clamp(7rem, 12vh, 9rem) 1.5rem clamp(2.5rem, 5vh, 3.5rem);
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
}
.df-page-hero-inner { max-width: 900px; margin: 0 auto; }
.df-page-hero h1 {
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin: 0 0 .5rem;
    line-height: 1.15;
}
.df-page-hero-lead {
    color: rgba(255,255,255,.92);
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin: 0;
}

/* Cartes catégories (page actualités) */
.df-grid-cats {
    list-style: none; margin: 0 0 2.5rem; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .8rem;
}
.df-cat-card {
    display: flex; flex-direction: column; gap: .2rem;
    padding: 1rem 1.1rem; background: #fff;
    border: 1px solid var(--df-block-border); border-left: 4px solid var(--df-block-accent);
    border-radius: 10px; text-decoration: none; color: var(--df-block-text);
    transition: transform .15s, box-shadow .15s;
}
.df-cat-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.07); }
/* Pas de soulignement des liens dans les cartes catégories & articles */
.df-cat-card, .df-cat-card:hover, .df-card-article, .df-card-article:hover { text-decoration: none; }
.df-cat-card *, .df-card-article * { text-decoration: none; }
.df-cat-name { font-size: 1rem; font-weight: 700; }
.df-cat-count { font-size: .82rem; color: var(--df-block-muted); }

/* Date sur les cartes article */
.df-card-article .df-card-date {
    font-size: .76rem; color: var(--df-block-muted); text-transform: uppercase;
    letter-spacing: .03em; margin-bottom: .15rem;
}

/* ═════════ TOP VILLES (home) ═════════ */
.df-grid-villes {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: .5rem;
}
.df-grid-villes a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .55rem .8rem;
    background: #fff;
    border: 1px solid var(--df-block-border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--df-block-text);
    font-size: .9rem;
    transition: border-color .15s, transform .15s;
}
.df-grid-villes a:hover {
    border-color: var(--df-block-accent);
    transform: translateY(-1px);
}
.df-grid-villes .df-villes-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.df-grid-villes .df-villes-nb {
    flex-shrink: 0;
    background: var(--df-block-accent);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    border-radius: 999px;
    padding: .05rem .5rem;
}

/* ═════════ DEPTS GRID ═════════ */
.df-grid-depts {
    grid-template-columns: repeat( auto-fill, minmax(220px, 1fr) );
}
.df-card-dept {
    display: block;
    padding: 1.1rem 1.3rem;
    background: #fff;
    border: 1px solid var(--df-block-border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform .15s, border-color .15s;
}
.df-card-dept:hover {
    transform: translateY(-1px);
    border-color: var(--df-block-accent);
}
.df-dept-name {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--df-block-text);
    margin-bottom: .15rem;
}
.df-dept-meta {
    color: var(--df-block-muted);
    font-size: .87rem;
    display: flex;
    align-items: center;
    gap: .35rem;
}
.df-dot { opacity: .4; }

/* ═════════ DEVIS FORM ═════════ */
/* 2 colonnes SANS carte commune : le conteneur grille est transparent.
   Colonne gauche (34%) = contenu sans fond. Colonne droite (66%) = le
   formulaire, mis en avant sur fond coloré. */
.df-block-devis-form .df-form-card--split {
    max-width: 1040px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 34fr 66fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}
.df-block-devis-form.alignwide .df-form-card--split { max-width: 1180px; }
.df-block-devis-form.alignfull .df-form-card--split { max-width: 1280px; }

/* ── Colonne droite : le formulaire, mis en avant sur fond coloré ── */
.df-form-main {
    background: var(--df-block-accent);
    border-radius: 14px;
    padding: clamp(1.5rem, 3vw, 2.2rem);
    box-shadow: 0 14px 38px rgba(15, 23, 42, .28);
}
.df-form-main .df-form-title {
    color: #fff;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 800;
}
/* Arguments incitatifs avec émoji (sous le titre, sur le fond accent) */
.df-form-main .df-form-args--emoji {
    margin: .2rem 0 1.3rem;
    gap: .55rem;
}
.df-form-main .df-form-args--emoji li {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    gap: .55rem;
}
.df-form-main .df-form-title--legacy { color: #fff; }
.df-form-main .df-form-subtitle { color: rgba(255, 255, 255, .85); }
.df-form-main .df-devis-form label { color: #fff; }
.df-form-main .df-form-submit {
    background: #fff;
    color: var(--df-block-accent-dark);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
.df-form-main .df-form-submit:hover {
    background: #eef6f0;
    color: var(--df-block-accent-dark);
    transform: translateY(-1px);
}
.df-form-main .df-form-submit:disabled {
    background: rgba(255, 255, 255, .6);
    color: var(--df-block-accent-dark);
}
.df-form-main .df-form-consent {
    margin-top: .6rem;
    font-size: .72rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, .65);
}

/* Case de consentement téléphonique (loi n° 2025-594, exigence VUD) */
.df-consent-field {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    margin: .8rem 0 .9rem;
    font-size: .78rem;
    line-height: 1.45;
    cursor: pointer;
}
.df-consent-field input[type="checkbox"] {
    flex: 0 0 auto;
    width: 1.05rem;
    height: 1.05rem;
    margin-top: .1rem;
    accent-color: var(--df-block-accent, #2f7d4f);
    cursor: pointer;
}
.df-form-main .df-consent-field { color: rgba(255, 255, 255, .85); }
.df-form-main .df-consent-field a {
    color: #fff;
    text-decoration: underline;
}

/* ── Colonne gauche : présentation ── */
.df-form-intro-title {
    margin: 0 0 .7rem;
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--df-block-text);
}
.df-form-intro-text {
    margin: 0 0 .9rem;
    color: var(--df-block-muted);
    font-size: 1rem;
    line-height: 1.6;
}
.df-form-intro .df-form-args { margin: 1.2rem 0 1.4rem; }
.df-form-signup {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1.2rem;
    border: 2px solid var(--df-block-accent);
    border-radius: 10px;
    color: var(--df-block-accent);
    background: #fff;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    transition: background .15s, color .15s, transform .1s;
}
.df-form-signup:hover {
    background: var(--df-block-accent);
    color: #fff;
    transform: translateY(-1px);
}
.df-form-title {
    margin: 0 0 .2rem;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--df-block-text);
}
.df-form-subtitle {
    margin: 0 0 1.2rem;
    color: var(--df-block-muted);
    font-size: .98rem;
}
.df-form-args {
    list-style: none;
    padding: 0;
    margin: 0 0 1.4rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: .45rem;
}
.df-form-args li {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: var(--df-block-text);
    font-size: .92rem;
}
.df-form-args svg {
    flex-shrink: 0;
    color: var(--df-block-accent);
}
.df-devis-form .df-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .8rem;
    margin-bottom: .8rem;
}
.df-devis-form .df-field { margin-bottom: .8rem; }
.df-devis-form label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--df-block-text);
    margin-bottom: .25rem;
}
.df-devis-form input,
.df-devis-form select,
.df-devis-form textarea {
    width: 100%;
    padding: .65rem .8rem;
    border: 1px solid var(--df-block-border);
    border-radius: 8px;
    font-size: .96rem;
    font-family: inherit;
    box-sizing: border-box;
    background: #fff;
}
/* Select : un <select> NATIF ignore line-height et rogne le texte en haut.
   On retire le style natif (appearance:none) → rendu en bloc qui respecte
   line-height + padding (plus de clipping), avec chevron CSS custom. */
.df-devis-form select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: auto;
    line-height: 1.4;
    padding-right: 2.4rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .85rem center;
    background-size: 1rem;
}
.df-devis-form input:focus,
.df-devis-form select:focus,
.df-devis-form textarea:focus {
    outline: 2px solid var(--df-block-accent);
    outline-offset: -1px;
    border-color: var(--df-block-accent);
}
.df-devis-form .df-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.df-form-submit {
    display: block;
    width: 100%;
    background: var(--df-block-accent);
    color: #fff;
    border: 0;
    padding: .9rem 1rem;
    font-size: 1.02rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(44,138,74,.3);
    margin-top: .4rem;
    transition: background .15s, transform .1s;
}
.df-form-submit:hover {
    background: var(--df-block-accent-dark);
    transform: translateY(-1px);
}
.df-form-submit:disabled {
    background: var(--df-block-muted);
    cursor: wait;
    box-shadow: none;
}
.df-form-msg {
    margin-top: .9rem;
    padding: .7rem .9rem;
    border-radius: 8px;
    font-size: .92rem;
}
.df-form-msg--ok {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.df-form-msg--err {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* ═════════ Formulaire de CONTACT (page /contact/) ═════════
   Le bloc contact-form réutilise .df-form-main (fond accent foncé) mais ses
   champs portent la classe .df-contact-form — or tout le CSS de champ ci-dessus
   est scopé .df-devis-form. On reproduit donc le style ici : conteneur à ~50 %,
   labels BLANCS au-dessus des champs, inputs pleine largeur, honeypot masqué. */
.df-block-contact-form .df-form-main--contact { max-width: 640px; margin-left: auto; margin-right: auto; }
/* Colonne centrée de la page contact. Astra impose .entry-content > *{max-width:1200px}
   (spécificité 0,1,1) → on monte la spécificité + !important pour la battre. */
.entry-content .df-contact-wrap,
.df-contact-wrap { max-width: 640px !important; margin-left: auto !important; margin-right: auto !important; }
.df-contact-form .df-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .8rem;
    margin-bottom: .8rem;
}
.df-contact-form .df-field { margin-bottom: .8rem; }
.df-contact-form label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: .3rem;
}
.df-contact-form input,
.df-contact-form textarea {
    width: 100%;
    padding: .65rem .8rem;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 8px;
    font-size: .96rem;
    font-family: inherit;
    box-sizing: border-box;
    background: #fff;
}
.df-contact-form input:focus,
.df-contact-form textarea:focus {
    outline: 2px solid #fff;
    outline-offset: -1px;
}
.df-contact-form .df-turnstile { margin: .2rem 0 .9rem; }
.df-contact-form .df-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
}
@media (max-width: 600px) {
    .df-contact-form .df-form-row { grid-template-columns: 1fr; }
}

/* Honeypot anti-spam masqué sur TOUS les formulaires (devis, contact, inscription,
   enrichir) — filet de sécurité : un honeypot visible = lead ignoré si rempli. */
.df-honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.df-turnstile { margin: .2rem 0 .9rem; }

/* ═════════ ÉTATS COMMUNS ═════════ */
.df-block-empty {
    color: var(--df-block-muted);
    font-style: italic;
    padding: 2rem 0;
    text-align: center;
}

/* Sous 880px : le bloc devis repasse en 1 colonne (présentation puis form). */
@media (max-width: 880px) {
    .df-block-devis-form .df-form-card--split {
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }
}

@media (max-width: 600px) {
    .df-devis-form .df-form-row { grid-template-columns: 1fr; }
    .df-hero-stats { gap: 1rem; }
    .df-block-hero-metier { padding: 3.5rem 1rem; min-height: 380px; }
}

/* ===== Popup devis + bouton flottant (DF_Popup, 2026-08-28) ===== */
.df-sticky-cta { position: fixed; right: 18px; bottom: 18px; z-index: 9998; background: var(--df-c1, #1d4ed8); color: #fff; border: 0; border-radius: 999px; padding: .8rem 1.3rem; font-size: 1rem; font-weight: 800; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.df-sticky-cta:hover { filter: brightness(1.1); }
.df-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 18px; }
.df-modal[hidden] { display: none; }
.df-modal-overlay { position: absolute; inset: 0; background: rgba(15,23,42,.62); }
.df-modal-dialog { position: relative; max-width: 560px; width: 100%; max-height: 92vh; overflow-y: auto; border-radius: 14px; background: #fff; }
.df-modal-dialog .df-block-devis-form { margin: 0; padding: 0; }
.df-modal-dialog .df-form-card--split { grid-template-columns: 1fr; box-shadow: none; max-width: none; }
.df-modal-dialog .df-form-intro { display: none; }
.df-modal-close { position: absolute; top: 8px; right: 10px; z-index: 2; background: transparent; border: 0; font-size: 1.9rem; line-height: 1; color: #64748b; cursor: pointer; }
.df-modal-close:hover { color: #0f172a; }
@media (max-width: 640px) { .df-sticky-cta { padding: .7rem 1rem; font-size: .9rem; } }
