/* ============================================================
   Couverture Douyère – feuille de style principale
   DA : cartoon rouge et jaune, contours noirs, ombres dures, ligne de faîtage
============================================================ */

/* ===== POLICES (hébergées sur le site) ===== */
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 700; font-style: normal; font-display: swap; src: url('../fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-style: normal; font-display: swap; src: url('../fonts/plus-jakarta-sans-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-style: normal; font-display: swap; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-style: normal; font-display: swap; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); }

/* ===== VARIABLES ===== */
:root {
  --primary:       #CC1717;   /* rouge */
  --primary-dark:  #A51212;   /* survol */
  --primary-soft:  #FFE9E9;   /* fonds d'icônes, badges */
  --primary-light: #FF8A8A;   /* rouge clair sur fond sombre */
  --mint:          #FFFBF0;   /* crème */
  --accent:        #F5C400;   /* jaune */
  --accent-dark:   #D4A800;
  --sky:           #D0EAFF;   /* bleu ciel des sections alternées */

  --ink:    #1A1A1A;          /* titres, contours cartoon */
  --night:  #1A1A1A;          /* fonds sombres */
  --night-2:#2D2D2D;
  --muted:  #555555;          /* texte courant */
  --surface:#D0EAFF;          /* sections alternées */
  --border: #E0E0E0;
  --white:  #FFFFFF;

  --radius-sm: 999px;         /* boutons en pilule */
  --radius:    14px;
  --radius-lg: 18px;
  /* OMBRES DURES = signature cartoon (zéro flou) */
  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow:    4px 4px 0 var(--ink);
  --shadow-lg: 6px 6px 0 var(--ink);
  --ring:      0 0 0 3px rgba(245,196,0,.45);
  --transition: .2s ease;

  --font-head: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); color: var(--muted); background: var(--white); line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, select, textarea { font: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; letter-spacing: -.025em; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

.ico { width: 1.1em; height: 1.1em; flex-shrink: 0; }

/* ===== CONTAINER ===== */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 600; font-size: .98rem; line-height: 1.2;
  border: 1.5px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: pointer; white-space: nowrap;
}
.btn--primary { background: var(--primary); color: var(--white); box-shadow: 0 1px 2px rgba(26,26,26,.12), 0 8px 20px -6px rgba(204,23,23,.55); }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 1px 2px rgba(26,26,26,.12), 0 12px 24px -6px rgba(204,23,23,.6); }
.btn--ghost { background: var(--white); color: var(--ink); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--white { background: var(--white); color: var(--primary-dark); }
.btn--white:hover { background: var(--mint); }
.btn--outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn--outline-white:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn--lg { padding: 16px 28px; font-size: 1.02rem; }
.btn--sm { padding: 10px 16px; font-size: .9rem; }
.btn--block { width: 100%; }
/* Alias pour du contenu Elementor existant */
.btn--gold, .btn--accent { background: var(--primary); color: var(--white); }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }

/* ===== TOP BAR ===== */
.top-bar { background: var(--night); color: rgba(255,255,255,.82); font-size: .84rem; font-weight: 500; }
.top-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; }
.top-bar span, .top-bar a { display: inline-flex; align-items: center; gap: 7px; }
.top-bar .ico { color: var(--primary-light); width: 15px; height: 15px; }
.top-bar__link { color: var(--white); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); }
.top-bar__link:hover { text-decoration-color: var(--white); }

/* ===== HEADER ===== */
.header { position: sticky; top: 0; z-index: 900; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); transition: box-shadow var(--transition); }
.header.scrolled { box-shadow: 0 6px 24px -12px rgba(26,26,26,.25); }
.header__inner { display: flex; align-items: center; gap: 24px; min-height: 74px; }
.header__cta { display: flex; gap: 10px; flex-shrink: 0; }

.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo__img { height: 46px; width: auto; }
.logo__mark { width: 38px; height: 38px; border-radius: 11px; background: var(--primary); color: var(--white); display: grid; place-items: center; box-shadow: inset 0 -3px 0 rgba(0,0,0,.14); }
.logo__mark .ico { width: 21px; height: 21px; }
.logo__name { font-family: var(--font-head); font-weight: 800; font-size: 1.16rem; color: var(--ink); letter-spacing: -.03em; }

