/* ==========================================================================
   SWOMA v1 — feuille de styles unique
   Direction artistique SWOMA : kraft, noir, blanc, Montserrat en capitales
   très grasses, filets noirs de 2 px. Le bleu électrique sert aux survols.
   ========================================================================== */

:root {
  --font: "Montserrat", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ink: #111;
  --paper: #fff;
  --kraft: #c99f78;
  --kraft-dark: #3b2612;
  --blue: #1f45ff;              /* le bleu SWOMA : celui de Thibaut Vincent sur la frise de l'équipe */
  --navy: var(--blue);          /* sur-titres et fond de la section Réalisations */
  --edge: clamp(18px, 5vw, 88px);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: #fff; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; font-weight: 700; font-size: 14px; }
.skip:focus { top: 12px; }

/* --------------------------------------------------------------------------
   Menu vertical (repris de l'ancien site)
   Ouvert sur l'intro (écrans larges), puis rangé derrière le bouton.
   -------------------------------------------------------------------------- */
:root { --side-w: min(320px, 86vw); }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 55; width: var(--side-w);
  display: flex; flex-direction: column; overflow-y: auto;
  padding: 56px 32px 28px; background: #fff; border-right: 2px solid var(--kraft);
  transform: translateX(-102%); visibility: hidden;
  transition: transform .45s cubic-bezier(.77, 0, .18, 1), visibility 0s .45s;
}
body.nav-open .sidebar { transform: none; visibility: visible; transition: transform .45s cubic-bezier(.77, 0, .18, 1); box-shadow: 8px 0 40px rgba(0, 0, 0, .1); }
.side-logo { display: block; width: max-content; margin-bottom: 26px; }
.side-logo img { display: block; height: 76px; width: auto; }
.sidebar nav { display: flex; flex-direction: column; gap: 6px; }
.side-main { position: relative; padding: 5px 0; font-size: 18px; font-weight: 800; letter-spacing: -.01em; transition: padding-left .25s; }
.side-main::before { content: ""; position: absolute; left: 0; top: 50%; width: 0; height: 3px; background: var(--hov, var(--ink)); transform: translateY(-50%); transition: width .25s; }
.side-main:hover { padding-left: 14px; }
.side-main:hover::before { width: 8px; }
.subnav { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 6px 18px; padding-left: 16px; border-left: 2px solid #eee; }
.subnav a { display: flex; align-items: center; gap: 10px; padding: 3px 0; font-size: 13.5px; font-weight: 600; line-height: 1.25; color: #555; transition: color .2s; }
.subnav a i { flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--dot); }
.subnav a:hover { color: var(--ink); }
.side-foot { display: flex; gap: 12px; margin-top: auto; padding-top: 24px; }
.side-foot a { display: block; width: 36px; height: 36px; color: var(--ink); transition: transform .25s; }
.side-foot a:hover { transform: translateY(-3px); }
.side-foot svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.2; }
.side-foot svg .fill { fill: currentColor; stroke: none; }
.side-foot svg .cut { stroke: #fff; stroke-width: 1.4; }

.burger {
  position: fixed; top: 20px; left: 20px; z-index: 60; width: 48px; height: 48px;
  display: grid; place-content: center; gap: 6px; padding: 0; border: 0; cursor: pointer;
  background: var(--ink); box-shadow: 0 0 0 1.5px #fff;   /* reste visible sur les fonds noirs */
  transition: opacity .3s, left .45s cubic-bezier(.77, 0, .18, 1);
}
.burger span { display: block; width: 22px; height: 2px; background: #fff; transition: transform .3s, opacity .3s; }
.burger:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
body.nav-open .burger { left: calc(var(--side-w) - 68px); background: transparent; box-shadow: none; }
body.nav-open .burger span { background: var(--ink); }
body.nav-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(17, 17, 17, .35); opacity: 0; pointer-events: none; transition: opacity .4s; }
body.nav-open .scrim { opacity: 1; pointer-events: auto; }

/* écrans larges : sur l'intro, le menu est ouvert d'office, sans voile ni bouton */
/* l'intro reste nue : ni menu ni bouton */
body.at-top:not(.nav-open) .burger { opacity: 0; pointer-events: none; }

/* écrans larges : le hero se compose avec le menu ouvert à sa gauche,
   la photo et le titre se calent dans l'espace restant */
@media (min-width: 900px) {
  body.on-photo .sidebar { transform: none; visibility: visible; transition: transform .45s cubic-bezier(.77, 0, .18, 1); }
  body.on-photo:not(.nav-open) .burger { opacity: 0; pointer-events: none; }
  body.on-photo .scrim { display: none; }
  .hero-photos, .hero-shade { transition: left .45s cubic-bezier(.77, 0, .18, 1); }
  body.on-photo .hero-photos, body.on-photo .hero-shade { left: var(--side-w); }
  body.on-photo .hero-title { left: calc(var(--side-w) + clamp(32px, 4.5vw, 88px)); }
}
/* écrans peu hauts : le menu tient sans défiler */
@media (max-height: 860px) {
  .sidebar { padding-top: 30px; padding-bottom: 20px; }
  .side-logo { margin-bottom: 14px; }
  .side-logo img { height: 56px; }
  .sidebar nav { gap: 2px; }
  .side-main { padding: 3px 0; font-size: 16px; }
  .subnav { margin: 1px 0 4px 16px; }
  .subnav a { padding: 1.5px 0; font-size: 12.5px; }
  .side-foot { padding-top: 14px; }
  .side-foot a { width: 32px; height: 32px; }
}
@media (max-width: 760px) {
  .burger { top: 14px; left: 14px; width: 44px; height: 44px; }
  .sidebar { padding-top: 40px; }
}

/* --------------------------------------------------------------------------
   Hero — le logo découpé dans le kraft
   Les lettres SWOMA sont percées dans le carton : on voit les réalisations
   au travers. Au défilement, on traverse la lettre M (piloté par main.js).
   -------------------------------------------------------------------------- */
.hero { position: relative; height: 100vh; height: 100svh; }   /* un seul écran : la traversée du M se joue d'elle-même au premier défilement */
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #1a1a1a; }

.hero-photos { position: absolute; inset: 0; transform: scale(var(--photos-s, 1.12)); will-change: transform; }
.hero-photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.hero-photos img.on { opacity: 1; animation: drift 9s ease-out both; }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }

.hero-shade {
  position: absolute; inset: 0; pointer-events: none; opacity: var(--title-o, 0);
  background: linear-gradient(to top, rgba(10, 10, 10, .82) 0%, rgba(10, 10, 10, .35) 45%, rgba(10, 10, 10, .28) 100%);
}

