/* ═══════════════════════════════════════════════════════════════════════
   L'ÉDITION by Grid Team — site éditorial

   Registre INVERSE de gridteam.app : ici le carbone domine et le crème
   ponctue. Grid Team est un jeu, lumineux et crème ; L'ÉDITION est un
   média, sombre et posé. Même marque, deux voix.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --orange:       #F47A16;
  --orange-clair: #F9A03F;   /* orange V2 éclairci — lisible sur carbone */
  --or:           #E8C86A;
  --carbone:      #0B0E11;
  --carbone-2:    #101418;
  --carbone-3:    #171B1F;
  --creme:        #F7F6F3;
  --creme-chaud:  #FFF6E9;
  --texte:        rgba(247,246,243,.90);
  --texte-doux:   rgba(247,246,243,.58);
  --filet:        rgba(247,246,243,.10);

  --rayon:   24px;
  --colonne: 1120px;
  --respire: clamp(84px, 10vw, 152px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--carbone);
  color: var(--texte);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 17px; line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Bebas Neue', 'Oswald', 'Arial Narrow', sans-serif;
  text-transform: uppercase; letter-spacing: .03em;
  font-weight: 400; margin: 0; line-height: .95;
  color: var(--creme);
}
a { color: inherit; }

.enveloppe { max-width: var(--colonne); margin: 0 auto; padding: 0 28px; }

/* ─── En-tête ─────────────────────────────────────────────────────────── */

.entete {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11,14,17,.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--filet);
}
.entete .enveloppe {
  display: flex; align-items: center; justify-content: space-between; height: 76px;
}
.entete img { height: 26px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--texte-doux); transition: color .18s; }
.nav a:hover { color: var(--creme); }

/* ─── Héros ───────────────────────────────────────────────────────────── */

.heros {
  position: relative; overflow: hidden;
  padding: clamp(78px, 11vw, 148px) 0 clamp(64px, 8vw, 108px);
  border-bottom: 1px solid var(--filet);
}
/* Photo d'ambiance très en retrait : elle donne de la matière, pas du sujet. */
.heros::before {
  content: ''; position: absolute; inset: 0;
  background: url('img/ambiance.webp') center 30% / cover no-repeat;
  opacity: .17; filter: grayscale(.35);
}
.heros::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(1100px 520px at 22% 20%, rgba(244,122,22,.13) 0%, rgba(11,14,17,0) 62%),
              linear-gradient(180deg, rgba(11,14,17,.30) 0%, var(--carbone) 94%);
}
.heros .enveloppe { position: relative; z-index: 2; }

.surtitre {
  display: inline-flex; align-items: center; gap: 11px;
  font-size: 12.5px; letter-spacing: .19em; text-transform: uppercase;
  color: var(--orange-clair); font-weight: 600; margin-bottom: 26px;
}
.surtitre::before { content: ''; width: 30px; height: 2px; background: var(--orange); }

.heros h1 { font-size: clamp(52px, 8vw, 108px); max-width: 15ch; }
.heros h1 em { font-style: normal; color: var(--orange-clair); }

.promesse {
  font-size: clamp(19px, 2.2vw, 26px);
  color: var(--texte); max-width: 40ch; margin: 30px 0 0;
  font-weight: 450; line-height: 1.5;
}

/* ─── Les trois piliers du positionnement ─────────────────────────────── */

.piliers {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--filet);
  border: 1px solid var(--filet); border-radius: var(--rayon);
  overflow: hidden; margin-top: clamp(48px, 6vw, 76px);
}
.pilier { background: var(--carbone-2); padding: 38px 32px; }
.pilier .num {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: 15px; letter-spacing: .14em; color: var(--or); display: block; margin-bottom: 14px;
}
.pilier h3 { font-size: 27px; margin-bottom: 12px; }
.pilier p { margin: 0; color: var(--texte-doux); font-size: 15.5px; }

/* ─── Section générique ───────────────────────────────────────────────── */

.section { padding: var(--respire) 0; }
.section.claire {
  background: var(--creme); color: #2C2C2C;
  border-top: 1px solid var(--filet);
}
.section.claire h2, .section.claire h3 { color: #151515; }
.section.claire .surtitre { color: #B35508; }
.section h2 { font-size: clamp(38px, 5vw, 62px); max-width: 17ch; }
.section .intro { max-width: 54ch; margin-top: 20px; font-size: 18.5px; color: var(--texte-doux); }
.section.claire .intro { color: #5F5F5F; }

/* ─── Où la lire ──────────────────────────────────────────────────────── */

.ou-lire { display: grid; grid-template-columns: 1fr .8fr; gap: 64px; align-items: center; }
.ou-lire img.telephone {
  width: 100%; border-radius: var(--rayon);
  box-shadow: 0 40px 78px rgba(0,0,0,.42);
  transform: rotate(-2deg);
}
.badges { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 32px; }
.badge-store {
  display: inline-flex; align-items: center; gap: 11px;
  background: #151515; color: #fff;
  padding: 11px 20px 11px 17px; border-radius: 13px; text-decoration: none;
  transition: transform .2s;
}
.badge-store:hover { transform: translateY(-2px); }
.badge-store svg { width: 23px; height: 23px; fill: #fff; flex: none; }
.badge-store span { display: block; font-size: 10px; letter-spacing: .07em; opacity: .72; text-transform: uppercase; }
.badge-store b { display: block; font-size: 15.5px; font-weight: 600; line-height: 1.15; }

/* ─── Pied de page ────────────────────────────────────────────────────── */

.pied {
  background: var(--carbone-3);
  border-top: 1px solid var(--filet);
  padding: 60px 0 40px; font-size: 15px;
}
.pied .marque { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; }
.pied .marque img { height: 24px; width: auto; }
.pied .marque span { color: var(--texte-doux); font-size: 14px; }
.pied-liens {
  display: flex; flex-wrap: wrap; gap: 14px 30px;
  padding-bottom: 28px; border-bottom: 1px solid var(--filet);
}
.pied-liens a { text-decoration: none; color: rgba(247,246,243,.84); }
.pied-liens a:hover { color: var(--creme); text-decoration: underline; }
.mention {
  margin-top: 26px; color: rgba(247,246,243,.60);
  font-size: 13.5px; line-height: 1.7; max-width: 78ch;
}
.copyright { margin-top: 18px; font-size: 13px; color: rgba(247,246,243,.38); }

/* ─── Apparition au défilement ────────────────────────────────────────── */

.monte { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.monte.vu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .monte { opacity: 1; transform: none; transition: none; }
  .badge-store:hover { transform: none; }
}

/* ─── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .piliers { grid-template-columns: 1fr; }
  .ou-lire { grid-template-columns: 1fr; gap: 44px; }
  .ou-lire img.telephone { transform: none; max-width: 380px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .enveloppe { padding: 0 20px; }
  .heros h1 { font-size: clamp(40px, 12vw, 60px); }
  .pied-liens { flex-direction: column; gap: 13px; }
}