.nav { margin-left: auto; }
.nav__list, .nav .menu { display: flex; align-items: center; gap: 2px; }
.nav__link, .nav .menu a { display: block; padding: 9px 13px; border-radius: 8px; font-weight: 500; font-size: .96rem; color: var(--ink); transition: var(--transition); }
.nav__link:hover, .nav__link.active, .nav .menu a:hover, .nav .current-menu-item > a { color: var(--primary); background: var(--mint); }
.nav .sub-menu { display: none; }

.burger { display: none; flex-direction: column; gap: 5px; padding: 10px; margin-right: -10px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: var(--transition); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  background:
    radial-gradient(900px 520px at 88% -10%, var(--primary-soft) 0%, rgba(228,242,234,0) 70%),
    radial-gradient(600px 400px at -5% 110%, var(--mint) 0%, rgba(242,249,245,0) 70%),
    var(--white);
  padding: 72px 0 104px;
  overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 64px; align-items: center; }
.hero__content { animation: fadeUp .7s ease both; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 600; font-size: .95rem; margin-bottom: 18px; }
.hero__eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.hero__title { font-weight: 800; font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -.04em; line-height: 1.04; margin-bottom: 22px; }
.hero__title span { color: var(--primary); }
.hero__subtitle { font-size: 1.14rem; line-height: 1.6; max-width: 34em; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .92rem; font-weight: 500; color: var(--ink); }
.hero__trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero__trust .ico { color: var(--primary); width: 17px; height: 17px; stroke-width: 2.6; }

/* Carte devis (style « assistant ») */
.hero__form-wrap { animation: fadeUp .7s .15s ease both; scroll-margin-top: 110px; }
.devis-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.devis-card__head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; background: var(--primary); color: var(--white); }
.devis-card__head strong { display: block; font-family: var(--font-head); font-size: 1.12rem; font-weight: 800; letter-spacing: -.02em; }
.devis-card__head span { font-size: .86rem; opacity: .85; }
.devis-card__icon { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.16); display: grid; place-items: center; flex-shrink: 0; }
.devis-card__body { padding: 22px; background: linear-gradient(180deg, var(--surface) 0%, var(--white) 80px); }

/* Ligne de faîtage (signature) */
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 34px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath fill='%23F5C400' d='M0%2040%20L0%2028%20L60%2010%20L120%2028%20L180%2010%20L240%2028%20L300%2010%20L360%2028%20L420%2010%20L480%2028%20L540%2010%20L600%2028%20L660%2010%20L720%2028%20L780%2010%20L840%2028%20L900%2010%20L960%2028%20L1020%2010%20L1080%2028%20L1140%2010%20L1200%2028%20L1260%2010%20L1320%2028%20L1380%2010%20L1440%2028%20L1440%2040%20Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat; pointer-events: none; }

