/* ==========================================================================
   ABET — Bureau d'études techniques TCE au Maroc
   Charte : Noir #12110F · Crème #FEFDF9 · Orange #FCA472 · Sable #F4EFE6
            Cuivre #A9521F · Gris texte #6B6760
   Typo   : Manrope 800/700 (titres, nav, boutons) · Inter 400 (texte) · Inter 600 capitales (étiquettes)
   ========================================================================== */

:root {
  --noir: #12110f;
  --noir-2: #1c1b18;
  --noir-line: #2f2d29;
  --creme: #fefdf9;
  --orange: #fca472;
  --orange-hover: #fb9257;
  --sable: #f4efe6;
  --sable-2: #ece5d8;
  --cuivre: #a9521f;
  --gris: #6b6760;
  --texte: #2b2925;
  --line: #e2dccf;
  --line-strong: #cfc7b8;

  --f-titre: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-texte: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-label: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --radius: 12px;
  --radius-lg: 16px;
  --container: 1200px;
  --gutter: clamp(16px, 5.5vw, 72px);
  --section: clamp(64px, 9vw, 112px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--texte);
  font-family: var(--f-texte);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--orange); color: var(--noir); }
:focus-visible { outline: 2px solid var(--cuivre); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--noir); color: var(--creme); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Typographie ---------- */
h1, h2, h3, h4 { font-family: var(--f-titre); color: var(--noir); margin: 0; }
/* Titres principaux : Manrope 800 */
h1, h2 { font-weight: 800; letter-spacing: -0.035em; line-height: 0.95; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
/* Titres secondaires et titres de cartes : Manrope 700 */
h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
p { margin: 0; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.18rem); line-height: 1.6; color: #45423c; max-width: 36em; }
.muted { color: var(--gris); }

.eyebrow {
  display: inline-block;
  font-family: var(--f-label);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cuivre);
  margin-bottom: 14px;
}
.on-dark .eyebrow, .eyebrow.on-dark { color: var(--orange); }
.mono { font-family: var(--f-label); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gris); }

.link-arrow {
  font-family: var(--f-titre);
  font-weight: 700;
  color: var(--cuivre);
  text-underline-offset: 3px;
  white-space: nowrap;
}
.link-arrow::after { content: " →"; }
.link-arrow:hover { color: var(--noir); }
.on-dark .link-arrow { color: var(--orange); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--f-titre); font-weight: 700; font-size: 0.98rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(18, 17, 15, 0.45); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-primary { background: var(--orange); color: var(--noir); }
.btn-primary:hover { background: var(--orange-hover); }
.btn-dark { background: var(--noir); color: var(--creme); }
.btn-dark:hover { background: #2a2824; }
.btn-outline { background: transparent; color: var(--noir); border-color: var(--noir); }
.btn-outline:hover { background: var(--noir); color: var(--creme); }
.btn-outline-light { background: transparent; color: var(--creme); border-color: var(--creme); }
.btn-outline-light:hover { background: var(--creme); color: var(--noir); }
.btn-lg { min-height: 56px; padding: 14px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 8px 18px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--creme); color: var(--noir);
  font-family: var(--f-titre); font-size: 0.9rem; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--noir); }
.chip.is-active, .chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--noir); color: var(--creme); border-color: var(--noir); }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.bg-sable .chip:not(.is-active) { background: transparent; }
.back-link { font-family: var(--f-titre); font-weight: 700; color: var(--cuivre); text-underline-offset: 3px; white-space: nowrap; }
.back-link:hover { color: var(--noir); }

