/* ============================================================
   MANGO STUDIO — Feuille de style partagée
   Police "Raleway" pour les textes courts
   (remplacer par "Nave" si disponible sur votre hébergeur)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Raleway:wght@300;400;500;600;700&display=swap');

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

/* ---- Couleurs ---- */
:root {
  /* Fond de la barre de navigation (à conserver sur toutes les pages) */
  --header-bg:    #f3f1f8;

  /* Fonds de pages */
  --dark:         #2d2b35;   /* Présentation & Galerie */
  --mid:          #48455a;   /* Cours & Contact — entre anthracite et header */

  /* Accent principal (couleur du logo) */
  --violet:       #8b00cc;
  --violet-lite:  #b070e0;   /* version claire pour fonds sombres */
  --violet-dark:  #6b009e;
  --violet-pale:  rgba(139, 0, 204, 0.15);

  /* Troisième couleur */
  --rose:         #c4608c;
  --rose-pale:    rgba(196, 96, 140, 0.15);

  /* Texte */
  --nav-text:     #514e5e;   /* dans la nav (fond clair) */
  --lt:           #f3f1f8;   /* texte sur fonds sombres */
  --lt2:          rgba(243, 241, 248, 0.65);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Raleway', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img  { display: block; max-width: 100%; }
a    { color: inherit; }

/* ============================================================
   NAVIGATION
   Fond clair fixe sur toutes les pages.
   Exception : variante .hero-nav sur index.html (transparent → clair au scroll).
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: var(--header-bg);
  box-shadow: 0 1px 0 rgba(139, 0, 204, 0.1);
  transition: background 0.3s, box-shadow 0.3s;
}

/* Hero uniquement : transparent au départ */
.hero-nav {
  background: linear-gradient(to bottom, rgba(20, 12, 32, 0.6), transparent);
  box-shadow: none;
}
.hero-nav .nav-links a       { color: var(--nav-text); }
.hero-nav.scrolled           { background: var(--header-bg); box-shadow: 0 1px 0 rgba(139,0,204,0.1); }
.hero-nav.scrolled .nav-links a     { color: var(--nav-text); }
.hero-nav.scrolled .nav-toggle span { background: var(--nav-text); }

.nav-logo { text-decoration: none; display: flex; align-items: center; }
.nav-logo img { height: 52px; width: auto; }

.nav-links { display: flex; gap: 2.8rem; list-style: none; }
.nav-links a {
  text-decoration: none;
  font-size: 0.77rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nav-text);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--violet); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--nav-text);
  border-radius: 2px;
  transition: all 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile plein écran */
#mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(243, 241, 248, 0.97);
  backdrop-filter: blur(14px);
  z-index: 290;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.4rem;
}
#mobile-menu.open { display: flex; }
#mobile-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 400;
  text-decoration: none;
  color: #2d2b35;
  transition: color 0.2s;
}
#mobile-menu a:hover { color: var(--violet); }

/* ============================================================
   OFFSET CONTENU (compense la nav fixe)
   ============================================================ */
.page-offset { padding-top: 66px; }

/* ============================================================
   LAYOUT
   ============================================================ */
.section    { padding: 5.5rem 5%; }
.container  { max-width: 1200px; margin: 0 auto; }

/* ============================================================
   TYPOGRAPHIE (sur fonds sombres)
   ============================================================ */
.label {
  font-family: 'Raleway', sans-serif;
  font-size: 0.67rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--violet-lite);
  margin-bottom: 0.7rem;
  display: block;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.4rem;
  color: var(--lt);
}

.section-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--lt2);
  max-width: 560px;
}

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-primary { background: rgba(62, 248, 255, 0.1); color: #fff; border-color: #3ef8ff; border-style: solid !important; border-width: 1px !important; }
.btn-primary:hover { background: rgba(142, 77, 239, 0.3); border-color: rgba(142, 77, 239, 0.5); color: rgba(142, 77, 239, 0.9); }
.btn-ghost   { background: rgba(62, 248, 255, 0.1); color: var(--lt); border-color: #3ef8ff; }
.btn-ghost:hover { background: rgba(142, 77, 239, 0.3); border-color: rgba(142, 77, 239, 0.5); color: rgba(142, 77, 239, 0.9); }

/* ============================================================
   ÉTIQUETTES / TAGS
   ============================================================ */
.cat-tag {
  font-family: 'Raleway', sans-serif;
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.22rem 0.72rem;
  border-radius: 20px;
}
.tag-violet { background: var(--violet-pale);  color: var(--violet-lite); }
.tag-rose   { background: var(--rose-pale);    color: var(--rose);        }
.tag-light  { background: rgba(243,241,248,0.1); color: rgba(243,241,248,0.65); }

/* ============================================================
   FOOTER (fond anthracite sur toutes les pages)
   ============================================================ */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(243, 241, 248, 0.07);
  padding: 2.5rem 5%;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-logo { text-decoration: none; }
.footer-logo img {
  height: 34px; width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.72;
}
.footer-copy { font-size: 0.77rem; color: rgba(255,255,255,0.3); text-align: center; }
.footer-social { display: flex; gap: 0.6rem; }
.footer-soc {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  color: rgba(255,255,255,0.38);
  transition: all 0.22s;
}
.footer-soc:hover { border-color: var(--violet-lite); color: var(--violet-lite); }

/* ============================================================
   SCRIPT MENU MOBILE (fragment réutilisable, cf. script dans chaque page)
   ============================================================ */

/* ============================================================
   RESPONSIVE COMMUN
   ============================================================ */
@media (max-width: 960px) {
  .nav-links  { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 640px) {
  .section { padding: 4rem 5%; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-social { justify-content: center; }
}
