/* Feuille commune a toutes les pages du site. Modifier ici, c'est modifier partout. */
/* ==========================================================================
   MAQUETTE V3 — DISTRI-COM USA
   Un seul jeu de jetons, deux thèmes. Le sombre est la version par défaut.
   ========================================================================== */

:root {
  --bg:        #F5F1E7;   /* crème du portail client */
  --bg-2:      #FBF7EE;
  --panel:     #FFFFFF;
  --panel-2:   #F7F2E6;
  --ink:       #101828;
  --ink-2:     #3A4260;
  --muted:     #6B7183;
  --line:      rgba(22,32,74,.14);
  --line-2:    rgba(22,32,74,.07);
  --blue:      #0487C0;
  --blue-hi:   #06A0E3;
  --lime:      #C9BE12;
  --navy:      #16204A;
  --shadow:    0 2px 4px rgba(60,50,30,.05), 0 18px 48px rgba(60,50,30,.10);
  --shadow-lg: 0 40px 90px rgba(60,50,30,.18);
  --logo-l: block; --logo-d: none;
  --ph-a: rgba(22,32,74,.05); --ph-b: rgba(22,32,74,.10);
  --land: #E6DFCD; --land-line: rgba(22,32,74,.22);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --disp: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --r: 18px; --r-sm: 12px;
  --gut: clamp(20px, 5vw, 72px);
  --maxw: 1360px;
}

[data-theme="dark"] {
  --bg:        #0B0F16;
  --bg-2:      #0F141D;
  --panel:     #151B26;
  --panel-2:   #1B2230;
  --ink:       #F2F6FB;
  --ink-2:     #D3DBE6;
  --muted:     #8F9AAC;
  --line:      rgba(255,255,255,.11);
  --line-2:    rgba(255,255,255,.055);
  --blue:      #2AB5F0;
  --blue-hi:   #57C8F7;
  --lime:      #DDD323;
  --navy:      #F2F6FB;
  --shadow:    0 2px 4px rgba(0,0,0,.4), 0 18px 48px rgba(0,0,0,.42);
  --shadow-lg: 0 40px 100px rgba(0,0,0,.6);
  --logo-l: none; --logo-d: block;
  --ph-a: rgba(255,255,255,.04); --ph-b: rgba(255,255,255,.09);
  --land: #1D2735; --land-line: rgba(255,255,255,.22);
}

* { box-sizing: border-box; }
/* overflow-x: clip et non hidden : hidden sur html ou body ferait du document un conteneur
   de defilement a part, ce qui casse le rendu des sections et la position sticky de l'en-tete. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.62 var(--font); -webkit-font-smoothing: antialiased;
  transition: background .4s ease, color .4s ease;
}
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--blue); color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typographie ---------- */
.display { font: 800 italic clamp(42px, 6.6vw, 96px)/.92 var(--disp); text-transform: uppercase; letter-spacing: -.012em; margin: 0; }
.display em { font-style: inherit; color: var(--blue); }
.h2 { font: 700 italic clamp(30px, 4.2vw, 56px)/.95 var(--disp); text-transform: uppercase; letter-spacing: -.01em; margin: 0 0 12px; }
.h3 { font: 700 italic clamp(22px, 2.6vw, 32px)/1 var(--disp); text-transform: uppercase; margin: 0 0 10px; }
.h4 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 8px; }
.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); max-width: 60ch; margin: 0; }
.mini { font-size: 13px; color: var(--muted); }

