/* Altycs — site vitrine.
   Identité reprise de l'app et de la vidéo : graphite pour le problème, parchemin pour
   la solution, laiton en accent (jamais en grande surface). Bordures fines, pas d'ombres.
   Aucune ressource externe : la police Outfit est servie depuis /assets (licence OFL). */

@font-face {
  font-family: "Outfit";
  src: url("assets/Outfit.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --graphite: #1e2124;
  --graphite-2: #262a2e;
  --graphite-3: #31363b;
  --parchemin: #f3efe6;
  --surface: #faf8f3;
  --encre: #22201c;
  --encre-2: #3d3a34;
  --encre-500: #6b6862;
  --gris-sombre: #a8a399;
  --laiton: #a67c3d;        /* graphique et chiffres ≥ 18 px sur clair */
  --laiton-clair: #c2934f;  /* texte et accents sur graphite */
  --laiton-texte: #825f2d;  /* texte laiton sur parchemin (5,05:1) */
  --ligne-sombre: rgba(243, 239, 230, 0.1);
  --ligne-claire: rgba(107, 104, 98, 0.2);
  --police: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --rayon: 12px;
  --largeur: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--police);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--parchemin);
  background: var(--graphite);
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); margin-bottom: 1.1rem; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; max-width: 62ch; }
em { font-style: normal; color: var(--laiton-clair); }
.clair em { color: var(--laiton-texte); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--laiton-clair); outline-offset: 3px; border-radius: 4px; }

.conteneur { width: 100%; max-width: var(--largeur); margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }
.conteneur--etroit { max-width: 820px; }

.sombre { background: var(--graphite); color: var(--parchemin); }
.clair { background: var(--parchemin); color: var(--encre); }
.bloc { padding-block: clamp(72px, 10vw, 128px); }
.sombre + .sombre { border-top: 1px solid var(--ligne-sombre); }
.clair + .clair { border-top: 1px solid var(--ligne-claire); }

/* ── En-tête ── */
.entete {
  position: sticky; top: 0; z-index: 10;
  background: rgba(30, 33, 36, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ligne-sombre);
}
.entete__ligne { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 0.95rem; }
.nav a { color: var(--gris-sombre); text-decoration: none; }
.nav a:hover { color: var(--parchemin); }
@media (max-width: 900px) { .nav { display: none; } .entete .bouton { margin-left: auto; } }

/* ── Boutons ── */
.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--laiton-clair); color: var(--graphite);
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}
.bouton:hover { background: #d0a05c; transform: translateY(-1px); }
.bouton--petit { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }
.bouton--contour { background: transparent; color: var(--parchemin); border: 1.5px solid rgba(243, 239, 230, 0.35); }
.bouton--contour:hover { background: rgba(243, 239, 230, 0.06); }
.lien-fleche { color: var(--gris-sombre); text-decoration: none; font-weight: 500; }
.lien-fleche::after { content: " ↓"; color: var(--laiton-clair); }
.lien-fleche:hover { color: var(--parchemin); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin: 30px 0 18px; }
.actions--centre { justify-content: center; }
.mention { font-size: 0.9rem; color: var(--gris-sombre); }
.clair .mention { color: var(--encre-500); }
.mention--centre { text-align: center; margin: 34px auto 0; }

.surtitre, .etape {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--laiton-clair); margin-bottom: 1.2rem;
}
.etape span { font-variant-numeric: tabular-nums; margin-right: 10px; opacity: 0.7; }
.etape--clair { color: var(--laiton-texte); }

