/* Groupe Pharmabois — feuille de style du site
   Charte (maquette Figma) : crème #F6F1EC, rose #F0E4DC, beige #E3CBBB,
   terre cuite #B97A50, titres #C0845A, encre #1D1D1B.
   Polices : Playfair Display (titres) et Inter (texte). */

:root {
  /* fonds : charte commune aux sites du Groupe (reprise du site Résirenfor) */
  --creme: #F2EEE4;
  --papier: #FAF8F2;
  --sable: #E6DFCF;
  --trait: #D8D0BE;
  --foret: #163020;
  --foret2: #1F3F2A;
  --sur-foret: #F2EEE4;
  --sur-foret2: #B8C9BC;
  --encre: #1C2B21;
  --encre2: #4F5C52;
  /* accents Pharmabois (maquette Figma) */
  --terre: #B97A50;
  --terre-fonce: #9A6139;
  --titre: #A96C40;
  --chene: #8A5829;
  --chene-clair: #D8A868;
  --brun: #7E5234;
  --rose: #E6DFCF;
  --beige: #E6DFCF;
  --sur-terre: #FFF8F2;
  --sur-terre2: #F6E3D4;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --radius: 16px;
  --shell: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.14; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); color: var(--titre); }
h3 { font-size: clamp(1.45rem, 2.2vw, 1.85rem); color: var(--titre); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }
sup { font-size: 0.62em; line-height: 0; vertical-align: super; }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: block;
  margin: 0 0 16px;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--chene);
}
.lead { font-size: 1.12rem; color: var(--encre2); }
.muted { color: var(--encre2); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--encre); color: var(--creme); padding: 12px 20px;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--terre); outline-offset: 3px; border-radius: 4px; }

/* ---------------------------------------------------------- en-tête */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 238, 228, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--trait);
}
.site-header .shell {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding-top: 14px; padding-bottom: 8px;
}
.brand { display: inline-flex; }
.brand img { height: 58px; width: auto; }

.nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 28px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: inline-block; padding: 6px 0;
  color: var(--encre); text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav a:hover { color: var(--terre); border-bottom-color: var(--beige); }
.nav a[aria-current="page"] { color: var(--titre); border-bottom-color: var(--titre); }