.sec { padding: clamp(44px, 4.8vw, 76px) 0; position: relative; }
.sec-tag {
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--blue);
}
.sec-tag::before { content: attr(data-n); font: 700 italic 15px var(--disp); letter-spacing: 0; opacity: .5; }
.sec-tag::after { content: ''; flex: 1; max-width: 90px; height: 1px; background: var(--line); }
.sec-head { max-width: 800px; margin-bottom: clamp(22px, 2.2vw, 34px); }
.sec-head.row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s, transform .08s;
}
.btn:active { transform: translateY(1px); }
.btn.p { background: var(--blue); color: #001018; border-color: var(--blue); }
[data-theme="dark"] .btn.p { color: #04141D; }
:root:not([data-theme="dark"]) .btn.p { background: var(--blue); color: #fff; }
.btn.p:hover { background: var(--blue-hi); border-color: var(--blue-hi); }
.btn.g { border-color: var(--line); color: var(--ink); }
.btn.g:hover { border-color: var(--blue); color: var(--blue); }
.btn.w { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.45); color: #fff; backdrop-filter: blur(8px); }
.btn.w:hover { background: #fff; color: #101828; border-color: #fff; }
.btn.s { min-height: 42px; padding: 0 18px; font-size: 14px; }
.ar { transition: transform .2s; display: inline-block; }
.btn:hover .ar, .lnk:hover .ar { transform: translateX(4px); }
.lnk { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }

/* ---------- Bandeau de maquette ---------- */
.demo { background: var(--navy); color: var(--bg); font-size: 13px; padding: 9px var(--gut); display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; }
[data-theme="dark"] .demo { background: #1B2230; color: var(--ink); }
.demo b { font-weight: 700; }
.demo button { border: 1px solid currentColor; border-radius: 999px; padding: 4px 14px; font-size: 12px; font-weight: 600; opacity: .9; }
.demo button:hover { opacity: 1; background: currentColor; }
.demo button:hover span { color: var(--bg); }

/* ---------- Barre haute ---------- */
.strip { border-bottom: 1px solid var(--line-2); background: var(--bg-2); font-size: 12.5px; color: var(--muted); }
.strip-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 40px; }
.strip b { color: var(--ink); font-weight: 600; }
.dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); margin: 0 9px 2px; }
.pill { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: var(--blue); color: #fff; padding: 3px 9px; border-radius: 999px; margin-right: 10px; }
.strip a { color: var(--blue); font-weight: 600; }
.strip a:hover { text-decoration: underline; }

/* ---------- Navigation ---------- */
.top { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.top.on { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 16px; height: 74px; }
.brand { margin-right: auto; display: flex; align-items: center; flex: none; }
.brand img { height: clamp(34px, 2.7vw, 42px); width: auto; flex: none; object-fit: contain; }
.brand .l { display: var(--logo-l); } .brand .d { display: var(--logo-d); }

.nav { display: flex; align-items: center; gap: clamp(13px, 1.4vw, 24px); flex: none; }
.nav > a { font-size: clamp(11.5px, .9vw, 13px); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); padding: 8px 0; position: relative; white-space: nowrap; }
.nav > a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 2px; height: 1.5px; background: var(--blue); transition: right .24s; }
.nav > a:hover { color: var(--ink); } .nav > a:hover::after { right: 0; }

.tools { display: flex; align-items: center; gap: 8px; flex: none; }
.ico { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: border-color .2s, color .2s; position: relative; }
.ico:hover { border-color: var(--blue); color: var(--blue); }
.ico svg { width: 19px; height: 19px; }
[data-theme="dark"] .i-moon, :root:not([data-theme="dark"]) .i-sun { display: none; }
.badge { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; border-radius: 999px; background: var(--blue); color: #04141D; font-size: 11px; font-weight: 700; display: none; align-items: center; justify-content: center; padding: 0 5px; }
:root:not([data-theme="dark"]) .badge { color: #fff; }
.badge.show { display: flex; }

/* Sélecteur de langue déroulant */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .05em; transition: border-color .2s; }
.lang-btn:hover { border-color: var(--blue); }
.lang-btn .chev { width: 12px; height: 12px; transition: transform .2s; }
.lang[data-open="1"] .chev { transform: rotate(180deg); }
.lang-menu { position: absolute; top: calc(100% + 10px); right: 0; min-width: 190px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 7px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 5; }
.lang[data-open="1"] .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a { display: flex; color: inherit; text-decoration: none; align-items: center; gap: 11px; width: 100%; padding: 10px 12px; border-radius: 9px; font-size: 14px; text-align: left; transition: background .15s; }
.lang-menu a:hover { background: var(--panel-2); }
.lang-menu a[aria-current="true"] { color: var(--blue); font-weight: 600; }
.lang-menu .code { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--muted); margin-left: auto; }
.burger { display: none; }

/* ---------- Héros ---------- */
.hero { position: relative; min-height: min(80vh, 780px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: fade 18s infinite; }
.hero-bg img:nth-child(1) { animation-delay: 0s; }
.hero-bg img:nth-child(2) { animation-delay: 6s; }
.hero-bg img:nth-child(3) { animation-delay: 12s; }
@keyframes fade { 0%,3% { opacity: 0; } 8%,30% { opacity: 1; } 36%,100% { opacity: 0; } }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(6,9,14,.82) 0%, rgba(6,9,14,.6) 48%, rgba(6,9,14,.2) 100%), linear-gradient(to top, rgba(6,9,14,.9), transparent 52%); }
/* Le raccourci padding remettait les marges laterales de .wrap a zero : on les redonne. */
.hero-in { position: relative; z-index: 2; width: 100%; padding: clamp(80px,11vw,130px) var(--gut) clamp(26px,3vw,40px); }
/* 23ch : de quoi loger le curseur et les trois points au bout de la derniere ligne. */
.hero .display { color: #fff; max-width: 23ch; }
.hero .display .type-caret { white-space: nowrap; }
.hero .display em { color: var(--lime); }
.hero-ey { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(8px); padding: 8px 16px; border-radius: 999px; margin-bottom: 26px; }
.hero-ey i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.hero-lead { color: rgba(255,255,255,.88); font-size: clamp(16px,1.6vw,19px); max-width: 54ch; margin: 20px 0 26px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.kpis { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(5,1fr); border-top: 1px solid rgba(255,255,255,.2); margin-top: clamp(30px,4vw,52px); }
.kpi { padding: 20px 0 2px; }
.kpi b { display: block; font: 700 italic clamp(32px,3.8vw,50px)/1 var(--disp); color: #fff; }
.kpi span { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }

/* ---------- Bandeau défilant ---------- */
.marq { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 16px 0; }
.marq-in { display: flex; gap: 60px; width: max-content; animation: slide 42s linear infinite; }
.marq:hover .marq-in { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marq span { font: 700 italic clamp(18px,2.2vw,28px)/1 var(--disp); text-transform: uppercase; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 60px; }
.marq span::after { content: '·'; color: var(--blue); }

/* ---------- Trois portes d'entrée ---------- */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.door { position: relative; border-radius: var(--r); overflow: hidden; min-height: 360px; display: flex; align-items: flex-end; text-align: left; border: 1px solid var(--line); background: var(--panel); transition: transform .3s, box-shadow .3s; width: 100%; }
.door:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.door-bg { position: absolute; inset: 0; }
.door-bg img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.3,1); }
.door:hover .door-bg img { transform: scale(1.06); }
.door-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,9,14,.94) 6%, rgba(6,9,14,.5) 46%, rgba(6,9,14,.12) 100%); }
.door-in { position: relative; z-index: 2; padding: 26px; color: #fff; width: 100%; }
.door-n { font: 700 italic 13px var(--disp); letter-spacing: .1em; color: var(--lime); display: block; margin-bottom: 10px; }
.door h3 { color: #fff; margin-bottom: 10px; }
.door p { color: rgba(255,255,255,.78); font-size: 14.5px; margin: 0 0 18px; }
.door .lnk { color: #fff; }

/* ---------- Cartes inversées (fond = couleur d’encre du thème) ---------- */
.t3, .ent.me, .shop-calc {
  --acc: var(--lime); --acc-on: #101828;
  --inv-line: color-mix(in srgb, var(--bg) 20%, transparent);
  --inv-soft: color-mix(in srgb, var(--bg) 68%, transparent);
}
[data-theme="dark"] .t3, [data-theme="dark"] .ent.me, [data-theme="dark"] .shop-calc {
  --acc: #0487C0; --acc-on: #FFFFFF;
}

/* ---------- T3 USA ---------- */
.t3 { background: var(--ink); color: var(--bg); border-radius: var(--r); overflow: hidden; display: grid; grid-template-columns: 1.05fr 1fr; }
.t3-media { position: relative; min-height: 380px; overflow: hidden; }
.t3-slides { position: absolute; inset: 0; }
.t3-slides > * { position: absolute; inset: 0; opacity: 0; transition: opacity 2.2s cubic-bezier(.4,0,.2,1); overflow: hidden; }
.t3-slides > *.on { opacity: 1; }
.t3-slides img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); transition: transform 11s linear; }
.t3-slides > .on img { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .t3-slides > *, .t3-slides img { transition: none; } .t3-slides > .on img { transform: none; } }
.t3-quote { position: absolute; right: 34px; bottom: 54px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; background: var(--acc); color: var(--acc-on); font-size: 12.5px; font-weight: 700; padding: 9px 16px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.28); }
.t3-quote:hover { filter: brightness(1.08); }
.t3-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 40px; height: 40px; border-radius: 50%; background: rgba(8,11,18,.5); border: 1px solid rgba(255,255,255,.3); color: #fff; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px); transition: background .2s; }
.t3-arrow:hover { background: var(--acc); border-color: var(--acc); color: var(--acc-on); }
.t3-arrow svg { width: 17px; height: 17px; }
.t3-arrow.prev { left: 14px; } .t3-arrow.next { left: 62px; }
.t3-dots { position: absolute; left: 18px; bottom: 18px; z-index: 3; display: flex; gap: 7px; }
.t3-dots button { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.4); transition: background .2s, width .2s; }
.t3-dots button[aria-current="true"] { background: #fff; width: 22px; border-radius: 4px; }
.t3-in { padding: clamp(28px,3.4vw,56px); }
.t3-in .sec-tag { color: var(--acc); }
.t3-news { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; background: color-mix(in srgb, var(--bg) 10%, transparent); border: 1px solid var(--inv-line); border-radius: 999px; padding: 7px 8px 7px 16px; margin-bottom: 18px; font-size: 13px; }
.t3-news b { font-weight: 600; }
.t3-news em { font-style: normal; background: var(--acc); color: var(--acc-on); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.t3-in .sec-tag::after { background: var(--inv-line); }
.t3-in h2 { color: var(--bg); }
.t3-in .lead { color: var(--inv-soft); }
.t3-pts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--inv-line); border: 1px solid var(--inv-line); border-radius: 12px; overflow: hidden; margin: 24px 0; }
.t3-pts > div { background: var(--ink); padding: 16px 20px; }
.t3-pts b { display: block; font: 700 italic 24px/1 var(--disp); color: var(--acc); margin-bottom: 3px; }
.t3-pts span { font-size: 13px; color: var(--inv-soft); }
.t3-parts { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.t3-parts img { width: 56px; height: 56px; border-radius: 10px; background: #fff; object-fit: contain; padding: 5px; }
.t3-parts span { display: flex; align-items: center; font-size: 12.5px; color: var(--inv-soft); padding-left: 6px; max-width: 16ch; line-height: 1.35; }
.t3-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.t3-in .btn.p { background: var(--acc); border-color: var(--acc); color: var(--acc-on); }
.t3-in .btn.p:hover { background: #fff; border-color: #fff; }
.t3-in .btn.g { border-color: var(--inv-line); color: var(--bg); }
.t3-in .btn.g:hover { border-color: var(--acc); color: var(--acc); }

/* ---------- Les applications du système ---------- */
.t3-sol { margin-top: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.t3-sol-h { padding: clamp(22px,2.4vw,30px) clamp(22px,2.4vw,30px) 0; display: flex; align-items: baseline; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.t3-sol-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px,1fr)); gap: 1px; background: var(--line-2); margin: clamp(18px,2vw,24px) 0 0; border-top: 1px solid var(--line-2); }
.t3-sol-c { background: var(--panel); padding: 20px 22px 22px; }
.t3-sol-c b { display: block; font: 700 italic 15px var(--disp); color: var(--blue); letter-spacing: .06em; margin-bottom: 8px; }
.t3-sol-c h4 { font-size: 15.5px; font-weight: 600; margin: 0 0 5px; }
.t3-sol-c p { font-size: 13px; color: var(--muted); margin: 0; }
.t3-refs { display: flex; align-items: center; gap: 14px 26px; flex-wrap: wrap; padding: 18px clamp(22px,2.4vw,30px); border-top: 1px solid var(--line-2); }
.t3-refs span { font: 700 italic 17px/1 var(--disp); text-transform: uppercase; color: var(--muted); opacity: .8; }
.t3-refs .t3-refs-t { font: 500 11px/1 var(--font) !important; letter-spacing: .16em; text-transform: uppercase; color: var(--blue) !important; opacity: 1; }

/* ---------- Filiation T3 : UK, Europe, USA ---------- */
.lineage { margin-top: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
/* quatre colonnes : pastille, texte, portrait de l’inventeur, logo T3 USA */
.lineage-h { padding: clamp(20px,2.2vw,28px); border-bottom: 1px solid var(--line-2); display: grid; grid-template-columns: auto 1fr auto auto; gap: clamp(16px,2vw,30px); align-items: center; }
.t3-usa-logo { flex: none; align-self: center; }
.t3-usa-logo img { height: clamp(66px, 6.8vw, 95px); width: auto; display: block; }
.lineage-h .bulb { width: 54px; height: 54px; border-radius: 50%; background: var(--panel-2); color: var(--blue); display: flex; align-items: center; justify-content: center; flex: none; }
.lineage-h .bulb svg { width: 24px; height: 24px; }
.lineage-h p { margin: 0; font-size: 15px; color: var(--muted); max-width: 88ch; }
.lineage-h b { color: var(--ink); font-weight: 600; }
.chain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-2); }
.link { background: var(--panel); padding: clamp(22px,2.4vw,30px); position: relative; }
.link.now { background: var(--panel-2); }
.link-k { display: flex; align-items: center; gap: 9px; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.link.now .link-k { color: var(--blue); }
.link-k i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.link h4 { font: 700 italic 24px/1 var(--disp); text-transform: uppercase; margin: 0 0 4px; }
.link .lieu { font-size: 12.5px; color: var(--blue); font-weight: 600; margin-bottom: 10px; display: block; }
.link p { font-size: 13.5px; color: var(--muted); margin: 0; }
.link .creator { display: inline-flex; align-items: baseline; gap: 6px; font-size: 12.5px; margin: 0 0 10px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; }
.link .creator b { color: var(--ink); font-weight: 600; }
.lineage-f { padding: 18px clamp(24px,2.6vw,36px); border-top: 1px solid var(--line-2); display: flex; gap: 22px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.lineage-f b { color: var(--ink); font-weight: 600; }

/* ---------- Les deux cartes ---------- */
.atlas { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(16px,2vw,24px) clamp(18px,2.2vw,28px) clamp(14px,1.6vw,20px); margin-bottom: 16px; }
.atlas-h { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line-2); }
.atlas-h h3 { font: 700 italic 21px/1 var(--disp); text-transform: uppercase; margin: 0; letter-spacing: .02em; }
.atlas-h .dotc { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.atlas-h .atlas-d { margin-left: auto; font: 700 italic 24px/1 var(--disp); color: var(--blue); }
.atlas-svg { width: 100%; max-width: 940px; height: auto; display: block; margin: 0 auto; overflow: hidden; }
.atlas-svg .land { fill: color-mix(in srgb, var(--ink) 9%, var(--panel)); stroke: none; }
.atlas-svg .bd { fill: none; stroke-width: 1.8; stroke-linejoin: round; opacity: .9; }
.atlas-svg .leader { stroke-width: 1.2; opacity: .6; }
.atlas-svg .ctry { font: 700 italic 28px var(--disp); text-transform: uppercase; letter-spacing: .05em; opacity: .95;
  paint-order: stroke fill; stroke: var(--panel); stroke-width: 7px; stroke-linejoin: round; }
.atlas-svg .ctry.petit { font-size: 18px; stroke-width: 5px; }
.atlas-svg .route { fill: none; stroke-width: 1.7; stroke-dasharray: 5 6; opacity: .5; animation: dash 22s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -220; } }
.atlas-svg .cty { font: 600 15px var(--font); fill: var(--ink); paint-order: stroke fill; stroke: var(--panel); stroke-width: 4px; stroke-linejoin: round; }
.atlas-svg .hub-dot { fill: var(--lime); }
.atlas-svg .halo { fill: var(--lime); opacity: .2; animation: halo 3s ease-out infinite; }
@keyframes halo { 0% { r: 8; opacity: .4; } 100% { r: 32; opacity: 0; } }
.atlas-svg .hub { font: 700 16px var(--font); fill: var(--ink); letter-spacing: .04em; paint-order: stroke fill; stroke: var(--panel); stroke-width: 5px; }
.atlas-svg .hub-s { font: 500 12.5px var(--font); fill: var(--muted); paint-order: stroke fill; stroke: var(--panel); stroke-width: 4px; }
.r-ca{stroke:#E0685C}.p-ca{fill:#E0685C}.b-ca{stroke:#E0685C}
.r-us{stroke:#2AB5F0}.p-us{fill:#2AB5F0}.b-us{stroke:#2AB5F0}
.r-mx{stroke:#3FBF87}.p-mx{fill:#3FBF87}.b-mx{stroke:#3FBF87}
.r-gb{stroke:#E0685C}.p-gb{fill:#E0685C}
.r-ie{stroke:#3FBF87}.p-ie{fill:#3FBF87}
.r-bx{stroke:#F09A5A}.p-bx{fill:#F09A5A}
.r-de{stroke:#9B8CF0}.p-de{fill:#9B8CF0}
.r-ch{stroke:#E05C8A}.p-ch{fill:#E05C8A}
.r-fr{stroke:#2AB5F0}.p-fr{fill:#2AB5F0}
.r-it{stroke:#5AD1C4}.p-it{fill:#5AD1C4}
.r-es{stroke:#E8B23F}.p-es{fill:#E8B23F}
.r-pt{stroke:#C98A3A}.p-pt{fill:#C98A3A}

.map-legend { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--muted); }
.map-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.map-legend .i-mesh { background: transparent; box-shadow: 0 0 0 1px var(--muted) inset; position: relative; }
.map-legend .i-mesh::after { content: ''; position: absolute; inset: 2.5px; border-radius: 50%; background: var(--muted); }

.ship-cards { display: grid; grid-template-columns: 1fr 1fr 1.08fr; gap: 16px; margin-top: 16px; align-items: stretch; }
.zone { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; }
.zone h4 { display: flex; align-items: center; gap: 10px; }
.zone h4 i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.zone.eu h4 i { background: var(--blue); }
.zone.intl { padding: 0; overflow: hidden; }
.zone.intl img { width: 100%; aspect-ratio: 16/9; height: auto; object-fit: cover; object-position: center 58%; }
.zone.intl .intl-in { padding: 20px 24px 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 0; flex: 1; align-content: flex-start; }
.chips span { font-size: 12.5px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.delay { display: flex; align-items: baseline; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.delay b { font: 700 italic 28px/1 var(--disp); color: var(--blue); }
.delay span { font-size: 13px; color: var(--muted); }

.carriers { display: flex; align-items: center; justify-content: center; gap: clamp(22px,3vw,48px); flex-wrap: wrap; background: #fff; border-radius: var(--r); padding: 20px 26px; margin-top: 16px; }
.carriers-t { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #6B7183; }
.carriers img { height: 34px; width: auto; display: block; }

.map-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 26px; margin-top: 16px; }
.map-facts div { display: flex; flex-direction: column; gap: 3px; }
.map-facts b { font-size: 13.5px; font-weight: 600; }
.map-facts span { font-size: 12.5px; color: var(--muted); }

/* ---------- Carrousel ---------- */
.car { position: relative; }
.car-track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; scroll-behavior: smooth; }
.car-track::-webkit-scrollbar { display: none; }
.car-item { flex: 0 0 clamp(270px, 30vw, 420px); scroll-snap-align: start; }
.car-nav { display: flex; gap: 10px; }
.car-nav button { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: border-color .2s, color .2s, opacity .2s; }
.car-nav button:hover { border-color: var(--blue); color: var(--blue); }
.car-nav button[disabled] { opacity: .32; cursor: default; }
.car-nav svg { width: 18px; height: 18px; }
.bar { height: 2px; background: var(--line); margin-top: 26px; border-radius: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--blue); border-radius: 2px; transition: width .2s, margin-left .2s; }

/* Vignette de réalisation */
.work { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 1/1; border: 1px solid var(--line); background: var(--panel-2); width: 100%; text-align: left; display: block; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.3,1); }
.work:hover img { transform: scale(1.07); }
.work::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,9,14,.9) 2%, rgba(6,9,14,.2) 44%, transparent 68%); }
.work-cap { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 24px; color: #fff; }
.work-cap h4 { font: 700 italic 22px/1.02 var(--disp); text-transform: uppercase; margin: 0 0 5px; }
.work-cap span { font-size: 13px; color: rgba(255,255,255,.76); }
.work-tag { position: absolute; top: 16px; left: 16px; z-index: 2; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: rgba(6,9,14,.66); backdrop-filter: blur(8px); color: #fff; padding: 6px 11px; border-radius: 999px; }

/* Emplacement photo à venir */
.ph { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background:
  repeating-linear-gradient(-45deg, var(--ph-a) 0 12px, transparent 12px 24px), var(--panel);
  border: 1px dashed var(--line); color: var(--muted); text-align: center; padding: 24px; }
.ph svg { width: 34px; height: 34px; opacity: .45; }
.ph b { font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.ph span { font-size: 12px; opacity: .8; max-width: 24ch; }

/* ---------- Boutique ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.tabs button { padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--muted); transition: all .18s; }
.tabs button:hover { border-color: var(--blue); color: var(--blue); }
.tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px,1fr)); gap: 18px; }
.art { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s, transform .2s; }
.art:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-3px); }
.art-img { aspect-ratio: 1; background: #fff; position: relative; overflow: hidden; }
[data-theme="dark"] .art-img { background: #F4F6F9; }
.art-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform .5s; }
.art-img img.cover { object-fit: cover; padding: 0; }
.art:hover .art-img img { transform: scale(1.05); }
.art-ref { position: absolute; top: 10px; left: 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; background: rgba(16,24,40,.08); color: #101828; padding: 5px 9px; border-radius: 6px; }
.art-b { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; gap: 4px; }
.art-b h4 { font-size: 15.5px; font-weight: 600; margin: 0; }
.art-b .d { font-size: 13px; color: var(--muted); flex: 1; margin: 2px 0 12px; }
.price { display: flex; align-items: baseline; gap: 7px; margin-bottom: 14px; }
.price b { font: 700 italic 30px/1 var(--disp); color: var(--ink); }
.price span { font-size: 12px; color: var(--muted); }
.buy { display: flex; gap: 8px; align-items: center; }
.step { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.step button { width: 36px; height: 40px; font-size: 17px; line-height: 1; color: var(--ink); opacity: .6; transition: background .15s, opacity .15s; }
.step button:hover { opacity: 1; }
.step button:hover { background: var(--panel-2); color: var(--ink); }
.step input { width: 40px; height: 40px; border: 0; background: none; color: var(--ink); text-align: center; font-size: 15px; font-weight: 700; -moz-appearance: textfield; }
.step input::-webkit-outer-spin-button, .step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.add { flex: 1; min-height: 40px; border-radius: 999px; background: var(--blue); color: #04141D; font-size: 13.5px; font-weight: 700; transition: background .18s; }
:root:not([data-theme="dark"]) .add { color: #fff; }
.add:hover { background: var(--blue-hi); }
.add.done { background: var(--lime); color: #101828; }

.resell { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: space-between; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 24px; margin-top: 20px; }
.resell p { margin: 0; font-size: 14.5px; }
.resell b { font-weight: 600; }

/* ---------- Calculateurs ---------- */
.calcs { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px,1fr)); gap: 18px; }
.calc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; position: relative; overflow: hidden; }
.calc.live { border-color: var(--blue); }
.calc-st { position: absolute; top: 18px; right: 18px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); }
.calc.live .calc-st { background: var(--blue); color: #04141D; border-color: var(--blue); }
:root:not([data-theme="dark"]) .calc.live .calc-st { color: #fff; }
.calc-ic { width: 48px; height: 48px; border-radius: 13px; background: var(--panel-2); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--blue); }
.calc-ic svg { width: 24px; height: 24px; }
.calc p { font-size: 14px; color: var(--muted); margin: 0 0 18px; }

/* ---------- Téléchargements ---------- */
.dl-sep { display: flex; align-items: center; gap: 18px; margin: clamp(30px,3.4vw,48px) 0 16px; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.dl-sep::before, .dl-sep::after { content: ''; height: 1px; background: var(--line); flex: 1; }
/* titre centré entre deux filets, en bleu */
.dl-t3 .dl-ic { background: color-mix(in srgb, var(--blue) 14%, transparent); }
.dls { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 16px; }
.dl { display: flex; gap: 16px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 20px; transition: border-color .2s, transform .2s; }
.dl:hover { border-color: var(--blue); transform: translateY(-2px); }
.dl.soon { opacity: .6; }
.dl-ic { flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--panel-2); display: flex; align-items: center; justify-content: center; color: var(--blue); }
.dl-ic svg { width: 21px; height: 21px; }
.dl h4 { font-size: 15px; margin: 0 0 3px; }
.dl span { font-size: 12.5px; color: var(--muted); }

/* ---------- Atelier ---------- */
.split { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(30px,5vw,80px); align-items: center; }
.split-m { border-radius: var(--r); overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--line); }
.split-m img { width: 100%; height: 100%; object-fit: cover; }
.specs { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid var(--line); }
.specs li { display: flex; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; align-items: baseline; }
.specs li b { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); min-width: 106px; }
.specs li span { color: var(--ink-2); }
.steps { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: clamp(26px,3vw,40px); }
.stp { background: var(--bg); padding: 22px 22px 26px; }
.stp b { font: 700 italic 32px/1 var(--disp); color: var(--blue); display: block; margin-bottom: 14px; }
.stp h4 { margin-bottom: 6px; font-size: 16px; }
.stp p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Contact ---------- */
.ct { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px,5vw,80px); }
.fld { margin-bottom: 16px; }
.fld label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--ink-2); }
.fld input, .fld select, .fld textarea { width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font: 400 15px var(--font); color: var(--ink); transition: border-color .18s, box-shadow .18s; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 20%, transparent); }
.fld textarea { resize: vertical; min-height: 128px; }

/* Devis par metier : des puces a cocher plutot que des listes, plus rapide au doigt */
fieldset.fld { border: 0; padding: 0; min-width: 0; }
fieldset.fld legend { font-size: 13px; font-weight: 600; margin-bottom: 9px; color: var(--ink-2); padding: 0; }
fieldset.fld > div { display: flex; flex-wrap: wrap; gap: 8px; }
.fld .puce { display: inline-flex; margin: 0; cursor: pointer; }
.fld .puce input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fld .puce span { display: inline-block; padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-size: 14px; font-weight: 500; color: var(--ink); transition: border-color .15s, background .15s, color .15s; }
.fld .puce:hover span { border-color: var(--blue); }
.fld .puce input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.fld .puce input:focus-visible + span { outline: 2px solid var(--blue-hi); outline-offset: 2px; }
.rubriques legend { font-size: 15px; }
.rub-champs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; padding: 18px 18px 2px; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--blue) 5%, transparent); }
.rub-champs[hidden] { display: none; }
.rub-champs fieldset.fld { grid-column: 1 / -1; }
.devis-err { color: #E5484D; font-size: 14px; font-weight: 600; margin: 0 0 12px; }
.devis-ok { padding: 28px; border: 1px solid var(--blue); border-radius: 16px; }
.devis-ok p { margin: 8px 0 0; color: var(--ink-2); }
@media (max-width: 640px) { .rub-champs { grid-template-columns: 1fr; } }
.r2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.infos { list-style: none; padding: 0; margin: 0; }
.infos li { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.infos b { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 7px; }
.infos a, .infos span { font-size: 17px; }
.infos a:hover { color: var(--blue); }

/* ---------- Pied de page ---------- */
footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: clamp(40px,4vw,58px) 0 26px; }
.fgrid { display: grid; grid-template-columns: 1.6fr repeat(3,1fr); gap: 32px; margin-bottom: 32px; }
.fgrid img { height: 46px; width: auto; max-width: none; object-fit: contain; margin-bottom: 20px; }
.fgrid .l { display: var(--logo-l); } .fgrid .d { display: var(--logo-d); }
.fgrid p { font-size: 14px; color: var(--muted); margin: 0; max-width: 34ch; }
.fcol h5 { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin: 0 0 16px; }
.fcol a { display: block; font-size: 14px; color: var(--muted); padding: 6px 0; }
.fcol a:hover { color: var(--ink); }
.fbot { border-top: 1px solid var(--line-2); padding-top: 26px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }

/* ---------- Fiche produit (panneau) ---------- */
.scrim { position: fixed; inset: 0; background: rgba(6,9,14,.66); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; z-index: 90; }
.scrim.on { opacity: 1; visibility: visible; }
.sheet { position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 100%); background: var(--bg); z-index: 95; transform: translateX(100%); transition: transform .38s cubic-bezier(.3,.8,.3,1); overflow-y: auto; box-shadow: var(--shadow-lg); }
.sheet.on { transform: none; }
.sheet-x { position: sticky; top: 0; z-index: 3; display: flex; justify-content: flex-end; padding: 16px; background: linear-gradient(to bottom, var(--bg) 62%, transparent); }
.sheet-x button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); display: inline-flex; align-items: center; justify-content: center; }
.sheet-x button:hover { border-color: var(--blue); color: var(--blue); }
.sheet-in { padding: 0 clamp(22px,4vw,52px) 60px; margin-top: -60px; }
.sheet-hero { border-radius: var(--r); overflow: hidden; aspect-ratio: 16/10; margin-bottom: 26px; background: var(--panel-2); }
.sheet-hero img { width: 100%; height: 100%; object-fit: cover; }
.sheet-thumbs { display: flex; gap: 10px; margin-bottom: 28px; overflow-x: auto; scrollbar-width: none; }
.sheet-thumbs::-webkit-scrollbar { display: none; }
.sheet-thumbs button { flex: 0 0 96px; height: 70px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; opacity: .55; transition: opacity .2s, border-color .2s; }
.sheet-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--blue); }
.sheet-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.sheet h2 { margin-bottom: 14px; }
.sheet .lead { margin-bottom: 26px; }
.sheet-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); }
.uses { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.uses li { font-size: 13px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }

/* ---------- Panier ---------- */
.cart { position: fixed; top: 0; right: 0; bottom: 0; width: min(430px,100%); background: var(--bg); z-index: 95; transform: translateX(100%); transition: transform .38s cubic-bezier(.3,.8,.3,1); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.cart.on { transform: none; }
.cart-h { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.cart-h h3 { margin: 0; }
.cart-l { flex: 1; overflow-y: auto; padding: 8px 24px; }
.line { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line-2); align-items: center; }
.line img { width: 58px; height: 58px; object-fit: contain; background: #F4F6F9; border-radius: 9px; padding: 5px; flex: none; }
.line .n { flex: 1; font-size: 14px; font-weight: 500; }
.line .n small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.line .p { font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.line .x { color: var(--muted); font-size: 18px; line-height: 1; padding: 4px; }
.line .x:hover { color: var(--blue); }
.cart-f { border-top: 1px solid var(--line); padding: 22px 24px calc(22px + env(safe-area-inset-bottom)); }
.tot { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.tot b { font: 700 italic 34px/1 var(--disp); }
.empty { text-align: center; color: var(--muted); padding: 60px 20px; font-size: 14.5px; }

/* ---------- Titre qui se tape a la machine ---------- */
.type-caret { display: inline-block; width: .42ch; background: var(--lime); margin-left: .4ch; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Le groupe ---------- */
.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 18px; }
.fig { background: var(--bg); padding: 20px 20px 22px; }
.fig b { display: block; font: 700 italic clamp(28px,3vw,40px)/1 var(--disp); color: var(--blue); margin-bottom: 4px; }
.fig span { font-size: 12.5px; color: var(--muted); }
.ents { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 16px; }
.ent { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.ent:hover { border-color: var(--blue); transform: translateY(-3px); }
.ent.me { background: var(--ink); border-color: var(--ink); }
.ent.me h4, .ent.me p { color: var(--bg); }
.ent.me .ent-k { color: var(--acc); }
.ent-k { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.ent h4 { font: 700 italic 21px/1 var(--disp); text-transform: uppercase; margin: 0 0 8px; }
.ent p { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; flex: 1; }
.ent a.lnk { font-size: 12px; }

/* ---------- Le fondateur ---------- */
.founder { display: grid; grid-template-columns: 270px 1fr; gap: clamp(24px,3vw,46px); align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px,2.4vw,34px); margin-bottom: 18px; }
.founder-p { aspect-ratio: 4/5; border-radius: var(--r-sm); overflow: hidden; background: var(--panel-2); }
.founder-p img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.founder-p .ph { height: 100%; border: 0; }
.founder blockquote { margin: 0 0 18px; font: 700 italic clamp(20px,2.2vw,28px)/1.12 var(--disp); text-transform: uppercase; letter-spacing: -.005em; }
.founder blockquote span { color: var(--blue); }
.founder p { font-size: 14.5px; color: var(--muted); margin: 0 0 14px; max-width: 70ch; }
.founder .who { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line-2); }
.founder .who b { font-size: 15px; font-weight: 600; }
.founder .who span { font-size: 12.5px; color: var(--muted); }
.trades { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 18px; padding: 0; list-style: none; }
.trades li { font-size: 12.5px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }

/* ---------- Portrait dans le bandeau du brevet ---------- */
.ln-portrait { margin: 0; display: flex; align-items: center; gap: 14px; flex: none; }
.ln-portrait img { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; object-position: center 22%; border: 1px solid var(--line); }
.ln-portrait figcaption { display: flex; flex-direction: column; line-height: 1.3; }
.ln-portrait b { font-size: 14px; font-weight: 600; white-space: nowrap; }
.ln-portrait span { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ---------- L’équipe du groupe ---------- */
.team { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 18px; }
.team-h { padding: clamp(22px,2.4vw,30px) clamp(22px,2.4vw,30px) 0; display: flex; align-items: baseline; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.team-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 1px; background: var(--line-2); margin-top: clamp(18px,2vw,24px); border-top: 1px solid var(--line-2); }
.tm { margin: 0; background: var(--panel); padding: 24px; display: flex; align-items: center; gap: 16px; }
.tm img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; object-position: center 20%; flex: none; border: 1px solid var(--line); }
.tm figcaption { display: flex; flex-direction: column; gap: 2px; }
.tm b { font-size: 16px; font-weight: 600; }
.tm span { font-size: 13px; color: var(--blue); font-weight: 500; }
.tm em { font-style: normal; font-size: 12.5px; color: var(--muted); }

/* ---------- Recrutement ---------- */
.jobs { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(22px,2.6vw,40px); align-items: center; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px,2.4vw,34px); margin-top: 18px; }
.jobs ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 8px; }
.jobs li { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 10px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.jobs li i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); flex: none; }

/* ---------- Encart calculateur dans la boutique ---------- */
.shop-calc { grid-column: 1 / -1; display: flex; gap: clamp(20px,3vw,40px); align-items: center; flex-wrap: wrap; background: var(--ink); color: var(--bg); border-radius: var(--r); padding: clamp(24px,3vw,40px); }
.shop-calc > div { flex: 1; min-width: 260px; }
.shop-calc .ent-k { color: var(--acc); }
.shop-calc h3 { font: 700 italic clamp(24px,2.6vw,34px)/1 var(--disp); text-transform: uppercase; margin: 0 0 10px; }
.shop-calc p { margin: 0; font-size: 14.5px; opacity: .8; max-width: 52ch; }
.shop-calc .btn.p { background: var(--acc); border-color: var(--acc); color: var(--acc-on); }
.shop-calc .btn.p:hover { background: #fff; border-color: #fff; }

/* ---------- Contact rapide : WhatsApp flottant ---------- */
.wa { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 70; display: flex; align-items: center; gap: 11px; height: 56px; padding: 0 22px 0 18px; border-radius: 999px; background: #25D366; color: #06251A; font-weight: 700; font-size: 15px; box-shadow: 0 10px 30px rgba(0,0,0,.3), 0 2px 6px rgba(0,0,0,.2); opacity: 0; transform: translateY(14px) scale(.96); pointer-events: none; transition: opacity .3s, transform .3s, background .2s; }
.wa.on { opacity: 1; transform: none; pointer-events: auto; }
.wa:hover { background: #1FBE5A; }
.wa svg { width: 25px; height: 25px; fill: currentColor; flex: none; }
.wa span { white-space: nowrap; }
@media (max-width: 560px) {
  .wa { height: 52px; padding: 0 16px; }
  .wa span { display: none; }
}

/* ---------- Apparition ---------- */
.rv { opacity: 1; transform: none; }
/* L'apparition au defilement n'est appliquee que si le script a pu l'armer :
   sans cette garde, un observateur qui ne se declenche pas rend le bloc invisible. */
html.anim .rv { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1); }
html.anim .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; }
  .hero-bg img:first-child { opacity: 1; }
}

/* ---------- Adaptatif ---------- */
@media (max-width: 1240px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .split, .ct, .jobs, .t3, .founder { grid-template-columns: 1fr; }
  .chain { grid-template-columns: 1fr; }
  .lineage-h { grid-template-columns: auto 1fr; }
  .ln-portrait { grid-column: 1 / -1; }
  .t3-usa-logo { grid-column: 1 / -1; justify-self: start; }
  .t3-media { min-height: 250px; }
  .ship-cards { grid-template-columns: 1fr; }
  .lineage-h { grid-template-columns: auto 1fr; }
  .ln-portrait { grid-column: 1 / -1; }
  .t3-usa-logo { grid-column: 1 / -1; justify-self: start; }
  .founder-p { max-width: 260px; }
  .chain { grid-template-columns: 1fr; }
  .lineage-h { grid-template-columns: 1fr; }
  .t3-media { min-height: 250px; }
  .doors { grid-template-columns: 1fr; }
  .door { min-height: 420px; }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .strip-in .hide-sm { display: none; }
}
@media (max-width: 640px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi:last-child { grid-column: 1 / -1; }
  .r2 { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: 1fr; gap: 34px; }
  .top-in { height: 68px; gap: 10px; }
  .brand img { height: 32px; }
  .strip { display: none; }
  .hero-cta .btn { flex: 1; }
  .sec-head.row { align-items: flex-start; }
}


/* ==========================================================================
   Page T3 : fil d'Ariane, héros, réalisations, villes, réseau
   ========================================================================== */
.fil { border-bottom: 1px solid var(--line-2); background: var(--bg-2); font-size: 12.5px; color: var(--muted); }
.fil .wrap { display: flex; align-items: center; gap: 10px; height: 42px; }
.fil a { color: var(--blue); }
.fil a:hover { text-decoration: underline; }

.t3-hero { padding: clamp(40px,5vw,72px) 0 clamp(28px,3vw,40px); }
.t3-hero .display { max-width: 18ch; }
.t3-hero .display em { color: var(--blue); }
.t3-hero .lead { margin-top: 18px; }

.proj-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px,1fr)); gap: 16px; }
.proj { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .25s, border-color .25s; }
.proj:hover { transform: translateY(-4px); border-color: var(--blue); }
.proj img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.proj figcaption { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 3px; }
.proj b { font: 700 italic 19px/1.05 var(--disp); text-transform: uppercase; }
.proj span { font-size: 13px; color: var(--muted); }

