@import url('fonts.css');

/* ============================================================
   fabiobuteraprojets.dev — systeme de design
   Identite : tableau de bord d'instrument. Fond bleu-noir profond,
   accent ambre "signal" en rappel des matrices LED du Neurokicker.
   ============================================================ */

:root {
  /* --- couleurs : theme sombre par defaut --- */
  --bg:          #0A0F14;
  --bg-alt:      #0D141B;
  --surface:     #111A22;
  --surface-2:   #17222C;
  --line:        #22303B;
  --line-strong: #31424F;
  --text:        #E9EFF4;
  --muted:       #8DA0AF;
  --accent:      #F5A524;   /* texte + traits sur fond sombre */
  --accent-fill: #F5A524;   /* aplats */
  --on-accent:   #0A0F14;   /* texte pose sur un aplat d'accent */
  --accent-dim:  rgba(245, 165, 36, .13);
  --good:        #4FC08A;
  --shadow:      0 1px 2px rgba(0,0,0,.5), 0 18px 44px rgba(0,0,0,.42);

  /* --- typographie --- */
  --font-sans: 'Archivo', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;

  /* --- rythme --- */
  --gutter: clamp(20px, 5vw, 48px);
  --measure: 66ch;
  --radius: 14px;
  --radius-sm: 9px;
  --section-y: clamp(72px, 11vw, 132px);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg:          #F4F6F7;
    --bg-alt:      #EAEEF0;
    --surface:     #FFFFFF;
    --surface-2:   #F0F3F5;
    --line:        #DDE3E7;
    --line-strong: #C3CCD3;
    --text:        #0D141A;
    --muted:       #5A6874;
    --accent:      #9A6206;
    --accent-fill: #F5A524;
    --on-accent:   #14100A;
    --accent-dim:  rgba(245, 165, 36, .16);
    --good:        #157347;
    --shadow:      0 1px 2px rgba(13,20,26,.05), 0 14px 36px rgba(13,20,26,.08);
  }
}

/* le selecteur du bouton de theme doit gagner dans les deux sens */
:root[data-theme="light"] {
  --bg:#F4F6F7; --bg-alt:#EAEEF0; --surface:#FFFFFF; --surface-2:#F0F3F5;
  --line:#DDE3E7; --line-strong:#C3CCD3; --text:#0D141A; --muted:#5A6874;
  --accent:#9A6206; --accent-fill:#F5A524; --on-accent:#14100A;
  --accent-dim:rgba(245,165,36,.16); --good:#157347;
  --shadow:0 1px 2px rgba(13,20,26,.05), 0 14px 36px rgba(13,20,26,.08);
}
:root[data-theme="dark"] {
  --bg:#0A0F14; --bg-alt:#0D141B; --surface:#111A22; --surface-2:#17222C;
  --line:#22303B; --line-strong:#31424F; --text:#E9EFF4; --muted:#8DA0AF;
  --accent:#F5A524; --accent-fill:#F5A524; --on-accent:#0A0F14;
  --accent-dim:rgba(245,165,36,.13); --good:#4FC08A;
  --shadow:0 1px 2px rgba(0,0,0,.5), 0 18px 44px rgba(0,0,0,.42);
}

