/* ============================== */
/* ==== FOOTER PRINCIPAL ======= */
/* ============================== */
.pied-de-page {
  background: #f7faff;
  color: #22305a;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 1.04rem;
  margin-top: 2.5rem;
  box-shadow: 0 -2px 24px rgba(35, 97, 255, 0.04);
  border-radius: 0 0 18px 18px;
  padding-top: 2.5rem;
  position: relative;
  z-index: 5;
}
/* ============================== */
/* ==== CONTENEUR GRID ========= */
/* ============================== */

.footer-conteneur {
  max-width: 1250px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
  padding: 0 2.2rem 1.2rem 2.2rem;
}

/* ============================== */
/* ==== COLONNE 1 : LOGO + RESEAUX */
/* ============================== */

.logo-footer {
  display: flex;
  flex-direction: column;
}

.logo-texte-footer {
  font-size: 1.6rem;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
  margin-bottom: 0.7rem;
}

.logo-texte-footer .logo-primaire {
  color: #2ec4b6;
  font-weight: 900;
  font-size: 1.75rem;
}

.logo-texte-footer .logo-secondaire {
  color: #2361ff;
  font-weight: 900;
  font-size: 1.75rem;
}

.footer-baseline {
  font-size: 1.03rem;
  color: #3e4a67;
  margin-bottom: 1.7rem;
  line-height: 1.35;
}

.footer-reseaux {
  margin-top: 0.3rem;
}

.footer-reseaux .footer-titre {
  margin-bottom: 0.5rem;
}

.reseaux-icones {
  display: flex;
  gap: 1.2rem;
}

.reseaux-icones a {
  color: #22305a;
  font-size: 1.45rem;
  transition: color 0.14s;
}

.reseaux-icones a:hover,
.reseaux-icones a:focus-visible {
  color: #2361ff;
  outline: none;
}

/* ============================== */
/* ==== COLONNE 2 : LIENS LÉGAUX */
/* ============================== */

.footer-liens ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-liens a {
  color: #22305a;
  text-decoration: none;
  font-weight: 500;
  border-radius: 6px;
  padding: 0.2em 0.6em;
  transition: background 0.15s, color 0.12s;
}

.footer-liens a:hover,
.footer-liens a:focus-visible {
  background: #2361ff;
  color: #fff;
  outline: none;
}

/* ============================== */
/* ==== COLONNE 3 : CONTACT ==== */
/* ============================== */

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-titre {
  font-size: 1.08rem;
  font-weight: 700;
  color: #22305a;
  margin-top: 0.7rem;
  margin-bottom: 0.25rem;
}

.footer-contact address {
  font-style: normal;
}

.footer-contact a {
  color: #2ec4b6;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.45em;
  transition: color 0.14s;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: #2361ff;
  outline: none;
}

/* ============================== */
/* ==== BAS DE PAGE ============ */
/* ============================== */

.footer-bas {
  text-align: center;
  padding: 1.2rem 0 0.8rem 0;
  font-size: 0.98rem;
  color: #3e4a67;
  border-top: 1px solid #e7eaf3;
  margin-top: 2.2rem;
}

/* TrustPilot */
.pied-de-page .avis-clients{
  display: flex;
  flex-direction: column;
  gap: var(--tp-gap);
  min-width: min(260px,100%);
  padding: .75rem 1rem;
  border: 1px solid color-mix(in srgb, var(--qd-texte) 10%, transparent);
  border-radius: var(--qd-radius);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--qd-primaire) 6%, transparent),
    transparent 60%);
  box-shadow: var(--qd-ombre);
}
.pied-de-page .avis-clients .footer-titre{
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
  font-weight: 600;
  margin: 0;
  color: var(--qd-texte);
}

/* ------------------------------ Hôte widget ------------------------------- */
.trustpilot-widget{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  min-width: 180px;
  height: var(--tp-height); /* stabilise la mise en page */
  isolation: isolate;
}