.lieux { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.lieu-c { background: var(--panel); padding: 22px 24px; display: flex; flex-direction: column; gap: 5px; }
.lieu-c b { font: 700 italic 21px/1 var(--disp); text-transform: uppercase; color: var(--blue); }
.lieu-c span { font-size: 13px; color: var(--muted); }

.reseau { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px,1fr)); gap: 16px; }
.res-c { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 8px; transition: border-color .2s, transform .2s; }
.res-c:hover { border-color: var(--blue); transform: translateY(-3px); }
.res-c b { font-size: 16px; font-weight: 600; }
.res-c span { font-size: 13.5px; color: var(--muted); flex: 1; }
.res-c em { font-style: normal; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }

/* Module T3 : logo T3 USA, mention T3 UK, infini a la taille des chiffres */
.t3-logo-usa { display: block; margin: 4px 0 18px; }
.t3-pts .t3-uk { display: block; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--acc); margin-top: 4px; }
.t3-pts b.inf { line-height: 1; }
.t3-pts b.inf svg { display: block; height: 24px; width: auto; margin-bottom: 3px; fill: none; stroke: currentColor; stroke-width: 3.6; stroke-linejoin: round; transform: skewX(-8deg); }

/* Expedition : les deux cartes cote a cote */
.atlas-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; margin-bottom: 16px; }
.atlas-duo .atlas { margin: 0; display: flex; flex-direction: column; }
.atlas-duo .atlas-svg { flex: 1; }
.atlas-duo .atlas-h h3 { font-size: 17px; }
.atlas-duo .atlas-h .atlas-d { font-size: 19px; }
.atlas-duo .map-legend { font-size: 11.5px; }
@media (max-width: 860px) { .atlas-duo { grid-template-columns: 1fr; } }

