/* ============================================================
   HEMS-BENIN — Design System
   Haute École de Mode et de Stylisme
   CRÉATIVITÉ • ÉLÉGANCE • SAVOIR-FAIRE
   ============================================================ */

:root {
  /* Brand colors — haute couture */
  --hems-black: #0a0a0a;
  --hems-charcoal: #1a1a1a;
  --hems-graphite: #2c2c2c;
  --hems-ivory: #faf8f5;
  --hems-cream: #f5f0e8;
  --hems-white: #ffffff;
  --hems-gold: #c9a227;
  --hems-gold-light: #e8d48b;
  --hems-gold-dark: #9a7b1a;
  --hems-taupe: #8b7e74;
  --hems-rose: #c4a494;
  --hems-border: rgba(201, 162, 39, 0.25);
  --hems-muted: #6b6560;

  /* Semantic */
  --primary: var(--hems-black);
  --accent: var(--hems-gold);
  --bg: var(--hems-ivory);
  --text: var(--hems-charcoal);
  --text-light: var(--hems-muted);

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', 'Segoe UI', system-ui, sans-serif;

  /* Spacing & effects */
  --radius: 2px;
  --radius-lg: 8px;
  --shadow: 0 4px 24px rgba(10, 10, 10, 0.08);
  --shadow-lg: 0 20px 60px rgba(10, 10, 10, 0.12);
  --header-h: 72px;
  --transition: 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}

*, *::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;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---- Typography ---- */
.font-display { font-family: var(--font-display); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--hems-black);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hems-gold);
}

.lead {
  font-size: 1.15rem;
  color: var(--hems-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-wide { max-width: 1400px; }

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 120px 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--hems-black);
  color: var(--hems-white);
}
.btn-primary:hover {
  background: var(--hems-graphite);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-gold {
  background: var(--hems-gold);
  color: var(--hems-black);
}
.btn-gold:hover {
  background: var(--hems-gold-light);
  transform: translateY(-1px);
}
.btn-outline {
  border: 1px solid var(--hems-black);
  color: var(--hems-black);
  background: transparent;
}
.btn-outline:hover {
  background: var(--hems-black);
  color: white;
}
.btn-outline-light {
  border: 1px solid rgba(255,255,255,0.7);
  color: white;
}
.btn-outline-light:hover {
  background: white;
  color: var(--hems-black);
}
.btn-lg { padding: 18px 36px; font-size: 0.85rem; }

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--hems-border);
}
.site-header.transparent { background: transparent; }
.site-header.transparent.scrolled {
  background: rgba(250, 248, 245, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--hems-black);
}
.logo-tag {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hems-gold);
  font-weight: 500;
}
.site-header.transparent:not(.scrolled) .logo-name { color: white; }
.site-header.transparent:not(.scrolled) .logo-tag { color: var(--hems-gold-light); }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-desktop a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hems-charcoal);
  transition: color var(--transition);
  position: relative;
}
.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--hems-gold);
  transition: width var(--transition);
}
.nav-desktop a:hover::after { width: 100%; }
.site-header.transparent:not(.scrolled) .nav-desktop a { color: rgba(255,255,255,0.9); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  width: 28px; height: 20px;
  position: relative;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 100%; height: 1.5px;
  background: var(--hems-black);
  position: absolute; left: 0;
  transition: all 0.3s;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }
.site-header.transparent:not(.scrolled) .nav-toggle span { background: white; }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--hems-ivory);
  z-index: 999;
  padding: 100px 32px 40px;
  flex-direction: column;
  gap: 8px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-display);
  font-size: 1.6rem;
  padding: 12px 0;
  border-bottom: 1px solid var(--hems-border);
  color: var(--hems-black);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #0a0a0a;
  background-image:
    linear-gradient(160deg, rgba(10,10,10,0.62) 0%, rgba(10,10,10,0.80) 100%),
    url('../assets/atelier-1.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #0a0a0a;
  background-image:
    linear-gradient(160deg, rgba(10,10,10,0.62) 0%, rgba(10,10,10,0.80) 100%),
    url('../assets/atelier-1.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: scroll;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 120px 24px 80px;
  max-width: 900px;
}
.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--hems-gold-light);
  margin-bottom: 20px;
  font-weight: 500;
}
.hero h1 {
  color: white;
  margin-bottom: 8px;
  font-weight: 400;
}
.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.85);
  margin-bottom: 12px;
}
.hero-motto {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hems-gold);
  margin-bottom: 28px;
  font-weight: 500;
}
.hero-text {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.hero-scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-scroll::after {
  content: '';
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
}

/* ---- Sections ---- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header .eyebrow { margin-bottom: 12px; display: block; }
.section-header h2 { margin-bottom: 16px; }
.section-header .lead { margin: 0 auto; }

/* ---- Cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.card {
  background: white;
  border: 1px solid var(--hems-border);
  overflow: hidden;
  transition: all var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--hems-cream);
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 24px; }
.card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.card-body p {
  font-size: 0.92rem;
  color: var(--hems-muted);
  margin-bottom: 16px;
}
.card-link {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hems-gold-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-link:hover { color: var(--hems-gold); }

/* ---- Values / Why ---- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.value-item {
  text-align: center;
  padding: 32px 20px;
}
.value-icon {
  width: 48px; height: 48px;
  margin: 0 auto 20px;
  border: 1px solid var(--hems-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hems-gold);
  font-size: 1.2rem;
}
.value-item h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.value-item p {
  font-size: 0.9rem;
  color: var(--hems-muted);
}

/* ---- Split section ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 480px;
}
.split-img {
  background: var(--hems-cream) center/cover no-repeat;
  min-height: 320px;
}
.split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 48px;
  background: white;
}
.split-content .eyebrow { margin-bottom: 14px; }
.split-content h2 { margin-bottom: 18px; }
.split-content p {
  color: var(--hems-muted);
  margin-bottom: 14px;
  font-size: 0.98rem;
}
.split-content .btn { margin-top: 16px; align-self: flex-start; }

/* ---- CTA band ---- */
.cta-band {
  background: var(--hems-black);
  color: white;
  text-align: center;
  padding: 80px 24px;
}
.cta-band h2 {
  color: white;
  margin-bottom: 16px;
}
.cta-band p {
  color: rgba(255,255,255,0.7);
  max-width: 480px;
  margin: 0 auto 32px;
}
.cta-band .btn-gold { margin: 0 6px 8px; }

/* ---- Footer ---- */
.site-footer {
  background: var(--hems-charcoal);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .logo-name { color: white; margin-bottom: 4px; }
.footer-brand .logo-tag { color: var(--hems-gold); margin-bottom: 16px; display: block; }
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--hems-gold);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col a {
  display: block;
  font-size: 0.88rem;
  padding: 5px 0;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-col a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}
.footer-motto {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--hems-gold);
}

/* ---- Forms (base) ---- */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--hems-charcoal);
}
.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--hems-border);
  background: white;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  border-radius: var(--radius);
  transition: border var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--hems-gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

/* ---- Utilities ---- */
.text-center { text-align: center; }
.text-gold { color: var(--hems-gold); }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.d-flex { display: flex; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 16px; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }

/* ---- Responsive ---- */
@media (max-width: 992px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
  .header-actions .btn { display: none; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .section-lg { padding: 72px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; max-width: 280px; }
  .split-content { padding: 40px 24px; }
}

/* ---- Dual logos (HEMS left + ACACC right) ---- */
.logo-pair {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-pair img {
  height: 52px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
  background: white;
  border-radius: 6px;
  padding: 3px;
}
.logo-pair .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-pair .logo-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--hems-black);
}
.logo-pair .logo-tag {
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hems-gold);
  font-weight: 500;
}
.site-header.transparent:not(.scrolled) .logo-pair .logo-name { color: white; }
.site-header.transparent:not(.scrolled) .logo-pair .logo-tag { color: var(--hems-gold-light); }
.site-header.transparent:not(.scrolled) .logo-pair img {
  background: rgba(255,255,255,0.95);
}
.header-brand-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-brand-right img.logo-acacc {
  height: 48px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  background: white;
  border-radius: 6px;
  padding: 3px;
}
@media (max-width: 768px) {
  .logo-pair img { height: 40px; max-width: 90px; }
  .header-brand-right img.logo-acacc { height: 36px; max-width: 80px; }
  .logo-pair .logo-name { font-size: 0.95rem; }
  .logo-pair .logo-tag { display: none; }
}

/* Logos toujours visibles */
.logo-pair img, .logo-acacc, img.logo-acacc {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}
.site-header .logo-pair img {
  height: 52px;
  background: #fff;
  border-radius: 6px;
  padding: 3px;
}


/* Lien admin discret — visible si on sait où regarder */
.admin-gate {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 5px;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none !important;
  color: rgba(201, 162, 39, 0.28) !important;
  border: none;
  background: transparent;
  cursor: pointer;
  vertical-align: middle;
  line-height: 1;
  font-family: inherit;
  user-select: none;
}
.admin-gate:hover {
  color: rgba(201, 162, 39, 0.55) !important;
}
.site-header.transparent:not(.scrolled) .admin-gate {
  color: rgba(255, 255, 255, 0.18) !important;
}
.site-header.transparent:not(.scrolled) .admin-gate:hover {
  color: rgba(255, 255, 255, 0.4) !important;
}