/* ===== FORMULAIRE DU THÈME ===== */
.cd-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cd-field { margin-bottom: 12px; }
.cd-field label { display: block; font-size: .84rem; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.cd-req { color: var(--primary); }
.cd-field input, .cd-field select, .cd-field textarea {
  width: 100%; padding: 11px 13px;
  background: var(--white); color: var(--ink);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: .95rem; outline: none; appearance: none; -webkit-appearance: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.cd-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A7268' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 38px; }
.cd-field textarea { resize: vertical; min-height: 84px; }
.cd-field input:focus, .cd-field select:focus, .cd-field textarea:focus { border-color: var(--primary); box-shadow: var(--ring); }
.cd-field .is-error { border-color: #C2410C; }
.cd-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.cd-form .btn { margin-top: 4px; }
.cd-form__note { font-size: .8rem; margin-top: 10px; text-align: center; }
.cd-form__note a { color: var(--primary); text-decoration: underline; }
.cd-form__status { font-size: .9rem; font-weight: 600; margin-top: 10px; text-align: center; }
.cd-form__status:empty { display: none; }
.cd-form__status.ok { color: var(--primary-dark); background: var(--primary-soft); border-radius: var(--radius-sm); padding: 10px 12px; }
.cd-form__status.err { color: #9A3412; background: #FFF1E7; border-radius: var(--radius-sm); padding: 10px 12px; }

/* Fluent Forms : aligne le rendu sur la DA */
.devis-card .fluentform .ff-el-form-control { border: 1.5px solid var(--border) !important; border-radius: var(--radius-sm) !important; padding: 11px 13px !important; }
.devis-card .fluentform .ff-el-form-control:focus { border-color: var(--primary) !important; box-shadow: var(--ring) !important; }
.devis-card .fluentform .ff-btn-submit { background: var(--primary) !important; border-radius: var(--radius-sm) !important; width: 100%; padding: 14px !important; font-weight: 600 !important; }

/* ===== BANDE MÉTIERS ===== */
.metiers { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--white); }
.metiers__inner { display: flex; align-items: center; gap: 28px; min-height: 66px; overflow-x: auto; scrollbar-width: none; }
.metiers__inner::-webkit-scrollbar { display: none; }
.metiers__label { font-weight: 600; color: var(--ink); white-space: nowrap; font-size: .95rem; }
.metiers ul { display: flex; gap: 24px; }
.metiers li { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; color: #8A8A8A; white-space: nowrap; }

/* ===== SECTIONS ===== */
.section { padding: 104px 0; position: relative; }
.section--gray, .section--surface { background: var(--surface); }
.section--dark { background: var(--night); }
.section__header { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section__eyebrow { display: inline-block; color: var(--primary); font-weight: 600; font-size: .92rem; margin-bottom: 12px; }
.section__title { font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 2.7rem); letter-spacing: -.035em; margin-bottom: 14px; }
.section__subtitle { font-size: 1.08rem; line-height: 1.65; max-width: 38em; }
.section__header .section__subtitle { margin: 0 auto; }
.section--dark .section__title, .section__header--light .section__title { color: var(--white); }
.section--dark .section__subtitle, .section__header--light .section__subtitle { color: rgba(255,255,255,.72); }
.section--dark .section__eyebrow { color: var(--primary-light); }

/* ===== SERVICES ===== */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { position: relative; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 28px 28px; box-shadow: var(--shadow-sm); transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition); display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--ink); }
.service-card__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 22px; transition: var(--transition); }
.service-card__icon .ico { width: 26px; height: 26px; }
.service-card:hover .service-card__icon { background: var(--primary); color: var(--white); }
.service-card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 10px; }
.service-card p { font-size: .98rem; line-height: 1.6; flex: 1; }
.service-card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; color: var(--primary); font-weight: 600; }
.service-card__link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.service-card__link .ico { transition: transform var(--transition); }
.service-card:hover .service-card__link .ico { transform: translateX(3px); }

/* ===== PROCESSUS ===== */
.processus.section { background: var(--surface); }
.processus__inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: center; }
.processus__intro .section__subtitle { margin-bottom: 28px; }
.processus__grid { display: flex; flex-direction: column; gap: 14px; counter-reset: none; }
.processus__step { display: flex; gap: 18px; align-items: flex-start; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); position: relative; }
.processus__step + .processus__step::before { content: ''; position: absolute; left: 44px; top: -15px; width: 2px; height: 14px; background: var(--border); }
.step__number { width: 42px; height: 42px; border-radius: 12px; background: var(--ink); color: var(--white); font-family: var(--font-head); font-weight: 800; font-size: 1.08rem; display: grid; place-items: center; flex-shrink: 0; }
.processus__step:first-child .step__number { background: var(--primary); }
.processus__step h3 { font-size: 1.12rem; font-weight: 800; margin: 2px 0 4px; }
.processus__step p { font-size: .96rem; line-height: 1.55; }

