/* ═══════════════════════════════════════════════════════════════
   Aikadamai — feuille de style unique
   Palette sombre, accent violet → cyan, typographie Space Grotesk.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --fond:        #07080d;
  --fond-2:      #0c0e16;
  --carte:       rgba(255, 255, 255, .028);
  --bord:        rgba(255, 255, 255, .085);
  --bord-fort:   rgba(255, 255, 255, .16);

  --texte:       #eef0f6;
  --texte-doux:  #a2a8bd;
  --texte-faible:#6d7489;

  --violet:      #8b6cff;
  --cyan:        #2ee6d6;
  --accent-flou: rgba(139, 108, 255, .32);

  --large:       1180px;
  --rayon:       18px;
  --rayon-s:     11px;

  --display: "Space Grotesk", system-ui, sans-serif;
  --texte-f: "Inter", system-ui, -apple-system, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
}

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

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

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--texte-f);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -.022em; margin: 0; }
p { margin: 0 0 1em; }
a { color: inherit; }

.conteneur { width: min(100% - 2.5rem, var(--large)); margin-inline: auto; }

/* Lien d'évitement, visible seulement au clavier */
.saut {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--violet); color: #fff; padding: .7rem 1.1rem;
  border-radius: 0 0 var(--rayon-s) 0; font-weight: 600;
}
.saut:focus { left: 0; }

