/* =================================================================
   COPAINS POILUS — HEADER PARTAGÉ (header.css) v2
   Design de référence : fond blanc, 72 px, 4 boutons, logo bicolore.
   Inclus sur toutes les pages publiques — une seule source de vérité.
   ================================================================= */

/* ----- Liens globaux ----- */
.header a,
.mobile-nav a,
.top-banner a {
  text-decoration: none;
  color: inherit;
}

/* ═══════════════════════════════════════════
   TOP BANNER
═══════════════════════════════════════════ */
.top-banner {
  background: #0f172a;
  color: #e2e8f0;
  text-align: center;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.5;
}
.top-banner p { margin: 0; }
.top-banner__link {
  color: #ff6eb4;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .2s;
}
.top-banner__link:hover { color: #ffd700; }
.top-banner .fi {
  display: inline-block;
  vertical-align: middle;
  width: 1.2em; height: 0.9em;
  border-radius: 2px;
  position: relative;
  top: -1px;
}

/* ═══════════════════════════════════════════
   BOUTONS — système complet
═══════════════════════════════════════════ */

/* Base commune */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 50px;
  font-family: 'Nunito', 'Trebuchet MS', Arial, sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  border: 1.5px solid transparent;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease,
              background .16s ease, color .16s ease, border-color .16s ease;
  letter-spacing: .01em;
}

/* Shimmer subtil au survol */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255,255,255,.18) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform .4s ease;
  pointer-events: none;
}
.btn:hover::after { transform: translateX(120%); }

/* ── btn--outline  : cadre gris, fond blanc — ex. "Annuaire" ── */
.btn--outline {
  background: #ffffff;
  border-color: #d1d5db;
  color: #374151;
}
.btn--outline:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  color: #111827;
}

/* ── btn--outline-orange : cadre rose (charte) — ex. "Proposer ses services" ── */
.btn--outline-orange {
  background: #ffffff;
  border-color: rgba(232,38,74,.30);
  color: #E8264A;
}
.btn--outline-orange:hover {
  background: #FFF5F8;
  border-color: #E8264A;
  color: #E8264A;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(232,38,74,.16);
}

/* ── btn--cta : rose plein (charte) — ex. CTA principal ── */
.btn--cta {
  background: #E8264A;
  border-color: transparent;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 3px 12px rgba(232,38,74,.34);
}
.btn--cta:hover {
  background: #C91E3C;
  transform: translateY(-2px);
  box-shadow: 0 7px 22px rgba(232,38,74,.42);
  color: #ffffff;
}

/* ── btn--ghost : sans fond, texte sombre — ex. "Se connecter" ── */
.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: #374151;
  padding: 9px 14px;
}
.btn--ghost:hover {
  background: #f3f4f6;
  color: #111827;
  transform: none;
  box-shadow: none;
}
.btn--ghost::after { display: none; }

/* ── btn--primary : rose Copains — maintenu pour compatibilité pages existantes ── */
.btn--primary {
  background: #E8264A;
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(232,38,74,.28);
}
.btn--primary:hover {
  background: #C91E3C;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(232,38,74,.42);
  color: #ffffff;
}

/* Icône dans les boutons */
.btn__icon {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px;
  min-height: 14px;
  flex-shrink: 0;
  display: block;
}

/* ═══════════════════════════════════════════
   HEADER SHELL
═══════════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  /* Ombre premium : ligne fine + diffusion douce */
  box-shadow:
    0 1px 0 rgba(0, 0, 0, .06),
    0 4px 20px rgba(0, 0, 0, .05);
}

/* ── Wrapper interne ── */
.header__inner {
  display: flex;
  align-items: center;
  height: 72px;            /* 72 px — élégant, compact */
  max-width: none;
  padding: 0 40px;
  gap: 0;
}

