/*
 * Footer modèle 2 (Theme Builder › Footer › Modèle 2) — partial themes/builder/partials/footers/footer-model-2.blade.php
 * Chargé uniquement quand ce modèle est actif. Toutes les règles sont préfixées .tlf2 pour ne rien changer ailleurs.
 * Couleurs : --tlf2-bg / --tlf2-text (couleurs du footer du Theme Builder), --main-color, --tlf2-bar (barre du bas).
 */
.tlf2 {
  --tlf2-accent: var(--main-color, #E16923);
  --tlf2-accent-light: color-mix(in srgb, var(--tlf2-accent) 60%, #fff);
  --tlf2-line: color-mix(in srgb, var(--tlf2-text) 12%, transparent);
  --tlf2-soft: color-mix(in srgb, var(--tlf2-text) 7%, transparent);
  /* Textes et liens : gris fixe du modèle (maquette), quelle que soit la couleur du texte du footer choisie dans le
     Theme Builder (elle reste utilisée pour les titres et le survol). !important : style.css impose
     « footer { color: var(--footer-text-color) !important } » à tous les footers. */
  --tlf2-muted: #B9B9C2;
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding: 0; /* style.css ajoute « footer { padding-top: 40px } » : l'espacement vient du bandeau du haut */
  background: var(--tlf2-bg) !important;
  color: var(--tlf2-muted) !important;
  font-size: 14px;
  line-height: 1.55;
}
.tlf2 *, .tlf2 *::before, .tlf2 *::after { box-sizing: border-box; }
.tlf2 a { color: inherit; text-decoration: none; transition: color .15s; }
.tlf2 a:hover { color: var(--tlf2-text); }
.tlf2 p { margin: 0; }
.tlf2 svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tlf2 svg .f { fill: currentColor; stroke: none; }
.tlf2 .tlf2-pay svg { stroke: none; }
.tlf2-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tlf2 :focus-visible { outline: 3px solid var(--tlf2-accent); outline-offset: 2px; border-radius: 8px; }

/* ── Bandeau du haut : newsletter | conseiller ── */
.tlf2-top { display: grid; grid-template-columns: 1.2fr 1fr; border-bottom: 1px solid var(--tlf2-line); }
.tlf2-top--single { grid-template-columns: 1fr; }
.tlf2-news, .tlf2-help { padding-block: 48px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.tlf2-top:not(.tlf2-top--single) .tlf2-news { padding-inline-end: 48px; border-inline-end: 1px solid var(--tlf2-line); }
.tlf2-top:not(.tlf2-top--single) .tlf2-help { padding-inline-start: 48px; }
.tlf2-kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tlf2-accent); }
.tlf2 .tlf2-h3 { margin: 0; color: var(--tlf2-text); font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
/* Fin du titre newsletter (« en avant-première ») : italique, orange clair dérivé de la couleur principale.
   !important sur la police : builder.css (« body * ») et tl-sections.css (police du texte du Theme Builder,
   « :where(body.tl-tb-font-body) :is(*) ») imposent leur police à tout le site avec !important. */
.tlf2 .tlf2-accent {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif !important; font-style: italic; font-weight: 400;
  font-size: 1.12em; letter-spacing: 0; color: color-mix(in srgb, var(--tlf2-accent) 78%, #fff);
}
.tlf2-form {
  display: flex; gap: 6px; max-width: 520px; margin-top: 4px; padding: 5px;
  background: var(--tlf2-soft); border: 1px solid var(--tlf2-line); border-radius: 999px;
}
.tlf2 .tlf2-form input {
  flex: 1; min-width: 0; height: auto; margin: 0; padding: 0 16px; border: 0; outline: none; box-shadow: none;
  background: transparent; color: var(--tlf2-text); font: inherit; font-size: 15px;
}
.tlf2 .tlf2-form input::placeholder { color: #8A8A94 !important; opacity: 1; }
.tlf2 .tlf2-form button {
  border: 0; border-radius: 999px; padding: 12px 22px; cursor: pointer; white-space: nowrap;
  background: var(--tlf2-accent); color: #fff; font: inherit; font-weight: 700; font-size: 14px;
  transition: filter .15s, transform .15s;
}
.tlf2 .tlf2-form button:hover { filter: brightness(.92); transform: translateY(-1px); }
.tlf2-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tlf2-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--tlf2-line); color: var(--tlf2-text) !important; font-size: 13.5px; font-weight: 600;
  transition: border-color .15s, background .15s;
}
.tlf2-chip:hover { border-color: var(--tlf2-accent); background: color-mix(in srgb, var(--tlf2-accent) 12%, transparent); }
.tlf2-chip svg { width: 16px; height: 16px; flex: none; color: var(--tlf2-accent); }

/* ── Colonnes ── */
.tlf2-main {
  display: grid; gap: 32px; padding-block: 48px;
  grid-template-columns: minmax(0, 1.6fr) repeat(var(--tlf2-menu-cols, 3), minmax(0, 1fr));
}
.tlf2-brand { display: grid; gap: 16px; align-content: start; min-width: 0; }
.tlf2-logo { justify-self: start; display: inline-flex; background: #fff; border-radius: 12px; padding: 8px 12px; }
.tlf2-logo img { height: 38px; width: auto; max-width: 180px; object-fit: contain; display: block; }
.tlf2-name { color: var(--tlf2-text); font-weight: 800; font-size: 20px; }
.tlf2-brand-title { color: var(--tlf2-text); font-weight: 700; }
.tlf2-brand-text { max-width: 38ch; }
.tlf2-social { display: flex; flex-wrap: wrap; gap: 8px; }
.tlf2-social a {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--tlf2-soft); color: var(--tlf2-text) !important; transition: background .15s, transform .15s, color .15s;
}
.tlf2-social a:hover { background: var(--tlf2-accent); color: #fff !important; transform: translateY(-2px); }
.tlf2-social svg { width: 17px; height: 17px; }
.tlf2-col { display: grid; gap: 10px; align-content: start; min-width: 0; }
.tlf2 .tlf2-h4 { margin: 0 0 4px; color: var(--tlf2-text); font-size: 14px; font-weight: 700; }
.tlf2-line { display: flex; gap: 8px; align-items: flex-start; }
.tlf2-line svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--tlf2-accent); }
.tlf2-line span, .tlf2-line a { min-width: 0; overflow-wrap: anywhere; }

/* ── Barre du bas ── */
.tlf2-bottom { position: relative; z-index: 1; border-top: 1px solid var(--tlf2-line); }
.tlf2-bottom--bar { background: var(--tlf2-bar); border-top: 0; }
.tlf2-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 18px; font-size: 12.5px; }
.tlf2-copy { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tlf2-dot { opacity: .5; }
.tlf2-pay { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tlf2-pay li { width: 38px; height: 24px; background: #fff; border-radius: 5px; display: grid; place-items: center; }
.tlf2-pay svg { width: 32px; height: 20px; display: block; }
.tlf2-credit b { color: var(--tlf2-text); font-weight: 600; }

/* ── Nom de l'agence en grand ── */
.tlf2-word {
  /* ≈ 0,46 em par caractère : 200vw / nombre de caractères laisse une marge, plafonné à 13vw et 200px */
  font-weight: 800; font-size: min(200px, 13vw, calc(200vw / var(--tlf2-word-len, 15))); line-height: .8; letter-spacing: -.05em;
  white-space: nowrap; text-align: center; color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--tlf2-text) 14%, transparent);
  margin-top: 6px; margin-bottom: -.12em; user-select: none; pointer-events: none;
}

@media (max-width: 1080px) {
  .tlf2-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tlf2-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .tlf2-top { grid-template-columns: 1fr; }
  .tlf2-top:not(.tlf2-top--single) .tlf2-news { padding-inline-end: 0; border-inline-end: 0; border-bottom: 1px solid var(--tlf2-line); padding-bottom: 32px; }
  .tlf2-top:not(.tlf2-top--single) .tlf2-help { padding-inline-start: 0; padding-top: 32px; }
}
@media (max-width: 560px) {
  .tlf2-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tlf2-contact { grid-column: 1 / -1; } /* adresse et e-mail sur toute la largeur plutôt que coupés en deux */
  .tlf2-bottom-inner { flex-direction: column; align-items: flex-start; }
  .tlf2 .tlf2-form { flex-wrap: wrap; border-radius: 22px; }
  .tlf2 .tlf2-form input { padding: 10px 14px; }
  .tlf2 .tlf2-form button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .tlf2 *, .tlf2 *::before, .tlf2 *::after { transition: none !important; }
}