/* ── Accroche ── */
.accroche { padding-block: clamp(56px, 8vw, 104px); background: radial-gradient(ellipse 70% 60% at 30% 30%, var(--graphite-2), var(--graphite) 70%); }
.accroche__grille { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.accroche h1 em { display: block; }
.chapeau { font-size: 1.2rem; color: #d9d4c8; margin-top: 1.4rem; }
.chapeau strong { color: var(--parchemin); font-weight: 600; }
.video { margin: 0; }
.video video { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--rayon); border: 1px solid var(--ligne-sombre); background: #000; }
.video figcaption { font-size: 0.85rem; color: var(--gris-sombre); margin-top: 12px; }
@media (max-width: 900px) { .accroche__grille { grid-template-columns: 1fr; } }

/* ── Deux colonnes ── */
.deux-colonnes { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.deux-colonnes--haut { align-items: start; margin-bottom: 48px; }
.deux-colonnes > * { min-width: 0; }
@media (max-width: 860px) { .deux-colonnes { grid-template-columns: 1fr; } }

/* ── 1 · Constat ── */
.chiffre-cle { display: flex; gap: 24px; align-items: flex-start; margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--ligne-sombre); }
.chiffre-cle__valeur { font-size: clamp(3rem, 6vw, 4.2rem); font-weight: 700; line-height: 1; color: var(--laiton-clair); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; flex: none; }
.chiffre-cle p { margin: 0; color: #d9d4c8; }
.recherche { display: flex; flex-direction: column; gap: 12px; }
.recherche__barre {
  display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 0 20px;
  border-radius: 14px; background: var(--graphite-2); border: 1.5px solid rgba(194, 147, 79, 0.6);
  font-size: 1.15rem; margin-bottom: 6px;
}
.loupe { width: 18px; height: 18px; border: 2.5px solid var(--gris-sombre); border-radius: 50%; position: relative; flex: none; }
.loupe::after { content: ""; position: absolute; width: 8px; height: 2.5px; background: var(--gris-sombre); right: -8px; bottom: -4px; transform: rotate(45deg); border-radius: 2px; }
.resultat {
  display: flex; align-items: center; gap: 16px; min-height: 76px; padding: 0 18px;
  border-radius: 14px; background: var(--graphite-2); border: 1.5px solid var(--graphite-3);
}
.resultat--actif { border-color: var(--laiton); box-shadow: 0 14px 40px rgba(166, 124, 61, 0.12); }
.resultat--vous { opacity: 0.85; }
.vignette { width: 42px; height: 42px; border-radius: 10px; background: var(--graphite-3); flex: none; }
.resultat--actif .vignette { background: rgba(166, 124, 61, 0.28); }
.barres { display: flex; flex-direction: column; gap: 7px; }
.barres i { display: block; width: 130px; height: 10px; border-radius: 5px; background: rgba(243, 239, 230, 0.2); }
.barres b { font-size: 0.8rem; letter-spacing: 2px; color: var(--laiton-clair); font-weight: 400; }
.resultat--vous .barres b { color: #5a5f64; }
.puce { margin-left: auto; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--laiton-clair); border: 1.5px solid rgba(194, 147, 79, 0.55); border-radius: 999px; padding: 5px 12px; white-space: nowrap; }
.puce--vous { color: var(--parchemin); border-color: var(--gris-sombre); letter-spacing: 0; text-transform: none; font-size: 0.9rem; }
@media (max-width: 420px) { .barres i { width: 80px; } }

/* ── 2 · Audit ── */
.anneau-score { position: relative; width: min(240px, 60vw); aspect-ratio: 1; justify-self: center; }
.anneau-score svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.anneau-score circle { fill: none; stroke-width: 7; }
.anneau-score .piste { stroke: var(--graphite-3); }
.anneau-score .arc { stroke: var(--laiton); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: calc(326.7 * 0.28); }
.anneau-score__texte { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--gris-sombre); font-size: 0.95rem; }
.anneau-score__texte b { font-size: 4.2rem; line-height: 1; color: var(--parchemin); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.constats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--ligne-sombre); border: 1px solid var(--ligne-sombre); border-radius: var(--rayon); overflow: hidden; }
.constats li { background: var(--graphite); padding: 28px 28px 22px; }
.constats__cle { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.1rem; margin-bottom: 10px; }
.constats__cle::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #c25f4c; flex: none; }
.constats p { color: #d9d4c8; margin: 0; font-size: 1rem; }
@media (max-width: 700px) { .constats { grid-template-columns: 1fr; } }

/* ── 3 · Cas réel ── */
.chaine { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.chaine li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; position: relative; color: var(--encre-500); font-size: 1.05rem; }
.chaine li + li::before { content: "→"; position: absolute; left: -12px; top: 42px; transform: translateX(-50%); color: var(--laiton); font-size: 1.8rem; }
.chaine__nombre { font-size: clamp(3.6rem, 9vw, 6.2rem); font-weight: 600; line-height: 1; letter-spacing: -0.04em; color: var(--encre); font-variant-numeric: tabular-nums; min-height: 1.3em; display: flex; align-items: center; }
.chaine__nombre small { font-size: 0.45em; color: var(--encre-500); font-weight: 500; }
.chaine__fort .chaine__nombre { color: var(--laiton-texte); width: 1.35em; aspect-ratio: 1; justify-content: center; border: 3px solid var(--laiton); border-radius: 50%; }
.derives { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; margin: 52px 0 26px; padding: 22px 0; border-block: 1px solid var(--ligne-claire); }
.derives p { margin: 0; color: var(--encre-2); }
.derives b { color: var(--laiton-texte); font-size: 1.25rem; font-weight: 700; margin-right: 6px; }
.precision { color: var(--encre-500); margin-inline: auto; text-align: center; font-size: 0.98rem; }
@media (max-width: 700px) {
  .chaine { grid-template-columns: 1fr; gap: 40px; }
  .chaine li + li::before { content: "↓"; left: 50%; top: -38px; }
}

/* ── 4 · Méthode ── */
.etapes { list-style: none; counter-reset: etape; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.etapes li { counter-increment: etape; background: var(--surface); border: 1px solid var(--ligne-claire); border-radius: var(--rayon); padding: 26px 24px; }
.etapes li::before { content: "0" counter(etape); display: block; color: var(--laiton-texte); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.1em; margin-bottom: 14px; }
.etapes h3 { margin-bottom: 10px; }
.etapes p { margin: 0; color: var(--encre-500); font-size: 0.98rem; }
.garanties { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 14px; }
.garanties li { position: relative; padding-left: 34px; color: var(--encre-2); max-width: 78ch; }
.garanties li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 18px; height: 10px; border-left: 2.5px solid var(--laiton); border-bottom: 2.5px solid var(--laiton); transform: rotate(-45deg); }
.garanties strong { color: var(--encre); }
@media (max-width: 960px) { .etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .etapes { grid-template-columns: 1fr; } }

/* ── 5 · Formules ── */
.formules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.formule { border: 1px solid var(--ligne-sombre); border-radius: var(--rayon); padding: 30px 28px; background: var(--graphite-2); }
.formule--mise { border-color: var(--laiton); }
.prix { margin: 14px 0 22px; color: var(--gris-sombre); }
.prix b { font-size: 2.3rem; color: var(--parchemin); font-weight: 700; letter-spacing: -0.02em; margin-right: 4px; font-variant-numeric: tabular-nums; }
.formule ul { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--ligne-sombre); display: grid; gap: 10px; color: #d9d4c8; }
.formule li::before { content: "·"; color: var(--laiton-clair); font-weight: 700; margin-right: 10px; }
.formule strong { color: var(--parchemin); font-weight: 600; }
@media (max-width: 860px) { .formules { grid-template-columns: 1fr; } }

/* ── Questions ── */
details { border-bottom: 1px solid var(--ligne-claire); }
details:first-of-type { border-top: 1px solid var(--ligne-claire); }
summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-weight: 600; font-size: 1.12rem; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--laiton-texte); font-size: 1.6rem; font-weight: 400; transition: transform 0.2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { color: var(--encre-2); padding-bottom: 12px; }

/* ── Contact ── */
.contact { background: radial-gradient(ellipse 60% 70% at 50% 40%, var(--graphite-2), var(--graphite) 70%); }
.contact__boite { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact__symbole { width: 72px; height: 72px; margin-bottom: 28px; }
.contact p { color: #d9d4c8; }
.coordonnees { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 14px; font-size: 0.98rem; }
.coordonnees span { user-select: all; color: var(--gris-sombre); }

/* ── Pied ── */
.pied { border-top: 1px solid var(--ligne-sombre); padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); color: var(--gris-sombre); font-size: 0.9rem; }
.pied__ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.pied__ligne p { margin: 0; }
.pied__ligne p:last-child { margin-left: auto; }
.pied img { height: 28px; width: auto; }
@media (max-width: 600px) { .pied__ligne p:last-child { margin-left: 0; } }

/* ── Apparition au défilement, pilotée par le navigateur (animation-timeline).
      Un script d'apparition laissait des blocs invisibles quand son déclencheur ratait
      (constaté sur mobile). Ici, sans prise en charge, tout est simplement visible ;
      avec, un bloc déjà dépassé reste à son état final grâce à « both ». ── */
@keyframes apparition { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .bloc h2, .chiffre-cle, .recherche, .constats li, .chaine li, .etapes li, .formule, .anneau-score {
      animation: apparition linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ── Mentions légales ── */
.page-legale { padding-block: 64px 96px; }
.page-legale h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 32px; }
.page-legale h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.page-legale p, .page-legale li { color: var(--encre-2); }
.a-completer { background: #f8e7e3; color: #8a3a2e; padding: 1px 6px; border-radius: 4px; font-weight: 600; }
