/* ============================================
   ANIMETRE — Styles partagés (base.css)
   ============================================
   Ce fichier est chargé sur TOUTES les pages.
   Il contient : variables, reset, typo, header, footer, utilitaires.
   ============================================ */

/* ----- 1. VARIABLES (Palette C — Chaleureux contraste) ----- */
:root {
  /* Couleurs de fond */
  --bg-main: #faf6ef;          /* Crème chaud, fond principal */
  --bg-card: #ffffff;          /* Cards claires */
  --bg-dark: #1f4d3a;          /* Vert sapin (cards d'accent, hero) */

  /* Couleurs de texte */
  --text-primary: #1f2e26;     /* Texte principal (sur fond clair) */
  --text-secondary: #5c5043;   /* Texte secondaire, descriptif */
  --text-on-dark: #faf6ef;     /* Texte sur fond vert sombre */
  --text-muted-dark: #c9d4ce;  /* Texte secondaire sur fond sombre */

  /* Accent */
  --accent: #ff9b7a;           /* Corail saumon, CTA, hover */
  --accent-strong: #e87b58;    /* Corail plus saturé pour hover */

  /* Bordures */
  --border-subtle: #e8dfc8;    /* Bordures discrètes */
  --border-strong: #1f4d3a;    /* Bordures fortes (focus) */

  /* Espacement (système 4px) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* Rayons */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Typo */
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 Helvetica, Arial, sans-serif;

  /* Largeur max du contenu */
  --container-max: 1080px;
}

/* ----- 2. RESET MINIMAL ----- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-system);
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  /* On évite que les pages courtes laissent un footer "flottant" */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--text-primary);
  text-decoration: none;
}

a:hover { color: var(--accent-strong); }

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

/* ----- 3. CONTENEUR (centrage) ----- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* ----- 4. HEADER ----- */
.site-header {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-main);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--bg-dark);
}

.logo svg {
  width: 22px;
  height: 22px;
  color: var(--bg-dark);
}

.site-nav {
  display: flex;
  gap: var(--space-5);
  font-size: 15px;
  font-weight: 500;
}

.site-nav a {
  color: var(--text-secondary);
  transition: color 0.15s;
}

.site-nav a:hover {
  color: var(--bg-dark);
}

/* ----- 5. MAIN ----- */
main {
  flex: 1; /* Pousse le footer en bas même sur page courte */
  padding: var(--space-6) 0;
}

/* ----- 6. FOOTER ----- */
.site-footer {
  padding: var(--space-6) 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-main);
  font-size: 14px;
  color: var(--text-secondary);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-tagline {
  font-size: 13px;
  opacity: 0.8;
}

/* ----- 7. UTILITAIRES ----- */
.visually-hidden {
  /* Pour les éléments accessibles aux lecteurs d'écran mais cachés visuellement */
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ----- 8. MOBILE ----- */
@media (max-width: 600px) {
  .site-nav {
    gap: var(--space-3);
    font-size: 14px;
  }
  .logo { font-size: 18px; }
  .logo svg { width: 20px; height: 20px; }
}