/* Studio ERA — palette & base */
:root {
  --bg: #191919;
  --bg-elevated: #222222;
  --text: #e8e8e8;
  --text-muted: #9a9a9a;
  --accent: #d4af37;
  --accent-hover: #e8c547;
  --border: #333333;
  --focus: #fff;
  --header-h: 5.5rem;
  --container: 72rem;
  --space: clamp(1rem, 4vw, 2rem);
  /* Halos d’ambiance (sur le fond #191919, pas derrière le logo) */
  --halo-terracotta: #a44936;
  --halo-bronze: #6b5035;
  --halo-bleu: #132c4b;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}

/* Halos colorés fixes sur la base #191919 (#A44936, #6B5035, #132C4B) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 85% 60% at 12% 18%, rgba(164, 73, 54, 0.38) 0%, transparent 58%),
    radial-gradient(ellipse 75% 55% at 92% 28%, rgba(19, 44, 75, 0.42) 0%, transparent 52%),
    radial-gradient(ellipse 70% 50% at 48% 102%, rgba(107, 80, 53, 0.32) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 78% 72%, rgba(164, 73, 54, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 45% 40% at 5% 65%, rgba(19, 44, 75, 0.15) 0%, transparent 48%);
}

h1,
h2,
h3,
.hero-title,
.section-title,
.card-title,
.split-title,
.cta-title,
.badge-label {
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--focus);
  color: var(--bg);
}

.skip-link:focus {
  left: var(--space);
  top: var(--space);
}

.container {
  width: min(100% - var(--space) * 2, var(--container));
  margin-inline: auto;
}

/* Header — fond #191919 opaque (pas de halo derrière le logo) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #191919;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  width: min(100% - var(--space) * 2, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  background: #191919;
  padding: 0.3rem 0.65rem 0.3rem 0.4rem;
  border-radius: 10px;
}

.logo-img {
  max-height: 4.25rem;
  width: auto;
}

@media (min-width: 769px) {
  .logo-img {
    max-height: 5.25rem;
  }

  .header-inner {
    min-height: 5.75rem;
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-elevated);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-toggle-bar {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-list a:hover {
  color: var(--accent);
}

.nav-cta {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  /* backdrop-filter crée un bloc de positionnement : fixed sur .nav ne recouvre pas le main ;
     fond opaque + z-index pour que le panneau menu passe au-dessus du contenu. */
  .site-header {
    z-index: 10000;
    backdrop-filter: none;
    background: #191919;
  }

  .header-inner {
    position: relative;
    z-index: 10002;
  }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 10003;
  }

  .nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    padding: var(--space);
    padding-bottom: calc(var(--space) + env(safe-area-inset-bottom, 0px));
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
    overflow-y: auto;
    z-index: 10001;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .nav-cta {
    margin-top: 1rem;
    text-align: center;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}

.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: #1a1a1a;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #1a1a1a;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero */
.hero {
  padding-block: clamp(3rem, 10vw, 5.5rem);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-copy {
  max-width: 42rem;
  text-align: center;
  margin-inline: auto;
}

.hero-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.hero-rating {
  display: inline-block;
  margin: 0 0 1.35rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #d9d9d9;
  font-size: 0.86rem;
}

.hero-rating strong {
  color: #fff;
  font-weight: 700;
}

.hero-stars {
  color: #fbbc04;
  letter-spacing: 0.06em;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
}

.hero-lead {
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.2rem;
}

/* Sections */
.section {
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.section-alt {
  background: rgba(34, 34, 34, 0.52);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-block: 1px solid var(--border);
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

.section-intro {
  margin: 0 0 2rem;
  max-width: 38rem;
  color: var(--text-muted);
}

.seo-copy {
  display: grid;
  gap: 1rem;
}

.seo-copy p {
  margin: 0;
  color: var(--text-muted);
  max-width: 72ch;
}

.seo-copy strong {
  color: var(--text);
  font-weight: 600;
}

.seo-tech {
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 0.9;
}

/* Cards */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.card {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.section-alt .card {
  background: var(--bg);
}

.card-title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
  font-size: 1.08rem;
}

.card-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Split */
.split {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.split-title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.split-item p {
  margin: 0;
  color: var(--text-muted);
}

/* Studio + micro */
.studio-showcase {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .studio-showcase {
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 2.5rem;
  }
}

.studio-micro {
  margin: 0;
  padding: 1rem;
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: center;
}

.studio-micro-img {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .studio-micro-img {
    max-width: 100%;
  }
}

.split-studio {
  align-self: start;
}

/* Certifications — disques */
.cert-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.cert-card {
  margin: 0;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0d0d0d;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cert-card:hover {
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.cert-card-platine {
  border-color: rgba(192, 192, 210, 0.25);
}

.cert-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cert-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #080808;
  border-bottom: 1px solid var(--border);
}

.cert-caption {
  padding: 1rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cert-label {
  font-family: "Unbounded", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
}

.cert-detail {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Galerie — pleine largeur écran (hors container) */
.gallery-section {
  padding-inline: 0;
}

.gallery-section .section-intro {
  margin-bottom: 0;
}

.gallery-intro {
  margin-bottom: clamp(1.25rem, 4vw, 2rem);
}

.gallery-screen-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px);
}

.gallery-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  width: 100%;
  gap: clamp(2px, 0.6vw, 6px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.gallery-item {
  overflow: hidden;
  background: #0d0d0d;
  min-height: 0;
}

.gallery-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (min-width: 1100px) {
  .gallery-img {
    aspect-ratio: 1;
  }
}

.gallery-item:hover .gallery-img {
  transform: scale(1.04);
  opacity: 0.92;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-item:hover .gallery-img {
    transform: none;
    opacity: 1;
  }
}

/* Credits */
.credits-list {
  margin: 0;
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.75;
  color: var(--text-muted);
}

.credits-video {
  margin-top: 1.4rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #0f0f0f;
}

.credits-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

/* CTA band */
.cta-band {
  text-align: center;
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(164, 73, 54, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 0% 50%, rgba(19, 44, 75, 0.18) 0%, transparent 45%),
    radial-gradient(ellipse 60% 45% at 100% 80%, rgba(107, 80, 53, 0.16) 0%, transparent 45%),
    linear-gradient(180deg, rgba(34, 34, 34, 0.55) 0%, rgba(25, 25, 25, 0.82) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-block: 1px solid var(--border);
}

.cta-inner {
  max-width: 36rem;
}

.cta-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
}

.cta-text {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  align-items: start;
}

.contact-address {
  font-style: normal;
  margin: 0 0 1rem;
  line-height: 1.7;
}

.contact-phone {
  margin: 0 0 1rem;
  font-size: 1.125rem;
}

.contact-phone a {
  font-weight: 600;
}

.contact-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-links li {
  margin-bottom: 0.5rem;
}

.map-hint {
  margin: 0;
  padding: 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.leaflet-map-card {
  height: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.leaflet-map {
  width: 100%;
  height: clamp(18rem, 45vw, 26rem);
}

/* Footer */
.site-footer {
  padding: 1.5rem var(--space);
  border-top: 1px solid var(--border);
  background: rgba(20, 20, 20, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-ig {
  font-size: 0.875rem;
  font-weight: 600;
}