/* ---------------- base ---------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* `clip` et non `hidden` : `hidden` transformerait body en conteneur de
     defilement et casserait scroll-padding-top et le defilement fluide.
     Le halo du hero est de toute facon contenu par .hero { overflow:hidden }. */
  overflow-x: clip;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -.028em;
  text-wrap: balance;
  font-weight: 800;
}
h1 { font-size: clamp(2.4rem, 6.2vw, 4.3rem); }
h2 { font-size: clamp(1.85rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 750; }
h4 { font-size: 1.02rem; font-weight: 700; letter-spacing: -.012em; }

p { margin: 0 0 1.05rem; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

img { max-width: 100%; height: auto; display: block; }

:where(a, button, input, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent-fill);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent-fill); color: var(--on-accent);
  padding: .8rem 1.3rem; font-weight: 700; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.shell { width: min(1200px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }

/* ---------------- typographie utilitaire ---------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 1rem;
}
.lede { font-size: clamp(1.05rem, 1.9vw, 1.24rem); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }

.section-head { margin-bottom: clamp(36px, 5vw, 60px); max-width: 62ch; }
.section-head p { margin-top: 1rem; }

/* ---------------- navigation ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 22px; height: 72px; }
.brand {
  font-weight: 800; letter-spacing: -.03em; font-size: 1.02rem;
  color: var(--text); text-decoration: none; margin-right: auto; white-space: nowrap;
}
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 550;
  padding: .5rem .8rem; border-radius: 100px; display: block; transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--text); background: var(--surface-2); }

.icon-btn {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; flex: none; transition: color .2s, border-color .2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
.icon-btn svg { width: 17px; height: 17px; fill: currentColor; }
.theme-btn .moon { display: none; }
:root[data-theme="light"] .theme-btn .moon,
:root:not([data-theme="dark"]) .theme-btn .moon { display: block; }
:root[data-theme="light"] .theme-btn .sun,
:root:not([data-theme="dark"]) .theme-btn .sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .moon { display: none; }
  :root:not([data-theme="light"]) .theme-btn .sun { display: block; }
}
:root[data-theme="dark"] .theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }

.nav-toggle { display: none; }
@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .nav-links {
    position: fixed; inset: 72px 0 auto; flex-direction: column; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 22px; transform: translateY(-120%);
    transition: transform .32s cubic-bezier(.4,0,.2,1); box-shadow: var(--shadow);
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-links a { padding: .85rem .4rem; font-size: 1.02rem; border-radius: 0; }
}

/* ---------------- boutons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-sans); font-size: .95rem; font-weight: 650;
  padding: .82rem 1.5rem; border-radius: 100px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .18s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn--primary { background: var(--accent-fill); color: var(--on-accent); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent-fill) 86%, white); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--accent-fill); color: var(--accent); }
.btn svg { width: 16px; height: 16px; fill: currentColor; flex: none; }

/* ---------------- hero ---------------- */
.hero { padding-block: clamp(56px, 9vw, 104px) var(--section-y); position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -30% 40% 40% -20%; pointer-events: none;
  background: radial-gradient(circle, var(--accent-dim), transparent 66%);
  filter: blur(38px);
}
.hero-grid {
  position: relative; display: grid; gap: clamp(40px, 5vw, 68px);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center;
}
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { margin-bottom: 1.4rem; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: clamp(1.06rem, 2vw, 1.22rem); color: var(--muted); max-width: 54ch; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 2.2rem; }

.hero-proof { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  font-family: var(--font-mono); font-size: .73rem; letter-spacing: .05em;
  color: var(--muted); border: 1px solid var(--line); border-radius: 100px;
  padding: .42em .85em; white-space: nowrap;
}

/* --- panneau "scoreboard" du hero --- */
.board {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.board-top {
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.led { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-fill); flex: none; }
.board-top .led { animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .28; } }

.board-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.metric { background: var(--surface); padding: 18px 16px; }
/* en nombre impair, la derniere metrique prend toute la largeur : sinon la
   cellule vide laisse voir le fond de la grille, qui est la couleur des filets */
.metric:last-child:nth-child(odd) { grid-column: 1 / -1; }
.metric b {
  display: block; font-family: var(--font-mono); font-size: 1.72rem; font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: -.03em; color: var(--accent); line-height: 1;
}
.metric span { display: block; font-size: .8rem; color: var(--muted); margin-top: .45rem; line-height: 1.35; }

.board-note {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: .87rem; color: var(--muted);
}
.board-note a { font-weight: 600; }

/* ---------------- chaine capteur -> cloud ---------------- */
.chain { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; counter-reset: stage; }
@media (max-width: 1020px) { .chain { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px)  { .chain { grid-template-columns: repeat(2, 1fr); } }

.stage {
  counter-increment: stage; position: relative; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px 16px 18px; transition: border-color .25s, transform .25s;
}
.stage:hover { border-color: var(--accent-fill); transform: translateY(-3px); }
.stage::before {
  content: counter(stage, decimal-leading-zero);
  font-family: var(--font-mono); font-size: .68rem; font-weight: 700;
  color: var(--accent); display: block; margin-bottom: .9rem;
}
.stage h3 { font-size: .99rem; font-weight: 700; margin-bottom: .4rem; letter-spacing: -.015em; }
.stage p { font-size: .82rem; color: var(--muted); line-height: 1.5; margin: 0; }

/* ---------------- etude de cas ---------------- */
.case {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.case-media { position: relative; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.case-body { padding: clamp(26px, 4vw, 48px); }
.case-body h3 { margin-bottom: 1.1rem; }
.case-grid { display: grid; gap: clamp(28px, 4vw, 52px); grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
@media (max-width: 900px) { .case-grid { grid-template-columns: 1fr; } }

.badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 1rem; }
.badge {
  font-family: var(--font-mono); font-size: .67rem; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 600; padding: .4em .75em;
  border-radius: 100px; border: 1px solid var(--line-strong); color: var(--muted);
}
.badge--live { color: var(--good); border-color: var(--good); display: inline-flex; align-items: center; gap: .45em; }
.badge--live .led { width: 6px; height: 6px; background: var(--good); }
.badge--accent { color: var(--accent); border-color: var(--accent-fill); }
/* projet arrete : la pastille est le pendant eteint de celle de --live */
.badge--archived {
  color: var(--muted); border-color: var(--line); background: var(--surface-2);
  display: inline-flex; align-items: center; gap: .45em;
}
.badge--archived .led { width: 6px; height: 6px; background: var(--line-strong); }

.stack { display: flex; flex-wrap: wrap; gap: 7px; margin: 1.3rem 0; }
.stack span {
  font-family: var(--font-mono); font-size: .74rem; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 6px; padding: .35em .65em;
}

.facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.facts div { background: var(--surface); padding: 15px 18px; }
.facts dt {
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .11em;
  text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: .3rem;
}
.facts dd { margin: 0; font-size: .93rem; }
.facts dd b { color: var(--accent); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* --- diagramme d'architecture --- */
.arch { display: grid; gap: 8px; margin-top: 1.6rem; }
.arch-node {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 16px; position: relative;
}
.arch-node + .arch-node::before {
  content: ''; position: absolute; top: -9px; left: 30px; width: 1px; height: 8px; background: var(--line-strong);
}
.arch-node .k {
  font-family: var(--font-mono); font-size: .64rem; font-weight: 700; color: var(--accent);
  border: 1px solid var(--line-strong); border-radius: 5px; padding: .3em .5em; white-space: nowrap;
}
.arch-node .v { font-size: .88rem; }
.arch-node .v em { font-style: normal; color: var(--muted); display: block; font-size: .8rem; }

/* ---------------- carrousel (scroll-snap, sans librairie) ---------------- */
.carousel { position: relative; }
.track {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: 0; margin: 0; list-style: none;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.track::-webkit-scrollbar { height: 6px; }
.track::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
.track > li { flex: 0 0 100%; scroll-snap-align: center; }
.track img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

/* Captures d'ecran de telephone : portrait (~0.5). En "cover" elles seraient
   recadrees jusqu'a l'illisible — on les affiche entieres sur un fond neutre.
   Le cadre est en 3/4 (et non 4/3) : en 4/3 la capture ne faisait plus que
   ~120px de large dans une carte de 354px, texte illisible. La carte devient
   plus haute que ses voisines de rangee, c'est le prix de la lisibilite. */
.track--phone img {
  aspect-ratio: 3/4;
  object-fit: contain;
  background: var(--surface-2);
  padding: 12px 0;
}
.case-media .track > li { flex-basis: 100%; }

.car-nav { position: absolute; inset: auto 14px 14px auto; display: flex; gap: 8px; }
.car-nav button {
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong); color: var(--text);
  display: grid; place-items: center; transition: background .2s, border-color .2s;
}
.car-nav button:hover { border-color: var(--accent-fill); color: var(--accent); }
.car-nav svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------------- grille de projets ---------------- */
.projects { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: border-color .25s, transform .25s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin-bottom: .5rem; }
.card .pitch { color: var(--muted); font-size: .93rem; margin-bottom: .9rem; }
.card .stack { margin-top: auto; padding-top: 1.1rem; }
.card--soon { opacity: .96; }
.card--soon .card-media { display: grid; place-items: center; padding: 40px; background: var(--surface-2); }
.card--soon .card-media img { width: 120px; height: auto; aspect-ratio: auto; opacity: .55; filter: grayscale(1); }

details.more { margin-top: 1.1rem; border-top: 1px solid var(--line); padding-top: .9rem; }
details.more summary {
  cursor: pointer; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); font-weight: 600; list-style: none;
}
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: ' +'; }
details.more[open] summary::after { content: ' −'; }
details.more .inner { padding-top: .9rem; font-size: .9rem; color: var(--muted); }
details.more .inner p { margin-bottom: .6rem; }
details.more strong { color: var(--text); }

/* Renvoi vers applications.html en fin de #projets. Sans lui, la page n'est
   atteignable que par le lien de nav, qui ne s'active jamais au defilement
   puisqu'il ne designe pas une section : en scrollant, on ne la voit jamais. */
.apps-cta {
  margin-top: 20px; display: flex; flex-wrap: wrap; gap: 18px;
  align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px;
}
.apps-cta p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------------- expertise par domaine ---------------- */
.domains { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.domain {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
  border-top: 2px solid var(--accent-fill);
}
.domain h3 { font-size: 1.08rem; margin-bottom: .7rem; }
.domain ul { list-style: none; margin: 0 0 1.1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.domain li {
  font-family: var(--font-mono); font-size: .74rem; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: .32em .6em;
}
.proof {
  font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line);
  padding-top: .85rem; margin: 0;
}
.proof a { font-weight: 600; }

/* ---------------- parcours ---------------- */
.about-grid { display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: minmax(0, 320px) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.portrait { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.certs { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 10px; }
.certs li {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: baseline;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 13px 17px; font-size: .93rem;
}
.certs .led { width: 7px; height: 7px; }

/* ---------------- contact ---------------- */
.contact-grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); }

.field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.field label { font-size: .84rem; font-weight: 650; }
.field input, .field textarea {
  font-family: var(--font-sans); font-size: .95rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .75rem .9rem; width: 100%; transition: border-color .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--accent-fill); }
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; gap: 0 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.channels { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: 16px; }
.channels li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.channels svg { width: 19px; height: 19px; fill: var(--accent); margin-top: 3px; }
.channels b { display: block; font-size: .93rem; }
.channels a, .channels span { color: var(--muted); font-size: .9rem; text-decoration: none; }
.channels a:hover { color: var(--accent); }

/* pas de variante .ok : un envoi reussi masque le formulaire au profit de
   #form-done, ce paragraphe ne sert donc qu'a annoncer les echecs */
#form-status { margin-top: 1rem; font-size: .9rem; min-height: 1.4em; }
#form-status.err { color: #F0666D; }

/* piège anti-spam : hors flux et invisible, mais atteignable par les bots */
.gotcha { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* état de confirmation qui remplace le formulaire après un envoi réussi */
.form-done { display: flex; gap: 14px; align-items: flex-start; }
.form-done[hidden] { display: none; }
.form-done svg { flex: 0 0 auto; width: 26px; height: 26px; fill: var(--good); margin-top: 2px; }
.form-done b { display: block; font-size: 1.05rem; margin-bottom: .3rem; }
.form-done p { color: var(--muted); font-size: .92rem; }

/* ---------------- page applications ---------------- */
/* Pas de visuel par appli : une pastille monogramme evite d'ajouter des icones
   au depot pour des produits dont l'identite n'est pas encore figee. */
.apps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.app {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: clamp(18px, 3vw, 32px); align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px;
  transition: border-color .25s, transform .25s;
}
.app:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.app-mark {
  width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 1.55rem; font-weight: 700;
  color: var(--accent); background: var(--surface-2); border: 1px solid var(--line-strong);
}
.app h3 { margin-bottom: .35rem; }
.app .pitch { color: var(--muted); font-size: .93rem; margin-bottom: .7rem; }
.app-meta {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em;
  color: var(--muted); margin: 0;
}
.app-actions { display: flex; flex-direction: column; gap: 9px; align-items: stretch; }

@media (max-width: 760px) {
  .app { grid-template-columns: 56px minmax(0, 1fr); }
  .app-mark { width: 56px; height: 56px; border-radius: 16px; font-size: 1.2rem; }
  .app-actions { grid-column: 1 / -1; }
}

.store-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--font-sans); font-size: .9rem; font-weight: 650;
  padding: .7rem 1.25rem; border-radius: 100px; border: 1px solid transparent;
  text-decoration: none; white-space: nowrap; transition: background .2s, border-color .2s;
}
.store-btn svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.store-btn--go { background: var(--accent-fill); color: var(--on-accent); }
.store-btn--go:hover { background: color-mix(in srgb, var(--accent-fill) 86%, white); text-decoration: none; }
/* etat "pas encore publie" : volontairement un <span>, pas un <a> desactive,
   pour qu'il ne soit ni cliquable ni atteignable au clavier */
.store-btn--soon { border-color: var(--line); color: var(--muted); background: var(--surface-2); cursor: default; }
.app-link { font-size: .82rem; color: var(--muted); text-align: center; text-decoration: none; }
.app-link:hover { color: var(--accent); text-decoration: underline; }

.page-back { display: inline-flex; align-items: center; gap: .45rem; font-size: .88rem; text-decoration: none; }
.page-back svg { width: 14px; height: 14px; fill: currentColor; }
.page-back:hover { text-decoration: underline; }

/* ---------------- pied de page ---------------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px; }
.footer-in { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.footer-in p { margin: 0; font-size: .87rem; color: var(--muted); }
.socials { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--muted); transition: color .2s, border-color .2s;
}
.socials a:hover { color: var(--accent); border-color: var(--accent-fill); }
.socials svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------------- apparition au defilement ---------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .track { scroll-behavior: auto; }
}
