/* =============================================================================
   TensionOne - assets/css/footer.css
   Copie conforme du CSS footer de reference. Deux ajustements seulement :
     1. les variables sont declarees sur .footer-valcourt au lieu de :root,
        pour ne pas ecraser un --container ou --pad-x global du site ;
     2. regle .fa-svg ajoutee (remplace le rendu des balises <i> Font Awesome).
   ========================================================================== */

/* --- Footer Tension1 (Amélioré & Fully Responsive) --- */
.footer-valcourt {
  --footer-bg: #eeeeee;
  --footer-text: #333;
  --footer-muted: #555;
  --footer-title: #000;
  --footer-bar-bg: #000;
  --footer-bar-text: #fff;

  --radius: 14px;
  --container: 1300px;
  --pad-x: 40px;
  --pad-y: 80px;

  --focus: #0b5fff;
}

.footer-valcourt {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: var(--pad-y) 0 0 0;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  border-top: 1px solid #e5e7eb;
}

/* === ICONES (equivalent Font Awesome) === */
.footer-valcourt .fa-svg {
  display: inline-block;
  height: 1em;
  width: auto;
  overflow: visible;
  vertical-align: -0.125em;
}

/* === MAIN GRID LAYOUT === */
.footer-v-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x) 60px var(--pad-x);

  display: grid;
  /* Desktop: 5 columns. The first column (logo) gets 1.5 fractions of space, the rest get 1 fraction */
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  column-gap: 30px;
  row-gap: 40px;
  align-items: start;
}

/* === RESPONSIVE BREAKPOINTS === */

/* Large Laptops / Small Desktops (max 1100px)
   We keep 5 columns but allow them to squeeze slightly. */
@media (max-width: 1100px) {
  .footer-v-container {
    grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
    column-gap: 20px;
  }
}

/* Tablets (max 992px)
   Switch to 3 columns. The logo column spans all 3 columns at the top. */
@media (max-width: 992px) {
  .footer-v-container {
    grid-template-columns: repeat(3, 1fr);
  }
  .f-v-col.logo-col {
    grid-column: 1 / -1; /* Forces the first column to take the full width */
    max-width: 100%;
    margin-bottom: 20px;
  }
}

/* Large Mobile / Small Tablets (max 768px)
   Switch to 2 columns. */
@media (max-width: 768px) {
  .footer-v-container {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 30px 50px 30px;
  }
}

/* Mobile Phones (max 576px)
   Switch to 1 single column, centered text. */
@media (max-width: 576px) {
  .footer-v-container {
    grid-template-columns: 1fr;
    padding: 0 20px 40px 20px;
    text-align: center;
    row-gap: 35px;
  }

  .f-v-col.logo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .f-v-social {
    justify-content: center;
  }

  .f-v-logo {
    margin: 0 auto;
  }
}

/* === FOOTER ELEMENTS STYLING === */

.f-v-col.logo-col {
  max-width: 320px;
}

.f-v-brand {
  display: inline-block;
}

.f-v-logo {
  max-width: 200px;
  height: auto;
  display: block;
}

.footer-slogan {
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--footer-muted);
}

.f-v-address {
  font-style: normal;
  margin: 0;
  color: var(--footer-text);
  line-height: 1.6;
}

.f-v-address strong {
  display: block;
  margin-bottom: 5px;
  color: #111;
}

.f-v-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--footer-title);
  letter-spacing: 0.2px;
}

.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 25px; }

.f-v-link,
.f-v-text {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.f-v-link:hover {
  color: var(--focus);
}

.f-v-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.f-v-list li {
  margin-bottom: 10px;
}

.f-v-list li a {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.f-v-list li a:hover {
  color: var(--focus);
}

/* === SOCIAL MEDIA ICONS === */
.f-v-social {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.f-v-social-link {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  color: #111;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.f-v-social-link:hover {
  background: rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* === ACCESSIBILITY === */
.footer-valcourt a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .f-v-social-link { transition: none; }
}

/* === BOTTOM BLACK BAR === */
.footer-black-bar {
  background-color: var(--footer-bar-bg);
  color: var(--footer-bar-text);
  padding: 22px 0;
  text-align: center;
}

.footer-v-container-small {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: #9ca3af;
}

@media (max-width: 576px) {
  .footer-v-container-small {
    padding-left: 20px;
    padding-right: 20px;
  }
}