/* Thème Space Studio 2026 : bandeau cookies, retour d'erreur des formulaires, gabarit de secours (10/11/2026) */
.ss26-cookies { position: fixed; z-index: 9999; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: 0 auto; padding: 16px 18px; border-radius: 14px; background: #fff; color: #00104a; box-shadow: 0 10px 40px rgba(0, 16, 74, .22); font-size: 14px; line-height: 1.5; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.ss26-cookies[hidden] { display: none; }
.ss26-cookies p { margin: 0; flex: 1 1 280px; }
.ss26-cookies a { color: inherit; text-decoration: underline; }
.ss26-cookies__boutons { display: flex; gap: 10px; flex: 0 0 auto; }
.ss26-cookies button { font: inherit; font-weight: 600; cursor: pointer; border-radius: 999px; padding: 9px 18px; border: 2px solid #00104a; background: #fff; color: #00104a; width: auto; }
.ss26-cookies .ss26-cookies__oui { background: #00104a; color: #fff; }
.ss26-cookies button:focus-visible { outline: 3px solid #f39200; outline-offset: 2px; }
.formulaire.a-erreur .formulaire__retour { display: block; background: rgba(230, 70, 40, .12); }
.ss26-secours .ss26-contenu { padding: 140px 0 60px; }
@media (max-width: 480px) { .ss26-cookies { left: 10px; right: 10px; bottom: 10px; } }

/* 10/11 (Simon) : envoi des formulaires : petit chargement, coche animée, remerciement signé (sobre, accessible, mouvement réduit respecté) */
.formulaire { position: relative; }
.formulaire.est-en-cours [type="submit"] { position: relative; padding-right: 52px; cursor: progress; opacity: .92; }
.formulaire.est-en-cours [type="submit"]::after { content: ""; position: absolute; right: 18px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: ss26-tourne .7s linear infinite; }
.formulaire.est-en-cours input, .formulaire.est-en-cours textarea { opacity: .6; transition: opacity .3s; }
.ss26-merci { display: none; }
.ss26-merci:focus { outline: none; }
.formulaire.est-envoye { display: flex !important; align-items: center; justify-content: center; }
.formulaire.est-envoye > :not(.ss26-merci) { display: none !important; }
.formulaire.est-envoye .ss26-merci { display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 420px; padding: 34px 26px; text-align: center; color: #00104a; animation: ss26-apparait .45s ease-out both; }
.ss26-merci__coche { width: 64px; height: 64px; margin-bottom: 12px; }
.ss26-merci__coche circle { fill: rgba(37, 211, 102, .12); stroke: #22b25a; stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; animation: ss26-trace .6s .1s ease-out forwards; }
.ss26-merci__coche path { fill: none; stroke: #22b25a; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; animation: ss26-trace .35s .6s ease-out forwards; }
.ss26-merci__texte { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.5; }
.ss26-merci__signature { margin: 4px 0 0; font-size: 17px; font-style: italic; font-weight: 500; color: #ed6b15; }
@keyframes ss26-tourne { to { transform: rotate(360deg); } }
@keyframes ss26-trace { to { stroke-dashoffset: 0; } }
@keyframes ss26-apparait { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .formulaire.est-en-cours [type="submit"]::after { animation-duration: 1.6s; }
  .formulaire.est-envoye .ss26-merci, .ss26-merci__coche circle, .ss26-merci__coche path { animation: none; stroke-dashoffset: 0; }
}