/* ===== ZONES ===== */
.zones.section {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, transparent 2px 22px),
    radial-gradient(700px 380px at 100% 0%, rgba(204,23,23,.28) 0%, rgba(204,23,23,0) 70%),
    var(--night);
}
.zones__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.zones__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.zones__list li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.9); font-weight: 500; font-size: .96rem; }
.zones__list .ico { color: var(--primary-light); width: 17px; height: 17px; }
.zones__inner > :only-child { grid-column: 1 / -1; text-align: center; max-width: 720px; margin: 0 auto; }
.zones__inner > :only-child .section__subtitle { margin: 0 auto; }

/* ===== CTA ===== */
.contact.section { padding: 88px 0; }
.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: 48px 52px; border-radius: var(--radius-lg); background: radial-gradient(600px 300px at 100% 0%, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 70%), var(--primary); box-shadow: 0 30px 60px -24px rgba(204,23,23,.6); }
.cta-card h2 { color: var(--white); font-size: clamp(1.5rem, 2.6vw, 2.05rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px; max-width: 20em; }
.cta-card p { color: rgba(255,255,255,.85); font-size: 1.05rem; }
.cta-card__actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* Ancienne bande CTA (contenu Elementor) */
.cta-band { background: var(--primary); padding: 48px 0; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.85); }

/* ===== AVANT / APRÈS (utilisable dans Elementor) ===== */
.realisations__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.realisation-item { position: relative; border-radius: var(--radius-lg); overflow: hidden; height: 280px; background: var(--night-2); box-shadow: var(--shadow); }
.realisation-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.realisation-item:hover img { transform: scale(1.05); }
.realisation-item__info { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 18px; background: linear-gradient(transparent, rgba(26,26,26,.88)); z-index: 15; }
.realisation-item__info h4 { color: var(--white); font-size: 1rem; }
.realisation-item__info span { color: var(--primary-light); font-size: .85rem; }
.realisation-ba { position: absolute; inset: 0; cursor: ew-resize; user-select: none; touch-action: none; overflow: hidden; }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-before { clip-path: inset(0 50% 0 0); }
.ba-handle { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 3px; height: 100%; background: var(--white); z-index: 10; cursor: ew-resize; display: flex; align-items: center; justify-content: center; }
.ba-handle__circle { width: 42px; height: 42px; border-radius: 50%; background: var(--primary); border: 3px solid var(--white); color: var(--white); display: grid; place-items: center; box-shadow: var(--shadow); }
.ba-label { position: absolute; bottom: 14px; z-index: 8; padding: 4px 11px; border-radius: 999px; background: rgba(26,26,26,.7); color: var(--white); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; pointer-events: none; }
.ba-label--before { left: 14px; }
.ba-label--after { right: 14px; }

/* ===== AVIS (pour de vrais avis Google, à ajouter dans Elementor) ===== */
.temoignage-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.temoignage-card__stars { color: #E9A23B; margin-bottom: 10px; }
.temoignage-card__text { font-size: .96rem; margin-bottom: 14px; }
.temoignage-card__author strong { color: var(--ink); }

/* ===== FOOTER ===== */
.footer { background: var(--night); color: rgba(255,255,255,.66); }
.footer__main { padding: 72px 0 52px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; }
.footer__logo .logo__name, .footer__logo--text .logo__name { color: var(--white); }
.footer__logo { display: inline-flex; align-items: center; gap: 10px; }
.footer__logo__img { height: 42px; width: auto; background: var(--white); border-radius: 10px; padding: 5px 9px; }
.footer__col h4 { color: var(--white); font-size: .98rem; font-weight: 700; margin-bottom: 16px; letter-spacing: -.01em; }
.footer__col ul { display: flex; flex-direction: column; gap: 9px; }
.footer__col li, .footer__col li a { font-size: .95rem; transition: color var(--transition); }
.footer__col li a:hover { color: var(--white); }
.footer__col--brand p { font-size: .95rem; margin: 16px 0 20px; max-width: 26em; }
.footer__contact { display: flex; flex-direction: column; gap: 10px; }
.footer__contact a { display: inline-flex; align-items: center; gap: 10px; color: rgba(255,255,255,.85); font-size: .95rem; }
.footer__contact a:hover { color: var(--white); }
.footer__contact .ico { color: var(--primary-light); }
.footer__pitch { font-size: .95rem; margin-bottom: 16px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; }
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .86rem; }
.footer__bottom a, .footer__bottom button { color: rgba(255,255,255,.85); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.3); }

