/* =====================================================================
   Africa Tech Design — feuille de style du site public
   Charte : verts du logo + or · Montserrat · cadres « kenté » en escalier
   Conçu d'abord pour le téléphone, puis élargi pour tablette et ordinateur.
   ===================================================================== */

/* Police Montserrat hébergée sur le site (licence OFL, voir assets/fonts) */
@font-face {
  font-family: 'Montserrat'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat'; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url("../fonts/montserrat-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Couleurs du logo */
  --forest: #014536;
  --ink: #01372B;
  --emerald: #0A6B45;
  --lime: #81BC06;
  --lime-deep: #4D9307;
  /* Accents tissés */
  --gold: #E0A526;
  --gold-deep: #9A6B0C;
  --gold-soft: #F6E3B0;
  --clay: #B5532A;
  /* Fonds */
  --cream: #FBF7EE;
  --sand: #F3EADA;
  --paper: #FFFDF8;
  --text: #22332C;
  --muted: #55655D;
  --line: rgba(1, 55, 43, .14);
  --line-strong: rgba(1, 55, 43, .28);

  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Mouvement : signature « premium » */
  --ease: cubic-bezier(.2, 0, 0, 1);
  --ease-out: cubic-bezier(.05, .7, .1, 1);
  --ease-in: cubic-bezier(.3, 0, 1, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --t-quick: 160ms;
  --t-std: 320ms;
  --t-slow: 640ms;

  --gutter: clamp(16px, 4.5vw, 40px);
  --maxw: 1240px;
  --header-h: 68px;
  --step: 14px;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(1, 55, 43, .06), 0 12px 32px -18px rgba(1, 55, 43, .35);

  --kente: url("../img/kente-band.svg");
}

@media (min-width: 900px) {
  :root { --header-h: 80px; --step: 18px; }
}

/* ---------------------------------------------------------------------
   Base
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--emerald); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--forest); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.12; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: var(--radius);
  font-weight: 700; text-decoration: none; transition: top var(--t-quick) var(--ease);
}
.skip-link:focus { top: 12px; color: var(--cream); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Échelle typographique */
.display-1 { font-size: clamp(2.45rem, 9.2vw, 5.4rem); font-weight: 900; line-height: 1.02; letter-spacing: -.03em; }
.display-2 { font-size: clamp(2rem, 6.4vw, 3.6rem); font-weight: 800; line-height: 1.06; letter-spacing: -.025em; }
.display-3 { font-size: clamp(1.35rem, 3.6vw, 1.85rem); font-weight: 800; line-height: 1.15; }
.lead { font-size: clamp(1.05rem, 2.4vw, 1.2rem); line-height: 1.6; color: var(--muted); max-width: 58ch; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: .95rem; color: var(--emerald); margin-bottom: 18px;
}
.kicker::before {
  content: ''; width: 34px; height: 10px; flex: none;
  background: var(--kente) left center / auto 100% repeat-x;
}

/* ---------------------------------------------------------------------
   Boutons
   --------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--forest); --btn-fg: var(--cream); --btn-hover: var(--emerald);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 2px solid var(--btn-bg); border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: .98rem; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: color var(--t-std) var(--ease), border-color var(--t-std) var(--ease), transform var(--t-quick) var(--ease);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-hover);
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--t-std) var(--ease-soft);
}
.btn:hover { color: var(--btn-fg); border-color: var(--btn-hover); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:active { transform: scale(.97); }
.btn .icon { width: 20px; height: 20px; flex: none; }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 1.02rem; }
.btn-primary { --btn-bg: var(--forest); --btn-fg: var(--cream); --btn-hover: var(--emerald); }
.btn-gold { --btn-bg: var(--gold); --btn-fg: var(--ink); --btn-hover: #EDBB4C; }
.btn-wa { --btn-bg: #0F7A41; --btn-fg: #fff; --btn-hover: #0A5F32; }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--ink); --btn-hover: var(--sand); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost-light { --btn-bg: transparent; --btn-fg: var(--cream); --btn-hover: rgba(251, 247, 238, .12); border-color: rgba(251, 247, 238, .35); }
.btn[disabled] { opacity: .6; pointer-events: none; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink);
  text-decoration: none; padding: 6px 0; background: linear-gradient(var(--gold), var(--gold)) left bottom / 100% 2px no-repeat;
  transition: background-size var(--t-std) var(--ease-soft), color var(--t-quick) var(--ease);
}
.text-link:hover { color: var(--emerald); background-size: 40% 2px; }
.text-link .icon { width: 18px; height: 18px; transition: transform var(--t-std) var(--ease); }
.text-link:hover .icon { transform: translateX(4px); }

/* ---------------------------------------------------------------------
   En-tête
   --------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(251, 247, 238, .9);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-std) var(--ease), box-shadow var(--t-std) var(--ease), transform var(--t-std) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(1, 55, 43, .5); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand-mark { width: 44px; height: auto; flex: none; transition: transform var(--t-slow) var(--ease-out); }
.brand:hover .brand-mark { transform: rotate(-4deg) scale(1.04); }
.brand-text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.brand-name { font-weight: 800; font-size: 1.02rem; letter-spacing: -.01em; color: var(--ink); max-width: 7.6em; line-height: 1.02; }
.brand-slogan { display: none; font-size: .72rem; font-weight: 500; color: var(--emerald); margin-top: 5px; white-space: nowrap; }
.brand--image img { height: 46px; width: auto; }

.main-nav { display: none; }
.main-nav ul { list-style: none; display: flex; gap: 4px; }
.main-nav a {
  position: relative; display: block; padding: 10px 14px; font-weight: 600; font-size: .95rem;
  color: var(--ink); text-decoration: none; border-radius: var(--radius);
}
.main-nav a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px;
  background: var(--kente) left center / auto 100% repeat-x;
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-std) var(--ease-soft);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { display: none; }

.menu-toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 14px;
  border: 2px solid var(--ink); border-radius: var(--radius); background: transparent; color: var(--ink);
  font-weight: 700; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.menu-toggle-bars { position: relative; width: 20px; height: 14px; }
.menu-toggle-bars i { position: absolute; left: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--t-std) var(--ease), opacity var(--t-quick) var(--ease), width var(--t-std) var(--ease); }
.menu-toggle-bars i:nth-child(1) { top: 0; width: 20px; }
.menu-toggle-bars i:nth-child(2) { top: 6px; width: 14px; }
.menu-toggle-bars i:nth-child(3) { top: 12px; width: 20px; }
.menu-open .menu-toggle-bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle-bars i:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle-bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu-open .site-header { background: var(--cream); }

@media (min-width: 560px) {
  .brand-slogan { display: block; }
  .brand-name { max-width: none; }
}
@media (min-width: 1040px) {
  .main-nav { display: block; }
  .header-cta { display: inline-flex; min-height: 46px; padding: 10px 18px; }
  .menu-toggle { display: none; }
  .brand-mark { width: 50px; }
  .brand-name { font-size: 1.12rem; }
}

/* Menu mobile plein écran */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 90;
  background: var(--forest); color: var(--cream);
  overflow-y: auto; overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path 520ms var(--ease-soft), visibility 0s linear 520ms;
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 520ms var(--ease-soft); }
html:not(.js) .main-nav { display: block; overflow-x: auto; }
html:not(.js) .menu-toggle { display: none; }
.mobile-menu-weave { position: absolute; inset: 0 0 auto 0; height: 14px; background: var(--kente) left top / auto 100% repeat-x; }
.mobile-menu-inner { position: relative; padding: 40px var(--gutter) calc(40px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 36px; min-height: 100%; }
.mobile-menu-links { list-style: none; }
.mobile-menu-links li { overflow: hidden; border-bottom: 1px solid rgba(251, 247, 238, .14); }
.mobile-menu-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; font-size: clamp(1.6rem, 7vw, 2.2rem); font-weight: 800; letter-spacing: -.02em;
  color: var(--cream); text-decoration: none;
  transform: translateY(105%); transition: transform 600ms var(--ease-out) calc(120ms + var(--i) * 50ms), color var(--t-quick) var(--ease);
}
.mobile-menu.is-open .mobile-menu-links a { transform: none; }
.mobile-menu-links a[aria-current="page"], .mobile-menu-links a:hover { color: var(--gold); }
.mobile-menu-contact { display: grid; gap: 12px; margin-top: auto; opacity: 0; transform: translateY(16px); transition: opacity 400ms var(--ease) 420ms, transform 600ms var(--ease-out) 420ms; }
.mobile-menu.is-open .mobile-menu-contact { opacity: 1; transform: none; }
.mobile-menu-contact .btn { justify-content: flex-start; }
body.menu-open { overflow: hidden; }

