/* =========================================================
   CMDNE — feuille de style principale (v2)
   Direction artistique : CMDNE_Identite_Web_2026.pdf
   Violet #5C12F7 · Noir profond #0B0716 · Blanc lavande #F6F4FF
   Titres condensés · contrastes francs · pilules · contours fins
   ========================================================= */

:root {
  --violet: #5C12F7;
  --violet-2: #8F5CFF;
  --noir: #0B0716;
  --noir-2: #140D26;
  --lavande: #F6F4FF;
  --blanc: #FFFFFF;
  --txt: rgba(246, 244, 255, 0.78);
  --txt-dim: rgba(246, 244, 255, 0.52);
  --line: rgba(246, 244, 255, 0.14);
  --line-dark: rgba(11, 7, 22, 0.14);
  --gris-dark: #5F5975;
  --erreur: #FF6B8B;

  --f-title: 'Anton', 'Arial Narrow', Impact, sans-serif;   /* remplace Dharma Gothic E ExBold */
  --f-label: 'Bebas Neue', 'Arial Narrow', sans-serif;       /* remplace Bebas Kai */
  --f-body: 'Archivo', Arial, Helvetica, sans-serif;

  /* rythme vertical */
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px; --s-5: 48px; --s-6: 64px; --s-7: 96px;
  --sec-pad: clamp(112px, 18vh, 220px);
  --gutter: clamp(20px, 5vw, 80px);
  --col-gap: clamp(20px, 2.4vw, 40px);
  --measure: 34em;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--violet) var(--noir);
}
html::-webkit-scrollbar { width: 8px; }
html::-webkit-scrollbar-track { background: var(--noir); }
html::-webkit-scrollbar-thumb { background: var(--violet); border-radius: 8px; }
body {
  margin: 0;
  background: var(--noir);
  color: var(--lavande);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea { font: inherit; color: inherit; }
kbd {
  font-family: var(--f-body); font-size: 0.72em; line-height: 1;
  border: 1px solid currentColor; border-radius: 6px; padding: 3px 6px; opacity: 0.6; margin-left: 4px;
}
::selection { background: var(--violet); color: var(--blanc); }
:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 3px; border-radius: 6px; }
html.robot-hover, html.robot-hover * { cursor: grab !important; }

.wrap { width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.bar { display: inline-block; width: 40px; height: 4px; background: var(--violet); vertical-align: middle; margin-right: 14px; border-radius: 2px; flex: none; }

/* ---------- typographie ---------- */
.kicker, .label {
  font-family: var(--f-label); font-weight: 400; text-transform: uppercase; letter-spacing: 0.13em;
  font-size: 19px; line-height: 1.2; color: var(--lavande); margin: 0 0 var(--s-3);
  display: flex; align-items: center;
}
.label { font-size: 15px; color: var(--txt-dim); margin: 0 0 var(--s-2); }
.kicker--dark { color: var(--noir); }
.section__head { margin-bottom: var(--s-6); }
.section__head > :last-child { margin-bottom: 0; }
.title {
  font-family: var(--f-title); font-weight: 400; text-transform: uppercase;
  font-size: clamp(46px, 6.2vw, 104px); line-height: 0.95; letter-spacing: 0.01em; margin: 0 0 var(--s-4);
}
.title em, .hero__title em { font-style: normal; color: var(--violet-2); }
.title--dark { color: var(--noir); }
.title--dark em { color: var(--violet); }
.lead { color: var(--txt); max-width: var(--measure); margin: 0; font-size: clamp(17px, 1.25vw, 20px); line-height: 1.65; }
.lead--dark { color: var(--gris-dark); }

/* ---------- pilules (boutons) ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 30px; border-radius: 999px;
  font-family: var(--f-label); font-size: 19px; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
  white-space: nowrap; position: relative; isolation: isolate;
}
.pill:active { transform: scale(0.97); }
.pill--sm { height: 42px; padding: 0 20px; font-size: 17px; }
.pill--violet { background: var(--violet); color: var(--blanc); }
.pill--violet:hover { background: var(--blanc); color: var(--noir); }
.pill--outline-light { border: 1px solid rgba(246,244,255,.5); color: var(--lavande); }
.pill--outline-light:hover { background: var(--lavande); color: var(--noir); border-color: var(--lavande); }
.pill--ghost-light { color: var(--txt); border: 1px solid transparent; }
.pill--ghost-light:hover { border-color: var(--line); color: var(--blanc); }
.pill--lavender { background: var(--lavande); color: var(--noir); }
.pill--lavender:hover { background: var(--violet); color: var(--blanc); }
.pill--dark { background: var(--noir); color: var(--blanc); }
.pill--dark:hover { background: var(--violet); }
.pill .plus { font-family: var(--f-body); font-size: 20px; font-weight: 500; margin-top: -2px; }
.pill kbd { font-size: 12px; margin-left: 2px; }

.round {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-dark); color: var(--noir);
  font-size: 20px; display: inline-grid; place-items: center; transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.round:hover { background: var(--noir); color: var(--blanc); border-color: var(--noir); }
.round:active { transform: scale(0.94); }

.chip {
  display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 15px; color: var(--txt); transition: all .3s var(--ease);
}
.chip:hover { border-color: var(--violet-2); color: var(--blanc); background: rgba(92,18,247,.25); }

.tags { list-style: none; padding: 0; margin: 0 0 var(--s-3); display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-family: var(--f-label); font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 7px 14px 5px; border: 1px solid var(--line); border-radius: 999px; color: var(--txt);
}
.tags--dark li { border-color: var(--line-dark); color: var(--noir); }

.link-arrow {
  font-family: var(--f-label); font-size: 19px; letter-spacing: 0.08em; text-transform: uppercase;
  display: inline-flex; gap: 10px; align-items: center; color: var(--blanc);
  border-bottom: 2px solid var(--violet); padding-bottom: 2px; transition: gap .3s var(--ease), color .3s;
}
.link-arrow::after { content: '→'; font-family: var(--f-body); }
.link-arrow:hover { gap: 18px; color: var(--violet-2); }

/* ---------- sélecteur de langue + boutons son / musique ---------- */
.lang { display: inline-flex; height: 44px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); }
.lang button {
  min-width: 38px; padding: 0 10px; border-radius: 999px; font-family: var(--f-label); letter-spacing: 0.08em; font-size: 16px;
  color: var(--txt-dim); transition: background-color .3s, color .3s;
}
.lang button[aria-pressed="true"] { background: var(--lavande); color: var(--noir); }
.lang button:not([aria-pressed="true"]):hover { color: var(--blanc); }
.lang--intro { position: absolute; top: 24px; right: var(--gutter); z-index: 2; }

.icon-toggle {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); color: var(--txt-dim);
  display: inline-grid; place-items: center; transition: border-color .3s, color .3s, background-color .3s;
}
.icon-toggle:hover { border-color: var(--violet-2); color: var(--blanc); }
.icon-toggle[aria-pressed="true"] { color: var(--blanc); border-color: var(--violet); background: rgba(92,18,247,.22); }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { width: 2px; height: 3px; background: currentColor; border-radius: 1px; }
.icon-toggle[aria-pressed="true"] .eq i { background: var(--violet-2); animation: eq 0.9s ease-in-out infinite; }
.icon-toggle[aria-pressed="true"] .eq i:nth-child(2) { animation-delay: -.3s; }
.icon-toggle[aria-pressed="true"] .eq i:nth-child(3) { animation-delay: -.6s; }
.icon-toggle[aria-pressed="true"] .eq i:nth-child(4) { animation-delay: -.15s; }
#musicToggle svg { opacity: .7; transition: opacity .3s, transform .4s var(--ease); }
#musicToggle[aria-pressed="true"] svg { opacity: 1; color: var(--violet-2); animation: note 2.4s ease-in-out infinite; }
@keyframes eq { 0%,100% { height: 3px; } 50% { height: 14px; } }
@keyframes note { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-2px) rotate(-6deg); } }

/* =========================================================
   INTRO
   ========================================================= */
.intro {
  position: fixed; inset: 0; z-index: 100; background: var(--noir);
  display: grid; place-items: center; text-align: center;
}
.intro__inner { padding: 0 var(--gutter); }
.intro__kicker { font-family: var(--f-label); letter-spacing: 0.14em; text-transform: uppercase; font-size: 17px; color: var(--txt-dim); margin: 0 0 6px; opacity: 0; display: inline-flex; align-items: center; }
.intro__word {
  font-family: var(--f-title); font-weight: 400; font-size: clamp(96px, 21vw, 330px); line-height: 0.86; margin: 0;
  display: flex; justify-content: center; letter-spacing: 0.01em;
}
.intro__word span { display: inline-block; overflow: hidden; padding: 0 0.005em; }
.intro__word i { display: inline-block; font-style: normal; transform: translateY(105%); }
.intro__word .dot i { color: var(--violet); }
.intro__progress { width: min(280px, 60vw); height: 2px; background: var(--line); margin: 34px auto 14px; overflow: hidden; border-radius: 2px; }
.intro__progress span { display: block; height: 100%; width: 0; background: var(--violet); transition: width .25s linear; }
.intro__status { font-family: var(--f-label); letter-spacing: 0.12em; font-size: 16px; color: var(--txt-dim); margin: 0; text-transform: uppercase; }
.intro__enter { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.intro.is-ready .intro__enter { opacity: 1; transform: none; pointer-events: auto; }
.intro.is-ready .intro__status { opacity: 0.4; }
.intro__hint { margin: 22px 0 0; font-size: 13px; color: var(--txt-dim); opacity: 0; transition: opacity .6s; }
.intro.is-ready .intro__hint { opacity: 1; }

/* =========================================================
   SCÈNE 3D + BULLE
   ========================================================= */
.stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; pointer-events: none; background: var(--noir); }
.bubble {
  position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none;
  max-width: 280px; padding: 12px 16px; border-radius: 18px;
  background: var(--lavande); color: var(--noir); font-size: 15px; line-height: 1.42; font-weight: 500;
  box-shadow: 0 18px 40px -12px rgba(92,18,247,.55);
  opacity: 0; transition: opacity .3s var(--ease), background-color .4s, color .4s;
  will-change: transform;
}
.bubble::after { content: ''; position: absolute; left: clamp(20px, var(--tail, 50%), calc(100% - 20px)); bottom: -6px; width: 12px; height: 12px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.bubble.is-on { opacity: 1; }
.bubble.is-light { background: var(--noir); color: var(--lavande); }
.bubble__rest { opacity: 0; }
/* colère : bulle rouge qui tremble */
.bubble.is-angry { background: #E3263F; color: #fff; font-weight: 600; }
.bubble.is-angry > span:first-child { display: inline-block; animation: bubble-shake .12s linear infinite; }
@keyframes bubble-shake { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-1.5px, 1px); } 50% { transform: translate(1.5px, -1px); } 75% { transform: translate(-1px, -1px); } }
@media (prefers-reduced-motion: reduce) { .bubble.is-angry > span:first-child { animation: none; } }

