/*
 * base.css — Variables, reset, styles globaux, boutons
 * ══════════════════════════════════════════════════════
 * Ce fichier définit les fondations visuelles du site :
 * - Variables CSS (couleurs, typographie)
 * - Reset minimal
 * - Styles partagés (boutons, sections, titres communs)
 *
 * ⚠ Pour changer la palette de couleurs, modifie uniquement
 *   les variables dans :root — tout le site s'adapte.
 */

/* ── Variables ──────────────────────────────────────────────────────────── */
:root {
  --blue:       #3d6b8c;   /* Couleur principale */
  --blue-light: #dde8f0;   /* Fond clair bleu (hover, badges) */
  --blue-mid:   #5a87a8;   /* Bleu intermédiaire (hover boutons) */
  --dark:       #1a1a1a;   /* Texte principal */
  --muted:      #777;      /* Texte secondaire */
  --border:     #e4e4e4;   /* Bordures */
  --bg:         #fafafa;   /* Fond sections alternées */
  --white:      #ffffff;
  --font:       'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Protection des photos ──────────────────────────────────────────────── */
img {
  -webkit-user-drag: none;   /* Interdit le glisser-déposer des images */
  user-select: none;
  pointer-events: auto;
}

/* ── Système de pages (SPA) ─────────────────────────────────────────────── */
.page         { display: none; flex: 1; }
.page.active  { display: block; }

/* ── Boutons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 13px 28px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary          { background: var(--blue);  color: var(--white); }
.btn-primary:hover    { background: var(--blue-mid); }

.btn-outline          { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover    { background: var(--blue-light); }

/* ── Composants partagés entre pages ───────────────────────────────────── */

/* En-tête de page standard (Portfolio, etc.) */
.page-header {
  background: var(--white);
  padding: 60px 80px 40px;
  border-bottom: 1px solid var(--border);
}
.page-header h1 { font-size: 36px; font-weight: 700; }

/* Label de section (ex : "— Portfolio") */
.section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}

/* Titre de section (ex : "Quelques regards") */
.section-heading {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
}

/* Ligne de séparation décorative */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}

/* ── Responsive ≤ 768px ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .page-header {
    padding: 40px 24px 28px;
  }

  .page-header h1 { font-size: 28px; }
}