/* Variantes de taille (ajouter la classe sur le conteneur #trustpilot-widget) */
.trustpilot-widget.tp-mini     { --tp-height: 28px;  width: min(100%, 260px); }
.trustpilot-widget.tp-badge    { --tp-height: 48px;  width: min(100%, 360px); }
.trustpilot-widget.tp-carousel { --tp-height: 160px; width: 100%; }

/* Lien fallback (visible si refus cookies, masqué pendant le chargement) */
.trustpilot-widget > a{
  font-size: .92rem;
  color: var(--qd-primaire);
  text-underline-offset: 2px;
  white-space: nowrap;
}
html.js .trustpilot-widget.tp--loading > a{ display: none; }
html.js .trustpilot-widget.tp--fallback > a{ display: inline; }

/* -------------------- Squelette (uniquement en .tp--loading) -------------- */
html.js .trustpilot-widget.tp--loading::before{
  content: "Chargement des avis…";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 0 .6rem;
  border-radius: calc(var(--qd-radius) - 8px);
  font-size: .85rem;
  color: var(--tp-muted);
  background: linear-gradient(90deg,
    rgba(255,255,255,.85) 0%,
    rgba(255,255,255,.6) 50%,
    rgba(255,255,255,.85) 100%);
  background-size: 180% 100%;
  animation: tp-shimmer 1.4s linear infinite;
}
/* Dès que Trustpilot injecte l’iframe, on retire le squelette */
.trustpilot-widget:has(iframe)::before{ content:none; }

@keyframes tp-shimmer { to { background-position: -80% 0; } }
@media (prefers-reduced-motion: reduce){
  html.js .trustpilot-widget.tp--loading::before{ animation: none; }
}

/* -------------------------------- Dark mode -------------------------------- */
.dark .avis-clients{
  border-color: color-mix(in srgb, var(--qd-texte-inv) 12%, transparent);
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--qd-primaire) 12%, transparent),
    transparent 60%);
  box-shadow: none;
}
.dark .avis-clients .footer-titre{ color: var(--qd-texte-inv); }
.dark .trustpilot-widget > a{
  color: color-mix(in srgb, var(--qd-texte-inv) 80%, var(--qd-primaire));
}
.dark html.js .trustpilot-widget.tp--loading::before{
  color: color-mix(in srgb, var(--qd-texte-inv) 65%, transparent);
  background: linear-gradient(90deg,
    rgba(0,0,0,.35) 0%,
    rgba(0,0,0,.2) 50%,
    rgba(0,0,0,.35) 100%);
}

/* ------------------------------ Responsive -------------------------------- */
@media (max-width: 1280px){
  .trustpilot-widget.tp-badge    { width: min(100%, 320px); }
  .trustpilot-widget.tp-carousel { --tp-height: 150px; }
}
@media (max-width: 1024px){
  .pied-de-page .avis-clients{ padding: .7rem .9rem; }
  .trustpilot-widget.tp-mini  { width: min(100%, 240px); }
}
@media (max-width: 768px){
  .pied-de-page .avis-clients{ gap: .5rem; }
  .trustpilot-widget{ width: 100%; }
  .trustpilot-widget.tp-mini { --tp-height: 30px; }
  .trustpilot-widget.tp-badge{ --tp-height: 52px; }
  .trustpilot-widget.tp-carousel{ --tp-height: 180px; }
}
@media (max-width: 480px){
  .trustpilot-widget > a{ font-size: 1rem; }
  .trustpilot-widget.tp-mini    { --tp-height: 32px; }
  .trustpilot-widget.tp-badge   { --tp-height: 56px; }
  .trustpilot-widget.tp-carousel{ --tp-height: 200px; }
}

/* -------------------------------- Impression ------------------------------ */
@media print{
  .avis-clients{ box-shadow:none; border-color:#bbb; background:none; }
  .trustpilot-widget iframe{ display:none !important; }
  .trustpilot-widget > a{ display:inline; }
}