/* =========================================================
   EN-TÊTE
   ========================================================= */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--gutter);
  transition: transform .5s var(--ease), color .4s;
}
.header::before {
  content: ''; position: absolute; inset: 0 0 -20px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(11,7,22,.88), rgba(11,7,22,0));
  transition: opacity .4s;
}
.header__logo img { height: 38px; width: auto; transition: filter .4s; }
.header__index { font-family: var(--f-label); letter-spacing: 0.14em; text-transform: uppercase; font-size: 16px; color: var(--txt-dim); position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.header__index #secNum { color: var(--violet-2); }
.header__actions { display: flex; align-items: center; gap: 8px; }
.header .pill { height: 44px; padding: 0 22px; font-size: 17px; }
.header.is-light { color: var(--noir); }
.header.is-light::before { opacity: 0; }
.header.is-light .header__logo img { filter: brightness(0) saturate(100%); }
.header.is-light .header__index { color: var(--gris-dark); }
.header.is-light .header__index #secNum { color: var(--violet); }
.header.is-light .pill--outline-light { border-color: rgba(11,7,22,.4); color: var(--noir); }
.header.is-light .pill--outline-light:hover { background: var(--noir); color: var(--blanc); }
.header.is-light .pill--lavender { background: var(--noir); color: var(--blanc); }
.header.is-light .lang, .header.is-light .icon-toggle { border-color: rgba(11,7,22,.25); color: var(--gris-dark); }
.header.is-light .lang button { color: var(--gris-dark); }
.header.is-light .lang button[aria-pressed="true"] { background: var(--noir); color: var(--blanc); }
.header.is-light .icon-toggle[aria-pressed="true"] { color: var(--violet); background: rgba(92,18,247,.1); }
body.menu-open .header { transform: translateY(-110%); }

/* =========================================================
   MENU « CONSOLE CMD » — tout tient à l'écran, sans barre de défilement
   ========================================================= */
.console[hidden] { display: none; }
.console__bg {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(11, 7, 22, 0.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
body.menu-open .stage { z-index: 61; }
.console__panel {
  position: fixed; z-index: 62; top: 0; left: 0; height: 100vh; height: 100dvh; width: min(58vw, 920px);
  padding: clamp(18px, 3vh, 32px) var(--gutter) clamp(18px, 3.5vh, 36px);
  display: flex; flex-direction: column; overflow: hidden;
  scrollbar-width: none;
}
.console__panel::-webkit-scrollbar { display: none; }
.console__slot { position: fixed; z-index: 1; right: 3vw; top: 22vh; width: 34vw; height: 68vh; pointer-events: none; }
.console__top { display: flex; justify-content: space-between; align-items: center; min-height: 48px; margin-bottom: clamp(12px, 3vh, 36px); flex: none; }
.console__title { font-family: var(--f-label); letter-spacing: 0.14em; text-transform: uppercase; font-size: 18px; margin: 0; display: flex; align-items: center; }
.console__prompt {
  display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); padding: 0 0 12px; flex: none;
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: clamp(16px, 1.5vw, 21px);
}
.console__prompt:focus-within { border-color: var(--violet-2); }
.console__path { color: var(--violet-2); white-space: nowrap; }
.console__prompt input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--blanc); caret-color: var(--violet-2); font-family: inherit; }
.console__prompt input::placeholder { color: var(--txt-dim); }
.console__help { font-size: 13px; line-height: 1.5; color: var(--txt-dim); margin: 10px 0 0; flex: none; }
.console__help kbd { margin: 0 2px; }
.console__list {
  list-style: none; padding: 0; margin: clamp(8px, 2.5vh, 28px) 0; flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column; justify-content: center;
  /* taille des mots calculée pour que les 6 entrées tiennent toujours */
  --item: clamp(26px, min(6.6vw, calc((100dvh - 330px) / 7.4)), 92px);
}
.console__item a {
  display: grid; grid-template-columns: 52px 1fr auto; align-items: baseline; gap: 12px;
  padding: calc(var(--item) * 0.06) 0; color: var(--txt-dim); transition: color .25s, transform .4s var(--ease);
}
.console__item .n { font-family: var(--f-label); font-size: 18px; letter-spacing: 0.1em; color: var(--violet-2); }
.console__item .w { font-family: var(--f-title); text-transform: uppercase; font-size: var(--item); line-height: 1; color: var(--lavande); opacity: .5; transition: opacity .25s, color .25s; white-space: nowrap; }
.console__item .d { font-size: 14px; color: var(--txt-dim); text-align: right; opacity: 0; transition: opacity .25s; }
.console__item.is-active a { transform: translateX(14px); }
.console__item.is-active .w { opacity: 1; color: var(--blanc); }
.console__item.is-active .w::after { content: ' →'; color: var(--violet-2); }
.console__item.is-active .d { opacity: 1; }
.console__item.is-hidden { display: none; }
.console__quick { display: flex; flex-wrap: wrap; gap: 8px; flex: none; }

/* =========================================================
   SECTIONS
   ========================================================= */
main { position: relative; z-index: 1; }
.section { position: relative; padding: var(--sec-pad) 0; }
.robot-slot { pointer-events: none; }
html.robot-grabbing, html.robot-grabbing * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
.grid12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--col-gap); }

/* ---------- 01 ACCUEIL ---------- */
.hero { min-height: 100vh; min-height: 100svh; padding: 0; display: flex; flex-direction: column; justify-content: center; }
.hero__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--col-gap); align-items: center; min-height: 100svh; padding-top: calc(var(--header-h) + 24px); padding-bottom: 96px; }
.hero__text { grid-column: 1 / 8; position: relative; z-index: 2; }
.hero__slot { grid-column: 8 / 13; height: 76vh; }
.hero__title {
  font-family: var(--f-title); font-weight: 400; text-transform: uppercase; margin: 0 0 var(--s-4);
  font-size: clamp(56px, 8.2vw, 148px); line-height: 0.97;
}
.hero__title .line { display: block; overflow: hidden; padding: 0.14em 0 0.02em; margin-top: -0.14em; } /* place pour les accents (É) */
.hero__title .line > span { display: inline-block; transform: translateY(105%); }
.hero__lead { color: var(--txt); max-width: 31em; font-size: clamp(17px, 1.3vw, 21px); line-height: 1.6; margin: 0 0 var(--s-5); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__foot { position: absolute; left: 0; right: 0; bottom: 30px; display: flex; justify-content: space-between; align-items: center; }
.scroll-cue, .hero__tip { font-family: var(--f-label); letter-spacing: 0.14em; text-transform: uppercase; font-size: 15px; color: var(--txt-dim); margin: 0; display: flex; align-items: center; gap: 14px; }
.scroll-cue__line { width: 1px; height: 38px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue__line::after { content: ''; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--violet-2); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* ---------- 02 AGENCE ---------- */
.about__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--col-gap); align-items: start; }
.about__spacer { grid-column: 1 / 5; position: sticky; top: 12vh; height: 76vh; }
.about__text { grid-column: 6 / 13; padding-top: 4vh; }
.statement { font-size: clamp(25px, 2.3vw, 38px); line-height: 1.32; font-weight: 500; margin: 0 0 var(--s-6); color: var(--lavande); max-width: 22em; letter-spacing: -0.005em; }
.statement .w { opacity: 0.16; transition: opacity .2s; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 var(--col-gap); border-top: 1px solid var(--line); }
.facts li { padding: var(--s-3) 0 0; display: flex; flex-direction: column; gap: 6px; }
.facts__k { font-family: var(--f-label); letter-spacing: 0.13em; text-transform: uppercase; font-size: 15px; color: var(--txt-dim); }
.facts__v { font-family: var(--f-title); text-transform: uppercase; font-size: clamp(20px, 1.7vw, 28px); line-height: 1.1; }

/* ---------- 03 SAVOIR-FAIRE ---------- */
.skills__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--col-gap); align-items: start; }
.skills__text { grid-column: 1 / 8; }
.skills__spacer { grid-column: 8 / 13; position: sticky; top: 12vh; height: 76vh; }
.skill-list { border-top: 1px solid var(--line); }
.skill { border-bottom: 1px solid var(--line); }
.skill__head { width: 100%; display: grid; grid-template-columns: 60px 1fr 36px; align-items: center; text-align: left; padding: 24px 0; gap: 8px; }
.skill__num { font-family: var(--f-label); font-size: 18px; letter-spacing: 0.1em; color: var(--violet-2); }
.skill__name { font-family: var(--f-title); text-transform: uppercase; font-size: clamp(28px, 3vw, 48px); line-height: 1; transition: transform .45s var(--ease), color .3s; }
.skill.is-open .skill__name { transform: translateX(12px); }
@media (hover: hover) { .skill__head:hover .skill__name { transform: translateX(12px); } } /* (v14) téléphone : plus de titre décalé qui reste après un toucher */
.skill.is-open .skill__name { color: var(--violet-2); }
.skill__icon { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; position: relative; transition: transform .45s var(--ease), background-color .3s, border-color .3s; }
.skill__icon::before, .skill__icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.skill__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.skill.is-open .skill__icon { transform: rotate(45deg); background: var(--violet); border-color: var(--violet); }
.skill__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.skill.is-open .skill__body { grid-template-rows: 1fr; }
.skill__inner { overflow: hidden; padding-left: 68px; }
.skill__inner > p { color: var(--txt); margin: 0 0 var(--s-3); max-width: 32em; }
.skill__inner > :last-child { margin-bottom: var(--s-4); }

