/* Alexandre Renov — feuille de style unique.
   Les couleurs sont toutes ici : pour reprendre celles du logo, changer --accent et --accent-fonce.
   Motif signature : l'arche (portes, miroirs, cadres), rappel des intérieurs rénovés. */

:root {
  --creme: #FBF7F1;
  --sable: #F1E7DA;
  --lin: #E6D6C2;
  --bois: #8A5A3B;
  --noyer: #2B1F17;        /* sections sombres */
  --noyer-2: #3A2A1F;
  --laiton: #C9A26B;       /* chiffres et détails sur fond sombre */
  --texte: #2F2721;
  --texte-doux: #5E5249;
  --accent: #B8141A;       /* rouge du logo, un peu approfondi : boutons d'action */
  --accent-fonce: #8F0F14;
  --blanc: #FFFFFF;
  --bord: #DCCBB5;

  --titres: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --texte-police: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --rayon: 22px;
  --arche: 999px 999px 26px 26px;
  --ombre: 0 1px 2px rgba(43, 31, 23, .05), 0 12px 32px rgba(43, 31, 23, .09);
  --ombre-forte: 0 2px 4px rgba(43, 31, 23, .06), 0 30px 60px -12px rgba(43, 31, 23, .22);
  --largeur: 1200px;
  --barre-mobile: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html:not(.pret) *, html:not(.pret) *::before, html:not(.pret) *::after { transition: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--texte);
  font: 1.0625rem/1.68 var(--texte-police);
  padding-bottom: var(--barre-mobile);
  -webkit-font-smoothing: antialiased;
}
/* grain de papier très léger, pour la chaleur */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--bois); text-underline-offset: .18em; }
a:hover { color: var(--accent-fonce); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--blanc); }

h1, h2, h3 { font-family: var(--titres); color: var(--noyer-2); line-height: 1.1; margin: 0 0 .55em; font-weight: 600; letter-spacing: -.015em; }
h1 { font-size: clamp(2.4rem, 1.5rem + 4vw, 4.4rem); letter-spacing: -.028em; line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); letter-spacing: -.022em; }
h3 { font-size: 1.3rem; }
h1 em, h2 em { font-style: italic; color: var(--accent); font-weight: 500; }
p { margin: 0 0 1em; }

.conteneur { width: 100%; max-width: var(--largeur); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 700px) { .conteneur { padding-inline: 32px; } }

.visuellement-cache { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.evitement { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--noyer); color: var(--blanc); padding: .8em 1.2em; }
.evitement:focus { left: 8px; top: 8px; color: var(--blanc); }

