/* =========================================================
   SATTAR TRAITEUR — Feuille de style principale
   Palette inspirée de la gastronomie sénégalaise :
   terre cuite, safran, feuille de baobab, crème et blanc.
   ========================================================= */

/* ---------- 1. VARIABLES ---------- */
:root {
  --brique:       #A6381F;
  --brique-fonce: #77240F;
  --brique-clair: #C9502F;
  --or:           #D69A32;
  --or-clair:     #F2C878;
  --or-pale:      #FBEBD0;
  --vert:         #234A3D;
  --vert-clair:   #3C6E5C;
  --ink:          #1B1512;
  --texte:        #4A3B33;
  --muted:        #7A6559;
  --creme:        #FDF8F2;
  --sable:        #F4E9DB;
  --blanc:        #FFFFFF;
  --ligne:        #EADFD1;

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-full: 999px;

  --ombre-s: 0 2px 8px rgba(27, 21, 18, .06);
  --ombre-m: 0 10px 30px rgba(27, 21, 18, .09);
  --ombre-l: 0 24px 60px rgba(27, 21, 18, .14);

  --max: 1200px;
  --nav-h: 78px;

  --t: .35s cubic-bezier(.2, .7, .3, 1);

  --police-titre: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
  --police-texte: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

/* ---------- 2. BASE ---------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--police-texte);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--texte);
  background: var(--creme);
  overflow-x: hidden;
}

body.menu-ouvert { overflow: hidden; }

img { max-width: 100%; display: block; }

a { color: var(--brique); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--brique-fonce); }

h1, h2, h3, h4 {
  font-family: var(--police-titre);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -.015em;
}

h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.85rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }

p { margin: 0 0 1.1em; }

::selection { background: var(--or-clair); color: var(--ink); }

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

/* ---------- 3. STRUCTURE ---------- */
.conteneur {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--creme  { background: var(--creme); }
.section--sable  { background: var(--sable); }
.section--blanc  { background: var(--blanc); }
.section--fonce  { background: var(--ink); color: #E8DCD1; }
.section--fonce h2, .section--fonce h3 { color: #FFF; }

.entete-section { max-width: 760px; margin: 0 auto clamp(2.2rem, 5vw, 3.4rem); text-align: center; }
.entete-section.gauche { margin-inline: 0; text-align: left; }
.entete-section p { color: var(--muted); font-size: 1.08rem; margin-bottom: 0; }

.surtitre {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brique);
  margin-bottom: 1rem;
}
.surtitre::before {
  content: "";
  width: 30px; height: 2px;
  background: var(--or);
  border-radius: 2px;
}
.section--fonce .surtitre { color: var(--or-clair); }
.entete-section .surtitre::before { display: none; }
.entete-section .surtitre { justify-content: center; }

/* ---------- 4. BOUTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .95rem 1.9rem;
  border-radius: var(--r-full);
  font-family: var(--police-texte);
  font-weight: 700;
  font-size: .97rem;
  line-height: 1.2;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primaire {
  background: linear-gradient(135deg, var(--brique) 0%, var(--brique-clair) 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(166, 56, 31, .28);
}
.btn--primaire:hover { color: #fff; box-shadow: 0 14px 32px rgba(166, 56, 31, .38); }

.btn--or {
  background: linear-gradient(135deg, var(--or) 0%, var(--or-clair) 100%);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(214, 154, 50, .3);
}
.btn--or:hover { color: var(--ink); box-shadow: 0 14px 32px rgba(214, 154, 50, .42); }

.btn--contour {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn--contour:hover { background: var(--ink); color: #fff; }

.btn--clair {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
  backdrop-filter: blur(8px);
}
.btn--clair:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn--wa {
  background: #25D366;
  color: #fff;
  box-shadow: 0 8px 22px rgba(37, 211, 102, .32);
}
.btn--wa:hover { background: #1EBE5A; color: #fff; }

.btn--bloc { width: 100%; }
.btn--petit { padding: .6rem 1.15rem; font-size: .86rem; }
.btn--grand { padding: 1.15rem 2.4rem; font-size: 1.05rem; }

.groupe-btn { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- 5. EN-TÊTE / NAVIGATION ---------- */
.entete {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--t), box-shadow var(--t), height var(--t);
}
.entete.transparent { background: linear-gradient(180deg, rgba(27, 21, 18, .55), transparent); }
.entete.solide {
  background: rgba(253, 248, 242, .96);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: var(--ombre-s);
  border-bottom: 1px solid var(--ligne);
}

.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.logo { display: flex; align-items: center; gap: .7rem; }
.logo__marque {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: #FFFDF8;
  border: 2px solid var(--or);
  object-fit: cover;
  flex: none;
  box-shadow: 0 6px 16px rgba(166, 56, 31, .22);
  transition: transform var(--t);
}
.logo:hover .logo__marque { transform: scale(1.06) rotate(-3deg); }

/* Logo complet (sections claires) */
.logo-complet { width: min(210px, 60%); height: auto; margin-bottom: 1.4rem; }
.logo-complet--centre { margin-inline: auto; }
.logo__texte { display: flex; flex-direction: column; line-height: 1.05; }
.logo__nom {
  font-family: var(--police-titre);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: .02em;
  color: var(--ink);
}
.logo__slogan {
  font-size: .63rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.entete.transparent .logo__nom { color: #fff; }
.entete.transparent .logo__slogan { color: rgba(255, 255, 255, .8); }

.nav { display: flex; align-items: center; gap: .2rem; }
.nav a {
  padding: .55rem .85rem;
  border-radius: var(--r-full);
  font-size: .93rem;
  font-weight: 600;
  color: var(--texte);
  white-space: nowrap;
}
.nav a:hover { background: var(--or-pale); color: var(--brique-fonce); }
.nav a.actif { color: var(--brique); background: var(--or-pale); }
.entete.transparent .nav a { color: rgba(255, 255, 255, .92); }
.entete.transparent .nav a:hover,
.entete.transparent .nav a.actif { background: rgba(255, 255, 255, .18); color: #fff; }

.entete__actions { display: flex; align-items: center; gap: .6rem; }

.burger {
  display: none;
  width: 46px; height: 46px;
  border: 0;
  border-radius: 12px;
  background: var(--or-pale);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.burger span {
  display: block;
  width: 21px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: var(--t);
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0;
  width: 21px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: var(--t);
}
.burger span::before { top: -7px; }
.burger span::after  { top: 7px; }
.burger.ouvert span { background: transparent; }
.burger.ouvert span::before { top: 0; transform: rotate(45deg); }
.burger.ouvert span::after  { top: 0; transform: rotate(-45deg); }

/* Panneau mobile */
.nav-mobile {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--creme);
  z-index: 99;
  padding: 1.6rem 1.25rem 3rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--t);
  display: none;
}
.nav-mobile.ouvert { transform: translateX(0); }
.nav-mobile a {
  display: block;
  padding: 1rem .4rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--ligne);
}
.nav-mobile a.actif { color: var(--brique); }
.nav-mobile .groupe-btn { margin-top: 1.8rem; flex-direction: column; }

/* ---------- 6. HERO ---------- */
.hero {
  position: relative;
  min-height: min(94vh, 860px);
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 3rem) 0 4rem;
  overflow: hidden;
  isolation: isolate;
}
.hero__fond {
  position: absolute; inset: 0; z-index: -2;
  background: var(--ink) center/cover no-repeat;
  background-image: url("../img/hero.svg");
  transform: scale(1.03);
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 15% 30%, rgba(27, 21, 18, .82) 0%, rgba(27, 21, 18, .45) 48%, rgba(27, 21, 18, .18) 100%),
    linear-gradient(180deg, rgba(27, 21, 18, .18), rgba(27, 21, 18, .62));
}
.hero__contenu { max-width: 720px; color: #fff; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 .accent {
  display: block;
  font-size: clamp(1.15rem, 2.6vw, 1.85rem);
  font-style: italic;
  font-weight: 400;
  color: var(--or-clair);
  margin-top: .35em;
  letter-spacing: 0;
}
.hero__texte {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: rgba(255, 255, 255, .9);
  max-width: 58ch;
  margin-bottom: 2rem;
}
.hero .surtitre { color: var(--or-clair); }

.hero__badges {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-top: 2.6rem;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem 1rem;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: .84rem;
  font-weight: 600;
}

.hero-page {
  position: relative;
  padding: calc(var(--nav-h) + 4.5rem) 0 4rem;
  background: var(--ink);
  color: #fff;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}
.hero-page::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: url("../img/motif.svg") center/420px repeat;
  opacity: .16;
}
.hero-page::after {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(90% 120% at 50% 0%, #3A2318 0%, var(--ink) 70%);
}
.hero-page h1 { color: #fff; margin-bottom: .3em; }
.hero-page p { color: rgba(255, 255, 255, .82); max-width: 64ch; margin-inline: auto; }
.hero-page .surtitre { color: var(--or-clair); justify-content: center; }
.hero-page .surtitre::before { display: none; }

.fil { font-size: .82rem; color: rgba(255, 255, 255, .6); margin-bottom: 1.2rem; }
.fil a { color: rgba(255, 255, 255, .8); }
.fil span { opacity: .5; margin: 0 .4rem; }

/* ---------- 7. BANDEAU CHIFFRES ---------- */
.bandeau-chiffres {
  background: linear-gradient(120deg, var(--brique-fonce) 0%, var(--brique) 55%, #C25E2E 100%);
  color: #fff;
  padding: 2.6rem 0;
}
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.chiffre__valeur {
  font-family: var(--police-titre);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 700;
  color: var(--or-clair);
  line-height: 1;
}
.chiffre__label {
  font-size: .84rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .85);
  font-weight: 600;
  margin-top: .5rem;
}

/* ---------- 8. CARTES ---------- */
.grille { display: grid; gap: 1.6rem; }
.grille--2 { grid-template-columns: repeat(2, 1fr); }
.grille--3 { grid-template-columns: repeat(3, 1fr); }
.grille--4 { grid-template-columns: repeat(4, 1fr); }

.carte {
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--r-lg);
  padding: 2rem 1.8rem;
  box-shadow: var(--ombre-s);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.carte:hover { transform: translateY(-6px); box-shadow: var(--ombre-m); border-color: var(--or-clair); }
.carte h3 { margin-bottom: .5rem; }
.carte p { color: var(--muted); font-size: .96rem; }

.carte__icone {
  width: 58px; height: 58px;
  border-radius: 18px;
  background: linear-gradient(140deg, var(--or-pale), #FCE6C4);
  display: grid; place-items: center;
  margin-bottom: 1.2rem;
  font-size: 1.6rem;
  border: 1px solid #F2DDBC;
}
.carte__liste { list-style: none; padding: 0; margin: .8rem 0 1.4rem; }
.carte__liste li {
  position: relative;
  padding-left: 1.55rem;
  margin-bottom: .45rem;
  font-size: .94rem;
  color: var(--texte);
}
.carte__liste li::before {
  content: "";
  position: absolute; left: 0; top: .62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--or);
}
.carte__pied { margin-top: auto; padding-top: .6rem; }

.carte-service { padding: 0; overflow: hidden; }
.carte-service__image { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sable); }
.carte-service__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.carte-service:hover .carte-service__image img { transform: scale(1.07); }
.carte-service__corps { padding: 1.6rem 1.6rem 1.9rem; display: flex; flex-direction: column; flex: 1; }

/* Encadré référence LYSTEG */
.encadre-ref {
  display: flex;
  gap: 1.3rem;
  align-items: flex-start;
  background: linear-gradient(120deg, var(--vert) 0%, var(--vert-clair) 100%);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 2rem 2.2rem;
  margin-top: 2rem;
  box-shadow: var(--ombre-m);
}
.encadre-ref h3 { color: #fff; margin-bottom: .35rem; font-size: 1.25rem; }
.encadre-ref p { color: rgba(255, 255, 255, .88); margin: 0; font-size: .98rem; }
.encadre-ref__badge {
  flex: none;
  width: 62px; height: 62px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .3);
  display: grid; place-items: center;
  font-size: 1.7rem;
}
.puce-ref {
  display: inline-block;
  background: var(--or);
  color: var(--ink);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .25rem .7rem;
  border-radius: var(--r-full);
  margin-bottom: .7rem;
}

/* ---------- 9. ÉVÉNEMENTS (tuiles) ---------- */
.tuiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.tuile {
  position: relative;
  min-height: 330px;
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: #fff;
  isolation: isolate;
  box-shadow: var(--ombre-s);
  transition: transform var(--t), box-shadow var(--t);
}
.tuile:hover { transform: translateY(-6px); box-shadow: var(--ombre-l); color: #fff; }
.tuile img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.7,.3,1);
}
.tuile:hover img { transform: scale(1.08); }
.tuile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(27,21,18,0) 30%, rgba(27,21,18,.55) 62%, rgba(27,21,18,.92) 100%);
}
.tuile__corps { padding: 1.6rem 1.5rem; width: 100%; }
.tuile h3 { color: #fff; margin-bottom: .3rem; font-size: 1.32rem; }
.tuile p { color: rgba(255, 255, 255, .85); font-size: .93rem; margin: 0; }
.tuile--large { grid-column: span 2; }

/* ---------- 10. MENUS ---------- */
.filtres {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  justify-content: center;
  margin-bottom: 2.4rem;
}
.filtre {
  border: 1px solid var(--ligne);
  background: var(--blanc);
  color: var(--texte);
  padding: .6rem 1.25rem;
  border-radius: var(--r-full);
  font-family: var(--police-texte);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: var(--t);
}
.filtre:hover { border-color: var(--or); color: var(--brique); }
.filtre.actif {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.grille-plats { display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 1.5rem; }

.plat {
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--ombre-s);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  position: relative;
}
.plat:hover { transform: translateY(-5px); box-shadow: var(--ombre-m); border-color: var(--or-clair); }
.plat__image { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sable); position: relative; }
.plat__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.plat:hover .plat__image img { transform: scale(1.06); }
.plat__etiquette {
  position: absolute; top: .75rem; left: .75rem;
  background: var(--or);
  color: var(--ink);
  font-size: .68rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .25rem .65rem;
  border-radius: var(--r-full);
}
.plat__corps { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.plat__cat {
  font-size: .7rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--or);
  margin-bottom: .35rem;
}
.plat h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.plat__desc { font-size: .9rem; color: var(--muted); margin-bottom: .9rem; flex: 1; }
.plat__prix {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: .5rem; margin-bottom: .9rem;
  padding-top: .8rem;
  border-top: 1px dashed var(--ligne);
}
.plat__prix strong { font-family: var(--police-titre); font-size: 1.2rem; color: var(--brique); }
.plat__prix small { font-size: .76rem; color: var(--muted); text-align: right; }