/* ---------------------------------------------------------------------
   Intro : ouverture animée du monogramme (une fois par visite)
   --------------------------------------------------------------------- */
.intro {
  position: fixed; inset: 0; z-index: 400; display: none;
  place-items: center; background: var(--cream);
  pointer-events: none;
}
.has-intro .intro { display: grid; animation: introLift 640ms var(--ease-soft) 1150ms forwards; }
.intro-inner { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 24px; }
.intro-mark { width: clamp(96px, 26vw, 140px); overflow: visible; margin-bottom: 14px; }
.intro-word { margin: 0; font-weight: 800; font-size: clamp(1.4rem, 5vw, 2rem); color: var(--ink); letter-spacing: -.02em; }
.intro-slogan { margin: 0; font-weight: 500; color: var(--emerald); font-size: clamp(.9rem, 3vw, 1.05rem); }
.has-intro .intro-mark .lm-lime { animation: markRise 620ms var(--ease-out) 60ms both; }
.has-intro .intro-mark .lm-top { animation: markDrop 620ms var(--ease-out) 160ms both; }
.has-intro .intro-mark .lm-low { animation: markRise 620ms var(--ease-out) 240ms both; }
.has-intro .intro-mark .lm-leaf { animation: leafSweep 700ms var(--ease-out) 320ms both; }
.has-intro .intro-word { animation: fadeUp 600ms var(--ease-out) 560ms both; }
.has-intro .intro-slogan { animation: fadeUp 600ms var(--ease-out) 680ms both; }
@keyframes markRise { from { transform: translateY(70px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes markDrop { from { transform: translateY(-70px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes leafSweep { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes fadeUp { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes introLift { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }

/* ---------------------------------------------------------------------
   Rideau aux couleurs du kenté entre les pages
   --------------------------------------------------------------------- */
.curtain { position: fixed; inset: 0; z-index: 350; display: none; pointer-events: none; }
.curtain span {
  position: absolute; top: 0; bottom: 0; width: 20.5%;
  background: var(--c) ; transform: scaleY(0); transform-origin: bottom;
}
.curtain span::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: var(--kente) left top / auto 100% repeat-x; }
.curtain span:nth-child(1) { left: 0; --c: var(--forest); --i: 0; }
.curtain span:nth-child(2) { left: 20%; --c: var(--emerald); --i: 1; }
.curtain span:nth-child(3) { left: 40%; --c: var(--gold); --i: 2; }
.curtain span:nth-child(4) { left: 60%; --c: var(--lime-deep); --i: 3; }
.curtain span:nth-child(5) { left: 80%; --c: var(--forest); --i: 4; }
.is-leaving .curtain, .curtain-enter .curtain { display: block; }
.is-leaving .curtain span { animation: curtainIn 420ms var(--ease-soft) calc(var(--i) * 45ms) forwards; }
.curtain-enter .curtain span { transform: scaleY(1); transform-origin: top; animation: curtainOut 560ms var(--ease-soft) calc(80ms + var(--i) * 55ms) forwards; }
@keyframes curtainIn { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes curtainOut { from { transform: scaleY(1); } to { transform: scaleY(0); } }

/* ---------------------------------------------------------------------
   Animations au défilement (activées uniquement avec JavaScript)
   --------------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease) var(--d, 0ms), transform 800ms var(--ease-out) var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Titres révélés mot à mot */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
[data-split] .w > span { display: inline-block; }
.js [data-split].is-split .w > span { transform: translateY(108%); transition: transform 760ms var(--ease-out) calc(var(--wi) * 55ms + var(--d, 0ms)); }
.js [data-split].is-split.is-in .w > span { transform: none; }

/* Cadres en escalier (motif tissé) + dévoilement par une bande d'or */
.frame { position: relative; margin: 0; --s: var(--step); }
.frame-clip { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--sand); }
.frame--step .frame-clip {
  clip-path: polygon(0 calc(var(--s) * 2), var(--s) calc(var(--s) * 2), var(--s) var(--s), calc(var(--s) * 2) var(--s), calc(var(--s) * 2) 0, 100% 0, 100% calc(100% - var(--s) * 2), calc(100% - var(--s)) calc(100% - var(--s) * 2), calc(100% - var(--s)) calc(100% - var(--s)), calc(100% - var(--s) * 2) calc(100% - var(--s)), calc(100% - var(--s) * 2) 100%, 0 100%);
}
.frame-clip > img { width: 100%; height: 100%; object-fit: cover; }
.frame--step::before {
  content: ''; position: absolute; z-index: -1;
  right: calc(var(--s) * -1); bottom: calc(var(--s) * -1); width: 42%; height: 46%;
  background: var(--kente) left top / 72px auto repeat;
  opacity: .9;
}
.frame-clip::after { content: ''; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); pointer-events: none; z-index: 1; }
.js [data-unveil] .frame-clip > img { opacity: 0; transform: scale(1.08); }
.js [data-unveil].is-in .frame-clip::after { animation: goldBand 1100ms var(--ease-soft) var(--d, 0ms) both; }
.js [data-unveil].is-in .frame-clip > img { animation: unveilImg 1300ms var(--ease-out) calc(480ms + var(--d, 0ms)) both; }
@keyframes goldBand {
  0% { transform: scaleX(0); transform-origin: left; }
  45% { transform: scaleX(1); transform-origin: left; }
  46% { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}
@keyframes unveilImg { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
[data-parallax] { will-change: translate; }

/* Bande kenté réutilisable */
.kente-band { height: 14px; background: var(--kente) left center / auto 100% repeat-x; }

/* ---------------------------------------------------------------------
   Sections
   --------------------------------------------------------------------- */
.section { padding-block: clamp(64px, 11vw, 128px); }
.section--sand { background: var(--sand); }
.section--flush { padding-top: 0; }
.detail-subtitle { margin-top: 40px; }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 6vw, 56px); max-width: 760px; }
.section-head .lead { margin: 0; }
.section-head--split { max-width: none; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 48px; }
}

/* ---------------------------------------------------------------------
   Accueil : héros
   --------------------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(28px, 6vw, 56px); overflow: hidden; }
.hero-grid { display: grid; gap: 32px; }
.hero-copy { position: relative; z-index: 2; }
.hero-title { margin-bottom: 20px; }
.hero .lead { margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-actions .btn { flex: 1 1 210px; }
.hero-phones { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; font-weight: 600; }
.hero-phones a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; padding: 6px 0; }
.hero-phones a:hover { color: var(--emerald); }
.hero-phones .icon { width: 18px; height: 18px; color: var(--emerald); }
.hero-media { margin-inline: calc(var(--gutter) * -1); aspect-ratio: 16 / 11; overflow: hidden; }
.hero-media .frame-clip > img { object-position: 72% 50%; }
.hero-media.frame--step::before { display: none; }
.hero-badge {
  position: absolute; z-index: 3; left: var(--gutter); bottom: 18px;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 10px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  font-size: .86rem; font-weight: 600; color: var(--ink); line-height: 1.3;
}
.hero-badge strong { display: block; font-size: 1.35rem; font-weight: 900; color: var(--emerald); line-height: 1; }
.hero-badge-mark { width: 40px; height: 40px; display: grid; place-items: center; background: var(--gold-soft); border-radius: 4px; }
.hero-badge-mark .icon { width: 22px; height: 22px; color: var(--forest); }

@media (min-width: 980px) {
  .hero { padding-top: 0; min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; }
  .hero-grid { grid-template-columns: minmax(0, 5.6fr) minmax(0, 6fr); align-items: center; gap: 0; width: 100%; }
  .hero-copy { padding-block: 56px; padding-right: 32px; }
  .hero-title { font-size: clamp(3.2rem, 5.2vw, 5rem); }
  .hero-actions .btn { flex: 0 1 auto; white-space: nowrap; }
  .hero-media {
    margin: 0 calc(var(--gutter) * -1) 0 -14%;
    aspect-ratio: auto; height: min(80svh, 740px);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24%), linear-gradient(180deg, transparent 0, #000 9%, #000 90%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0, #000 24%), linear-gradient(180deg, transparent 0, #000 9%, #000 90%, transparent 100%);
    mask-composite: intersect;
  }
  .hero-media.frame--step .frame-clip { clip-path: none; background: transparent; }
  .hero-media .frame-clip > img { object-position: 78% 50%; }
  .hero-badge { left: auto; right: 7%; bottom: 9%; }
}
@media (min-width: 1400px) {
  .hero-media { margin-right: calc((100vw - var(--maxw)) / -2 - var(--gutter)); }
}

/* Frise kenté qui défile */
.frieze { position: relative; background: var(--forest); color: var(--cream); overflow: hidden; padding-block: 18px; }
.frieze::before, .frieze::after { content: ''; position: absolute; left: 0; right: 0; height: 8px; background: var(--kente) left center / auto 100% repeat-x; }
.frieze::before { top: 0; }
.frieze::after { bottom: 0; }
.frieze-track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.frieze:hover .frieze-track { animation-play-state: paused; }
.frieze-group { display: flex; align-items: center; gap: 28px; padding-right: 28px; padding-block: 8px; }
.frieze-item { font-weight: 800; font-size: clamp(1.05rem, 3vw, 1.45rem); white-space: nowrap; letter-spacing: -.01em; }
.frieze-item:nth-child(4n+1) { color: var(--gold); }
.frieze-knot { width: 14px; height: 14px; flex: none; background: var(--lime); transform: rotate(45deg); box-shadow: 0 0 0 3px var(--forest), 0 0 0 5px var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------------
   Accordéon des expertises
   --------------------------------------------------------------------- */
.services-acc { border-top: 1px solid var(--line-strong); }
.svc { --thread: var(--gold); position: relative; border-bottom: 1px solid var(--line-strong); }
.svc::before {
  content: ''; position: absolute; left: 0; top: -1px; height: 3px; width: 100%;
  background: var(--thread); transform: scaleX(0); transform-origin: left; transition: transform 700ms var(--ease-soft);
}
.svc.is-open::before { transform: scaleX(1); }
.thread-gold { --thread: var(--gold); }
.thread-lime { --thread: var(--lime); }
.thread-clay { --thread: var(--clay); }
.thread-forest { --thread: var(--emerald); }
.svc-head { margin: 0; }
.svc-btn {
  width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 22px 0; background: none; border: 0; text-align: left; cursor: pointer; color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.svc-icon {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 4px;
  background: var(--paper); border: 1px solid var(--line); color: var(--forest);
  transition: background var(--t-std) var(--ease), color var(--t-std) var(--ease), transform var(--t-slow) var(--ease-out);
}
.svc-icon .icon { width: 26px; height: 26px; }
.svc.is-open .svc-icon, .svc-btn:hover .svc-icon { background: var(--thread); color: var(--ink); border-color: transparent; }
.svc.is-open .svc-icon { transform: rotate(-8deg); }
.svc-titles { display: grid; gap: 4px; min-width: 0; }
.svc-title { font-size: clamp(1.3rem, 4.6vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.svc-tagline { font-size: .95rem; color: var(--muted); font-weight: 500; }
.svc-toggle { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; transition: transform var(--t-std) var(--ease), background var(--t-std) var(--ease); }
.svc-toggle .icon { width: 20px; height: 20px; }
.svc.is-open .svc-toggle { transform: rotate(45deg); background: var(--ink); color: var(--cream); border-color: var(--ink); }
.svc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 560ms var(--ease-soft); }
.svc.is-open .svc-panel, html:not(.js) .svc-panel { grid-template-rows: 1fr; }
html:not(.js) .svc-panel .svc-media, html:not(.js) .svc-panel .svc-copy { opacity: 1; transform: none; }
.svc-panel-inner { overflow: hidden; min-height: 0; visibility: hidden; transition: visibility 0s linear 560ms; }
.svc.is-open .svc-panel-inner, html:not(.js) .svc-panel-inner { visibility: visible; transition-delay: 0s; }
.svc-panel-grid { display: grid; gap: 24px; padding: 4px 0 32px; }
.svc-media { aspect-ratio: 4 / 3; }
.svc-copy p { color: var(--text); }
.check-list { list-style: none; display: grid; gap: 10px; margin: 0 0 24px; }
.check-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; line-height: 1.45; }
.check-list .icon { width: 22px; height: 22px; padding: 3px; border-radius: 3px; background: var(--thread, var(--gold)); color: var(--ink); stroke-width: 2.5; }
.svc-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.svc-panel .svc-media, .svc-panel .svc-copy { opacity: 0; transform: translateY(14px); transition: opacity 400ms var(--ease), transform 600ms var(--ease-out); }
.svc.is-open .svc-panel .svc-media, .svc.is-open .svc-panel .svc-copy { opacity: 1; transform: none; transition-delay: 160ms; }
.svc.is-open .svc-panel .svc-copy { transition-delay: 240ms; }
@media (min-width: 820px) {
  .svc-btn { grid-template-columns: auto 1fr auto; gap: 24px; padding: 28px 0; }
  .svc-panel-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; padding-left: 76px; }
}

/* ---------------------------------------------------------------------
   Méthode (étapes réelles d'un projet)
   --------------------------------------------------------------------- */
.steps { list-style: none; display: grid; gap: 0; counter-reset: step; position: relative; }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding-bottom: 32px; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ''; position: absolute; left: 27px; top: 56px; bottom: 0; width: 2px;
  background: repeating-linear-gradient(var(--gold) 0 10px, var(--lime) 10px 20px, var(--clay) 20px 30px);
  transform: scaleY(var(--p, 0)); transform-origin: top;
}
.step:last-child::before { display: none; }
.step-num {
  width: 56px; height: 56px; display: grid; place-items: center;
  font-weight: 900; font-size: 1.15rem; color: var(--cream); background: var(--forest); border-radius: 4px;
  box-shadow: 0 0 0 4px var(--cream), 0 0 0 6px var(--gold);
}
.step h3 { font-size: 1.2rem; margin: 10px 0 6px; }
.step p { color: var(--muted); margin: 0; }
.js .steps.is-in .step::before { --p: 1; transition: transform 900ms var(--ease-soft) calc(var(--si) * 220ms + 300ms); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .step { grid-template-columns: 1fr; gap: 14px; padding: 0; }
  .step::before { left: 72px; right: -18px; top: 27px; bottom: auto; width: auto; height: 2px; transform: scaleX(var(--p, 0)); transform-origin: left; background: repeating-linear-gradient(90deg, var(--gold) 0 10px, var(--lime) 10px 20px, var(--clay) 20px 30px); }
  .step h3 { margin-top: 6px; }
}

/* ---------------------------------------------------------------------
   Compteurs
   --------------------------------------------------------------------- */
.stats { position: relative; background: var(--forest); color: var(--cream); }
.stats::before { content: ''; position: absolute; inset: 0; background: url("../img/kente-weave.svg") center / 120px; opacity: .35; pointer-events: none; }
.stats .kente-band { position: relative; }
.stats-grid { position: relative; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 20px; padding-block: clamp(48px, 8vw, 80px); }
.stat { display: grid; gap: 6px; align-content: start; border-left: 3px solid var(--gold); padding-left: 16px; }
.stat-value { font-size: clamp(2.4rem, 8vw, 4rem); font-weight: 900; line-height: 1; color: var(--gold); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-label { font-size: .95rem; color: rgba(251, 247, 238, .85); font-weight: 500; line-height: 1.4; }
@media (min-width: 900px) { .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 32px; } }

/* ---------------------------------------------------------------------
   Réalisations
   --------------------------------------------------------------------- */
.projects-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 340px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 20px; scrollbar-width: thin;
  scroll-padding-inline: var(--gutter);
  -webkit-overflow-scrolling: touch;
}
.projects-rail > * { scroll-snap-align: start; }
@media (min-width: 900px) {
  .projects-rail { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; gap: 28px; }
}
.projects-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .projects-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

.project-card { min-width: 0; }
.project-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform var(--t-std) var(--ease), box-shadow var(--t-std) var(--ease), border-color var(--t-std) var(--ease); }
.project-link:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); color: inherit; }
.project-cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.project-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.project-link:hover .project-cover img { transform: scale(1.05); }
.project-cover--weave {
  --thread: var(--gold); --cover-bg: var(--forest);
  background: linear-gradient(180deg, transparent 35%, rgba(0, 20, 14, .45)), url("../img/kente-weave.svg") calc(var(--ci, 0) * 37px) calc(var(--ci, 0) * 23px) / 120px, var(--cover-bg);
  display: flex; flex-direction: column; justify-content: space-between; padding: 22px 22px 34px; color: var(--cream);
}
.project-cover--weave::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: var(--kente) left center / auto 100% repeat-x; }
.project-cover--weave::after { content: ''; position: absolute; left: 0; top: 0; bottom: 14px; width: 6px; background: var(--thread); }
.project-cover--fill { height: 100%; aspect-ratio: auto; }
.js [data-unveil] .project-cover--fill { opacity: 0; }
.js [data-unveil].is-in .project-cover--fill { animation: unveilImg 1300ms var(--ease-out) 480ms both; }
.project-cover--weave.thread-gold { --cover-bg: #6E4708; }
.project-cover--weave.thread-lime { --cover-bg: #24520D; }
.project-cover--weave.thread-clay { --cover-bg: #5E2812; }
.project-cover--weave.thread-forest { --cover-bg: var(--forest); }
.weave-icon { position: relative; z-index: 1; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 4px; background: var(--thread); color: var(--ink); transition: transform var(--t-slow) var(--ease-out); }
.weave-icon .icon { width: 24px; height: 24px; }
.project-link:hover .weave-icon { transform: rotate(-8deg) scale(1.06); }
.weave-client { position: relative; z-index: 1; font-weight: 900; font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.02; letter-spacing: -.025em; color: var(--cream); text-wrap: balance; max-width: 12ch; transition: transform var(--t-slow) var(--ease-out); }
.project-link:hover .weave-client { transform: translateX(4px); }
.page-hero-media .weave-client { font-size: clamp(2rem, 5vw, 3.2rem); }
.page-hero-media .weave-icon { width: 60px; height: 60px; }
.project-body { padding: 18px 20px 22px; display: grid; gap: 6px; }
.project-meta { margin: 0; font-size: .82rem; font-weight: 700; color: var(--emerald); }
.project-title { margin: 0; font-size: 1.15rem; line-height: 1.25; }
.project-summary { margin: 0; font-size: .95rem; color: var(--muted); line-height: 1.5; }

/* Filtres */
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin: 0 calc(var(--gutter) * -1) 28px; padding-inline: var(--gutter); scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter-btn {
  flex: none; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 2px solid var(--line-strong);
  background: transparent; color: var(--ink); font-weight: 700; font-size: .92rem; cursor: pointer; white-space: nowrap;
  transition: background var(--t-std) var(--ease), color var(--t-std) var(--ease), border-color var(--t-std) var(--ease);
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.project-card.is-hidden { display: none; }
.project-card.is-filtering { animation: cardIn 520ms var(--ease-out) both; animation-delay: var(--fd, 0ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.empty-state { padding: 40px; border: 2px dashed var(--line-strong); border-radius: var(--radius); text-align: center; color: var(--muted); }

/* ---------------------------------------------------------------------
   Dicton : proverbe et fils tissés au défilement
   --------------------------------------------------------------------- */
.dicton { position: relative; background: var(--cream); overflow: hidden; }
.dicton-copy { position: relative; z-index: 3; padding-top: clamp(64px, 10vw, 120px); padding-bottom: clamp(20px, 3vw, 40px); text-align: center; }
.dicton-mark { width: 54px; height: 54px; margin: 0 auto 18px; color: var(--gold-deep); }
.dicton-text { font-size: clamp(1.75rem, 6.4vw, 3.9rem); font-weight: 800; font-style: italic; line-height: 1.12; letter-spacing: -.025em; color: var(--ink); max-width: 18ch; margin: 0 auto 18px; }
.dicton-author { font-weight: 700; color: var(--emerald); margin-bottom: 14px; }
.dicton-note { max-width: 56ch; margin: 0 auto; color: var(--muted); }
.dicton-media { position: relative; z-index: 1; aspect-ratio: 16 / 9; overflow: hidden; }
.dicton-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 80%; }
.dicton-media::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 38%; z-index: 1; background: linear-gradient(var(--cream), rgba(251, 247, 238, 0)); }
.dicton-media::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; z-index: 1; background: var(--kente) left center / auto 100% repeat-x; }
.threads { position: absolute; left: 0; top: 4%; z-index: 2; width: 100%; height: 52%; pointer-events: none; }
.threads path { fill: none; stroke-width: 4; stroke-linecap: round; }
@media (max-width: 699px) { .dicton-media { aspect-ratio: 4 / 3.4; } .threads path { stroke-width: 7; } }

/* ---------------------------------------------------------------------
   Biographie (aperçu sur l'accueil + page complète)
   --------------------------------------------------------------------- */
.bio-grid { display: grid; gap: 40px; align-items: center; }
.bio-portrait { aspect-ratio: 4 / 5; max-width: 460px; width: 100%; }
.bio-copy .lead { margin-bottom: 22px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.chip { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .88rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.chips--dark .chip { background: rgba(251, 247, 238, .08); border-color: rgba(251, 247, 238, .2); color: var(--cream); }
.bio-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 900px) { .bio-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: 72px; } }

/* ---------------------------------------------------------------------
   Appel à l'action « devis »
   --------------------------------------------------------------------- */
.cta { padding-block: clamp(64px, 11vw, 128px); background: var(--sand); }
.cta-grid { display: grid; gap: 40px; align-items: center; }
.cta-media { aspect-ratio: 4 / 3; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 22px; }
.cta-actions .btn { flex: 1 1 220px; }
.cta-phones { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; font-weight: 600; }
.cta-phones a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; padding: 6px 0; overflow-wrap: anywhere; }
.cta-phones .icon { width: 18px; height: 18px; color: var(--emerald); flex: none; }
@media (min-width: 900px) { .cta-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; } }

/* ---------------------------------------------------------------------
   Pages intérieures
   --------------------------------------------------------------------- */
.page-hero { padding-top: clamp(28px, 6vw, 64px); padding-bottom: clamp(48px, 8vw, 88px); }
.page-hero-grid { display: grid; gap: 36px; align-items: center; }
.page-hero .lead { margin: 0; }
.page-hero--compact { padding-bottom: clamp(28px, 5vw, 48px); }
.page-hero--compact .display-2 { max-width: 20ch; }
.page-hero-media { aspect-ratio: 4 / 3; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--emerald); }
.crumbs [aria-current] { color: var(--ink); }
@media (min-width: 900px) { .page-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; } }