/* ── Fond : taches lumineuses + grille ────────────────────────── */
.aurore { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.tache { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .5; }
.t1 { width: 620px; height: 620px; top: -230px; left: -140px;
      background: radial-gradient(circle, #7a53ff 0%, transparent 68%); }
.t2 { width: 540px; height: 540px; top: 12%; right: -180px;
      background: radial-gradient(circle, #1ea8c9 0%, transparent 68%); opacity: .38; }
.t3 { width: 700px; height: 700px; bottom: -280px; left: 32%;
      background: radial-gradient(circle, #5b3fd6 0%, transparent 70%); opacity: .3; }

body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 25%, transparent 78%);
}

/* ── En-tête ──────────────────────────────────────────────────── */
.entete {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(1.4);
  background: rgba(7, 8, 13, .62);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.entete.collee { border-bottom-color: var(--bord); background: rgba(7, 8, 13, .86); }
.entete-int { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }

.marque {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--display); font-weight: 700; font-size: 1.06rem;
  letter-spacing: -.02em; text-decoration: none;
}
.sigle { width: 25px; height: 25px; display: block; }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  padding: .5rem .85rem; border-radius: 9px; text-decoration: none;
  color: var(--texte-doux); font-size: .935rem; font-weight: 500;
  transition: color .18s, background .18s;
}
.nav a:hover { color: var(--texte); background: rgba(255,255,255,.055); }
.nav .nav-cta {
  color: var(--texte);
  border: 1px solid var(--bord-fort);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
}
.nav .nav-cta:hover { border-color: var(--violet); box-shadow: 0 0 0 3px var(--accent-flou); }

/* ── Boutons ──────────────────────────────────────────────────── */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .82rem 1.5rem; border-radius: 11px; border: 1px solid transparent;
  font-family: var(--texte-f); font-size: .97rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: transform .16s, box-shadow .22s, border-color .22s, background .22s;
}
.bouton:active { transform: translateY(1px); }
.bouton.primaire {
  color: #0a0713;
  background: linear-gradient(105deg, var(--violet), var(--cyan));
  box-shadow: 0 8px 26px -10px var(--violet);
}
.bouton.primaire:hover { box-shadow: 0 12px 34px -10px var(--violet); transform: translateY(-1px); }
.bouton.primaire span { transition: transform .2s; }
.bouton.primaire:hover span { transform: translateX(3px); }
.bouton.secondaire {
  color: var(--texte); border-color: var(--bord-fort);
  background: rgba(255,255,255,.035);
}
.bouton.secondaire:hover { border-color: var(--violet); background: rgba(139,108,255,.1); }
.bouton.large { width: 100%; padding-block: .95rem; }
.bouton[disabled] { opacity: .55; pointer-events: none; }

/* ── Étiquette mono ───────────────────────────────────────────── */
.etiquette {
  font-family: var(--mono); font-size: .765rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--cyan); margin: 0 0 1.1rem;
  display: inline-flex; align-items: center; gap: .6rem;
}
.etiquette::before {
  content: ""; width: 22px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero { padding: clamp(4.5rem, 11vw, 8.5rem) 0 clamp(3.5rem, 7vw, 6rem); }
.titre {
  font-size: clamp(2.4rem, 5.8vw, 4.35rem);
  font-weight: 700; margin-bottom: 1.6rem; max-width: 22ch;
}
.titre em { font-style: normal; color: var(--texte); position: relative; }
.titre em::after {
  content: ""; position: absolute; left: 0; right: .06em; bottom: .01em; height: .07em;
  background: linear-gradient(90deg, var(--violet), var(--cyan)); opacity: .7; border-radius: 99px;
}
.degrade {
  background: linear-gradient(105deg, var(--violet) 10%, var(--cyan) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.chapo { max-width: 62ch; font-size: 1.09rem; color: var(--texte-doux); margin-bottom: 2.3rem; }
.actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.chiffres {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px; margin: clamp(3rem, 7vw, 5rem) 0 0;
  background: var(--bord); border: 1px solid var(--bord);
  border-radius: var(--rayon); overflow: hidden;
}
.chiffres > div { background: var(--fond-2); padding: 1.5rem 1.4rem; }
.chiffres dt {
  font-family: var(--display); font-size: 2.05rem; font-weight: 700;
  letter-spacing: -.03em; line-height: 1;
  background: linear-gradient(120deg, var(--texte), var(--texte-doux));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.chiffres dd {
  margin: .55rem 0 0; font-size: .875rem; color: var(--texte-faible);
  font-family: var(--mono); letter-spacing: .01em;
}

/* ── Sections ─────────────────────────────────────────────────── */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-tete { max-width: 68ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-tete h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 1rem; }
.section-chapo { color: var(--texte-doux); font-size: 1.045rem; margin: 0; }

/* ── Projets ──────────────────────────────────────────────────── */
.projets { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }

.projet {
  position: relative;
  border: 1px solid var(--bord); border-radius: var(--rayon);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012));
  padding: clamp(1.6rem, 3.2vw, 2.6rem);
  transition: border-color .28s, transform .28s, box-shadow .28s;
}
.projet::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, var(--violet), transparent 42%, transparent 62%, var(--cyan));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.projet:hover { transform: translateY(-3px); box-shadow: 0 26px 60px -34px rgba(0,0,0,.95); }
.projet:hover::before { opacity: .85; }

.projet-tete {
  display: flex; align-items: flex-start; gap: 1.1rem;
  flex-wrap: wrap; padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--bord); margin-bottom: 1.6rem;
}
.numero {
  font-family: var(--mono); font-size: .8rem; font-weight: 500; color: var(--violet);
  border: 1px solid rgba(139,108,255,.35); background: rgba(139,108,255,.09);
  border-radius: 7px; padding: .3rem .55rem; line-height: 1; margin-top: .35rem;
  flex: none;
}
.projet-tete h3 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.projet-sous { margin: .3rem 0 0; color: var(--texte-doux); font-size: .96rem; }
.lien-ext {
  margin-left: auto; align-self: center;
  font-family: var(--mono); font-size: .8rem; text-decoration: none;
  color: var(--texte-doux); border: 1px solid var(--bord);
  border-radius: 99px; padding: .42rem .85rem; white-space: nowrap;
  display: inline-flex; gap: .4rem; align-items: center;
  transition: color .2s, border-color .2s, background .2s;
}
.lien-ext:hover { color: var(--cyan); border-color: rgba(46,230,214,.4); background: rgba(46,230,214,.07); }

.projet-corps { display: grid; grid-template-columns: minmax(0, 1fr) 268px; gap: clamp(1.5rem, 3vw, 2.8rem); }
.projet-texte > p:first-child { color: var(--texte-doux); font-size: 1.03rem; }

.faits { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .8rem; }
.faits li { position: relative; padding-left: 1.5rem; color: var(--texte-doux); font-size: .96rem; }
.faits li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 2px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
}
.faits strong { color: var(--texte); font-weight: 600; }

.projet-cote { display: grid; gap: 1.4rem; align-content: start; }
.mesures { margin: 0; display: grid; gap: 1px; background: var(--bord);
  border: 1px solid var(--bord); border-radius: var(--rayon-s); overflow: hidden; }
.mesures > div { background: var(--fond-2); padding: .85rem 1rem; }
.mesures dt {
  font-family: var(--mono); font-size: .69rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--texte-faible);
}
.mesures dd { margin: .3rem 0 0; font-family: var(--display); font-weight: 600; font-size: .99rem; }

