/* Base commune des thèmes natifs Mandragore (Onkar, EGR, Béton Torres, Asteria) — 29/10/2026.
   Le thème du site définit les variables sur :root (couleurs, polices, largeur) dans son style.css.
   Les classes viennent de la conversion Elementor → HTML (_outils/migration/elementor-vers-html.php) :
   .bloc (section pleine largeur), .groupe (colonnes côte à côte), .colonne, .carte, .liste-icones, .bouton, figure, .galerie,
   .onglets, .accordeon, .video, .chiffre, blockquote, .encadre, .appel, .avant-apres, .formulaire. */
:root {
  --couleur-1: #a2161b; --couleur-1-sombre: #7d0f13; --couleur-2: #2e2e2e; --texte: #1f2328; --texte-doux: #555b63;
  --fond: #ffffff; --fond-doux: #f5f5f5; --bord: #e2e5ea; --blanc: #ffffff;
  --police-titres: "Open Sans", "Segoe UI", Arial, sans-serif; --police-texte: Helvetica, Arial, "Segoe UI", sans-serif;
  --largeur: 1200px; --gouttiere: clamp(16px, 4vw, 40px); --rayon: 12px; --ombre: 0 8px 24px rgba(0, 0, 0, .08);
  --entete-h: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--police-texte); font-size: 1.0625rem; line-height: 1.6; color: var(--texte); background: var(--fond); overflow-wrap: anywhere; }
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--couleur-1); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--couleur-1-sombre); }
h1, h2, h3, h4 { font-family: var(--police-titres); font-weight: 700; line-height: 1.2; margin: 0 0 .6em; color: var(--couleur-2); text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.45rem); }
h4 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; }
p { margin: 0 0 1em; }
p:last-child, ul:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
strong, b { font-weight: 700; }
:focus-visible { outline: 3px solid var(--couleur-1); outline-offset: 2px; }
.ecran-lecteur { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.evitement { position: absolute; left: 8px; top: -60px; background: var(--couleur-2); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 1000; }
.evitement:focus { top: 8px; }

/* ---------- Sections et colonnes ---------- */
.bloc { padding: clamp(36px, 6vw, 72px) max(var(--gouttiere), calc((100% - var(--largeur)) / 2)); background-position: center; background-size: cover; background-repeat: no-repeat; }
.bloc + .bloc { padding-top: 0; }
.bloc[style*="background-image"], .bloc[style*="background-color"] { padding-top: clamp(36px, 6vw, 72px); }
.bloc[style*="background-image"] + .bloc, .bloc[style*="background-color"] + .bloc { padding-top: clamp(36px, 6vw, 72px); }
.bloc[style*="background-image"] { color: #fff; }
.bloc[style*="background-image"] :is(h1, h2, h3, h4, p, li) { color: #fff; }
.bloc[style*="background-image"] > * { position: relative; }
.bloc[style*="background-image"] { position: relative; isolation: isolate; }
.bloc[style*="background-image"]::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 20, 20, .78), rgba(20, 20, 20, .45)); z-index: -1; }
.bloc > .groupe, .bloc > .colonne, .bloc > .galerie, .bloc > .onglets, .bloc > .accordeon { width: 100%; }
.groupe { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(20px, 3vw, 40px); align-items: start; }
.groupe > .colonne { min-width: 0; }
.colonne { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.colonne > * { margin-bottom: 0; }
.colonne[style*="background-color"] { padding: clamp(20px, 3vw, 32px); border-radius: var(--rayon); }
.colonne:has(> .carte + .carte) { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px; align-items: stretch; }
.colonne:has(> .carte + .carte) > :not(.carte) { grid-column: 1 / -1; }
.bloc > .colonne + .colonne { margin-top: clamp(20px, 3vw, 40px); }
.bloc > .colonne:has(> figure:only-child) { align-items: center; }
.bloc:has(> .colonne + .colonne) { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(20px, 3vw, 40px); align-items: center; }
.bloc:has(> .colonne + .colonne) > :not(.colonne) { grid-column: 1 / -1; }
.bloc:has(> .colonne + .colonne) > .colonne + .colonne { margin-top: 0; }

/* ---------- Composants ---------- */
.carte { background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); padding: clamp(18px, 2.5vw, 28px); box-shadow: var(--ombre); display: flex; flex-direction: column; gap: 8px; }
.carte h3 { font-size: 1.15rem; margin: 0; }
.carte h3 a { color: inherit; text-decoration: none; }
.carte p { margin: 0; color: var(--texte-doux); }
.carte img { border-radius: 8px; margin-bottom: 6px; }
.liste-icones { list-style: none; padding: 0; margin: 0 0 1em; display: flex; flex-direction: column; gap: 10px; }
.liste-icones li { position: relative; padding-left: 30px; margin: 0; }
.liste-icones li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--couleur-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.liste-icones li p { margin: 0; }
.liste-icones li > span { display: block; color: var(--texte-doux); font-size: .95rem; }
.liste-icones a { text-decoration: none; color: inherit; }
.liste-icones a:hover { color: var(--couleur-1); }
.bouton, button.bouton, input[type="submit"].bouton { display: inline-block; background: var(--couleur-1); color: #fff !important; font-family: var(--police-titres); font-weight: 700; font-size: 1rem; padding: 12px 26px; border-radius: 999px; text-decoration: none; border: 2px solid var(--couleur-1); cursor: pointer; transition: background .2s, transform .15s; line-height: 1.3; }
.bouton:hover, .bouton:focus-visible { background: var(--couleur-1-sombre); border-color: var(--couleur-1-sombre); transform: translateY(-1px); }
.bouton--contour { background: transparent; color: var(--couleur-1) !important; }
.bouton--contour:hover { background: var(--couleur-1); color: #fff !important; }
p:has(> .bouton:only-child) { margin-top: .5em; }
figure { margin: 0; }
figure img { border-radius: var(--rayon); width: 100%; object-fit: cover; }
figure img[src$=".svg"], figure img[src$=".png"] { width: auto; max-width: 100%; object-fit: contain; border-radius: 0; }
figcaption { font-size: .9rem; color: var(--texte-doux); margin-top: 8px; }
.galerie { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.galerie li { margin: 0; }
.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; cursor: zoom-in; transition: transform .2s; }
.galerie img:hover { transform: scale(1.02); }
.galerie--logos { grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); align-items: center; }
.galerie--logos img { aspect-ratio: auto; object-fit: contain; max-height: 90px; width: auto; margin: 0 auto; cursor: default; filter: grayscale(1); opacity: .8; }
.galerie--logos img:hover { filter: none; opacity: 1; transform: none; }
.chiffre { font-size: 1.1rem; }
.chiffre strong { font-family: var(--police-titres); font-size: 2.4rem; color: var(--couleur-1); display: block; line-height: 1; }
blockquote { margin: 0 0 1em; padding: 20px 24px; border-left: 4px solid var(--couleur-1); background: var(--fond-doux); border-radius: 0 var(--rayon) var(--rayon) 0; font-style: italic; }
blockquote footer { font-style: normal; font-weight: 700; margin-top: 8px; }
.encadre { background: #fff8e6; border: 1px solid #f3dc9a; border-radius: var(--rayon); padding: 16px 20px; }
.appel { background: var(--couleur-2); color: #fff; padding: clamp(24px, 4vw, 40px); border-radius: var(--rayon); }
.appel h3 { color: #fff; }
.accordeon details { border: 1px solid var(--bord); border-radius: 10px; margin-bottom: 10px; background: var(--blanc); }
.accordeon summary { cursor: pointer; padding: 14px 18px; font-weight: 700; font-family: var(--police-titres); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.accordeon summary::-webkit-details-marker { display: none; }
.accordeon summary::after { content: "+"; color: var(--couleur-1); font-size: 1.3rem; line-height: 1; }
.accordeon details[open] summary::after { content: "–"; }
.accordeon details > div { padding: 0 18px 16px; }
.onglets { display: flex; flex-direction: column; gap: 10px; }
.onglets__barre { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.onglets__bouton { border: 2px solid var(--bord); background: var(--blanc); border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 600; cursor: pointer; }
.onglets__bouton[aria-selected="true"] { background: var(--couleur-1); border-color: var(--couleur-1); color: #fff; }
.onglets__panneau[hidden] { display: none; }
.onglets__panneau { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(20px, 3vw, 40px); align-items: center; }
.onglets__panneau > .bloc { padding: 0; }
.onglets > h3 { margin: 0; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000 center/cover no-repeat; border-radius: var(--rayon); overflow: hidden; display: grid; place-items: center; }
.video > a, .video > button { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; text-decoration: none; font-weight: 700; background: rgba(0, 0, 0, .25); border: 0; cursor: pointer; font: inherit; }
.video > a::before, .video > button::before { content: ""; width: 72px; height: 72px; border-radius: 50%; background: var(--couleur-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23fff'/%3E%3C/svg%3E") center/36px no-repeat; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.avant-apres { position: relative; display: grid; border-radius: var(--rayon); overflow: hidden; }
.avant-apres img { grid-area: 1 / 1; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.avant-apres .apres { clip-path: inset(0 0 0 var(--coupe, 50%)); }
.avant-apres input[type="range"] { grid-area: 1 / 1; width: 100%; align-self: center; opacity: 0; cursor: ew-resize; height: 100%; margin: 0; }
.avant-apres::after { content: ""; grid-area: 1 / 1; justify-self: start; width: 3px; height: 100%; background: #fff; margin-left: var(--coupe, 50%); pointer-events: none; box-shadow: 0 0 8px rgba(0, 0, 0, .5); }
.widget-a-convertir[data-type="hotspot"] { display: grid; gap: 12px; }
.widget-a-convertir[data-type="hotspot"] img { border-radius: var(--rayon); }
.widget-a-convertir[data-type="hotspot"] p { margin: 0; padding-left: 26px; position: relative; color: var(--texte-doux); font-size: .97rem; }
.widget-a-convertir[data-type="hotspot"] p::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; border-radius: 50%; background: var(--couleur-1); box-shadow: 0 0 0 4px rgba(162, 22, 27, .2); }
.widget-a-convertir[data-type="hotspot"] p:empty, .widget-a-convertir p > p { display: contents; }
.carte-adresse { font-weight: 600; }
.carte--appel { text-align: center; align-items: center; }
.carte--appel img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.carte--appel h3 a, .carte--appel h4 a, .carte--appel h5 a { color: inherit; text-decoration: none; }
.carte--appel h5 { font-size: 1.1rem; text-transform: none; letter-spacing: 0; margin: 0; }
em.accent { font-style: normal; color: var(--couleur-1); }
.reseaux { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.reseaux a { display: inline-block; padding: 6px 12px; border: 1px solid currentColor; border-radius: 999px; text-decoration: none; font-size: .9rem; }
.liste-articles--inline { padding: 0; }
.avis-google { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.avis-google__note { font-family: var(--police-titres); font-weight: 700; }
.avis-google__note::before { content: "★★★★★ "; color: #f5b301; letter-spacing: 2px; }
.colonne:has(> .carte--appel + .carte--appel), .groupe:has(> .carte--appel) { align-items: stretch; }
.chapeau { font-size: 1.15rem; color: var(--texte-doux); }
.centre { text-align: center; }
.centre .liste-icones { align-items: center; }
.centre .bouton { margin-inline: 4px; }

/* ---------- Formulaires ---------- */
.formulaire { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px 20px; max-width: 760px; }
.formulaire__champ { display: flex; flex-direction: column; gap: 6px; }
.formulaire__champ--large, .formulaire__pied { grid-column: 1 / -1; }
.formulaire label { font-weight: 600; font-size: .95rem; }
.formulaire label .req { color: var(--couleur-1); }
.formulaire input, .formulaire select, .formulaire textarea { font: inherit; padding: 12px 14px; border: 1px solid #c9ced6; border-radius: 10px; background: #fff; width: 100%; color: var(--texte); }
.formulaire textarea { min-height: 150px; resize: vertical; }
.formulaire input:focus, .formulaire select:focus, .formulaire textarea:focus { outline: 2px solid var(--couleur-1); border-color: var(--couleur-1); }
.formulaire__piege { position: absolute; left: -9999px; }
.formulaire__consentement { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; font-weight: 400; }
.formulaire__consentement input { width: auto; margin-top: 4px; }
.formulaire__message { grid-column: 1 / -1; padding: 14px 18px; border-radius: 10px; font-weight: 600; }
.formulaire__message--ok { background: #e8f5e9; color: #1b5e20; }
.formulaire__message--erreur { background: #fdecea; color: #8b1a10; }

/* ---------- En-tête ---------- */
.entete { position: sticky; top: 0; z-index: 100; background: var(--blanc); box-shadow: 0 2px 12px rgba(0, 0, 0, .08); }
.entete__int { max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); min-height: var(--entete-h); display: flex; align-items: center; gap: 24px; }
.entete__logo { display: flex; align-items: center; margin-right: auto; }
.entete__logo img { height: 48px; width: auto; border-radius: 0; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav li { margin: 0; position: relative; }
.nav a { display: block; padding: 10px 12px; color: var(--couleur-2); text-decoration: none; font-weight: 600; font-family: var(--police-titres); font-size: .95rem; border-radius: 8px; }
.nav a:hover, .nav .current-menu-item > a, .nav .current-menu-ancestor > a { color: var(--couleur-1); }
.nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); margin-left: 8px; vertical-align: 3px; }
.nav .sub-menu { position: absolute; top: 100%; left: 0; min-width: 280px; background: #fff; border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, .14); padding: 8px; display: none; flex-direction: column; z-index: 50; }
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu, .nav li.ouvert > .sub-menu { display: flex; }
.nav .sub-menu a { font-weight: 500; font-size: .92rem; white-space: normal; }
.nav__tel { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; padding: 10px 18px; }
.nav__tel svg { width: 18px; height: 18px; }
.burger { display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; padding: 10px; border-radius: 8px; }
.burger span { display: block; height: 3px; background: var(--couleur-2); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
@media (max-width: 1023px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px var(--gouttiere) 24px; box-shadow: 0 16px 30px rgba(0, 0, 0, .14); max-height: calc(100vh - var(--entete-h)); overflow: auto; }
  .nav.ouvert { display: flex; }
  .nav ul { flex-direction: column; }
  .nav a { padding: 12px 8px; border-bottom: 1px solid var(--bord); border-radius: 0; }
  .nav .sub-menu { position: static; display: none; box-shadow: none; padding: 0 0 0 16px; min-width: 0; }
  .nav li.ouvert > .sub-menu { display: flex; }
  .nav li:not(.ouvert):hover > .sub-menu { display: none; }
  .nav .menu-item-has-children > a { display: flex; justify-content: space-between; align-items: center; }
  .nav__tel { margin: 16px 0 0; justify-content: center; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav__tel span { display: inline; }
}
@media (max-width: 1200px) and (min-width: 1024px) { .nav a { padding: 10px 8px; font-size: .88rem; } .nav__tel span { display: none; } }

/* ---------- Bandeau de page et pied ---------- */
.bandeau { background: var(--couleur-2); color: #fff; padding: clamp(28px, 5vw, 56px) max(var(--gouttiere), calc((100% - var(--largeur)) / 2)); }
.bandeau h1 { color: #fff; margin: 0; }
.bandeau .fil { font-size: .9rem; opacity: .85; margin: 0 0 8px; }
.bandeau .fil a { color: #fff; }
.pied { background: var(--couleur-2); color: #d9d9d9; padding: clamp(40px, 6vw, 72px) max(var(--gouttiere), calc((100% - var(--largeur)) / 2)) 24px; margin-top: clamp(36px, 6vw, 72px); }
.pied h4 { color: #fff; font-size: .9rem; margin-bottom: 10px; }
.pied a { color: #fff; text-decoration: none; }
.pied a:hover { color: var(--couleur-1-claire, #f4b3b5); }
.pied__int { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; }
.pied__int ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.pied .liste-icones li::before { background-color: var(--couleur-1); }
.pied__logo img { height: 56px; width: auto; border-radius: 0; margin-bottom: 14px; }
.pied__bas { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 36px; padding-top: 18px; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.pied__bas ul { display: flex; gap: 16px; list-style: none; padding: 0; margin: 0; }
.contenu > .bloc:first-child { padding-top: clamp(36px, 6vw, 72px); }
.article { max-width: 820px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) var(--gouttiere); }
.article img { border-radius: var(--rayon); }
.liste-articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 24px; padding: clamp(28px, 5vw, 56px) max(var(--gouttiere), calc((100% - var(--largeur)) / 2)); }
.liste-articles .carte time { font-size: .85rem; color: var(--texte-doux); }
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .9); display: none; place-items: center; z-index: 1000; padding: 20px; }
.lightbox.ouvert { display: grid; }
.lightbox img { max-width: 100%; max-height: 90vh; width: auto; border-radius: 8px; }
.lightbox button { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 1.4rem; cursor: pointer; }
/* Bloc « devis » en fin de page et bouton d'appel flottant (téléphone) */
.appel-fin { padding-top: 0 !important; }
.appel-fin__int { background: var(--couleur-2); color: #fff; border-radius: var(--rayon); padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.appel-fin__int h2 { color: #fff; margin: 0 0 .3em; font-size: 1.4rem; }
.appel-fin__int p { margin: 0; color: #e6e6e6; }
.appel-fin__boutons { display: flex; flex-wrap: wrap; gap: 10px; }
.appel-fin__boutons .bouton--contour { color: #fff !important; border-color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.appel-fin__boutons .bouton--contour svg { width: 16px; height: 16px; }
.appel-fin__boutons .bouton--contour:hover { background: #fff; color: var(--couleur-2) !important; }
@media (max-width: 700px) { .appel-fin__int { grid-template-columns: 1fr; } }
.appel-flottant { display: none; position: fixed; right: 16px; bottom: 16px; z-index: 90; align-items: center; gap: 8px; background: var(--couleur-1); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 700; text-decoration: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.appel-flottant svg { width: 20px; height: 20px; }
@media (max-width: 767px) { .appel-flottant { display: inline-flex; } body { padding-bottom: 72px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
@media print { .entete, .pied, .burger, .bouton { display: none !important; } }