.plat__ajout {
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  border-radius: var(--r-full);
  padding: .6rem 1rem;
  font-family: var(--police-texte);
  font-weight: 700;
  font-size: .86rem;
  cursor: pointer;
  transition: var(--t);
  width: 100%;
}
.plat__ajout:hover { background: var(--ink); color: #fff; }
.plat__ajout.ajoute { background: var(--vert); border-color: var(--vert); color: #fff; }

/* Formules */
.formule {
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--r-lg);
  padding: 2rem 1.8rem;
  display: flex; flex-direction: column;
  box-shadow: var(--ombre-s);
  transition: var(--t);
}
.formule:hover { transform: translateY(-6px); box-shadow: var(--ombre-m); border-color: var(--or); }
.formule__prix {
  font-family: var(--police-titre);
  font-size: 1.22rem;
  color: var(--brique);
  margin-bottom: .9rem;
  font-weight: 600;
}

/* ---------- 11. GALERIE ---------- */
.galerie { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.galerie__item {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background: var(--sable);
  box-shadow: var(--ombre-s);
}
.galerie__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.galerie__item:hover img { transform: scale(1.08); }
.galerie__legende {
  position: absolute; inset: auto 0 0 0;
  padding: 1.6rem 1.1rem .95rem;
  background: linear-gradient(180deg, transparent, rgba(27, 21, 18, .9));
  color: #fff;
  transform: translateY(12%);
  opacity: 0;
  transition: var(--t);
}
.galerie__item:hover .galerie__legende { transform: translateY(0); opacity: 1; }
.galerie__legende strong { display: block; font-size: .98rem; }
.galerie__legende span { font-size: .8rem; color: rgba(255, 255, 255, .78); }

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(15, 11, 9, .93);
  display: none;
  align-items: center; justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
}
.lightbox.ouvert { display: flex; }
.lightbox img { max-width: min(1000px, 92vw); max-height: 78vh; border-radius: var(--r-md); }
.lightbox__legende { color: #fff; text-align: center; margin-top: 1rem; }
.lightbox__fermer {
  position: absolute; top: 1.2rem; right: 1.4rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .14);
  color: #fff; font-size: 1.5rem; cursor: pointer;
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .14); color: #fff;
  font-size: 1.6rem; cursor: pointer;
}
.lightbox__nav--prec { left: 1.2rem; }
.lightbox__nav--suiv { right: 1.2rem; }

