/* ============================================================
   sections/footer/style.css
   ============================================================ */

/* ── Section ─────────────────────────────────────────────── */
.footer {
  background:    var(--footer-bg, var(--bg-color));
  color:         var(--footer-text, inherit);
  padding:       var(--footer-padding, 3rem 0);
  border-top:    var(--footer-border, 1px solid rgba(255,255,255,.05));
  border-radius: var(--footer-radius, 0);
  box-shadow:    var(--footer-shadow, none);
}

/* ── Marque ──────────────────────────────────────────────── */
.footer-brand-link {
  display: inline-block;
  text-decoration: none;
}

.footer-brand-text {
  font-family: var(--font-mono);
  font-size:   var(--footer-brand-size, 1.8rem);
  font-weight: 700;
  color:       var(--footer-brand-color, var(--footer-accent, var(--primary-color)));
}

.footer-brand-logo {
  max-height: var(--footer-brand-logo-h, 48px);
  max-width:  200px;
  width:      auto;
  object-fit: contain;
  display:    block;
}

.footer-desc {
  font-size:   var(--footer-desc-size, .9rem);
  color:       var(--footer-desc-color, var(--footer-text, var(--text-color)));
  opacity:     .8;
  line-height: 1.6;
  margin-top:  .75rem;
  margin-bottom: 0;
}

/* ── Liens sociaux ───────────────────────────────────────── */
.social-links {
  display:    flex;
  flex-wrap:  wrap;
  gap:        .75rem;
  margin-top: 1.25rem;
}

.social-links a {
  width:           36px;
  height:          36px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  border-radius:   var(--footer-social-radius, 50%);
  background:      var(--footer-social-bg, rgba(255,255,255,.06));
  color:           var(--footer-social-color, var(--footer-text, inherit));
  font-size:       1.1rem;
  transition:      background .25s, color .25s, transform .25s;
  text-decoration: none;
}

.social-links a img {
  width:      1.1rem;
  height:     1.1rem;
  object-fit: contain;
  display:    block;
}

.social-links a:hover {
  background: var(--footer-social-hover-bg, var(--footer-accent, var(--primary-color)));
  color:      var(--bg-color);
  transform:  translateY(-2px);
}

/* ── Titre colonne ───────────────────────────────────────── */
.footer-col-title {
  font-size:     var(--footer-title-size, 1rem);
  font-weight:   700;
  color:         var(--footer-title-color, var(--footer-accent, var(--primary-color)));
  margin-bottom: 1.25rem;
  padding-bottom: .5rem;
  position:      relative;
}

.footer-col-title::after {
  content:    '';
  position:   absolute;
  left:       0;
  bottom:     0;
  width:      28px;
  height:     2px;
  background: var(--footer-title-color, var(--footer-accent, var(--primary-color)));
  opacity:    .6;
}

/* ── Liens nav ───────────────────────────────────────────── */
.footer-links {
  list-style:    none;
  padding:       0;
  margin:        0;
  display:       flex;
  flex-direction:column;
  gap:           .6rem;
}

.footer-links a {
  color:           var(--footer-links, var(--footer-text, inherit));
  opacity:         .8;
  text-decoration: none;
  transition:      color .2s, opacity .2s, padding-left .2s;
  font-size:       .9rem;
}

.footer-links a:hover {
  color:         var(--footer-links-hover, var(--footer-accent, var(--primary-color)));
  opacity:       1;
  padding-left:  4px;
}

/* ── Contact ─────────────────────────────────────────────── */
.footer-contact {
  list-style: none;
  padding:    0;
  margin:     0;
  display:    flex;
  flex-direction: column;
  gap: .75rem;
}

.footer-contact li {
  display:     flex;
  align-items: center;
  gap:         .6rem;
  font-size:   .9rem;
  opacity:     .8;
}

.footer-contact i {
  width:     1.2rem;
  flex-shrink: 0;
  color:     var(--footer-accent, var(--primary-color));
  text-align: center;
}

.footer-contact a {
  color:           inherit;
  text-decoration: none;
  transition:      color .2s;
}

.footer-contact a:hover {
  color: var(--footer-accent, var(--primary-color));
}

/* ── Footer bottom ───────────────────────────────────────── */
.footer-bottom {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  flex-wrap:       wrap;
  gap:             .75rem;
  padding-top:     1.75rem;
  margin-top:      2.5rem;
  border-top:      1px solid rgba(255,255,255,.06);
}

.footer-bottom__copy {
  display:     flex;
  align-items: center;
  flex-wrap:   wrap;
  gap:         .75rem;
}

