/* ==========================================================
   Thotis : footer nouvelle DA (version C, blocs Gutenberg)
   À coller à la fin du CSS du site. Ne modifie aucune règle existante.
   Bas droite laissé libre pour le widget Complianz
   (« Gérer le consentement ») et la flèche de retour en haut.
   ========================================================== */
.wp-block-group.tto-footer{
  --ttf-navy:var(--tto-navy,#010539);
  --ttf-blue:var(--tto-blue,#5062FC);
  --ttf-orange:var(--tto-orange,#FF8111);
  --ttf-cyan:var(--tto-cyan,#14B4C8);
  --ttf-text:#C9CCEB;
  --ttf-dim:#8D92C4;
  --ttf-line:rgba(255,255,255,.12);
  background:var(--ttf-navy);
  color:var(--ttf-text);
  font-family:"Poppins",Arial,sans-serif;
  font-size:14px;line-height:1.55;
  padding:40px 40px 0;
  margin:0;
  box-sizing:border-box;
}
.wp-block-group.tto-footer *{box-sizing:border-box}
.wp-block-group.tto-footer > *{max-width:1240px;margin-left:auto !important;margin-right:auto !important}
.wp-block-group.tto-footer p{margin:0;font-style:normal}
.wp-block-group.tto-footer a{color:var(--ttf-text) !important;text-decoration:none !important;font-weight:400 !important;font-style:normal}
.wp-block-group.tto-footer a:hover,
.wp-block-group.tto-footer a:focus-visible{color:#fff !important;text-decoration:underline !important;text-underline-offset:3px}
.wp-block-group.tto-footer a:focus-visible{outline:2px solid var(--ttf-orange);outline-offset:2px;border-radius:4px}

/* Grille : marque + 4 colonnes */
.wp-block-group.tto-footer .wp-block-columns.tto-footer-grid{display:grid !important;grid-template-columns:1.35fr repeat(4,minmax(0,1fr));gap:32px;margin-top:0 !important;margin-bottom:0}
.wp-block-group.tto-footer .tto-footer-grid > .wp-block-column{min-width:0;margin:0 !important}

/* Bloc marque */
.wp-block-group.tto-footer .tto-footer-logo{display:inline-block;line-height:0}
.wp-block-group.tto-footer .tto-footer-logo img{height:36px;width:auto;max-width:100%}
.wp-block-group.tto-footer p.tto-footer-baseline{margin:14px 0 18px;max-width:30ch}
.wp-block-group.tto-footer p.tto-footer-btns{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.wp-block-group.tto-footer p.tto-footer-btns a{display:inline-flex;align-items:center;gap:8px;font-weight:600 !important;font-size:14px;border-radius:14px;padding:11px 18px;white-space:nowrap;color:#fff !important;text-decoration:none !important;border:1.5px solid rgba(255,255,255,.4)}
.wp-block-group.tto-footer p.tto-footer-btns a::after{content:"\2192"}
.wp-block-group.tto-footer p.tto-footer-btns a:first-child{background:var(--ttf-blue);border-color:var(--ttf-blue)}
.wp-block-group.tto-footer p.tto-footer-btns a:hover{filter:brightness(1.08)}

/* Titres de colonnes avec pastille de couleur */
.wp-block-group.tto-footer p.tto-footer-title{display:flex;align-items:center;gap:8px;margin:0 0 12px;font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#fff}
.wp-block-group.tto-footer p.tto-footer-title::before{content:"";width:8px;height:8px;border-radius:50%;flex:none;background:#fff}
.wp-block-group.tto-footer p.tto-footer-title--blue::before{background:var(--ttf-blue)}
.wp-block-group.tto-footer p.tto-footer-title--orange::before{background:var(--ttf-orange)}
.wp-block-group.tto-footer p.tto-footer-title--cyan::before{background:var(--ttf-cyan)}
.wp-block-group.tto-footer p.tto-footer-title a{color:#fff !important;font-weight:700 !important}

/* Listes de liens (un lien par ligne, retours à la ligne masqués) */
.wp-block-group.tto-footer p.tto-footer-links{display:flex;flex-direction:column;gap:9px;line-height:1.4}
.wp-block-group.tto-footer p.tto-footer-links br{display:none}

/* Actualités en pastilles */
.wp-block-group.tto-footer p.tto-footer-news{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:36px !important;padding-top:22px;border-top:1px solid var(--ttf-line)}
.wp-block-group.tto-footer p.tto-footer-news::before{content:"Actualités";font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--ttf-dim);margin-right:8px}
.wp-block-group.tto-footer p.tto-footer-news a{display:inline-block;border:1px solid var(--ttf-line);background:rgba(255,255,255,.04);border-radius:999px;padding:6px 14px;font-size:13px;line-height:1.4;color:#fff !important}
.wp-block-group.tto-footer p.tto-footer-news a:hover{text-decoration:none !important;border-color:var(--ttf-blue);background:rgba(80,98,252,.18)}

/* Ligne légale : à gauche, zone bas droite réservée au widget cookies */
.wp-block-group.tto-footer p.tto-footer-legal{display:flex;flex-wrap:wrap;align-items:center;gap:6px 20px;margin-top:24px !important;padding:18px 330px 24px 0;min-height:76px;border-top:1px solid var(--ttf-line);font-size:12.5px;color:var(--ttf-dim)}
.wp-block-group.tto-footer p.tto-footer-legal a{color:var(--ttf-dim) !important}

/* Tablette */
@media (max-width:1024px){
  .wp-block-group.tto-footer .wp-block-columns.tto-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .wp-block-group.tto-footer .tto-footer-brand{grid-column:1/-1}
  .wp-block-group.tto-footer p.tto-footer-btns{flex-direction:row;flex-wrap:wrap}
}
/* Mobile : 2 colonnes de liens, widget cookies sous la ligne légale */
@media (max-width:767px){
  .wp-block-group.tto-footer{padding:32px 20px 0}
  .wp-block-group.tto-footer .wp-block-columns.tto-footer-grid{gap:28px 20px}
  .wp-block-group.tto-footer p.tto-footer-btns a{flex:1;justify-content:center}
  .wp-block-group.tto-footer p.tto-footer-news{margin-top:28px !important}
  .wp-block-group.tto-footer p.tto-footer-news::before{flex-basis:100%}
  .wp-block-group.tto-footer p.tto-footer-legal{flex-direction:column;align-items:flex-start;padding:18px 0 96px;min-height:0}
}
@media (max-width:359px){
  .wp-block-group.tto-footer .wp-block-columns.tto-footer-grid{grid-template-columns:minmax(0,1fr)}
}