/* Franchini — site « services » (une page qu'on fait défiler) : toitures & zinguerie, couverture métallique & bardages.
   Même identité que le site du groupe (franchini_group_card, style « carte de visite ») : fond blanc, encre du logo,
   filets et accents rouges, signature manuscrite. Règles reprises de sa feuille de style (14/10), seulement celles
   qu'utilise ce site ; ajouts propres à ce site signalés « (services) ». */

@font-face { font-family: "Montserrat"; src: url("../fonts/Montserrat.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Allura"; src: url("../fonts/Allura.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --red: #d0101c;
  --red-dark: #a80d17;
  --red-soft: #fcefef;
  --ink: #1d0007;      /* encre du logo */
  --text: #2a2526;
  --muted: #645d5e;
  --line: #e9e4e4;
  --soft: #f8f6f6;
  --white: #ffffff;
  --radius: 10px;
  --maxw: 1320px;
  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --script: "Allura", "Brush Script MT", cursive;
  /* échelle d'espacements verticaux (celle du site du groupe) : une seule valeur par rôle, utilisée partout */
  --section-y: 56px;     /* haut ET bas de chaque section */
  --hero-y: 48px;        /* haut et bas du bandeau d'accueil */
  --head-eyebrow: 8px;   /* sur-titre -> titre */
  --head-title: 16px;    /* titre -> filet rouge */
  --head-rule: 20px;     /* filet rouge -> texte / contenu qui suit */
  --block-gap: 32px;     /* fin d'un en-tête de section -> son contenu ; deux blocs successifs d'une même section */
}
@media (max-width: 620px) { :root { --section-y: 40px; --hero-y: 32px; --block-gap: 24px; } }   /* téléphone */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h, 77px); }   /* un clic du menu s'arrête sous l'en-tête fixe (hauteur posée par main.js) */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }   /* height:auto : les attributs width/height ne figent pas la hauteur */
[hidden] { display: none !important; }   /* (services) un élément masqué le reste, quel que soit son display */
a { color: var(--red); }
a[href^="tel:"] { white-space: nowrap; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

mark.todo { background: #ffe066; color: #3a2e00; padding: 0 4px; border-radius: 3px; font-weight: 700; }
.ph { position: relative; }
.ph::after { content: "Photo provisoire — non représentative"; position: absolute; left: 10px; bottom: 10px; background: rgba(255,255,255,.92); color: var(--ink); font-size: .72rem; padding: 3px 8px; border-radius: 4px; }

/* Le filet rouge court de la carte, sous un titre */
.rule { display: block; width: 56px; height: 3px; background: var(--red); margin: var(--head-title) 0 var(--head-rule); border: 0; }
.eyebrow { display: block; line-height: 1.2; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .28em; font-size: .78rem; margin-bottom: var(--head-eyebrow); }
.eyebrow.red { color: var(--red); }
/* le titre est suivi du filet rouge, qui porte l'écart : pas de marge propre sous le titre d'un en-tête */
.section-head h2, .primes-head h2, .contact-head h2, .page-hero h1 { margin-bottom: 0; }
.page-hero .container > :last-child, .prose > :last-child { margin-bottom: 0; }
.prose > :first-child { margin-top: 0; }

/* En-tête : logo et menu des sections */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 30px; width: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; white-space: nowrap; }
.brand-name small { font-size: .62rem; letter-spacing: .38em; font-weight: 500; }
.brand-name strong { font-size: 1.15rem; font-weight: 800; letter-spacing: .06em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a { white-space: nowrap; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; padding: 8px 12px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.active { border-bottom-color: var(--red); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--ink); font: inherit; font-weight: 600; padding: 8px 14px; border-radius: 6px; cursor: pointer; }

/* Boutons */
.btn { display: inline-block; font-weight: 700; text-decoration: none; padding: 13px 24px; border-radius: 6px; border: 2px solid transparent; font-size: .95rem; transition: background .15s, color .15s, border-color .15s; text-align: center; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--white); }

/* Accueil : comme la carte — logo + signature | filet rouge vertical | message aligné à gauche */
.hero { padding: var(--hero-y) 0; }
.hero-photo { background: linear-gradient(rgba(255,255,255,.84), rgba(255,255,255,.84)), url("../img/photos/hero.jpg") center / cover no-repeat; border-bottom: 1px solid var(--line); }
.hero-card { display: grid; grid-template-columns: 1fr 1.65fr; align-items: center; }   /* logo face au texte : centré (exception de Fred, 12/10) */
.hero-brand { padding-right: 44px; text-align: center; }
.hero-logo { width: 300px; max-width: 100%; margin: 0 auto; }
.hero-brand .signature { padding: 10px 0 0; gap: 12px; }
.hero-brand .signature::before, .hero-brand .signature::after { max-width: 50px; }
.hero-brand .signature p { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.hero-text { border-left: 2px solid var(--red); padding: 6px 0 6px 44px; }
.hero h1 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: .55em; }
.hero-lead { font-size: 1.08rem; color: var(--text); margin-bottom: 12px; }
.hero-score { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; margin-bottom: 8px; }   /* (services) la note Google dès le haut de page */
.hero-score .stars { color: var(--red); letter-spacing: .12em; }
.hero-score strong { color: var(--red); font-weight: 700; }
.hero-score:hover span:last-child { text-decoration: underline; }
.hero-contact .icon-line { margin: 6px 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* Lignes de contact à pictogramme rouge, comme sur la carte */
.icon-line { display: flex; align-items: center; gap: 14px; margin: 10px 0; color: var(--ink); font-weight: 600; }
.icon-line svg { width: 22px; height: 22px; fill: var(--red); flex: none; }
.icon-line > span, .icon-line > a { border-left: 1px solid #d9cfcf; padding-left: 14px; color: var(--ink); text-decoration: none; }
.icon-line a.big { font-size: 1.25rem; font-weight: 700; }

/* La signature manuscrite entre deux filets rouges */
.signature { display: flex; align-items: center; justify-content: center; gap: 28px; margin: 0; padding: 26px 0; }
.signature::before, .signature::after { content: ""; flex: 1; height: 2px; background: var(--red); max-width: 220px; }
.signature p { font-family: var(--script); font-size: clamp(2.1rem, 4.6vw, 3.2rem); color: var(--ink); margin: 0; line-height: 1.2; white-space: nowrap; }
.signature u { text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 8px; }

/* (services) Bande « En règle et certifiés » sous l'accueil : le libellé, puis les repères cochés ; le libellé est sur la
   ligne de base de la 1re rangée (règle d'alignement : des blocs côte à côte commencent à la même hauteur) */
.strengths { background: var(--soft); border-bottom: 1px solid var(--line); }
.strengths .container { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 32px; padding-top: 18px; padding-bottom: 18px; }
.strengths .checks { display: grid; grid-template-columns: repeat(3, max-content); gap: 8px 48px; }   /* 6 repères : 3 colonnes × 2 rangées, sans débordement de 901 à 1920 px */
.strengths-title { margin: 0; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .22em; color: var(--ink); white-space: nowrap; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; }
.checks li { position: relative; padding-left: 22px; color: var(--text); font-size: .93rem; white-space: nowrap; }
.checks li::before { content: ""; position: absolute; left: 3px; top: 5px; width: 5px; height: 10px; border: solid var(--red); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Sections */
.section { padding: var(--section-y) 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 760px; margin-bottom: var(--block-gap); }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head > p:last-child { margin-bottom: 0; }

/* (services) Nos métiers : deux tuiles d'aiguillage vers les deux sections */
.poles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }   /* même hauteur, hauts alignés (stretch) */
.pole { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.pole:hover, .pole:focus-visible { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(29,0,7,.12); }
.pole-photo img { aspect-ratio: 21 / 9; object-fit: cover; width: 100%; }
.pole-body { padding: 24px 28px 26px; display: flex; flex-direction: column; flex: 1; border-top: 3px solid var(--red); }
.pole-entity { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .24em; color: var(--red); margin-bottom: 6px; }
.pole-body h3 { font-size: 1.5rem; margin-bottom: .35em; }
.pole-body p { color: var(--muted); margin-bottom: 14px; }
.pole-more { margin-top: auto; font-weight: 700; color: var(--red); }
.pole:hover .pole-more, .pole:focus-visible .pole-more { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .pole { transition: none; } .pole:hover { transform: none; } }

/* Services d'un métier : trois cartes */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.service-photo img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.service-body { padding: 24px; flex: 1; display: flex; flex-direction: column; border-top: 3px solid var(--red); }
.service-body p { color: var(--muted); }
.service ul { margin: 0 0 18px; padding: 0; list-style: none; }
.service li { padding: 5px 0 5px 20px; position: relative; border-bottom: 1px solid var(--line); font-size: .95rem; }
.service li:last-child { border-bottom: 0; }
.service li::before { content: ""; position: absolute; left: 0; top: 16px; width: 9px; height: 2px; background: var(--red); }
.service .btn { margin-top: auto; align-self: flex-start; }
.urgent { margin-top: var(--block-gap); display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; background: var(--red-soft); padding: 22px 28px; border-radius: var(--radius); border-left: 5px solid var(--red); color: var(--ink); }
.urgent strong { font-size: 1.12rem; }

/* Primes : en-tête en display: contents, grille à zones ; l'encadré va du haut du premier paragraphe au bas du bouton */
.primes-teaser { display: grid; grid-template-columns: 0.72fr 1fr; grid-template-areas: "eyebrow eyebrow" "title title" "rule ." "text box"; column-gap: 48px; row-gap: 0; }
.primes-head { display: contents; }
.primes-teaser .eyebrow { grid-area: eyebrow; }
.primes-teaser h2 { grid-area: title; }
.primes-teaser .rule { grid-area: rule; }
.primes-text { grid-area: text; display: flex; flex-direction: column; }
.primes-text .btn { margin-top: auto; align-self: flex-start; }
.primes-link { font-weight: 600; margin: 8px 0 0; }
.primes-box { grid-area: box; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.primes-box h3 { font-size: 1.05rem; margin-bottom: 6px; }
.primes-box ul { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; margin: 0 0 8px; padding: 0; list-style: none; }
.primes-box li { margin-bottom: 4px; padding-left: 20px; position: relative; line-height: 1.5; }
.primes-box li::before { content: ""; position: absolute; left: 0; top: 11px; width: 9px; height: 2px; background: var(--red); }
.primes-note { color: var(--muted); font-size: .9rem; line-height: 1.5; margin: 0; }

/* Réalisations (services, 01/11) : l'avant/après, les filtres, la grille de vignettes, la visionneuse */
.see-photos { font-weight: 600; margin: 20px 0 0; }   /* lien d'une section métier vers sa galerie filtrée */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filter { font: inherit; font-weight: 600; font-size: .9rem; padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--white); }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }   /* vignettes d'une même rangée : même hauteur (stretch) */
.shot { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.shot-open { display: block; overflow: hidden; background: var(--soft); position: relative; }
.shot-badge { position: absolute; left: 8px; top: 8px; background: var(--red); color: var(--white); font-size: .66rem; line-height: 1.3; font-weight: 700; letter-spacing: .02em; word-spacing: -.15em; text-transform: uppercase; white-space: nowrap; padding: 3px 6px; border-radius: 4px; }
@media (max-width: 1100px) { .shot-badge { font-size: .6rem; } }   /* tuiles plus étroites : le badge reste ≤ 40 % de la tuile */
@media (max-width: 1023px) { .shot-badge { left: 6px; top: 6px; font-size: 9.5px; font-weight: 600; letter-spacing: 0; word-spacing: -.3em; text-transform: none; padding: 2px 4px; border-radius: 3px; } }   /* tablette et téléphone : « Avant/après » en minuscules, petit (comme le site du groupe) ; espaces resserrés en CSS, le texte reste « Avant / après » */   /* tuile avant/après */
.shot-open img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .25s ease; }
.shot-open:hover img, .shot-open:focus-visible img { transform: scale(1.04); }
.shot figcaption { padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 2px; border-top: 3px solid var(--red); flex: 1; }
.shot-tag { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }   /* espacement serré : « Couverture métallique & bardages » tient sur une ligne à l'ordinateur */
.shot-title { font-size: .92rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.shot-place { font-size: .85rem; color: var(--muted); padding-left: 16px; position: relative; }
.shot-place::before { content: ""; position: absolute; left: 1px; top: .42em; width: 8px; height: 8px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--red); }   /* petit repère de lieu */
.shots-more { margin-top: 22px; }
.shots-more .btn { font-family: inherit; cursor: pointer; }
.shots-more:has(> [hidden]) { display: none; }
.fb-link { font-weight: 600; margin: 22px 0 0; }

/* Visionneuse plein écran */
html.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(12, 6, 8, .94); display: flex; align-items: center; justify-content: center; padding: 56px 72px 24px; }
.lb-figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb-frame { display: flex; align-items: center; justify-content: center; min-height: 0; }
.lb-img { max-width: calc(100vw - 144px); max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-pair { display: flex; gap: 12px; align-items: flex-start; }   /* avant | après, côte à côte */
.lb-half { margin: 0; position: relative; }
.lb-half img { display: block; width: auto; height: auto; max-width: calc((100vw - 156px) / 2); max-height: calc(100vh - 150px); border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-tag { position: absolute; left: 10px; top: 10px; background: var(--ink); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; }
.lb-half + .lb-half .lb-tag { background: var(--red); }
.lb-caption { margin-top: 14px; color: #fff; font-size: 1rem; font-weight: 600; text-align: center; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.lb-count { color: rgba(255,255,255,.65); font-weight: 500; }
.lb-btn { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; font: inherit; font-size: 1.6rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-btn:hover, .lb-btn:focus-visible { background: var(--red); outline: none; }
.lb-close { top: 12px; right: 14px; font-size: 1.2rem; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); font-size: 2.2rem; }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); font-size: 2.2rem; }

/* Avis */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.section-head:has(+ .reviews-score) { margin-bottom: 0; }   /* la ligne de note fait partie de l'en-tête */
.reviews-score { margin: 0 0 var(--block-gap); color: var(--text); }
.reviews-score strong { color: var(--red); font-weight: 600; font-size: 1.15rem; }
.review .stars { display: block; color: var(--red); letter-spacing: .12em; font-size: .95rem; margin-bottom: 6px; }
.review { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.review::before { content: ""; display: block; width: 28px; height: 3px; background: var(--red); margin-bottom: 12px; }
.review cite { color: var(--muted); font-style: normal; font-size: .9rem; }

/* Contact : la carte de visite reproduite + le formulaire de devis */
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--block-gap) 56px; align-items: start; }
.contact-head { grid-column: 1 / -1; margin-bottom: calc(-1 * var(--block-gap)); } /* annule l'écart de rangée : sous le filet, la même marge que partout */
.quote-title { font-size: 1.35rem; color: var(--ink); margin: 0 0 12px; }   /* (services) plus de phrase d'intro sous le titre (Fred, 01/11) : l'écart titre → formulaire est porté ici */
.quote-form { display: grid; gap: 6px; margin-top: 4px; }
.quote-form .field { display: grid; grid-template-columns: 170px 1fr; column-gap: 16px; align-items: center; }
.quote-form .field label { margin: 0; }
.quote-form .field:has(textarea) { align-items: start; }
.quote-form .field:has(textarea) label { padding-top: 6px; }
.quote-form .btn { justify-self: start; cursor: pointer; font-family: inherit; margin-top: 6px; }
.quote-form [hidden] { display: none; }
.quote-after { margin: 6px 0 0; padding: 12px 16px; background: var(--red-soft); border-left: 4px solid var(--red); border-radius: 6px; font-size: .92rem; color: var(--ink); line-height: 1.5; }   /* (services) message après « Envoyer » */
.quote-after a { font-weight: 700; white-space: nowrap; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: .92rem; color: var(--text); background: var(--white); border: 1px solid #d9d2d2; border-radius: 6px; padding: 6px 12px; }
.field textarea { resize: vertical; min-height: 72px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.field select.prefilled { background-color: var(--red-soft); }   /* (services) choix posé par un bouton « Demander un devis » : léger fond rosé, pas de cadre rouge (lu comme une erreur — Fred, 14/10) */
/* Liste déroulante dessinée par la page (fond opaque) quand le navigateur le permet (Chrome, Brave, Edge récents) ;
   ailleurs, et sur téléphone (≤ 620 px), le menu natif. Évite que le bouton rouge transparaisse à travers le menu translucide de macOS. */
@supports (appearance: base-select) { @media (min-width: 621px) {
  .field select, .field select::picker(select) { appearance: base-select; }
  .field select::picker(select) { background: var(--white); border: 1px solid #d9d2d2; border-radius: 6px; box-shadow: 0 12px 30px rgba(29, 0, 7, .18); padding: 6px 0; max-width: calc(100vw - 32px); }
  .field select optgroup { font-weight: 700; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 8px 14px 2px; }
  .field select option { font-weight: 400; font-size: .95rem; letter-spacing: 0; text-transform: none; color: var(--text); padding: 8px 14px 8px 22px; white-space: normal; }
  .field select > option { padding-left: 14px; }
  .field select option:hover, .field select option:focus-visible { background: var(--red-soft); }
  .field select option:checked { font-weight: 600; color: var(--ink); }
  .field select option::checkmark { display: none; }
} }
.bcard { background: var(--white); border-radius: 14px; box-shadow: 0 18px 50px rgba(29,0,7,.13); padding: 34px 34px 10px; }
.bcard-top { display: grid; grid-template-columns: 1fr 1.6fr; gap: 0; align-items: center; }   /* logo face au texte : centré (exception de Fred, 12/10) */
.bcard-logo { padding-right: 22px; }
.bcard-logo img { width: 100%; }
.bcard .icon-line { font-size: .95rem; font-weight: 500; margin: 8px 0; }
.bcard .icon-line a { font-weight: 700; }
.bcard a[href^="mailto:"] { white-space: nowrap; }   /* l'e-mail sur une ligne ; sur téléphone il peut passer à la ligne au @ (deux morceaux .mail-part) */
.mail-part { display: inline-block; }
.mail-lines { display: flex; flex-direction: column; gap: 2px; }   /* (services, 01/11) les deux adresses e-mail l'une sous l'autre ; seule celle sur hotmail est cliquable (la nouvelle n'est peut-être pas encore active) */
.mail-lines a, .mail-text { white-space: nowrap; }
.nobr { white-space: nowrap; }
.bcard-info { border-left: 2px solid var(--red); padding-left: 26px; }
.bcard-name { color: var(--red); font-weight: 700; font-size: 1.3rem; margin: 0; }
.bcard-role { font-weight: 700; color: var(--ink); margin: 2px 0 10px; }
.bcard-companies { margin: 0; color: var(--ink); line-height: 1.5; }
.bcard-companies a { color: var(--ink); text-decoration: none; }
.bcard-companies a:hover { color: var(--red); }
.bcard-info .rule { width: 90px; margin: 14px 0 12px; }
.bcard .signature { padding: 18px 0 12px; gap: 16px; }
.bcard .signature p { font-size: clamp(1.7rem, 3vw, 2.2rem); }
/* la carte s'étire jusqu'au bas du formulaire, signature en bas */
@media (min-width: 901px) {
  .contact > div:nth-child(2) { align-self: stretch; display: flex; flex-direction: column; }
  .contact .bcard { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
}

/* Mentions légales */
.page-hero { background: var(--soft); border-bottom: 1px solid var(--line); padding: var(--section-y) 0; }
.page-hero h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.page-hero p { color: var(--muted); font-size: 1.08rem; max-width: 40em; }
.container.prose { max-width: var(--maxw); }   /* même bord gauche que le titre de la page */
.prose > * { max-width: 820px; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.3em; }
table.plain { border-collapse: collapse; width: 100%; margin: 10px 0 18px; font-size: .94rem; }
table.plain th, table.plain td { border-bottom: 1px solid var(--line); padding: 9px 10px; text-align: left; vertical-align: top; }
table.plain th { color: var(--ink); font-weight: 700; }
table.kv th { width: 34%; }

/* Pied de page clair */
.site-footer { background: var(--soft); border-top: 3px solid var(--red); padding: var(--section-y) 0 28px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer-logo { width: 220px; }
.site-footer h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .22em; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--red); }
.footer-group { margin: 16px 0 0; max-width: 300px; font-size: .86rem; line-height: 1.5; color: var(--muted); }   /* (services) sous le logo : lien discret vers le site du groupe */
.footer-group a { color: var(--ink); font-weight: 600; white-space: nowrap; }   /* « découvrir le groupe → » d'un seul tenant */

@media (max-width: 1200px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 24px 18px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav a.active { border-bottom-color: var(--red); }
  .header-inner { position: relative; }
  /* accueil : logo au-dessus du message */
  .hero-card { grid-template-columns: 1fr; }
  .hero-brand { padding: 0 0 24px; }
  .hero-text { border-left: 0; border-top: 2px solid var(--red); padding: 24px 0 0; }
}
@media (max-width: 940px) { .services { grid-template-columns: 1fr 1fr; } }   /* (services) sous 940 px, 3 cartes de services ne laissent plus leurs titres sur une ligne : listes décalées (mesuré de 901 à 928 px, 01/11) */
@media (max-width: 900px) {
  .strengths .checks { grid-template-columns: repeat(2, max-content); }
  .contact, .primes-teaser, .poles { grid-template-columns: 1fr; }
  .services, .reviews { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: repeat(3, 1fr); }
  .primes-teaser { grid-template-areas: "eyebrow" "title" "rule" "text" "box"; }
  .primes-box { margin-top: var(--block-gap); }
  .pole-photo img { aspect-ratio: 16 / 9; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .container { padding: 0 16px; }
  .contact > * { min-width: 0; }   /* une colonne ne s'élargit pas au-delà de l'écran */
  .bcard .mail-lines { font-size: .8rem; }   /* (services) les deux adresses de la carte tiennent chacune sur une ligne à 390 px */   /* l'e-mail de la carte peut passer à la ligne au @ */
  .services, .reviews, .footer-grid { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr 1fr; gap: 12px; }
  .shot figcaption { padding: 8px 10px 10px; }
  .shot-title { font-size: .85rem; }
  .shot-tag { font-size: .6rem; letter-spacing: .06em; }
  .lightbox { padding: 56px 8px 16px; }
  .lb-img { max-width: calc(100vw - 16px); max-height: calc(100vh - 170px); }
  .lb-pair { flex-direction: column; align-items: center; gap: 8px; }   /* téléphone : avant au-dessus, après en dessous */
  .lb-half img { max-width: calc(100vw - 16px); max-height: calc((100vh - 186px) / 2); }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-caption { padding: 0 56px; font-size: .92rem; }
  .checks li { white-space: normal; }
  .strengths .checks { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .signature { gap: 14px; }
  .signature::before, .signature::after { display: none; }
  .signature p { white-space: normal; text-align: center; }
  .bcard { padding: 24px 20px 6px; }
  .bcard-top { grid-template-columns: 1fr; }
  .bcard-logo { padding: 0 0 18px; max-width: 240px; }
  .bcard-info { border-left: 0; border-top: 2px solid var(--red); padding: 18px 0 0; }
  .quote-form .field { grid-template-columns: 1fr; }
  .quote-form .field label { margin-bottom: 6px; }
  .quote-form .field:has(textarea) label { padding-top: 0; }
  table.kv, table.kv tbody, table.kv tr, table.kv th, table.kv td { display: block; width: auto; }
  table.kv th { border-bottom: 0; padding-bottom: 0; }
}
@media (max-width: 360px) {
  .bcard a[href^="mailto:"], .bcard .mail-text { white-space: normal; }   /* très petit écran : coupure au @ tolérée */
  .quote-after a[href^="mailto:"] { white-space: normal; overflow-wrap: anywhere; }
}
@media (max-width: 400px) {
  .nobr { white-space: normal; }
  .brand img { display: none; }
  .brand-name strong { font-size: 1rem; }
}
