/* =======================================================================
   IDLB — Charte graphique unifiée
   Invest · Development · Learn · Build
   Formation & accompagnement Auto-Constructeur PRO en bois
   ======================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* ---- Palette IDLB officielle ---------------------------------------- */
  /* Vert forêt IDLB (extrait du logo officiel : ~ #114D3D) */
  --forest-900: #0d3a2e;               /* Vert très sombre */
  --forest-800: #114d3d;               /* Vert IDLB principal (logo + fonds slides) */
  --forest-700: #1b5c4a;               /* Vert intermédiaire */
  --forest-500: #2d7a64;               /* Vert feuillage */
  --forest-300: #7ba896;               /* Vert pâle */
  --forest-100: #e4ede8;               /* Vert pastel très clair */

  /* Doré / taupe IDLB (extrait du bouton et cercle intérieur : ~ #b8956a) */
  --gold-700:   #8d6e43;               /* Doré foncé */
  --gold-500:   #b8956a;               /* Doré IDLB principal */
  --gold-300:   #d4b890;               /* Doré clair */
  --gold-100:   #f0e5d3;               /* Crème dorée */

  --bark-900:   oklch(26% 0.03 60);
  --bark-700:   oklch(42% 0.05 60);
  --bark-500:   oklch(58% 0.06 60);

  --cream-50:   #fbf8f2;               /* Crème papier (légèrement chaud) */
  --cream-100:  #f5f0e6;               /* Crème léger */
  --cream-200:  #ebe3d3;               /* Beige */
  --cream-300:  #ddd0b8;               /* Beige moyen */

  --ink-900:    #1a1a14;               /* Texte principal, très chaud */
  --ink-700:    #3a372e;               /* Texte secondaire */
  --ink-500:    #6a665a;               /* Texte atténué */
  --ink-300:    #a8a396;               /* Texte faible */

  --accent-gold: var(--gold-500);

  /* Alias sémantiques */
  --bg:         var(--cream-50);
  --bg-alt:     var(--cream-100);
  --bg-deep:    var(--forest-900);
  --fg:         var(--ink-900);
  --fg-muted:   var(--ink-500);
  --line:       color-mix(in oklch, var(--ink-900) 12%, transparent);
  --line-soft:  color-mix(in oklch, var(--ink-900) 6%, transparent);
  --primary:    var(--forest-800);
  --primary-hover: var(--forest-900);
  --bg-deep-green: var(--forest-800);

  /* ---- Typographie (Cormorant Garamond : serif sobre, droite par défaut) ------ */
  --font-display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Échelles */
  --fs-xs:   clamp(11px, 0.72vw + 5px, 13px);
  --fs-sm:   clamp(13px, 0.85vw + 6px, 15px);
  --fs-base: clamp(15px, 0.95vw + 7px, 17px);
  --fs-lg:   clamp(18px, 1.1vw + 8px, 21px);
  --fs-xl:   clamp(22px, 1.6vw + 10px, 28px);
  --fs-2xl:  clamp(28px, 2.4vw + 12px, 42px);
  --fs-3xl:  clamp(40px, 4vw + 14px, 72px);
  --fs-4xl:  clamp(52px, 6vw + 16px, 112px);

  /* ---- Espacements et rayons ------------------------------------------ */
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(64px, 10vh, 140px);

  --shadow-sm: 0 1px 2px rgba(20, 30, 20, 0.04), 0 1px 3px rgba(20, 30, 20, 0.06);
  --shadow-md: 0 6px 16px -4px rgba(20, 30, 20, 0.08), 0 2px 4px rgba(20, 30, 20, 0.04);
  --shadow-lg: 0 24px 48px -12px rgba(20, 30, 20, 0.18);
}

/* ---- Reset léger ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
  margin: 0;
  color: var(--ink-900);
}

p { text-wrap: pretty; margin: 0; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }

button { font-family: inherit; cursor: pointer; }

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

/* ---- Primitives partagés ---------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-500);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--fs-sm);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all 180ms ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold-500);
  color: var(--forest-900);
  border-color: var(--gold-500);
}
.btn-primary:hover {
  background: var(--gold-700);
  color: var(--cream-50);
  border-color: var(--gold-700);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--forest-800);
  border-color: var(--forest-800);
}
.btn-outline:hover {
  background: var(--forest-800);
  color: var(--cream-50);
  text-decoration: none;
}
.btn-gold-outline {
  background: transparent;
  color: var(--gold-500);
  border-color: var(--gold-500);
}
.btn-gold-outline:hover {
  background: var(--gold-500);
  color: var(--forest-900);
  text-decoration: none;
}

/* Logo officiel IDLB - utilise l'image réelle */
.idlb-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.idlb-logo img {
  height: 48px;
  width: auto;
  display: block;
}
.idlb-logo.lg img { height: 72px; }
.idlb-logo.sm img { height: 36px; }
.idlb-logo .wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--forest-800);
  line-height: 1;
}
.idlb-logo .wordmark .sub {
  display: block;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--forest-700);
  margin-top: 4px;
  font-weight: 400;
}

/* Placeholder visuel pour imagerie manquante */
.img-placeholder {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      color-mix(in oklch, var(--forest-700) 8%, transparent) 0 8px,
      transparent 8px 16px
    ),
    var(--cream-200);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.img-placeholder::after {
  content: attr(data-label);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-500);
  text-transform: uppercase;
  padding: 6px 12px;
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

/* Règle décorative */
.hrule {
  display: block;
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}
