/* ═══════════════════════════════════════════════════════════
   TRANSFENNEC — CSS PARTAGÉ
   ═══════════════════════════════════════════════════════════ */

:root {
  /* ── Couleurs de base ── */
  --sand:             #D4A96A;
  --sand-pale:        #F0DFC0;
  --ember:            #B84E15;
  --ember-light:      #D4611F;
  --dark:             #0E0D0B;
  --dark-mid:         #1A1814;
  --dark-soft:        #2A2620;
  --dust:             #8A7860;
  --white:            #FAF8F4;
  --cream:            #F2EDE4;
  --cream-mid:        #E2D8CC;
  --ink:              #1C1A17;

  /* ── Texte sur fonds SOMBRES ── */
  --text-primary:     #FAF8F4;
  --text-secondary:   rgba(250,248,244,0.72);
  --text-tertiary:    rgba(250,248,244,0.55);
  --text-muted:       rgba(250,248,244,0.40);

  /* ── Texte sur fonds CLAIRS ── */
  --ink-primary:      #1C1A17;
  --ink-secondary:    rgba(28,26,23,0.72);
  --ink-tertiary:     rgba(28,26,23,0.55);
  --ink-muted:        rgba(28,26,23,0.42);

  /* ── Ember accessible sur fond clair ── */
  --ember-on-light:   #9A3E0E;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--dark); color: var(--white); font-family: 'Barlow', sans-serif; font-weight: 300; overflow-x: hidden; }

/* ── HEADER ─────────────────────────────────────────────── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 110px;
  background: rgba(14,13,11,0.97);
  border-bottom: 1px solid rgba(212,169,106,0.12);
  transition: border-color 0.3s;
}

header.transparent { background: transparent; border-color: transparent; }

.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 100px; width: auto; }
.logo-footer { gap: 16px; }
.logo-footer img { height: 120px; }
.logo-footer .logo-text { font-family: 'Bebas Neue', sans-serif; font-size: 24px; letter-spacing: 3px; color: var(--white); line-height: 1; }
.logo-footer .logo-text span { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 4px; color: var(--sand); text-transform: uppercase; margin-top: 4px; }

nav { display: flex; align-items: center; gap: 32px; }
nav a { font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--text-tertiary); text-decoration: none; transition: color 0.2s; }
nav a:hover, nav a.active { color: var(--white); }
nav a.active { border-bottom: 1px solid var(--sand); padding-bottom: 1px; }
.nav-cta { background: var(--ember) !important; color: var(--white) !important; padding: 9px 22px; border-bottom: none !important; transition: background 0.2s !important; }
.nav-cta:hover { background: var(--ember-light) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: var(--white); transition: all 0.3s; }

/* ── BREADCRUMB ──────────────────────────────────────────── */
.breadcrumb { font-family: 'Barlow Condensed', sans-serif; font-size:12px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--dust); margin-bottom: 20px; }
.breadcrumb a { color: var(--dust); text-decoration: none; }
.breadcrumb a:hover { color: var(--sand); }
.breadcrumb span { color: var(--sand); }

/* ── PAGE HERO (intérieur) ───────────────────────────────── */
.page-hero { margin-top: 110px; background: var(--dark); padding: 64px 80px 56px; position: relative; overflow: hidden; }
.page-hero::after { content: attr(data-bg); position: absolute; right: -20px; top: 50%; transform: translateY(-50%); font-family: 'Bebas Neue', sans-serif; font-size: 200px; color: rgba(212,169,106,0.04); pointer-events: none; white-space: nowrap; line-height: 1; }
.ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; }
.page-ttl { font-family: 'Bebas Neue', sans-serif; font-size: clamp(56px,8vw,110px); line-height: 0.9; letter-spacing: 3px; color: var(--white); }
.page-ttl em { font-style: normal; color: var(--sand); }
.page-intro { font-size: 18px; font-weight: 300; font-style: italic; color: var(--text-tertiary); line-height: 1.65; border-left: 3px solid var(--ember); padding-left: 22px; }

/* ── SECTION LABELS ──────────────────────────────────────── */
.lbl { font-family: 'Barlow Condensed', sans-serif; font-size:14px; font-weight: 700; letter-spacing: 5px; text-transform: uppercase; color: var(--sand); margin-bottom: 14px; display: block; }
.lbl-ember { color: var(--ember); }
.lbl-dust { color: var(--dust); }

/* ── TITRES ──────────────────────────────────────────────── */
.ttl-xl { font-family: 'Bebas Neue', sans-serif; font-size: clamp(48px,6vw,84px); line-height: 0.9; letter-spacing: 2px; }
.ttl-lg { font-family: 'Bebas Neue', sans-serif; font-size: clamp(40px,5vw,68px); line-height: 0.9; letter-spacing: 2px; }
.ttl-md { font-family: 'Bebas Neue', sans-serif; font-size: clamp(32px,4vw,52px); line-height: 0.95; letter-spacing: 2px; }
.em { font-style: normal; color: var(--sand); }
.em-ember { font-style: normal; color: var(--ember); }

/* ── BODY TEXT ───────────────────────────────────────────── */
.body-lg { font-size: 18px; font-weight: 300; line-height: 1.85; }
.body-md { font-size: 16px; font-weight: 300; line-height: 1.8; }
.body-sm { font-size: 14px; font-weight: 300; line-height: 1.65; }