/* ---------- 12. SPLIT / À PROPOS ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--inverse .split__media { order: -1; }
.split__media {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--ombre-l);
  position: relative;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3.4; }

.pastille-annees {
  position: absolute; bottom: -22px; right: -18px;
  background: var(--or);
  color: var(--ink);
  width: 132px; height: 132px;
  border-radius: 50%;
  display: grid; place-items: center;
  text-align: center;
  box-shadow: var(--ombre-m);
  border: 6px solid var(--creme);
}
.pastille-annees strong { display: block; font-family: var(--police-titre); font-size: 2rem; line-height: 1; }
.pastille-annees span { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.liste-atouts { list-style: none; padding: 0; margin: 1.4rem 0 2rem; display: grid; gap: .75rem; }
.liste-atouts li {
  position: relative;
  padding-left: 2.1rem;
  font-size: .99rem;
  color: var(--texte);
}
.liste-atouts li::before {
  content: "✓";
  position: absolute; left: 0; top: .05em;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--or-pale);
  color: var(--brique);
  font-size: .78rem; font-weight: 800;
  display: grid; place-items: center;
}

/* ---------- 13. FORMULAIRES ---------- */
.bloc-form {
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 4vw, 3rem);
  box-shadow: var(--ombre-m);
}

.etape-form { margin-bottom: 2.4rem; }
.etape-form__titre {
  display: flex; align-items: center; gap: .85rem;
  font-family: var(--police-titre);
  font-size: 1.28rem;
  color: var(--ink);
  margin-bottom: 1.4rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--ligne);
}
.etape-form__num {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--brique), var(--brique-clair));
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--police-texte);
  font-size: .92rem; font-weight: 800;
}