.hero-kraft { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-kraft text { font-family: var(--font); font-weight: 700; letter-spacing: .01em; }

/* repères discrets posés sur le kraft, aux quatre coins */
.hero-meta { position: absolute; inset: 0; pointer-events: none; color: var(--ink); opacity: var(--cue-o, 1); }
.hero-meta p { position: absolute; margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; line-height: 1.7; }
.hero-meta .meta-tl { left: var(--logo-x, 50%); top: var(--logo-b, 70%); font-size: var(--logo-fs, 11px); letter-spacing: .32em; }
/* invitation à défiler : cartouche noir bien lisible sur le kraft, trait animé dessous */
.hero-meta .meta-cue { left: 50%; bottom: clamp(18px, 3.5vh, 36px); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 14px; font-size: var(--logo-fs, 13px); font-weight: 700; letter-spacing: .32em; line-height: 1; }
/* même typographie que « Make Architecture » : posé sur le kraft comme un repère imprimé */
.meta-cue span { display: block; padding-left: .32em; }   /* compense l'espacement final pour rester centré */
.meta-cue::after { content: ""; width: 2px; height: clamp(34px, 5.5vh, 54px); background: var(--ink); transform-origin: top; animation: cue 1.8s ease-in-out infinite; }

/* titre final, sur la photo */
.hero-title {
  position: absolute; left: var(--edge); right: var(--edge); bottom: clamp(28px, 7vh, 80px);
  color: #fff; max-width: 900px;
  opacity: var(--title-o, 0); transform: translateY(calc((1 - var(--title-o, 0)) * 26px));
  visibility: var(--title-v, hidden);
}
.eyebrow { margin: 0 0 16px; font-size: clamp(11px, 1.1vw, 14px); font-weight: 800; letter-spacing: .3em; text-transform: uppercase; }
.hero-title h1 { margin: 0; font-size: clamp(40px, 8.4vw, 124px); font-weight: 900; line-height: .92; letter-spacing: -.035em; text-transform: uppercase; }
.hero-title h1 i { font-style: normal; color: #e9fe00; margin-left: .1em; }   /* le jaune du point du logo SWOMA */
.hero-title .lede { margin: 20px 0 0; max-width: 46ch; font-size: clamp(15px, 1.5vw, 20px); font-weight: 600; line-height: 1.5; }
.hero-ctas { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 28px; }
.hero-ctas .btn { margin: 0; }


@keyframes cue { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

@media (max-width: 760px) {
  .hero-meta p { font-size: 9.5px; letter-spacing: .18em; }
  }

/* sans animation : on montre directement la photo et le titre */
.hero.is-static { height: auto; }
.hero.is-static .hero-stage { position: relative; }
.hero.is-static .hero-kraft, .hero.is-static .hero-meta { display: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-photos img.on { animation: none; }
}

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */
/* bouton « cadre de cartouche » : cadre fin, flèche dans sa propre case ;
   au survol, la case de la flèche prend la couleur de la section (--dot-c) */
.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 0 0 20px;
  border: 1.5px solid currentColor; background: transparent; color: var(--ink); cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.btn > span {
  align-self: stretch; display: flex; align-items: center; margin-left: 20px; padding: 0 16px;
  border-left: 1.5px solid currentColor; font-size: 15px; letter-spacing: 0;
  transition: background-color .25s, color .25s;
}
.btn > span { background: var(--dot-c, var(--blue)); color: #fff; }   /* la case de la flèche est toujours en couleur */
.btn { transition: background-color .25s, color .25s; }
.btn:hover, .btn:focus-visible { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
/* sur fond sombre */
.btn-light { color: #fff; }
.btn-light > span { background: #fff; color: var(--ink); }
.btn-light:hover, .btn-light:focus-visible { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover > span, .btn-light:focus-visible > span { border-left-color: var(--ink); }
.btn-ghost { color: #fff; }

/* --------------------------------------------------------------------------
   Sections — structure commune
   -------------------------------------------------------------------------- */
.inner { max-width: 1240px; margin: 0 auto; }
.section { padding: clamp(68px, 9.35vw, 136px) var(--edge); border-top: 2px solid var(--ink); background: #fff; }
.sec-head { margin-bottom: clamp(40px, 6vw, 80px); }
.sec-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 60px; flex-wrap: wrap; }
.kicker { margin: 0 0 18px; font-size: clamp(13px, 1.3vw, 16px); font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: var(--dot-c, var(--ink)); }   /* même couleur que le point du titre */
.sec-head h2 { margin: 0; font-size: clamp(32px, 5.44vw, 78px); font-weight: 900; line-height: .95; letter-spacing: -.035em; text-transform: uppercase; }
.sec-head h2 span { color: inherit; }
/* le point final des titres change de couleur à chaque section, avec les couleurs de la frise de l'équipe */
h2 i { font-style: normal; color: var(--dot-c, var(--ink)); margin-left: .1em; }   /* le point final, un peu détaché du mot */
#studio      { --dot-c: #1f45ff; }   /* bleu (Thibaut) */
#equipe      { --dot-c: #1f45ff; }   /* bleu */
#competences{ --dot-c: #9b30ff; }   /* violet : celui de la section sur l'ancien site */
#projets     { --dot-c: #ff7300; }   /* orange */
#chiffres    { --dot-c: #fb008c; }   /* rose : chiffres, point du titre et bouton */
#echangeons  { --dot-c: #ff0000; }   /* rouge */
#journal     { --dot-c: #00c000; }   /* vert */
.tagline { margin: 22px 0 0; max-width: 52ch; font-size: clamp(18px, 1.7vw, 23px); font-weight: 700; line-height: 1.45; color: var(--ink); }
.sec-head-row .tagline { margin: 0; max-width: 40ch; }

.link-arrow { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; border-bottom: 2px solid currentColor; padding-bottom: 6px; transition: color .2s; }
.link-arrow span { transition: transform .2s; }
a:hover .link-arrow, .link-arrow:hover { color: var(--dot-c, var(--blue)); }   /* survol à la couleur de la section */
a:hover .link-arrow span, .link-arrow:hover span { transform: translate(4px, -2px); }

/* apparition au défilement */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* --------------------------------------------------------------------------
   1 · Le studio
   -------------------------------------------------------------------------- */
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }

/* la phrase-manifeste : même registre léger que la frise de l'équipe */
.statement { margin: 0 0 clamp(26px, 3vw, 40px); font-size: clamp(22px, 2.3vw, 32px); font-weight: 400; line-height: 1.4; letter-spacing: -.005em; color: #222; }
.statement em { font-style: normal; font-weight: 700; color: var(--ink); text-decoration: underline 2px var(--ink); text-underline-offset: 6px; text-decoration-skip-ink: none; }
.body { margin: 0 0 18px; max-width: 62ch; font-size: clamp(15.5px, 1.1vw, 17px); line-height: 1.8; color: #555; }
.body b { font-weight: 600; color: var(--ink); }

/* les engagements : un tableau à deux colonnes, numéroté en violet (comme les compétences) */
.facts-title { margin: 6px 0 22px; font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: #777; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; counter-reset: fact; border-top: 2px solid var(--ink); }
.facts li { display: flex; flex-direction: column; gap: 4px; padding: clamp(16px, 2.2vh, 24px) 16px clamp(18px, 2.4vh, 26px) 0; border-bottom: 1px solid #d9d9d9; counter-increment: fact; }
.facts li:nth-child(even) { padding-left: 18px; border-left: 1px solid #d9d9d9; }
.facts li:nth-last-child(-n+2) { border-bottom: 2px solid var(--ink); }
.facts li::before {
  content: "0" counter(fact); margin-bottom: 6px;
  font-family: "Gotcha Gothic", Impact, "Arial Narrow", sans-serif; font-size: clamp(30px, 2.6vw, 40px); line-height: .9; letter-spacing: .02em;
  color: #9b30ff;
}
.facts b { font-size: clamp(15px, 1.2vw, 17px); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.facts span { font-size: 13.5px; font-weight: 500; color: #555; }


/* --------------------------------------------------------------------------
   L'équipe
   -------------------------------------------------------------------------- */
.equipe { background: #fff; }
.equipe .tagline { color: var(--ink); }

/* L'équipe en frise : un trait fin façon ligne de cote,
   une pastille de couleur par personne, et la bio en dessous. */
.metro { --track: 1.5px; --station: 24px; }

/* la voie */
.metro-track {
  position: relative; list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  height: clamp(270px, 24vw, 320px);
}
.metro-track::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: var(--track); margin-top: calc(var(--track) / -2);
  background: var(--ink);
  transform-origin: left; transform: scaleX(0); transition: transform 1.4s cubic-bezier(.65, 0, .25, 1);
}
/* extrémités de la ligne de cote : petits traits obliques */
.metro-track::after {
  content: ""; position: absolute; left: -6px; right: -6px; top: 50%; height: 14px; margin-top: -7px; pointer-events: none;
  background:
    linear-gradient(45deg, transparent calc(50% - .9px), var(--ink) calc(50% - .9px), var(--ink) calc(50% + .9px), transparent calc(50% + .9px)) left center / 14px 14px no-repeat,
    linear-gradient(45deg, transparent calc(50% - .9px), var(--ink) calc(50% - .9px), var(--ink) calc(50% + .9px), transparent calc(50% + .9px)) right center / 14px 14px no-repeat;
  opacity: 0; transition: opacity .4s 1.2s;
}
.metro.in .metro-track::before { transform: scaleX(1); }
.metro.in .metro-track::after { opacity: 1; }

.tm { position: relative; }
.tm-btn { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; }
.tm-btn:focus-visible { outline: none; }
.tm-btn:focus-visible .tm-station { outline: 3px solid var(--ink); outline-offset: 5px; }

/* le repère : pastille pleine à la couleur de la personne, posée sur le trait */
.tm-station {
  position: absolute; left: 50%; top: 50%; width: var(--station); height: var(--station); border-radius: 50%;
  background: var(--c); border: 0;
  transform: translate(-50%, -50%) scale(0);
  transition: transform .45s cubic-bezier(.3, 1.6, .5, 1) calc(.35s + var(--i) * .16s), background-color .25s, border-color .25s, box-shadow .3s;
}
.metro.in .tm-station { transform: translate(-50%, -50%) scale(1); }
.metro.in .tm-btn:hover .tm-station { transform: translate(-50%, -50%) scale(1.3); background: var(--c); transition-delay: 0s; }
.metro.in .tm-btn[aria-pressed="true"] .tm-station { background: var(--c); transform: translate(-50%, -50%) scale(1.5); }

/* le nom, au-dessus ou au-dessous du trait */
.tm-label {
  position: absolute; left: 50%; width: max-content; max-width: 200px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px;
  opacity: 0; transition: opacity .5s ease calc(.55s + var(--i) * .16s), transform .5s ease calc(.55s + var(--i) * .16s);
}
.tm-up .tm-label { bottom: calc(50% + var(--station) / 2 + 20px); flex-direction: column-reverse; }
.tm-down .tm-label { top: calc(50% + var(--station) / 2 + 20px); }
.metro.in .tm-label { opacity: 1; }

.tm-name { font-size: clamp(16px, 1.45vw, 21px); font-weight: 400; line-height: 1.3; letter-spacing: .01em; color: #333; transition: color .25s; }
.tm-name b { display: block; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.tm-role { font-size: 12px; font-weight: 400; line-height: 1.5; color: #777; }
.tm-role b { display: block; font-weight: 600; color: #333; }
.tm-btn[aria-pressed="true"] .tm-name b { text-decoration: underline 2px var(--c); text-underline-offset: 5px; }

/* la bio : le nom souligné d'un filet à la couleur de la personne */
.bios { margin-top: clamp(36px, 4.5vw, 64px); }
.bio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 22px 60px; align-items: start; }
.js .bio { display: none; }
.js .bio.is-on { display: grid; animation: bio-in .45s ease both; }
@keyframes bio-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.bio .bio-name {
  margin: 0; justify-self: start; position: relative;
  padding: 2px 0 2px 18px; border-left: 4px solid var(--c); color: var(--ink);
  font-size: clamp(14px, 1.3vw, 18px); font-weight: 700; line-height: 1.3; letter-spacing: .14em; text-transform: uppercase;
}
.bio p:not(.bio-name) { margin: 0; font-size: 16.5px; line-height: 1.75; color: #333; max-width: 70ch; }

@media (prefers-reduced-motion: reduce) {
  .metro-track::before { transform: none; transition: none; }
  .metro-track::after, .tm-label { opacity: 1; transition: none; }
  .tm-station { transform: translate(-50%, -50%); transition: none; }
}

/* tablette et mobile : la frise devient verticale */
@media (max-width: 900px) {
  .metro { --station: 20px; }
  .metro-track { height: auto; grid-template-columns: 1fr; gap: 22px; padding: 4px 0; }
  .metro-track::before { left: calc(29px - var(--track) / 2); right: auto; top: -8px; bottom: -8px; width: var(--track); height: auto; margin: 0; transform-origin: top; transform: scaleY(0); }
  .metro.in .metro-track::before { transform: scaleY(1); }
  .metro-track::after { display: none; }
  .tm-btn { position: relative; inset: auto; display: grid; grid-template-columns: 58px 1fr; align-items: center; text-align: left; }
  .tm-station { position: relative; left: auto; top: auto; justify-self: center; transform: scale(0); }
  .metro.in .tm-station { transform: scale(1); }
  .metro.in .tm-btn:hover .tm-station { transform: scale(1.3); }
  .metro.in .tm-btn[aria-pressed="true"] .tm-station { transform: scale(1.5); }
  .tm-label, .tm-up .tm-label, .tm-down .tm-label {
    position: static; transform: none; max-width: none; width: auto;
    display: grid; grid-template-columns: 1fr; row-gap: 2px; align-items: center; text-align: left;
  }
  .tm-name { font-size: 17px; }
  .tm-name b { display: inline; }
  .tm-name br { display: none; }
  .tm-role { font-size: 12px; }
  .tm-role b { display: inline; margin-right: 4px; }
  .bio { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   2 · Nos compétences
   Un tableau brut, sans décor : six cases cerclées d'un trait épais,
   un grand numéro gothique (repris de l'ancien site), un titre, un texte.
   Au survol, la case se couvre de kraft.
   -------------------------------------------------------------------------- */
@font-face { font-family: "Gotcha Gothic"; src: url("../fonts/gotcha-gothic.ttf") format("truetype"); font-display: swap; }

.competences { background: #fff; padding-top: clamp(30px, 5vh, 82px); padding-bottom: clamp(30px, 5vh, 82px); }
.competences .sec-head { margin-bottom: clamp(22px, 3.4vh, 40px); }
.competences .sec-head-row { flex-wrap: nowrap; }
.competences .sec-head-row > div { flex: 1 1 auto; min-width: 0; }
.competences .sec-head-row .tagline { flex: 0 1 38ch; }

.skills {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 2px solid var(--ink); border-left: 2px solid var(--ink);
}
.skill {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(16px, 2vw, 32px); align-items: center;
  padding: clamp(14px, 2.3vh, 28px) clamp(18px, 2.2vw, 34px);
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  scroll-margin-top: 90px;
  background: #fff;
  transition: background-color .35s;
}
/* la matière apparaît au survol */
.skill::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--kraft) url("../img/kraft-lisse.webp") 0 0 / 1024px;
  opacity: 0; transition: opacity .35s;
}
.skill:hover::before { opacity: 1; }
.skill > * { position: relative; }

.skill-num {
  font-family: "Gotcha Gothic", Impact, "Arial Narrow", sans-serif; font-weight: 400;
  font-size: clamp(56px, 5.4vw, 96px); line-height: .82; letter-spacing: 0;
  color: #9b30ff; -webkit-text-stroke: .03em #9b30ff; paint-order: stroke fill;   /* le violet de l'ancien site, y compris au survol */
}
.skill-body h3 { margin: 2px 0 8px; font-size: clamp(18px, 1.7vw, 25px); font-weight: 900; line-height: 1.1; letter-spacing: -.01em; text-transform: uppercase; }
.skill-body p { margin: 0; max-width: 46ch; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.6; color: #333; transition: color .35s; }
.skill:hover .skill-body p { color: var(--ink); }

@media (max-width: 900px) {
  .competences .sec-head-row { flex-wrap: wrap; }
  .skills { grid-template-columns: 1fr; }
  .skill { grid-template-columns: 64px minmax(0, 1fr); }
  .skill-num { font-size: 60px; }
}
@media (hover: none) { .skill::before { display: none; } }

/* --------------------------------------------------------------------------
   3 · Les projets : les tubes à plans (repris de l'ancien site)
   Au survol d'un tube (au doigt : un appui), son plan se déroule entre lui et le tube suivant :
   la feuille sort de dessous le tube et les tubes du dessous suivent au même rythme. Un seul plan ouvert à la fois.
   -------------------------------------------------------------------------- */
.projets { background: #fff; padding-top: clamp(28px, 3.5vw, 48px); padding-bottom: clamp(110px, 14vw, 200px); }
.projets .sec-head { margin-bottom: clamp(24px, 3vw, 44px); }
.projets .tagline { margin: 14px 0 0; max-width: 40ch; color: var(--ink); }

.tube-item {
  --sheet-w: 93%;                          /* la feuille couvre le corps du tube */
  width: 90vw; margin-left: calc(50% - 45vw);
  scroll-margin-top: 90px;
}
.tube-item + .tube-item { margin-top: -3px; }

/* le tube : un bouton qui déroule / range le plan */
.tube-feature {
  position: relative; z-index: 2; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer;
  line-height: 0; font-size: 0;
}
.tube-feature img { display: block; width: 96%; height: auto; margin: 0 auto; transition: transform .45s cubic-bezier(.3, 1.3, .5, 1); }
.tube-feature:hover img { transform: translateY(-4px); }
.tube-feature:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.tube-hint {
  position: absolute; left: 63%; top: 50%; transform: translate(-50%, -50%) translateY(6px);
  padding: 8px 14px; background: var(--ink); color: #fff; line-height: 1;
  font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 3px 3px 0 var(--c); opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none;
}
.tube-feature:focus-visible .tube-hint { opacity: 1; transform: translate(-50%, -50%); }
@media (hover: hover) and (pointer: fine) { .tube-hint { display: none; } }
.th-close { display: none; }
.tube-item.is-open .th-open { display: none; }
.tube-item.is-open .th-close { display: inline; }

/* le plan : sa hauteur est animée image par image par main.js (0 → hauteur de la feuille),
   les tubes suivants descendent avec. --p (0 → 1) suit l'avancement du déroulé. */
.tube-drop { position: relative; z-index: 3; height: 0; }
.tube-drop-in { height: 100%; overflow: hidden; }

.tube-sheet {
  position: relative; width: var(--sheet-w); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-rows: minmax(0, 1fr);
  gap: clamp(16px, 1.8vw, 26px) clamp(18px, 2.2vw, 40px);
  min-height: clamp(310px, 28vw, 450px);
  padding: clamp(26px, 2.6vw, 40px) clamp(22px, 3vw, 52px) clamp(18px, 2vw, 28px);
  background-color: #fbf8f1;
  background-image:
    linear-gradient(rgba(25, 15, 5, .2), rgba(25, 15, 5, 0) 22px),                          /* ombre du tube sur la feuille */
    linear-gradient(90deg, rgba(90, 70, 40, .08), rgba(90, 70, 40, 0) 3%, rgba(90, 70, 40, 0) 97%, rgba(90, 70, 40, .08));
}
/* le contenu apparaît une fois le papier bien entamé */
.ts-photo, .ts-text { opacity: 0; transition: opacity .2s; }
.tube-item.is-open .ts-photo, .tube-item.is-open .ts-text { opacity: 1; transition: opacity .5s .35s; }

/* le bas de la feuille : à plat, fermé par un trait */
.tube-sheet { border-bottom: 2px solid var(--ink); }



/* contenu de la feuille */
.ts-photo { position: relative; margin: 0; min-height: clamp(220px, 20vw, 340px); overflow: hidden; border: 1.5px solid var(--ink); background: #ddd; }
.ts-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.ts-text { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 0; }
.ts-kicker { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.ts-kicker b { padding: 3px 7px; background: var(--c); color: #fff; letter-spacing: .06em; }
.ts-title { margin: 2px 0 0; font-size: clamp(18px, 1.8vw, 28px); font-weight: 900; line-height: 1.1; text-transform: uppercase; letter-spacing: -.01em; }
.ts-sub { margin: -4px 0 2px; font-size: clamp(14px, 1.15vw, 17px); font-weight: 600; line-height: 1.35; color: #555; }
.ts-desc { margin: 0 0 8px; max-width: 62ch; font-size: clamp(13.5px, 1vw, 15.5px); line-height: 1.6; color: #333; }
/* bouton « cadre de cartouche » : cadre fin, flèche dans sa propre case qui prend la couleur du tube au survol */
.ts-cta {
  margin-top: auto; display: inline-flex; align-items: center; min-height: 42px; padding: 0 0 0 16px;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.ts-cta > span {
  align-self: stretch; display: flex; align-items: center; margin-left: 16px; padding: 0 14px;
  border-left: 1.5px solid var(--ink); font-size: 14px; letter-spacing: 0;
  transition: background-color .25s, color .25s;
}
.ts-cta > span { background: var(--c); color: #fff; }   /* la case de la flèche est toujours en couleur */
.ts-cta { transition: background-color .25s, color .25s; }
.ts-cta:hover, .ts-cta:focus-visible { background: var(--ink); color: #fff; }
.ts-cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* tablette et mobile : tubes plus larges, photo au-dessus du texte, hauteur libre */
@media (max-width: 900px) {
  .tube-item { width: 98vw; margin-left: calc(50% - 49vw); --sheet-w: 92%; }
  .tube-hint { display: none; }
  .tube-sheet { height: auto; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; gap: 16px; padding: 22px 18px 18px; }
  .ts-photo { aspect-ratio: 4 / 3; min-height: 0; }
  .ts-cta { margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .ts-photo, .ts-text, .tube-feature img { transition: none !important; }
}

/* --------------------------------------------------------------------------
   6 · Journal — préfigure le futur blog : un article à la une,
   une liste d'articles numérotés, les rubriques et un lien vers le journal.
   -------------------------------------------------------------------------- */
.journal { background: #fff; padding-top: clamp(34px, 5.95vh, 82px); padding-bottom: clamp(34px, 5.95vh, 82px); }
.journal .sec-head { margin-bottom: clamp(22px, 3.5vh, 44px); }
.journal .sec-head h2 { font-size: clamp(29px, 3.74vw, 54px); }
.journal .tagline { margin-top: 12px; }
.blog {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto auto;
  gap: clamp(28px, 3vw, 44px) clamp(32px, 4.5vw, 72px);
}
.post-link { display: block; color: inherit; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #777; }
.post-meta > * + *::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #bbb; margin-right: 14px; vertical-align: middle; }
.post-meta .post-tag + *::before { display: none; }
.post-tag { padding: 5px 9px; background: var(--ink); color: #fff; letter-spacing: .14em; }
.post-title { margin: 0 0 10px; font-weight: 900; line-height: 1.12; letter-spacing: -.015em; text-transform: uppercase; transition: color .2s; }
.post-excerpt { margin: 0; color: #555; line-height: 1.7; }
.post-link:hover .post-title { color: var(--dot-c, var(--blue)); }

/* article à la une */
.post-feature { grid-row: 1 / span 2; }
.post-feature .post-img { position: relative; overflow: hidden; height: clamp(200px, 32vh, 380px); background: #eee; margin-bottom: 22px; }
.post-feature .post-img::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(0, 0, 0, .08); pointer-events: none; }
.post-img img, .post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .5s; }
.post-feature .post-link:hover img { transform: scale(1.03); }
.post-feature .post-title { font-size: clamp(22px, 2.1vw, 32px); }
.post-feature .post-excerpt { max-width: 56ch; margin-bottom: 22px; font-size: 16px; }

/* liste d'articles */
.post-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); align-self: start; }
.post { border-bottom: 1px solid #d9d9d9; }
.post .post-link { position: relative; display: grid; grid-template-columns: 34px 112px minmax(0, 1fr) 20px; gap: 18px; align-items: start; padding: clamp(14px, 2.2vh, 22px) 0; }
.post-num { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: #999; padding-top: 2px; }
.post-thumb { overflow: hidden; aspect-ratio: 4 / 3; background: #eee; }
.post-thumb img { filter: grayscale(1); }
.post .post-link:hover .post-thumb img { filter: none; transform: scale(1.06); }
.post .post-title { font-size: clamp(16px, 1.3vw, 19px); }
.post .post-excerpt { font-size: 14px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.post-arrow { font-size: 16px; padding-top: 2px; transition: transform .25s, color .2s; }
.post .post-link:hover .post-arrow { transform: translate(3px, -3px); color: var(--dot-c, var(--blue)); }

/* rubriques du futur blog */
.blog-themes { grid-column: 2; align-self: end; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.blog-themes span { margin-right: 6px; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #777; }
.blog-themes a { padding: 8px 14px; border: 1.5px solid var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .06em; transition: background-color .2s, color .2s; }
.blog-themes a:hover { background: var(--dot-c, var(--ink)); border-color: var(--dot-c, var(--ink)); color: #fff; }

/* écrans d'ordinateur peu hauts : on resserre */
@media (min-width: 981px) and (max-height: 820px) {
  .journal .tagline { display: none; }
  .post-feature .post-img { height: clamp(190px, 28vh, 300px); }
}
@media (max-width: 980px) {
  .blog { grid-template-columns: 1fr; }
  .post-feature { grid-row: auto; }
  .post-feature .post-img { height: auto; aspect-ratio: 16 / 10; }
  .blog-themes { grid-column: auto; }
}
@media (max-width: 560px) {
  .post .post-link { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; }
  .post-num, .post-arrow { display: none; }
  .post .post-excerpt { display: none; }
}

/* --------------------------------------------------------------------------
   4 · En chiffres — la réassurance pour un public professionnel.
   Un bandeau de kraft en pleine largeur, fermé par deux traits noirs épais,
   quatre grands chiffres gothiques en rose (--sc), séparés par des traits verticaux.
   Les chiffres comptent à l'apparition.
   -------------------------------------------------------------------------- */
.chiffres { background: #fff; padding-top: clamp(34px, 6vh, 82px); padding-bottom: clamp(30px, 5vh, 72px); }
.chiffres .sec-head { margin-bottom: clamp(22px, 3.5vh, 40px); }
.chiffres .sec-head-row { flex-wrap: nowrap; }
.chiffres .sec-head-row > div { flex: 1 1 auto; min-width: 0; }
.chiffres .sec-head-row .tagline { flex: 0 1 40ch; }

.stats-band {
  margin: 0 calc(-1 * var(--edge)); padding: clamp(26px, 4.4vh, 52px) var(--edge);
  background: var(--kraft) url("../img/kraft-lisse.webp") 0 0 / 1024px;
  border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
}
.stats { --sc: var(--dot-c);   /* les chiffres dans la couleur de la section */
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 0 clamp(16px, 2.2vw, 36px); border-left: 3px solid var(--ink); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat-num {
  display: flex; align-items: baseline; margin-bottom: 8px;
  font-family: "Gotcha Gothic", Impact, "Arial Narrow", sans-serif; font-weight: 400;
  font-size: clamp(64px, 7vw, 124px); line-height: .85; letter-spacing: .01em; color: var(--sc, var(--ink));
  -webkit-text-stroke: .02em var(--sc, var(--ink)); paint-order: stroke fill;
  font-variant-numeric: tabular-nums;
}
.stat-num em { font-style: normal; }
.stat-num small { font-size: .4em; letter-spacing: .02em; margin-left: 8px; }
.stat-label { margin: 0; font-size: clamp(13px, 1.1vw, 16px); font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.stat-sub { margin: 0; max-width: 30ch; font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--ink); }

/* chiffres à confirmer : en contour, avec une étiquette pointillée */
.stat-num.is-todo { color: transparent; -webkit-text-stroke: 1.5px var(--sc, var(--ink)); }
.stat-num.is-todo small { color: var(--sc, var(--ink)); -webkit-text-stroke: 0; }
.stat-flag { display: inline-block; padding: 3px 8px; border: 1.5px dashed var(--ink); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.chiffres-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px 40px; flex-wrap: wrap; margin-top: clamp(22px, 3.5vh, 40px); }
.chiffres-cta p { margin: 0; font-size: clamp(20px, 2vw, 30px); font-weight: 900; line-height: 1.1; letter-spacing: -.015em; text-transform: uppercase; }
.chiffres-cta p i { font-style: normal; color: var(--dot-c); margin-left: .1em; }

@media (max-width: 900px) {
  .chiffres .sec-head-row { flex-wrap: wrap; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat-num { font-size: 60px; }
}
@media (max-width: 420px) {
  .stat { padding: 0 12px; }
  .stat-num { font-size: 52px; }
  .stat-sub { font-size: 12px; }
}

/* --------------------------------------------------------------------------
   5 · Échangeons : formulaire de contact qualifié en trois étapes
   (demande → projet → coordonnées). Les réponses servent à trier
   les demandes dans la boîte mail de l'agence.
   -------------------------------------------------------------------------- */
.contact-band { padding: clamp(34px, 5.95vh, 82px) var(--edge); background: var(--kraft) url("../img/kraft-lisse.webp") 0 0 / 1024px; border-top: 2px solid var(--ink); }
.contact-band .kicker { margin-bottom: 12px; }
/* en-tête pleine largeur : titre à gauche, accroche à droite */
.contact-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 60px; margin-bottom: clamp(22px, 3.6vh, 40px); }
.contact-head > div { flex: 1 1 auto; min-width: 0; }
.contact-head .contact-lede { flex: 0 1 46ch; margin: 0; }
/* formulaire à gauche, l'agence (plan + coordonnées) à droite */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(24px, 3.4vw, 56px); align-items: stretch; }
/* titre blanc avec le même relief que la carte du formulaire : une ombre noire nette, décalée en bas à droite */
.contact-band h2 { margin: 0; font-size: clamp(30px, 4.2vw, 62px); font-weight: 900; line-height: 1.04; letter-spacing: -.02em; text-transform: uppercase; color: #fff; text-shadow: .075em .075em 0 var(--ink); }
.contact-band h2 span { color: #fff; }
.contact-band h2 i { font-style: normal; color: var(--dot-c); }
.contact-lede { margin: 18px 0 26px; max-width: 46ch; font-size: clamp(16px, 1.3vw, 19px); font-weight: 700; line-height: 1.5; color: var(--ink); }
.contact-info { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.contact-info li { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(17, 17, 17, .35); font-size: 14px; overflow-wrap: anywhere; font-weight: 700; }
.contact-info span { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); padding-top: 3px; }
.contact-info small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 500; color: var(--ink); }
.contact-info a:hover { color: var(--dot-c, var(--blue)); }

/* la carte du formulaire */
.cform { position: relative; padding: clamp(22px, 2.6vw, 36px); background: #fff; border: 2px solid var(--ink); }

/* l'agence : plan d'accès (repris de l'ancien site), puis les coordonnées */
.contact-aside { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.contact-map { position: relative; display: block; flex: 1 1 auto; min-height: 220px; overflow: hidden; border: 2px solid var(--ink); background: #e6e6e6; }
.contact-map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 44.5% 24.4%; filter: grayscale(1) contrast(1.05); transition: transform .6s ease; }
.contact-map:hover img { transform: scale(1.04); }
.map-pin {
  position: absolute; left: 44.5%; top: 24.4%; width: 22px; height: 22px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--dot-c); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--ink);
}
.map-pin::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--dot-c); animation: pin 2.2s ease-out infinite; }
@keyframes pin { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.contact-map .map-btn { position: absolute; left: 12px; bottom: 12px; min-height: 40px; padding-left: 14px; background: #fff; font-size: 12px; }
.contact-map .map-btn > span { margin-left: 14px; padding: 0 12px; }
.contact-map:hover .map-btn { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .map-pin::after { animation: none; display: none; } }
/* bloc de champs ; le bloc « projet » se déplie quand on choisit « Un projet à étudier » */
.cf-block { margin: 0; padding: 0; border: 0; min-width: 0; }
.cf-project { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .45s cubic-bezier(.3, .6, .3, 1), opacity .35s; }
.cf-project-inner { min-height: 0; overflow: hidden; }
.js .cf-project:not(.is-open) { grid-template-rows: 0fr; opacity: 0; }
.cf-row.cf-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cf-project .cf-row { padding-bottom: 4px; }
.cf-group { margin-bottom: clamp(12px, 1.8vh, 18px); }
.cf-label { display: block; margin: 0 0 9px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #555; }
.cf-label abbr { text-decoration: none; color: var(--dot-c, var(--blue)); }
.cf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 7px 12px; border: 1.5px solid var(--ink); font-size: 12.5px; font-weight: 600; line-height: 1.2; transition: background-color .2s, color .2s; }
.chip:hover span { background: #f3efe8; }
.chip input:checked + span { background: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--dot-c, var(--blue)); outline-offset: 2px; }

.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vh, 18px) 22px; margin-bottom: clamp(12px, 2vh, 18px); }
.cf-field { display: block; min-width: 0; }
.cf-full { margin-bottom: 14px; }
.cf-field input, .cf-field select, .cf-field textarea {
  display: block; width: 100%; padding: 8px 0; border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0; background: transparent;
  font: inherit; font-size: 15px; font-weight: 500; color: var(--ink);
}
.cf-field select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23111' stroke-width='1.6'/%3E%3C/svg%3E") right 2px center no-repeat; padding-right: 22px; cursor: pointer; }
.cf-field textarea { resize: vertical; min-height: 72px; line-height: 1.5; }
.cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus { outline: none; border-bottom-color: var(--dot-c, var(--blue)); box-shadow: 0 1px 0 var(--dot-c, var(--blue)); }
.cf-field input::placeholder, .cf-field textarea::placeholder { color: #aaa; }
.cf-field.is-invalid input, .cf-field.is-invalid textarea, .cf-field.is-invalid select, .cf-group.is-invalid .chip span { border-color: #d0021b; }

.cf-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.5; color: #444; cursor: pointer; }
.cf-consent input { margin-top: 2px; accent-color: var(--ink); width: 16px; height: 16px; flex: none; }
.cf-consent a { text-decoration: underline; }
.cf-consent.is-invalid { color: #d0021b; }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cf-error { min-height: 1.2em; margin: 10px 0 0; font-size: 13px; font-weight: 600; color: #d0021b; }
.cf-nav { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 14px; padding-top: 16px; border-top: 1px solid #ddd; }
.cf-nav .cf-consent { flex: 1; }
.cf-nav .btn { flex: none; margin: 0; }
.cform.is-sending .cf-send { opacity: .6; pointer-events: none; }

/* confirmation */
.cf-done { display: none; padding: clamp(30px, 6vh, 60px) 0; outline: none; }
.cform.is-sent > :not(.cf-done) { display: none !important; }
.cform.is-sent .cf-done { display: block; animation: cf-in .4s ease both; }
.cf-done-title { margin: 0 0 12px; font-size: clamp(22px, 2.2vw, 30px); font-weight: 900; line-height: 1.1; text-transform: uppercase; }
.cf-done-title i { font-style: normal; color: var(--dot-c, var(--blue)); }
.cf-done p:not(.cf-done-title) { margin: 0; font-size: 15px; line-height: 1.6; color: #444; }
.cf-done a { font-weight: 700; text-decoration: underline; }

@media (max-width: 980px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-head { flex-direction: column; align-items: flex-start; }
  .contact-head .contact-lede { flex: none; }
  .contact-map { flex: none; aspect-ratio: 4 / 3; }
}
@media (max-width: 760px) {
  .cf-row.cf-row-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .cf-row, .cf-row.cf-row-3 { grid-template-columns: 1fr; }
  .cf-nav { flex-direction: column; align-items: stretch; }
  .cf-nav .btn { justify-content: space-between; }
  .contact-info li { grid-template-columns: 1fr; gap: 2px; }
}

/* --------------------------------------------------------------------------
   Pied de page : signature, plan du site, coordonnées,
   grand mot-symbole en kraft (écho du hero) et mentions légales.
   -------------------------------------------------------------------------- */
.site-footer { overflow: hidden; background: var(--ink); color: #bbb; padding: clamp(48px, 6vw, 80px) var(--edge) 22px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 36px clamp(24px, 3vw, 48px); }
.f-col p { margin: 0 0 10px; line-height: 1.6; }
.f-title { margin-bottom: 16px !important; font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: #777; }
.f-col a { color: #fff; font-weight: 600; transition: color .2s; }
.f-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
nav.f-col { display: flex; flex-direction: column; gap: 9px; }
nav.f-col a { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.f-muted { color: #888; font-size: 13px; }
.f-social { display: flex; gap: 18px; margin-top: 16px !important; }
/* le logo SWOMA empilé (SWO / MA.), en blanc avec son point jaune */
.f-logo { display: block; width: max-content; margin: 0 0 14px; }
.f-logo img { display: block; height: clamp(70px, 6.6vw, 100px); width: auto; }
.f-sub { color: #999; }
.f-cta { margin-top: 18px; }
.f-col a.btn-light { color: #fff; }
.f-col a.btn-light:hover, .f-col a.btn-light:focus-visible { color: var(--ink); }

.f-legal { display: flex; justify-content: space-between; align-items: center; gap: 12px 30px; flex-wrap: wrap; margin-top: clamp(36px, 4.5vw, 64px); padding-top: 18px; border-top: 1px solid #333; font-size: 12px; color: #888; }
.f-legal p { margin: 0; }
.f-legal-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.f-legal a { color: #bbb; transition: color .2s; }
.f-legal a:hover { color: #fff; }
.f-credit a { font-weight: 800; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.f-credit a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .f-legal { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   Pages des spécialisations (realisations/<spécialisation>/)
   Même langage que l'accueil : titres, tube, tableau à traits épais,
   bandeau kraft, boutons « cartouche ». --dot-c = couleur du tube.
   -------------------------------------------------------------------------- */
.sec-head h1 { margin: 0; font-size: clamp(32px, 5.44vw, 78px); font-weight: 900; line-height: .95; letter-spacing: -.035em; text-transform: uppercase; }
h1 i { font-style: normal; color: var(--dot-c, var(--ink)); margin-left: .1em; }

.sp-head { padding-top: clamp(84px, 13vh, 140px); border-top: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: clamp(18px, 3vh, 30px); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #777; }
.crumbs a:hover { color: var(--dot-c); }
.crumbs [aria-current] { color: var(--ink); }
.sp-head .sec-head { margin-bottom: clamp(16px, 2.6vh, 28px); }
.sp-tube { width: 90vw; margin-left: calc(50% - 45vw); }
.sp-tube img { display: block; width: 96%; height: auto; margin: 0 auto; }
.sp-intro {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(22px, 4vw, 72px);
  margin-top: clamp(26px, 4vh, 46px); padding-top: clamp(22px, 3vh, 32px); border-top: 2px solid var(--ink);
}
.sp-intro-title { margin: 0; font-size: clamp(24px, 2.6vw, 38px); font-weight: 900; line-height: 1.08; letter-spacing: -.01em; text-transform: uppercase; }
.sp-intro-text p { margin: 0 0 14px; max-width: 62ch; font-size: clamp(15.5px, 1.15vw, 18px); line-height: 1.75; color: #333; }

/* les projets : un tableau brut à deux colonnes, comme les compétences */
.pj-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
.pj-card { border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.pj-open { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; border: 0; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pj-open:focus-visible { outline: 3px solid var(--dot-c); outline-offset: -3px; }
.pj-photo { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; border-bottom: 2px solid var(--ink); background: #ddd; }
.pj-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pj-open:hover .pj-photo img { transform: scale(1.04); }
.pj-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr);   /* sans numéro de projet */ align-items: center; gap: 10px clamp(16px, 1.8vw, 26px); padding: clamp(16px, 2.4vh, 26px) clamp(18px, 2vw, 30px) clamp(18px, 2.6vh, 28px); }
.pj-num { font-family: "Gotcha Gothic", Impact, "Arial Narrow", sans-serif; font-weight: 400; font-size: clamp(48px, 4.4vw, 76px); line-height: .82; color: var(--dot-c); -webkit-text-stroke: .02em var(--dot-c); paint-order: stroke fill; }
.pj-title { display: block; margin: 0; font-size: clamp(16px, 1.4vw, 21px); font-weight: 900; line-height: 1.15; letter-spacing: -.005em; text-transform: uppercase; }
.pj-place { display: block; margin: 6px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #666; }
.pj-btn { grid-column: 1 / -1; justify-self: start; min-height: 42px; padding-left: 16px; font-size: 12px; }
.pj-btn > span { margin-left: 16px; padding: 0 13px; }
.pj-open:hover .pj-btn { background: var(--ink); color: #fff; border-color: var(--ink); }

/* projet mis en avant (ex. Manufaktura, prix de l'innovation) : pleine largeur, photo à gauche */
.pj-featured { grid-column: 1 / -1; }
.pj-featured .pj-open { flex-direction: row; }
.pj-featured .pj-photo { flex: 1.55; aspect-ratio: auto; min-height: clamp(300px, 34vw, 500px); border-bottom: 0; border-right: 2px solid var(--ink); }
.pj-featured .pj-body { flex: 1; align-content: center; gap: 16px; padding: clamp(22px, 3vw, 44px); }
.pj-featured .pj-title { font-size: clamp(22px, 2.4vw, 36px); line-height: 1.05; }
/* distinction (ex. prix de l'innovation) : une petite mention discrète sous le titre */
.pj-award { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #777; }
.pj-award::before { content: ''; flex: none; width: 7px; height: 7px; background: var(--dot-c); }
.pj-award[hidden] { display: none; }

/* groupes de projets (ex. Commerces / Centres commerciaux) */
.sp-group {
  margin: clamp(48px, 7vh, 88px) 0 clamp(18px, 2.6vh, 28px); padding-top: clamp(20px, 3vh, 32px); border-top: 3px solid var(--ink);
  font-size: clamp(28px, 3.4vw, 52px); font-weight: 900; line-height: .95; letter-spacing: -.03em; text-transform: uppercase;
}
.sp-group::after { content: '.'; margin-left: .08em; color: var(--dot-c); }   /* le point final, comme les titres */
.sp-group:first-of-type { margin-top: clamp(8px, 1.5vh, 16px); }

/* mur de photos (Signalétique) : chaque photo garde son format */
.pj-wall { list-style: none; margin: 0; padding: 0; columns: 3; column-gap: 14px; }
.pj-wall li { break-inside: avoid; margin-bottom: 14px; }
.pj-tile { display: block; width: 100%; padding: 0; border: 2px solid var(--ink); background: #ddd; cursor: zoom-in; overflow: hidden; }
.pj-tile img { display: block; width: 100%; height: auto; transition: transform .5s ease; }
.pj-tile:hover img { transform: scale(1.04); }
.pj-tile:focus-visible { outline: 3px solid var(--dot-c); outline-offset: 2px; }

/* appel au contact : le bandeau kraft des chiffres */
.sp-cta .stats-band { margin: 0; }
.sp-cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px 40px; flex-wrap: wrap; }
.sp-cta-inner p { margin: 0; font-size: clamp(22px, 2.6vw, 40px); font-weight: 900; line-height: 1.05; letter-spacing: -.015em; text-transform: uppercase; }
.sp-cta-inner p i { font-style: normal; color: var(--dot-c); margin-left: .1em; }
.sp-cta .btn { background: #fff; }
.sp-cta .btn:hover { background: var(--ink); }

/* les autres spécialisations : leurs tubes */
.sp-others .sec-head h2 { font-size: clamp(26px, 3.2vw, 46px); }
.sp-others .sec-head { margin-bottom: clamp(18px, 3vh, 32px); }
.others-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 36px; }
.other-tube { display: block; }
.other-tube img { display: block; width: 100%; height: auto; transition: transform .4s cubic-bezier(.3, 1.3, .5, 1); }
.other-tube > span { display: inline-flex; gap: 8px; margin-top: 6px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s; }
.other-tube:hover img { transform: translateY(-4px); }
.other-tube:hover > span { color: var(--c); border-bottom-color: var(--c); }

/* la modale projet : description à droite, diaporama des photos à gauche */
.pj-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: clamp(12px, 3vw, 40px); }
.pj-modal[hidden] { display: none; }
.pj-backdrop { position: absolute; inset: 0; background: rgba(17, 17, 17, .72); }
.pj-box {
  position: relative; max-width: 100%; height: min(780px, 100%);
  /* la colonne photo prend la largeur du format de la photo affichée (calculée par main.js) */
  display: grid; grid-template-columns: var(--mw, 720px) minmax(300px, 400px);
  transition: grid-template-columns .45s cubic-bezier(.3, .7, .2, 1);
  background: #fff; border: 2px solid var(--ink); overflow: hidden;
  animation: pj-in .35s cubic-bezier(.2, .8, .25, 1);
}
@keyframes pj-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.pj-close {
  position: absolute; top: 12px; right: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border: 1.5px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; transition: background-color .2s, border-color .2s;
}
.pj-close:hover { background: var(--dot-c); border-color: var(--dot-c); }

.pj-media { position: relative; min-height: 0; background: #1a1a1a; border-right: 2px solid var(--ink); touch-action: pan-y; }
.pj-stage { position: absolute; inset: 0; }
/* la photo est toujours entière : elle tient dans la zone sans être recadrée */
.pj-img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; transition: opacity .3s ease; }
.pj-img.is-loading { opacity: 0; }
.pj-img[hidden] { display: none; }
.pj-vid { background: #111; }
.pj-arrow {
  position: absolute; top: 50%; z-index: 2; width: 52px; height: 52px; margin-top: -26px; display: grid; place-items: center;
  border: 1.5px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; font: inherit; font-size: 20px; font-weight: 700;
  transition: background-color .2s, color .2s;
}
.pj-prev { left: 14px; }
.pj-next { right: 14px; }
.pj-arrow:hover { background: var(--dot-c); color: #fff; border-color: var(--dot-c); }
.pj-count {
  position: absolute; left: 14px; bottom: 14px; z-index: 2; margin: 0; padding: 7px 12px; background: #fff; border: 1.5px solid var(--ink);
  font-size: 12px; font-weight: 800; letter-spacing: .14em;
}
.pj-count b { color: var(--dot-c); }

.pj-info { display: flex; flex-direction: column; min-height: 0; padding: clamp(60px, 8vh, 72px) clamp(20px, 2.4vw, 36px) clamp(20px, 3vh, 30px); }
.pj-info-head { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.pj-info-head .pj-title { font-size: clamp(18px, 1.6vw, 24px); line-height: 1.12; }
.pj-desc { flex: 1; min-height: 0; overflow-y: auto; margin: 18px 0; padding-right: 6px; }
.pj-desc p { margin: 0 0 14px; font-size: clamp(14.5px, 1vw, 16px); line-height: 1.7; color: #333; }
.pj-desc p.pj-lead { margin: 4px 0 12px; font-size: clamp(16px, 1.2vw, 19px); font-weight: 800; line-height: 1.3; color: var(--ink); }
.pj-desc strong { font-weight: 700; color: var(--ink); }
.pj-desc p.pj-credit { margin-top: 18px; font-size: 12.5px; font-style: italic; color: #666; }
.pj-cta { align-self: flex-start; }
.pj-cta:hover { background: var(--ink); color: #fff; }
.pj-arrow:focus-visible, .pj-close:focus-visible { outline: 2px solid var(--dot-c); outline-offset: 3px; }

@media (max-width: 900px) {
  .sp-intro { grid-template-columns: 1fr; }
  .pj-grid, .others-grid { grid-template-columns: 1fr; }
  .pj-featured .pj-open { flex-direction: column; }
  .pj-featured .pj-photo { flex: none; aspect-ratio: 3 / 2; min-height: 0; border-right: 0; border-bottom: 2px solid var(--ink); }
  .pj-wall { columns: 2; }
  .sp-tube { width: 98vw; margin-left: calc(50% - 49vw); }
  /* modale : photo en haut, texte en dessous */
  .pj-modal { padding: 0; }
  .pj-box { width: 100%; height: 100%; border: 0; grid-template-columns: 1fr; grid-template-rows: minmax(0, 50vh) minmax(0, 1fr); transition: none; }
  .pj-media { border-right: 0; border-bottom: 2px solid var(--ink); }
  .pj-arrow { width: 44px; height: 44px; margin-top: -22px; }
  .pj-info { padding: 20px 18px; }
  .pj-close { top: 10px; right: 10px; }
}

/* --------------------------------------------------------------------------
   Pages légales : sections numérotées, lignes « intitulé / valeur » à traits,
   comme les coordonnées du contact.
   -------------------------------------------------------------------------- */
.lg-page .sec-head { margin-bottom: clamp(26px, 4vh, 48px); }
.lg-section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: clamp(16px, 3vw, 56px); padding: clamp(22px, 3.2vh, 34px) 0; border-top: 2px solid var(--ink); }
.lg-title { margin: 0; display: flex; align-items: baseline; gap: 12px; font-size: clamp(16px, 1.3vw, 20px); font-weight: 900; line-height: 1.2; letter-spacing: .02em; text-transform: uppercase; }
.lg-title span { font-family: "Gotcha Gothic", Impact, "Arial Narrow", sans-serif; font-weight: 400; font-size: 1.9em; line-height: .8; color: var(--dot-c); }
.lg-body { max-width: 760px; }
.lg-body p { margin: 0 0 12px; font-size: clamp(15px, 1.05vw, 16.5px); line-height: 1.7; color: #333; }
.lg-body a { text-decoration: underline; text-underline-offset: 3px; }
.lg-body a:hover { color: var(--dot-c); }
.lg-rows { margin: 0 0 6px; }
.lg-rows div { display: grid; grid-template-columns: minmax(150px, .7fr) minmax(0, 1.6fr); gap: 6px 20px; padding: 10px 0; border-bottom: 1px solid #d9d9d9; }
.lg-rows div:first-child { border-top: 1px solid #d9d9d9; }
.lg-rows dt { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); padding-top: 3px; }
.lg-rows dd { margin: 0; font-size: 15px; line-height: 1.6; color: #333; }
.lg-list { margin: 0; padding-left: 18px; }
.lg-list li { margin-bottom: 10px; font-size: clamp(15px, 1.05vw, 16.5px); line-height: 1.65; color: #333; }
.lg-list li::marker { color: var(--dot-c); }
.lg-todo { background: #fff3a8; padding: 0 4px; }
.lg-date { margin: 0; padding-top: 22px; border-top: 2px solid var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #777; }
@media (max-width: 900px) {
  .lg-section { grid-template-columns: 1fr; }
  .lg-rows div { grid-template-columns: 1fr; gap: 2px; }
}

/* --------------------------------------------------------------------------
   Adaptations tablette et mobile
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .studio-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
}

/* Mobile : même tableau, un peu plus serré */
@media (max-width: 900px) {
  .facts li { padding: 14px 10px 16px 0; }
  .facts li:nth-child(even) { padding-left: 12px; }
  .facts b { font-size: 14px; letter-spacing: .06em; }
  .facts span { font-size: 12.5px; }
}
