/* ==========================================================================
   Pied de page, design v3 (maquette « footer », 2e version) : inc/footer-v3.php, sur toutes les pages.
   1. Feuille blanche aux coins bas arrondis : l'appel à l'action (audit offert, garanties, agents en 3D).
   2. Pied de page sombre : logo, phrase, réseaux, résumé par l'IA, pages légales ; plan du site en quatre
      colonnes ; grand logo en filigrane tout en bas.
   ========================================================================== */

/* .ft3-wrap : conteneur propre au pied de page. La révélation (position sticky) ne peut pas sortir de lui : sans lui,
   sur les gabarits où le pied est rendu dans le même bloc que la page, le pied remontait par-dessus le contenu. */
.ft3-wrap { position: relative; clip-path: inset(0); }
.ft3-pre,
.ft3 { --ft3-ease: cubic-bezier(.16, 1, .3, 1); --ft3-pad: max(40px, calc((100% - 1312px) / 2)); }
:is(.ft3-pre, .ft3) a { text-decoration: none; }
:is(.ft3-pre, .ft3) :is(p, ul, h2) { margin: 0; }

/* ----- 1. Appel à l'action, sur la feuille blanche ----- */
.ft3-pre { position: relative; z-index: 2; padding: 24px; border-radius: 0 0 6px 6px; background: var(--surface, #fff); }
.ft3-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  overflow: hidden;
  padding: 0 var(--ft3-pad);
  border-radius: 6px;
  background: linear-gradient(180deg, #f6d59a, #f9e8c5);
}
.ft3-cx { position: relative; z-index: 1; align-self: center; padding: 64px 0; }
.ft3-pre h2.ft3-t { margin: 0 0 16px; font-family: var(--display) !important; font-size: var(--fs-h2, 40px) !important; font-weight: 400 !important; line-height: 1.1 !important; letter-spacing: -0.02em !important; color: var(--ink); }
.ft3-t em { display: block; font-style: normal; color: rgb(0 0 0 / .42); }
.ft3-pre .ft3-p { max-width: 52ch; margin: 0 0 32px; font-size: var(--fs-body, 16px); line-height: 1.5; letter-spacing: -0.02em; color: rgb(0 0 0 / .7); }
.ft3-act { display: flex; flex-wrap: wrap; gap: 8px; }
.ft3-pre .ft3-btn {
  box-sizing: border-box; /* largeur 100 % sur téléphone : marge et bordure comprises */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgb(0 0 0 / .14);
  border-radius: 2px;
  background: #fff;
  font-size: var(--fs-body, 16px);
  letter-spacing: -0.02em;
  color: var(--ink) !important;
  transition: background-color .3s var(--ft3-ease), color .3s var(--ft3-ease);
}
.ft3-pre .ft3-btn--dark { border-color: #1a1a1a; background: #1a1a1a; color: #fff !important; }
@media (hover: hover) { .ft3-pre .ft3-btn:hover { border-color: #1a1a1a; background: #1a1a1a; color: #fff !important; } }
@media (hover: hover) { .ft3-pre .ft3-btn--dark:hover { background: #333; } }
.ft3-tr { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 24px 0 0 !important; padding: 0; list-style: none; font-size: var(--fs-sm, 14px); color: rgb(26 26 26 / .72); }
.ft3-tr li {
  padding-left: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.5l3 3 6-7' stroke='%233d5a45' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 0 50% / 14px no-repeat;
}
/* Les agents en 3D, coupés par le bas de la carte */
.ft3-crew { position: relative; display: flex; align-items: flex-start; justify-content: center; align-self: start; height: 520px; margin: 56px 0 -999px; min-width: 0; pointer-events: none; }
.ft3-crew img { display: block; flex: none; width: auto; height: 100%; max-width: none; margin-left: -80px; }
.ft3-crew img:first-child { margin-left: 0; }
.ft3-crew img:nth-child(4) { display: none; }

/* ----- 2. Pied de page sombre ----- */
.ft3 { position: relative; z-index: 1; overflow: hidden; margin-top: -8px; padding-top: 8px; background: #1a1a1a; color: #fff; }
.ft3 a { color: inherit !important; }
/* (!important : la règle globale des liens du thème, a:not(…):not(…):not(…), passe sinon avant.) */
.ft3-in { padding: 120px var(--ft3-pad) 0; }
.ft3-main { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.ft3-l { display: flex; flex-direction: column; align-items: flex-start; }
.ft3 .ft3-mark { display: block; width: 88px; margin: 0 0 40px; color: #fff !important; line-height: 0; }
.ft3-mark svg, .ft3-big svg { display: block; width: 100%; height: auto; }
.ft3 .ft3-base { font-family: var(--display); font-size: var(--fs-h2, 40px); font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; color: #fff; }
.ft3 .agentsia-social-links { display: flex; gap: 24px; margin: 48px 0 0; padding: 0; list-style: none; }
.ft3 .agentsia-social-links li { margin: 0; }
.ft3 .agentsia-social-links a { display: block; color: rgb(255 255 255 / .6) !important; opacity: 1; transition: color .3s; }
@media (hover: hover) { .ft3 .agentsia-social-links a:hover { color: #fff !important; } }
.ft3 .agentsia-social-links svg { display: block; width: 20px; height: 20px; }
/* Résumé par l'IA : pastilles claires sur le fond sombre */
.ft3 .agentsia-ai-summary { margin-top: 32px; }
.ft3 .agentsia-ai-summary-title { margin: 0 0 10px; font-size: var(--fs-xs, 12px); color: rgb(255 255 255 / .5); }
.ft3 .agentsia-ai-summary-links a { border-color: rgb(255 255 255 / .12); background: rgb(255 255 255 / .92); }
.ft3-r { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: auto; padding-top: 56px; }
.ft3-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 0; list-style: none; }
.ft3-legal li { white-space: nowrap; }
.ft3 :is(.ft3-legal a, .ft3-copy) { font-size: var(--fs-sm, 14px); letter-spacing: -0.02em; color: rgb(255 255 255 / .5) !important; transition: color .3s; }
@media (hover: hover) { .ft3 .ft3-legal a:hover { color: #fff !important; } }

.ft3-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; align-items: start; }
.ft3 h2.ft3-h { margin: 0 0 40px; font-family: inherit !important; font-size: var(--fs-kicker, 10px) !important; font-weight: 700 !important; line-height: 1.4; letter-spacing: .02em !important; text-transform: uppercase; color: rgb(255 255 255 / .5); min-height: 2.8em; }
.ft3-col ul { padding: 0; list-style: none; }
.ft3-col li + li { margin-top: 22px; }
.ft3-col :is(a, span) { font-size: var(--fs-body, 16px); letter-spacing: -0.02em; }
.ft3-col span { color: rgb(255 255 255 / .45); }
.ft3-col a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ft3-ease); }
 .ft3-col a:focus-visible { background-size: 100% 1px; }
@media (hover: hover) { .ft3-col a:hover { background-size: 100% 1px; } }

/* Révélation au défilement (assets/js/footer-v3.js) : le pied sombre reste collé derrière la feuille blanche,
   qui glisse vers le haut et le découvre. --ft3-stick = 0 si le pied tient dans l'écran, négatif sinon. */
@media (min-width: 761px) {
  .ft3.ft3--rv { position: sticky; bottom: var(--ft3-stick, 0px); }
}

/* Le grand logo en filigrane, coupé par le bas (la mention « Propulsé par scuad.ai » au-dessus a été retirée en 3.0.70) */
.ft3-big { width: 100%; margin: 120px 0 -9%; color: #2a2a2a; line-height: 0; pointer-events: none; }
/* Clin d'œil au survol du grand logo (assets/js/footer-v3.js) : un agent sort du bas sous la souris, puis redescend. */
.ft3-pop { position: absolute; z-index: 3; bottom: 0; width: auto; height: 260px; max-width: none; translate: -50% 100%; rotate: -8deg; transform-origin: 50% 100%; pointer-events: none; transition: translate .35s cubic-bezier(.4, 0, .2, 1), rotate .35s ease; }
.ft3-pop.on { translate: -50% 30%; rotate: 0deg; transition: translate .3s cubic-bezier(.2, .7, .3, 1), rotate .3s ease; }
@media (max-width: 760px) { .ft3-pop { display: none; } }

/* ----- Tablette et téléphone ----- */
@media (max-width: 1024px) {
  .ft3-pre { padding: 16px; }
  .ft3-cta { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 40px; }
  .ft3-cx { padding: 56px 0 0; }
  .ft3-crew { height: 340px; margin: 24px 0 -40px; }
  .ft3-in { padding: 80px 24px 0; }
  .ft3-main { grid-template-columns: minmax(0, 1fr); }
  .ft3-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft3-col:nth-child(n+3) .ft3-h { margin-top: 32px; }
}
@media (max-width: 760px) {
  .ft3-pre { padding: 8px; }
  .ft3-cta { padding: 0 20px; }
  .ft3-cx { padding: 40px 0 0; }
  .ft3-crew { height: 240px; }
  .ft3-pre h2.ft3-t { font-size: 30px !important; }
  .ft3-act { flex-direction: column; }
  .ft3-pre .ft3-btn { width: 100%; }
  .ft3-in { padding: 64px 12px 0; }
  .ft3 .ft3-base { font-size: 30px; }
  .ft3-nav { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ft3 h2.ft3-h { min-height: 0; margin-bottom: 20px; }
  .ft3-col:nth-child(n+3) .ft3-h { margin-top: 0; }
  .ft3-col li + li { margin-top: 14px; }
}