/* ---------- 04 IA ---------- */
.ai { padding-bottom: calc(var(--sec-pad) * 0.7); }
.ai__intro, .ai__stage, .ai__gains { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--col-gap); }
.ai__intro > .section__head, .ai__steps, .ai__gains > :last-child { grid-column: 6 / 13; }
.ai__intro .section__head { margin-bottom: 0; }
.ai__spacer { grid-column: 1 / 6; }
.ai__pin { height: 100vh; display: flex; align-items: center; }
.ai__stage { align-items: center; width: 100%; }
.ai__stage .ai__spacer { height: 72vh; grid-column: 1 / 6; margin: 0 6vw 0 3vw; } /* robot détaché du texte (marge à droite), un peu plus petit */
.ai__steps { position: relative; padding-left: 44px; }
.ai__rail { position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; background: var(--line); border-radius: 2px; }
.ai__rail span { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: var(--violet-2); border-radius: 2px; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { padding: 2.6vh 0; border-bottom: 1px solid var(--line); opacity: .3; transition: opacity .5s var(--ease); }
.step:last-child { border-bottom: 0; }
.step.is-active { opacity: 1; }
.step__num { font-family: var(--f-label); color: var(--violet-2); letter-spacing: 0.1em; font-size: 18px; }
.step__title { font-family: var(--f-title); font-weight: 400; text-transform: uppercase; font-size: clamp(34px, 3.8vw, 62px); line-height: 1; margin: 6px 0 0; }
.step p { margin: 0; color: var(--txt); max-width: 31em; overflow: hidden; max-height: 0; transition: max-height .6s var(--ease), margin .6s var(--ease); }
.step.is-active p { max-height: 220px; margin-top: 14px; }
.ai__gains { margin-top: var(--s-6); }
.gains { list-style: none; padding: 0; margin: 0 0 var(--s-5); border-top: 1px solid var(--line); }
.gains li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.gains span { color: var(--txt); }
.gains b { font-family: var(--f-title); font-weight: 400; text-transform: uppercase; font-size: clamp(24px, 2.3vw, 38px); line-height: 1; text-align: right; }
.ai__note { color: var(--txt); font-size: 16px; max-width: 34em; display: flex; align-items: baseline; margin: 0; }

/* ---------- 05 PROJETS (fond lavande dessiné par la scène 3D) ---------- */
.work { color: var(--noir); min-height: 100vh; }
.work__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--col-gap); align-items: end; }
.work__side { grid-column: 1 / 6; align-self: center; }
.work__side .section__head { margin-bottom: var(--s-5); }
.work__side .title { font-size: clamp(42px, 5vw, 86px); }
.work__list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-dark); }
.work__list li { border-bottom: 1px solid var(--line-dark); }
.work__list button {
  width: 100%; display: grid; grid-template-columns: 46px 1fr auto; align-items: baseline; gap: 8px; padding: 16px 0 18px; text-align: left; position: relative;
}
.work__list .n { font-family: var(--f-label); font-size: 16px; letter-spacing: 0.1em; color: var(--gris-dark); }
.work__list .w { font-family: var(--f-title); text-transform: uppercase; font-size: clamp(26px, 2.4vw, 40px); line-height: 1; color: rgba(11,7,22,.3); transition: color .35s, transform .45s var(--ease); }
.work__list .u { font-size: 13px; color: var(--gris-dark); opacity: 0; transition: opacity .3s; }
.work__list .pbar { position: absolute; left: 46px; right: 0; bottom: -1px; height: 2px; overflow: hidden; }
.work__list .pbar i { display: block; height: 100%; background: var(--violet); transform: scaleX(0); transform-origin: left; }
.work__list li.is-active .w { color: var(--noir); transform: translateX(10px); }
.work__list li.is-active .n { color: var(--violet); }
.work__list li.is-active .u { opacity: 1; }
.work__list button:hover .w { color: var(--noir); }
.work__stage { grid-column: 6 / 13; display: flex; flex-direction: column; }
.work__slot { height: 32vh; width: 40%; margin: 0 4% -13vh auto; } /* le bas du robot passe derrière le navigateur */
.device {
  border-radius: 16px; background: var(--noir); overflow: hidden; position: relative; z-index: 1;
  box-shadow: 0 50px 90px -30px rgba(92,18,247,.45), 0 0 0 1px rgba(11,7,22,.08);
}
.device__bar { height: 44px; display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; padding: 0 16px; color: var(--txt-dim); }
.device__dots { display: flex; gap: 7px; }
.device__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(246,244,255,.18); }
.device__url {
  justify-self: center; position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; padding: 5px 18px; border-radius: 999px; background: rgba(246,244,255,.08); color: var(--lavande); min-width: 52%; justify-content: center; min-height: 26px;
}
.device__lock { width: 9px; height: 8px; border: 1.5px solid currentColor; border-radius: 2px; position: relative; opacity: .6; margin-top: 3px; }
.device__lock::before { content: ''; position: absolute; left: 50%; bottom: 100%; width: 6px; height: 5px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 4px 4px 0 0; transform: translateX(-50%); }
.device__load { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--violet-2); transform: scaleX(0); transform-origin: left; opacity: 0; }
.device__count { justify-self: end; font-family: var(--f-label); letter-spacing: 0.1em; font-size: 15px; }
.device__screen { position: relative; aspect-ratio: 16 / 10; max-height: 58vh; width: 100%; overflow: hidden; background: #0f0b1b; cursor: grab; touch-action: pan-y; user-select: none; }
.device__screen.is-dragging { cursor: grabbing; }
.shot { position: absolute; inset: 0; opacity: 0; will-change: clip-path, transform; transform-origin: 50% 30%; }
.shot.is-active { opacity: 1; }
.shot img { width: 100%; height: auto; will-change: transform; pointer-events: none; }
.device__scan { position: absolute; left: 0; right: 0; top: 100%; height: 2px; z-index: 5; opacity: 0; background: var(--violet-2); box-shadow: 0 0 18px 4px rgba(143,92,255,.7); pointer-events: none; }
.work__controls { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-3); align-items: center; margin-top: var(--s-3); }
.work__arrows { display: flex; gap: 8px; }
.work__meta { min-width: 0; }
.work__desc { color: var(--gris-dark); margin: 0 0 10px; font-size: 16px; line-height: 1.5; }
.work__meta .tags { margin: 0; }
.work__meta .tags li { font-size: 14px; padding: 5px 12px 4px; }

/* ---------- 06 CONTACT ---------- */
.contact__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--col-gap); align-items: start; }
.contact__text { grid-column: 1 / 8; }
.contact__slot { grid-column: 8 / 13; position: sticky; top: 12vh; height: 76vh; }
.contact__info { list-style: none; padding: 0; margin: 0 0 var(--s-6); display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--col-gap); border-top: 1px solid var(--line); }
.contact__info li { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.contact__info .label { margin: 0; font-size: 14px; }
.contact__info a { font-size: 19px; font-weight: 500; transition: color .3s; }
.contact__info a:hover { color: var(--violet-2); }

.form { display: flex; flex-direction: column; gap: var(--s-4); }
.form__group { border: 0; padding: 0; margin: 0; min-width: 0; }
.form__group legend { padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--txt); font-size: 15px; transition: all .3s var(--ease); }
.choice:hover { border-color: var(--violet-2); color: var(--blanc); }
.choice[aria-pressed="true"] { background: var(--violet); border-color: var(--violet); color: var(--blanc); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--col-gap); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-family: var(--f-label); letter-spacing: 0.1em; text-transform: uppercase; font-size: 15px; color: var(--txt-dim); }
.field input, .field textarea {
  background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; color: var(--blanc);
  font-size: 18px; outline: none; border-radius: 0; resize: vertical; transition: border-color .3s;
}
.field input:focus, .field textarea:focus { border-color: var(--violet-2); }
.field.is-error input, .field.is-error textarea { border-color: var(--erreur); }
.field.is-error span { color: var(--erreur); }
.form__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: var(--s-1); }
.form__status { margin: 0; font-size: 15px; color: var(--txt); }
.form__status.is-error { color: var(--erreur); }

/* =========================================================
   PIED DE PAGE
   ========================================================= */
.footer { position: relative; z-index: 1; padding: var(--sec-pad) 0 28px; overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-4); flex-wrap: wrap; }
.footer__claim { font-family: var(--f-title); text-transform: uppercase; font-size: clamp(40px, 5vw, 80px); line-height: .98; margin: 0; max-width: 9em; }
.footer__claim a { color: var(--violet-2); border-bottom: 3px solid var(--violet); transition: color .3s; }
.footer__claim a:hover { color: var(--blanc); }
.footer__links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--f-label); letter-spacing: 0.1em; text-transform: uppercase; font-size: 18px; }
.footer__links a { color: var(--txt); transition: color .3s; }
.footer__links a:hover { color: var(--violet-2); }
.footer__slot { height: 42vh; width: 40vh; margin: 10vh auto -12vh; position: relative; }
.footer__giant {
  font-family: var(--f-title); text-transform: uppercase; font-size: 25.5vw; line-height: .8; margin: 0;
  text-align: center; letter-spacing: -0.005em; color: var(--lavande); user-select: none; position: relative; z-index: -1;
}
.footer__giant span { color: var(--violet); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: var(--s-4); padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--txt-dim); }
.footer__bottom a:hover { color: var(--blanc); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .header__index { display: none; }
  .hide-md { display: none !important; }
}