.nav-toggle {
  display: none; align-items: center; gap: 8px;
  background: none; border: 1px solid var(--trait); border-radius: 999px;
  padding: 9px 16px; cursor: pointer; color: var(--encre);
  font: 500 0.9rem var(--sans);
}
.nav-toggle span { display: block; width: 16px; height: 2px; background: currentColor; position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

/* ---------------------------------------------------------- boutons & liens */
.btns { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 600; text-decoration: none;
  border: 1.5px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--terre); color: #fff; }
.btn-primary:hover { background: var(--terre-fonce); color: #fff; }
.btn-ghost { border-color: var(--encre); color: var(--encre); }
.btn-ghost:hover { background: var(--encre); color: var(--creme); }
.btn-light { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn-light:hover { background: #fff; color: var(--encre); }
.btn-creme { background: var(--creme); color: var(--encre); }
.btn-creme:hover { background: #fff; color: var(--terre-fonce); }

.lien {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px;
  transition: color .2s, gap .2s;
}
.lien:hover { color: var(--terre); gap: 9px; }
.lien svg { width: 12px; height: 12px; flex: none; }

/* ---------------------------------------------------------- sections */
section { padding: 96px 0; }
.band-creme { background: var(--creme); }
.band-papier { background: var(--papier); }
.band-rose { background: var(--rose); }
.band-beige, .band-sable { background: var(--sable); }
.band-terre { background: var(--terre); color: var(--sur-terre); }
.band-terre h2, .band-terre h3 { color: #fff; }
.band-terre .eyebrow { color: var(--sur-terre2); }
.band-foret { background: var(--foret); color: var(--sur-foret); }
.band-foret h2, .band-foret h3 { color: var(--sur-foret); }
.band-foret p, .band-foret li { color: var(--sur-foret2); }
.band-foret .eyebrow, .band-foret .num { color: var(--chene-clair); }
.band-foret .chaine h3 { color: var(--sur-foret); }
.band-foret .chaine p { color: var(--sur-foret2); }

.section-head { max-width: 50rem; margin-bottom: 56px; }
.section-head h2 + p { margin-top: 18px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------------------------------------------------------- bandeau photo */
.hero {
  position: relative; padding: 0;
  min-height: clamp(460px, 74vh, 700px);
  display: flex; align-items: flex-end;
  color: #fff; background: var(--foret); overflow: hidden;
}
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 26, 18, 0.74) 0%, rgba(14, 26, 18, 0.36) 55%, rgba(14, 26, 18, 0.14) 100%),
    linear-gradient(0deg, rgba(14, 26, 18, 0.55) 0%, rgba(14, 26, 18, 0) 55%);
}
.hero .shell { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 72px; }
.hero .eyebrow { color: var(--chene-clair); }
.hero h1 { color: #fff; max-width: 14ch; margin-bottom: 18px; }
.hero .lead { color: rgba(255, 255, 255, 0.9); max-width: 40rem; margin-bottom: 32px; }
.hero-court { min-height: clamp(360px, 52vh, 520px); }

/* ---------------------------------------------------------- introduction */
.intro { position: relative; padding-bottom: 128px; }
.intro .shell { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.intro h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.intro .texte { font-size: 1.08rem; color: var(--encre2); padding-top: 34px; }
.intro .texte strong { color: var(--encre); }
.intro::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: clamp(120px, 16vw, 220px); height: 26px;
  background: var(--terre); border-top-right-radius: 26px;
}

/* ---------------------------------------------------------- pourquoi */
.pourquoi .shell { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.atouts { list-style: none; margin: 32px 0 0; padding: 0; }
.atouts li {
  position: relative; padding: 14px 0 14px 30px;
  border-top: 1px solid var(--trait);
  font-size: 1.02rem; color: var(--encre2);
}
.atouts li:last-child { border-bottom: 1px solid var(--trait); }
.atouts li::before {
  content: ""; position: absolute; left: 0; top: 23px;
  width: 10px; height: 10px; background: var(--terre); border-radius: 2px 6px 2px 6px;
}
.atouts strong { color: var(--encre); }
.photo { border-radius: var(--radius); overflow: hidden; background: var(--beige); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.pourquoi .photo { aspect-ratio: 4 / 3.3; box-shadow: 0 30px 60px -30px rgba(22, 48, 32, 0.35); }

/* ---------------------------------------------------------- expertises */
.bloc {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
  margin-top: 112px;
}
.bloc:first-of-type { margin-top: 0; }
.bloc .num {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; color: var(--chene);
  margin-bottom: 16px;
}
.bloc .num::after { content: ""; width: 48px; height: 1px; background: var(--terre); opacity: .5; }
.bloc h3 { margin-bottom: 18px; }
.bloc .txt p { color: var(--encre2); }
.bloc .txt p a { color: var(--chene); font-weight: 500; text-decoration-color: rgba(138, 88, 41, 0.45); }
.bloc .txt p a:hover { color: var(--terre); }
.cadre { position: relative; }
.cadre .photo { position: relative; z-index: 1; aspect-ratio: 4 / 3; }
.cadre::before { content: ""; position: absolute; z-index: 0; background: var(--terre); }
.bloc.img-droite .cadre::before { right: -26px; top: -26px; bottom: -26px; width: 52%; border-radius: 0 140px 0 28px; }
.bloc.img-gauche .cadre::before { left: -26px; top: -26px; width: 46%; height: 62%; border-radius: 140px 0 28px 0; }

/* ---------------------------------------------------------- réalisation emblématique */
.carte {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  background: var(--creme); border-radius: 24px; padding: 28px;
}
.carte::after {
  content: ""; position: absolute; right: 0; bottom: 0; z-index: 0;
  width: 30%; height: 42%; background: var(--terre); border-top-left-radius: 30px;
}
.carte .txt { padding: 20px 8px 20px 24px; }
.carte h3 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.carte .tag {
  display: inline-block; margin: 14px 0 20px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--chene); background: var(--sable); border-radius: 999px; padding: 6px 14px;
}
.carte p { color: var(--encre2); margin-bottom: 26px; }
.carte .photo { position: relative; z-index: 1; aspect-ratio: 3 / 2; border-radius: 18px; }

/* ---------------------------------------------------------- diaporama (réalisation) */
.carte-diapo { grid-template-columns: 1.1fr 0.9fr; }
.diapo {
  position: relative; z-index: 1; overflow: hidden;
  aspect-ratio: 4 / 5; border-radius: 18px; background: var(--foret);
}
.diapo-piste {
  display: flex; height: 100%;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.diapo-piste::-webkit-scrollbar { display: none; }
.diapo-piste:focus-visible { outline: 3px solid var(--terre); outline-offset: -3px; }
.diapo-vue { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.diapo-vue img { width: 100%; height: 100%; object-fit: cover; }
.diapo-vue figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 64px 178px 20px 22px;
  background: linear-gradient(180deg, rgba(14, 26, 18, 0) 0%, rgba(14, 26, 18, 0.74) 100%);
  color: #fff; font-size: 0.92rem; font-weight: 500; line-height: 1.4;
}
.diapo-controles { position: absolute; right: 14px; bottom: 14px; z-index: 2; display: flex; align-items: center; gap: 8px; }
.diapo-compteur { color: rgba(255, 255, 255, 0.9); font-size: 0.8rem; letter-spacing: 0.06em; margin-right: 6px; font-variant-numeric: tabular-nums; }
.diapo-compteur b { color: #fff; font-weight: 600; }
.diapo button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(242, 238, 228, 0.94); color: var(--encre);
  transition: background .2s, color .2s, transform .2s;
}
.diapo button:hover { background: #fff; color: var(--terre); transform: scale(1.05); }
.diapo button svg { width: 20px; height: 20px; }
.carte-paysage { grid-template-columns: 0.85fr 1.15fr; }
.carte-paysage h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.carte-paysage .diapo { aspect-ratio: 4 / 3; }
.cadre .diapo { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.cadre-portrait .diapo, .cadre-portrait .photo { aspect-ratio: 4 / 5; }
.diapo-plan { background: #fff; }
.diapo-plan img { object-fit: contain; padding: 14px 14px 70px; }
.diapo-plan figcaption { background: var(--foret); padding-top: 18px; }
@media (max-width: 960px) {
  .carte-diapo, .carte-paysage { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .carte-paysage .diapo { aspect-ratio: 1 / 1; }
  .diapo-vue.diapo-plan img { padding: 8px 6px 112px; }
  .diapo-vue.diapo-plan figcaption { padding-top: 14px; }
  .diapo-vue figcaption { padding: 56px 18px 64px; font-size: 0.88rem; }
  .diapo-controles { left: 14px; right: 14px; justify-content: flex-end; }
  .diapo-compteur { margin-right: auto; }
}

/* ---------------------------------------------------------- nous contacter */
.contact-band { text-align: center; }
.contact-band h2 { font-size: clamp(2.1rem, 4vw, 3rem); margin-bottom: 16px; }
.contact-band p { color: var(--sur-foret2); max-width: 36rem; margin-left: auto; margin-right: auto; }
.pastilles { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 36px 0 34px; }
.pastille {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--creme); color: var(--encre); text-decoration: none;
  font-size: 0.95rem; font-weight: 500;
  padding: 12px 20px; border-radius: 999px;
  transition: transform .2s, box-shadow .2s;
}
.pastille:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.35); }
.pastille svg { width: 18px; height: 18px; flex: none; stroke: var(--terre); }
.contact-band .lien { color: #fff; }

/* ---------------------------------------------------------- page d'accueil */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
.stat { border-top: 2px solid var(--chene); padding-top: 20px; }
.stat b {
  display: block; font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.4rem, 4.6vw, 3.4rem); line-height: 1; color: var(--encre); margin-bottom: 12px;
}
.stat span { font-size: 0.95rem; color: var(--encre2); }

.metiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.metier {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--papier); border: 1px solid var(--trait); border-radius: 20px;
  overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.metier:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(22, 48, 32, 0.45); }
.metier .photo { border-radius: 0; aspect-ratio: 4 / 3; }
.metier .photo img { transition: transform .6s; }
.metier:hover .photo img { transform: scale(1.04); }
.metier .corps { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.metier .num { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; color: var(--chene); }
.metier h3 { font-size: 1.6rem; }
.metier p { font-size: 0.95rem; color: var(--encre2); margin: 0; }
.metier .lien { margin-top: auto; align-self: flex-start; padding-top: 14px; border-bottom: none; color: var(--terre); }
.metier-urgence { background: var(--terre); border-color: var(--terre); color: #fff; }
.metier-urgence h3, .metier-urgence .num, .metier-urgence .lien { color: #fff; }
.metier-urgence p { color: var(--sur-terre2); }

.chaine { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.chaine .photo { aspect-ratio: 4 / 3; margin-bottom: 20px; border-radius: 14px; }
.chaine .photo-entiere { background: var(--sable); }
.chaine .photo-entiere img { object-fit: contain; }
.chaine .num { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; color: var(--chene); margin-bottom: 6px; }
.chaine h3 { font-size: 1.25rem; line-height: 1.25; margin-bottom: 8px; color: var(--encre); }
.chaine p { font-size: 0.95rem; color: var(--encre2); }

/* galerie de chantiers */
.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.galerie a { text-decoration: none; }
.galerie .photo { aspect-ratio: 4 / 3; margin-bottom: 12px; }
.galerie .photo img { transition: transform .6s; }
.galerie a:hover .photo img { transform: scale(1.04); }
.galerie b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.2rem; color: var(--titre); }
.galerie span { font-size: 0.9rem; color: var(--encre2); }

/* page contact */
.coord { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; align-items: center; }
.coord h2 { margin-bottom: 18px; }
.coord-liste { list-style: none; margin: 28px 0 36px; padding: 0; }
.coord-liste li { display: flex; align-items: center; gap: 16px; padding: 8px 0; }
.coord-liste .ico {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 46px; height: 46px; border-radius: 999px; background: var(--sable);
}
.coord-liste .ico svg { width: 20px; height: 20px; stroke: var(--terre); }
.coord-liste a { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 600; text-decoration: none; color: var(--encre); overflow-wrap: anywhere; }
.coord-liste a:hover { color: var(--terre); text-decoration: underline; }
.cadre-equipe { margin: 0 26px 0 0; }
.cadre-equipe::before { right: -26px; top: -26px; bottom: 38px; width: 52%; border-radius: 0 140px 0 28px; }
.cadre-equipe .photo { aspect-ratio: 3 / 2; box-shadow: 0 30px 60px -30px rgba(22, 48, 32, 0.4); }
.cadre-equipe figcaption {
  position: relative; z-index: 1; margin-top: 16px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--chene);
}
.adresses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.adresse {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--papier); border: 1px solid var(--trait); border-radius: 20px;
}
.adresse .photo { border-radius: 0; aspect-ratio: 4 / 3; }
.adresse .corps { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 28px; }
.adresse .eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.adresse .eyebrow svg { width: 15px; height: 15px; stroke: var(--terre); }
.adresse h3 { font-size: 1.6rem; margin-bottom: 10px; }
.adresse p { color: var(--encre2); }
.adresse .lien { margin-top: auto; align-self: flex-start; color: var(--terre); }
.adresse .corps p { margin-bottom: 20px; }
.adresse-urgence { background: var(--terre); border-color: var(--terre); }
.adresse-urgence h3, .adresse-urgence .lien { color: #fff; }
.adresse-urgence p { color: var(--sur-terre2); }
.adresse-urgence .eyebrow { color: var(--sur-terre2); }
.adresse-urgence .eyebrow svg { stroke: #fff; }
.adresse-urgence .lien:hover { color: var(--sur-terre); }

/* pages texte */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.7rem; margin: 48px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--encre2); }
.a-completer { background: #FCEBD9; color: var(--brun); border-radius: 4px; padding: 0 4px; }

/* ---------------------------------------------------------- pied de page */
.site-footer { background: var(--foret); color: var(--sur-foret2); border-top: 1px solid rgba(242, 238, 228, 0.12); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-top: 64px; padding-bottom: 48px; }
.site-footer .logo img { height: 56px; width: auto; margin-bottom: 18px; }
.site-footer p { color: var(--sur-foret2); font-size: 0.95rem; max-width: 24rem; }
.site-footer h4 {
  margin: 0 0 16px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--chene-clair);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; font-size: 0.95rem; color: var(--sur-foret2); }
.site-footer li a { text-decoration: none; color: var(--sur-foret); }
.site-footer li a:hover { color: #fff; text-decoration: underline; }
.reseaux { display: flex; gap: 12px; margin-top: 22px; }
.reseaux a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(242, 238, 228, 0.25);
  color: var(--sur-foret); transition: background .2s, color .2s, border-color .2s;
}
.reseaux a:hover { background: var(--terre); border-color: var(--terre); color: #fff; }
.reseaux svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }
.legal { background: var(--foret); color: var(--sur-foret2); font-size: 0.85rem; }
.legal .shell { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding-top: 18px; padding-bottom: 22px; border-top: 1px solid rgba(242, 238, 228, 0.18); }
.legal nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.legal .lien { font-size: 0.72rem; color: var(--sur-foret); }
.legal .lien:hover { color: var(--chene-clair); }
.site-footer .pied-filiale { margin-top: 14px; font-size: 0.9rem; }
.site-footer .pied-filiale a { color: var(--sur-foret); text-decoration: underline; text-decoration-color: rgba(216, 168, 104, 0.6); }
.site-footer .pied-filiale a:hover { color: var(--chene-clair); }

/* ---------------------------------------------------------- filiale Résirenfor */
.filiale .shell { display: grid; grid-template-columns: 1fr 1.08fr; gap: 72px; align-items: center; }
.filiale-cadre { position: relative; margin: 0 0 0 26px; }
.filiale-cadre::before {
  content: ""; position: absolute; z-index: 0; left: -26px; bottom: -26px;
  width: 58%; height: 64%; background: var(--foret); border-radius: 28px 0 140px 0;
}
.filiale-cadre .photo { position: relative; z-index: 1; aspect-ratio: 4 / 5; box-shadow: 0 30px 60px -30px rgba(22, 48, 32, 0.4); }
.filiale-logo { height: 64px; width: auto; margin: 0 0 22px -4px; }
.filiale h2 { margin-bottom: 20px; }
.filiale .lead strong { color: var(--encre); }
.familles { list-style: none; margin: 28px 0; padding: 0; }
.familles li {
  display: grid; grid-template-columns: 9.5rem 1fr; gap: 6px 20px; align-items: baseline;
  padding: 13px 0; border-top: 1px solid var(--trait); color: var(--encre2); font-size: 0.98rem;
}
.familles li:last-child { border-bottom: 1px solid var(--trait); }
.familles b { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; color: var(--foret); }
.filiale-txt > p:not(.lead) { color: var(--encre2); }
.filiale-txt em { font-style: italic; color: var(--encre); }
.filiale .btns { align-items: center; gap: 18px 28px; margin-top: 30px; }
.filiale .btn svg { width: 16px; height: 16px; flex: none; }
.filiale .lien { color: var(--foret); }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .nav ul { gap: 2px 20px; }
  .nav a { font-size: 0.85rem; }
  .chaine, .stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  section { padding: 72px 0; }
  html { scroll-padding-top: 80px; }
  .site-header .shell { flex-direction: row; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
  .brand img { height: 40px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--creme); border-bottom: 1px solid var(--trait);
    box-shadow: 0 20px 30px -20px rgba(0, 0, 0, 0.25);
    display: none; max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 6px 24px 18px; }
  .nav li { border-top: 1px solid var(--trait); }
  .nav li:first-child { border-top: none; }
  .nav a { display: block; padding: 14px 0; font-size: 1rem; border-bottom: none; }
  .nav a[aria-current="page"] { border-bottom: none; }

  .intro .shell, .pourquoi .shell, .bloc, .carte, .coord { grid-template-columns: 1fr; gap: 36px; }
  .filiale .shell { grid-template-columns: 1fr; gap: 56px; }
  .filiale-cadre { max-width: 460px; margin: 0 18px 0 44px; }
  .intro .texte { padding-top: 0; }
  .bloc { margin-top: 88px; }
  .bloc.img-droite .cadre { order: 2; }
  .bloc .cadre { margin: 0 18px; }
  .cadre-equipe { margin: 0 18px 0 0; }
  .carte { padding: 18px; }
  .carte .txt { padding: 12px 8px 4px; }
  .carte::after { width: 46%; height: 26%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .chaine { grid-template-columns: repeat(2, 1fr); }
  .metiers, .galerie { grid-template-columns: repeat(2, 1fr); }
  .adresses { grid-template-columns: 1fr 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .site-footer .cols > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }
  .shell { padding: 0 16px; }
  .hero .shell { padding-bottom: 48px; }
  .hero .lead { font-size: 1.02rem; }
  .intro { padding-bottom: 96px; }
  .bloc .cadre { margin: 0 14px; }
  .bloc.img-droite .cadre::before { right: -14px; top: -14px; bottom: -14px; border-radius: 0 90px 0 20px; }
  .bloc.img-gauche .cadre::before { left: -14px; top: -14px; border-radius: 90px 0 20px 0; }
  .stats { gap: 24px; }
  .stats, .chaine, .metiers, .galerie, .adresses, .site-footer .cols { grid-template-columns: 1fr; }
  .pastille { width: 100%; justify-content: center; }
  .filiale-cadre { margin: 0 0 0 14px; }
  .cadre-equipe { margin: 0 14px 0 0; }
  .cadre-equipe::before { right: -14px; top: -14px; bottom: 30px; border-radius: 0 90px 0 20px; }
  .filiale-cadre::before { left: -14px; bottom: -14px; border-radius: 20px 0 90px 0; }
  .filiale-logo { height: 52px; }
  .familles li { grid-template-columns: 1fr; gap: 2px; }
  .legal .shell { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media print {
  .site-header, .nav-toggle, .btns, .contact-band { display: none; }
  body { background: #fff; }
}

/* ---------------------------------------------------------- page d'entrée */
.splash-body { margin: 0; background: #1E0E06; }
.splash {
  --or-1: #F3DDA6; --or-2: #D4A75C; --or-3: #9C6A2A; --ivoire: #F6EDDE; --nuit: #1E0E06;
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto; justify-items: center;
  color: var(--ivoire); font-family: var(--sans);
  background:
    radial-gradient(ellipse 72% 58% at 50% 54%, rgba(214, 142, 78, .52) 0%, rgba(150, 78, 36, .22) 46%, rgba(0, 0, 0, 0) 76%),
    linear-gradient(162deg, #6A3316 0%, #43200E 42%, #1E0E06 100%);
}
.splash-grain {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  opacity: .12; mix-blend-mode: overlay; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.splash-photos { position: absolute; inset: 0; z-index: 0; }
.splash-photo { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 2s ease; }
.splash-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.splash-photo.actif { opacity: 1; }
.splash-photo.actif img { animation: splash-zoom 9s ease-out forwards; }
@keyframes splash-zoom { from { transform: scale(1.04); } to { transform: scale(1.13); } }
.splash-voile {
  position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity 2.2s ease;
  background:
    radial-gradient(ellipse 36% 42% at 50% 52%, rgba(30, 13, 5, .6) 0%, rgba(30, 13, 5, 0) 100%),
    linear-gradient(180deg, rgba(30, 13, 5, .88) 0%, rgba(30, 13, 5, .28) 28%, rgba(30, 13, 5, .28) 62%, rgba(30, 13, 5, .92) 100%),
    rgba(96, 46, 18, .30);
}
.photos-actives .splash-voile { opacity: 1; }

.splash-haut { position: relative; z-index: 2; padding: clamp(30px, 6.5vh, 70px) 24px 0; text-align: center; }
.splash-logo { margin: 0; opacity: 0; animation: splash-apparition 1.5s 3.1s ease forwards; }
.splash-logo img { width: min(66vw, 430px); height: auto; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .35)); }

.splash-centre { position: relative; z-index: 2; align-self: center; display: grid; place-items: center; padding: 28px 0; }
.splash-centre::before {
  content: ""; position: absolute; left: 50%; top: 56%; width: min(90vw, 620px); aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(243, 221, 166, .30) 0%, rgba(243, 221, 166, .08) 38%, rgba(243, 221, 166, 0) 64%);
  opacity: 0; animation: splash-halo 2.6s 1.6s ease forwards;
}
.symbole {
  position: relative; height: clamp(170px, 33vh, 310px); aspect-ratio: 148 / 244;
  filter: drop-shadow(0 22px 40px rgba(18, 7, 2, .55));
}
.symbole svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.symbole::after {
  content: ""; position: absolute; left: 50%; bottom: -10px; height: 1px; width: 0;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(212, 167, 92, 0), var(--or-2) 50%, rgba(212, 167, 92, 0));
  animation: splash-sol 1.3s .3s ease forwards;
}
.symbole .graine {
  opacity: 0; transform-origin: 68.6% 73.8%;
  animation: splash-graine 1.3s .75s cubic-bezier(.2, .8, .2, 1.1) forwards, splash-frisson .55s 1.95s ease-in-out;
}
.symbole .tige {
  transform-origin: 22% 100%; clip-path: inset(100% 0 0 0);
  animation: splash-tige 1.9s 2.2s cubic-bezier(.33, .05, .2, 1) forwards;
}
@keyframes splash-sol { to { width: 190%; } }
@keyframes splash-graine {
  0% { opacity: 0; transform: translateY(16%) scale(.16) rotate(-30deg); }
  55% { opacity: 1; transform: translateY(-2%) scale(1.07) rotate(4deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes splash-frisson { 0%, 100% { transform: none; } 30% { transform: rotate(-3.5deg); } 65% { transform: rotate(2deg); } }
@keyframes splash-tige {
  0% { clip-path: inset(100% 0 0 0); transform: scaleY(.8) rotate(-6deg); }
  70% { transform: scaleY(1.02) rotate(1deg); }
  100% { clip-path: inset(0 0 0 0); transform: none; }
}
@keyframes splash-halo { to { opacity: 1; } }
@keyframes splash-apparition {
  from { opacity: 0; transform: translateY(-14px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes splash-montee { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.splash-bas {
  position: relative; z-index: 2; width: 100%; max-width: 1240px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px;
  padding: 0 32px clamp(28px, 6vh, 56px);
  opacity: 0; animation: splash-montee 1.2s 3.7s ease forwards;
}
.splash-legende { justify-self: start; margin: 0; min-height: 3em; opacity: 0; transition: opacity 1s ease; }
.splash-metier {
  display: block; font-size: .7rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--or-1);
}
.splash-titre { display: block; margin-top: 6px; font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--ivoire); }
.splash-compteur {
  justify-self: end; display: flex; align-items: center; gap: 12px; opacity: 0; transition: opacity 1s ease;
  font-size: .72rem; letter-spacing: .2em; color: rgba(246, 237, 222, .7); font-variant-numeric: tabular-nums;
}
.splash-compteur b { color: var(--ivoire); font-weight: 600; }
.splash-barre { position: relative; width: 84px; height: 1px; background: rgba(246, 237, 222, .25); overflow: hidden; }
.splash-barre i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--or-2); }
.splash-barre i.anim { animation: splash-barre 6s linear forwards; }
@keyframes splash-barre { to { width: 100%; } }
.photos-actives .splash-legende, .photos-actives .splash-compteur { opacity: 1; }

.splash-entrer {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 17px 30px 17px 36px; border-radius: 999px;
  border: 1px solid rgba(243, 221, 166, .55); color: var(--ivoire); text-decoration: none;
  font: 500 .78rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase;
  background: rgba(30, 13, 5, .28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .4s, color .4s, border-color .4s, gap .4s, box-shadow .4s;
}
.splash-entrer svg { width: 18px; height: 18px; }
.splash-entrer:hover, .splash-entrer:focus-visible {
  background: linear-gradient(135deg, var(--or-1), var(--or-2)); color: #2A1307; border-color: transparent; gap: 20px;
  box-shadow: 0 14px 34px -14px rgba(212, 167, 92, .8);
}
.splash-entrer:focus-visible { outline: 2px solid var(--or-1); outline-offset: 4px; }

@media (max-width: 720px) {
  .splash-logo img { width: min(78vw, 360px); }
  .symbole { height: clamp(150px, 30vh, 250px); }
  .splash-bas { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 18px; padding: 0 20px 34px; }
  .splash-legende { justify-self: center; order: -1; }
  .splash-compteur { display: none; }
  .splash-entrer { padding: 16px 26px 16px 30px; letter-spacing: .2em; }
}
@media (prefers-reduced-motion: reduce) {
  .splash *, .splash *::before, .splash *::after { animation-duration: .01ms !important; animation-delay: 0s !important; }
  .splash-photo.actif img { animation: none; }
  .splash-photo { transition-duration: .6s; }
}

/* fichier unique : la page d'entrée masque l'en-tête et le pied de page du site */
body.mode-entree .site-header, body.mode-entree .site-footer, body.mode-entree > .skip { display: none; }
body.mode-entree { background: #1E0E06; }
