/* footer styles */
.site-footer { background: #0f0f10; color: #e6e6e6; position: relative; overflow: hidden; }
.footer-top-border { display: none; }
.site-footer a { color: #f4f4f4; text-decoration: none; }
.footer-col { padding: 8px 20px; border-right: 1px solid rgba(255,255,255,0.04); }
.footer-col:last-child { border-right: none; }
.footer-title { color: #fff; margin-top: 6px; margin-bottom: 6px; font-weight:700; }
.footer-desc { color: rgba(255,255,255,0.7); font-size: 14px; }
.footer-heading { color: #fff; font-size: 13px; letter-spacing:1px; border-bottom: 4px solid #c8102e; display:inline-block; padding-bottom:6px; margin-bottom:18px; }
.footer-links li { margin-bottom:12px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.75); font-size: 14px; transition: color 0.3s ease, transform 0.3s ease; }
.footer-links a:hover { color: #fff; transform: translateX(3px); }
.footer-link-arrow { color: #c8102e; font-weight: 700; font-size: 16px; line-height: 1; }
.footer-links-icon li { display: flex; align-items: flex-start; gap: 10px; color: rgba(255,255,255,0.75); font-size: 14px; line-height: 1.5; min-width: 0; }
/* L'adresse e-mail est un seul mot sans espace : sans ceci, elle ne peut
   pas revenir à la ligne et dépasse la colonne sur tablette/mobile. */
.footer-links-icon li > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.footer-links-icon a { align-items: flex-start; }
.footer-link-icon { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; color: #c8102e; flex-shrink: 0; margin-top: 2px; }
.footer-link-icon svg { width: 100%; height: 100%; }

/* Réseaux sociaux */
.footer-socials { display: flex; gap: 12px; }
.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #fff;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.footer-social-btn svg { width: 17px; height: 17px; }
.footer-social-btn img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.footer-social-btn:hover { background: #c8102e; color: #fff; transform: translateY(-3px); }

/* Carte "Besoin d'accompagnement ?" */
.help-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(200,16,46,0.05);
    border: 1px solid rgba(200,16,46,0.35);
    border-radius: 10px;
}
.help-box-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 1px solid rgba(200,16,46,0.5);
    color: #c8102e;
    flex-shrink: 0;
}
.help-box-icon svg { width: 20px; height: 20px; }
.help-box-content strong { display: block; color: #fff; font-size: 12px; letter-spacing: 0.5px; margin-bottom: 6px; }
.help-box-content p { color: rgba(255,255,255,0.6); font-size: 13px; line-height: 1.5; }
.help-box-link { display: inline-block; color: #c8102e; font-weight: 700; font-size: 12px; letter-spacing: 0.5px; text-transform: uppercase; transition: transform 0.3s ease, color 0.3s ease; }
.help-box-link:hover { color: #e30613; transform: translateX(3px); }

.footer-quote { color: #fff; font-size: clamp(1rem, 1.3vw, 1.125rem); font-style: italic; max-width:920px; margin: 0 auto 8px; line-height:1.6; }
.footer-quote-author { color:#c8102e; letter-spacing:2px; margin-top:10px; }

/* Bas de page */
.footer-bottom { font-size: 13px; color: rgba(255,255,255,0.6); gap: 10px; row-gap: 12px; }
.footer-brand-red { color: #c8102e; }
.footer-bottom-links a { color: rgba(255,255,255,0.6); transition: color 0.3s ease; }
.footer-bottom-links a:hover { color: #fff; }
.footer-bottom-sep { margin: 0 10px; opacity: 0.4; }
.footer-keywords { letter-spacing: 2px; font-size: 11px; color: rgba(255,255,255,0.5); }
.footer-keyword-sep { margin: 0 10px; color: #c8102e; }

/* Décor mosaïque de coin */
.footer-pixels {
    position: absolute;
    bottom: 0;
    width: 340px;
    height: 255px;
    pointer-events: none;
    z-index: 0;
}
.footer-pixels-left { left: 0; }
.footer-pixels-right { right: 0; transform: scaleX(-1); }
.footer-pixels svg { display: block; width: 100%; height: 100%; }

/* Vague lumineuse : chaque carré s'éteint puis se rallume, avec un délai
   croissant du haut vers le bas (voir footerPixelRects()) pour donner
   l'impression que l'extinction descend puis que la lumière remonte. */
.footer-pixel-rect {
    opacity: var(--base-opacity);
    animation: footerPixelPulse 3.6s ease-in-out infinite;
    transform-origin: center;
}

@keyframes footerPixelPulse {
    0%, 100% { opacity: var(--base-opacity); }
    50% { opacity: calc(var(--base-opacity) * 0.12); }
}

@media (prefers-reduced-motion: reduce) {
    .footer-pixel-rect { animation: none; }
}

.site-footer > .container { position: relative; z-index: 1; }

@media(max-width: 768px) {
  .footer-col { border-right: none; }
  .footer-pixels { width: 210px; height: 157px; opacity: 0.6; }
  .footer-bottom { justify-content: center; text-align: center; }
}