/* Page Services : lignes alternées */
.svc-rows { display: grid; gap: clamp(64px, 10vw, 112px); }
.svc-row { display: grid; gap: 28px; align-items: center; }
.svc-row-media { aspect-ratio: 4 / 3; }
.svc-row-copy .display-3 { margin-bottom: 10px; }
.svc-row-copy .svc-row-tag { font-weight: 600; color: var(--emerald); margin-bottom: 18px; }
.svc-row-label { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 700; color: var(--muted); font-size: .92rem; }
.svc-row-label .svc-icon { width: 44px; height: 44px; background: var(--thread); border: 0; color: var(--ink); }
.svc-row-label .svc-icon .icon { width: 22px; height: 22px; }
@media (min-width: 900px) {
  .svc-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
  .svc-row:nth-child(even) .svc-row-media { order: 2; }
}

/* Page d'un service */
.detail-grid { display: grid; gap: 40px; }
.detail-aside { align-self: start; }
.order-box { background: var(--forest); color: var(--cream); border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden; }
.order-box::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: var(--kente) left center / auto 100% repeat-x; }
.order-box h2 { color: var(--cream); font-size: 1.35rem; margin-top: 8px; }
.order-box p { color: rgba(251, 247, 238, .82); }
.order-box .btn { width: 100%; margin-top: 10px; }
.deliverables { list-style: none; display: grid; gap: 12px; margin: 0; }
.deliverables li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; color: var(--ink); line-height: 1.4; }
.deliverables .icon { width: 30px; height: 30px; padding: 5px; border-radius: 4px; background: var(--thread, var(--gold)); color: var(--ink); stroke-width: 2.4; }
.prose { max-width: 68ch; }
.prose p { font-size: 1.05rem; }
.other-services { list-style: none; display: grid; gap: 12px; }
.other-services a { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 700; background: var(--paper); transition: border-color var(--t-std) var(--ease), transform var(--t-std) var(--ease); }
.other-services a:hover { border-color: var(--ink); transform: translateX(4px); color: var(--ink); }
.other-services .svc-icon { width: 44px; height: 44px; background: var(--thread); border: 0; color: var(--ink); }
.other-services .icon { width: 20px; height: 20px; }
@media (min-width: 640px) { .deliverables { grid-template-columns: repeat(2, 1fr); } .other-services { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .detail-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; } .detail-aside { position: sticky; top: calc(var(--header-h) + 24px); } }