/* Location T3 : des dessins au trait, noir et blanc, pas de photos */
.loc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.loc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.loc:hover { border-color: var(--blue); transform: translateY(-2px); }
.loc-picto { aspect-ratio: 4 / 3; display: grid; place-items: center; margin-bottom: 14px; color: var(--ink); }
.loc-picto svg { width: 100%; height: 100%; }
.loc-picto path { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.loc-picto path.toile { fill: currentColor; fill-opacity: .07; stroke: none; }
.loc h3 { font: 700 italic 20px/1.1 var(--disp); text-transform: uppercase; margin: 0 0 4px; }
.loc-dim { font-size: 13px; font-weight: 700; color: var(--blue); margin: 0 0 8px; }
.loc-use { font-size: 13.5px; color: var(--muted); margin: 0 0 16px; flex: 1; }

/* Realisations : la vignette est un bouton, l'image s'agrandit au clic */
button.work { padding: 0; cursor: zoom-in; font: inherit; color: inherit; }
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(8,10,14,.9); display: grid; place-items: center; padding: 24px; animation: lbIn .25s ease; }
.lb[hidden] { display: none; }
.lb figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; background: var(--panel); border-radius: var(--r); overflow: hidden; }
.lb img { width: 100%; max-height: 68vh; object-fit: contain; background: #0b0d11; }
.lb figcaption { padding: 20px 24px 24px; }
.lb figcaption h3 { font: 700 italic 24px/1.1 var(--disp); text-transform: uppercase; margin: 0 0 4px; }
.lb figcaption p { margin: 0 0 12px; font-size: 14.5px; color: var(--ink-2); max-width: 70ch; }
.lb .lb-s { color: var(--blue); font-weight: 600; font-size: 13px; }
.lb-x { position: absolute; top: 16px; right: 20px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.4); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
@keyframes lbIn { from { opacity: 0; } }

/* Réalisations et chiffrage partagent le même fond : on les rapproche */
#realisations { padding-bottom: clamp(20px, 2vw, 32px); }
#calculateurs { padding-top: clamp(20px, 2vw, 32px); }
.dl-sep { color: var(--blue); }
.dl-sep::before { display: none; }   /* titre ferré à gauche, filet à droite */
.dl-sep:first-of-type { margin-top: 0; }
.atelier-eu { margin-top: 14px; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.copie { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); cursor: pointer; text-align: left; }
.copie.ok { color: var(--lime, #3FBF87); }
.team .tm-in { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.job-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.pro-bandeau { display: block; margin-top: 16px; padding: 24px 28px; border: 1px solid var(--blue); border-radius: var(--r); background: color-mix(in srgb, var(--blue) 7%, var(--panel)); }
.pro-bandeau h3 { font: 700 italic 22px/1.15 var(--disp); text-transform: uppercase; margin: 0 0 6px; }
.pro-bandeau p { margin: 0; color: var(--ink-2); max-width: 70ch; font-size: 14.5px; }
.form-site { margin-top: 16px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); position: relative; }
.form-site[hidden] { display: none; }
.form-site > .h3 { margin: 0 0 18px; }
footer .f-t3 { display: block; margin: 22px 0 10px; }
.fcol .copie { display: block; font-size: 14px; color: var(--muted); padding: 6px 0; }
.fcol .copie:hover { color: var(--ink); }
/* Le carnet d'atelier (newsletter) */
.carnet { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin: 0 0 clamp(40px, 5vw, 64px); padding: clamp(26px, 3.4vw, 44px); border-radius: calc(var(--r) + 6px); background:
  radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--blue) 22%, transparent), transparent 55%), var(--panel); border: 1px solid color-mix(in srgb, var(--blue) 35%, var(--line)); overflow: hidden; }