@media (max-width: 1100px) {
  .console__panel { width: 100%; }
  .console__slot { right: 0; top: auto; bottom: 0; width: 40vw; height: 34vh; }
  .console__item .d { display: none; }
  .console__item a { grid-template-columns: 44px 1fr; }
}

@media (max-width: 860px) {
  .ai__stage .ai__spacer { margin-left: 0; }
  :root { --header-h: 68px; --sec-pad: clamp(88px, 13vh, 130px); }
  body { font-size: 17px; }
  .header { gap: 8px; }
  .header__logo img { height: 30px; }
  .header__actions { gap: 6px; }
  .section__head { margin-bottom: var(--s-5); }

  .hero__grid, .about__grid, .skills__grid, .contact__grid,
  .ai__intro, .ai__stage, .ai__gains, .work__grid { grid-template-columns: 1fr; }
  .hero__grid > *, .about__grid > *, .skills__grid > *, .contact__grid > *,
  .ai__intro > *, .ai__stage > *, .ai__gains > *, .work__grid > * { grid-column: 1 / -1 !important; }

  .hero__grid { align-content: end; padding-bottom: 100px; }
  .hero__slot { order: -1; height: 38vh; height: 38svh; }
  .about__spacer, .skills__spacer, .contact__slot { position: relative; top: 0; height: 40vh; order: -1; margin-bottom: var(--s-3); }
  .about__text { padding-top: 0; }
  .facts { grid-template-columns: 1fr; }
  .facts li { flex-direction: row; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }

  .ai__intro .ai__spacer, .ai__gains .ai__spacer { display: none; }
  .ai__pin { align-items: stretch; }
  .ai__stage { align-content: start; padding-top: var(--header-h); }
  .ai__stage .ai__spacer { height: calc(24vh + 72px); padding-top: 72px; } /* 72px en haut : la place de sa bulle (elle ne cache plus son visage) */
  .ai__steps { padding-left: 26px; }
  .step { padding: 1.6vh 0; }
  .step.is-active p { max-height: 260px; }

  .work__side .section__head { margin-bottom: var(--s-4); }
  .work__list { display: flex; flex-wrap: wrap; gap: 6px; border: 0; }
  .work__list li { border: 0; }
  .work__list button { display: inline-flex; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-dark); }
  .work__list .n, .work__list .u, .work__list .pbar { display: none; }
  .work__list .w { font-size: 20px; }
  .work__list li.is-active button { background: var(--noir); border-color: var(--noir); }
  .work__list li.is-active .w { color: var(--blanc); transform: none; }
  .work__stage { margin-top: var(--s-4); }
  .work__slot { height: 24vh; width: 60%; margin: 0 auto -9vh; }
  .device__screen { aspect-ratio: 4 / 5; max-height: 52vh; }
  .work__controls { grid-template-columns: 1fr auto; }
  .work__arrows { grid-column: 1 / -1; order: 2; }
  .work__meta { grid-column: 1 / -1; }
  .work__meta .tags { display: none; }

  .form__row, .contact__info { grid-template-columns: 1fr; }
  .footer__slot { height: 32vh; width: 30vh; margin-bottom: -8vh; }

  .console__list { --item: clamp(24px, min(10vw, calc((100dvh - 300px - 26vh) / 7)), 64px); }
  .console__panel { padding-bottom: 26vh; }
  .console__slot { width: 40vw; height: 24vh; bottom: 1vh; }
}

@media (max-width: 560px) {
  .pill { height: 48px; padding: 0 22px; font-size: 17px; }
  .header .pill { padding: 0 16px; height: 40px; }
  .header .pill kbd { display: none; }
  .lang { height: 40px; padding: 3px; }
  .lang button { min-width: 32px; padding: 0 7px; font-size: 15px; }
  .icon-toggle { width: 40px; height: 40px; }
  .hero__tip { display: none; }
  .skill__head { grid-template-columns: 42px 1fr 32px; }
  .skill__inner { padding-left: 0; }
  .gains li { flex-direction: column; gap: 4px; }
  .gains b { text-align: left; }
  .round { width: 46px; height: 46px; }
}

@media (max-width: 400px) {
  .header__logo img { height: 26px; }
  #musicToggle { display: none; }
}

/* sans WebGL : la section Projets garde son fond lavande */
body.no-webgl .work { background: var(--lavande); }
body.no-webgl .stage { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============ (v11) passage « bug » entre 03 et 04 ============ */
.bug { position: relative; height: 340vh; }
.bug__pin { position: sticky; top: 0; height: 100vh; height: 100svh; }
.bug__slot { position: absolute; left: 6vw; right: 6vw; top: 13vh; bottom: 13vh; pointer-events: none; transform-origin: 50% 50%; }
.bubble.is-glitch { font-family: ui-monospace, Consolas, monospace; letter-spacing: .04em; color: #ff4d6d; text-shadow: 2px 0 rgba(0,255,255,.55), -2px 0 rgba(255,0,80,.55); }
@media (max-width: 600px) { .bug { height: 300vh; } .bug__slot { left: 2vw; right: 2vw; top: 12vh; bottom: 16vh; } }

/* ============ (v11) section 04 : volets à cliquer (plus de défilement bloqué) ============ */
.ai__pin { height: auto; min-height: 100vh; padding: 6vh 0; }
.step__h { margin: 0; font: inherit; }
.step__head { all: unset; box-sizing: border-box; display: block; width: 100%; cursor: pointer; padding: 2px 0; border-radius: 6px; }
.step__head:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 6px; }
.step__title { display: block; }
.step:not(.is-active):hover { opacity: .62; }
.step__head::after { content: '+'; float: right; margin-top: -1.1em; font-family: var(--f-label); font-size: 26px; color: var(--violet-2); transition: transform .4s var(--ease); }
.step.is-active .step__head::after { transform: rotate(45deg); }
.ai__hint { font-family: var(--f-label); letter-spacing: .08em; text-transform: uppercase; font-size: 13px; color: var(--violet-2); margin: 0 0 1vh; }
.ai__rail span { transition: height .6s var(--ease); }

/* (v11b) bug plus dramatique : bords rouges qui battent + terminal d'erreurs */
.bug { height: 400vh; }
.bug__alert { position: absolute; inset: 0; pointer-events: none; opacity: var(--alert, 0); background: radial-gradient(ellipse at center, transparent 45%, rgba(227,38,63,.55) 100%); mix-blend-mode: screen; }
.bug__term { position: absolute; left: var(--gutter, 4vw); bottom: 6vh; margin: 0; max-width: min(46ch, 80vw); font: 12px/1.55 ui-monospace, Consolas, monospace; color: #ff4d6d; opacity: 0; white-space: pre-wrap; pointer-events: none; text-shadow: 0 0 10px rgba(255,40,80,.6); transition: opacity .4s, color .4s; }
.bug__term.is-on { opacity: .85; }
.bug__term.is-ok { color: #6dffb0; text-shadow: 0 0 10px rgba(80,255,160,.55); }
.bug__term.is-shake { animation: term-shake .09s steps(2) infinite; }
@keyframes term-shake { 0% { transform: translate(0,0); } 50% { transform: translate(-3px,1px) skewX(-4deg); } 100% { transform: translate(2px,-1px); } }
@media (max-width: 600px) { .bug { height: 340vh; } .bug__term { font-size: 10px; bottom: 4vh; } }
@media (prefers-reduced-motion: reduce) { .bug__term.is-shake { animation: none; } }

/* ============ (v11) Projets : NANO montre le responsive (ordinateur / tablette / mobile) ============ */
.work__sizes { display: flex; gap: 8px; justify-content: center; margin: 0 0 14px; position: relative; z-index: 2; }
.work__sizes button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(11,7,22,.15); font-family: var(--f-label); letter-spacing: .08em; text-transform: uppercase; font-size: 13px; color: var(--noir); transition: background .3s, color .3s, border-color .3s; }
.work__sizes button:hover { border-color: var(--violet); }
.work__sizes button[aria-pressed="true"] { background: var(--noir); color: var(--blanc); border-color: var(--noir); }
.work__sizes button:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.ico { display: inline-block; border: 1.6px solid currentColor; border-radius: 2px; }
.ico--desk { width: 16px; height: 11px; }
.ico--tab { width: 11px; height: 14px; border-radius: 2px; }
.ico--mob { width: 8px; height: 14px; border-radius: 2px; }
.device { margin: 0 auto; width: 100%; will-change: width; }
.device__screen .shot img.alt { display: none; }
.device__grip { position: absolute; right: 0; top: 50%; width: 8px; height: 64px; transform: translate(50%, -50%); border-radius: 4px; background: var(--violet-2); box-shadow: 0 0 16px rgba(143,92,255,.8); z-index: 6; opacity: 0; transition: opacity .3s; pointer-events: none; }
.device.is-resizing .device__grip { opacity: 1; }
.device__badge { position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 10px); z-index: 6; white-space: nowrap; padding: 7px 14px; border-radius: 999px; background: var(--violet); color: var(--blanc); font-family: var(--f-label); letter-spacing: .06em; font-size: 13px; opacity: 0; transition: opacity .4s, transform .4s cubic-bezier(.2,.8,.2,1); pointer-events: none; box-shadow: 0 10px 30px -8px rgba(92,18,247,.7); }
.device.is-small .device__badge { opacity: 1; transform: translate(-50%, 0); }
.device.is-narrow .device__dots, .device.is-narrow .device__count { visibility: hidden; }
.device.is-narrow .device__bar { grid-template-columns: 0 1fr 0; padding: 0 10px; }
@media (max-width: 860px) { .work__sizes button span { display: none; } .work__sizes button { padding: 9px 12px; } }
.device__screen .shot img { position: absolute; left: 0; top: 0; } /* (v11) les 3 versions (ordi / tablette / mobile) sont superposées */

/* (v11c) bug plus long + phrase CMDNE en grand (les bulles sont retirées) */
.bug { height: 540vh; }
.bug__msg { position: absolute; left: 50%; bottom: 4vh; width: min(720px, 88vw); transform: translate(-50%, 16px); margin: 0; text-align: center; font-family: var(--f-title); text-transform: uppercase; font-size: clamp(22px, 2.6vw, 38px); line-height: 1.05; color: var(--blanc); opacity: 0; transition: opacity .7s, transform .7s cubic-bezier(.2,.8,.2,1); pointer-events: none; text-shadow: 0 0 30px rgba(92,18,247,.8); }
.bug__msg em { font-style: normal; color: var(--violet-2); }
.bug__msg.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 600px) { .bug { height: 460vh; } .bug__msg { bottom: 18vh; } }

