/* ══════════════════════════════════════════════════════════
   INDUSCAPE V2.0 — Feuille de style commune
   style.css · partagée par index, indicateur-m/c/h
   ══════════════════════════════════════════════════════════ */

/* ── 1. VARIABLES ── */
:root {
  --navy: #0B1929;
  --navy-mid: #152740;
  --navy-light: #1E3555;
  --orange: #E05C1A;
  --orange-light: #F07840;
  --cream: #F4F0E8;
  --cream-dark: #E8E2D6;
  --white: #FFFFFF;
  --text-dark: #0B1929;
  --text-mid: #3D5068;
  --text-light: #8399AE;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Outfit', sans-serif;
  --mono: 'DM Mono', monospace;
  --radius: 4px;
  --transition: 0.3s ease;
}

/* ── 2. RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text-dark);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── 3. NAVIGATION ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 5%;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(11, 25, 41, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.04em;
  text-decoration: none;
}
.nav-logo span { color: var(--orange); }

/* Lien retour (pages indicateur uniquement) */
.nav-back {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--transition);
}
.nav-back:hover { color: var(--white); }

/* CTA nav */
.nav-cta {
  background: var(--orange);
  color: var(--white);
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition);
}
.nav-cta:hover { background: var(--orange-light); }

/* Menu hamburger (index uniquement) */
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: white;
  margin: 5px 0;
  transition: all 0.3s;
}

/* ── 4. HERO PAGES INDICATEUR (M / C / H) ── */
.page-hero {
  background: var(--navy);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  /* ↓ Réduit : était 120px 5% 80px */
  padding: 88px 5% 48px;
  position: relative;
  overflow: hidden;
  gap: 3rem;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-glow {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(ellipse, rgba(224,92,26,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; }
.hero-right {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}
.hero-breadcrumb {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--orange);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-tag::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--orange);
}
.hero-hint {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.08em;
  text-align: center;
}

/* ── 5. TYPOGRAPHIE ── */
h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.2rem;
}
h1 em { font-style: italic; color: var(--orange); }

h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 1rem;
}
h2 em { font-style: italic; color: var(--orange); }

.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 2rem;
}

/* ↓ Réduit : était 80px 5% — maintenant 56px sur toutes les pages */
section { padding: 56px 5%; }

.section-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--orange);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.section-tag::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--orange);
}

/* ↓ Réduit : margin-bottom était 3rem */
.lead {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.8;
  max-width: 640px;
  font-weight: 300;
  margin-bottom: 2rem;
}

/* ── 6. BOUTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--orange);
  color: var(--white);
  text-decoration: none;
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--orange-light); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all var(--transition);
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); color: white; }

/* Boutons index uniquement */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 400;
  border: 1px solid rgba(255,255,255,0.18);
  transition: all var(--transition);
}
.btn-secondary:hover { background: rgba(255,255,255,0.06); color: white; border-color: rgba(255,255,255,0.35); }

.btn-tertiary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all var(--transition);
}
.btn-tertiary:hover { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.2); }

/* ── 7. CTA SECTION (bas des pages indicateur) ── */
/* ↓ Réduit : était 80px 5% */
.cta-section { background: var(--navy); padding: 56px 5%; text-align: center; }
.cta-section h2 { color: var(--white); margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.45); font-size: 0.95rem; margin-bottom: 2rem; font-weight: 300; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── 8. GRILLE DOMAINES (partagée index ↔ indicateur-m) ── */
.domaines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--cream-dark);
  border: 1px solid var(--cream-dark);
  border-radius: 8px;
  overflow: hidden;
}
.domaine-card {
  background: var(--white);
  padding: 1.6rem 1.4rem;
  transition: background var(--transition);
  cursor: default;
}
.domaine-card:hover { background: var(--cream); }
.domaine-code {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--orange);
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}
.domaine-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 0.3rem;
}
.domaine-desc {
  font-size: 0.78rem;
  color: var(--text-mid);
  line-height: 1.65;
  font-weight: 300;
  margin-top: 0.6rem;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.35s ease, max-height 0.35s ease;
}
.domaine-card:hover .domaine-desc { opacity: 1; max-height: 180px; }

/* ── 9. FOOTER ── */
footer {
  background: #071018;
  padding: 32px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.04);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.35);
  font-weight: 500;
  text-decoration: none;
}
.footer-logo span { color: var(--orange); }
.footer-copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.18);
  font-family: var(--mono);
}
.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.footer-links a {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: rgba(255,255,255,0.6); }

/* ── 10. ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; animation: fadeUp 0.7s ease forwards; }
.fade-up.d1 { animation-delay: 0.1s; }
.fade-up.d2 { animation-delay: 0.25s; }
.fade-up.d3 { animation-delay: 0.4s; }
.fade-up.d4 { animation-delay: 0.55s; }
.fade-up.d5 { animation-delay: 0.7s; }

/* ── 11. RESPONSIVE ── */
@media (max-width: 900px) {
  /* nav */
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  /* hero indicateur */
  .page-hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  /* domaines */
  .domaines-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  /* ↓ Réduit : était 70px (index) / 56px (indicateur) */
  section { padding: 40px 5%; }
  .cta-section { padding: 40px 5%; }
  .domaines-grid { grid-template-columns: 1fr; }
}

/* Menu mobile ouvert (index) */
.nav-menu-open .nav-links {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: var(--navy);
  padding: 2rem 5%;
  gap: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