.champs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem 1.3rem; }
.champ { display: flex; flex-direction: column; }
.champ--pleine { grid-column: 1 / -1; }

label {
  font-size: .87rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .4rem;
}
label .obl { color: var(--brique); }
.aide { font-size: .8rem; color: var(--muted); font-weight: 500; margin-top: .35rem; }

input[type="text"], input[type="tel"], input[type="email"], input[type="date"],
input[type="time"], input[type="number"], input[type="password"], select, textarea {
  font-family: var(--police-texte);
  font-size: .97rem;
  color: var(--ink);
  background: var(--creme);
  border: 1.5px solid var(--ligne);
  border-radius: var(--r-sm);
  padding: .82rem .95rem;
  width: 100%;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--or);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(214, 154, 50, .16);
}
textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A6559' stroke-width='2.2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  background-size: 18px;
  padding-right: 2.6rem;
}
input.invalide, select.invalide, textarea.invalide {
  border-color: var(--brique);
  box-shadow: 0 0 0 4px rgba(166, 56, 31, .12);
}

.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .7rem; }
.case {
  display: flex; align-items: center; gap: .7rem;
  padding: .85rem 1rem;
  border: 1.5px solid var(--ligne);
  border-radius: var(--r-sm);
  background: var(--creme);
  cursor: pointer;
  font-size: .93rem;
  font-weight: 600;
  color: var(--texte);
  transition: var(--t);
  margin: 0;
}
.case:hover { border-color: var(--or); background: #fff; }
.case input { width: 19px; height: 19px; accent-color: var(--brique); flex: none; cursor: pointer; }
.case:has(input:checked) {
  border-color: var(--brique);
  background: var(--or-pale);
  color: var(--brique-fonce);
}

/* Récapitulatif / panier */
.recap {
  background: var(--sable);
  border: 1px dashed var(--or);
  border-radius: var(--r-md);
  padding: 1.4rem 1.5rem;
}
.recap__titre {
  font-family: var(--police-titre);
  font-size: 1.12rem;
  color: var(--ink);
  margin-bottom: .9rem;
}
.recap__ligne {
  display: flex; align-items: center; gap: .8rem;
  padding: .65rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, .07);
  font-size: .93rem;
}
.recap__ligne:last-of-type { border-bottom: 0; }
.recap__nom { flex: 1; font-weight: 600; color: var(--ink); }
.recap__qte { display: flex; align-items: center; gap: .35rem; }
.recap__qte button {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--ligne);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.recap__qte button:hover { background: var(--or-pale); border-color: var(--or); }
.recap__qte span { min-width: 26px; text-align: center; font-weight: 700; }
.recap__sup {
  border: 0; background: transparent; cursor: pointer;
  color: var(--muted); font-size: 1.05rem; padding: .1rem .3rem;
}
.recap__sup:hover { color: var(--brique); }
.recap__total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 1rem; padding-top: 1rem;
  border-top: 2px solid var(--or);
  font-weight: 700; color: var(--ink);
}
.recap__total strong { font-family: var(--police-titre); font-size: 1.4rem; color: var(--brique); }
.recap__vide { color: var(--muted); font-size: .93rem; margin: 0; }

