/* ═══════════════════════════════════════════════════════════
   BYSAR — base.css
   Variables · Reset · Layout · Typographie · Placeholders
   ═══════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   IMPORT GOOGLE FONTS
   Instrument Serif — display, titres, logo, menu mobile
   DM Sans          — navigation, labels, body, boutons
───────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ─────────────────────────────────────────
   VARIABLES
───────────────────────────────────────── */
:root {
  /* Palette principale */
  --black:       #080808;
  --black-soft:  #101010;
  --dark:        #181818;
  --dark-mid:    #282828;
  --mid:         #404040;
  --grey:        #808080;
  --grey-light:  #aaaaaa;
  --off-white:   #e0e0e0;
  --white:       #f0f0f0;
  --pure-white:  #ffffff;
  --accent: #af1956;
  --accent-light: #c93a72;   /* version éclaircie pour hover */
  --accent-dark: #8a1244;    /* version assombrie */
  --accent-glow: rgba(175, 25, 86, 0.4); /* pour ombres/halos */

  /* Alias sémantiques */
  --ink:         #080808;
  --ink-soft:    #101010;
  --ink-mid:     #181818;
  --ink-faint:   #282828;
  --smoke:       #404040;
  --dust:        #808080;
  --silver:      #aaaaaa;
  --fog:         #e0e0e0;
  --chalk:       #f0f0f0;
  --paper:       #f8f8f8;

  /* Typographie */
  --font-display: 'Instrument Serif', 'Georgia', serif;
  --font-body:    'DM Sans', 'Helvetica Neue', system-ui, sans-serif;

  /* Layout */
  --nav-h: 70px;

  /* Animations */
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t:        0.3s var(--ease);
  --t-fast:   0.15s var(--ease);
  --t-slow:   0.6s var(--ease-out);

  /* Z-index */
  --z-loader:   1000;
  --z-nav:       900;
  --z-mobile:    850;
  --z-lightbox:  800;
  --z-cursor:   9999;
  --z-backtop:   700;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--black);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: .9rem;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─────────────────────────────────────────
   TYPOGRAPHIE — TITRES
   Instrument Serif en romain (non-italic).
   Hiérarchie gérée par taille uniquement —
   le weight est fixe à 400.
   line-height plus généreux sur les niveaux
   intermédiaires pour respirer en contexte.
───────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  line-height: 1.0;
  letter-spacing: -.02em;
}

/* Niveaux intermédiaires — un peu plus d'air */
h3, h4, h5, h6 {
  line-height: 1.15;
  letter-spacing: -.01em;
}

a           { color: inherit; text-decoration: none; }
ul, ol      { list-style: none; }
img, video, iframe { display: block; max-width: 100%; }
address     { font-style: normal; }
button      { cursor: pointer; font-family: var(--font-body); }

/* ─────────────────────────────────────────
   LAYOUT
───────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 4rem);
}
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
}

/* ─────────────────────────────────────────
   TYPOGRAPHIE UTILITAIRE
───────────────────────────────────────── */

/* Grand titre display
   Héros, sections majeures, menu mobile
   Instrument Serif en romain — présence
   assurée par la taille et le contraste */
.t-display {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  line-height: .95;
  letter-spacing: -.02em;
  color: var(--pure-white);
}

/* Micro-label
   Numéros, catégories, tags, métadonnées
   DM Sans 500 + letterspacing aéré */
.t-label {
  font-family: var(--font-body);
  font-size: .63rem;
  font-weight: 500;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--grey);
}

/* Corps de texte long
   DM Sans 300 pour plus de légèreté visuelle
   sur les longs paragraphes */
.t-body {
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--grey-light);
}

/* Séparateur "/" dans le bouton langue */
.lang-sep { color: var(--dark-mid); }

/* Ligne séparatrice décorative */
.rule {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--dark-mid);
}

