/* =========================================
   VIROGUE — Feuille de style commune
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* --- Variables --- */
:root {
  --bg:        #F8F6F2;
  --bg-card:   #FFFFFF;
  --accent:    #D46A3A;
  --accent-dk: #B8562D;
  --text:      #1A1A1A;
  --text-2:    #5A5A5A;
  --text-3:    #9A9A9A;
  --border:    #E8E4DC;
  --shadow:    0 2px 16px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.10);
  --radius:    12px;
  --radius-sm: 8px;
  --font-title: 'Playfair Display', Georgia, serif;
  --font-body:  'DM Sans', system-ui, sans-serif;
  --max-w:     1200px;
  --transition: 0.22s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }

/* --- Utilitaires --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 96px 0;
}
.section--sm {
  padding: 64px 0;
}
.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* --- Typographie --- */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { color: var(--text-2); }

/* --- Boutons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent-dk);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212,106,58,0.35);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248,246,242,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav__logo {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav__logo span { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: var(--transition);
}
.nav__links a:hover,
.nav__links a.active {
  color: var(--text);
  background: rgba(0,0,0,0.04);
}
.nav__links .btn--primary {
  padding: 9px 20px;
  font-size: 0.88rem;
  margin-left: 8px;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
}
.nav__mobile a {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--text-2);
  transition: var(--transition);
}
.nav__mobile a:hover { background: rgba(0,0,0,0.04); color: var(--text); }
.nav__mobile .btn--primary {
  text-align: center;
  justify-content: center;
  margin-top: 8px;
}
.nav__mobile.open { display: flex; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer__brand p {
  margin-top: 12px;
  font-size: 0.9rem;
  max-width: 280px;
  line-height: 1.7;
}
.footer__col h4 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}
.footer__col ul li + li { margin-top: 10px; }
.footer__col ul a {
  font-size: 0.9rem;
  color: var(--text-2);
  transition: var(--transition);
}
.footer__col ul a:hover { color: var(--accent); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  font-size: 0.82rem;
  color: var(--text-3);
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up--delay-1 { transition-delay: 0.1s; }
.fade-up--delay-2 { transition-delay: 0.2s; }
.fade-up--delay-3 { transition-delay: 0.3s; }
.fade-up--delay-4 { transition-delay: 0.4s; }

/* =============================================
   PAGE HERO (pages internes)
   ============================================= */
.page-hero {
  padding: 80px 0 64px;
  text-align: center;
}
.page-hero p {
  max-width: 560px;
  margin: 16px auto 0;
  font-size: 1.1rem;
}

/* =============================================
   CARDS / GRILLES
   ============================================= */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* ── Section équipe ─────────────────────────── */
.team-section { background: #fff; }

.team-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 640px;
  margin: 0 auto;
}

.team-member {
  display: flex;
  align-items: center;
  gap: 36px;
}

.team-member__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--border);
  box-shadow: var(--shadow);
}
.team-member__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.team-member__name {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.team-member__role {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.team-member__bio {
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* Animations slide gauche / droite */
.slide-left {
  opacity: 0;
  transform: translateX(-56px) scale(0.97);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.slide-right {
  opacity: 0;
  transform: translateX(56px) scale(0.97);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.18s;
}
.slide-left.visible,
.slide-right.visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .team-member { flex-direction: column; text-align: center; }
  .slide-left  { transform: translateY(32px) scale(0.97); }
  .slide-right { transform: translateY(32px) scale(0.97); transition-delay: 0s; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