.on-dark .chip { background: rgba(18, 17, 15, 0.72); color: var(--creme); border-color: #4a4640; }
.on-dark .chip:hover { border-color: var(--orange); }
.on-dark .chip.is-active { background: var(--orange); color: var(--noir); border-color: var(--orange); }

.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; }
.checks li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: #4a4741; }
.checks li::before {
  content: ""; width: 14px; height: 14px; flex: none;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23A9521F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E");
}
.checks.stack { flex-direction: column; gap: 10px; }
.checks.stack li { font-size: 1rem; color: var(--texte); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-sm { padding-block: clamp(48px, 6vw, 72px); }
.bg-sable { background: var(--sable); }
.bg-noir, .on-dark { background: var(--noir); color: #d9d4ca; }
.bg-noir h1, .bg-noir h2, .bg-noir h3, .bg-noir h4 { color: var(--creme); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 48px); flex-wrap: wrap; }
.section-head h2 { max-width: 18em; }

/* ---------- Bandeau + en-tête ---------- */
.topbar { background: var(--noir); color: #d9d4ca; font-size: 0.8rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.topbar a { text-decoration: none; color: var(--creme); }
.topbar a:hover { color: var(--orange); }
.topbar-msg { display: flex; align-items: center; gap: 10px; }
.topbar-msg::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.topbar-right { display: flex; gap: 22px; align-items: center; }

.lang { font-family: var(--f-label); font-size: 0.78rem; letter-spacing: 0.06em; display: inline-flex; gap: 6px; align-items: center; color: var(--gris); }
.lang a, .lang span { text-decoration: none; }
.lang .is-current { color: inherit; font-weight: 500; }
.topbar .lang { color: #8f8a80; }
.topbar .lang .is-current { color: var(--creme); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(254, 253, 249, 0.94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--noir); flex: none; }
.brand img { width: 32px; height: 33px; }
.brand span { font-family: var(--f-titre); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.035em; }
.on-dark .brand, .site-footer .brand { color: var(--creme); }

.nav { margin-inline: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(14px, 2vw, 28px); }
.nav a { text-decoration: none; font-family: var(--f-titre); font-weight: 600; font-size: 0.93rem; color: var(--noir); padding-block: 6px; white-space: nowrap; transition: color .2s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--cuivre); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone { font-family: var(--f-titre); font-weight: 700; text-decoration: none; font-size: 0.95rem; white-space: nowrap; }
.header-phone:hover { color: var(--cuivre); }
.menu-toggle { display: none; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 20px; height: 2px; background: var(--noir); border-radius: 2px; position: relative; transition: transform .2s, background-color .2s; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
.header-lang { display: none; }
.nav-extra { display: none; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(48px, 7vw, 88px) clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero h1 { margin-bottom: 28px; letter-spacing: -0.045em; line-height: 0.92; }
.hero .lead { margin-bottom: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }

/* Carte sombre (formulaire rappel / devis) */
.dark-card { position: relative; overflow: hidden; background: var(--noir); color: #d9d4ca; border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 32px); isolation: isolate; }
.dark-card h2, .dark-card h3 { color: var(--creme); font-size: 1.45rem; font-weight: 800; }
.dark-card .card-sub { font-size: 0.88rem; color: #a7a198; margin: 8px 0 18px; }
.dark-card .ring-deco { position: absolute; z-index: -1; top: -24%; right: -16%; width: 70%; pointer-events: none; opacity: .95; }
.ring-deco svg { width: 100%; height: auto; }

/* ---------- Formulaires ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label, .field .label { font-size: 0.82rem; font-weight: 500; color: var(--noir); }
.field .hint { font-size: 0.8rem; color: var(--gris); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  background: var(--creme); border: 1px solid var(--line-strong); border-radius: 14px;
  font-size: 0.98rem; color: var(--noir);
  transition: border-color .2s ease, box-shadow .25s ease, background-color .2s ease;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: #9c978e; }
.input:hover, .textarea:hover { border-color: #a9a294; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--noir); box-shadow: 0 0 0 4px rgba(252, 164, 114, 0.3); }
.select { appearance: none; -webkit-appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2312110F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 14px; cursor: pointer; }
.dark-card .field label { color: #c8c2b8; font-weight: 400; }
.dark-card .input, .dark-card .select { background-color: rgba(28, 27, 24, 0.86); border-color: #3a3732; color: var(--creme); }
.dark-card .select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23FEFDF9' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); }
.dark-card .select option { background: var(--noir-2); }
.dark-card .input:focus, .dark-card .select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(252, 164, 114, 0.22); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: #c0412b; box-shadow: 0 0 0 3px rgba(192, 65, 43, 0.15); }
.consent input[aria-invalid="true"] { outline: 2px solid #c0412b; outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-msg { margin-top: 14px; font-size: 0.9rem; padding: 12px 14px; border-radius: 10px; }
.form-msg.ok { background: rgba(252, 164, 114, 0.14); color: var(--noir); border: 1px solid rgba(169, 82, 31, .35); }
.form-msg.err { background: #fbecea; color: #8c2a1a; border: 1px solid #ecc5bd; }
.dark-card .form-msg.ok { color: var(--creme); background: rgba(252, 164, 114, 0.12); border-color: rgba(252, 164, 114, .4); }
.dark-card .form-msg.err { background: rgba(220, 90, 70, .14); color: #ffd2c8; border-color: rgba(220, 90, 70, .4); }
.dark-card .form-foot { text-align: center; margin-top: 14px; font-size: 0.88rem; }
.dark-card .form-foot a { color: var(--orange); text-underline-offset: 3px; }

/* ---------- Chiffres clés ---------- */
.stats { background: var(--noir); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: clamp(40px, 5vw, 56px); }
.stat strong { display: block; font-family: var(--f-titre); font-weight: 800; font-size: clamp(2.2rem, 4.2vw, 3.1rem); line-height: 1; color: var(--orange); letter-spacing: -0.035em; margin-bottom: 12px; }
.stat span { color: #c8c2b8; font-size: 0.95rem; }

/* ---------- Votre profil : accordéon horizontal (vertical sous 900 px) ---------- */
.section-center { text-align: center; max-width: 820px; margin: 0 auto clamp(36px, 5vw, 56px); }
.pacc { display: flex; gap: 10px; height: 470px; }
.pacc-item {
  --ease: cubic-bezier(.65, 0, .35, 1);
  --strip: clamp(84px, 8.6vw, 118px);
  position: relative; overflow: hidden; isolation: isolate;
  flex: 0 1 var(--strip); min-width: 0;
  border-radius: var(--radius); background: var(--noir);
  transition: flex-grow .75s var(--ease), background-color .5s ease, box-shadow .5s ease;
  container-type: inline-size;
}
.pacc-item.is-active { flex-grow: 1; background: var(--sable); box-shadow: inset 0 0 0 1px var(--line-strong), 0 30px 60px -40px rgba(18, 17, 15, .35); }
.pacc-bg { position: absolute; inset: 0; z-index: -2; background-image: var(--photo); background-size: cover; background-position: center; filter: grayscale(.35) contrast(1.05); transition: opacity .6s ease, left .75s var(--ease), filter .6s ease; }
.pacc-item::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(18, 17, 15, .3) 0%, rgba(18, 17, 15, .55) 45%, rgba(18, 17, 15, .9) 100%); transition: opacity .5s ease; }
.pacc-item:not(.is-active):hover .pacc-bg { filter: grayscale(0) contrast(1.05); }
.pacc-item.is-active .pacc-bg { left: 58%; opacity: .22; filter: grayscale(.6); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%); mask-image: linear-gradient(90deg, transparent 0%, #000 45%); }
.pacc-item.is-active::after { opacity: 0; }

.pacc-heading { margin: 0; font-size: inherit; line-height: inherit; letter-spacing: normal; }
.pacc-btn { position: absolute; inset: 0; z-index: 2; width: 100%; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pacc-btn:focus-visible { outline: 2px solid var(--orange); outline-offset: -4px; border-radius: var(--radius); }
.pacc-item.is-active .pacc-btn { inset: 0 0 auto 0; height: 104px; cursor: default; }

/* Bandeau étroit : grand numéro + nom vertical */
.pacc-strip { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 26px 0 26px clamp(16px, 1.6vw, 24px); transition: opacity .35s ease .3s; }
.pacc-strip .pacc-num { font-family: var(--f-titre); font-weight: 800; font-size: clamp(2rem, 3.2vw, 2.7rem); letter-spacing: -0.045em; line-height: .92; color: var(--orange); }
.pacc-vname { writing-mode: vertical-rl; transform: rotate(180deg); max-height: 72%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--f-titre); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; color: var(--creme); }
.pacc-item.is-active .pacc-strip { opacity: 0; pointer-events: none; transition: opacity .2s ease; }

/* En-tête du panneau actif : numéro + nom + ligne d'accent cuivre */
.pacc-head { position: absolute; left: clamp(24px, 3vw, 36px); right: clamp(24px, 3vw, 36px); top: 30px; display: flex; align-items: baseline; gap: 14px; padding-bottom: 18px; white-space: nowrap; opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
.pacc-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--cuivre); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.pacc-item.is-active .pacc-head { opacity: 1; transform: none; transition: opacity .45s ease .45s, transform .45s ease .45s; }
.pacc-item.is-active .pacc-head::after { transform: scaleX(1); transition: transform .8s var(--ease) .55s; }
.pacc-head .pacc-num { font-family: var(--f-titre); font-weight: 800; font-size: clamp(1.9rem, 2.6vw, 2.4rem); letter-spacing: -0.045em; line-height: .92; color: var(--cuivre); }
.pacc-name { font-family: var(--f-titre); font-weight: 700; font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -0.02em; line-height: 1.05; color: var(--noir); }
.pacc-chev { display: none; }

/* Contenu : révélé après l'ouverture, en léger décalé */
.pacc-panel { position: absolute; inset: 104px 0 0 0; padding: 24px clamp(24px, 3vw, 36px) 30px; visibility: hidden; transition: visibility 0s linear .2s; }
.pacc-item.is-active .pacc-panel { visibility: visible; transition: visibility 0s; }
.pacc-clip { height: 100%; }
.pacc-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); height: 100%; }
.pacc-side { border-left: 1px solid var(--line-strong); padding-left: clamp(20px, 2.6vw, 32px); }
.pacc-label { display: block; margin-bottom: 10px; font-family: var(--f-label); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cuivre); }
.pacc-title { margin-bottom: 18px; font-family: var(--f-titre); font-weight: 700; font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -0.02em; line-height: 1.05; color: var(--noir); }
.pacc-points { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.pacc-points li { position: relative; padding-left: 18px; font-size: 0.95rem; line-height: 1.5; color: #45423c; }
.pacc-points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--cuivre); }
.pacc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pacc-chips .chip { min-height: 36px; padding: 6px 14px; font-size: 0.85rem; background: rgba(254, 253, 249, .72); }
.pacc-main > *, .pacc-side > * { opacity: 0; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease; }
.pacc-item.is-active .pacc-main > *, .pacc-item.is-active .pacc-side > * { opacity: 1; transform: none; transition: opacity .45s ease, transform .45s ease; }
.pacc-item.is-active .pacc-main > :nth-child(1) { transition-delay: .5s; }
.pacc-item.is-active .pacc-main > :nth-child(2) { transition-delay: .58s; }
.pacc-item.is-active .pacc-main > :nth-child(3) { transition-delay: .66s; }
.pacc-item.is-active .pacc-main > :nth-child(4) { transition-delay: .74s; }
.pacc-item.is-active .pacc-side > :nth-child(1) { transition-delay: .62s; }
.pacc-item.is-active .pacc-side > :nth-child(2) { transition-delay: .7s; }
@container (max-width: 660px) {
  .pacc-inner { grid-template-columns: 1fr; gap: 18px; }
  .pacc-side { border-left: 0; padding-left: 0; }
  .pacc-points { margin-bottom: 20px; }
}
@media (max-width: 1180px) and (min-width: 900px) { .pacc { height: 540px; } }

/* Mobile : accordéon vertical, un seul élément ouvert */
@media (max-width: 899px) {
  .pacc { flex-direction: column; height: auto; }
  .pacc-item, .pacc-item.is-active { flex: none; }
  .pacc-btn, .pacc-item.is-active .pacc-btn { position: relative; inset: auto; height: auto; cursor: pointer; }
  .pacc-strip { display: none; }
  .pacc-head, .pacc-item.is-active .pacc-head { position: relative; left: auto; right: auto; top: auto; align-items: center; padding: 20px; white-space: normal; opacity: 1; transform: none; transition: none; }
  .pacc-head::after { display: none; }
  .pacc-head .pacc-num { color: var(--orange); font-size: 1.7rem; }
  .pacc-name { color: var(--creme); font-size: 1.2rem; }
  .pacc-item.is-active .pacc-head .pacc-num { color: var(--cuivre); }
  .pacc-item.is-active .pacc-name { color: var(--noir); }
  .pacc-chev { display: block; flex: none; margin-left: auto; width: 11px; height: 11px; border-right: 2px solid var(--creme); border-bottom: 2px solid var(--creme); transform: translateY(-3px) rotate(45deg); transition: transform .35s ease; }
  .pacc-item.is-active .pacc-chev { border-color: var(--noir); transform: translateY(3px) rotate(-135deg); }
  .pacc-panel { position: static; padding: 0; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s ease, visibility 0s linear .5s; }
  .pacc-item.is-active .pacc-panel { grid-template-rows: 1fr; transition: grid-template-rows .5s ease, visibility 0s; }
  .pacc-clip { height: auto; min-height: 0; overflow: hidden; }
  .pacc-inner { grid-template-columns: 1fr; gap: 20px; height: auto; padding: 0 20px 24px; }
  .pacc-side { border-left: 0; padding-left: 0; }
  .pacc-item.is-active .pacc-bg { left: 40%; }
  .pacc-item.is-active .pacc-main > *, .pacc-item.is-active .pacc-side > * { transition-delay: .15s !important; }
}

/* Fiche projet : crédit photo */
.project-figure { margin: 0; }
.photo-credit { margin-top: 10px; font-size: 0.8rem; color: var(--gris); }
.photo-credit a { color: inherit; }

/* ---------- Cartes expertises ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.card { background: var(--creme); border-radius: var(--radius); padding: clamp(22px, 2.4vw, 28px); }
.service-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .3s ease, box-shadow .3s ease; min-height: 100%; }
.service-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px -18px rgba(18, 17, 15, 0.35); }
.service-card .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.service-card .num { font-family: var(--f-label); font-size: 0.78rem; color: var(--cuivre); }
.ring-icon { display: block; width: 28px; height: 28px; }
.ring-icon svg { width: 100%; height: 100%; }
.service-card h3 { margin-bottom: 14px; }
.service-card p { font-size: 0.95rem; color: #4e4b45; margin-bottom: 22px; }
.service-card .mono { margin-top: auto; line-height: 1.7; }
.service-list { display: none; }

.mini-card { background: var(--creme); border-radius: var(--radius); padding: 22px 20px; }
.mini-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.mini-card p { font-size: 0.9rem; color: var(--gris); }

/* ---------- Zones ---------- */
.zones { position: relative; overflow: hidden; isolation: isolate; }
.zones .ring-deco { position: absolute; right: -6%; bottom: -30%; width: min(560px, 55%); z-index: -1; opacity: .8; }
.zones-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.zones h2 { margin-bottom: 32px; }
.zone-card { background: var(--noir-2); border: 1px solid var(--noir-line); border-radius: var(--radius); padding: 22px 22px; margin-bottom: 12px; }
.zone-card h3 { font-size: 1.08rem; color: var(--creme); margin-bottom: 6px; }
.zone-card p { font-size: 0.93rem; color: #b5afa5; }
.zones .mono { color: #a7a198; margin-bottom: 14px; display: block; }

/* ---------- Pourquoi ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(24px, 3vw, 36px); }
.why-item { border-top: 2px solid var(--noir); padding-top: 22px; }
.why-item.accent { border-top-color: var(--orange); }
.why-item h3 { font-size: 1.15rem; margin-bottom: 10px; }
.why-item p { font-size: 0.95rem; color: #55524b; }
.on-dark .why-item { border-top-color: var(--creme); }
.on-dark .why-item.accent { border-top-color: var(--orange); }
.on-dark .why-item p { color: #b5afa5; }

/* ---------- Méthode ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 17px; left: 17px; right: 17px; height: 1px; background: var(--line-strong); }
.steps li { position: relative; }
.step-num { position: relative; display: inline-grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; background: var(--noir); color: var(--creme); font-family: var(--f-label); font-size: 0.78rem; margin-bottom: 18px; }
.steps li.accent .step-num { background: var(--orange); color: var(--noir); }
.steps h3 { font-size: 1.05rem; margin-bottom: 10px; }
.steps p { font-size: 0.9rem; color: #55524b; }

/* ---------- Réalisations ---------- */
.filters { margin-bottom: 32px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 18px; }
.project-card { text-decoration: none; color: inherit; display: block; }
.project-card .thumb { margin-bottom: 14px; }
.project-card .mono { display: block; margin-bottom: 8px; }
.project-card h3 { font-size: 1.15rem; line-height: 1.3; }
.project-card:hover h3 { color: var(--cuivre); }
.thumb {
  position: relative; aspect-ratio: 10 / 7; border-radius: var(--radius); overflow: hidden;
  background-color: #ece5d8;
  background-image: repeating-linear-gradient(135deg, transparent 0 22px, rgba(18, 17, 15, 0.06) 22px 23px);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card:hover .thumb img { transform: scale(1.03); }
.thumb .ph { position: absolute; left: 14px; bottom: 12px; font-family: var(--f-label); font-size: 0.66rem; letter-spacing: 0.06em; color: #7c776e; }
.thumb.wide { aspect-ratio: 16 / 9; }
.empty-state { grid-column: 1 / -1; padding: 40px; text-align: center; color: var(--gris); border: 1px dashed var(--line-strong); border-radius: var(--radius); }

.logos { border-block: 1px solid var(--line); }
.logos .container { display: grid; grid-template-columns: 140px 1fr; gap: 32px; align-items: center; }
.logos .mono { line-height: 1.5; }
.logo-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.logo-ph { height: 42px; border-radius: 8px; border: 1px solid transparent; transition: border-color .3s ease; background-color: #ece5d8; background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(18, 17, 15, 0.05) 14px 15px); display: grid; place-items: center; overflow: hidden; }
.logo-ph:hover { border-color: var(--orange); }
.logo-ph img { max-height: 30px; width: auto; filter: grayscale(1); opacity: .8; }

/* ---------- Guides ---------- */
.guide-card { background: var(--sable); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; text-decoration: none; color: inherit; min-height: 200px; transition: background-color .2s; }
.guide-card:hover { background: var(--sable-2); }
.guide-card .mono { margin-bottom: 12px; }
.guide-card h3 { font-size: 1.15rem; line-height: 1.3; margin-bottom: 26px; }
.guide-card .link-arrow { margin-top: auto; font-size: 0.9rem; text-decoration: underline; }
.bg-sable .guide-card { background: var(--creme); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr); gap: clamp(32px, 5vw, 64px); }
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 20px 0; font-family: var(--f-titre); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; font-size: 1rem; color: var(--noir); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-texte); font-weight: 400; font-size: 1.3rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--cuivre); }
.faq .answer { padding: 0 40px 0 0; color: #55524b; font-size: 0.95rem; overflow: hidden; transform-origin: top left; }
.faq .answer > :last-child { padding-bottom: 22px; }

/* ---------- CTA final ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; }
.cta .ring-deco { position: absolute; z-index: -1; left: -8%; top: -10%; width: min(380px, 40%); opacity: .7; }
.cta.ring-right .ring-deco { left: auto; right: -4%; top: -20%; }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) auto; gap: 32px; align-items: center; }
.cta h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 18px; }
.cta p { color: #b5afa5; max-width: 36em; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Pied de page ---------- */
.site-footer { background: #0c0b0a; color: #b5afa5; font-size: 0.92rem; padding-block: 64px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 0.9fr 1.2fr; gap: 32px; }
.footer-grid h2 { font-family: var(--f-label); font-size: 0.75rem; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; color: #d9d4ca; }
.footer-grid a:hover { color: var(--orange); }
.footer-tag { margin-top: 16px; max-width: 18em; }
.footer-phone { font-family: var(--f-titre); font-weight: 800; font-size: 1.3rem; color: var(--creme) !important; display: inline-block; margin-bottom: 8px; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid #23211e; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; color: #8f8a80; }
.footer-bottom a { color: #8f8a80; }

/* ---------- Bouton WhatsApp flottant + barre mobile ---------- */
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: var(--noir); color: var(--creme); display: grid; place-items: center; box-shadow: 0 10px 28px -10px rgba(0, 0, 0, .5); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 24px; height: 24px; }
.mobile-bar { display: none; }

/* ---------- Pages internes ---------- */
.breadcrumb { font-family: var(--f-label); font-size: 0.78rem; color: var(--gris); padding-top: 24px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #a7a198; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--cuivre); }
.breadcrumb [aria-current] { color: var(--noir); }

.page-hero { padding-block: clamp(28px, 4vw, 48px) clamp(56px, 7vw, 88px); }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: 24px; letter-spacing: -0.045em; line-height: 0.92; }
.page-hero .lead { margin-bottom: 32px; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 560px; }
.fact { border-top: 2px solid var(--noir); padding-top: 14px; }
.fact.accent { border-top-color: var(--orange); }
.fact .mono { display: block; margin-bottom: 6px; font-size: 0.66rem; }
.fact strong { font-size: 0.95rem; color: var(--noir); line-height: 1.35; display: block; }

.deliverables-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr); gap: clamp(32px, 5vw, 64px); }
.deliverables { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(20px, 3vw, 32px); }
.deliverables li { display: grid; grid-template-columns: 28px 1fr; gap: 0 4px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: -1px; }
.deliverables .n { font-family: var(--f-label); font-size: 0.75rem; color: var(--cuivre); padding-top: 3px; }
.deliverables h3 { font-size: 1rem; margin-bottom: 4px; }
.deliverables p { font-size: 0.9rem; color: var(--gris); grid-column: 2; }

.price-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.price-grid h2 { margin-bottom: 18px; }
.price-grid > div > p { color: #b5afa5; }
.criteria { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.criteria .zone-card { margin: 0; }
.criteria h3 { font-size: 0.98rem; }
.criteria p { font-size: 0.85rem; }

.related { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 40px; }

.prose { max-width: 720px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: 48px 0 16px; }
.prose h3 { margin: 32px 0 12px; }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; color: #3d3a35; font-size: 1.04rem; line-height: 1.75; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--cuivre); }
.prose .video { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; margin: 28px 0; background: var(--sable); }
.prose .video iframe { width: 100%; height: 100%; border: 0; }
.note { background: var(--sable); border-radius: var(--radius); padding: 18px 20px; font-size: 0.95rem; color: #4e4b45; }

.split.article-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.article-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.btn-block { white-space: normal; text-align: center; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }

.list-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--noir); }
.list-rows a { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--line-strong); text-decoration: none; color: var(--noir); font-family: var(--f-titre); font-weight: 700; letter-spacing: -0.02em; font-size: 1.05rem; }
.list-rows .n { font-family: var(--f-label); font-size: 0.76rem; color: var(--cuivre); font-weight: 400; }
.list-rows a::after { content: "→"; font-weight: 400; transition: transform .15s; }
.list-rows a:hover { color: var(--cuivre); }
.list-rows a:hover::after { transform: translateX(4px); }

/* ---------- Recrutement ---------- */
.job-hero-wrap { padding-top: clamp(16px, 2.5vw, 28px); }
.job-hero { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius-lg); min-height: clamp(240px, 30vw, 400px); display: grid; place-items: center; background: var(--noir); }
.job-hero-media { position: absolute; inset: -14% 0; z-index: -2; }
.job-hero-media picture { display: block; height: 100%; }
.job-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; }
.job-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18, 17, 15, .45) 0%, rgba(18, 17, 15, .28) 45%, rgba(18, 17, 15, .62) 100%); }
.job-hero-inner { text-align: center; padding: 64px 20px 48px; }
.job-hero h1 { color: var(--creme); text-transform: uppercase; letter-spacing: -0.045em; font-size: clamp(2.4rem, 7.2vw, 5.4rem); line-height: 1; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.breadcrumb.on-photo { padding: 0; margin-bottom: 18px; color: rgba(254, 253, 249, .78); display: flex; justify-content: center; }
.breadcrumb.on-photo [aria-current] { color: var(--creme); }
.breadcrumb.on-photo li + li::before { color: rgba(254, 253, 249, .5); }
.breadcrumb.on-photo a:hover { color: var(--orange); }
.job-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.job-grid h2#join-title { font-size: clamp(2rem, 3.6vw, 2.75rem); margin-bottom: 20px; }
.job-subtitle { font-family: var(--f-label); font-size: 0.75rem; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gris); margin: 40px 0 14px; }
.job-list a { grid-template-columns: 40px 1fr auto; align-items: start; }
.job-list a > span:nth-child(2) { display: grid; gap: 2px; }
.job-list strong { font-weight: 600; }
.job-list .muted { font-weight: 400; font-size: 0.9rem; }
.cv-mail { margin-top: 36px; padding: 24px; border-radius: var(--radius); background: var(--sable); }
.cv-mail .mono { display: block; margin-bottom: 6px; }
.cv-mail a { font-family: var(--f-titre); font-weight: 800; font-size: clamp(1.25rem, 2.4vw, 1.6rem); color: var(--noir); text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 5px; word-break: break-word; }
.cv-mail a:hover { color: var(--cuivre); }
.cv-mail p { margin-top: 10px; color: var(--gris); }
.job-form { position: sticky; top: calc(var(--header-h) + 24px); scroll-margin-top: 100px; }
.job-form .card { background: var(--creme); border: 1px solid var(--line); box-shadow: 0 24px 50px -36px rgba(18, 17, 15, .35); }
.job { background: var(--creme); border-radius: var(--radius); padding: 24px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.job + .job { margin-top: 12px; }
.job h3 { font-size: 1.1rem; margin-bottom: 6px; }

.project-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-block: 32px; }

/* ---------- Page devis ---------- */
.devis-header { border-bottom: 1px solid var(--line); background: var(--creme); }
.devis-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; max-width: none; }
.devis-header .mono { letter-spacing: 0.14em; }
.devis-header .right { display: flex; gap: 22px; align-items: center; }
.devis-layout { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; min-height: calc(100vh - 65px); }
.devis-aside { position: relative; overflow: hidden; isolation: isolate; background: var(--noir); color: #c8c2b8; padding: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px); display: flex; flex-direction: column; }
.devis-aside h1 { color: var(--creme); font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 14px; }
.devis-aside .ring-deco { position: absolute; z-index: -1; left: 34%; bottom: -26%; width: 100%; opacity: .55; }
.stepper { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 18px; }
.stepper li { display: flex; align-items: center; gap: 14px; color: #8f8a80; font-family: var(--f-titre); font-weight: 700; }
.stepper .dot { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid #4a4640; display: grid; place-items: center; font-family: var(--f-label); font-size: 0.74rem; font-weight: 400; flex: none; }
.stepper li.is-current { color: var(--creme); }
.stepper li.is-current .dot { border-color: var(--orange); color: var(--orange); }
.stepper li.is-done { color: var(--creme); }
.stepper li.is-done .dot { background: var(--orange); border-color: var(--orange); color: var(--noir); font-size: 0; }
.stepper li.is-done .dot::before { content: ""; width: 13px; height: 13px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2312110F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E"); }
.aside-foot { margin-top: auto; padding-top: 48px; font-size: 0.85rem; display: grid; gap: 6px; }
.aside-foot a { color: var(--orange); }
.devis-main { padding: clamp(32px, 5vw, 64px) clamp(20px, 5vw, 80px); max-width: 820px; width: 100%; }
.devis-step h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 8px; }
.devis-step > .muted { margin-bottom: 30px; }
.q { margin-bottom: 30px; border: 0; padding: 0; min-width: 0; }
.q legend, .q > .label { font-weight: 600; color: var(--noir); margin-bottom: 12px; padding: 0; font-size: 1rem; }
.q .hint { font-size: 0.85rem; color: var(--gris); margin: -6px 0 12px; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 14px; font-weight: 500; font-size: 0.95rem; background: var(--creme); transition: border-color .2s ease, background-color .2s ease, transform .2s ease, box-shadow .25s ease; }
.opt:hover span { transform: translateY(-1px); box-shadow: 0 10px 22px -18px rgba(18, 17, 15, .5); }
.opt span::before { content: ""; width: 18px; height: 18px; border: 1.5px solid var(--line-strong); border-radius: 5px; flex: none; transition: all .15s; }
.opt input[type="radio"] + span::before { border-radius: 50%; }
.opt input:checked + span { border-color: var(--noir); background: var(--sable); }
.opt input:checked + span::before { background: var(--noir); border-color: var(--noir); box-shadow: inset 0 0 0 3px var(--sable); }
.opt input:focus-visible + span { outline: 2px solid var(--cuivre); outline-offset: 2px; }
.opt:hover span { border-color: var(--noir); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 40px 20px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); background: var(--sable); cursor: pointer; transition: border-color .15s, background-color .15s; }
.dropzone.is-over { border-color: var(--cuivre); background: var(--sable-2); }
.dropzone strong { color: var(--noir); }
.dropzone svg { width: 32px; height: 32px; color: var(--cuivre); }
.file-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.file-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 0.9rem; }
.file-list .size { color: var(--gris); font-family: var(--f-label); font-size: 0.75rem; }
.file-list button { border: 0; background: none; cursor: pointer; color: var(--gris); font-size: 1.2rem; line-height: 1; padding: 4px 6px; }
.file-list button:hover { color: #8c2a1a; }
.step-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.progress { height: 3px; background: var(--line); border-radius: 3px; margin-bottom: 32px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--orange); width: 25%; transition: width .3s ease; }
.success-ring { width: 72px; height: 72px; margin-bottom: 24px; }
.recap { background: var(--sable); border-radius: var(--radius); padding: 18px 20px; margin: 24px 0 28px; display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; font-size: 0.92rem; }
.recap dt { color: var(--gris); }
.recap dd { margin: 0; font-weight: 600; color: var(--noir); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--gris); }
.consent input { margin-top: 4px; accent-color: var(--noir); }

/* ==========================================================================
   Maquette V2 / Design 2 : composants des pages Accueil, Cabinet, Recrutement, Devis
   ========================================================================== */
/* Accueil : H1 SEO discret + slogan */
.hero .hero-h1 { display: block; margin: 0 0 14px; font-size: 0.78rem; line-height: 1.4; letter-spacing: 0.08em; color: var(--cuivre); }
.hero-tagline { margin: 0 0 28px; font-family: var(--f-titre); font-weight: 800; font-size: clamp(2.6rem, 6.2vw, 4.4rem); letter-spacing: -0.045em; line-height: 0.92; color: var(--noir); }

/* Références */
.refs { border-block: 1px solid var(--line); }
.refs-grid { display: grid; gap: clamp(28px, 4vw, 44px); }
.refs-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.refs-head .muted { max-width: 420px; margin: 0; }
.refs h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); margin-bottom: 0; }
.logo-ph span { font-family: var(--f-label); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #8a857c; }
.refs .logo-row { grid-template-columns: repeat(8, 1fr); }
.refs .logo-ph { height: 96px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.refs .logo-ph:hover { border-color: var(--orange); }
.refs .logo-ph img { max-height: 66px; max-width: 100%; height: auto; filter: grayscale(1); opacity: 1; mix-blend-mode: multiply; }
.refs .logo-ph.is-empty { background: transparent; border-style: dashed; }
.refs .logo-ph.is-empty span { font-family: ui-monospace, "Cascadia Mono", monospace; text-transform: none; font-weight: 400; }
@media (max-width: 1180px) { .refs .logo-row { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 960px) { .refs .logo-row { grid-template-columns: repeat(4, 1fr); } .refs-head { flex-direction: column; align-items: flex-start; gap: 12px; } }

/* Cabinet */
.cab-card { display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; }
.cab-claim { font-family: var(--f-titre); font-weight: 800; font-size: clamp(1.4rem, 2.2vw, 1.75rem); letter-spacing: -0.035em; line-height: 1.05; color: var(--creme); padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--noir-line); max-width: 12em; }
.cab-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.cab-kpis strong { display: block; font-family: var(--f-titre); font-weight: 800; font-size: 1.7rem; letter-spacing: -0.035em; line-height: 1; color: var(--orange); }
.cab-kpis span { font-size: 0.82rem; color: #b5afa5; }
.philo { align-items: start; }
.philo-lead { font-family: var(--f-titre); font-weight: 700; font-size: clamp(1.2rem, 1.9vw, 1.45rem); letter-spacing: -0.02em; line-height: 1.25; color: var(--noir); margin-bottom: 16px; }
.values { margin-top: clamp(40px, 5vw, 56px); padding-top: 28px; border-top: 1px solid var(--line-strong); }
.values .mono, .types .mono, .moyens-grid .mono { display: block; margin-bottom: 14px; }
.values-grid { gap: 10px; }
.value-card { background: var(--creme); border-radius: var(--radius); padding: 18px 20px; font-family: var(--f-titre); font-weight: 700; letter-spacing: -0.02em; color: var(--noir); transition: transform .25s ease, box-shadow .25s ease; }
.value-card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -18px rgba(18, 17, 15, .4); }
.domain-card { padding: 26px 24px; margin: 0; }
.domain-card h3 { font-size: 1.3rem; margin-bottom: 14px; }
.domain-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.domain-card li { color: #c8c2b8; font-size: 0.93rem; padding-left: 16px; position: relative; }
.domain-card li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.moyens-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.team-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--noir); }
.team-list li { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.team-list strong { font-family: var(--f-titre); font-weight: 700; letter-spacing: -0.02em; color: var(--noir); }
.team-list span { color: var(--gris); font-size: 0.92rem; text-align: right; }
.soft-box { background: var(--sable); border-radius: var(--radius-lg); padding: 22px; display: grid; gap: 16px; }
.soft-label { display: block; font-size: 0.8rem; color: var(--gris); margin-bottom: 8px; }
.soft-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.soft-chips span { background: var(--creme); border-radius: 999px; padding: 7px 14px; font-family: var(--f-titre); font-weight: 700; font-size: 0.85rem; color: var(--noir); }
.soft-hw { padding-top: 16px; border-top: 1px solid var(--line-strong); }
.soft-hw p { font-size: 0.9rem; color: #45423c; }
.types { margin-top: clamp(48px, 6vw, 72px); }
.type-card { border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 24px; transition: border-color .25s ease, transform .25s ease; }
.type-card:hover { border-color: var(--noir); transform: translateY(-2px); }
.type-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.type-card p { font-size: 0.93rem; color: var(--gris); }
.legal-table { margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(20px, 3vw, 32px); }
.legal-table > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-strong); }
.legal-table > div:last-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line-strong); }
.legal-table dt { color: var(--gris); font-size: 0.9rem; }
.legal-table dd { margin: 0; text-align: right; font-weight: 600; color: var(--noir); font-size: 0.92rem; }
.prose .legal-table dd, .prose .legal-table dt { font-size: 0.92rem; }
.cta-row { flex-direction: row; flex-wrap: wrap; }

