/* vincentdeletang.fr : fond encre, lueurs bleu-violet, Geist servie par le site. Aucune ressource tierce. */

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --fond: #070B16;
  --surface: #0C1222;
  --surface-2: #111A30;
  --trait: rgba(255, 255, 255, 0.08);
  --trait-fort: rgba(255, 255, 255, 0.14);
  --blanc: #F2F5FB;
  --texte: #A7B0C4;
  --doux: #6F7A93;
  --bleu: #6E8BFF;
  --bleu-vif: #8EA5FF;
  --violet: #A88BFA;
  --vert: #4ADE80;
  --ambre: #FBBF5A;

  --cadre: 74rem;
  --marge: clamp(1.25rem, 4vw, 2.5rem);
  --rayon: 18px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
/* Le grain, par-dessus tout, très léger */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

h1, h2, h3 { color: var(--blanc); margin: 0; font-weight: 600; }
p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--bleu-vif); text-decoration: none; }
a:hover { color: var(--blanc); }
:focus-visible { outline: 2px solid var(--bleu-vif); outline-offset: 3px; border-radius: 6px; }

.evitement { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--bleu); color: #fff; padding: 0.5rem 0.9rem; border-radius: 8px; }
.evitement:focus { top: 1rem; }

.cadre { max-width: var(--cadre); margin: 0 auto; padding: 0 var(--marge); position: relative; }

/* ---------- Boutons ---------- */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  font-weight: 550;
  font-size: 1rem;
  line-height: 1.2;
  color: #fff;
  background: linear-gradient(180deg, #7D97FF 0%, #5874F5 100%);
  box-shadow: 0 0 0 1px rgba(142, 165, 255, 0.5) inset, 0 8px 30px -8px rgba(110, 139, 255, 0.65);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.bouton:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 0 0 1px rgba(160, 180, 255, 0.7) inset, 0 12px 36px -8px rgba(110, 139, 255, 0.85); }
.bouton:active { transform: translateY(0); }
.bouton-fantome {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 1px var(--trait-fort) inset;
  color: var(--blanc);
}
.bouton-fantome:hover { background: rgba(255, 255, 255, 0.08); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.24) inset; }
.bouton-petit { padding: 0.5rem 0.95rem; font-size: 0.9375rem; }

/* ---------- La barre du haut ---------- */

.barre {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 22, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--trait);
}
.barre-dedans {
  max-width: var(--cadre);
  margin: 0 auto;
  padding: 0.7rem var(--marge);
  display: flex;
  align-items: center;
  gap: 2rem;
}
.marque { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--blanc); font-weight: 600; letter-spacing: -0.01em; }
.marque:hover { color: var(--blanc); }
.monogramme {
  display: inline-grid; place-items: center;
  width: 1.9rem; height: 1.9rem; border-radius: 8px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; color: #fff;
  background: linear-gradient(135deg, var(--bleu) 0%, var(--violet) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}
.barre nav { display: flex; gap: 1.75rem; margin-left: auto; font-size: 0.9375rem; }
.barre nav a { color: var(--texte); }
.barre nav a:hover { color: var(--blanc); }

/* ---------- Hero ---------- */

.hero { position: relative; padding: clamp(4rem, 9vw, 7rem) 0 clamp(4rem, 8vw, 6.5rem); overflow: hidden; }
.hero::before {
  /* une grille fine qui s'efface vers le bas */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--trait) 1px, transparent 1px), linear-gradient(90deg, var(--trait) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: 0.55;
}
.lueur { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.lueur-a { width: 42rem; height: 30rem; top: -14rem; left: -10rem; background: radial-gradient(closest-side, rgba(110, 139, 255, 0.38), transparent); }
.lueur-b { width: 36rem; height: 28rem; top: 4rem; right: -12rem; background: radial-gradient(closest-side, rgba(168, 139, 250, 0.28), transparent); }

.hero-grille {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 4vw, 4rem);
  align-items: center;
}

