/*
Theme Name: Evan Nuée
Theme URI: https://evan-photography.fr
Author: Claude (Anthropic) + Evan Nuée
Author URI: https://evan-photography.fr
Description: Thème sur-mesure pour le site evan-photography.fr — photographe & artiste 3D basé à Bordeaux/Oléron. Identité cinématographique avec mode sombre/clair, mosaïque accueil masonry, hero Gaussian Splatting, et système d'accordéon Services. Pas de page builder, code from scratch.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: evan-nuee
Tags: photography, dark-mode, custom-colors, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ============================================
   1. RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* overflow-x sur html (pas sur body) : empêche le scroll horizontal
     sans casser position: sticky des descendants. Mettre l'overflow-x
     sur body créait un contexte de scroll qui scope sticky au body au
     lieu du viewport. */
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .5s ease, color .5s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .25s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ============================================
   2. VARIABLES — MODE SOMBRE (DÉFAUT)
   ============================================ */
:root,
[data-theme="dark"] {
  /* Fonds */
  --bg: #070707;
  --bg-2: #0f0f0f;
  --bg-3: #161616;

  /* Texte */
  --fg: #fafafa;
  --fg-2: #a8a8a8;
  --fg-3: #666666;

  /* Lignes */
  --line: #1c1c1c;
  --line-2: #2a2a2a;

  /* Accent ambre signature */
  --accent: #d4a574;
  --accent-soft: rgba(212, 165, 116, .1);
  --accent-hover: #e8b888;

  /* Typographies */
  --font-display: 'Bebas Neue', Arial, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Tailles */
  --container-max: 1320px;
  --container-padding: 36px;

  /* Espacements */
  --space-xs: 8px;
  --space-sm: 14px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --space-2xl: 120px;

  /* Transitions */
  --transition-fast: .2s ease;
  --transition-base: .35s cubic-bezier(.4, 0, .2, 1);
  --transition-slow: .6s cubic-bezier(.4, 0, .2, 1);

  /* Z-index */
  --z-loader: 100;
  --z-nav: 50;
  --z-dropdown: 60;
  --z-modal: 200;
}

/* ============================================
   3. VARIABLES — MODE CLAIR
   ============================================ */
[data-theme="light"] {
  --bg: #f2ebde;
  --bg-2: #e9e1cf;
  --bg-3: #ddd3bd;

  --fg: #181206;
  --fg-2: #5a4c38;
  --fg-3: #908067;

  --line: #d3c6a8;
  --line-2: #bdae8a;

  --accent: #a8702f;
  --accent-soft: rgba(168, 112, 47, .10);
  --accent-hover: #c88841;
}

/* ============================================
   4. TYPOGRAPHIE
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 var(--space-md);
  color: var(--fg);
}

h1 { font-size: clamp(48px, 8vw, 96px); letter-spacing: 3px; }
h2 { font-size: clamp(36px, 5vw, 64px); }
h3 { font-size: clamp(24px, 3vw, 36px); }
h4 { font-size: clamp(18px, 2vw, 24px); }
h5 { font-size: 16px; }
h6 { font-size: 14px; }

p {
  margin: 0 0 var(--space-md);
  line-height: 1.7;
}

.accent { color: var(--accent); }

/* ============================================
   5. CONTAINER & LAYOUT
   ============================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--space-2xl) 0;
}

/* ============================================
   6. UTILITIES
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.kicker {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
  display: inline-block;
}

.kicker::before {
  content: "— ";
}

/* ============================================
   7. RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  :root {
    --container-padding: 20px;
    --space-2xl: 80px;
    --space-xl: 56px;
  }

  h1 { font-size: 56px; letter-spacing: 2px; }
  h2 { font-size: 44px; }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 16px;
  }

  h1 { font-size: 44px; }
}

/* ============================================
   8. CHARGEMENT DES MODULES
   ============================================
   Les styles spécifiques aux composants (nav, loader, mosaïque, etc.)
   sont chargés depuis /assets/css/ via functions.php pour garder ce
   fichier propre et permettre le cache différencié.
   ============================================ */
