/* ============================================================================
 *  DESIGN 1 — style.css  « Le Classeur »
 * ============================================================================
 *  FR : Palette NEUTRE. Le travail de Lamine apporte la couleur ; l'interface
 *       reste discrète. Encre sombre sur papier clair, une seule teinte
 *       d'accent sobre (gris-bleu) pour l'onglet actif.
 *  EN : NEUTRAL palette. Lamine's work supplies the color; the interface stays
 *       quiet. Dark ink on light paper, a single restrained accent (slate)
 *       for the active tab.
 *
 *  FR : On centralise les couleurs dans des "variables CSS" (:root) pour
 *       pouvoir tout changer à un seul endroit.
 *  EN : We centralize colors in CSS variables (:root) so everything can be
 *       changed in one place.
 * ========================================================================== */

:root {
  --ink:    #1a1a1a;   /* FR: texte principal   EN: main text   */
  --paper:  #fafafa;   /* FR: fond              EN: background  */
  --muted:  #6b6b6b;   /* FR: texte secondaire  EN: secondary   */
  --line:   #e2e2e2;   /* FR: traits/bordures   EN: rules       */
  --accent: #3a4a5a;   /* FR: accent sobre      EN: restrained accent */
  --max:    1100px;    /* FR: largeur max contenu EN: max content width */
}

/* FR : remise à zéro douce.  EN : gentle reset. */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  /* FR : police système — rapide, pas de téléchargement, propre.
     EN : system font — fast, no download, clean. */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ----- EN-TÊTE / HEADER --------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--line);
  padding: 2rem 1.5rem;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.name {
  font-size: clamp(1.6rem, 4vw, 2.4rem); /* FR: taille fluide EN: fluid size */
  font-weight: 600;
  letter-spacing: -0.02em;
}
.role {
  color: var(--muted);
  margin-top: 0.35rem;
  font-size: 0.95rem;
}

/* ----- BOUTON LANGUE / LANGUAGE BUTTON ----------------------------------- */
.lang-btn {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
}
.lang-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.lang-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ----- ONGLETS / TABS ----------------------------------------------------- */
.tabs {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding: 0 1.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.75rem 0.25rem;
  margin-bottom: -1px; /* FR: aligne sur la bordure EN: aligns to the border */
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.tab:hover { color: var(--ink); }
.tab--active { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ----- PANNEAU / PANEL ---------------------------------------------------- */
.panel {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.pillar-desc {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 60ch;
}

/* ----- GRILLE DE PROJETS / PROJECT GRID ----------------------------------- */
.project-grid {
  display: grid;
  /* FR : colonnes automatiques, min 280px chacune. EN: auto cols, min 280px. */
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.card-img {
  width: 100%;
  aspect-ratio: 4 / 3; /* FR: ratio constant EN: constant ratio */
  object-fit: cover;
  display: block;
  background: var(--line);
}
.card-body { padding: 1rem 1.1rem 1.3rem; }
.card-title { font-size: 1.05rem; font-weight: 600; }
.card-caption { color: var(--muted); font-size: 0.9rem; margin-top: 0.3rem; }

/* ----- PIED DE PAGE / FOOTER ---------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ----- ACCESSIBILITÉ : mouvement réduit / reduced motion ------------------ */
/* FR : respecte les gens qui désactivent les animations.
   EN : respect people who disable animations. */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