/* Message de confirmation */
.confirmation {
  display: none;
  text-align: center;
  padding: clamp(2rem, 5vw, 3.4rem);
  background: linear-gradient(135deg, var(--vert) 0%, var(--vert-clair) 100%);
  color: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--ombre-m);
}
.confirmation.visible { display: block; animation: apparait .5s both; }
.confirmation h2 { color: #fff; }
.confirmation p { color: rgba(255, 255, 255, .9); max-width: 55ch; margin-inline: auto; }
.confirmation__icone {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  border: 2px solid rgba(255, 255, 255, .4);
  display: grid; place-items: center;
  font-size: 2rem;
  margin: 0 auto 1.3rem;
}

.alerte {
  display: flex; gap: .8rem; align-items: flex-start;
  background: var(--or-pale);
  border-left: 4px solid var(--or);
  border-radius: var(--r-sm);
  padding: 1rem 1.2rem;
  font-size: .92rem;
  color: var(--texte);
  margin-bottom: 1.6rem;
}
.alerte strong { color: var(--ink); }

/* ---------- 14. CONTACT ---------- */
.bloc-contact {
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--ligne);
}
.bloc-contact:last-child { border-bottom: 0; }
.bloc-contact__icone {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--or-pale);
  display: grid; place-items: center;
  font-size: 1.25rem;
}
.bloc-contact h3 { font-size: 1.02rem; margin-bottom: .15rem; font-family: var(--police-texte); font-weight: 700; }
.bloc-contact p { margin: 0; font-size: .96rem; color: var(--muted); }
.bloc-contact a { font-weight: 600; }

.carte-map {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--ombre-m);
  border: 1px solid var(--ligne);
  min-height: 380px;
  background: var(--sable);
}
.carte-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

.horaires { list-style: none; padding: 0; margin: 0; }
.horaires li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .6rem 0;
  border-bottom: 1px dashed var(--ligne);
  font-size: .95rem;
}
.horaires li:last-child { border-bottom: 0; }
.horaires strong { color: var(--ink); font-weight: 600; }
.horaires span { color: var(--muted); }

