/* =====================================================================
   sorox.thomal.fr — Espace applications de Thomas Malaisé
   Feuille de style principale
   Identité : noir, jaune vif, bleu cyan — numérique, ludique, lisible
   ---------------------------------------------------------------------
   SOMMAIRE
    1. Variables                 10. Boutons
    2. Reset & base              11. Badges & puces de statut
    3. Accessibilité             12. Cartes d'applications
    4. Layout & utilitaires      13. Page application & fonctionnalités
    5. En-tête & navigation      14. Galerie de captures
    6. Logo Sorox                15. Pages légales / support
    7. Hero                      16. Formulaire
    8. Sections & titres         17. Pied de page
    9. Grilles & cartes          18. Retour haut, animations, responsive
   ===================================================================== */


/* =====================================================================
   1. VARIABLES
   ===================================================================== */
:root {
  /* Couleurs — reprises de l'application « Le calcul est juste » */
  --noir:            #0B0B0B;
  --noir-panel:      #141414;
  --noir-panel-2:    #1B1B1B;
  --gris-bordure:    #2A2A2A;
  --gris-bordure-2:  #383838;

  --jaune:           #FFE44D;
  --jaune-doux:      #FFF1A3;
  --jaune-sombre:    #C7AE33;

  --cyan:            #15AEEA;
  --cyan-clair:      #5AC8F0;

  --texte:           #F5F5F5;
  --texte-2:         #B8B8B8;
  --texte-3:         #7C7C7C;

  --alerte:          #FF6B6B;
  --succes:          #6EE7A8;

  /* Surfaces dérivées */
  --carte:           #141414;
  --carte-haut:      #1B1B1B;
  --bord-jaune:      rgba(255, 228, 77, 0.30);
  --bord-jaune-f:    rgba(255, 228, 77, 0.65);

  /* Typographie */
  --titre: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --texte-police: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  /* Mesures */
  --largeur-max:   1180px;
  --largeur-texte: 760px;
  --rayon:         14px;
  --rayon-petit:   9px;
  --transition:    200ms cubic-bezier(0.4, 0, 0.2, 1);

  --ombre-carte: 0 16px 38px -26px rgba(0, 0, 0, 0.9);
}


/* =====================================================================
   2. RESET & BASE
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--texte-police);
  font-size: 1.04rem;
  line-height: 1.68;
  color: var(--texte-2);
  background-color: var(--noir);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a {
  color: var(--jaune);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--jaune-doux); }

ul { list-style: none; padding: 0; }

strong { color: var(--texte); font-weight: 600; }

::selection { background: rgba(255, 228, 77, 0.3); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--titre);
  color: var(--texte);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

/* Fond : très léger quadrillage « numérique » */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 228, 77, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 228, 77, 0.022) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 75%);
          mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 75%);
}


/* =====================================================================
   3. ACCESSIBILITÉ
   ===================================================================== */
.skip-link {
  position: absolute;
  left: 50%;
  top: -64px;
  transform: translateX(-50%);
  background: var(--jaune);
  color: var(--noir);
  padding: 0.6rem 1.3rem;
  border-radius: 0 0 var(--rayon-petit) var(--rayon-petit);
  font-weight: 700;
  z-index: 999;
  transition: top var(--transition);
}
.skip-link:focus { top: 0; color: var(--noir); }

:focus-visible {
  outline: 2px solid var(--jaune);
  outline-offset: 2px;
  border-radius: 3px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* =====================================================================
   4. LAYOUT & UTILITAIRES
   ===================================================================== */
.wrap {
  width: 100%;
  max-width: var(--largeur-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section { padding-block: clamp(3.2rem, 7vw, 5.6rem); }

.section--panel {
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.7), rgba(11, 11, 11, 0));
  border-top: 1px solid var(--gris-bordure);
}

.text-center { text-align: center; }
.center-block { margin-inline: auto; }
.narrow { max-width: var(--largeur-texte); }


/* =====================================================================
   5. EN-TÊTE & NAVIGATION
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 11, 0.7);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}
.site-header.is-scrolled {
  background: rgba(11, 11, 11, 0.96);
  border-bottom-color: var(--gris-bordure);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1.2rem;
}

.header-end {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}
.site-nav a {
  color: var(--texte-2);
  font-size: 0.95rem;
  font-weight: 500;
  padding-block: 0.4rem;
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--jaune);
  transition: width var(--transition);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--texte); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { width: 100%; }

/* Burger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--gris-bordure-2);
  border-radius: var(--rayon-petit);
  cursor: pointer;
  padding: 0;
}
.nav-toggle:hover { border-color: var(--bord-jaune-f); }
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--texte);
  margin-inline: auto;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* =====================================================================
   6. LOGO SOROX
   ---------------------------------------------------------------------
   Logo dessiné en CSS : un signe « = » jaune dans un carré, façon
   touche de calculatrice. Aucun fichier image requis.
   ===================================================================== */
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.brand:hover { color: inherit; }

.brand-mark {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 34px; height: 34px;
  background: var(--noir-panel);
  border: 1px solid var(--bord-jaune-f);
  border-radius: 8px;
  padding: 9px 7px;
}
.brand-eq {
  display: block;
  height: 3px;
  background: var(--jaune);
  border-radius: 2px;
}

.brand-text {
  font-family: var(--titre);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--texte);
  letter-spacing: 0.02em;
}