/* ═══════════════════════════════════════════
   LOGO
═══════════════════════════════════════════ */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: 32px;
  text-decoration: none;
  color: inherit;
}
.logo__icon {
  font-size: 1.9rem;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.12));
}
.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
/* "Copains" — bleu ciel/teal comme dans la référence */
.logo__top {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0ea5e9;
  letter-spacing: .04em;
  text-transform: none;
}
/* "Poilus.com" — orange signature */
.logo__bottom {
  font-size: 1.0rem;
  font-weight: 900;
  color: #f97316;
  letter-spacing: .01em;
}

/* ═══════════════════════════════════════════
   NAVIGATION PRINCIPALE
═══════════════════════════════════════════ */
.nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 700;
  color: #374151;
  padding: 8px 14px;
  border-radius: 10px;
  position: relative;
  letter-spacing: .01em;
  white-space: nowrap;
  text-decoration: none;
  transition: color .15s ease, background .15s ease;
}
/* Soulignement animé */
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 10px;
  right: 10px;
  height: 2px;
  border-radius: 2px;
  background: #E8264A;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s ease;
}
.nav__link:hover              { color: #E8264A; background: rgba(232,38,74,.05); }
.nav__link:hover::after       { transform: scaleX(1); }
.nav__link--active            { color: #E8264A; }
.nav__link--active::after     { transform: scaleX(1); }
.nav__link--support           { color: #7c3aed; }
.nav__link--support:hover     { background: rgba(124,58,237,.05); color: #5b21b6; }
.nav__link--support::after    { background: #7c3aed; }

/* ═══════════════════════════════════════════
   ACTIONS HEADER (4 boutons)
═══════════════════════════════════════════ */
.header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: 20px;
}

/* ═══════════════════════════════════════════
   BURGER MOBILE
═══════════════════════════════════════════ */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  width: 36px;
  height: 36px;
}
.burger__line {
  display: block;
  width: 22px;
  height: 2.5px;
  background: #333333;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
  transform-origin: center;
}
.burger--open .burger__line:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger--open .burger__line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger--open .burger__line:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ═══════════════════════════════════════════
   MENU MOBILE
═══════════════════════════════════════════ */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #ffffff;
  border-top: 1px solid #f0e0f0;
  padding: 8px 20px 16px;
  gap: 2px;
}
.mobile-nav--open { display: flex; }
.mobile-nav__link {
  font-size: 0.92rem;
  font-weight: 600;
  color: #333333;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.mobile-nav__link:hover         { background: #FFF5F8; color: #E8264A; }
.mobile-nav__link--active       { color: #E8264A; background: #FFF5F8; }
.mobile-nav__link--cta {
  background: #E8264A;
  color: #ffffff !important;
  text-align: center;
  margin-top: 6px;
  border-radius: 50px;
  font-weight: 800;
  padding: 12px 14px;
}
.mobile-nav__link--cta:hover {
  background: #C91E3C;
  color: #ffffff !important;
}
.mobile-nav__sep { border: none; border-top: 1px solid #f0e0f0; margin: 8px 0; }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */

/* Écrans moyens (1100–1280px) : masquer les 2 boutons secondaires */
@media (max-width: 1280px) {
  .header__inner { padding: 0 28px; }
  .nav__link { padding: 8px 10px; font-size: 0.86rem; }
  .btn { font-size: 0.82rem; padding: 8px 12px; }
  .btn--ghost { padding: 8px 10px; }
  .logo { margin-right: 20px; }
  .header__actions { gap: 4px; margin-left: 12px; }
}

/* Tablette : cacher les boutons "Annuaire" et "Devenir" */
@media (max-width: 1100px) {
  .btn--hide-md { display: none; }
}

/* Mobile : burger */
@media (max-width: 900px) {
  .nav             { display: none; }
  .header__actions { display: none; }
  .burger          { display: flex; }
  .logo            { margin-right: 0; }
  .header__inner   { padding: 0 20px; height: 62px; }
}