/* ===== RETOUR EN HAUT ===== */
.back-to-top { position: fixed; right: 22px; bottom: 26px; width: 46px; height: 46px; border-radius: 12px; background: var(--white); color: var(--ink); border: 1px solid var(--border); box-shadow: var(--shadow); display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition); z-index: 800; }
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { color: var(--primary); border-color: var(--primary); }

/* ===== BARRE MOBILE + FENÊTRE DEVIS ===== */
.urgence-band { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 850; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--border); }
.urgence-band .cd-modal-open { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-radius: var(--radius-sm); background: var(--primary); color: var(--white); font-weight: 600; font-size: 1.02rem; }
.urgence-band__call { width: 52px; display: grid; place-items: center; border-radius: var(--radius-sm); border: 1.5px solid var(--border); color: var(--primary); }
.cd-modal { position: fixed; inset: 0; z-index: 100001; background: rgba(26,26,26,.55); display: flex; align-items: flex-end; justify-content: center; }
.cd-modal[hidden] { display: none; }
.cd-modal__panel { position: relative; width: 100%; max-width: 480px; max-height: 92vh; overflow: auto; background: var(--white); border-radius: 20px 20px 0 0; padding: 52px 18px calc(20px + env(safe-area-inset-bottom)); animation: slideUp .28s ease both; }
.cd-modal__panel::before { content: 'Demande de devis gratuit'; position: absolute; top: 18px; left: 18px; font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: 1.1rem; }
.cd-modal-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--ink); }
.cd-modal-close:hover { background: var(--surface); }
body.cd-modal-actif { overflow: hidden; }
.cd-modal .devis-card__body { padding: 0; background: none; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ===== COUCHE CARTOON (contours noirs, ombres dures, rouge + jaune) ===== */
body { background: var(--mint); }
.btn { border: 2.5px solid var(--ink); font-weight: 700; }
.btn--primary, .btn--primary:hover { box-shadow: 4px 4px 0 var(--ink); }
.btn--primary:hover, .btn--ghost:hover, .btn--white:hover { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn--ghost { border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn--ghost:hover { color: var(--ink); background: var(--mint); border-color: var(--ink); }
.btn--white { background: var(--accent); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn--white:hover { background: var(--accent-dark); }
.btn--outline-white { border-color: var(--white); box-shadow: 3px 3px 0 rgba(0,0,0,.35); }
.btn--gold, .btn--accent { border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn--accent { background: var(--accent); color: var(--ink); }

.top-bar { background: var(--primary); color: var(--white); border-bottom: 3px solid var(--primary-dark); font-weight: 600; }
.top-bar .ico { color: var(--accent); }
.top-bar__link { text-decoration-color: var(--accent); }

.header { background: var(--white); border-bottom: 3px solid var(--primary); }
.logo__mark { border: 2.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.nav__link, .nav .menu a { border-radius: 999px; font-weight: 600; }
.nav__link:hover, .nav__link.active, .nav .menu a:hover, .nav .current-menu-item > a { color: var(--white); background: var(--primary); }

.hero { background: radial-gradient(900px 520px at 90% -10%, var(--sky) 0%, rgba(208,234,255,0) 70%), var(--mint); }
.hero__eyebrow { background: var(--primary); color: var(--white); padding: 5px 14px; border-radius: 999px; border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.hero__eyebrow::before { background: var(--accent); box-shadow: none; }
.hero__title span { color: var(--primary); background: linear-gradient(transparent 68%, var(--accent) 68%, var(--accent) 92%, transparent 92%); padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero__trust { font-weight: 700; }
.hero__trust .ico { color: var(--primary); }

.devis-card { border: 2.5px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.devis-card__head { border-bottom: 2.5px solid var(--ink); }
.devis-card__icon { background: var(--accent); color: var(--ink); border: 2px solid var(--ink); }
.devis-card__body { background: var(--white); }
.cd-field input, .cd-field select, .cd-field textarea { border: 2px solid var(--border); border-radius: 10px; }
.cd-field input:focus, .cd-field select:focus, .cd-field textarea:focus { border-color: var(--accent); }
.cd-form .btn--primary { background: var(--accent); color: var(--ink); }
.cd-form .btn--primary:hover { background: var(--accent-dark); }
.cd-form__status.ok { color: #14532D; background: #E7F7EC; }
.devis-card .fluentform .ff-btn-submit { background: var(--accent) !important; color: var(--ink) !important; border: 2.5px solid var(--ink) !important; border-radius: 999px !important; box-shadow: 4px 4px 0 var(--ink) !important; }


.metiers { background: var(--accent); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.metiers__label { color: var(--ink); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.metiers li { color: var(--ink); }
.metiers li + li::before { content: '•'; color: var(--primary); margin-right: 24px; }

.services.section { background: var(--white); }
.section__eyebrow { background: var(--primary); color: var(--white); padding: 5px 16px; border-radius: 999px; border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.section--dark .section__eyebrow { background: var(--accent); color: var(--ink); border-color: rgba(255,255,255,.4); box-shadow: 2px 2px 0 rgba(0,0,0,.5); }
.section__header .section__title::after { content: ''; display: block; width: 80px; height: 6px; margin: 16px auto 0; background: var(--accent); border: 1.5px solid var(--ink); border-radius: 3px; }

.service-card { border: 2.5px solid var(--ink); border-left: 6px solid var(--primary); }
.service-card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }
.service-card__icon { background: var(--primary); color: var(--white); border-radius: 50%; border: 2.5px solid var(--ink); }
.service-card:hover .service-card__icon { background: var(--accent); color: var(--ink); }
.service-card__link { color: var(--primary); font-weight: 700; }

.processus.section { background: var(--sky); }
.processus__step { border: 2.5px solid var(--ink); }
.processus__step + .processus__step::before { background: var(--ink); width: 3px; }
.step__number { background: var(--accent); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 50%; }
.processus__step:first-child .step__number { background: var(--primary); color: var(--white); }

.zones.section { background: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 2px, transparent 2px 22px), radial-gradient(700px 380px at 100% 0%, rgba(204,23,23,.35) 0%, rgba(204,23,23,0) 70%), var(--night); }
.zones__list li { border: 2px solid rgba(255,255,255,.18); border-radius: 999px; }
.zones__list .ico { color: var(--accent); }

.cta-card { background: var(--primary); border: 3px solid var(--ink); border-bottom: 8px solid var(--accent); box-shadow: 6px 6px 0 var(--ink); }

.footer__col h4 { padding-bottom: 10px; position: relative; }
.footer__col h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; border-radius: 2px; background: var(--accent); }
.footer__contact .ico { color: var(--accent); }

.back-to-top { background: var(--accent); border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); border-radius: 50%; }
.back-to-top:hover { color: var(--ink); border-color: var(--ink); transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.urgence-band { background: var(--accent); border-top: 3px solid var(--ink); }
.urgence-band .cd-modal-open { border: 2.5px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); font-weight: 800; }
.urgence-band__call { background: var(--white); border: 2.5px solid var(--ink); border-radius: 50%; color: var(--primary); }
.cd-modal__panel { border-top: 6px solid var(--primary); }
.ba-handle__circle { border-color: var(--accent); }

/* ===== COMPATIBILITÉ CONTENEURS ELEMENTOR =====
   Le modèle d'accueil Elementor pose ces classes sur ses conteneurs :
   on neutralise le flex, les marges et les espacements par défaut d'Elementor. */
.e-con.hero { display: block; padding: 72px 0 104px; gap: 0; }
.e-con.hero__inner { display: grid; gap: 64px; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.e-con.hero__form-wrap, .e-con.devis-card, .e-con.cd-wrap { display: block; padding: 0; gap: 0; }
.e-con.devis-card { overflow: hidden; }
.e-con.cd-wrap, .e-con.hero__form-wrap { width: 100%; }
.e-con.hero > .elementor-element, .e-con.hero__inner > .elementor-element, .e-con.hero__form-wrap > .elementor-element,
.e-con.devis-card > .elementor-element, .e-con.cd-wrap > .elementor-element { margin-top: 0 !important; margin-bottom: 0 !important; }
.e-con.hero__inner > .elementor-element { min-width: 0; }
.elementor-widget.devis-card__body > .elementor-widget-container { padding: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .e-con.hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__form-wrap { max-width: 560px; }
  .services__grid { grid-template-columns: 1fr 1fr; }
  .processus__inner, .zones__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .header__cta .btn--ghost { display: none; }
  .realisations__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .burger { display: flex; margin-left: auto; }
  .header__cta { display: none; }
  .header__inner { min-height: 64px; }
  .nav { position: fixed; top: 0; right: 0; height: 100vh; width: min(84%, 340px); background: var(--white); padding: 84px 20px 32px; clip-path: inset(0 0 0 100%); visibility: hidden; transition: clip-path .3s ease, visibility 0s .3s; z-index: 950; overflow-y: auto; box-shadow: -20px 0 60px -20px rgba(26,26,26,.35); margin-left: 0; }
  .nav.open { clip-path: inset(0); visibility: visible; transition: clip-path .3s ease; }
  .nav__list, .nav .menu { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link, .nav .menu a { padding: 13px 14px; font-size: 1.05rem; }
  .nav-overlay { display: none; position: fixed; inset: 0; background: rgba(26,26,26,.45); z-index: 940; }
  .nav-overlay.show { display: block; }
  .burger { position: relative; z-index: 960; }
}

@media (max-width: 767px) {
  .container { padding: 0 16px; }
  .top-bar .top-bar__link { display: none; }
  .top-bar__inner { justify-content: center; }
  .logo__name { font-size: 1.04rem; }
  .logo__mark { width: 34px; height: 34px; }
  .logo__img { max-height: 40px; max-width: 160px; }
  .hero { padding: 40px 0 72px; }
  .e-con.hero { padding: 40px 0 72px; }
  .e-con.hero__inner { padding: 0 16px; }
  .e-con.hero__form-wrap.is-moved { display: none; }
  .hero__title { font-size: clamp(2rem, 9vw, 2.5rem); }
  .hero__subtitle { font-size: 1.04rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__form-wrap.is-moved { display: none; }  /* le formulaire est passé dans la fenêtre « Devis gratuit » */
  .metiers__inner { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 16px; overflow: visible; }
  .metiers ul { flex-wrap: wrap; gap: 8px; }
  .metiers li { font-size: .9rem; color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 12px; }
  .metiers li + li::before { content: none; }
  .section { padding: 72px 0; }
  .section__header { margin-bottom: 36px; text-align: left; }
  .services__grid, .realisations__grid { grid-template-columns: 1fr; }
  .zones__list { grid-template-columns: 1fr 1fr; }
  .cta-card { padding: 32px 22px; }
  .cta-card__actions, .cta-card__actions .btn { width: 100%; }
  .cd-form__row { grid-template-columns: 1fr; gap: 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
  .urgence-band { display: flex; }
  .back-to-top { bottom: 92px; right: 14px; }
  body { padding-bottom: 76px; }
}
/* Fenêtre devis sur ordinateur (pages intérieures) : centrée, au style cartoon du site */
@media (min-width: 768px) {
  .cd-modal { align-items: center; padding: 24px; }
  .cd-modal__panel { max-width: 560px; border-radius: 20px; padding: 60px 28px 28px; border: 2.5px solid var(--ink); border-top: 6px solid var(--primary); box-shadow: 6px 6px 0 var(--ink); }
  .cd-modal__panel::before { top: 22px; left: 28px; }
}