/* =====================================================================
   7. HERO
   ===================================================================== */
.hero {
  position: relative;
  padding-block: clamp(3.4rem, 8vw, 6rem);
  overflow: hidden;
}
.hero::after {
  /* halo jaune diffus en haut */
  content: "";
  position: absolute;
  top: -40%; left: 50%;
  transform: translateX(-50%);
  width: 760px; height: 760px;
  background: radial-gradient(circle, rgba(255, 228, 77, 0.10), transparent 62%);
  pointer-events: none;
  z-index: 0;
}
.hero > .wrap { position: relative; z-index: 1; }

.hero-inner { max-width: 720px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--jaune);
  background: rgba(255, 228, 77, 0.08);
  border: 1px solid var(--bord-jaune);
  border-radius: var(--rayon-pille, 999px);
  padding: 0.32rem 0.85rem;
  margin-bottom: 1.4rem;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  color: var(--texte);
  margin-bottom: 1rem;
}
.hero-title .hl { color: var(--jaune); }

.hero-text {
  font-size: 1.16rem;
  color: var(--texte-2);
  margin-bottom: 0.7rem;
}
.hero-sub { font-size: 1rem; color: var(--texte-3); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.9rem;
}


/* =====================================================================
   8. SECTIONS & TITRES
   ===================================================================== */
.section-head { margin-bottom: 2.4rem; }
.section-head.text-center { max-width: 54rem; margin-inline: auto; }

.section-kicker {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.7rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  margin-bottom: 0.8rem;
}

.section-lead {
  font-size: 1.08rem;
  color: var(--texte-2);
  max-width: 60ch;
}
.text-center .section-lead { margin-inline: auto; }


/* =====================================================================
   9. GRILLES & CARTES
   ===================================================================== */
.grid { display: grid; gap: 1.2rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--apps { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }

.card {
  background: var(--carte);
  border: 1px solid var(--gris-bordure);
  border-radius: var(--rayon);
  padding: 1.5rem 1.5rem;
}

/* Carte de fonctionnalité (page app) */
.feature {
  background: var(--carte);
  border: 1px solid var(--gris-bordure);
  border-radius: var(--rayon);
  padding: 1.4rem 1.45rem;
  transition: border-color var(--transition), transform var(--transition),
              background var(--transition);
}
.feature:hover {
  border-color: var(--bord-jaune-f);
  background: var(--carte-haut);
  transform: translateY(-4px);
}
.feature-num {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--noir);
  background: var(--jaune);
  width: 30px; height: 30px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.85rem;
}
.feature h3 { font-size: 1.16rem; margin-bottom: 0.35rem; color: var(--texte); }
.feature p  { font-size: 0.98rem; color: var(--texte-2); }


/* =====================================================================
   10. BOUTONS
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--texte-police);
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.8rem 1.45rem;
  border-radius: var(--rayon-petit);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition),
              border-color var(--transition), color var(--transition);
}
.btn:hover { transform: translateY(-2px); }

/* Bouton principal — jaune plein, façon touche de l'app */
.btn-primary {
  background: var(--jaune);
  color: var(--noir);
}
.btn-primary:hover { background: var(--jaune-doux); color: var(--noir); }

