/* ======================= FOOTER (responsive, visuel gradient) ======================= */
/* Mobile-first, hover blanc, fond gradient d'origine */

:root{
  --footer-pad-x: clamp(1rem, 3vw, 2rem);
  --footer-pad-y: clamp(1.25rem, 2.5vw, 2rem);
  --footer-gap: clamp(0.75rem, 2vw, 1.25rem);
  --footer-text: clamp(0.85rem, 1.2vw, 0.95rem);
  --footer-title: clamp(1.1rem, 1.8vw, 1.4rem);
}

/* ===== Bloc principal ===== */
.footer{
  position: relative;
  background: linear-gradient(
    90deg,
    #003077 0%, 
    #002a80 5%, 
    #0070c0 30%,
    #00b5e2 60%,
    #8be8f7 90%,
    #a8edea 100%
  );
  color: #fff;
  padding: calc(var(--footer-pad-y) + .5rem) var(--footer-pad-x) var(--footer-pad-y);
  font-family: "Inter", system-ui, sans-serif;
  z-index: 5;
}

/* ===== Conteneur brand + nav ===== */
.footer__container{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: var(--footer-gap);
  grid-template-columns: 1fr; /* mobile: une colonne */
}

/* Brand */
.footer__brand{ min-width: 0; }
.footer__title{
  font-size: var(--footer-title);
  font-weight: 700;
  margin: 0 0 .25rem 0;
}
.footer__tagline{
  font-size: 0.95rem;
  opacity: .9;
  margin: 0;
}

/* Navigation */
.footer__nav ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem .9rem;
}
.footer__nav li{ margin: 0; }

/* Liens */
.footer__nav a{
  font-size: 0.9rem;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  padding: .2rem .9rem;
  border-radius: 6px;
  line-height: 1.2;
  transition: background .25s ease-in-out, color .25s ease-in-out, box-shadow .25s;
  min-height: 36px;
  display: inline-flex;
  align-items: center;

  /* effet subtil */
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 1px 3px rgba(255,255,255,0.08);
}

/* === HOVER & ACTIVE mis à jour (copiés depuis la navbar) === */
.footer__nav a:hover {
  background: rgba(0, 0, 0, 0.40);
  color: #111;
  border-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.footer__nav a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.footer__nav a:hover:not(.active) {
  background-color: rgba(0, 0, 0, 0.40);
  color: white;
}

.footer__nav a.active {
  background: rgba(0, 0, 0, 0.50);
  color: #111;
  border-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ===== Footer bottom ===== */
/* ===== Footer bottom (version discrète) ===== */
.footer__bottom{
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
  padding: 1rem var(--footer-pad-x);
  border-top: 1px solid rgba(255,255,255,.15); /* plus fin */
  font-size: var(--footer-text);
  opacity: .9; /* un peu moins visible */
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Textes & liens */
.footer__bottom .footer-left,
.footer__bottom .footer-right{
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Groupe de liens à droite */
.footer__bottom .footer-right{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .5rem;
  color: #111;
}

.footer__bottom .footer-right a{
  font-weight: 400; /* police plus fine */
  color: #111;
  text-decoration: none;
  padding: .25rem .55rem;
  border-radius: 6px;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;

  /* discret : bordure invisible mais garde l’espace */
  border: 1px solid transparent;
  background: rgba(255,255,255,0.02); /* ultra léger (presque imperceptible) */
}

.footer__bottom .footer-right a:hover{
  background: #ffffff;
  color: #111;
  border-color: #ffffff; /* visible seulement au hover */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.footer__bottom .footer-right a:focus-visible{
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.footer__bottom .footer-right a.active{
  background: #ffffff;
  color: #111;
  border-color: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* ===== Breakpoints ===== */
@media (min-width: 720px){
  .footer__container{
    /* reserve room for the title on the left */
    grid-template-columns: minmax(260px, 1fr) auto;
    /* larger horizontal gap between the two columns */
    column-gap: clamp(1rem, 4vw, 3rem);
    align-items: start;
  }
  .footer__brand{ 
    padding-right: clamp(.25rem, 1.5vw, 1rem);
  }
  .footer__nav ul{
    justify-content: flex-end;
    gap: .6rem .8rem;
  }
  .footer__bottom{
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 1024px){
  .footer__nav ul{ gap: .6rem 1rem; }
}

/* ===== Accessibilité ===== */
@media (prefers-reduced-motion: reduce){
  * { transition: none !important; }
}