/* (v11c) NANO tient le bord droit de la fenêtre : sa place suit ce bord */
.device__nano { position: absolute; left: calc(100% + 2px); top: 50%; width: 30vh; height: 34vh; transform: translateY(-50%); pointer-events: none; }
.device.is-held { margin-left: 0 !important; }
@media (max-width: 600px) { .device__nano { width: 26vh; height: 24vh; left: calc(100% - 6vh); } }
.bug__slot { top: 22vh; bottom: 20vh; } /* (v11d) plus petit au départ : il a la place de se rapprocher de l'écran */

/* (v11d) NANO tient la fenêtre par le COIN haut-droit : une main sur le bord du haut, une sur le bord de droite.
   Les points d'accroche sont juste à l'extérieur du cadre (ses mains se posent dessus, sans passer à travers). */
.device__nano { left: calc(100% - 3vh); top: -24vh; width: 24vh; height: 30vh; transform: none; }
.device__hold { position: absolute; width: 2px; height: 2px; pointer-events: none; }
.device__hold--top { right: 46px; top: -5px; }
.device__hold--side { right: -5px; top: 52px; }
.device__grip { top: 0; right: 0; width: 64px; height: 64px; transform: none; border-radius: 0 16px 0 0; background: none; box-shadow: inset -3px 3px 0 var(--violet-2), 0 0 18px rgba(143,92,255,.5); }
@media (max-width: 600px) { .device__nano { left: calc(100% - 12vh); top: -20vh; width: 18vh; height: 22vh; } }
/* (v11d) ordinateur : la fenêtre laisse de la place à droite pour NANO qui tient le coin */
@media (min-width: 861px) { .work__stage .device { width: calc(100% - 16vh); margin-left: 0; margin-right: auto; } .work__sizes { justify-content: flex-start; } }

/* ============ (v12) bouton « Parler à NANO » (à la place de la ligne de commande) ============ */
.console__talk { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 16px; width: 100%; padding: 16px 20px; border-radius: 18px; border: 1px solid rgba(143,92,255,.45); background: linear-gradient(120deg, rgba(92,18,247,.35), rgba(92,18,247,.08)); transition: background .3s, border-color .3s, transform .3s; flex: none; }
.console__talk:hover { border-color: var(--violet-2); background: linear-gradient(120deg, rgba(92,18,247,.55), rgba(92,18,247,.15)); transform: translateY(-2px); }
.console__talk:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 4px; }
.console__talkdot { width: 14px; height: 14px; border-radius: 50%; background: #6dffb0; box-shadow: 0 0 0 0 rgba(109,255,176,.6); animation: talk-pulse 1.6s infinite; flex: none; }
@keyframes talk-pulse { 70% { box-shadow: 0 0 0 12px rgba(109,255,176,0); } 100% { box-shadow: 0 0 0 0 rgba(109,255,176,0); } }
.console__talktxt { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.console__talktxt b { font-family: var(--f-title); text-transform: uppercase; font-weight: 400; font-size: clamp(26px, 2.6vw, 38px); line-height: 1; color: var(--blanc); }
.console__talktxt small { font-size: 14px; color: var(--txt-dim); }
.console__talkarrow { font-size: 28px; color: var(--violet-2); }

/* ============ (v12) conversation avec NANO ============ */
.nchat[hidden] { display: none; }
.nchat__bg { position: fixed; inset: 0; z-index: 60; background: rgba(11,7,22,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
body.chat-open .stage { z-index: 61; }
body.chat-open { overflow: hidden; }
.nchat__slot { position: fixed; left: 50%; top: 9vh; width: 38vw; height: 40vh; transform: translateX(-50%); pointer-events: none; }
.nchat__close { all: unset; box-sizing: border-box; position: fixed; z-index: 63; top: 20px; right: 20px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; font-size: 28px; line-height: 1; color: var(--blanc); border: 1px solid rgba(246,244,255,.3); transition: background .25s, transform .25s; }
.nchat__close:hover { background: var(--violet); transform: rotate(90deg); }
.nchat__close:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 3px; }
.nchat__panel { position: fixed; z-index: 62; left: 50%; bottom: 3vh; transform: translateX(-50%); width: min(760px, 92vw); max-height: 48vh; display: flex; flex-direction: column; gap: 10px; }
.nchat__log { overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 2px; scrollbar-width: thin; min-height: 60px; }
.nchat__msg { display: flex; }
.nchat__msg--you { justify-content: flex-end; }
.nchat__bubble { margin: 0; max-width: 82%; padding: 12px 16px; border-radius: 18px; font-size: 16px; line-height: 1.5; }
.nchat__msg--nano .nchat__bubble { background: rgba(246,244,255,.08); border: 1px solid rgba(143,92,255,.35); color: var(--blanc); border-bottom-left-radius: 6px; }
.nchat__msg--you .nchat__bubble { background: var(--violet); color: var(--blanc); border-bottom-right-radius: 6px; }
.nchat__bubble.is-thinking { display: inline-flex; gap: 6px; padding: 16px 18px; }
.nchat__bubble.is-thinking span { width: 8px; height: 8px; border-radius: 50%; background: var(--violet-2); animation: think 1s infinite ease-in-out; }
.nchat__bubble.is-thinking span:nth-child(2) { animation-delay: .15s; } .nchat__bubble.is-thinking span:nth-child(3) { animation-delay: .3s; }
@keyframes think { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-6px); opacity: 1; } }
.nchat__acts { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 4px; }
.nchat__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nchat__chip { cursor: pointer; font: inherit; font-size: 14px; }
.nchat__form { display: flex; gap: 10px; align-items: center; padding: 8px 8px 8px 20px; border-radius: 999px; background: rgba(246,244,255,.06); border: 1px solid rgba(143,92,255,.5); }
.nchat__form:focus-within { border-color: var(--violet-2); box-shadow: 0 0 0 4px rgba(143,92,255,.2); }
.nchat__form input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--blanc); font: inherit; font-size: 16px; caret-color: var(--violet-2); }
.nchat__form input::placeholder { color: var(--txt-dim); }
.nchat__note { margin: 0; font-size: 12px; color: var(--txt-dim); text-align: center; }
@media (max-width: 600px) { .nchat__slot { width: 80vw; top: 7vh; height: 28vh; } .nchat__panel { max-height: 58vh; bottom: 2vh; } .nchat__bubble { font-size: 15px; } .nchat__close { top: 12px; right: 12px; } }
@media (prefers-reduced-motion: reduce) { .console__talkdot, .nchat__bubble.is-thinking span { animation: none; } }

/* ============ (v12) accueil : titre en 3 tailles (petit / très grand / moyen décalé) ============ */
.hero__title { font-size: clamp(76px, 11.2vw, 200px); line-height: 0.9; margin-bottom: var(--s-4); }
.hero__title .line--a { font-size: 0.3em; letter-spacing: 0.04em; color: var(--lavande); margin-top: 0; }
.hero__title .line--b { font-size: 1em; letter-spacing: -0.01em; margin-top: -0.02em; padding-top: 0.12em; }
.hero__title .line--b em { color: var(--violet-2); }
.hero__title .line--c { font-size: 0.42em; padding-left: 2.4em; margin-top: -0.1em; }
.hero__title .line--c > span::before { content: ''; display: inline-block; vertical-align: middle; width: 1.9em; height: 0.09em; margin: 0 0.5em 0.18em -2.4em; background: var(--violet-2); }
.hero__lead { max-width: 28em; }
@media (max-width: 600px) {
  .hero__title { font-size: clamp(64px, 24vw, 120px); }
  .hero__title .line--a { font-size: 0.32em; }
  .hero__title .line--c { font-size: 0.4em; padding-left: 1.4em; }
  .hero__title .line--c > span::before { width: 1em; margin-left: -1.4em; margin-right: 0.4em; }
}