/* ─────────────────────────────────────────
   PLACEHOLDERS
───────────────────────────────────────── */
.ph {
  background: var(--dark);
  border: 1px dashed var(--dark-mid);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: var(--mid);
  font-family: var(--font-body);
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  width: 100%;
  height: 100%;
  min-height: 200px;
}
.ph i { font-size: 1.6rem; opacity: .3; }

.img-placeholder,
.portrait-placeholder {
  width: 100%; height: 100%;
  min-height: 200px;
  background: var(--dark);
  border: 1px dashed var(--dark-mid);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  color: var(--mid);
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.img-placeholder i,
.portrait-placeholder i { font-size: 1.8rem; opacity: .35; }

/* ═══════════════════════════════════════════════════════════
   TOUCHES D'ACCENT — #af1956
   ═══════════════════════════════════════════════════════════ */

/* ── Tags / eyebrows / micro-labels ── */
.atelier-tag,
.eyebrow,
.hero-eyebrow,
.page-hero-meta {
  color: var(--accent);
}

/* ── Titres de page : soulignement accent ── */
.page-hero-title {
  position: relative;
  display: inline-block;
  padding-bottom: .8rem;
}
.page-hero-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: var(--accent);
}

/* ── Boutons (CTA "Demander une session", etc.) ── */
.btn {
  transition: background var(--t), border-color var(--t),
              color var(--t), box-shadow var(--t), transform var(--t-fast);
}
.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--pure-white);
  box-shadow: 0 4px 24px var(--accent-glow);
  transform: translateY(-1px);
}
.btn:hover i { color: var(--pure-white); }

/* ── Navigation : lien actif + hover ── */
#main-nav .nav-links a {
  position: relative;
  transition: color var(--t-fast);
}
#main-nav .nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--t);
}
#main-nav .nav-links a:hover::after,
#main-nav .nav-links a[aria-current="page"]::after {
  width: 100%;
}
#main-nav .nav-links a[aria-current="page"] { color: var(--accent); }


/* ── Mots en gras (<strong>) dans les descriptions d'ateliers ── */
.atelier-body strong,
.atelier-card strong {
  color: var(--accent-light);
  font-weight: 500;
}

/* ── Icônes dans les détails (users, map-marker, clock) ── */
.atelier-details i {
  color: var(--accent);
  opacity: .85;
}

/* ── Réseaux sociaux : hover ── */
.footer-social-row a:hover i,
.mobile-socials a:hover i,
.bio-socials a:hover i {
  color: var(--accent);
  transition: color var(--t-fast), transform var(--t-fast);
  transform: translateY(-2px);
}

/* ── Footer : liens au hover ── */
#site-footer a:hover {
  color: var(--accent);
  transition: color var(--t-fast);
}

/* ── Bouton "back to top" ── */
#back-to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--pure-white);
}

/* ── Bouton langue ── */
.btn-lang:hover { color: var(--accent); }

/* ── Champs de formulaire : focus ── */
input:focus,
textarea:focus,
select:focus,
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

/* ── Sélection de texte ── */
::selection {
  background: var(--accent);
  color: var(--pure-white);
}

/* ── Filtres portfolio (si présents) ── */
.filter-btn.active,
.filter-btn:hover,
.pf-filter.active,
.pf-filter:hover {
  color: var(--accent);
  border-color: var(--accent);
}
/* ── Icônes contextuelles (adresse, email, téléphone, etc.) ── */
.page-hero-meta i,
.footer-tagline i,
.footer-col i,
address i,
.contact-item i,
.contact-info i,
li i.fas,
li i.far,
li i.fab {
  color: var(--accent);
  opacity: .9;
  margin-right: .4rem;
}

/* ── Lien Instagram du footer (icône seule) — reste blanc, accent uniquement au hover ── */
.footer-social-row a i,
.mobile-socials a i,
.bio-socials a i {
  color: inherit;
  margin-right: 0;
}