.footer-copyright {
  font-size: var(--footer-copyright-size, .85rem);
  color:     var(--footer-copyright-color, var(--footer-text, inherit));
  opacity:   .65;
}

.footer-techstack {
  display:     flex;
  align-items: center;
  gap:         .4rem;
  opacity:     .55;
  font-size:   .85rem;
}

.footer-techstack i {
  font-size:  1.1rem;
  transition: color .2s, opacity .2s;
}

.footer-techstack i:hover {
  color:   var(--footer-accent, var(--primary-color));
  opacity: 1;
}

/* ── Liens légaux ────────────────────────────────────────── */
.footer-bottom__legal {
  display:     flex;
  align-items: center;
  flex-wrap:   wrap;
  gap:         .5rem 1rem;
}

.footer-legal-btn {
  background:      none;
  border:          none;
  padding:         0;
  font-size:       .82rem;
  color:           var(--footer-links, var(--footer-text, inherit));
  opacity:         .65;
  cursor:          pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition:      opacity .2s, color .2s;
}

.footer-legal-btn:hover {
  opacity: 1;
  color:   var(--footer-accent, var(--primary-color));
}

/* ── Contenu modal légal ─────────────────────────────────── */
.footer-legal-content {
  font-size:   .92rem;
  line-height: 1.7;
  color:       var(--footer-text, inherit);
}

.footer-legal-content p   { margin-bottom: .75rem; }
.footer-legal-content h2,
.footer-legal-content h3  { margin-bottom: .5rem; font-weight: 700; }
.footer-legal-content ul,
.footer-legal-content ol  { padding-left: 1.5rem; margin-bottom: .75rem; }

/* ── Layout : grille 3col / 2col ─────────────────────────── */
.footer-grid {
  display:               grid;
  gap:                   var(--footer-col-gap, 2rem);
  grid-template-columns: 1.2fr 1fr 1fr; /* 3col default */
}

.footer--2col .footer-grid {
  grid-template-columns: 1.2fr 1fr;
}

.footer--2col .footer-col--contact {
  /* Dans le 2col, contact se place sous nav dans la 2e colonne */
  grid-column: 2;
}

/* ── Layout : centré ─────────────────────────────────────── */
.footer-centered {
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  text-align:      center;
  gap:             1.5rem;
}

.footer-centered .social-links {
  justify-content: center;
  margin-top:      0;
}

.footer-centered__nav {
  display:   flex;
  flex-wrap: wrap;
  gap:       .5rem 1.5rem;
  justify-content: center;
}

.footer-centered__nav a {
  color:           var(--footer-links, var(--footer-text, inherit));
  text-decoration: none;
  opacity:         .8;
  font-size:       .9rem;
  transition:      color .2s, opacity .2s;
}

.footer-centered__nav a:hover {
  color:   var(--footer-accent, var(--primary-color));
  opacity: 1;
}

.footer-centered__contact {
  display:     flex;
  flex-wrap:   wrap;
  gap:         .5rem 1.5rem;
  justify-content: center;
  font-size:   .9rem;
  opacity:     .75;
}

.footer-centered__contact a {
  color:           inherit;
  text-decoration: none;
  transition:      color .2s;
}

.footer-centered__contact a:hover {
  color: var(--footer-accent, var(--primary-color));
}

.footer-centered__contact i {
  margin-right: .3rem;
  color:        var(--footer-accent, var(--primary-color));
}

/* ── Layout : minimal ────────────────────────────────────── */
.footer--minimal {
  padding: var(--footer-padding, 1.25rem 0);
}

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

.footer-bar__nav {
  display:   flex;
  flex-wrap: wrap;
  gap:       .5rem 1.25rem;
}

.footer-bar__nav a {
  color:           var(--footer-links, var(--footer-text, inherit));
  text-decoration: none;
  opacity:         .8;
  font-size:       .88rem;
  transition:      color .2s, opacity .2s;
}

.footer-bar__nav a:hover {
  color:   var(--footer-accent, var(--primary-color));
  opacity: 1;
}

/* En mode minimal, pas de footer-bottom séparé : barre unique */
.footer--minimal .footer-bottom {
  border-top:  none;
  margin-top:  0;
  padding-top: 0;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer--2col .footer-col--contact {
    grid-column: auto;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bar {
    flex-direction: column;
    align-items:    flex-start;
    gap:            .75rem;
  }
  .footer-col-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-col--nav .footer-links,
  .footer-col--contact .footer-contact {
    align-items: center;
  }
  .footer-bottom {
    flex-direction: column;
    align-items:    center;
    text-align:     center;
  }
}