.puces { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.puces li {
  font-family: var(--mono); font-size: .745rem; color: var(--texte-doux);
  border: 1px solid var(--bord); border-radius: 6px; padding: .3rem .55rem;
  background: rgba(255,255,255,.025);
}

/* ── Méthode ──────────────────────────────────────────────────── */
.methode { border-top: 1px solid var(--bord); background: rgba(255,255,255,.012); }
.etapes {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 1.2rem;
  counter-reset: etape;
}
.etapes li {
  border: 1px solid var(--bord); border-radius: var(--rayon);
  padding: 1.7rem 1.5rem; background: var(--carte);
  transition: border-color .25s, background .25s;
}
.etapes li:hover { border-color: var(--bord-fort); background: rgba(255,255,255,.05); }
.etapes .numero { display: inline-block; margin: 0 0 1rem; }
.etapes h3 { font-size: 1.12rem; margin-bottom: .65rem; }
.etapes p { margin: 0; color: var(--texte-doux); font-size: .945rem; }
.etapes code {
  font-family: var(--mono); font-size: .87em; color: var(--cyan);
  background: rgba(46,230,214,.09); border-radius: 4px; padding: .08em .35em;
}

/* ── Contact ──────────────────────────────────────────────────── */
.contact { border-top: 1px solid var(--bord); }
.contact-int { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-texte h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 1rem; }
.contact-texte p { color: var(--texte-doux); }
.contact-liste { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: .7rem; }
.contact-liste li {
  position: relative; padding-left: 1.7rem; color: var(--texte-doux); font-size: .95rem;
}
.contact-liste li::before {
  content: "→"; position: absolute; left: 0; color: var(--violet); font-family: var(--mono);
}

.formulaire {
  border: 1px solid var(--bord); border-radius: var(--rayon);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.014));
  padding: clamp(1.5rem, 3vw, 2.2rem);
  display: grid; gap: 1.05rem;
}
.champ { display: grid; gap: .45rem; }
.champ label {
  font-family: var(--mono); font-size: .73rem; letter-spacing: .11em;
  text-transform: uppercase; color: var(--texte-doux);
}
.champ .option { text-transform: none; letter-spacing: 0; color: var(--texte-faible); }
.champ input, .champ textarea {
  width: 100%; font-family: inherit; font-size: .97rem; color: var(--texte);
  background: rgba(0,0,0,.32); border: 1px solid var(--bord);
  border-radius: var(--rayon-s); padding: .78rem .95rem; resize: vertical;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.champ input::placeholder, .champ textarea::placeholder { color: var(--texte-faible); }
.champ input:focus, .champ textarea:focus {
  outline: none; border-color: var(--violet);
  box-shadow: 0 0 0 3px var(--accent-flou); background: rgba(0,0,0,.45);
}
.champ.erreur input, .champ.erreur textarea { border-color: #ff6b7f; }

.leurre { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.retour { margin: 0; font-size: .92rem; min-height: 1.4em; }
.retour.ok { color: var(--cyan); }
.retour.ko { color: #ff8a99; }

/* Focus clavier homogène */
:where(a, button, input, textarea):focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px;
}

/* ── Pied de page ─────────────────────────────────────────────── */
.pied { border-top: 1px solid var(--bord); padding: 2.2rem 0; }
.pied-int {
  display: flex; flex-wrap: wrap; gap: 1rem 1.6rem;
  align-items: center; justify-content: space-between;
}
.pied p { margin: 0; font-family: var(--mono); font-size: .82rem; color: var(--texte-faible); }
.pied nav { display: flex; flex-wrap: wrap; gap: 1.3rem; }
.pied nav a {
  font-size: .875rem; color: var(--texte-doux); text-decoration: none;
  transition: color .2s;
}
.pied nav a:hover { color: var(--cyan); }

/* ── Apparition au défilement ─────────────────────────────────── */
.anim { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.anim.vu { opacity: 1; transform: none; }

/* ── Adaptations ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .projet-corps { grid-template-columns: 1fr; }
  .contact-int { grid-template-columns: 1fr; }
  .projet-cote { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav a:not(.nav-cta) { display: none; }
  .lien-ext { margin-left: 0; width: 100%; justify-content: center; }
  .actions .bouton { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .anim { opacity: 1; transform: none; }
}
