/* ═══════════════════════════════════════════════════
   nav.css — Navigation commune Chapô Conseil
   Utilisé par toutes les pages du site
═══════════════════════════════════════════════════ */

/* ── Variables (reprises de chaque page) ── */
:root {
  --vert:       #2D5F3F;
  --vert-clair: #4A8C61;
  --beige:      #F2EDE4;
  --beige-fonce:#E8DFD0;
  --noir:       #1A1A1A;
  --accent:     #C8A84B;
}

/* ══ NAV STANDARD (fond beige) ══════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 4rem;
  background: rgba(242,237,228,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(45,95,63,0.15);
}

.nav-logo {
  display: flex; align-items: center; text-decoration: none;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 900;
  color: var(--vert);
}
.nav-logo span { font-style: italic; color: var(--accent); }
.nav-logo img { height: 48px; width: auto; }

.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--noir);
  font-size: 0.9rem; font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--vert); }
.nav-cta {
  background: var(--vert); color: white !important;
  padding: 0.6rem 1.4rem; border-radius: 2px; font-weight: 700 !important;
}
.nav-cta:hover { opacity: 0.88; }

/* ══ NAV SPECTACLE (fond violet) ════════════════
   Ajoutez class="nav--spectacle" sur la balise <nav>
   de conference-spectacle.html                    */
nav.nav--spectacle {
  background: rgba(91,31,138,0.97);
  border-bottom: 3px solid #FFE600;
}
nav.nav--spectacle .nav-logo { color: white; }
nav.nav--spectacle .nav-logo span { color: #FFE600; }
nav.nav--spectacle .nav-links a { color: rgba(255,255,255,0.75); }
nav.nav--spectacle .nav-links a:hover,
nav.nav--spectacle .nav-links a.active { color: #FFE600; }
nav.nav--spectacle .nav-cta {
  background: #FFE600; color: #3A0F5E !important;
}

/* ══ BURGER ═════════════════════════════════════ */
.burger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  width: 44px; height: 44px;
  cursor: pointer; background: none; border: none; padding: 0;
  gap: 5px; flex-shrink: 0;
}
.burger-line {
  display: block; width: 24px; height: 2px;
  background: var(--vert); border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
nav.nav--spectacle .burger-line { background: white; }

.burger.open .burger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open .burger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open .burger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══ MENU MOBILE ════════════════════════════════ */
.nav-mobile {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 99;
  background: var(--beige);
  flex-direction: column;
  padding: 6rem 2.5rem 3rem;
  overflow-y: auto;
}
.nav-mobile.open { display: flex; }

.nav-mobile-links {
  list-style: none; display: flex; flex-direction: column;
  border-top: 1px solid var(--beige-fonce);
}
.nav-mobile-links li { border-bottom: 1px solid var(--beige-fonce); }
.nav-mobile-links a {
  display: block; padding: 1.3rem 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--noir); text-decoration: none; transition: color 0.2s;
}
.nav-mobile-links a:hover,
.nav-mobile-links a.active { color: var(--vert); }

.nav-mobile-cta {
  margin-top: 2rem;
  background: var(--vert); color: white;
  padding: 1.1rem 2rem; text-align: center;
  font-weight: 700; font-size: 1rem;
  text-decoration: none; border-radius: 2px; display: block;
}
.nav-mobile-contact {
  margin-top: auto; padding-top: 2rem;
  display: flex; flex-direction: column; gap: 0.8rem;
}
.nav-mobile-contact a {
  font-size: 0.85rem; color: #888;
  text-decoration: none; display: flex; align-items: center; gap: 0.6rem;
}

/* ══ SOUS-NAV FORMATIONS ════════════════════════ */
.formations-subnav {
  position: sticky; top: 83px; z-index: 90;
  background: var(--vert);
  display: flex; overflow-x: auto;
  border-bottom: 2px solid rgba(255,255,255,0.1);
}
.subnav-item {
  flex: 1; min-width: fit-content;
  padding: 1rem 1.5rem; text-align: center;
  text-decoration: none; color: rgba(255,255,255,0.6);
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.03em;
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: background 0.2s, color 0.2s; white-space: nowrap;
}
.subnav-item:last-child { border-right: none; }
.subnav-item:hover { background: rgba(255,255,255,0.08); color: white; }
.subnav-item.active {
  background: var(--accent); color: var(--noir);
  font-weight: 700; pointer-events: none;
}

/* ══ SOUS-MENU FORMATIONS DANS LE BURGER (mobile) ══ */
.nav-mobile-subnav {
  display: flex;
  flex-direction: column;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
  margin: 0 0 0 0.5rem;
}
.nav-mobile-subnav-label {
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: #aaa; font-weight: 700;
  padding: 1.2rem 0 0.6rem;
}
.nav-mobile-subnav a {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.85rem 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem; font-weight: 500;
  color: #555; text-decoration: none;
  border-bottom: 1px solid var(--beige-fonce);
  transition: color 0.2s;
}
.nav-mobile-subnav a:last-child { border-bottom: none; }
.nav-mobile-subnav a:hover { color: var(--vert); }
.nav-mobile-subnav a.active {
  color: var(--vert); font-weight: 700;
}
.nav-mobile-subnav a.active::after {
  content: '←'; margin-left: auto; color: var(--accent); font-size: 0.9rem;
}

/* ═══════════════════════════════════
   CLIENTS STRIP
═══════════════════════════════════ */
/* ── CARROUSEL CLIENTS ── */
.clients{
  padding:3rem 0;background:var(--beige);
  border-top:1px solid var(--beige-fonce);border-bottom:1px solid var(--beige-fonce);
  overflow:hidden;
}
.clients-label{
  font-size:0.72rem;letter-spacing:0.2em;text-transform:uppercase;
  color:#bbb;font-weight:700;text-align:center;margin-bottom:1.8rem;
  padding:0 4rem;
}
.clients-track-wrapper{
  overflow:hidden;
  /* masques flou sur les bords */
  -webkit-mask-image:linear-gradient(to right,transparent 0%,black 8%,black 92%,transparent 100%);
  mask-image:linear-gradient(to right,transparent 0%,black 8%,black 92%,transparent 100%);
}
.clients-track{
  display: inline-flex;    /* Changé de flex à inline-flex */
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: logos-scroll 22s linear infinite;
  will-change: transform;  /* Aide à la fluidité sur mobile */
  }
.clients-track:hover{animation-play-state:paused}
@keyframes logos-scroll{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}
.client-logo{
  display:flex;align-items:center;justify-content:center;
  padding:0 3.5rem;height:180px;flex-shrink:0;
  border-right:1px solid var(--beige-fonce);
}
.client-logo:last-child{border-right:none}
.client-logo img{
  height:150px;width:auto;
  max-width:140px;
  object-fit:contain;
  filter:grayscale(100%) opacity(0.45);
  transition:filter 0.3s;
}
.clients-track:hover .client-logo img{filter:grayscale(0%) opacity(1)}

/* ══ RESPONSIVE ═════════════════════════════════ */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .burger { display: flex; }

  /* Masquer le sous-menu horizontal — intégré dans le burger */
  .formations-subnav { display: none; }
    .client-logo img {
    filter: grayscale(0%) opacity(1);
  }
}