/* ── BOUTONS ─────────────────────────────────────────────── */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--ember); color: var(--white); font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; text-decoration: none; padding: 16px 32px; transition: background 0.2s, transform 0.2s; }
.btn-primary:hover { background: var(--ember-light); transform: translateY(-2px); }
.btn-primary.lg { font-size: 16px; padding: 20px 44px; }

.btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: transparent; color: var(--white); font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; text-decoration: none; padding: 16px 32px; border: 1px solid rgba(250,248,244,0.3); transition: border-color 0.2s, color 0.2s, transform 0.2s; }
.btn-secondary:hover { border-color: var(--sand); color: var(--sand); transform: translateY(-2px); }

.btn-ghost { display: inline-flex; align-items: center; gap: 8px; color: var(--sand); font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; text-decoration: none; transition: gap 0.2s; }
.btn-ghost:hover { gap: 14px; }
.btn-ghost::after { content: '→'; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer { background: #080706; padding: 60px 80px 40px; border-top: 1px solid rgba(212,169,106,0.1); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px; margin-bottom: 44px; }
.footer-brand p { font-size: 13px; font-weight: 300; color: rgba(250,248,244,0.38); line-height: 1.7; max-width: 260px; margin-top: 16px; }
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.footer-social { width: 34px; height: 34px; border: 1px solid rgba(250,248,244,0.1); display: flex; align-items: center; justify-content: center; text-decoration: none; font-family: 'Barlow Condensed', sans-serif; font-size:12px; font-weight: 700; color: rgba(250,248,244,0.35); transition: border-color 0.2s, color 0.2s; }
.footer-social:hover { border-color: var(--sand); color: var(--sand); }
.footer-col h4 { font-family: 'Barlow Condensed', sans-serif; font-size:12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--sand); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { font-size: 13px; font-weight: 300; color: rgba(250,248,244,0.38); text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-col address { font-style: normal; font-size: 13px; font-weight: 300; color: rgba(250,248,244,0.38); line-height: 1.9; }
.footer-col address a { color: rgba(250,248,244,0.38); text-decoration: none; transition: color 0.2s; }
.footer-col address a:hover { color: var(--sand); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; border-top: 1px solid rgba(250,248,244,0.05); }
.footer-bottom p { font-size:12px; color: rgba(250,248,244,0.22); }
.footer-bottom a { color: rgba(250,248,244,0.22); text-decoration: none; }
.footer-bottom a:hover { color: var(--sand); }
.footer-credit { font-size:13px; color: rgba(250,248,244,0.22); }
.footer-credit a { color: rgba(212,169,106,0.45); text-decoration: none; transition: color 0.2s; }
.footer-credit a:hover { color: var(--sand); }

/* ── REVEAL ──────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-fast { transition-duration: 0.5s; }

/* ── UTILITAIRES ─────────────────────────────────────────── */
.pad-section { padding: 88px 80px; }
.pad-section-sm { padding: 64px 80px; }
.text-sand { color: var(--sand); }
.text-ember { color: var(--ember); }
.text-dust { color: var(--dust); }
.bg-dark { background: var(--dark); }
.bg-dark-mid { background: var(--dark-mid); }
.bg-dark-soft { background: var(--dark-soft); }
.bg-ink { background: var(--ink); }
.bg-cream { background: var(--cream); color: var(--ink); }
.bg-white { background: #fff; color: var(--ink); }
.bg-ember { background: var(--ember); color: var(--white); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  header, .page-hero, .pad-section, .pad-section-sm, footer { padding-left: 48px; padding-right: 48px; }
}
@media (max-width: 900px) {
  header { padding: 0 24px; }
  nav { display: none; }
  nav.open { display: flex; flex-direction: column; position: fixed; top: 72px; left: 0; right: 0; background: rgba(14,13,11,0.98); padding: 32px 24px; gap: 22px; border-top: 1px solid rgba(212,169,106,0.1); z-index: 99; }
  .hamburger { display: flex; }
  .page-hero { padding: 48px 24px 40px; }
  .page-hero::after { display: none; }
  .ph-grid { grid-template-columns: 1fr; gap: 20px; }
  .pad-section { padding: 60px 24px; }
  .pad-section-sm { padding: 44px 24px; }
  footer { padding: 48px 24px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── FOOTER SIMPLIFIÉ ────────────────────────────────────── */
.footer-simple {
  background: #080706;
  border-top: 1px solid rgba(212,169,106,0.1);
  padding: 40px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.footer-simple .footer-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-simple .footer-nav a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(250,248,244,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-simple .footer-nav a:hover { color: var(--sand); }
.footer-simple .footer-nav a.footer-cta {
  color: var(--ember);
}
.footer-simple .footer-nav a.footer-cta:hover { color: var(--ember-light); }
.footer-simple .footer-socials {
  display: flex;
  gap: 10px;
}
.footer-simple .footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-simple .footer-bottom p {
  font-size: 12px;
  font-weight: 300;
  color: rgba(250,248,244,0.25);
}
.footer-simple .footer-bottom a {
  color: rgba(250,248,244,0.35);
  text-decoration: none;
}
.footer-simple .footer-bottom a:hover { color: var(--sand); }

@media(max-width:900px){
  .footer-simple { padding: 32px 24px; gap: 20px; }
  .footer-simple .footer-nav { gap: 20px; }
}