/* ---------- 15. APPEL À L'ACTION ---------- */
.cta-final {
  position: relative;
  background: linear-gradient(125deg, var(--brique-fonce) 0%, var(--brique) 60%, #C4602D 100%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(2.4rem, 6vw, 4.2rem);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.cta-final::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: url("../img/motif.svg") center/300px repeat;
  opacity: .1;
}
.cta-final h2 { color: #fff; }
.cta-final p { color: rgba(255, 255, 255, .88); max-width: 58ch; margin-inline: auto 1.8rem; margin-inline: auto; margin-bottom: 2rem; }
.cta-final .groupe-btn { justify-content: center; }

/* ---------- 16. TÉMOIGNAGES ---------- */
.temoignage {
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--r-lg);
  padding: 2rem 1.8rem;
  box-shadow: var(--ombre-s);
  display: flex; flex-direction: column;
}
.temoignage__note { color: var(--or); letter-spacing: .12em; margin-bottom: .8rem; }
.temoignage p { font-size: .99rem; color: var(--texte); font-style: italic; flex: 1; }
.temoignage__auteur { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; }
.temoignage__initiale {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(140deg, var(--brique), var(--or));
  color: #fff; display: grid; place-items: center;
  font-family: var(--police-titre); font-weight: 700;
}
.temoignage__auteur strong { display: block; font-size: .95rem; color: var(--ink); }
.temoignage__auteur span { font-size: .82rem; color: var(--muted); }

/* ---------- 17. PIED DE PAGE ---------- */
.pied {
  background: var(--ink);
  color: #C9B9AC;
  padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem;
}
.pied__grille {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.4rem;
  padding-bottom: 2.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.pied h4 {
  color: #fff;
  font-family: var(--police-texte);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.pied p { font-size: .93rem; color: #A89486; }
.pied a { color: #C9B9AC; font-size: .93rem; }
.pied a:hover { color: var(--or-clair); }
.pied__liens { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.pied .logo__nom { color: #fff; }
.pied .logo__slogan { color: #A89486; }
.pied__bas {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between;
  padding-top: 1.5rem;
  font-size: .84rem;
  color: #8A7768;
}
.pied__social { display: flex; gap: .6rem; margin-top: 1.1rem; }
.pied__social a {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
  display: grid; place-items: center;
  font-size: 1rem;
  transition: var(--t);
}
.pied__social a:hover { background: var(--or); color: var(--ink); }

/* ---------- 18. WHATSAPP FLOTTANT + TOAST ---------- */
.wa-flottant {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 120;
  display: flex; align-items: center; gap: .6rem;
  background: #25D366;
  color: #fff;
  padding: .85rem 1.35rem .85rem .95rem;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: .93rem;
  box-shadow: 0 12px 30px rgba(37, 211, 102, .4);
  transition: var(--t);
}
.wa-flottant:hover { color: #fff; transform: translateY(-3px) scale(1.02); }
.wa-flottant svg { width: 24px; height: 24px; flex: none; }
.wa-flottant__pulse {
  position: absolute; inset: 0;
  border-radius: var(--r-full);
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .6);
  animation: pulse 2.4s infinite;
  pointer-events: none;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.toast {
  position: fixed;
  left: 50%; bottom: 26px;
  transform: translate(-50%, 140%);
  z-index: 400;
  background: var(--ink);
  color: #fff;
  padding: .9rem 1.5rem;
  border-radius: var(--r-full);
  font-size: .92rem;
  font-weight: 600;
  box-shadow: var(--ombre-l);
  transition: transform .4s cubic-bezier(.2,.9,.3,1);
  max-width: calc(100% - 2rem);
  text-align: center;
}
.toast.visible { transform: translate(-50%, 0); }

/* Compteur panier dans la nav */
.pastille-panier {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  border-radius: var(--r-full);
  background: var(--brique);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  margin-left: .35rem;
}

/* ---------- 19. ADMINISTRATION ---------- */
.admin-connexion {
  max-width: 430px;
  margin: 0 auto;
}
.admin-onglets {
  display: flex; flex-wrap: wrap; gap: .4rem;
  border-bottom: 1px solid var(--ligne);
  margin-bottom: 2rem;
}
.admin-onglet {
  border: 0; background: transparent;
  padding: .8rem 1.15rem;
  font-family: var(--police-texte);
  font-weight: 700; font-size: .92rem;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: var(--t);
  border-radius: 8px 8px 0 0;
}
.admin-onglet:hover { color: var(--brique); background: var(--or-pale); }
.admin-onglet.actif { color: var(--brique); border-bottom-color: var(--brique); }
.admin-panneau { display: none; }
.admin-panneau.actif { display: block; animation: apparait .3s both; }

.stats-admin { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.stat-admin {
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: var(--r-md);
  padding: 1.3rem;
  box-shadow: var(--ombre-s);
}
.stat-admin strong { display: block; font-family: var(--police-titre); font-size: 2rem; color: var(--brique); line-height: 1; }
.stat-admin span { font-size: .82rem; color: var(--muted); font-weight: 600; }

.tableau-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--ligne); background: #fff; }
table.tableau { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 720px; }
table.tableau th {
  text-align: left;
  background: var(--sable);
  color: var(--ink);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .85rem 1rem;
  white-space: nowrap;
}
table.tableau td { padding: .85rem 1rem; border-top: 1px solid var(--ligne); vertical-align: top; }
table.tableau tr:hover td { background: #FFFCF7; }

.badge {
  display: inline-block;
  padding: .22rem .65rem;
  border-radius: var(--r-full);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.badge--attente  { background: #FDF0D5; color: #8A5B00; }
.badge--traite   { background: #DFF3E8; color: #1B6B45; }
.badge--annule   { background: #FBE0DA; color: #97331C; }
.badge--devis    { background: #E5EDFB; color: #2A4E8F; }
.badge--commande { background: #F3E6FA; color: #6A3391; }

.mini-actions { display: flex; gap: .35rem; flex-wrap: wrap; }
.mini-btn {
  border: 1px solid var(--ligne);
  background: #fff;
  border-radius: 8px;
  padding: .32rem .6rem;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--texte);
  transition: var(--t);
  font-family: var(--police-texte);
}
.mini-btn:hover { border-color: var(--or); color: var(--brique); }
.mini-btn--danger:hover { border-color: var(--brique); color: var(--brique); background: #FDF3F0; }

.detail-demande {
  background: var(--sable);
  border-radius: var(--r-sm);
  padding: 1rem 1.2rem;
  font-size: .88rem;
  white-space: pre-wrap;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  line-height: 1.6;
  margin-top: .6rem;
}

/* ---------- 20. ANIMATIONS ---------- */
@keyframes apparait {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 21. RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .grille--4 { grid-template-columns: repeat(2, 1fr); }
  .stats-admin { grid-template-columns: repeat(2, 1fr); }
  .pied__grille { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .burger { display: grid; }
  .nav-mobile { display: block; }
  .entete__actions .btn { display: none; }
  .grille--3 { grid-template-columns: repeat(2, 1fr); }
  .tuiles { grid-template-columns: repeat(2, 1fr); }
  .tuile--large { grid-column: span 2; }
  .split { grid-template-columns: 1fr; }
  .split--inverse .split__media { order: 0; }
  .chiffres { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .galerie { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .conteneur { width: min(100% - 2rem, var(--max)); }
  .grille--2, .grille--3, .grille--4 { grid-template-columns: 1fr; }
  .tuiles { grid-template-columns: 1fr; }
  .tuile--large { grid-column: span 1; }
  .galerie { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .champs { grid-template-columns: 1fr; }
  .stats-admin { grid-template-columns: 1fr 1fr; }
  .pied__grille { grid-template-columns: 1fr; }
  .encadre-ref { flex-direction: column; padding: 1.6rem; }
  .pastille-annees { width: 104px; height: 104px; right: 8px; bottom: -16px; }
  .pastille-annees strong { font-size: 1.6rem; }
  .groupe-btn .btn { width: 100%; }
  .wa-flottant { padding: .8rem; }
  .wa-flottant span { display: none; }
  .hero { min-height: auto; padding: calc(var(--nav-h) + 2.5rem) 0 3rem; }
  .lightbox__nav { width: 42px; height: 42px; }
}

/* ---------- 22. IMPRESSION ---------- */
@media print {
  .entete, .nav-mobile, .wa-flottant, .pied, .cta-final, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- 23. AJUSTEMENTS EN-TÊTE ---------- */
/* Le bouton clair devient lisible quand l'en-tête passe en fond crème */
.entete.solide .btn--clair {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
  backdrop-filter: none;
}
.entete.solide .btn--clair:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Signature du logo dans le hero */
.hero__tagline {
  font-family: var(--police-titre);
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--or-clair);
  letter-spacing: .01em;
  margin: -.4rem 0 1.4rem;
  opacity: .95;
}

/* =========================================================
   24. CHIFFRAGE & RENTABILITÉ (espace administrateur)
   ========================================================= */
.dp-entete {
  display: flex; flex-wrap: wrap; gap: 1.2rem;
  justify-content: space-between; align-items: flex-start;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--ligne);
}
.dp-entete__meta { display: flex; gap: .8rem; flex-wrap: wrap; }
.dp-entete__meta .champ { min-width: 150px; }

.dp-rapides { display: flex; flex-wrap: wrap; gap: .45rem; }

.tableau--dp input {
  padding: .45rem .6rem;
  font-size: .88rem;
  border-radius: 8px;
  background: #fff;
}
.tableau--dp td { padding: .5rem .6rem; vertical-align: middle; }
.tableau--dp th { padding: .7rem .6rem; }

.dp-libre {
  display: grid;
  grid-template-columns: 2fr .7fr 1fr 1fr auto;
  gap: .5rem;
  margin-top: 1rem;
  padding: 1rem;
  background: var(--sable);
  border-radius: var(--r-sm);
  align-items: center;
}

.dp-resultats {
  margin-top: 1.6rem;
  border: 2px solid var(--or);
  background: linear-gradient(180deg, #FFFDF9, var(--blanc));
}

.grille-kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.kpi {
  background: var(--creme);
  border: 1px solid var(--ligne);
  border-radius: var(--r-md);
  padding: 1.1rem 1.2rem;
}
.kpi__label {
  display: block;
  font-size: .74rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .4rem;
}
.kpi__valeur {
  display: block;
  font-family: var(--police-titre);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.1;
  color: var(--ink);
}
.kpi__sous { display: block; font-size: .8rem; color: var(--muted); margin-top: .25rem; }

.jauge {
  position: relative;
  height: 12px;
  background: var(--sable);
  border-radius: var(--r-full);
  margin: 1.5rem 0 .7rem;
  overflow: visible;
}
.jauge__barre {
  height: 100%;
  border-radius: var(--r-full);
  transition: width .4s ease, background .4s ease;
}
.jauge__cible {
  position: absolute; top: -5px; bottom: -5px;
  width: 3px; border-radius: 2px;
  background: var(--ink);
}
.dp-verdict { font-weight: 700; font-size: .93rem; margin: 0 0 1.4rem; }

.dp-detail {
  border-top: 1px solid var(--ligne);
  padding-top: 1rem;
  font-size: .93rem;
}
.dp-detail > div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .38rem 0;
}
.dp-detail span { color: var(--muted); }
.dp-detail b { color: var(--ink); white-space: nowrap; }
.dp-detail__fort {
  border-top: 1px solid var(--ligne);
  margin-top: .3rem; padding-top: .6rem !important;
  font-weight: 700;
}
.dp-detail__fort span { color: var(--ink); font-weight: 700; }
.dp-detail__sep { border-top: 2px dashed var(--or); margin-top: .8rem; padding-top: .8rem !important; }

@media (max-width: 900px) {
  .grille-kpi { grid-template-columns: repeat(2, 1fr); }
  .dp-libre { grid-template-columns: 1fr 1fr; }
  .dp-libre .btn { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .grille-kpi { grid-template-columns: 1fr; }
  .dp-libre { grid-template-columns: 1fr; }
}

/* Statut de transmission affiché après l'envoi d'un formulaire */
.statut-envoi {
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--r-sm);
  padding: .85rem 1.1rem;
  font-size: .93rem;
  max-width: 52ch;
  margin: 1.2rem auto;
}
.statut-envoi:empty { display: none; }

/* =========================================================
   25. ESTIMATEUR DE BUDGET
   ========================================================= */
.est-grille {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.est-reglages {
  background: var(--creme);
  border: 1px solid var(--ligne);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

.est-titre-groupe {
  display: block;
  margin: 1.6rem 0 .7rem;
  font-size: .87rem;
  font-weight: 700;
  color: var(--ink);
}

.est-curseur {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--or) 0%, var(--brique) 100%);
  outline: none;
  margin-top: .3rem;
}
.est-curseur::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brique);
  cursor: pointer;
  box-shadow: var(--ombre-s);
}
.est-curseur::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brique);
  cursor: pointer;
}
.est-curseur__reperes {
  display: flex; justify-content: space-between;
  font-size: .74rem; color: var(--muted);
  margin-top: .4rem;
}

.est-formules { display: grid; gap: .6rem; }
.est-formule {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .2rem .8rem;
  padding: 1rem 1.2rem;
  border: 1.5px solid var(--ligne);
  border-radius: var(--r-md);
  background: var(--blanc);
  cursor: pointer;
  transition: var(--t);
  margin: 0;
}
.est-formule:hover { border-color: var(--or); }
.est-formule.actif {
  border-color: var(--brique);
  background: var(--or-pale);
  box-shadow: 0 0 0 3px rgba(166, 56, 31, .08);
}
.est-formule input { display: none; }
.est-formule__nom { font-weight: 700; color: var(--ink); font-size: 1rem; }
.est-formule__prix {
  font-family: var(--police-titre);
  font-weight: 700;
  color: var(--brique);
  white-space: nowrap;
  text-align: right;
}
.est-formule__prix small { font-family: var(--police-texte); font-weight: 500; font-size: .72rem; color: var(--muted); }
.est-formule__desc { grid-column: 1 / -1; font-size: .87rem; color: var(--muted); }

.est-resultat {
  position: sticky;
  top: calc(var(--nav-h) + 1.2rem);
  background: linear-gradient(150deg, var(--ink) 0%, #3A2318 100%);
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--ombre-l);
  overflow: hidden;
  isolation: isolate;
}
.est-resultat::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: url("../img/motif.svg") center/260px repeat;
  opacity: .07;
}

.est-attente { color: rgba(255, 255, 255, .7); font-size: .95rem; margin: 0; }

.est-montant { text-align: center; padding-bottom: 1.2rem; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.est-montant__label {
  display: block;
  font-size: .74rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--or-clair);
  margin-bottom: .4rem;
}
.est-montant__valeur {
  display: block;
  font-family: var(--police-titre);
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  line-height: 1.05;
  color: #fff;
}
.est-montant__fourchette {
  display: block;
  font-size: .82rem;
  color: rgba(255, 255, 255, .62);
  margin-top: .35rem;
}

.est-detail { padding: 1.1rem 0; font-size: .9rem; }
.est-detail > div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .4rem 0;
}
.est-detail span { color: rgba(255, 255, 255, .72); }
.est-detail b { color: #fff; white-space: nowrap; }
.est-detail__total {
  border-top: 1px solid rgba(255, 255, 255, .15);
  margin-top: .5rem; padding-top: .7rem !important;
}
.est-detail__total span { color: #fff; font-weight: 600; }
.est-detail__total b { color: var(--or-clair); font-size: 1.05rem; }

.est-degressif {
  background: rgba(214, 154, 50, .16);
  border: 1px solid rgba(242, 200, 120, .3);
  border-radius: var(--r-sm);
  padding: .7rem .9rem;
  font-size: .85rem;
  color: #fff;
  margin: .4rem 0 1.2rem;
}
.est-degressif strong { color: var(--or-clair); }

.est-actions { margin-top: .4rem; }
.est-actions .btn { flex: 1; min-width: 160px; }

.est-avertissement {
  font-size: .78rem;
  color: rgba(255, 255, 255, .55);
  margin: 1.1rem 0 0;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .est-grille { grid-template-columns: 1fr; }
  .est-resultat { position: static; }
}

/* =========================================================
   26. PLANNING DES ÉVÉNEMENTS
   ========================================================= */
.pl-barre {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem;
}
.pl-entetes, .pl-grille { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.pl-jour {
  text-align: center; font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  padding: .4rem 0;
}
.pl-case {
  position: relative;
  min-height: 92px;
  background: var(--blanc);
  border: 1px solid var(--ligne);
  border-radius: 10px;
  padding: .35rem .4rem;
  display: flex; flex-direction: column; gap: 2px;
  transition: var(--t);
}
.pl-case[data-jour] { cursor: pointer; }
.pl-case[data-jour]:hover { border-color: var(--or); box-shadow: var(--ombre-s); }
.pl-case--vide { background: transparent; border: 0; }
.pl-case--aujourdhui { border-color: var(--brique); box-shadow: 0 0 0 2px rgba(166,56,31,.12); }
.pl-case--charge { background: #FFF8F1; }
.pl-case__num { font-size: .78rem; font-weight: 700; color: var(--ink); }

.pl-puce {
  display: block;
  font-size: .66rem; font-weight: 600;
  padding: .12rem .35rem;
  border-radius: 5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pl-puce--attente  { background: #FDF0D5; color: #8A5B00; }
.pl-puce--traite   { background: #DFF3E8; color: #1B6B45; }
.pl-puce--devis    { background: #E5EDFB; color: #2A4E8F; }
.pl-plus { font-size: .64rem; color: var(--muted); font-weight: 700; }
.pl-alerte { position: absolute; top: .3rem; right: .35rem; font-size: .7rem; color: var(--brique); }

.pl-legende {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin-top: 1rem; font-size: .8rem; color: var(--muted);
  align-items: center;
}
.pl-pastille { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: .3rem; vertical-align: -1px; }

@media (max-width: 700px) {
  .pl-case { min-height: 66px; padding: .25rem .3rem; }
  .pl-case__num { font-size: .7rem; }
  .pl-puce { font-size: .58rem; }
  .pl-barre h3 { font-size: 1.05rem; width: 100%; text-align: center; order: -1; }
}
