/* Site footer "Appel + colonnes" (from site/_mockup/footer). Markup: blocks/footer/render.php. */

.tth-f {
  --navy: #183B56; --red: #D9230F; --red-accent: #F22811; --red-h: #B81C0B; --logo-red: #E72F25;
  background: var(--navy); color: rgba(255, 255, 255, .78);
  font-family: "Montserrat", system-ui, sans-serif; font-size: 14.5px; line-height: 1.6;
}
/* The call card sits half over the footer's top edge. The 90px above the footer belongs to the page's
   last section, so it takes that section's background instead of a white band: the outermost element
   that paints the page bottom gets a transparent bottom border (its background shows through). */
.tth-main > :last-child:not(.tth-sections), .tth-sections > :last-child:not(.tth-pg), .tth-pg > :last-child { border-bottom: 90px solid transparent; }
.tth-f *, .tth-f *::before, .tth-f *::after { box-sizing: border-box; }
.tth-f a { color: inherit; text-decoration: none; }
.tth-f__wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

.tth-f__cta {
  position: relative; top: -60px; margin-bottom: -20px; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  padding: 40px 44px; border-radius: 24px; background: var(--red); box-shadow: 0 20px 50px rgba(231, 47, 37, .3);
}
.tth-f__cta::before { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .13); }
.tth-f .tth-f__cta-title { position: relative; margin: 0; color: #fff; font-family: inherit; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; font-weight: 800; }
.tth-f .tth-f__cta-text { position: relative; margin: 8px 0 0; color: #fff; font-family: inherit; }
.tth-f__btns { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }
.tth-f .tth-f__don {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
  background: #fff; color: var(--red); font-size: 15px; font-weight: 700; transition: background .2s, transform .2s;
}
.tth-f .tth-f__don:hover, .tth-f .tth-f__don:focus-visible { background: #FFF1EF; color: var(--red); transform: translateY(-1px); }
.tth-f .tth-f__vol {
  display: inline-flex; padding: 12px 20px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .8);
  color: #fff; font-size: 15px; font-weight: 700; transition: background .2s, color .2s;
}
.tth-f .tth-f__vol:hover, .tth-f .tth-f__vol:focus-visible { background: #fff; color: var(--navy); }

/* Newsletter line (option F1): between the call card and the link columns */
.tth-f__nl { display: grid; grid-template-columns: 1fr minmax(0, 460px); gap: 40px; align-items: center; margin-bottom: 40px; padding: 4px 0 32px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.tth-f .tth-f__nl-title { margin: 0; color: #fff; font-family: inherit; font-size: 19px; line-height: 1.3; font-weight: 800; }
.tth-f .tth-f__nl-text { margin: 4px 0 0; font: 14px/1.5 "Inter", system-ui, sans-serif; }
.tth-f__nl-form input[type="email"] { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1.5px solid rgba(255, 255, 255, .28); border-radius: 8px; background: rgba(255, 255, 255, .08); color: #fff; font: 15px "Inter", system-ui, sans-serif; }
.tth-f__nl-form input[type="email"]::placeholder { color: rgba(255, 255, 255, .6); }
.tth-f__nl-form input[type="email"]:focus { border-color: #fff; outline: none; }
.tth-f__nl-form :is(button, input[type="submit"]) { height: 46px; padding: 0 20px; border: 0; border-radius: 8px; background: var(--red); color: #fff; font: 700 14px "Montserrat", system-ui, sans-serif; cursor: pointer; transition: background .2s; }
.tth-f__nl-form :is(button, input[type="submit"]):is(:hover, :focus-visible) { background: var(--red-h); }

.tth-f__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 48px; }
.tth-f__logo { display: block; height: 96px; width: auto; margin: -14px 0 -10px -10px; }
.tth-f .tth-f__mission { margin: 18px 0 0; max-width: 340px; color: rgba(255, 255, 255, .78); font-family: inherit; }
.tth-f__soc { display: flex; gap: 10px; margin-top: 20px; }
.tth-f .tth-f__soc a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff; transition: background .2s, transform .2s; }
.tth-f .tth-f__soc a:hover, .tth-f .tth-f__soc a:focus-visible { background: var(--red); transform: translateY(-2px); }
.tth-f__soc svg { width: 18px; height: 18px; }
.tth-f .tth-f__h { margin: 17px 0 33px; line-height: 1.3; color: #fff; font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.tth-f ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tth-f ul a { transition: color .2s; }
.tth-f ul a:hover, .tth-f ul a:focus-visible { color: #fff; }
.tth-f__ci { display: flex; gap: 10px; align-items: flex-start; }
.tth-f__ci svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: #FF8C7D; }
.tth-f__legal {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 48px; padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .55); font-size: 13px;
}
.tth-f__legal nav { display: flex; flex-wrap: wrap; gap: 20px; }
.tth-f__legal a:hover { color: #fff; }
.tth-f :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 960px) {
  .tth-f__grid { grid-template-columns: 1fr 1fr; }
  .tth-f__cta { grid-template-columns: 1fr; padding: 32px 28px; }
  .tth-f__nl { grid-template-columns: 1fr; gap: 16px; }
}
/* Phone: buttons stacked full width; the two link lists side by side, brand and contact full width */
@media (max-width: 560px) {
  .tth-f__wrap { padding: 0 20px; }
  .tth-main > :last-child:not(.tth-sections), .tth-sections > :last-child:not(.tth-pg), .tth-pg > :last-child { border-bottom-width: 48px; }
  .tth-f__cta { top: -48px; margin-bottom: -28px; padding: 28px 22px; gap: 20px; }
  .tth-f__btns { flex-direction: column; }
  .tth-f__btns > a { justify-content: center; white-space: nowrap; }
  .tth-f__nl { margin-bottom: 28px; padding-bottom: 24px; }
  .tth-f__grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .tth-f__grid > :first-child, .tth-f__grid > :last-child { grid-column: 1 / -1; }
  .tth-f__logo { height: 76px; }
  .tth-f .tth-f__mission { margin-top: 12px; }
  .tth-f__soc { margin-top: 16px; }
  .tth-f .tth-f__h { margin: 0 0 14px; }
  .tth-f ul { gap: 8px; font-size: 14px; }
  .tth-f__legal { margin-top: 32px; }
}

/* Newsletter form (Brevo plugin form, or the preview on local / staging copies): one row, e-mail field + button,
   Brevo's messages below. Shared by the footer line and the Actualité card; colours set by each. */
.tth-nl form, .tth-nl [class^="sib_signup_box_inside"] { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.tth-nl .sib_signup_form { display: block; }
.tth-nl [class^="sib_signup_box_inside"] { width: 100%; }
.tth-nl [class^="sib_signup_box_inside"] > p { margin: 0; }
.tth-nl form > input[type="email"], .tth-nl .sib-email-area:is(p) { flex: 1; min-width: 0; }
.tth-nl .sib-email-area input { width: 100%; }
.tth-nl .sib_msg_disp { order: 3; flex-basis: 100%; }
.tth-nl .sib_msg_disp:not(:has(*)) { display: none; }
/* Brevo prints its own message styles with an id selector (form#sib_signup_form_N): !important keeps the site look */
.tth-nl .sib-alert-message { margin: 4px 0 0 !important; padding: 10px 12px !important; border: 0 !important; border-radius: 8px !important; font: 600 13.5px/1.5 "Inter", system-ui, sans-serif; }
.tth-nl .sib-alert-message-success { background: #E8F5EE !important; color: #1E6B45 !important; }
.tth-nl :is(.sib-alert-message-error, .sib-alert-message-warning) { background: #FDECEA !important; color: #8F1B0E !important; }
.tth-nl .sib_loader { position: absolute; }
.tth-nl .tth-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