/* Page d'une réalisation */
.facts { list-style: none; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; }
.facts li { background: var(--paper); padding: 14px 18px; display: grid; gap: 2px; }
.facts span { font-size: .8rem; font-weight: 700; color: var(--muted); }
.facts strong { color: var(--ink); font-weight: 700; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.gallery a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 4px; background: var(--sand); }
.gallery a:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.gallery a:hover img { transform: scale(1.05); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

/* Visionneuse */
.lightbox { position: fixed; inset: 0; z-index: 500; display: grid; grid-template-rows: auto 1fr auto; background: rgba(1, 30, 23, .94); color: var(--cream); opacity: 0; visibility: hidden; transition: opacity var(--t-std) var(--ease), visibility 0s linear var(--t-std); }
.lightbox.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px var(--gutter); gap: 12px; }
.lightbox-bar p { margin: 0; font-weight: 600; font-size: .92rem; }
.lightbox-stage { display: grid; place-items: center; padding: 0 var(--gutter); min-height: 0; }
.lightbox-stage img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 4px; transform: scale(.96); transition: transform 520ms var(--ease-out); }
.lightbox.is-open .lightbox-stage img { transform: none; }
.lightbox-nav { display: flex; justify-content: center; gap: 12px; padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom)); }
.icon-btn { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 2px solid rgba(251, 247, 238, .35); background: transparent; color: inherit; cursor: pointer; }
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }
.icon-btn .icon { width: 22px; height: 22px; }
.icon-btn .flip { transform: scaleX(-1); }

