/* DFB — styles des intégrations communes (formulaires, captcha, cookies).
   Autonome : ne dépend ni de Tailwind ni des feuilles propres à chaque page. */

/* Piège anti-robot : invisible pour les humains et les lecteurs d'écran. */
.dfb-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.dfb-captcha { min-height: 78px; margin: 8px 0; }

.dfb-form-status { margin: 12px 0 0; font-size: 14px; line-height: 1.5; }
.dfb-form-status:empty { display: none; }
.dfb-form-error { color: #d93025; }
form[data-theme="dark"] .dfb-form-error { color: #ff8a80; }

form[data-dfb-form] button[disabled] { opacity: .6; cursor: not-allowed; }

/* Panneau de confirmation après envoi. */
.dfb-success { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 320px; padding: 32px 16px; outline: none; scroll-margin-top: 140px; animation: dfb-pop .45s cubic-bezier(.16,1,.3,1); }
.dfb-success-icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 24px; border-radius: 999px; background: #E8CF47; color: #061A2C; font-size: 30px; font-weight: 700; }
.dfb-success-title { margin: 0 0 8px; font-family: "Hanken Grotesk", Inter, system-ui, sans-serif; font-size: 28px; font-weight: 700; line-height: 1.2; }
.dfb-success-text { max-width: 26rem; margin: 0; opacity: .75; line-height: 1.6; }
.dfb-success-again { margin-top: 28px; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: #41636d; cursor: pointer; }
.dfb-success-again:hover { text-decoration: underline; }
.dfb-success--dark { color: #fff; }
.dfb-success--dark .dfb-success-again { color: #E8CF47; }
.dfb-success--light { color: #061A2C; }

.dfb-inline-success { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; color: inherit; }

@keyframes dfb-pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

/* Bandeau de consentement cookies. */
.dfb-cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147483000; padding: 0 16px 16px; transform: translateY(120%); opacity: 0; transition: transform .5s cubic-bezier(.16,1,.3,1), opacity .5s; pointer-events: none; }
.dfb-cookie.is-visible { transform: none; opacity: 1; pointer-events: auto; }
.dfb-cookie-inner { display: flex; flex-direction: column; gap: 20px; max-width: 1280px; margin: 0 auto; padding: 24px; border: 1px solid rgba(255,255,255,.1); background: rgba(2,8,13,.96); box-shadow: 0 20px 50px rgba(0,0,0,.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-family: Inter, system-ui, sans-serif; }
.dfb-cookie-text { max-width: 42rem; margin: 0; font-size: 15px; line-height: 1.6; color: rgba(225,227,228,.85); }
.dfb-cookie-text a { color: #E8CF47; text-decoration: underline; text-underline-offset: 2px; }
.dfb-cookie-text a:hover { color: #fff; }
.dfb-cookie-actions { display: flex; flex-shrink: 0; gap: 12px; }
.dfb-cookie-btn { padding: 12px 24px; border: 1px solid transparent; font: 600 12px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.dfb-cookie-btn--ghost { border-color: rgba(255,255,255,.2); background: transparent; color: #fff; }
.dfb-cookie-btn--ghost:hover { border-color: rgba(255,255,255,.5); }
.dfb-cookie-btn--primary { background: #E8CF47; color: #061A2C; }
.dfb-cookie-btn--primary:hover { background: #fff; }
.dfb-cookie-btn:focus-visible, .dfb-success-again:focus-visible { outline: 2px solid #E8CF47; outline-offset: 2px; }
@media (min-width: 768px) {
  .dfb-cookie { padding: 0 32px 16px; }
  .dfb-cookie-inner { flex-direction: row; align-items: center; justify-content: space-between; padding: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .dfb-cookie, .dfb-success { transition: none; animation: none; }
}

/* Bandeau défilant « Ils nous font confiance » (accueil). */
.dfb-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.dfb-marquee-track { display: inline-flex; flex-wrap: nowrap; padding-right: 4rem; animation: dfb-marquee var(--dfb-marquee-duration, 60s) linear infinite; }
.dfb-marquee:hover .dfb-marquee-track { animation-play-state: paused; }
@keyframes dfb-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .dfb-marquee-track { animation: none; flex-wrap: wrap; padding-right: 0; } .dfb-marquee-track [aria-hidden="true"] { display: none; } .dfb-marquee { -webkit-mask-image: none; mask-image: none; } }