/* Bouton cyan — pour Google Play / actions numériques */
.btn-cyan {
  background: var(--cyan);
  color: #04222e;
}
.btn-cyan:hover { background: var(--cyan-clair); color: #04222e; }

/* Bouton fantôme — bordure */
.btn-ghost {
  background: transparent;
  color: var(--texte);
  border-color: var(--gris-bordure-2);
}
.btn-ghost:hover { border-color: var(--jaune); color: var(--jaune); }

/* Bouton bordure jaune */
.btn-outline {
  background: transparent;
  color: var(--jaune);
  border-color: var(--bord-jaune-f);
}
.btn-outline:hover {
  background: rgba(255, 228, 77, 0.08);
  border-color: var(--jaune);
  color: var(--jaune);
}

.btn-sm { padding: 0.55rem 1rem; font-size: 0.9rem; }
.btn-lg { padding: 0.95rem 1.8rem; font-size: 1.04rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.btn-row.text-center { justify-content: center; }

/* Bouton « bientôt » désactivé (Google Play indisponible) */
.btn-soon {
  background: var(--noir-panel-2);
  color: var(--texte-3);
  border: 1.5px dashed var(--gris-bordure-2);
  cursor: default;
}
.btn-soon:hover { transform: none; }


/* =====================================================================
   11. BADGES & PUCES DE STATUT
   ===================================================================== */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.badge {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--texte-2);
  background: var(--noir-panel-2);
  border: 1px solid var(--gris-bordure-2);
  border-radius: 6px;
  padding: 0.28rem 0.6rem;
}

.app-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  margin-block: 1rem 1.1rem;
}
.app-status .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.app-status--on   { color: var(--succes); }
.app-status--on   .dot { background: var(--succes); box-shadow: 0 0 8px rgba(110,231,168,0.6); }
.app-status--soon { color: var(--jaune); }
.app-status--soon .dot { background: var(--jaune); }


/* =====================================================================
   12. CARTES D'APPLICATIONS
   ===================================================================== */
.app-card {
  display: flex;
  flex-direction: column;
  background: var(--carte);
  border: 1px solid var(--gris-bordure);
  border-radius: var(--rayon);
  padding: 1.6rem 1.6rem 1.4rem;
  box-shadow: var(--ombre-carte);
  transition: border-color var(--transition), transform var(--transition);
}
.app-card:hover {
  border-color: var(--bord-jaune-f);
  transform: translateY(-5px);
}

.app-card-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.app-icon {
  width: 66px; height: 66px;
  flex-shrink: 0;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--gris-bordure-2);
  background: var(--noir-panel);
}
.app-icon-img { width: 100%; height: 100%; object-fit: cover; }

.app-cat {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cyan);
}
.app-name { font-size: 1.34rem; margin-top: 0.15rem; }
.app-name a { color: var(--texte); }
.app-name a:hover { color: var(--jaune); }

.app-resume {
  font-size: 1rem;
  color: var(--texte-2);
  margin-bottom: 1rem;
}

.app-card .badge-row { margin-bottom: 0.2rem; }

.app-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.app-card-actions .btn { flex: 1 1 auto; }

.app-card-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.86rem;
  color: var(--texte-3);
  border-top: 1px solid var(--gris-bordure);
  padding-top: 0.9rem;
  margin-top: auto;
}
.app-card-links a { color: var(--texte-2); }
.app-card-links a:hover { color: var(--jaune); }

/* Bloc de remplacement d'image */
.img-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(45deg,
      var(--noir-panel) 0, var(--noir-panel) 12px,
      var(--noir-panel-2) 12px, var(--noir-panel-2) 24px);
  color: var(--texte-3);
  text-align: center;
  padding: 1rem;
}
.img-fallback .ph-glyph {
  font-family: var(--mono);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--jaune-sombre);
}
.img-fallback .ph-label {
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}
.img-fallback--icon  { aspect-ratio: 1 / 1; }
.img-fallback--wide  { aspect-ratio: 16 / 9; }
.img-fallback--phone { aspect-ratio: 9 / 19.5; }


/* =====================================================================
   13. PAGE APPLICATION & FONCTIONNALITÉS
   ===================================================================== */
/* Hero de fiche application */
.app-hero {
  position: relative;
  padding-block: clamp(2.6rem, 6vw, 4.4rem);
}
.app-hero-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.4rem, 4vw, 2.6rem);
  align-items: center;
}
.app-hero-icon {
  width: 132px; height: 132px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--bord-jaune-f);
  background: var(--noir-panel);
  flex-shrink: 0;
}
.app-hero-icon img { width: 100%; height: 100%; object-fit: cover; }

.app-hero-cat {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}
.app-hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--texte);
  margin-bottom: 0.4rem;
}
.app-hero-sub {
  font-size: 1.06rem;
  color: var(--texte-2);
  margin-bottom: 1rem;
}