.carnet h3 { font: 700 italic clamp(28px, 3.2vw, 42px)/1.02 var(--disp); text-transform: uppercase; margin: 0 0 18px; max-width: 18ch; }
.carnet-li { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 9px; }
.carnet-li li { display: flex; gap: 10px; align-items: baseline; font-size: 15px; color: var(--ink-2); }
.carnet-li li::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); transform: translateY(-1px) rotate(45deg); }
.nl-row { display: flex; position: relative; max-width: 520px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 5px; transition: border-color .2s, box-shadow .2s; }
.nl-row:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 18%, transparent); }
.nl-row input { flex: 1; min-width: 0; background: none; border: 0; padding: 10px 16px; font: 400 15px var(--font); color: var(--ink); }
.nl-row input:focus { outline: none; }
.nl-row .btn { flex: none; }
.nl-msg { margin: 12px 0 0; color: var(--blue); font-weight: 600; }
.carnet-fin { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.carnet-vis { position: relative; height: 100%; min-height: 250px; }
.carnet-p { position: absolute; margin: 0; background: #fff; padding: 8px 8px 0; border-radius: 6px; box-shadow: 0 22px 50px rgba(0,0,0,.35); }
.carnet-p img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.carnet-p figcaption { display: flex; justify-content: space-between; gap: 10px; padding: 9px 4px 10px; font-size: 11px; color: #16204A; letter-spacing: .06em; text-transform: uppercase; }
.carnet-p figcaption span { color: #8A8578; }
.carnet-p.p1 { width: 62%; right: 6%; top: 8%; transform: rotate(3deg); z-index: 2; }
.carnet-p.p2 { width: 52%; left: 4%; top: 26%; transform: rotate(-5deg); padding-bottom: 8px; opacity: .92; }
.carnet:hover .carnet-p.p1 { transform: rotate(1.5deg) translateY(-4px); }
.carnet-p { transition: transform .5s cubic-bezier(.2,.7,.3,1); }
@media (max-width: 820px) { .carnet { grid-template-columns: 1fr; } .carnet-vis { display: none; } }

/* Réalisations : 6 visibles, 3 colonnes sur 2 rangées ; on tourne la page par 6 */
#wtrack { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: calc((100% - 36px) / 3); gap: 18px; }
#wtrack .car-item { flex: none; }
#wtrack .work { aspect-ratio: 4 / 3; }
@media (max-width: 760px) { #wtrack { grid-auto-columns: 78%; } }
.pro-tete { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.pro-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.pro-av { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.pro-av li { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.pro-av b { display: block; font: 700 italic 18px/1.15 var(--disp); text-transform: uppercase; color: var(--blue); margin-bottom: 4px; }
.pro-av span { font-size: 13.5px; color: var(--ink-2); }
.pro-cite { margin: 18px 0 0; padding: 0 0 0 18px; border-left: 3px solid var(--blue); }
.pro-cite p { margin: 0 0 6px; font-size: 15px; font-style: italic; color: var(--ink); max-width: 80ch; }
.pro-cite cite { font-size: 12.5px; font-style: normal; color: var(--muted); }

/* Machine a ecrire : les lettres a venir occupent deja leur place */
.tape-reste { visibility: hidden; }
/* le curseur ne prend aucune place : il ne pousse jamais un mot a la ligne */
.tape .type-caret { margin-right: -.82ch; }

/* Logo T3 USA : une version par fond.
   fc = logo marine transparent, pour fond clair ; ff = bloc marine, pour fond foncé.
   Sur un fond de page : clair en thème clair, foncé en thème sombre.
   Dans le bloc T3 de l'accueil (.inv), les fonds sont inversés. */
.t3-logo-usa img, .f-t3 img, .t3-usa-logo img { display: none; width: auto; }
:root:not([data-theme="dark"]) .f-t3 .fc, :root:not([data-theme="dark"]) .t3-usa-logo .fc,
[data-theme="dark"] .f-t3 .ff, [data-theme="dark"] .t3-usa-logo .ff,
[data-theme="dark"] .t3-logo-usa.inv .fc, :root:not([data-theme="dark"]) .t3-logo-usa.inv .ff { display: block; }
/* le bloc marine a sa marge intégrée : il est un peu plus haut que le logo transparent, à taille visuelle égale */
.t3-logo-usa .fc { height: clamp(66px, 6vw, 86px); }
.t3-logo-usa .ff { height: clamp(78px, 7.4vw, 104px); }
.f-t3 .fc, .f-t3 .ff { height: 50px; }
.t3-usa-logo .fc { height: clamp(48px, 4.9vw, 68px); }

/* Fond alterné : il dépend de la place de la rubrique dans l'ordre, pas de la rubrique */
.sec.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
/* Réalisations et chiffrage forment un seul bandeau */
#realisations.alt + #calculateurs.alt { border-top: 0; }
#realisations.alt { border-bottom: 0; }

/* Chiffrage : les boutons des cartes s'alignent en bas, quelle que soit la longueur du texte */
.calc { display: flex; flex-direction: column; }
.calc > .btn, .calc > .lnk { margin-top: auto; align-self: flex-start; }
.calc > p { margin-bottom: 20px; }

/* Formulaire pro en étapes, repliable */
.form-site .replier { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); font: 700 22px/1 var(--font); cursor: pointer; display: grid; place-items: center; transition: border-color .2s, color .2s; }
.form-site .replier:hover { border-color: var(--blue); color: var(--blue); }
.form-site > .h3 { padding-right: 56px; }
.form-intro { margin: -8px 0 20px; max-width: 72ch; }
.form-etape { font: 700 italic 17px/1 var(--disp); text-transform: uppercase; letter-spacing: .03em; color: var(--blue); margin: 26px 0 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.form-note { margin: -6px 0 16px; color: var(--muted); }
.fld input[type=range] { padding: 0; accent-color: var(--blue); }
.fld label output { color: var(--blue); font-weight: 700; }
.engage { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin: 0 0 12px; cursor: pointer; }
.engage input { margin-top: 3px; accent-color: var(--blue); flex: none; }
.manque input, .manque select, .manque textarea { border-color: #E5484D !important; }
fieldset.manque legend, .engage.manque span { color: #E5484D; }

/* Menu de messagerie sous l'adresse e-mail */
[data-copie] { position: relative; cursor: pointer; }
.mail-menu { position: fixed; z-index: 95; min-width: 210px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg, 0 12px 32px rgba(0,0,0,.25)); padding: 6px; display: flex; flex-direction: column; animation: lbIn .15s ease; }
.mail-menu a, .mail-menu button { display: block; text-align: left; padding: 9px 12px; border-radius: 8px; font: 500 14px var(--font); color: var(--ink); background: none; border: 0; cursor: pointer; text-decoration: none; }
.mail-menu a:hover, .mail-menu button:hover { background: var(--panel-2); color: var(--blue); }
.mail-menu button { border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; }
/* Module T3 de l'accueil : toujours le logo bleu, 15 % plus petit que l'ancien bloc */
.t3-logo-usa.bleu img { display: block; height: clamp(66px, 6.3vw, 88px); width: auto; }

/* Numérotation des pages de réalisations, au-dessus des flèches */
.car-ctrl { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.car-num { margin: 0; display: flex; align-items: baseline; gap: 6px; font: 700 italic 15px/1 var(--disp); letter-spacing: .06em; color: var(--muted); }
.car-num b { font-size: 26px; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Plaquette à télécharger : pastille ronde en bas à gauche, son libellé se déplie au survol */
.plaquette { position: fixed; left: max(18px, env(safe-area-inset-left)); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 70; display: flex; align-items: center; height: 52px; min-width: 52px; padding: 0 15px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.3), 0 2px 6px rgba(0,0,0,.2); transition: background .2s, transform .2s; }
.plaquette svg { width: 22px; height: 22px; flex: none; }
.plaquette span { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width .35s ease, opacity .25s ease, margin .35s ease; }
.plaquette:hover, .plaquette:focus-visible { background: var(--blue-hi); transform: translateY(-2px); }
.plaquette:hover span, .plaquette:focus-visible span { max-width: 240px; opacity: 1; margin-left: 10px; }
@media print { .plaquette { display: none; } }

/* Création de compte pro sous les calculateurs, et cadenas de l'équipe dans le pied de page */
.calc-compte { margin: 22px 0 0; text-align: center; color: var(--ink-2); font-size: 15px; }
.calc-compte .lnk { margin-left: 6px; }
.fbot .cadenas { display: inline-flex; vertical-align: -3px; margin-left: 10px; opacity: .45; transition: opacity .2s; }
.fbot .cadenas:hover, .fbot .cadenas:focus-visible { opacity: 1; }
.fbot .cadenas svg { width: 15px; height: 15px; }
/* Les pastilles flottantes (plaquette à gauche, WhatsApp à droite) ne doivent rien recouvrir en bas de page */
footer { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }

/* Pages légales : texte long, lisible */
.legale .wrap { max-width: 820px; }
.legale .sec-tag a { color: inherit; text-decoration: none; }
.legale-txt { color: var(--ink-2); font-size: 16px; line-height: 1.75; }
.legale-txt h2 { font: 700 italic 22px/1.2 var(--disp); text-transform: uppercase; color: var(--ink); margin: 36px 0 10px; }
.legale-txt p, .legale-txt ul { margin: 0 0 14px; }
.legale-txt .lead { font-size: 19px; color: var(--ink); }
.legale-txt a { color: var(--blue); }

/* Revendeur dans le menu : simplement en bleu, avec sa petite icône */
.nav > a.nav-rev { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); }
.nav > a.nav-rev:hover { color: var(--blue-hi); }
.nav > a.nav-rev svg { width: 14px; height: 14px; flex: none; }

/* Menu sur téléphone et tablette : le bouton ☰ ouvre la liste sous l'en-tête */
@media (max-width: 1240px) {
  header.nav-ouverte .nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gut) 18px; box-shadow: 0 18px 40px rgba(0,0,0,.25); z-index: 60; }
  header.nav-ouverte .nav > a { font-size: 15px; padding: 14px 0; border-bottom: 1px solid var(--line-2, var(--line)); }
  header.nav-ouverte .nav > a::after { display: none; }
}

/* En-tête sur téléphone : tout doit tenir, surtout le bouton ☰ */
.bt-devis .court { display: none; }
@media (max-width: 600px) {
  .bt-devis .long { display: none; }
  .bt-devis .court { display: inline; }
  .top #theme { display: none; }
  .top .tools { gap: 8px; }
}

/* Réalisations T3 : cartes compactes, agrandissement au clic */
.proj-g { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
/* Défilement horizontal, 2 rangées de 3 cartes, comme l'accueil : on tourne la page par 6 */
.proj-g[data-carrousel] { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: calc((100% - 24px) / 3); grid-template-columns: none; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; padding-bottom: 4px; }
.proj-g[data-carrousel]::-webkit-scrollbar { display: none; }
.proj-g[data-carrousel] > .proj { scroll-snap-align: start; }
@media (max-width: 1000px) { .proj-g[data-carrousel] { grid-auto-columns: calc((100% - 12px) / 2); } }
@media (max-width: 600px) { .proj-g[data-carrousel] { grid-auto-columns: 82%; } }
.proj { cursor: zoom-in; }
.proj img { height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.proj figcaption { padding: 11px 14px 13px; gap: 2px; }
.proj b { font-size: 16px; }
.proj span { font-size: 12px; }

/* Dernière diapositive des réalisations : « Et bientôt vous ? » */
.fin-diapo { grid-row: span 2; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px; padding: clamp(24px, 3vw, 40px); border-radius: var(--r); background: radial-gradient(120% 120% at 100% 0%, var(--blue-hi), var(--blue) 60%); color: #fff; scroll-snap-align: start; }
.fin-diapo h3 { font: 700 italic clamp(34px, 3.6vw, 52px)/.98 var(--disp); text-transform: uppercase; margin: 0; }
.fin-diapo p { margin: 0; font-size: 15px; opacity: .92; max-width: 30ch; }
.fin-diapo .btn { background: #fff; color: #0B2A40; border-color: #fff; }
.fin-diapo .btn:hover { background: #0B2A40; color: #fff; border-color: #0B2A40; }
#wtrack > .fin-diapo { height: auto; }

/* Les vrais liens sous les fiches métier de l'accueil : ce sont eux que Google suit,
   les fiches elles-mêmes étant des boutons qui ouvrent un panneau. */
.fab-liens { display: flex; flex-wrap: wrap; gap: 26px; margin: 30px 0 0; }
.fab-liens .lnk { font-weight: 600; }

/* Les usages d'une page de métier : cinq étiquettes courtes. auto-fill plutôt
   qu'auto-fit, pour que la dernière ne s'étire pas sur toute la largeur. */
.lieux.usages { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.lieux.usages .lieu-c { justify-content: center; min-height: 74px; }

/* Une étiquette de grille qui est aussi un lien (les villes de salon). */
a.lieu-c { text-decoration: none; transition: background .2s; }
a.lieu-c:hover { background: var(--panel-2, var(--panel)); }
a.lieu-c:hover b { text-decoration: underline; }

/* La distance entre l'atelier et la ville : un chiffre, pas une étiquette de grille. */
.distance { display: flex; align-items: baseline; gap: 12px; margin: 30px 0 0; }
.distance b { font: 700 italic 44px/1 var(--disp); color: var(--blue); }
.distance span { font-size: 15px; color: var(--muted); }