.pastille {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.35rem 0.8rem 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--blanc);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 1px var(--trait-fort) inset;
}
.point-vert { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18); }

.hero h1 {
  margin-top: 1.5rem;
  font-size: clamp(2.5rem, 5vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 650;
  background: linear-gradient(180deg, #FFFFFF 20%, #B9C3DA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
}
.hero-sous { margin-top: 1.5rem; font-size: 1.1875rem; line-height: 1.6; max-width: 34rem; text-wrap: pretty; }
.hero-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-preuves { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; font-size: 0.9375rem; color: var(--texte); }
.hero-preuves li { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-preuves li::before {
  content: ""; width: 1rem; height: 1rem; flex: none; border-radius: 50%;
  background: rgba(74, 222, 128, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%234ADE80' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* ---------- La maquette ---------- */

.maquette { position: relative; }
.fenetre {
  position: relative;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(20, 28, 50, 0.92), rgba(12, 18, 34, 0.96));
  box-shadow:
    0 0 0 1px var(--trait-fort),
    0 1px 0 0 rgba(255, 255, 255, 0.08) inset,
    0 40px 80px -30px rgba(0, 0, 0, 0.8),
    0 0 120px -40px rgba(110, 139, 255, 0.45);
  overflow: hidden;
  transform: perspective(1600px) rotateY(-4deg) rotateX(2deg);
  transform-origin: left center;
}
.fenetre-barre {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--trait);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.8125rem;
}
.feux { display: inline-flex; gap: 6px; }
.feux i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.fenetre-titre { color: var(--blanc); font-weight: 550; }
.etiquette {
  margin-left: auto; padding: 0.15rem 0.55rem; border-radius: 999px;
  font-size: 0.75rem; color: var(--ambre); background: rgba(251, 191, 90, 0.1); box-shadow: 0 0 0 1px rgba(251, 191, 90, 0.25) inset;
}
.fenetre-corps { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr); min-height: 25rem; }

.clients { border-right: 1px solid var(--trait); padding: 0.9rem 0.6rem; font-size: 0.8125rem; }
.clients-titre { color: var(--doux); padding: 0 0.5rem 0.5rem; }
.clients li { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem; border-radius: 10px; color: var(--blanc); line-height: 1.25; }
.clients li small { display: block; color: var(--doux); font-size: 0.75rem; margin-top: 0.1rem; }
.clients li small.ok { color: var(--vert); }
.clients li.actif { background: rgba(110, 139, 255, 0.12); box-shadow: 0 0 0 1px rgba(110, 139, 255, 0.25) inset; }
.avatar {
  flex: none; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 8px;
  font-size: 0.6875rem; font-weight: 650; color: var(--blanc); background: var(--surface-2); box-shadow: 0 0 0 1px var(--trait-fort) inset;
}

.fil { padding: 1rem; display: flex; flex-direction: column; gap: 0.7rem; font-size: 0.8438rem; line-height: 1.5; }
.bulle { border-radius: 12px; padding: 0.8rem 0.9rem; }
.bulle p + p, .bulle ul + p { margin-top: 0.4rem; }
.bulle ul { margin-top: 0.3rem; }
.bulle li { padding-left: 0.9rem; position: relative; color: var(--blanc); }
.bulle li::before { content: ""; position: absolute; left: 0.1rem; top: 0.62em; width: 4px; height: 4px; border-radius: 50%; background: var(--bleu-vif); }
.bulle-tete { display: flex; align-items: center; gap: 0.45rem; color: var(--blanc); font-weight: 600; font-size: 0.8125rem; margin-bottom: 0.35rem; }
.puce-ia { width: 0.9rem; height: 0.9rem; border-radius: 4px; background: linear-gradient(135deg, var(--bleu), var(--violet)); }
.bulle-agent { background: rgba(110, 139, 255, 0.08); box-shadow: 0 0 0 1px rgba(110, 139, 255, 0.28) inset; }
.bulle-client { align-self: flex-end; max-width: 82%; background: rgba(255, 255, 255, 0.045); box-shadow: 0 0 0 1px var(--trait) inset; }
.bulle-actions { display: flex; gap: 0.5rem; margin-top: 0.7rem; }
.mini-bouton { padding: 0.3rem 0.65rem; border-radius: 999px; font-size: 0.75rem; font-weight: 550; color: #fff; background: var(--bleu); }
.mini-bouton.fantome { background: transparent; color: var(--texte); box-shadow: 0 0 0 1px var(--trait-fort) inset; }
.piece {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.5rem; padding: 0.25rem 0.55rem; border-radius: 8px;
  font-family: var(--mono); font-size: 0.75rem; color: var(--blanc); background: rgba(255, 255, 255, 0.05); box-shadow: 0 0 0 1px var(--trait) inset;
}
.piece::before { content: ""; width: 0.6rem; height: 0.75rem; border-radius: 2px; background: #F87171; opacity: 0.85; }
.evenement { display: flex; align-items: baseline; gap: 0.55rem; font-size: 0.78rem; color: var(--doux); padding: 0 0.15rem; }
.pastille-etat {
  flex: none; padding: 0.08rem 0.45rem; border-radius: 6px; font-size: 0.6875rem; font-weight: 600;
  color: var(--bleu-vif); background: rgba(110, 139, 255, 0.12);
}
.pastille-etat.ok { color: var(--vert); background: rgba(74, 222, 128, 0.12); }
.pastille-etat.attente { color: var(--ambre); background: rgba(251, 191, 90, 0.12); }
.evenement-ok { color: var(--texte); }

.maquette figcaption { margin-top: 1rem; font-size: 0.8125rem; color: var(--doux); text-align: center; }

/* La scène du hero : une seule séquence, au chargement */
@media (prefers-reduced-motion: no-preference) {
  .anim { animation: apparait 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .a1 { animation-delay: 0.35s; }
  .a2 { animation-delay: 1.15s; }
  .a3 { animation-delay: 1.9s; }
  .a4 { animation-delay: 2.7s; }
  .a5 { animation-delay: 3.4s; }
  .hero-texte > * { animation: monte 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-texte > :nth-child(2) { animation-delay: 0.06s; }
  .hero-texte > :nth-child(3) { animation-delay: 0.12s; }
  .hero-texte > :nth-child(4) { animation-delay: 0.18s; }
  .hero-texte > :nth-child(5) { animation-delay: 0.24s; }
  .fenetre { animation: pose 1s cubic-bezier(0.2, 0.7, 0.2, 1) both 0.1s; }
}
@keyframes apparait { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes monte { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pose {
  from { opacity: 0; transform: perspective(1600px) rotateY(-10deg) rotateX(6deg) translateY(30px); }
  to { opacity: 1; transform: perspective(1600px) rotateY(-4deg) rotateX(2deg); }
}

/* ---------- Sections ---------- */

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }
.section + .section { border-top: 1px solid var(--trait); }
.section-tete { max-width: 40rem; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.section-tete h2, .section-qui h2, .appel h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.section-tete p { margin-top: 1rem; font-size: 1.125rem; text-wrap: pretty; }

/* ---------- Le bento ---------- */

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.carte {
  --mx: 50%; --my: 0%;
  position: relative;
  display: flex; flex-direction: column; gap: 1.5rem;
  padding: clamp(1.4rem, 2.5vw, 2rem);
  border-radius: var(--rayon);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)), var(--surface);
  box-shadow: 0 0 0 1px var(--trait) inset, 0 1px 0 0 rgba(255, 255, 255, 0.05) inset;
  overflow: hidden;
  isolation: isolate;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.carte::before {
  /* la lueur qui suit la souris (effets.js pose --mx et --my) */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.3s ease;
  background: radial-gradient(28rem circle at var(--mx) var(--my), rgba(110, 139, 255, 0.13), transparent 45%);
}
.carte:hover::before { opacity: 1; }
.carte:hover { box-shadow: 0 0 0 1px rgba(142, 165, 255, 0.28) inset, 0 1px 0 0 rgba(255, 255, 255, 0.07) inset; }
.carte-large { grid-column: span 2; }

.carte h3 { font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
.carte-chapeau { margin-top: 0.7rem; text-wrap: pretty; }
.carte-texte { flex: 1; }
.carte-pied { border-top: 1px solid var(--trait); padding-top: 1.25rem; }

.coches { margin-top: 1.25rem; display: grid; gap: 0.6rem; font-size: 0.9688rem; }
.coches li { position: relative; padding-left: 1.6rem; }
.coches li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 1rem; height: 1rem; border-radius: 50%;
  background: rgba(110, 139, 255, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%238EA5FF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.prix { color: var(--blanc); font-size: 1.75rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.a-partir { display: block; font-size: 0.875rem; font-weight: 450; letter-spacing: 0; color: var(--doux); margin-bottom: 0.2rem; }
.par { font-size: 1rem; font-weight: 450; color: var(--texte); letter-spacing: 0; }
.premier-pas { margin-top: 0.6rem; font-size: 0.9375rem; }
.lien-action {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1rem;
  font-weight: 550; color: var(--bleu-vif);
}
.lien-action::after {
  content: ""; width: 0.85rem; height: 0.85rem; transition: transform 0.2s ease;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h9M8.5 4.5L12 8l-3.5 3.5' fill='none' stroke='%238EA5FF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.lien-action:hover { color: var(--blanc); }
.lien-action:hover::after { transform: translateX(3px); }

/* La grande carte de l'agent : le texte à gauche, le récap à droite */
#agent-ia { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: "texte mini" "pied mini"; column-gap: 2rem; }
#agent-ia .carte-texte { grid-area: texte; }
#agent-ia .carte-pied { grid-area: pied; }
#agent-ia .mini-recap { grid-area: mini; align-self: center; }

.mini {
  border-radius: 12px;
  background: rgba(7, 11, 22, 0.55);
  box-shadow: 0 0 0 1px var(--trait) inset;
  font-size: 0.8438rem;
}
.mini-recap { padding: 1rem; }
.mini-titre { color: var(--blanc); font-weight: 600; padding-bottom: 0.6rem; border-bottom: 1px solid var(--trait); margin-bottom: 0.3rem; }
.mini-ligne { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--trait); color: var(--blanc); }
.mini-ligne:last-child { border-bottom: 0; }
.etat { font-style: normal; font-size: 0.75rem; padding: 0.1rem 0.5rem; border-radius: 6px; color: var(--bleu-vif); background: rgba(110, 139, 255, 0.12); white-space: nowrap; }
.etat.ok { color: var(--vert); background: rgba(74, 222, 128, 0.12); }
.etat.attente { color: var(--ambre); background: rgba(251, 191, 90, 0.12); }

.mini-etat { margin-top: 1.25rem; padding: 0.4rem 0.9rem; }
.mini-etat p { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0; color: var(--blanc); }
.mini-etat p + p { border-top: 1px solid var(--trait); }
.voyant { flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--vert); box-shadow: 0 0 10px rgba(74, 222, 128, 0.7); }
.voyant.bleu { background: var(--bleu-vif); box-shadow: 0 0 10px rgba(142, 165, 255, 0.7); }
@media (prefers-reduced-motion: no-preference) {
  .voyant { animation: pouls 2.4s ease-in-out infinite; }
  .mini-etat p:nth-child(2) .voyant { animation-delay: 0.6s; }
  .mini-etat p:nth-child(3) .voyant { animation-delay: 1.2s; }
  .mini-etat p:nth-child(4) .voyant { animation-delay: 1.8s; }
}
@keyframes pouls { 50% { opacity: 0.45; } }

.mini-flux { margin-top: 1.25rem; padding: 0.9rem 0.9rem 0.9rem 0.9rem; counter-reset: flux; display: grid; gap: 0.75rem; }
.mini-flux li { position: relative; padding-left: 1.9rem; color: var(--blanc); counter-increment: flux; line-height: 1.4; }
.mini-flux li::before {
  content: counter(flux); position: absolute; left: 0; top: 0;
  width: 1.3rem; height: 1.3rem; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.6875rem; font-weight: 650; color: var(--bleu-vif); background: rgba(110, 139, 255, 0.12); box-shadow: 0 0 0 1px rgba(110, 139, 255, 0.3) inset;
}
.mini-flux li:not(:last-child)::after {
  content: ""; position: absolute; left: 0.65rem; top: 1.4rem; bottom: -0.75rem; width: 1px;
  background: linear-gradient(rgba(110, 139, 255, 0.45), rgba(110, 139, 255, 0.05));
}

/* La carte « autre besoin » */
.carte-autre {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); align-items: center; column-gap: 2rem;
  background:
    radial-gradient(40rem 20rem at 100% 100%, rgba(168, 139, 250, 0.16), transparent 60%),
    radial-gradient(30rem 18rem at 0% 0%, rgba(110, 139, 255, 0.12), transparent 60%),
    var(--surface);
}
.carte-autre h3 { font-size: clamp(1.625rem, 2.6vw, 2rem); }
.carte-autre .carte-pied { border-top: 0; padding-top: 0; display: flex; flex-direction: column; gap: 1rem; }
.carte-autre .bouton { align-self: flex-start; }
.mini-mail { padding: 0.35rem 1rem 1rem; }
.mini-mail-ligne { display: flex; gap: 0.75rem; padding: 0.55rem 0; border-bottom: 1px solid var(--trait); color: var(--blanc); overflow-wrap: anywhere; }
.mini-mail-ligne span { color: var(--doux); min-width: 2.75rem; }
.mini-mail-corps { padding-top: 0.75rem; color: var(--texte); line-height: 1.6; }
.curseur { display: inline-block; width: 2px; height: 1em; vertical-align: -0.15em; background: var(--bleu-vif); }
@media (prefers-reduced-motion: no-preference) { .curseur { animation: clignote 1.1s steps(1) infinite; } }
@keyframes clignote { 50% { opacity: 0; } }
.exemples { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.exemples li {
  padding: 0.35rem 0.75rem; border-radius: 999px; font-size: 0.875rem; color: var(--blanc);
  background: rgba(255, 255, 255, 0.04); box-shadow: 0 0 0 1px var(--trait-fort) inset;
}

/* ---------- Comment ça marche ---------- */

.etapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; position: relative; }
.etape {
  position: relative; padding: 1.75rem; border-radius: var(--rayon);
  background: var(--surface); box-shadow: 0 0 0 1px var(--trait) inset;
}
.etape-num {
  display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 10px;
  font-weight: 650; color: #fff; background: linear-gradient(135deg, var(--bleu), var(--violet));
  box-shadow: 0 8px 24px -8px rgba(110, 139, 255, 0.8);
}
.etape h3 { margin-top: 1.25rem; font-size: 1.25rem; letter-spacing: -0.02em; }
.etape p { margin-top: 0.6rem; font-size: 0.9688rem; }

/* ---------- Garanties ---------- */

.garanties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border-radius: var(--rayon); overflow: hidden; background: var(--trait); box-shadow: 0 0 0 1px var(--trait) inset; }
.garantie { padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--surface); }
.garantie h3 { font-size: 1.1875rem; letter-spacing: -0.015em; display: flex; align-items: center; gap: 0.6rem; }
.garantie h3::before {
  content: ""; width: 1.25rem; height: 1.25rem; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 2l6 2.5v4.6c0 4-2.6 7-6 8.4-3.4-1.4-6-4.4-6-8.4V4.5L10 2z' fill='rgba(110,139,255,0.15)' stroke='%238EA5FF' stroke-width='1.4' stroke-linejoin='round'/%3E%3Cpath d='M7 10l2 2 4-4' fill='none' stroke='%238EA5FF' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.garantie p { margin-top: 0.7rem; font-size: 0.9688rem; text-wrap: pretty; }

/* ---------- Qui je suis ---------- */

.qui-grille { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.section-qui p { margin-top: 1rem; font-size: 1.125rem; max-width: 36rem; }
.section-qui h2 + p { margin-top: 1.5rem; }
.fiche { border-radius: var(--rayon); background: var(--surface); box-shadow: 0 0 0 1px var(--trait) inset; padding: 0.5rem 1.5rem; }
.fiche div { display: flex; justify-content: space-between; gap: 1.5rem; padding: 0.95rem 0; border-bottom: 1px solid var(--trait); font-size: 0.9688rem; }
.fiche div:last-child { border-bottom: 0; }
.fiche dt { color: var(--doux); }
.fiche dd { margin: 0; color: var(--blanc); text-align: right; overflow-wrap: anywhere; }

/* ---------- L'appel final ---------- */

.appel { position: relative; overflow: hidden; padding: clamp(5rem, 10vw, 8rem) 0; border-top: 1px solid var(--trait); text-align: center; }
.lueur-c { width: 50rem; height: 26rem; left: 50%; bottom: -16rem; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(110, 139, 255, 0.4), rgba(168, 139, 250, 0.15), transparent); }
.appel-dedans { display: flex; flex-direction: column; align-items: center; }
.appel p { margin-top: 1rem; font-size: 1.125rem; }
.appel .bouton { margin-top: 2rem; }

/* ---------- Mentions ---------- */

.mentions { border-top: 1px solid var(--trait); padding: 3rem 0 3.5rem; font-size: 0.875rem; color: var(--doux); }
.mentions h2 { font-size: 0.9375rem; color: var(--blanc); margin-bottom: 1.25rem; }
.mentions dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.mentions dt { color: var(--texte); font-weight: 550; }
.mentions dd { margin: 0.25rem 0 0; }
.mentions a { color: var(--texte); text-decoration: underline; text-decoration-color: var(--trait-fort); text-underline-offset: 0.2em; }
.mentions a:hover { color: var(--blanc); }
.mentions > .cadre > p { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--trait); }

/* ---------- Apparition au défilement (sans JavaScript, là où le navigateur sait le faire) ---------- */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .revele {
      animation: monte linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}

/* ---------- Écrans moyens et petits ---------- */

@media (max-width: 64rem) {
  .hero-grille { grid-template-columns: minmax(0, 1fr); }
  .fenetre { transform: none; }
  @media (prefers-reduced-motion: no-preference) {
    .fenetre { animation-name: monte; }
  }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carte-large { grid-column: span 2; }
  .mentions dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 48rem) {
  .barre nav { display: none; }
  .barre-dedans { justify-content: space-between; }
  .bento, .etapes, .garanties, .qui-grille { grid-template-columns: minmax(0, 1fr); }
  .carte-large { grid-column: auto; }
  #agent-ia { grid-template-columns: minmax(0, 1fr); grid-template-areas: "texte" "mini" "pied"; row-gap: 1.5rem; }
  .carte-autre { grid-template-columns: minmax(0, 1fr); row-gap: 1.5rem; }
  .fenetre-corps { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .clients { display: none; }
  .hero-actions .bouton { flex: 1 1 auto; }
}

@media (max-width: 30rem) {
  body { font-size: 1rem; }
  .hero-sous { font-size: 1.0625rem; }
  .fiche div { flex-direction: column; gap: 0.2rem; }
  .fiche dd { text-align: left; }
  .mentions dl { grid-template-columns: minmax(0, 1fr); }
}