/* Bandeau d'informations pratiques */
.info-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--gris-bordure);
  border: 1px solid var(--gris-bordure);
  border-radius: var(--rayon);
  overflow: hidden;
}
.info-cell {
  background: var(--carte);
  padding: 1.05rem 1.2rem;
}
.info-cell dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--texte-3);
  margin-bottom: 0.25rem;
}
.info-cell dd {
  font-size: 1rem;
  font-weight: 600;
  color: var(--texte);
}

/* Encart « écran de jeu » illustratif dessiné en CSS (fallback hero) */
.lcd-demo {
  background: var(--noir);
  border: 1px solid var(--gris-bordure-2);
  border-radius: var(--rayon);
  padding: 1.4rem;
  text-align: center;
}
.lcd-target {
  font-family: var(--mono);
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--jaune);
  text-shadow: 0 0 18px rgba(255, 228, 77, 0.35);
  background: #000;
  border: 1px solid var(--gris-bordure);
  border-radius: var(--rayon-petit);
  padding: 0.5rem 0;
  margin-bottom: 1rem;
}
.lcd-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-bottom: 1rem;
}
.lcd-tile {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: #eafaff;
  background: var(--cyan);
  border-radius: 7px;
  padding: 0.55rem 0;
}
.lcd-ops {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.lcd-op {
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--jaune);
  background: #000;
  border: 1px solid var(--gris-bordure-2);
  border-radius: 7px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}


/* =====================================================================
   14. GALERIE DE CAPTURES
   ===================================================================== */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.1rem;
}
.shot {
  background: var(--carte);
  border: 1px solid var(--gris-bordure);
  border-radius: var(--rayon);
  padding: 0.7rem;
  transition: border-color var(--transition), transform var(--transition);
}
.shot:hover { border-color: var(--bord-jaune-f); transform: translateY(-3px); }
.shot-frame {
  border-radius: var(--rayon-petit);
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  border: 1px solid var(--gris-bordure);
  background: var(--noir-panel);
}
.shot-frame img { width: 100%; height: 100%; object-fit: cover; }
.shot-cap {
  text-align: center;
  font-size: 0.85rem;
  color: var(--texte-3);
  padding-top: 0.6rem;
}


/* =====================================================================
   15. PAGES LÉGALES / SUPPORT
   ===================================================================== */
.doc {
  max-width: var(--largeur-texte);
  margin-inline: auto;
}
.doc h2 {
  font-size: 1.32rem;
  color: var(--jaune);
  margin-block: 2rem 0.6rem;
}
.doc h2:first-of-type { margin-top: 0.4rem; }
.doc h3 {
  font-size: 1.08rem;
  color: var(--texte);
  margin-block: 1.3rem 0.4rem;
}
.doc p { margin-bottom: 0.9rem; }
.doc ul.doc-list {
  margin-bottom: 0.9rem;
  padding-left: 1.2rem;
}
.doc ul.doc-list li { list-style: disc; margin-bottom: 0.32rem; }
.doc-meta {
  font-family: var(--mono);
  font-size: 0.86rem;
  color: var(--texte-3);
  border-left: 2px solid var(--jaune);
  padding-left: 0.9rem;
  margin-bottom: 1.6rem;
}

/* Encart d'avertissement (Play Console) */
.callout {
  display: flex;
  gap: 0.9rem;
  background: rgba(255, 228, 77, 0.06);
  border: 1px solid var(--bord-jaune);
  border-radius: var(--rayon);
  padding: 1.1rem 1.3rem;
  margin-block: 1.4rem;
}
.callout .callout-mark {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--jaune);
  flex-shrink: 0;
}
.callout p { margin: 0; font-size: 0.96rem; }

/* Question/réponse de la page support */
.faq-item {
  background: var(--carte);
  border: 1px solid var(--gris-bordure);
  border-left: 3px solid var(--cyan);
  border-radius: var(--rayon-petit);
  padding: 1.1rem 1.3rem;
  margin-bottom: 0.9rem;
}
.faq-item h3 {
  font-size: 1.05rem;
  color: var(--texte);
  margin: 0 0 0.35rem;
}
.faq-item p { margin: 0; font-size: 0.97rem; }


/* =====================================================================
   16. FORMULAIRE
   ===================================================================== */
.contact-panel {
  background: var(--carte);
  border: 1px solid var(--gris-bordure);
  border-radius: var(--rayon);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  text-align: center;
}
.contact-mail {
  display: inline-block;
  font-family: var(--mono);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--jaune);
  margin-block: 0.5rem 1.3rem;
}