.surtitre {
  display: flex; align-items: center; gap: .75em; margin-bottom: 1em;
  font: 600 .8rem/1.3 var(--texte-police); letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.surtitre::before { content: ""; width: 28px; height: 2px; background: currentColor; flex: none; }

/* ---------- boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: .75em 1.5em; border-radius: 999px;
  font: 600 1rem/1.2 var(--texte-police); text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.bouton-principal { background: var(--accent); color: var(--blanc); box-shadow: 0 8px 20px -8px rgba(184, 20, 26, .6); }
.bouton-principal:hover { background: var(--accent-fonce); color: var(--blanc); transform: translateY(-1px); box-shadow: 0 12px 24px -8px rgba(143, 15, 20, .65); }
.bouton-secondaire { background: var(--blanc); color: var(--noyer-2); border-color: var(--bord); }
.bouton-secondaire:hover { border-color: var(--bois); color: var(--noyer-2); transform: translateY(-1px); }
.bouton-contour { border-color: var(--noyer-2); color: var(--noyer-2); background: transparent; }
.bouton-contour:hover { background: var(--noyer-2); color: var(--blanc); }
.bouton-lien { color: var(--bois); text-decoration: underline; padding-inline: .6em; }
.boutons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.icone { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }

.lien-fleche { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--accent-fonce); text-decoration: none;  }
/* Les grilles d'une seule colonne ne s'élargissent jamais au-delà de l'écran (contenu trop long, lien, image). */
.hero-grille, .interlocuteur-grille, .zone-grille, .page-entete-grille, .cta, .pied-grille { grid-template-columns: minmax(0, 1fr); }
.lien-fleche::after { content: "→"; transition: transform .2s; }
.lien-fleche:hover::after, a:hover .lien-fleche::after { transform: translateX(4px); }

/* ---------- bandeau du haut + en-tête ---------- */
.bandeau-haut { display: none; background: var(--noyer); color: #E9DCCB; font-size: .84rem; letter-spacing: .01em; }
.bandeau-in { display: flex; gap: 28px; align-items: center; min-height: 40px; }
.bandeau-in span, .bandeau-tel { display: inline-flex; align-items: center; gap: .5em; }
.bandeau-in .icone { color: var(--laiton); width: 1.05em; height: 1.05em; }
.bandeau-tel { margin-left: auto; color: var(--blanc); font-weight: 600; text-decoration: none; letter-spacing: .03em; }
.bandeau-tel:hover { color: var(--laiton); }
@media (min-width: 1000px) { .bandeau-haut { display: block; } }

.entete {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(220, 203, 181, .6); transition: box-shadow .3s;
}
/* Le flou est porté par un calque : posé sur l'en-tête lui-même, il empêcherait le menu mobile d'occuper l'écran. */
.entete::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(251, 247, 241, .9);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  transition: background-color .3s;
}
.entete.defile { box-shadow: 0 10px 30px -18px rgba(43, 31, 23, .35); }
.entete.defile::before { background: rgba(251, 247, 241, .97); }
.entete-in { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.logo-image { height: 64px; width: auto; }

.nav { flex: 1; display: flex; justify-content: center; }
.nav-liste { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-liste > li > a, .nav-services summary {
  position: relative; display: block; padding: .6em .9em; color: var(--noyer-2); text-decoration: none;
  font-weight: 500; font-size: .98rem; cursor: pointer; white-space: nowrap;
}
/* soulignement qui se déploie depuis le centre */
.nav-liste > li > a::after, .nav-services summary::before {
  content: ""; position: absolute; left: .9em; right: .9em; bottom: .25em; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transition: transform .25s ease;
}
.nav-liste > li > a:hover::after, .nav-liste > li > a[aria-current="page"]::after,
.nav-services summary:hover::before, .nav-services.actif summary::before, .nav-services details[open] summary::before { transform: scaleX(1); }
.nav-liste > li > a[aria-current="page"], .nav-services.actif summary { color: var(--accent-fonce); }
.nav-services summary { list-style: none; padding-right: 1.6em; }
.nav-services summary::-webkit-details-marker { display: none; }
.nav-services summary::after {
  content: ""; position: absolute; right: .7em; top: 50%; width: .4em; height: .4em; margin-top: -.3em;
  border: solid currentColor; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); transition: transform .25s;
}
.nav-services details[open] summary::after { transform: translateY(.15em) rotate(-135deg); }
.nav-contact-mobile, .nav-pied { display: none; }
.entete-devis { flex: none; min-height: 48px; padding-inline: 1.4em; }

/* panneau « Services » */
.mega-intro .surtitre { margin-bottom: .8em; }
.mega-titre { font: 600 1.6rem/1.15 var(--titres); color: var(--noyer-2); margin-bottom: .5em; letter-spacing: -.015em; }
.mega-intro p:not(.surtitre):not(.mega-titre) { color: var(--texte-doux); font-size: .95rem; }
.mega-grille { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mega-carte { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: 18px; text-decoration: none; color: var(--texte); transition: background-color .2s; }
.mega-carte:hover, .mega-carte[aria-current="page"] { background: var(--sable); color: var(--texte); }
.mega-visuel { flex: none; width: 92px; aspect-ratio: 4 / 5; border-radius: 999px 999px 12px 12px; overflow: hidden; background: var(--lin); }
.mega-visuel picture, .mega-visuel img, .mega-visuel svg { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mega-carte:hover .mega-visuel img, .mega-carte:hover .mega-visuel svg { transform: scale(1.06); }
.mega-texte { display: flex; flex-direction: column; gap: 2px; }
.mega-num { font: 500 .8rem var(--titres); color: var(--accent); letter-spacing: .08em; }
.mega-texte strong { font: 600 1.12rem/1.2 var(--titres); color: var(--noyer-2); }
.mega-resume { font-size: .86rem; line-height: 1.45; color: var(--texte-doux); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@media (min-width: 1000px) {
  .nav-services { position: static; }
  .mega {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--creme); border-top: 1px solid var(--bord); box-shadow: 0 30px 50px -30px rgba(43, 31, 23, .45);
    animation: ouvrir .22s ease-out;
  }
  .mega-in { display: grid; grid-template-columns: 280px 1fr; gap: 48px; padding-block: 36px 40px; }
  .mega-grille { grid-template-columns: repeat(3, 1fr); }
  .mega-carte { flex-direction: column; align-items: flex-start; padding: 12px; }
  .mega-visuel { width: 100%; aspect-ratio: 16 / 10; border-radius: 14px; }
}
@media (min-width: 1000px) and (max-width: 1180px) {
  .entete-in { gap: 12px; }
  .logo-image { height: 54px; }
  .nav-liste > li > a, .nav-services summary { padding-inline: .6em; font-size: .93rem; }
  .nav-liste > li > a::after, .nav-services summary::before { left: .6em; right: .6em; }
}
@keyframes ouvrir { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* menu mobile : plein écran sombre */
.menu-bouton {
  margin-left: auto; display: none; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px;
  border: 1px solid var(--bord); border-radius: 999px; background: var(--blanc); color: var(--noyer-2);
  font: 600 .98rem var(--texte-police); cursor: pointer;
}
.menu-barres, .menu-barres::before, .menu-barres::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s, background-color .25s; }
.menu-barres::before, .menu-barres::after { content: ""; position: absolute; left: 0; }
.menu-barres::before { top: -6px; } .menu-barres::after { top: 6px; }
.menu-bouton[aria-expanded="true"] .menu-barres { background: transparent; }
.menu-bouton[aria-expanded="true"] .menu-barres::before { transform: translateY(6px) rotate(45deg); }
.menu-bouton[aria-expanded="true"] .menu-barres::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 999px) {
  .menu-bouton { display: inline-flex; }
  .entete-in { min-height: 72px; }
  .logo-image { height: 52px; }
  .entete-devis { display: none; }
  .nav {
    display: none; position: fixed; left: 0; right: 0; top: 72px; bottom: var(--barre-mobile);
    background: var(--noyer); overflow-y: auto; padding: 28px 22px 32px;
  }
  .nav.ouvert { display: block; animation: ouvrir .22s ease-out; }
  .nav-liste { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-liste > li { border-bottom: 1px solid rgba(201, 162, 107, .18); }
  .nav-liste > li > a, .nav-services summary { color: var(--blanc); font: 500 1.7rem/1.2 var(--titres); padding: .55em 0; }
  .nav-liste > li > a::after, .nav-services summary::before { display: none; }
  .nav-liste > li > a[aria-current="page"], .nav-services.actif summary { color: var(--laiton); }
  .nav-services summary::after { right: .3em; width: .35em; height: .35em; }
  .nav-contact-mobile { display: block; }
  .mega-intro { display: none; }
  .mega-in { padding: 4px 0 18px; }
  .mega-grille { grid-template-columns: 1fr; gap: 6px; }
  .mega-carte { color: #EADFD0; padding: 8px; }
  .mega-carte:hover, .mega-carte[aria-current="page"] { background: rgba(255, 255, 255, .06); color: #EADFD0; }
  .mega-visuel { width: 64px; }
  .mega-texte strong { color: var(--blanc); font-size: 1.1rem; }
  .mega-num { color: var(--laiton); }
  .mega-resume { color: #CDBBA4; }
  .nav-pied { display: block; margin: 28px 0 0; font-size: .85rem; color: #CDBBA4; }
  body.menu-ouvert { overflow: hidden; }
}
/* très petits écrans : logo réduit, bouton « Menu » en icône seule (le mot reste lu par les lecteurs d'écran) */
@media (max-width: 359px) {
  .logo-image { height: 42px; }
  .menu-bouton { padding: 0 13px; }
  .menu-libelle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- fil d'Ariane ---------- */
.fil-fond { background: var(--sable); }
.fil ol { display: flex; flex-wrap: wrap; gap: .4em; list-style: none; margin: 0; padding: 18px 0 0; font-size: .9rem; color: var(--texte-doux); }
.fil li + li::before { content: "/"; margin-right: .4em; opacity: .5; }

/* ---------- sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section-sable { background: var(--sable); }
.section-motif {
  background-color: var(--sable);
  background-image: linear-gradient(rgba(220, 203, 181, .45) 1px, transparent 1px), linear-gradient(90deg, rgba(220, 203, 181, .45) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center;
}
.section-sombre { background: var(--noyer); color: #D9C4A8; }
.section-sombre h2, .section-sombre h3 { color: var(--blanc); }
.section-sombre .surtitre { color: var(--laiton); }
.section-entete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-entete > div { max-width: 46rem; }
.section-entete h2 { margin-bottom: .3em; }
.intro { font-size: 1.15rem; color: var(--texte-doux); max-width: 44em; margin: 0; }
.sur-sombre .intro { color: #D9C4A8; }
.petit { font-size: .9rem; color: var(--texte-doux); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(40px, 6vw, 88px) clamp(64px, 8vw, 112px);
  background: radial-gradient(ellipse 60% 70% at 90% 0%, rgba(184, 20, 26, .10), transparent 60%), linear-gradient(180deg, var(--creme) 0%, var(--sable) 100%);
}
.hero-grille { display: grid; gap: 56px; align-items: center; }
.chapeau { font-size: 1.2rem; color: var(--texte-doux); max-width: 34em; }
.chapeau strong { color: var(--texte); }
.hero .boutons { margin-top: 1.8em; }
@media (min-width: 960px) { .hero-grille { grid-template-columns: 1.08fr .92fr; gap: 72px; } }

.hero-composition { position: relative; width: min(100%, 460px); margin-inline: auto; padding: 0 0 28px; }
.hero-composition::before {
  content: ""; position: absolute; inset: 22px -16px 10px 26px; z-index: 0;
  border: 2px solid var(--lin); border-radius: var(--arche);
}
.hero-arche { position: relative; z-index: 1; aspect-ratio: 4 / 5; border-radius: var(--arche); overflow: hidden; box-shadow: var(--ombre-forte); background: var(--lin); }
.hero-arche svg, .hero-arche img, .hero-arche picture { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px;
  background: var(--blanc); border-radius: 18px; padding: 14px 18px; box-shadow: var(--ombre-forte);
  font-size: .9rem; line-height: 1.3; color: var(--texte-doux);
}
.hero-badge strong { color: var(--noyer-2); }
.hero-garanties { position: absolute; z-index: 2; left: -12px; bottom: 64px; display: flex; align-items: center; gap: 10px; }
.hero-garanties .hero-badge { position: static; }
.sceau { width: 104px; height: 104px; flex: none; filter: drop-shadow(0 12px 20px rgba(43, 31, 23, .3)); }
.sceau-chiffre { font-family: var(--titres); letter-spacing: -.02em; }
.hero-badge-annees strong { font: 600 2.7rem/1 var(--titres); color: var(--accent); letter-spacing: -.03em; }
.hero-badge-contact { right: -10px; top: 46%; max-width: 250px; }
.hero-badge-contact strong { display: block; }
.pastille-photo { overflow: hidden; padding: 0; }
.pastille-photo picture, .pastille-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.photo-portrait { object-position: 48% 30%; }
.pastille-initiale { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--noyer-2); color: var(--blanc); font: 600 1.3rem var(--titres); }
.hero-nuancier { position: absolute; z-index: 2; right: 18px; bottom: 0; width: 196px; filter: drop-shadow(0 8px 16px rgba(43, 31, 23, .18)); }
@media (min-width: 1100px) {
  .hero-garanties { left: -56px; }
  .hero-badge-contact { right: -40px; }
}
@media (max-width: 480px) {
  .hero-badge { padding: 10px 14px; font-size: .82rem; }
  .hero-badge-annees strong { font-size: 2.1rem; }
  .hero-garanties { left: -6px; bottom: 48px; gap: 8px; }
  .sceau { width: 84px; height: 84px; }
  .hero-badge-contact { max-width: 210px; top: 44%; right: -6px; }
  .hero-nuancier { width: 150px; }
}

/* ---------- chiffres ---------- */
.chiffres { background: var(--noyer); color: #D9C4A8; }
.chiffres-liste { display: grid; grid-template-columns: repeat(2, 1fr); list-style: none; margin: 0 auto; padding-block: 8px; }
.chiffres-liste li { padding: 28px 16px 28px 0; border-bottom: 1px solid rgba(201, 162, 107, .18); }
.chiffres-liste li:nth-child(odd) { padding-right: 20px; }
.chiffre { display: flex; align-items: baseline; gap: .3em; margin: 0 0 .25em; }
.chiffre strong { font: 500 clamp(2.6rem, 1.8rem + 2.6vw, 3.8rem)/1 var(--titres); color: var(--laiton); letter-spacing: -.03em; }
.chiffre span { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blanc); }
.chiffres-liste li > p:last-child { margin: 0; font-size: .95rem; line-height: 1.45; max-width: 16em; }
@media (min-width: 900px) {
  .chiffres-liste { grid-template-columns: repeat(4, 1fr); padding-block: 20px; }
  .chiffres-liste li { border-bottom: 0; border-left: 1px solid rgba(201, 162, 107, .22); padding: 24px 28px; }
  .chiffres-liste li:first-child { border-left: 0; padding-left: 0; }
}

/* ---------- services (mosaïque) ---------- */
.bento { display: grid; gap: 20px; list-style: none; margin: 0; padding: 0; }
.bento-carte a {
  display: flex; flex-direction: column; height: 100%; position: relative; overflow: hidden;
  background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon);
  color: var(--texte); text-decoration: none; transition: box-shadow .3s, transform .3s;
}
.bento-carte a:hover { box-shadow: var(--ombre-forte); transform: translateY(-3px); color: var(--texte); }
.bento-visuel { aspect-ratio: 16 / 10; overflow: hidden; background: var(--lin); }
.bento-visuel svg, .bento-visuel img, .bento-visuel picture { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.bento-carte a:hover .bento-visuel svg, .bento-carte a:hover .bento-visuel img { transform: scale(1.045); }
.bento-corps { display: flex; flex-direction: column; flex: 1; padding: 22px 26px 26px; }
.bento-num { font: 500 .95rem var(--titres); color: var(--accent); letter-spacing: .08em; margin-bottom: 6px; }
.bento-corps h3 { font-size: 1.45rem; margin-bottom: .35em; }
.bento-corps p { color: var(--texte-doux); font-size: .98rem; margin-bottom: 1.2em; }
.bento-corps .lien-fleche { margin-top: auto; }

.bento-1 a { min-height: 440px; justify-content: flex-end; border: 0; background: var(--noyer); }
.bento-1 .bento-visuel { position: absolute; inset: 0; aspect-ratio: auto; }
.bento-1 .bento-corps { position: relative; flex: none; padding: 140px 30px 30px; background: linear-gradient(180deg, rgba(43, 31, 23, 0) 0%, rgba(43, 31, 23, .78) 45%, rgba(43, 31, 23, .94) 100%); }
.bento-1 h3 { color: var(--blanc); font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); }
.bento-1 p { color: #EADFD0; max-width: 30em; }
.bento-1 .bento-num, .bento-1 .lien-fleche { color: #F2A99F; }

@media (min-width: 700px) and (max-width: 999px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-1 { grid-column: span 2; }
}
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(3, 1fr); grid-template-areas: "a a b" "a a c" "d e e"; }
  .bento-1 { grid-area: a; } .bento-2 { grid-area: b; } .bento-3 { grid-area: c; }
  .bento-4 { grid-area: d; } .bento-5 { grid-area: e; }
  .bento-1 a { min-height: 100%; }
  .bento-5 a { flex-direction: row; }
  .bento-5 .bento-visuel { width: 46%; aspect-ratio: auto; flex: none; }
}

/* ---------- interlocuteur unique ---------- */
.interlocuteur-grille { display: grid; gap: 48px; align-items: center; }
.interlocuteur-schema { background: var(--creme); border-radius: 28px; padding: clamp(16px, 3vw, 32px); box-shadow: var(--ombre-forte); }
.schema { width: 100%; }
.schema-nom { font-family: var(--titres); }
.schema-flux { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 6 8; animation: flux 1.4s linear infinite; }
.schema-flux-fort { stroke-width: 3.5; }
@keyframes flux { to { stroke-dashoffset: -28; } }
@media (min-width: 960px) { .interlocuteur-grille { grid-template-columns: 1fr 1.05fr; gap: 72px; } }

/* ---------- devise d'Alexandre ---------- */
.devise { background: var(--noyer); color: #D9C4A8; padding-block: clamp(64px, 9vw, 112px); text-align: center; }
.devise-in { max-width: 860px; }
.devise .icone-citation { width: 56px; fill: var(--laiton); opacity: .55; margin: 0 auto 18px; }
.devise blockquote { margin: 0; }
.devise blockquote p { font: italic 500 clamp(2rem, 1.3rem + 3vw, 3.6rem)/1.12 var(--titres); color: var(--blanc); letter-spacing: -.02em; margin: 0; }
.devise-auteur { margin: 22px 0 0; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--laiton); }
.devise-texte { max-width: 36em; margin: 18px auto 0; font-size: 1.05rem; }

/* ---------- étapes ---------- */
.etapes { counter-reset: etape; display: grid; gap: 36px; list-style: none; margin: 0; padding: 0; }
.etapes li { counter-increment: etape; position: relative; padding-left: 76px; }
.etapes li::before {
  content: counter(etape, decimal-leading-zero); position: absolute; left: 0; top: -4px;
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  border: 1.5px solid var(--laiton); color: var(--laiton); font: 500 1.1rem var(--titres);
}
.etapes li:not(:last-child)::after { content: ""; position: absolute; left: 27px; top: 60px; bottom: -32px; width: 1px; background: rgba(201, 162, 107, .35); }
.etapes h3 { font-size: 1.3rem; }
.etapes p { margin: 0; color: #D9C4A8; }
@media (min-width: 900px) {
  .etapes { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .etapes li { padding-left: 0; padding-top: 84px; }
  .etapes li::before { top: 0; }
  .etapes li:not(:last-child)::after { left: 70px; right: -16px; top: 27px; bottom: auto; width: auto; height: 1px; }
}

/* ---------- avant / après ---------- */
.grille-realisations { columns: 3 300px; column-gap: 28px; }
.grille-realisations .avant-apres { break-inside: avoid; margin-bottom: 28px; display: block; }
.avant-apres { margin: 0; background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); overflow: hidden; transition: box-shadow .3s; }
.avant-apres:hover { box-shadow: var(--ombre); }
.ba-cadre { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--lin); touch-action: pan-y; }
.ba-calque { position: absolute; inset: 0; }
.ba-calque picture, .ba-calque img, .ba-calque svg { width: 100%; height: 100%; object-fit: cover; }
.ba-apres { clip-path: inset(0 0 0 var(--pos)); }
.ba-etiquette { position: absolute; top: 14px; padding: 5px 13px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ba-avant .ba-etiquette { left: 14px; background: rgba(43, 31, 23, .8); color: var(--blanc); }
.ba-apres .ba-etiquette { right: 14px; background: var(--accent); color: var(--blanc); }
.ba-curseur { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; }
.ba-poignee { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--blanc); z-index: 2; pointer-events: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.ba-poignee::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--blanc) no-repeat center / 26px; box-shadow: var(--ombre-forte);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23B8141A'%3E%3Cpath d='M9 6l-6 6 6 6V6zm6 0v12l6-6-6-6z'/%3E%3C/svg%3E");
}
.ba-curseur:focus-visible + .ba-poignee::after { outline: 3px solid var(--accent); outline-offset: 2px; }
.avant-apres figcaption { padding: 20px 22px 24px; }
.avant-apres figcaption strong { display: block; font: 600 1.25rem/1.25 var(--titres); color: var(--noyer-2); margin-bottom: 6px; }
.ba-categorie { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.avant-apres figcaption p { color: var(--texte-doux); font-size: .97rem; margin-bottom: 12px; }
.etiquettes { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.etiquettes li { font-size: .8rem; padding: 4px 11px; border-radius: 999px; background: var(--sable); color: var(--texte-doux); }

/* ---------- avis ---------- */
.icone-citation { width: 44px; height: auto; fill: var(--accent); opacity: .3; margin-bottom: 14px; }
/* carrousel d'avis : défilement manuel uniquement (flèches, points, glisser), jamais automatique */
.carrousel { margin-bottom: 32px; }
.carrousel-piste {
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  scroll-padding-inline: 4px;
  padding: 4px 4px 12px; margin: -4px -4px 0; scrollbar-width: none;
}
.carrousel-piste::-webkit-scrollbar { display: none; }
.carrousel-piste:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: var(--rayon); }
.carrousel-piste .avis { scroll-snap-align: start; display: flex; flex-direction: column; }
.carrousel-piste .avis blockquote { flex: 1; }
.carrousel-piste { align-items: start; } /* téléphone : chaque carte à la hauteur de son texte */
@media (min-width: 700px) { .carrousel-piste { grid-auto-columns: calc((100% - 16px) / 2); align-items: stretch; } }
@media (min-width: 1000px) { .carrousel-piste { grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; } }
.carrousel-commandes { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; }
.carrousel-commandes[hidden] { display: none; }
.carrousel-fleche {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  border: 1.5px solid var(--bord); background: var(--blanc); color: var(--noyer-2); transition: border-color .2s, opacity .2s;
}
.carrousel-fleche:hover { border-color: var(--noyer-2); }
.carrousel-fleche[data-sens="-1"] .icone { transform: rotate(180deg); }
.carrousel-fleche:disabled { opacity: .35; cursor: default; }
.carrousel-points { display: flex; gap: 2px; }
.carrousel-points button { width: 28px; height: 28px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.carrousel-points button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--lin); transition: background-color .2s, transform .2s; }
.carrousel-points button[aria-current="true"]::before { background: var(--accent); transform: scale(1.25); }
.avis { margin: 0; background: var(--blanc); border-radius: var(--rayon); padding: 30px; border: 1px solid var(--bord); }
.avis blockquote p { white-space: pre-line; } /* garde les paragraphes de l'avis d'origine */
.avis blockquote { margin: 0 0 14px; font: italic 400 1.15rem/1.55 var(--titres); color: var(--noyer-2); }
.avis figcaption { display: flex; flex-direction: column; gap: 2px; }
.avis figcaption strong { color: var(--noyer-2); }
.avis figcaption span { font-size: .85rem; color: var(--texte-doux); }
.etoiles { display: inline-flex; gap: 2px; margin-bottom: 12px; }
.etoiles svg { width: 18px; height: 18px; fill: #C9A26B; }
.etoiles-vides { display: inline-flex; gap: 2px; }
.etoiles-vides svg { fill: var(--lin); }
/* page Avis : tous les avis en colonnes (lecture de haut en bas, du plus récent au plus ancien), précédés de la note moyenne */
.avis-grille { columns: 2 22rem; column-gap: 16px; margin-bottom: 32px; }
.avis-grille .avis { break-inside: avoid; margin-bottom: 16px; }
.avis-resume { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; margin: 0 0 24px; color: var(--noyer-2); }
.avis-resume strong { font: 600 2.6rem/1 var(--titres); }
.avis-resume span { font: 500 1.2rem var(--titres); }
.avis-resume .avis-resume-detail { font: 400 .92rem var(--texte-police); color: var(--texte-doux); margin-left: 10px; }
.mention-avis { font-size: .85rem; color: var(--texte-doux); max-width: 52rem; margin: -12px 0 24px; }
.avis-vide { background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); padding: clamp(28px, 5vw, 48px); margin-bottom: 28px; max-width: 54rem; }
.avis-vide p { font: italic 400 clamp(1.25rem, 1rem + 1vw, 1.6rem)/1.45 var(--titres); color: var(--noyer-2); margin: 0; }

/* ---------- zone ---------- */
.zone-grille { display: grid; gap: 48px; align-items: center; }
.zone-communes { display: grid; gap: 22px; }
.zone-communes h3 { font: 700 .78rem var(--texte-police); letter-spacing: .14em; text-transform: uppercase; color: var(--texte-doux); margin-bottom: .7em; }
.communes { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.communes li { padding: 5px 13px; border-radius: 999px; background: var(--creme); border: 1px solid var(--bord); font-size: .9rem; }
.zone-carte { background: var(--creme); border-radius: 28px; padding: 14px; box-shadow: var(--ombre-forte); }
.carte { width: 100%; border-radius: 20px; }
@media (min-width: 1000px) { .zone-grille { grid-template-columns: 1.05fr .95fr; gap: 72px; } }

/* ---------- appel à l'action ---------- */
.cta-section { padding-block: clamp(56px, 8vw, 104px); }
.cta {
  position: relative; overflow: hidden; display: grid; gap: 32px; align-items: center;
  padding: clamp(36px, 6vw, 72px); border-radius: 32px; color: #FBE3DF;
  background: radial-gradient(ellipse 70% 90% at 100% 100%, rgba(255, 255, 255, .12), transparent 60%), var(--accent-fonce);
}
.cta::before, .cta::after { content: ""; position: absolute; border: 2px solid rgba(255, 255, 255, .14); border-radius: 999px 999px 0 0; pointer-events: none; }
.cta::before { right: -40px; bottom: -40px; width: 300px; height: 380px; }
.cta::after { right: 40px; bottom: -40px; width: 160px; height: 240px; }
.cta h2 { color: var(--blanc); }
.cta .surtitre { color: #F2A99F; }
.cta p { font-size: 1.15rem; max-width: 32em; }
.cta .boutons { margin-top: 1.6em; }
.cta .bouton-principal { background: var(--blanc); color: var(--accent-fonce); box-shadow: none; }
.cta .bouton-principal:hover { background: var(--sable); }
.cta .bouton-secondaire { background: transparent; color: var(--blanc); border-color: rgba(255, 255, 255, .55); }
.cta .bouton-secondaire:hover { border-color: var(--blanc); color: var(--blanc); }
.cta-decor { position: relative; z-index: 1; justify-self: center; width: 240px; }
@media (min-width: 900px) { .cta { grid-template-columns: 1fr auto; } }
@media (max-width: 899px) { .cta-decor { display: none; } }

/* ---------- en-tête des pages intérieures ---------- */
.page-entete { background: linear-gradient(180deg, var(--sable) 0%, var(--creme) 100%); padding-block: clamp(28px, 4vw, 48px) clamp(48px, 6vw, 80px); }
.page-entete h1 { font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.8rem); }
.page-entete .chapeau { margin-bottom: 0; }
.page-entete .boutons { margin-top: 1.8em; }
.page-entete-grille { display: grid; gap: 40px; align-items: center; }
.page-entete-visuel { aspect-ratio: 5 / 4; border-radius: var(--arche); overflow: hidden; box-shadow: var(--ombre-forte); background: var(--lin); max-width: 520px; width: 100%; justify-self: center; }
.page-entete-visuel svg, .page-entete-visuel img, .page-entete-visuel picture { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) { .page-entete-grille { grid-template-columns: 1.15fr .85fr; gap: 64px; } .page-entete-visuel { aspect-ratio: 4 / 4.4; } }

/* ---------- pages de contenu ---------- */
.contenu-grille { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); } /* minmax(0) : un tableau large ne peut plus élargir la page */
@media (min-width: 1000px) { .contenu-grille { grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; align-items: start; } }
.texte { max-width: 44em; }
.texte > h2:first-child { margin-top: 0; }
.texte h2 { margin-top: 1.7em; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
.texte ul { list-style: none; padding: 0; }
.texte ul li { position: relative; padding-left: 34px; margin-bottom: .75em; }
.texte ul li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23B8141A'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.4 14.2-4.3-4.3 1.4-1.4 2.9 2.9 6-6 1.4 1.4z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.texte ol { counter-reset: num; list-style: none; padding: 0; }
.texte ol li { counter-increment: num; position: relative; padding-left: 48px; margin-bottom: 1em; }
.texte ol li::before { content: counter(num); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--noyer-2); color: var(--blanc); font: 600 .95rem var(--titres); }
.encadre { position: relative; background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 28px 32px 28px 84px; margin: 2em 0; }
.encadre::before { content: "“"; position: absolute; left: 26px; top: 6px; font: 600 5rem/1 var(--titres); color: var(--accent); opacity: .45; }
.encadre p { font: italic 400 1.15rem/1.55 var(--titres); color: var(--noyer-2); }
.encadre p:last-child { margin: 0; }

.faq { display: grid; gap: 10px; }
.faq details { background: var(--blanc); border: 1px solid var(--bord); border-radius: 16px; padding: 0 22px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--ombre); }
.faq summary { cursor: pointer; padding: 18px 36px 18px 0; font-weight: 600; color: var(--noyer-2); position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sable); color: var(--accent); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--texte-doux); }

.colonne-laterale { display: grid; gap: 20px; }
@media (min-width: 1000px) { .colonne-laterale { position: sticky; top: 104px; } }
.carte-devis { background: var(--noyer); color: #D9C4A8; border-radius: var(--rayon); padding: 30px; box-shadow: var(--ombre-forte); position: relative; overflow: hidden; }
.carte-devis::after { content: ""; position: absolute; right: -50px; top: -60px; width: 160px; height: 200px; border: 2px solid rgba(201, 162, 107, .2); border-radius: 999px 999px 0 0; pointer-events: none; }
.carte-devis h2 { color: var(--blanc); font-size: 1.7rem; }
.carte-devis .surtitre { color: var(--laiton); }
.carte-devis p { color: #D9C4A8; }
.carte-devis a:not(.bouton) { color: #F1E7DA; }
.carte-devis .bouton { width: 100%; margin-top: 10px; }
.carte-devis .bouton-secondaire { background: transparent; color: var(--blanc); border-color: rgba(255, 255, 255, .35); }
.carte-devis .coordonnees .icone { color: var(--laiton); }
.liste-check { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.liste-check li { display: flex; align-items: center; gap: 10px; }
.liste-check .icone { color: var(--laiton); }
.autres-services { background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 26px; }
.autres-services h2 { font-size: 1.25rem; }
.autres-services ul { list-style: none; margin: 0; padding: 0; }
.autres-services li { border-top: 1px solid var(--sable); }
.autres-services ul a { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; text-decoration: none; font-weight: 500; color: var(--texte); }
.autres-services ul a:hover { color: var(--accent-fonce); }
.icone-fleche { color: var(--accent); transition: transform .2s; }
.autres-services a:hover .icone-fleche { transform: translateX(4px); }
.autres-services ol { margin: 0; padding-left: 1.2em; }
.autres-services ol li { border: 0; margin-bottom: .6em; }

.photo-artisan { border-radius: var(--arche); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--ombre-forte); }
.photo-artisan svg, .photo-artisan img, .photo-artisan picture { width: 100%; height: 100%; object-fit: cover; }

/* ---------- contact & formulaire ---------- */
.coordonnees { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.coordonnees li { display: flex; gap: 10px; align-items: flex-start; }
.coordonnees .icone { color: var(--accent); margin-top: .2em; }
.formulaire { background: var(--blanc); border: 1px solid var(--bord); border-radius: 28px; padding: clamp(22px, 4vw, 44px); box-shadow: var(--ombre-forte); }
.champs-2 { display: grid; gap: 0 20px; }
@media (min-width: 700px) { .champs-2 { grid-template-columns: 1fr 1fr; } }
.champ { margin: 0 0 20px; }
.champ label, .champ legend { display: block; font-weight: 600; margin-bottom: 7px; color: var(--noyer-2); }
fieldset.champ { border: 0; padding: 0; min-width: 0; }
.champ input:not([type="checkbox"]):not([type="radio"]), .champ textarea, .champ select {
  width: 100%; min-height: 52px; padding: 12px 16px; border: 1.5px solid #B9A58C; border-radius: 14px;
  font: inherit; color: var(--texte); background: var(--creme); transition: border-color .2s, box-shadow .2s;
}
.champ textarea { resize: vertical; }
.champ input:focus, .champ textarea:focus, .champ select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px rgba(184, 20, 26, .18); }
.champ small { display: block; color: var(--texte-doux); font-size: .88rem; margin-top: 5px; }
.formulaire .utilisateur-invalide { border-color: #B3261E !important; }
.choix-grille { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); }
.choix-ligne { display: flex; flex-wrap: wrap; gap: 8px; }
.choix {
  display: flex !important; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; cursor: pointer;
  border: 1.5px solid var(--bord); border-radius: 12px; background: var(--creme);
  font-weight: 500 !important; color: var(--texte) !important; transition: border-color .2s, background-color .2s;
}
.choix:hover { border-color: var(--bois); }
.choix:has(input:checked) { border-color: var(--accent); background: #FBE3DF; }
.choix input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
.mention-rgpd { font-size: .88rem; color: var(--texte-doux); }
.formulaire .bouton-principal { width: 100%; }
@media (min-width: 700px) { .formulaire .bouton-principal { width: auto; } }
.piege { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- pied de page ---------- */
.pied { background: var(--noyer); color: #E9DCCB; padding-top: 72px; overflow: hidden; }
.pied a { color: #F1E7DA; text-decoration: none; }
.pied a:hover { color: var(--blanc); text-decoration: underline; }
.pied h2 { color: var(--laiton); font: 700 .78rem var(--texte-police); letter-spacing: .16em; text-transform: uppercase; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied ul li { margin-bottom: .6em; }
.pied-grille { display: grid; gap: 40px; padding-bottom: 40px; }
@media (min-width: 800px) { .pied-grille { grid-template-columns: 1.6fr 1fr 1fr; } }
.pied .logo-nom { color: var(--blanc); }
.pied .logo-sous { color: #F2A99F; }
.pied-logo { display: flex; align-items: center; gap: 12px; }
/* Le logo (texte noir) est posé sur un cartouche crème pour rester lisible sur le fond sombre. */
.pied-logo-cartouche { display: inline-block; background: var(--creme); border-radius: 20px; padding: 16px 24px; margin: 0 0 22px; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5); }
.pied-logo-cartouche .logo-image { height: 88px; width: auto; }
@media (max-width: 480px) { .pied-logo-cartouche .logo-image { height: 72px; } }
.pied .coordonnees .icone { color: var(--laiton); }
.pied-signature {
  margin: 0 auto; white-space: nowrap; overflow: hidden; text-overflow: clip;
  font: 600 clamp(3rem, 11.5vw, 9.5rem)/.9 var(--titres); letter-spacing: -.04em;
  color: rgba(241, 231, 218, .07); user-select: none;
}
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid rgba(241, 231, 218, .14); padding-block: 22px; font-size: .88rem; }
.pied-bas p { margin: 0; }

/* ---------- barre d'appel mobile ---------- */
.barre-mobile {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: var(--barre-mobile);
  display: grid; grid-template-columns: 1fr 1fr; background: var(--blanc); border-top: 1px solid var(--bord);
  box-shadow: 0 -6px 20px rgba(43, 31, 23, .1); padding-bottom: env(safe-area-inset-bottom);
}
.barre-mobile a { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--noyer-2); }
.barre-mobile .barre-devis { background: var(--accent); color: var(--blanc); }
@media (min-width: 1000px) {
  body { padding-bottom: 0; }
  .barre-mobile { display: none; }
}

/* ---------- page zone d'intervention ---------- */
.zone-lien { margin: 24px 0 0; }
.zone-carte-entete { max-width: 520px; width: 100%; justify-self: center; }
.grille-communes { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); align-items: start; }
.tableau-communes { background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 24px 26px; }
.tableau-communes h3 { font-size: 1.25rem; }
.tableau-communes table, .tableau-comparatif { width: 100%; border-collapse: collapse; font-size: .97rem; }
.tableau-communes th, .tableau-communes td { padding: 9px 0; border-top: 1px solid var(--sable); text-align: left; font-weight: 400; }
.tableau-communes thead th { border-top: 0; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--texte-doux); font-weight: 700; }
.tableau-communes td, .tableau-communes thead th:last-child { text-align: right; color: var(--accent-fonce); font-variant-numeric: tabular-nums; }
.tableau-communes tbody th { color: var(--texte); }

/* ---------- conseils ---------- */
.grille-articles { display: grid; gap: 24px; list-style: none; margin: 0; padding: 0; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); }
.carte-article a { display: flex; flex-direction: column; height: 100%; background: var(--blanc); border: 1px solid var(--bord); border-radius: var(--rayon); overflow: hidden; color: var(--texte); text-decoration: none; transition: box-shadow .3s, transform .3s; }
.carte-article a:hover { box-shadow: var(--ombre-forte); transform: translateY(-3px); color: var(--texte); }
.carte-article-visuel { aspect-ratio: 16 / 9; overflow: hidden; background: var(--lin); }
.carte-article-visuel svg { width: 100%; height: 100%; transition: transform .6s ease; }
.carte-article a:hover .carte-article-visuel svg { transform: scale(1.045); }
.carte-article-corps { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 26px; }
.carte-article-corps h3 { font-size: 1.3rem; }
.carte-article-corps p { color: var(--texte-doux); font-size: .97rem; }
.carte-article-corps .lien-fleche { margin-top: auto; }
.signature-article { display: flex; align-items: center; gap: 12px; margin: 1.6em 0 0; font-size: .92rem; color: var(--texte-doux); line-height: 1.4; }
.signature-article a { font-weight: 600; }
.texte ul.sources li { font-size: .92rem; }
.texte ul.sources li::before { width: 16px; height: 16px; opacity: .6; }
.lien-guide { background: var(--sable); border-radius: 14px; padding: 14px 18px; font-weight: 500; }
.indice-defilement { display: none; font-size: .85rem; color: var(--texte-doux); margin: 0 0 6px; }
@media (max-width: 600px) { .indice-defilement { display: block; } }
.tableau-defilant { overflow-x: auto; margin: 1.2em 0 2em; border: 1px solid var(--bord); border-radius: 16px; background: var(--blanc); }
.tableau-comparatif { min-width: 520px; }
.tableau-comparatif th, .tableau-comparatif td { padding: 12px 16px; border-top: 1px solid var(--sable); text-align: left; vertical-align: top; }
.tableau-comparatif thead th { border-top: 0; background: var(--noyer-2); color: var(--blanc); font-family: var(--titres); font-weight: 600; font-size: 1.05rem; }
.tableau-comparatif tbody th { font-weight: 600; color: var(--noyer-2); white-space: nowrap; }

/* ---------- texte de référencement local (accueil) ---------- */
.texte-local h2 { max-width: 22ch; }
.texte-local-colonnes { color: var(--texte-doux); }
@media (min-width: 900px) { .texte-local-colonnes { columns: 3; column-gap: 48px; } .texte-local-colonnes p { break-inside: avoid; } }

/* ---------- apparition au défilement ---------- */
.revele { transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.revele.attente { opacity: 0; transform: translateY(28px); }

/* ---------- illustrations ---------- */
.illustration { width: 100%; height: 100%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .revele.attente { opacity: 1; transform: none; }
}
@media print {
  .bandeau-haut, .entete, .barre-mobile, .cta-section, .formulaire, body::after { display: none; }
  body { padding: 0; background: #fff; }
}
