/* ---------- Variables ---------- */
:root {
  --magenta: #a31981;
  --magenta-dark: #6d0f56;
  --magenta-light: #f8e9f3;
  --ink: #23161f;
  --muted: #6e5c68;
  --bg: #2f001c;
  --text: #f6ebf1;
  --muted-dark: #c79cb6;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(163, 25, 129, 0.12);
  --max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Baloo 2', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

a { color: var(--magenta); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 252, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(163, 25, 129, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }

.brand-logo { height: 44px; width: auto; }

.brand-name {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}

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

.btn-contact {
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--magenta);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}
.btn-contact:hover {
  background: var(--magenta-dark);
  text-decoration: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Full-screen nav overlay ---------- */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 10px;
}

.nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.nav-links a {
  color: #fff;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
}
.nav-links a:hover { color: var(--magenta-light); text-decoration: none; }

.nav-social {
  display: flex;
  gap: 20px;
}
.nav-social a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  font-weight: 600;
}
.nav-social a:hover { color: #fff; text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  background: #fff;
  padding: 56px 0 64px;
  text-align: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 8px;
}

.logo-cycle {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 32px;
}

.logo-cycle-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.logo-cycle-img.active {
  opacity: 1;
}

.hero h1 {
  font-family: 'Archivo Black', 'Baloo 2', sans-serif;
  font-weight: 400;
  font-size: clamp(2.1rem, 10vw, 8.5rem);
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--bg);
  line-height: 0.92;
  margin-bottom: 0.3em;
}

.hero h1 .title-text {
  display: inline-block;
  letter-spacing: -0.09em;
  margin-right: -0.09em; /* cancels the trailing letter-spacing gap so the text stays truly centered */
}

.tagline {
  font-size: clamp(0.62rem, 2.9vw, 1.4rem);
  white-space: nowrap;
  color: var(--muted);
  margin: 0 auto 2em;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--magenta);
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--magenta-dark); }

.btn-ghost {
  background: transparent;
  color: var(--bg);
  border: 2px solid var(--bg);
}

/* ---------- Studio ---------- */
.studio { padding: 80px 0; }

.studio-inner { text-align: center; }

.studio h2 { font-size: 2rem; }

.lead {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--muted-dark);
  text-align: justify;
}

.dict-entry {
  max-width: 560px;
  margin: 0 auto 48px;
  text-align: left;
  background: var(--magenta-light);
  border-radius: var(--radius);
  padding: 26px 30px;
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
}

.dict-word {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--ink);
}

.dict-phon {
  font-style: italic;
  color: var(--muted);
  font-size: 0.92rem;
  margin: 4px 0 16px;
}

.dict-defs {
  margin: 0;
  padding-left: 1.3em;
  color: var(--ink);
}
.dict-defs li {
  margin-bottom: 8px;
  line-height: 1.5;
}
.dict-defs li::marker {
  color: var(--magenta);
  font-weight: 700;
}

.studio-list {
  max-width: 720px;
  margin: 0 auto 24px;
  text-align: left;
  padding-left: 1.3em;
  color: var(--muted-dark);
  font-size: 1.1rem;
}
.studio-list li {
  margin-bottom: 10px;
  line-height: 1.5;
}
.studio-list li::marker {
  color: var(--magenta);
}
.studio-list strong {
  color: var(--text);
}

/* ---------- Services ---------- */
.services {
  background: var(--magenta-light);
  padding: 80px 0;
}

.services h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--magenta-dark);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.service-icon img {
  width: 72px;
  height: auto;
  margin: 0 auto 14px;
}

.service-card h3 {
  font-size: 1.05rem;
  margin: 0;
  color: var(--magenta-dark);
}

/* ---------- Portfolio ---------- */
.portfolio { padding: 80px 0; }

.portfolio h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.latest-videos { margin-bottom: 24px; }

.latest-videos h3 {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--muted-dark);
}

.video-frame-wide {
  max-width: 800px;
  margin: 0 auto;
}

.portfolio-more {
  text-align: center;
  font-weight: 600;
}

/* ---------- Ils nous ont fait confiance ---------- */
.confiance {
  background: var(--magenta-light);
  padding: 14px 0;
  overflow: hidden;
}

.confiance-track {
  height: 56px;
  display: flex;
  align-items: center;
  width: max-content;
  animation: confiance-scroll 32s linear infinite;
}

.confiance:hover .confiance-track {
  animation-play-state: paused;
}

.confiance-set {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.confiance-set img {
  height: 38px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  margin: 0 28px;
}

@keyframes confiance-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .confiance-track {
    animation: none;
  }
}

/* ---------- Contact ---------- */
.contact {
  background: var(--magenta-dark);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.contact h2 { color: #fff; }

.contact a {
  color: #fff;
  font-weight: 600;
}

.contact p { margin: 6px 0; }

.social-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.social-links a {
  padding: 10px 22px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  font-weight: 600;
  color: #fff;
}
.social-links a:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 32px 0;
  text-align: center;
  font-size: 0.85rem;
}

.footer-inner p { margin: 4px 0; }
.legal { color: rgba(255, 255, 255, 0.5); font-size: 0.78rem; }

@media (max-width: 480px) {
  .btn-contact { display: none; }
}