.form {
  display: grid;
  gap: 1.05rem;
  max-width: 600px;
  margin-inline: auto;
  text-align: left;
}
.form-row { display: grid; gap: 1.05rem; }
@media (min-width: 600px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }

.field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--texte);
  margin-bottom: 0.35rem;
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--texte-police);
  font-size: 1rem;
  color: var(--texte);
  background: var(--noir);
  border: 1px solid var(--gris-bordure-2);
  border-radius: var(--rayon-petit);
  padding: 0.72rem 0.9rem;
  transition: border-color var(--transition);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--jaune);
}
.field textarea { resize: vertical; min-height: 150px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--texte-3); }

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

.form-note { font-size: 0.85rem; color: var(--texte-3); }

.form-message {
  border-radius: var(--rayon-petit);
  padding: 0.95rem 1.2rem;
  font-size: 0.97rem;
  margin-bottom: 1.3rem;
}
.form-message--ok {
  background: rgba(110, 231, 168, 0.1);
  border: 1px solid rgba(110, 231, 168, 0.4);
  color: var(--succes);
}
.form-message--error {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.4);
  color: var(--alerte);
}


/* =====================================================================
   17. PIED DE PAGE
   ===================================================================== */
.site-footer {
  border-top: 1px solid var(--gris-bordure);
  background: rgba(20, 20, 20, 0.5);
  padding-block: 2.8rem 2rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.4fr 1fr;
  gap: 2rem;
  padding-bottom: 1.8rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--titre);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--texte);
}
.footer-logo .brand-mark { width: 28px; height: 28px; padding: 7px 6px; gap: 2.5px; }
.footer-tagline {
  font-size: 0.92rem;
  color: var(--texte-3);
  margin-top: 0.7rem;
}
.footer-title {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jaune);
  margin-bottom: 0.85rem;
}
.footer-col ul { display: grid; gap: 0.5rem; }
.footer-col a { color: var(--texte-2); font-size: 0.92rem; }
.footer-col a:hover { color: var(--jaune); }

.footer-copy {
  border-top: 1px solid var(--gris-bordure);
  padding-top: 1.3rem;
  font-size: 0.84rem;
  color: var(--texte-3);
}


/* =====================================================================
   18. RETOUR HAUT, ANIMATIONS, RESPONSIVE
   ===================================================================== */
.to-top {
  position: fixed;
  right: 1.3rem; bottom: 1.3rem;
  width: 44px; height: 44px;
  border-radius: var(--rayon-petit);
  background: var(--noir-panel);
  border: 1px solid var(--bord-jaune-f);
  color: var(--jaune);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition),
              background var(--transition);
  z-index: 90;
}
.to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { background: var(--noir-panel-2); }

/* Apparition au scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 620ms ease, transform 620ms ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-inner > * { animation: fadeUp 700ms ease both; }
.hero-inner > *:nth-child(1) { animation-delay: 40ms; }
.hero-inner > *:nth-child(2) { animation-delay: 110ms; }
.hero-inner > *:nth-child(3) { animation-delay: 180ms; }
.hero-inner > *:nth-child(4) { animation-delay: 250ms; }
.hero-inner > *:nth-child(5) { animation-delay: 320ms; }

/* --- Tablette --- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

/* --- Mobile --- */
@media (max-width: 760px) {
  body { font-size: 1rem; }

  .nav-toggle { display: flex; }

  .header-end {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(11, 11, 11, 0.99);
    border-bottom: 1px solid var(--gris-bordure);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-height: 0;
    overflow: hidden;
    transition: max-height 320ms ease;
  }
  .header-end.is-open { max-height: 420px; }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.5rem 0.3rem;
  }
  .site-nav li { border-bottom: 1px solid var(--gris-bordure); }
  .site-nav a { display: block; padding: 0.95rem 0; font-size: 1.04rem; }
  .site-nav a::after { display: none; }

  .header-cta { margin: 0.8rem 1.5rem 1.1rem; }

  .grid--2, .grid--3, .grid--apps { grid-template-columns: 1fr; }

  .app-hero-grid { grid-template-columns: 1fr; }
  .app-hero-icon { width: 100px; height: 100px; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  .btn-row .btn { width: 100%; }
  .app-card-actions .btn { width: 100%; }
}

@media (max-width: 420px) {
  .wrap { padding-inline: 1.15rem; }
  .lcd-target { font-size: 2.5rem; }
  .to-top { right: 1rem; bottom: 1rem; }
}


/* =====================================================================
   RÉDUCTION DES ANIMATIONS
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