/* ============ (v12b) Parler à NANO : NANO en très grand + terminal style code sur le côté ============ */
.nchat__slot { left: 0; top: 0; width: 60vw; height: 100vh; height: 100dvh; transform: none; }
.nchat__panel { left: auto; right: 3vw; top: 50%; bottom: auto; transform: translateY(-50%); width: min(520px, 37vw); height: min(82vh, 760px); max-height: none; gap: 0; padding: 0; border-radius: 14px; overflow: hidden;
  background: rgba(6,3,14,.86); border: 1px solid rgba(143,92,255,.45); box-shadow: 0 30px 80px -20px rgba(92,18,247,.6), inset 0 0 60px rgba(92,18,247,.08);
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; }
.nchat__head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid rgba(143,92,255,.3); font-size: 12px; color: var(--txt-dim); flex: none; }
.nchat__dots { display: flex; gap: 6px; } .nchat__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(246,244,255,.2); } .nchat__dots i:first-child { background: #ff5f6d; }
.nchat__path { color: #6dffb0; }
.nchat__bin { margin-left: auto; color: rgba(143,92,255,.75); letter-spacing: .08em; white-space: nowrap; overflow: hidden; max-width: 45%; }
.nchat__log { flex: 1; padding: 14px; gap: 12px; }
.nchat__msg { display: block; }
.nchat__bubble { max-width: none; padding: 0; border: 0 !important; background: none !important; border-radius: 0; font-size: 14px; line-height: 1.6; }
.nchat__msg--you .nchat__bubble { color: #d6c7ff; }
.nchat__msg--you .nchat__bubble::before { content: attr(data-p); color: #6dffb0; }
.nchat__msg--nano .nchat__bubble { color: var(--blanc); }
.nchat__msg--nano .nchat__bubble::before { content: attr(data-p); color: var(--violet-2); font-weight: 700; }
.nchat__msg--nano .nchat__bubble.is-typing::after { content: '▮'; color: var(--violet-2); animation: caret 1s steps(2) infinite; margin-left: 2px; }
@keyframes caret { 50% { opacity: 0; } }
.nchat__bubble.is-thinking { display: block; padding: 0; color: rgba(143,92,255,.9); }
.nchat__bubble.is-thinking span { display: none; }
.nchat__acts { padding-left: 0; } .nchat__acts .pill { font-family: var(--f-label); }
.nchat__chips { padding: 10px 14px 0; border-top: 1px solid rgba(143,92,255,.2); flex: none; }
.nchat__chip { font-family: inherit; font-size: 12px; padding: 6px 10px; border-radius: 6px; background: rgba(143,92,255,.12); border: 1px solid rgba(143,92,255,.35); color: #d6c7ff; }
.nchat__chip:hover { background: rgba(143,92,255,.3); }
.nchat__form { margin: 10px 14px 4px; border-radius: 8px; padding: 6px 6px 6px 12px; background: rgba(0,0,0,.4); flex: none; }
.nchat__prompt { color: #6dffb0; font-weight: 700; }
.nchat__form input { font-family: inherit; font-size: 14px; }
.nchat__form .pill { padding: 10px 16px; font-size: 13px; border-radius: 6px; }
.nchat__note { padding: 0 14px 12px; text-align: left; font-size: 11px; flex: none; }
@media (max-width: 860px) {
  .nchat__slot { width: 100vw; height: 46vh; }
  .nchat__panel { left: 50%; right: auto; top: auto; bottom: 2vh; transform: translateX(-50%); width: 94vw; height: 52vh; }
}

/* ============ (v12b) NOUVEAU STYLE DE BOUTONS « viseur » ============
   En lien avec NANO (son scan violet, sa console) : coins plus techniques, et au survol
   4 coins de viseur apparaissent (comme si NANO scannait le bouton) + un reflet de lumière passe. */
.pill { border-radius: 10px; position: relative; isolation: isolate; overflow: hidden; transition: background .3s, color .3s, border-color .3s, transform .2s, box-shadow .3s; }
.pill::before { content: ''; position: absolute; inset: 4px; pointer-events: none; z-index: 1; opacity: 0; transform: scale(1.08); transition: opacity .3s, transform .35s cubic-bezier(.2,.8,.2,1);
  --c: currentColor; --l: 9px; --w: 1.5px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--w) no-repeat, linear-gradient(var(--c), var(--c)) top left / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--w) no-repeat, linear-gradient(var(--c), var(--c)) top right / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--w) no-repeat, linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--w) no-repeat, linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--l) no-repeat; }
.pill::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.38) 50%, transparent 65%); transform: translateX(-130%); }
.pill:hover::before, .pill:focus-visible::before { opacity: .9; transform: scale(1); }
.pill:hover::after { transform: translateX(130%); transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.pill--violet { box-shadow: 0 10px 30px -12px rgba(92,18,247,.8); }
.pill--violet:hover { background: var(--violet-2); color: var(--blanc); box-shadow: 0 14px 40px -10px rgba(143,92,255,.9); }
.pill--outline-light:hover { background: rgba(246,244,255,.08); color: var(--blanc); border-color: var(--violet-2); }
.pill--lavender:hover { background: var(--violet); color: var(--blanc); }
.round { border-radius: 10px; }
.chip { border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { .pill::after { display: none; } .pill::before { transition: none; } }
@media (min-width: 861px) { .skills__spacer { grid-column: 9 / 13; margin-left: 3vw; margin-right: -1vw; } } /* (v12c) NANO plus loin des volets */

/* ============ (v12c) Parler à NANO : terminal TRANSPARENT en verre, incliné en 3D ============ */
.nchat__bg { background: radial-gradient(ellipse at 30% 50%, rgba(40,10,110,.55), rgba(5,2,14,.9) 70%); }
.nchat__panel { background: linear-gradient(160deg, rgba(143,92,255,.10), rgba(10,5,25,.18) 45%, rgba(61,255,160,.04));
  backdrop-filter: blur(6px) saturate(1.3); -webkit-backdrop-filter: blur(6px) saturate(1.3);
  border: 1px solid rgba(184,148,255,.55); box-shadow: 0 0 0 1px rgba(143,92,255,.15), 0 0 40px rgba(143,92,255,.35), inset 0 0 40px rgba(143,92,255,.12);
  transform: translateY(-50%) perspective(1200px) rotateY(-11deg) rotateX(2deg); transform-origin: 100% 50%; }
.nchat__panel::before { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2; border-radius: inherit;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px); mix-blend-mode: screen; }
.nchat__panel::after { content: ''; position: absolute; left: 0; right: 0; height: 70px; top: -70px; pointer-events: none; z-index: 2;
  background: linear-gradient(transparent, rgba(184,148,255,.14), transparent); animation: nchat-sweep 4.5s linear infinite; }
@keyframes nchat-sweep { to { top: 100%; } }
.nchat__head { background: rgba(10,5,25,.35); }
.nchat__form { background: rgba(10,5,25,.45); }
.nchat__chips { border-top-color: rgba(184,148,255,.25); }
.nchat__msg--nano .nchat__bubble { text-shadow: 0 0 12px rgba(184,148,255,.45); }
@media (max-width: 860px) { .nchat__panel { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .nchat__panel::after { animation: none; display: none; } }
.ai__rail span { display: none; } /* (v12e) plus de barre de progression qui bouge à gauche des volets */

/* ============ (v12f) bug en mode CINÉMA : plus de menu, bandes noires ============ */
.header { transition: opacity .6s, transform .6s; }
body.is-cinema .header { opacity: 0 !important; transform: translateY(-24px) !important; pointer-events: none; }
.bug__pin::before, .bug__pin::after { content: ''; position: absolute; left: 0; right: 0; height: 11vh; background: #000; z-index: 5; pointer-events: none; transform: scaleY(0); transition: transform .9s cubic-bezier(.7,0,.2,1); }
.bug__pin::before { top: 0; transform-origin: top; }
.bug__pin::after { bottom: 0; transform-origin: bottom; }
body.is-cinema .bug__pin::before, body.is-cinema .bug__pin::after { transform: scaleY(1); }
body.is-cinema .bug__msg { bottom: 14vh; }
body.is-cinema .bug__term { bottom: 14vh; }
@media (max-width: 600px) { .bug__pin::before, .bug__pin::after { height: 8vh; } }

/* (v13) bas de page : tout tient dans l'écran, le titre ne passe plus sous le menu du haut */
.footer { min-height: 100svh; display: flex; flex-direction: column; padding-top: calc(var(--header-h) + clamp(28px, 6vh, 64px)); }
.footer__slot { height: auto; flex: 1 1 0; min-height: 20vh; max-height: 42vh; margin: 2vh auto -10vh; }
.footer__giant { font-size: min(25.5vw, 40svh); }
@media (max-width: 860px) {
  .footer__slot { min-height: 24vh; max-height: 40vh; margin-bottom: -6vh; }
}
/* (v13) secours : le code n'a pas démarré -> tout le texte reste lisible */
body.no-js-fallback .hero__title .line > span { transform: none; }
body.no-js-fallback .bug { display: none; }

/* (v13) VISITE GUIDÉE : bouton de l'accueil + sous-titres de NANO */
.tour-btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 8px; border: 0; background: none; color: var(--lavande); font-family: var(--f-label); font-size: 18px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.tour-btn__play { width: 36px; height: 36px; border-radius: 50%; background: var(--violet); position: relative; box-shadow: 0 0 0 0 rgba(92,18,247,.6); animation: tourPulse 2.4s infinite; flex: none; }
.tour-btn__play::after { content: ''; position: absolute; left: 14px; top: 11px; border-left: 11px solid var(--blanc); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.tour-btn:hover { color: var(--blanc); }
.tour-btn:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 4px; border-radius: 8px; }
@keyframes tourPulse { 0% { box-shadow: 0 0 0 0 rgba(92,18,247,.55); } 70% { box-shadow: 0 0 0 14px rgba(92,18,247,0); } 100% { box-shadow: 0 0 0 0 rgba(92,18,247,0); } }
.tour { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 60; width: min(680px, calc(100vw - 32px)); padding: 16px 20px 14px; border-radius: 16px; background: rgba(14,9,32,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(143,92,255,.45); box-shadow: 0 24px 60px -20px rgba(92,18,247,.6); color: var(--blanc); overflow: hidden; transition: opacity .5s, transform .5s; }
.tour.is-quiet { opacity: 0 !important; pointer-events: none; }
.tour__bar { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: rgba(143,92,255,.18); }
.tour__bar span { display: block; height: 100%; width: 0; background: var(--violet-2); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.tour__head { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-family: var(--f-label); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--violet-2); }
.tour__dot { width: 8px; height: 8px; border-radius: 50%; background: #5BE49B; box-shadow: 0 0 10px #5BE49B; }
.tour__num { margin-left: auto; color: var(--txt-dim); }
.tour__txt { margin: 0; min-height: 2.9em; font-size: 18px; line-height: 1.45; }
.tour__btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.tour__b { height: 36px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--violet); color: var(--blanc); font-family: var(--f-label); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.tour__b--ghost { background: transparent; border: 1px solid rgba(246,244,255,.35); }
.tour__b:hover { filter: brightness(1.15); }
body.is-tour .hero__tip { opacity: 0; }
@media (max-width: 860px) {
  .tour { bottom: 12px; padding: 14px 16px 12px; }
  .tour__txt { font-size: 16px; }
  .tour-btn { height: 46px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .tour-btn__play { animation: none; } }

/* (v13) DEVIS AVEC NANO : résumé sous les choix */
.qsum { display: flex; gap: 14px; align-items: flex-start; margin: 4px 0 28px; padding: 14px 16px; border-radius: 14px; border: 1px dashed rgba(143,92,255,.45); background: rgba(92,18,247,.06); transition: background .4s, border-color .4s; }
.qsum.is-on { border-style: solid; border-color: rgba(143,92,255,.75); background: rgba(92,18,247,.14); }
.qsum__icon { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--violet); position: relative; box-shadow: 0 0 18px rgba(92,18,247,.6); }
.qsum__icon::before, .qsum__icon::after { content: ''; position: absolute; left: 8px; right: 8px; height: 2px; background: var(--blanc); border-radius: 2px; }
.qsum__icon::before { top: 12px; } .qsum__icon::after { top: 19px; right: 13px; }
.qsum__k { margin: 0 0 2px; font-family: var(--f-label); letter-spacing: .12em; text-transform: uppercase; font-size: 14px; color: var(--violet-2); }
.qsum__t { margin: 0; font-size: 16px; line-height: 1.5; color: var(--txt); }

/* (v13c) CINÉMATIQUE de la visite guidée (interrupteurs : CINE dans tour.js) */
.cine-bars { position: fixed; inset: 0; z-index: 55; pointer-events: none; }
.cine-bars i { position: absolute; left: 0; right: 0; height: 11vh; background: #000; transform: scaleY(0); transition: transform .9s cubic-bezier(.7,0,.2,1); }
.cine-bars i:first-child { top: 0; transform-origin: top; }
.cine-bars i:last-child { bottom: 0; transform-origin: bottom; }
body.is-cine .cine-bars i { transform: scaleY(1); }
body.is-cine.is-cinema .cine-bars i { transform: scaleY(0); } /* le bug a déjà ses propres bandes */
body.is-cine .header { opacity: 0 !important; pointer-events: none; transform: translateY(-24px); }
body.is-cine .tour { bottom: calc(11vh - 40px); background: rgba(6,3,14,.72); }
/* vol : la page se floute et s'assombrit pendant le tunnel de lumière */
#main, .footer { transition: filter .55s ease; }
body.is-warp #main, body.is-warp .footer { filter: blur(7px) brightness(.35) saturate(1.3); }
body.is-flash::after { content: ''; position: fixed; inset: 0; z-index: 54; pointer-events: none; background: radial-gradient(circle at 50% 50%, rgba(214,199,255,.55), rgba(92,18,247,0) 60%); animation: cineFlash .45s ease-out forwards; }
@keyframes cineFlash { from { opacity: 1; } to { opacity: 0; } }
/* maintenir pour passer : le bouton se remplit */
.tour__b--ghost { background: linear-gradient(90deg, var(--violet) calc(var(--hold, 0) * 100%), transparent 0); touch-action: none; user-select: none; -webkit-user-select: none; }
@media (max-width: 860px) { .cine-bars i { height: 8vh; } body.is-cine .tour { bottom: 10px; } }
@media (prefers-reduced-motion: reduce) { body.is-warp #main, body.is-warp .footer { filter: none; } }

/* =========================================================
   (v14 · 17.11.2026) CORRECTIONS TÉLÉPHONE
   ========================================================= */
@media (max-width: 860px) {
  /* bandeau du haut plein : le texte ne passe plus sous le logo et les boutons */
  .header::before { inset: 0; opacity: 1; background: rgba(11,7,22,.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.06); }
  .header.is-light::before { opacity: 1; background: rgba(246,244,255,.88); border-bottom-color: rgba(11,7,22,.08); }
}
@media (max-width: 860px) {
  /* Projets : NANO ne se pose plus sur les boutons Ordinateur / Tablette / Mobile */
  .work__slot { margin-bottom: 0; }
  .work__sizes { justify-content: flex-start; }
}
@media (max-width: 600px) {
  /* Parler à NANO : plus de place pour lire ses réponses */
  .nchat__slot { height: 36vh; }
  .nchat__panel { height: 60vh; height: 60dvh; bottom: 1.5vh; }
  .nchat__chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nchat__chips::-webkit-scrollbar { display: none; }
  .nchat__chips > * { flex: none; }
  .nchat__note { font-size: 10px; }
}
/* (v14) bug sur téléphone : hauteur stable (la barre d'adresse ne la change plus) + doigt bloqué pendant l'animation automatique */
@media (max-width: 600px) { .bug { height: 460svh; } }
html.is-autoplay, html.is-autoplay body { overflow: hidden; overscroll-behavior: none; touch-action: none; }
/* (v14d) Projets sur téléphone : pas de boutons de taille ni de démo ; le site est montré en version mobile, centré */
@media (max-width: 860px) {
  .work__sizes { display: none; }
  .work__stage .device { margin-left: auto; margin-right: auto; }
}
/* (v14d) téléphone : moins de vide, NANO ne cache plus la consigne de la méthode IA */
@media (max-width: 860px) {
  :root { --sec-pad: clamp(64px, 9vh, 96px); }
  .about__spacer, .skills__spacer, .contact__slot { height: 32vh; height: 32svh; }
  .ai__stage .ai__spacer { height: calc(28vh + 72px); }
  .ai__hint { margin-top: 2vh; }
  .work__slot { height: 16vh; margin-bottom: 0; }
  .footer { min-height: 0; }
  .footer__slot { flex: none; height: 30vh; min-height: 0; }
}
/* (v14e, 23.11.2026) téléphone : la consigne de la méthode IA plus bas, sous les pieds de NANO (avant : il la cachait). Annuler = supprimer ce bloc. */
@media (max-width: 860px) {
  .ai__hint { margin-top: calc(2vh + 40px); }
}

/* =====================================================================
   (v15 · 23.11.2026) VERSION TÉLÉPHONE SIMPLE — seulement avec html.tel-simple
   (classe posée par main.js si TEL_SIMPLE = true et largeur ≤ 860 px). Annuler : TEL_SIMPLE = false.
   ===================================================================== */
/* la place fixe de NANO (coin bas-droit) : n'existe que sur téléphone */
.tel-dock { display: none; }
.tel-simple .tel-dock { display: block; position: fixed; right: 4px; bottom: 4px; width: 80px; height: 100px; pointer-events: none; z-index: 1; }

/* accueil : titre, phrase et boutons d'abord ; NANO dessous */
.tel-simple .hero__grid { align-content: start; min-height: 0; padding-bottom: 24px; }
.tel-simple .hero__slot { order: 0; height: 30vh; height: 30svh; }
.tel-simple .hero__foot { display: none; }

/* métiers : la phrase est visible tout de suite, le « + » ouvre le reste */
.tel-simple .skill__body { grid-template-rows: 1fr; }
.tel-simple .skill:not(.is-open) .skill__inner > :not(p) { display: none; }
.tel-simple .skill__inner > p { margin: 0 0 18px; color: var(--txt); }
.tel-simple .skill__head { padding-bottom: 10px; }

/* plus d'espaces vides réservés à NANO */
.tel-simple .about__spacer, .tel-simple .skills__spacer, .tel-simple .ai__stage .ai__spacer,
.tel-simple .work__slot, .tel-simple .contact__slot, .tel-simple .footer__slot { display: none; }

/* méthode IA : les 4 étapes ouvertes, en liste simple */
.tel-simple .ai__hint, .tel-simple .ai__rail { display: none; }
.tel-simple .step { opacity: 1; }
.tel-simple .step p { max-height: none; margin-top: 10px; }
.tel-simple .step__head { cursor: default; }
.tel-simple .step__head::after { content: none; }
/* menu : pas de numéros (sur téléphone, l'ordre des sections n'est plus 01, 02, 03…) */
.tel-simple .console__item .n { display: none; }

/* (v16 · 23.11.2026) TÉLÉPHONE : SECTIONS EN CARTES + PIED DE PAGE RANGÉ — actif seulement avec html.tel-simple.tel-cartes
   (interrupteur TEL_CARTES dans main.js ; false = annuler). Source : _sources/essais-v16/final.css */
/* =====================================================================
   v16 « CARTES » CORRIGÉ (choix de Rayan + corrections des juges) — téléphone seulement (html.tel-simple)
   Idée : chaque section sombre devient une carte aux coins arrondis,
   séparée de la suivante par un espace. Le pied de page est la dernière carte,
   rangée et calme. Rien ne change sur ordinateur (tout commence par .tel-simple).
   Annuler : retirer ce fichier.
   ===================================================================== */


/* ---------- 1. Les cartes ----------
   Sections concernées : Savoir-faire, Agence, Méthode IA, Contact.
   L'accueil reste plein écran. Projets garde son fond lavande à vagues.
   Fond TRÈS légèrement plus clair (presque transparent) : NANO est dessiné
   derrière le texte, il doit rester bien visible à travers la carte.        */
.tel-simple.tel-cartes .skills,
.tel-simple.tel-cartes .about,
.tel-simple.tel-cartes .ai,
.tel-simple.tel-cartes .contact {
  margin: 0 8px 32px;            /* (corr.) cartes plus larges : le texte garde sa largeur */
  padding: 52px 0 44px;          /* (corr.) plus d'air dans chaque carte */
  border: 1px solid rgba(246, 244, 255, 0.16);
  border-radius: 22px;
  background: rgba(246, 244, 255, 0.04);
}

/* espace net avant et après la section Projets (lavande) */
.tel-simple.tel-cartes .ai { margin-bottom: 40px; }
.tel-simple.tel-cartes .contact { margin-top: 40px; }

/* l'accueil laisse un petit souffle avant la première carte */
.tel-simple.tel-cartes .hero { margin-bottom: 8px; }


/* ---------- 2. L'intérieur des cartes ----------
   Marges intérieures un peu plus petites (la carte a déjà ses marges). */
.tel-simple.tel-cartes .skills .wrap,
.tel-simple.tel-cartes .about .wrap,
.tel-simple.tel-cartes .ai .wrap,
.tel-simple.tel-cartes .contact .wrap,
.tel-simple.tel-cartes .footer .wrap {
  padding-left: 16px;
  padding-right: 16px;
}

/* titre de section un peu moins loin du texte */
.tel-simple.tel-cartes .skills .section__head,
.tel-simple.tel-cartes .about .section__head,
.tel-simple.tel-cartes .ai .section__head,
.tel-simple.tel-cartes .contact .section__head { margin-bottom: 32px; }

/* la dernière ligne d'une carte ne colle pas au bord du bas */
.tel-simple.tel-cartes .statement { margin-bottom: 36px; }
.tel-simple.tel-cartes .contact__info { margin-bottom: 40px; }

/* Agence : « Métiers » et sa valeur passent à la ligne si l'écran est étroit */
.tel-simple.tel-cartes .facts li { flex-wrap: wrap; gap: 4px 16px; }
.tel-simple.tel-cartes .facts__v { text-align: right; margin-left: auto; }


/* ---------- 3. Méthode IA : plus de grand vide ----------
   Sur téléphone, les 4 étapes sont une simple liste : plus besoin d'un écran entier. */
.tel-simple.tel-cartes .ai__pin { min-height: 0; padding: 28px 0 0; }
.tel-simple.tel-cartes .ai__stage { padding-top: 0; }
.tel-simple.tel-cartes .ai__gains { margin-top: 36px; }
.tel-simple.tel-cartes .gains { margin-bottom: 28px; }


/* ---------- 4. Pied de page : la carte finale ----------
   Même carte que les sections. Tout est empilé à gauche, une chose par ligne. */
.tel-simple.tel-cartes .footer {
  min-height: 0;
  margin: 40px 8px 12px;
  padding: 40px 0 max(32px, env(safe-area-inset-bottom));
  border: 1px solid rgba(246, 244, 255, 0.16);
  border-radius: 22px;
  background: rgba(246, 244, 255, 0.04);
}

/* 4a. la phrase, puis les liens dessous (plus côte à côte) */
.tel-simple.tel-cartes .footer__top {
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}
.tel-simple.tel-cartes .footer__claim {
  font-size: 40px;
  line-height: 1;
  max-width: none;
}

/* 4b. (corr.) les liens rangés en 2 colonnes, un trait fin sous chacun (plus de pastilles en vrac) */
.tel-simple.tel-cartes .footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; width: 100%; font-size: 17px; }
.tel-simple.tel-cartes .footer__links li { border-bottom: 1px solid rgba(246, 244, 255, 0.12); }
.tel-simple.tel-cartes .footer__links li:last-child { grid-column: 1 / -1; }
.tel-simple.tel-cartes .footer__links a { display: flex; align-items: center; height: 48px; padding-top: 2px; color: var(--lavande); }
.tel-simple.tel-cartes .footer__links a:active { color: var(--violet-2); }

/* 4c. le grand « CMDNE. » devient une petite signature :
   il ne chevauche plus les liens, il ne dépasse plus. */
.tel-simple.tel-cartes .footer__giant {
  font-size: 60px;
  line-height: 0.9;
  text-align: left;
  margin: 40px 0 0;
  padding: 0 16px;              /* (v16b) même marge que le reste du pied de page (avant : décalé sur tablette) */
  z-index: auto;
}

/* 4d. la ligne du bas : une info par ligne, rangée à gauche.
   La droite reste vide (padding-right) : c'est la place de NANO.
   Rien de cliquable dans les 110 px du coin bas-droit.               */
.tel-simple.tel-cartes .footer__bottom {
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 24px;
  padding-top: 24px;
  font-size: 15px;
  line-height: 1.5;
}
.tel-simple.tel-cartes .footer__bottom .hide-md { display: none !important; }
/* (corr.) la droite reste vide pour NANO : règle plus forte que « .footer .wrap » (le © passait sous le robot) */
.tel-simple.tel-cartes .footer .footer__bottom { padding-right: 96px; }

/* (corr.) ordre : le © d'abord (discret), puis mentions légales, puis le bouton « Retour en haut » en dernier, à gauche */
.tel-simple.tel-cartes .footer__bottom a[href="mentions-legales.html"] {
  order: 1;
  color: var(--txt);
  text-decoration: underline;
  text-decoration-color: rgba(246, 244, 255, 0.3);
  text-underline-offset: 4px;
}
.tel-simple.tel-cartes .footer__bottom a[href="#accueil"] {
  order: 2;
  display: inline-flex;
  align-items: center;
  height: 48px;                   /* (corr.) assez grand pour le doigt */
  padding: 2px 20px 0;
  border: 1px solid rgba(246, 244, 255, 0.35);
  border-radius: 999px;
  font-family: var(--f-label); font-size: 17px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--lavande);
}
.tel-simple.tel-cartes .footer__bottom > span:first-child { order: 0; color: var(--txt-dim); white-space: normal; }

/* (v16) le « + » des métiers passe à GAUCHE (avant le numéro) : à droite, il passait sous NANO (coin fixe bas-droit) */
.tel-simple.tel-cartes .skill__head { grid-template-columns: 36px 28px 1fr; gap: 10px; }
.tel-simple.tel-cartes .skill__icon { order: -1; }
/* (v16) saut par lien (menu, pied de page, « Obtenir un devis ») : le haut de la carte arrive sous la barre fixe du haut.
   On garde la place de la barre dans le haut de chaque carte : le titre reste visible. */
.tel-simple.tel-cartes .skills, .tel-simple.tel-cartes .about, .tel-simple.tel-cartes .ai, .tel-simple.tel-cartes .contact {
  padding-top: calc(var(--header-h) + 14px);
}

/* (v16b) « E-COMMERCE » ne se coupe plus au trait d'union (partout : ordinateur et téléphone) */
.skill__name .nw { white-space: nowrap; }

/* (v16b · 23.11.2026) ROTATION : un téléphone/tablette ouvert en portrait (version téléphone) puis tourné en paysage (> 860 px)
   garde la version téléphone (ordre des sections, NANO au coin). On garde donc aussi sa mise en page en UNE colonne,
   centrée et pas trop large (avant : texte poussé d'un côté, cartes à moitié vides). Rien ne change sur ordinateur (pas de .tel-simple). */
@media (min-width: 861px) {
  .tel-simple .wrap { max-width: 760px; margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }
  .tel-simple .hero__grid, .tel-simple .about__grid, .tel-simple .skills__grid, .tel-simple .contact__grid,
  .tel-simple .ai__intro, .tel-simple .ai__stage, .tel-simple .ai__gains, .tel-simple .work__grid { grid-template-columns: 1fr; }
  .tel-simple .hero__grid > *, .tel-simple .about__grid > *, .tel-simple .skills__grid > *, .tel-simple .contact__grid > *,
  .tel-simple .ai__intro > *, .tel-simple .ai__stage > *, .tel-simple .ai__gains > *, .tel-simple .work__grid > * { grid-column: 1 / -1 !important; }
  .tel-simple .about__text { padding-top: 0; }
  .tel-simple .facts { grid-template-columns: 1fr; }
  .tel-simple .facts li { flex-direction: row; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .tel-simple .ai__pin { align-items: stretch; }
  .tel-simple .ai__steps { padding-left: 26px; }
  .tel-simple .work__stage { margin-top: var(--s-4); }
  .tel-simple .form__row, .tel-simple .contact__info { grid-template-columns: 1fr; }
  .tel-simple .footer__giant, .tel-simple.tel-cartes .footer__giant { width: 100%; max-width: 760px; margin-left: auto; margin-right: auto; }
}
/* (v16b) accueil et Projets (pas des cartes) : même marge que le texte des cartes (8 px de carte + 16 px) → tout est aligné */
@media (max-width: 860px) {
  .tel-simple.tel-cartes .hero .wrap, .tel-simple.tel-cartes .work .wrap { padding-left: 24px; padding-right: 24px; }
}

/* (v17 · 23.11.2026) TÉLÉPHONE : BARRE DU HAUT NETTE + PLUS D'ESPACE SOUS ELLE — actif avec html.tel-simple.tel-haut (interrupteur TEL_HAUT dans main.js)
   Rayan (iPhone 16) : « le logo, les langues et le menu en faible opacité, trop collés à la section ». */
/* pas de transition d'opacité (elle se battait avec l'animation d'entrée sur Safari) */
.tel-simple.tel-haut .header { opacity: 1; transition: transform .5s var(--ease), color .4s; }
/* fond PLEIN : la lueur de NANO et les étoiles ne passent plus à travers (avant : 86 % + flou) */
.tel-simple.tel-haut .header::before { inset: 0; background: #0B0716; opacity: 1; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid rgba(246, 244, 255, .1); }
.tel-simple.tel-haut .header.is-light::before { background: #F6F4FF; border-bottom-color: rgba(11, 7, 22, .1); }
/* plus d'air entre la barre et le titre de l'accueil (avant : 42 px) */
.tel-simple.tel-haut .hero__grid { padding-top: calc(var(--header-h) + 80px); }
/* (v17) fond aussi sur la barre elle-même : Safari 26 prend la couleur des éléments fixes en haut pour teinter la zone de l'heure */
.tel-simple.tel-haut .header { background-color: #0B0716; }
.tel-simple.tel-haut .header.is-light { background-color: #F6F4FF; }
/* (v17) les boutons de la barre bien nets (avant : « EN », « …. » et contours à 14-52 % = « faible opacité »).
   :not(.is-light) → la version claire (section Projets) garde ses couleurs sombres. */
.tel-simple.tel-haut .header:not(.is-light) .lang,
.tel-simple.tel-haut .header:not(.is-light) .icon-toggle { border-color: rgba(246, 244, 255, .38); color: rgba(246, 244, 255, .9); }
.tel-simple.tel-haut .header:not(.is-light) .lang button:not([aria-pressed="true"]) { color: rgba(246, 244, 255, .9); }
.tel-simple.tel-haut #musicToggle svg { opacity: 1; }