/* Recrutement */
.rec-hero { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(40px, 6vw, 72px) clamp(56px, 7vw, 88px); }
.rec-hero .ring-deco { position: absolute; z-index: -1; left: -10%; bottom: -45%; width: min(460px, 45%); opacity: .7; }
.rec-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.rec-hero .breadcrumb.on-photo { justify-content: flex-start; margin-bottom: 22px; }
.rec-hero h1 { color: var(--creme); margin-bottom: 22px; font-size: clamp(2.6rem, 5.6vw, 4rem); letter-spacing: -0.045em; line-height: 0.92; }
.rec-hero .lead { color: #c8c2b8; margin-bottom: 30px; }
.rec-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 6 / 5; background: var(--noir-2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.rec-photo picture { display: block; height: 100%; }
.rec-photo { margin: 0; }
.rec-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.why-grid.why-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.job-list-acc { display: grid; gap: 10px; }
.job-acc { background: var(--creme); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: box-shadow .3s ease, border-color .3s ease; }
.job-acc[open] { border-color: var(--line-strong); box-shadow: 0 20px 40px -30px rgba(18, 17, 15, .35); }
.job-acc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 8px; padding: 22px 24px; }
.job-acc summary::-webkit-details-marker { display: none; }
.job-acc summary::after { content: "+"; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 1.2rem; transition: transform .35s ease, background-color .2s, color .2s; }
.job-acc[open] summary::after { content: "−"; background: var(--noir); color: var(--creme); border-color: var(--noir); }
.job-acc summary:hover::after { border-color: var(--noir); }
.job-acc .n { font-family: var(--f-label); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.07em; color: var(--cuivre); }
.job-head strong { display: block; font-family: var(--f-titre); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--noir); }
.job-tags { font-size: 0.85rem; color: var(--gris); }
.job-body { padding: 0 24px 26px 76px; overflow: hidden; }
.job-resume { color: #45423c; margin-bottom: 20px; max-width: 46em; }
.job-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.job-cols .mono { display: block; margin-bottom: 10px; }
.job-cols .checks li { font-size: 0.93rem; }
.partner-band { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; background: var(--noir); color: #b5afa5; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); }
.partner-band .ring-deco { position: absolute; z-index: -1; right: -6%; top: -40%; width: 300px; opacity: .6; }
.partner-band h2 { color: var(--creme); font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 12px; max-width: 18em; }
.partner-band p { max-width: 40em; font-size: 0.95rem; }
.partner-band .eyebrow { color: var(--orange); }
.steps.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.app-success h3 { font-size: 1.6rem; margin-bottom: 10px; }
.app-success p { color: #45423c; margin-bottom: 20px; }
.dropzone-sm { padding: 24px 18px; flex-direction: row; flex-wrap: wrap; gap: 10px 14px; text-align: left; justify-content: flex-start; }
.dropzone-sm svg { width: 24px; height: 24px; flex: none; }
.dropzone-sm strong { font-size: 0.92rem; }
.dropzone-sm .muted { width: 100%; font-size: 0.82rem; }

/* Choix en pastilles (radio) : poste visé, phase, canal de contact */
.opt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-chip { position: relative; }
.opt-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt-chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--creme); font-family: var(--f-titre); font-weight: 600; font-size: 0.88rem; color: var(--noir); transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .2s ease, box-shadow .25s ease; }
.opt-chip span::before { content: ""; width: 0; height: 14px; overflow: hidden; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23FCA472' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E"); transition: width .25s ease; margin-right: -8px; }
.opt-chip:hover span { border-color: var(--noir); transform: translateY(-1px); }
.opt-chip input:checked + span { background: var(--noir); color: var(--creme); border-color: var(--noir); box-shadow: 0 8px 18px -12px rgba(18, 17, 15, .6); }
.opt-chip input:checked + span::before { width: 14px; margin-right: 0; }
.opt-chip input:focus-visible + span { outline: 2px solid var(--cuivre); outline-offset: 2px; }

/* Devis : profils avec précision, compteur d'étapes */
.opt-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opt-hint span { align-items: flex-start; }
.opt-hint span b { display: block; font-family: var(--f-titre); font-weight: 700; letter-spacing: -0.02em; }
.opt-hint span small { display: block; color: var(--gris); font-size: 0.82rem; font-weight: 400; margin-top: 2px; }
.opt-hint span::before { margin-top: 3px; }
.step-count { margin: -18px 0 18px; }
.step-note { font-size: 0.85rem; text-align: center; }


/* ---------- Listes déroulantes personnalisées (assets/js/select.js) ---------- */
.cselect { position: relative; }
.cselect-native { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; pointer-events: none; }
.cselect-btn {
  width: 100%; min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 18px; border-radius: 14px; border: 1px solid var(--line-strong);
  background: var(--creme); color: var(--noir); font: inherit; font-size: 0.98rem; text-align: left; cursor: pointer;
  transition: border-color .2s ease, box-shadow .25s ease, background-color .2s ease;
}
.cselect-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cselect-btn:hover { border-color: #a9a294; }
.cselect-btn:focus-visible, .cselect.is-open .cselect-btn { outline: none; border-color: var(--noir); box-shadow: 0 0 0 4px rgba(252, 164, 114, 0.3); }
.cselect-arrow { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--sable); color: var(--noir); transition: transform .4s cubic-bezier(.65, 0, .35, 1), background-color .25s ease; }
.cselect-arrow::before { content: ""; width: 7px; height: 7px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.cselect.is-open .cselect-arrow { transform: rotate(180deg); background: var(--orange); }
.cselect-list {
  position: fixed; z-index: 90; margin: 0; padding: 6px; list-style: none; overflow: auto; overscroll-behavior: contain;
  background: var(--creme); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 28px 56px -24px rgba(18, 17, 15, .4), 0 2px 6px rgba(18, 17, 15, .06);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.97); transform-origin: top center;
  transition: opacity .18s ease, transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .28s;
}
.cselect-list.is-up { transform-origin: bottom center; transform: translateY(8px) scale(.97); }
.cselect-list.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
.cselect-list:focus { outline: none; }
.cselect-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 10px; font-size: 0.95rem; color: var(--noir); cursor: pointer; transition: background-color .15s ease, padding-left .2s ease; }
.cselect-list li.is-active { background: var(--sable); padding-left: 18px; }
.cselect-list li[aria-selected="true"] { font-weight: 600; }
.cselect-list li[aria-selected="true"]::after { content: ""; flex: none; width: 14px; height: 14px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23A9521F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E"); }
.cselect-list li[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.cselect:has(select[aria-invalid="true"]) .cselect-btn { border-color: #c0412b; }
/* Variante sombre (cartes noires) */
.cselect-dark .cselect-btn { background: rgba(28, 27, 24, 0.86); border-color: #3a3732; color: var(--creme); }
.cselect-dark .cselect-btn:hover { border-color: #5a554d; }
.cselect-dark .cselect-btn:focus-visible, .cselect-dark.is-open .cselect-btn { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(252, 164, 114, 0.22); }
.cselect-dark .cselect-arrow { background: #2c2a26; color: var(--creme); }
.cselect-dark.is-open .cselect-arrow { background: var(--orange); color: var(--noir); }
.cselect-list-dark { background: #1d1c19; border-color: #34312c; box-shadow: 0 28px 56px -20px rgba(0, 0, 0, .7); }
.cselect-list-dark li { color: var(--creme); }
.cselect-list-dark li.is-active { background: #2e2c28; }
.cselect-list-dark li[aria-selected="true"]::after { filter: brightness(1.6); }
/* Filtre « ville » de la page Réalisations : bouton en pilule */
[data-projects] .cselect-btn { min-height: 42px; border-radius: 999px; padding: 6px 6px 6px 18px; font-family: var(--f-titre); font-weight: 600; font-size: 0.9rem; }
[data-projects] .cselect-arrow { width: 28px; height: 28px; }

/* ---------- Étiquettes, métadonnées, numéros : Inter 600 capitales ---------- */
.eyebrow, .mono, .lang, .step-num, .service-card .num, .thumb .ph, .footer-grid h2, .breadcrumb,
.deliverables .n, .list-rows .n, .stepper .dot, .file-list .size, .job-subtitle, .devis-tag,
.cv-mail .mono, .fact .mono, .zones .mono, .recap dt {
  font-family: var(--f-label);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.eyebrow { letter-spacing: 0.08em; }
.mono, .breadcrumb, .thumb .ph, .file-list .size { letter-spacing: 0.06em; }

/* ---------- Mouvement (BETB-MOTION-AUDIT) : actif seulement si <html class="motion"> ---------- */
.motion [data-anim]:not(.is-in),
.motion [data-stagger] > :not(.is-in) { opacity: 0; }
.motion [data-anim="up"]:not(.is-in),
.motion [data-anim="slow"]:not(.is-in),
.motion [data-stagger]:not([data-stagger="zoom"]) > :not(.is-in) { transform: translateY(30px); }
.motion [data-anim="up"][data-from-top]:not(.is-in),
.motion [data-anim="slow"][data-from-top]:not(.is-in),
.motion [data-stagger]:not([data-stagger="zoom"]) > [data-from-top]:not(.is-in) { transform: translateY(-30px); }
.motion [data-anim="zoom"]:not(.is-in),
.motion [data-stagger="zoom"] > :not(.is-in) { transform: scale(.8); }
.motion [data-anim].is-in:not([data-done]),
.motion [data-stagger] > .is-in:not([data-done]) { transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.motion [data-anim="slow"].is-in:not([data-done]) { transition-duration: 1.3s; }
.motion [data-anim="fade"].is-in:not([data-done]) { transition: opacity .7s ease .2s; }
[data-parallax] { will-change: transform; }

/* Lignes de section révélées par clip-path (2 s linéaire) */
.why-item, .fact { border-top: 0 !important; position: relative; }
.why-item::before, .fact::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--noir); clip-path: inset(0 0 0 0); transition: clip-path 2s linear; }
.why-item.accent::before, .fact.accent::before { background: var(--orange); }
.on-dark .why-item::before { background: var(--creme); }
.on-dark .why-item.accent::before { background: var(--orange); }
.motion .why-item:not(.is-in)::before, .motion .fact:not(.is-in)::before { clip-path: inset(0 100% 0 0); }

/* Retour en haut : entre par la droite après 700 px */
.to-top { position: fixed; z-index: 59; right: -80px; bottom: 92px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--creme); color: var(--noir); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: right .4s ease, opacity .4s ease, border-color .2s; box-shadow: 0 10px 24px -14px rgba(18, 17, 15, .5); }
.to-top svg { width: 20px; height: 20px; }
.to-top.is-shown { right: 28px; opacity: 1; }
.to-top:hover { border-color: var(--noir); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation-duration: 0s !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .header-phone { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .steps::before { display: none; }
}

/* Le numéro est déjà dans le bandeau supérieur : retiré de l'en-tête quand la place manque */
@media (max-width: 1320px) { .header-phone { display: none; } }

/* Menu hamburger dès 1180 px : la navigation complète ne tient pas sur une ligne en dessous */
@media (max-width: 1180px) {
  /* backdrop-filter créerait un bloc conteneur pour le menu fixe : désactivé avec le menu hamburger */
  .site-header { background: var(--creme); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu-toggle { display: inline-flex; }
  .site-header .container { gap: 16px; justify-content: space-between; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--creme); margin: 0; padding: 24px var(--gutter) 120px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .35s ease, visibility .35s; }
  .menu-open .nav { transform: none; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); font-family: var(--f-titre); font-weight: 700; font-size: 1.3rem; }
  .nav .nav-extra { display: grid; gap: 12px; margin-top: 28px; }
  .menu-open { overflow: hidden; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .header-lang { display: inline-flex; }
  .header-actions .btn { display: none; }
  .topbar { display: none; }

  .hero-grid, .page-hero-grid, .zones-grid, .faq-grid, .deliverables-grid, .price-grid, .split, .cta-grid { grid-template-columns: 1fr; }
  .split.article-grid { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .job-grid { grid-template-columns: 1fr; }
  .rec-hero-grid, .refs-grid, .moyens-grid { grid-template-columns: 1fr; }
  .rec-photo { aspect-ratio: 16 / 10; }
  .why-grid.why-4, .steps.steps-4 { grid-template-columns: 1fr 1fr; }
  .legal-table { grid-template-columns: 1fr; }
  .step-note { display: none; }
  .job-form { position: static; }
  .to-top { display: none; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .grid-3, .project-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .logos .container { grid-template-columns: 1fr; gap: 16px; }
  .logo-row { grid-template-columns: repeat(3, 1fr); }
  .devis-layout { grid-template-columns: 1fr; }
  .devis-aside { padding-bottom: 28px; }
  .devis-aside .stepper { grid-template-columns: repeat(4, auto); justify-content: start; gap: 18px; margin-top: 24px; }
  .devis-aside .stepper li span.t { display: none; }
  .devis-aside .stepper li.is-current span.t { display: inline; }
  .devis-aside .aside-foot { display: none; }
  .devis-tag, .devis-header .header-phone { display: none; }
  .project-meta { grid-template-columns: 1fr 1fr; }

  .wa-float { display: none; }
  .mobile-bar { display: flex; position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--creme); border-radius: 999px; padding: 6px; box-shadow: 0 10px 30px -8px rgba(18, 17, 15, 0.35), 0 0 0 1px var(--line); gap: 4px; }
  .mobile-bar a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 999px; text-decoration: none; font-family: var(--f-titre); font-weight: 700; font-size: 0.95rem; color: var(--noir); }
  .mobile-bar a svg { width: 18px; height: 18px; }
  .mobile-bar a.devis { background: var(--orange); }
  body.has-mobile-bar { padding-bottom: 88px; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .hero h1 { font-size: clamp(2.4rem, 11vw, 3rem); }
  .hero-ctas .btn { width: 100%; }
  .hero-ctas .btn-outline { display: none; }
  .hero .checks { flex-direction: column; gap: 8px; }
  .hero .checks li:nth-child(2) { display: none; }
  .stats { background: var(--creme); }
  .stats-grid { gap: 12px; padding-block: 0 40px; }
  .stat { background: var(--sable); border-radius: var(--radius); padding: 20px; }
  .stat strong { color: var(--noir); font-size: 2rem; margin-bottom: 6px; }
  .stat span { color: var(--gris); font-size: 0.88rem; }
  .grid-3, .grid-2, .project-grid, .why-grid, .criteria, .deliverables { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; row-gap: 28px; }
  .steps li { display: grid; grid-template-columns: 35px 1fr; column-gap: 16px; }
  .steps .step-num { margin: 0; grid-row: span 2; }
  .facts { grid-template-columns: 1fr 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .recap { grid-template-columns: 1fr; gap: 2px; }
  .recap dd { margin-bottom: 10px; }
  .job { grid-template-columns: 1fr; }
  .why-grid.why-4, .steps.steps-4, .opt-grid-2, .job-cols { grid-template-columns: 1fr; }
  .job-acc summary { grid-template-columns: 34px 1fr auto; padding: 18px; }
  .job-body { padding: 0 18px 22px; }
  .refs .logo-row { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .refs .logo-ph { height: 84px; }
  .team-list li, .legal-table > div { flex-direction: column; gap: 2px; }
  .team-list span, .legal-table dd { text-align: left; }
  .hero-tagline { font-size: clamp(2.4rem, 11vw, 3rem); }
  .partner-band { flex-direction: column; align-items: flex-start; }
  .faq .answer { padding-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer .footer-cities { display: none; }

  /* Expertises : liste numérotée (maquette mobile) */
  .service-cards { display: none; }
  .service-list { display: block; }
}
.dropzone.has-files { border-style: solid; border-color: var(--cuivre); }
.bg-sable .cv-mail { background: var(--creme); }
.split:has(> .legal-table) { grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); }
@media (max-width: 960px) { .split:has(> .legal-table) { grid-template-columns: 1fr; } }