/* Biographie complète */
.bio-hero-portrait { aspect-ratio: 4 / 5; max-width: 440px; }
.skills-grid { display: grid; gap: 20px; }
.skill-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; overflow: hidden; }
.skill-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--thread, var(--gold)); }
.skill-card h3 { font-size: 1.15rem; margin-bottom: 16px; }
.skill-card .chips { margin: 0; }
@media (min-width: 900px) { .skills-grid { grid-template-columns: repeat(3, 1fr); } }

.timeline { list-style: none; position: relative; display: grid; gap: 28px; padding-left: 34px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 3px; background: var(--line); }
.timeline::after { content: ''; position: absolute; left: 9px; top: 6px; width: 3px; height: calc(100% - 12px); background: repeating-linear-gradient(var(--gold) 0 14px, var(--lime) 14px 28px, var(--clay) 28px 42px); transform-origin: top; transform: scaleY(var(--tp, 0)); }
html:not(.js) .timeline { --tp: 1; }
.tl-item { z-index: 1; }
.tl-item { position: relative; }
.tl-item::before { content: ''; position: absolute; left: -32px; top: 6px; width: 17px; height: 17px; background: var(--cream); border: 3px solid var(--forest); transform: rotate(45deg); }
.tl-period { display: inline-block; font-size: .82rem; font-weight: 800; color: var(--ink); background: var(--gold-soft); padding: 3px 10px; border-radius: 3px; margin-bottom: 8px; }
.tl-item h3 { font-size: 1.12rem; margin-bottom: 2px; }
.tl-org { font-weight: 600; color: var(--emerald); margin-bottom: 8px; }
.tl-item p:last-child { color: var(--muted); margin: 0; }
.two-cols { display: grid; gap: 48px; }
@media (min-width: 980px) { .two-cols { grid-template-columns: 1.3fr 1fr; gap: 72px; } }
.info-list { list-style: none; display: grid; gap: 16px; }
.info-list li { padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.info-list h3 { font-size: 1rem; margin-bottom: 6px; }
.info-list p { margin: 0; color: var(--muted); }

/* ---------------------------------------------------------------------
   Formulaires (devis, contact)
   --------------------------------------------------------------------- */
.form-layout { display: grid; gap: 40px; }
.form-aside { order: 2; }
.form-layout--contact .form-aside { order: 0; }
.form-layout--contact .form-card .display-3 { margin-bottom: 20px; }
.form-aside-media { aspect-ratio: 4 / 3; margin-bottom: 8px; }
@media (min-width: 1000px) { .form-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; } .form-aside { order: 0; position: sticky; top: calc(var(--header-h) + 24px); } }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 40px); box-shadow: var(--shadow); position: relative; }
.form-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--kente) left center / auto 100% repeat-x; border-radius: var(--radius) var(--radius) 0 0; }
.form-section { border: 0; margin: 0 0 28px; padding: 0; }
.form-section legend { font-weight: 800; color: var(--ink); font-size: 1.1rem; margin-bottom: 14px; padding: 0; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label, .field .label { font-weight: 700; font-size: .95rem; color: var(--ink); }
.field .hint { font-size: .85rem; color: var(--muted); margin: 0; }
.field .opt { font-weight: 500; color: var(--muted); font-size: .85rem; }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font-size: 1rem;
  background: #fff; border: 2px solid var(--line-strong); border-radius: var(--radius); color: var(--text);
  transition: border-color var(--t-quick) var(--ease), box-shadow var(--t-quick) var(--ease);
  appearance: none; -webkit-appearance: none;
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2301372B' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 42px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(10, 107, 69, .16); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] { border-color: #B3261E; }
.field-error { color: #B3261E; font-weight: 600; font-size: .88rem; margin: 0; }
.grid-2 { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.choice-grid { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label {
  display: grid; gap: 10px; align-content: start; height: 100%; min-height: 96px;
  padding: 14px; border: 2px solid var(--line-strong); border-radius: var(--radius); background: #fff;
  font-weight: 700; font-size: .92rem; line-height: 1.25; color: var(--ink); cursor: pointer;
  transition: border-color var(--t-quick) var(--ease), background var(--t-std) var(--ease), transform var(--t-quick) var(--ease);
}
.choice label .icon { width: 28px; height: 28px; padding: 5px; border-radius: 4px; background: var(--sand); color: var(--forest); transition: background var(--t-std) var(--ease); }
.choice input:checked + label { border-color: var(--forest); background: #F2F7EE; }
.choice input:checked + label .icon { background: var(--thread, var(--gold)); color: var(--ink); }
.choice input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; }
.choice label:active { transform: scale(.98); }
.choice--wide { grid-column: 1 / -1; }
.choice--wide label { min-height: 60px; grid-template-columns: auto 1fr; align-items: center; }
.choice--inline label { min-height: 52px; grid-template-columns: auto 1fr; align-items: center; align-content: center; }
.choice--inline label .icon { width: 26px; height: 26px; padding: 4px; }
.choice-grid--3 { grid-template-columns: 1fr; }
@media (min-width: 520px) { .choice-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-submit { display: grid; gap: 12px; }
.form-submit .btn { width: 100%; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }

.alert { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 16px 18px; border-radius: var(--radius); margin-bottom: 24px; font-weight: 600; }
.alert .icon { width: 22px; height: 22px; margin-top: 1px; }
.alert--error { background: #FCEBEA; color: #8C1D18; border: 1px solid #F2B8B5; }
.alert--success { background: #E7F4EA; color: var(--forest); border: 1px solid #A8D5B5; }

.success-card { text-align: center; padding: clamp(28px, 5vw, 48px); max-width: 760px; margin-inline: auto; }
.success-card .lead { margin-inline: auto; }
.success-card:focus { outline: none; }
.success-seal { width: 84px; height: 84px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: var(--gold); box-shadow: 0 0 0 6px var(--cream), 0 0 0 9px var(--gold); }
.success-seal .icon { width: 42px; height: 42px; stroke-width: 2.6; }
.js .success-seal { animation: sealPop 700ms var(--ease-out) both; }
.js .success-seal path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: drawCheck 520ms var(--ease-soft) 380ms forwards; }
@keyframes sealPop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: none; } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
.ref-badge { display: inline-block; font-weight: 900; font-size: 1.3rem; letter-spacing: .04em; padding: 8px 16px; background: var(--gold-soft); color: var(--ink); border-radius: 4px; margin: 6px 0 18px; }
.success-actions { display: grid; gap: 12px; max-width: 420px; margin: 24px auto 0; }

.side-steps { list-style: none; display: grid; gap: 18px; margin: 28px 0; }
.side-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.side-steps b { width: 40px; height: 40px; display: grid; place-items: center; background: var(--forest); color: var(--gold); border-radius: 4px; font-weight: 900; }
.side-steps strong { display: block; color: var(--ink); }
.side-steps span { color: var(--muted); font-size: .95rem; }
.direct-links { display: grid; gap: 10px; }
.direct-links .btn { justify-content: flex-start; }

.contact-cards { list-style: none; display: grid; gap: 12px; }
.contact-card a, .contact-card > div { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: center; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color var(--t-std) var(--ease), transform var(--t-std) var(--ease); }
.contact-card a:hover { border-color: var(--ink); transform: translateY(-2px); color: var(--ink); }
.contact-card .ci { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 4px; background: var(--sand); color: var(--forest); }
.contact-card .ci .icon { width: 24px; height: 24px; }
.contact-card small { display: block; color: var(--muted); font-weight: 600; font-size: .8rem; }
.contact-card strong { display: block; font-weight: 700; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------------
   Pied de page
   --------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(251, 247, 238, .82); }
.footer-grid { display: grid; gap: 36px; padding-block: clamp(48px, 8vw, 80px) 32px; }
.footer-logo { display: inline-flex; padding: 12px 16px; background: var(--cream); border-radius: var(--radius); margin-bottom: 18px; }
.footer-logo .brand { margin: 0; }
.footer-logo .brand-slogan { display: block; }
.footer-brand p { max-width: 40ch; }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.footer-social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(251, 247, 238, .25); color: var(--cream); transition: background var(--t-std) var(--ease), color var(--t-std) var(--ease), border-color var(--t-std) var(--ease); }
.footer-social a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.footer-social .icon { width: 20px; height: 20px; }
.footer-title { color: var(--gold); font-size: 1rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 4px; }
.footer-col a, .footer-col span { display: inline-flex; align-items: center; gap: 10px; color: rgba(251, 247, 238, .85); text-decoration: none; padding: 6px 0; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--gold); }
.footer-contact .icon { width: 18px; height: 18px; flex: none; color: var(--lime); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(251, 247, 238, .14); font-size: .88rem; }
.footer-bottom p { margin: 0; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; } }

/* WhatsApp flottant (ordinateur) et barre d'action (téléphone) */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 80; width: 60px; height: 60px; display: none; place-items: center;
  border-radius: 50%; background: #0F7A41; color: #fff; box-shadow: 0 12px 28px -10px rgba(15, 122, 65, .7);
  transition: transform var(--t-std) var(--ease-out);
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float .icon { width: 30px; height: 30px; }
.wa-float::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #0F7A41; animation: waPulse 2.8s var(--ease-soft) infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.5); opacity: 0; } }

.action-bar {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 85;
  display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 6px; padding: 6px;
  background: rgba(1, 55, 43, .96); border-radius: 12px; box-shadow: 0 18px 40px -16px rgba(1, 30, 23, .7);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transform: translateY(calc(100% + 24px)); transition: transform 520ms var(--ease-out);
}
.action-bar.is-visible { transform: none; }
.menu-open .action-bar { transform: translateY(calc(100% + 24px)); }
.action-bar a { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; min-height: 52px; border-radius: 8px; color: var(--cream); text-decoration: none; font-size: .76rem; font-weight: 700; }
.action-bar a .icon { width: 22px; height: 22px; }
.action-bar a:active { background: rgba(251, 247, 238, .12); }
.action-bar a.is-wa { background: #0F7A41; color: #fff; }
.action-bar a.is-quote { background: var(--gold); color: var(--ink); }
@media (max-width: 899px) { body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); } }
@media (min-width: 900px) { .action-bar { display: none; } .wa-float { display: grid; } }

/* Page 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.notfound .display-1 { color: var(--gold); }
.notfound .lead { margin-inline: auto; }
.notfound .hero-actions { justify-content: center; }

/* ---------------------------------------------------------------------
   Mouvement réduit : tout reste visible, sans animation
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .frieze-track { animation: none; flex-wrap: wrap; width: auto; }
  .frieze-group + .frieze-group { display: none; }
}
.reduce-motion [data-reveal], .reduce-motion [data-unveil] .frame-clip > img, .reduce-motion [data-split] .w > span { opacity: 1 !important; transform: none !important; }
.reduce-motion .intro, .reduce-motion .curtain { display: none !important; }
