/* ============================================================
   FOC STUDIO — FOOTER (module réutilisable)
   Inclus via partials/footer.php sur toutes les pages.
   ============================================================ */
.footer {
  overflow: hidden;
  width: 100%;
  /* Bord du contenu aligné sur la grille centrale de la page (même axe
     gauche/droite que les sections en max-width). Le 100% se résout
     contre le conteneur pleine largeur (largeur HORS scrollbar), comme
     les sections → alignement pile au pixel. Fluide : se rabat sur la
     gouttière dès que l'écran est plus étroit que le conteneur. */
  --edge: max(var(--gutter), (100% - var(--max-width)) / 2);
}

/* Bloc principal : 2 colonnes */
.footer-main {
  display: flex;
  min-height: 50vh;
}

/* Colonne contact (rouge) */
.footer-contact {
  flex: 2;
  background: var(--feu);
  color: var(--noir);
  padding: clamp(2rem, 5vw, 4rem);
  /* Le panneau reste pleine largeur, mais son contenu démarre sur la
     grille de la page (et non sur la simple gouttière). */
  padding-left: var(--edge);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer-contact-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-contact-links a {
  font-family: var(--font-title);
  /* Min relevé (2rem) : ce sont les liens PRINCIPAUX, ils doivent rester
     nettement plus gros que les icônes (~26px) même sur mobile. */
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--noir);
  --link-slide-color: var(--blanc);
}

.footer-social {
  margin-top: 2rem;
}

.footer-social p {
  font-size: 1rem;
  margin-bottom: .75rem;
  opacity: 0.85;
}

/* Icônes réseaux — trait noir sur le panneau rouge, léger soulèvement
   au survol. La taille est pilotée ici (les SVG n'ont qu'un viewBox). */
.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 0.25rem;
}

.social-icons a {
  display: inline-flex;
  color: var(--noir);
  transition: transform 0.2s ease, color 0.2s ease;
}

.social-icons svg {
  width: 26px;
  height: 26px;
  display: block;
}

.social-icons a:hover {
  transform: translateY(-3px);
  color: var(--blanc);
}

/* Zone secondaire (e-mail, adresse) — échelle homogène ~1rem pour une
   hiérarchie claire : liens principaux (gros) > icônes > secondaire (1rem). */
.footer-email {
  display: inline-block;
  margin: 0 0 .5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--noir);
  --link-slide-color: var(--blanc);
  transition: opacity 0.2s ease;
}
.footer-email:hover { opacity: 0.7; }

/* Adresse SEO (référencement local) — texte réel, non italique. */
.footer-address {
  margin-bottom: 1rem;
  font-style: normal;
  font-size: 1rem;
  opacity: 0.85;
}

/* Colonne CTA (noir) */
.footer-cta {
  flex: 1;
  background: var(--noir);
  color: var(--rose);
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  transition: background 0.3s;
  aspect-ratio: 1/1;
}

.footer-cta:hover {
  background: #1a1912;
}

.footer-cta-text {
  font-family: var(--font-title);
  font-size: clamp(2rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.footer-cta-arrow {
  position: absolute;
  top: clamp(2rem, 5vw, 4rem);
  right: clamp(2rem, 5vw, 4rem);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--rose);
  transition: transform 0.3s;
}

.footer-cta:hover .footer-cta-arrow {
  transform: translateX(10px);
}

/* Crédits */
.footer-credits {
  background: var(--noir);
  color: rgba(255, 153, 255, 0.6);
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255, 153, 255, 0.2);
}

.footer-credits .container {
  padding: 0 var(--edge);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-credits .copyright {
  font-size: 0.875rem;
  margin: 0;
}

.legal-links {
  display: flex;
  gap: 2rem;
}

.legal-links a {
  color: rgba(255, 153, 255, 0.6);
  font-size: 0.875rem;
  --link-slide-color: var(--feu);
}

/* ============================================================
   NAV SERVICES — bandeau noir aligné sur la grille de la page
   ============================================================ */
.footer-nav {
  background: var(--noir);
  padding-block: 0;
  border-top: 1px solid rgba(255, 153, 255, 0.2);
}

.footer-nav .container {
  padding-inline: var(--edge);
}

.footer-services {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap:0;
}

.footer-nav-label {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--feu);
  opacity: 0.85;
  margin-right: 2rem;
}

.footer-services a {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 1rem;
  color: var(--feu);
  --link-slide-color: var(--blanc);
  /* Le slide (base.css) clippe via overflow:hidden au ras de la ligne ;
     le padding révèlerait les copies colorées. On re-clippe sur la boîte
     de contenu (= padding 1rem) pour garder l'effet propre. */
  clip-path: inset(1rem);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .footer-main {
    flex-direction: column-reverse;
    min-height: auto;
  }

  .footer-cta {
    min-height: 40vh;
  }

  .footer-cta-arrow {
    top: 50%;
    transform: translateY(-50%);
  }

  .footer-cta:hover .footer-cta-arrow {
    transform: translateY(-50%) translateX(10px);
  }
}

@media (max-width: 600px) {
  .footer-credits .container {
    flex-direction: column;
    text-align: center;
  }

  .legal-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* On retire le gros bloc "FOC LET'S START" sur mobile (redondant avec les
     contacts du panneau + les icônes du menu). */
  .footer-cta { display: none; }

  /* Bandeau Services : empilé proprement (l'horizontal était disproportionné).
     Padding HORIZONTAL à 0 → le texte s'aligne pile sur le bord du bloc rouge
     (même axe que TÉLÉPHONE / l'adresse), plus de décalage. */
  .footer-services {
    flex-direction: column;
    align-items: flex-start;
    padding-block: 0.75rem;
  }
  .footer-nav-label {
    margin: 0 0 0.5rem;
    padding-left: 0;
  }
  .footer-services a {
    padding: 0.6rem 0;
    /* Le clip-path du slide (base.css) suit le nouveau padding (0 horizontal). */
    clip-path: inset(0.6rem 0);
  }
}
