/* ============================================================
   TOAC — thème enfant Customizr Pro v0.2
   Objectif :
   - même dégradé header/footer ;
   - modernisation ciblée ;
   - aucun changement sur le fond général ni les contenus.
   ============================================================ */

:root {
  --toac-blue-night: #0f172a;
  --toac-blue-deep: #1e3a8a;
  --toac-blue-main: #2563eb;
  --toac-violet: #7c3aed;
  --toac-white: #ffffff;
  --toac-soft-white: #dbeafe;
  --toac-glass: rgba(255, 255, 255, 0.14);
  --toac-shadow-band: 0 18px 55px rgba(15, 23, 42, 0.22);

  /* Dégradé unique partagé header + footer */
  --toac-band-gradient: linear-gradient(
    135deg,
    var(--toac-blue-night) 0%,
    var(--toac-blue-deep) 38%,
    var(--toac-blue-main) 70%,
    var(--toac-violet) 100%
  );
}

/* ============================================================
   EN-TÊTE — même CSS de bandeau que le footer
   ============================================================ */

.tc-header,
.site-header,
#masthead,
header.site-header,
header.tc-header {
  background: var(--toac-band-gradient) !important;
  color: var(--toac-white) !important;
  border-bottom: 1px solid rgba(255,255,255,0.18) !important;
  box-shadow: var(--toac-shadow-band);
}

/* Textes en-tête */
.tc-header,
.tc-header p,
.tc-header span,
.tc-header li,
.tc-header h1,
.tc-header h2,
.tc-header h3,
.site-header,
.site-header p,
.site-header span,
.site-header li,
.site-header h1,
.site-header h2,
.site-header h3,
#masthead,
#masthead p,
#masthead span,
#masthead li,
#masthead h1,
#masthead h2,
#masthead h3 {
  color: var(--toac-white) !important;
}

/* Logo */
.tc-header img,
.site-header img,
#masthead img {
  max-height: 92px;
  width: auto;
}

/* Titre / branding */
.site-title,
.site-title a,
.branding .site-title,
.branding .site-title a,
.navbar-brand,
.navbar-brand a {
  color: var(--toac-white) !important;
  font-weight: 900 !important;
  letter-spacing: -0.04em;
  text-decoration: none !important;
}

.site-description,
.branding .site-description,
.tc-tagline {
  color: var(--toac-soft-white) !important;
  font-weight: 650;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.navbar,
.navbar-inner,
.navbar-wrapper,
.navbar.resp,
.tc-header .navbar,
.primary-navbar,
.main-navigation,
.nav-menu,
.menu-main-menu-container {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Conteneur menu éventuel */
.tc-header .navbar-inner,
.tc-header .primary-navbar__wrapper,
.tc-header .nav-collapse,
.tc-header .menu-wrapper {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  backdrop-filter: blur(14px);
}

/* Liens menu */
.tc-header .navbar a,
.tc-header .nav a,
.tc-header .menu-item a,
.main-navigation a,
.nav-menu a,
.primary-navbar a {
  color: var(--toac-white) !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  transition: background-color .18s ease, transform .18s ease, color .18s ease;
}

.tc-header .navbar a:hover,
.tc-header .nav a:hover,
.tc-header .menu-item a:hover,
.main-navigation a:hover,
.nav-menu a:hover,
.primary-navbar a:hover {
  color: var(--toac-white) !important;
  background: var(--toac-glass) !important;
  transform: translateY(-1px);
}

.tc-header .current-menu-item > a,
.tc-header .current_page_item > a,
.current-menu-item > a,
.current_page_item > a {
  background: rgba(255,255,255,0.18) !important;
  color: var(--toac-white) !important;
}

/* Sous-menus */
.tc-header .dropdown-menu,
.tc-header .sub-menu,
.navbar .dropdown-menu,
.nav-menu .sub-menu {
  background: var(--toac-blue-night) !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
  border-radius: 1rem;
  box-shadow: 0 18px 45px rgba(15,23,42,.28);
}

.tc-header .dropdown-menu a,
.tc-header .sub-menu a,
.navbar .dropdown-menu a,
.nav-menu .sub-menu a {
  color: var(--toac-white) !important;
}

/* ============================================================
   FOOTER — source de référence du dégradé
   ============================================================ */

.tc-footer,
.site-footer,
#footer,
#colophon,
footer.site-footer,
footer.tc-footer {
  background: var(--toac-band-gradient) !important;
  color: var(--toac-white) !important;
  border-top: 1px solid rgba(255,255,255,0.16) !important;
  box-shadow: 0 -18px 55px rgba(15,23,42,0.16);
}

/* Textes footer */
.tc-footer,
.tc-footer p,
.tc-footer span,
.tc-footer li,
.tc-footer h1,
.tc-footer h2,
.tc-footer h3,
.tc-footer h4,
.site-footer,
.site-footer p,
.site-footer span,
.site-footer li,
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
#footer,
#footer p,
#footer span,
#footer li,
#footer h1,
#footer h2,
#footer h3,
#footer h4,
#colophon,
#colophon p,
#colophon span,
#colophon li,
#colophon h1,
#colophon h2,
#colophon h3,
#colophon h4 {
  color: var(--toac-white) !important;
}

/* Liens footer + mailto */
.tc-footer a,
.site-footer a,
#footer a,
#colophon a,
.tc-header a[href^="mailto:"],
.site-header a[href^="mailto:"],
#masthead a[href^="mailto:"],
.tc-footer a[href^="mailto:"],
.site-footer a[href^="mailto:"],
#footer a[href^="mailto:"],
#colophon a[href^="mailto:"] {
  color: var(--toac-soft-white) !important;
  text-decoration: none !important;
  font-weight: 800;
}

.tc-footer a:hover,
.site-footer a:hover,
#footer a:hover,
#colophon a:hover,
.tc-header a[href^="mailto:"]:hover,
.site-header a[href^="mailto:"]:hover,
#masthead a[href^="mailto:"]:hover {
  color: var(--toac-white) !important;
  text-decoration: underline !important;
}

/* Masquage de secours pour le téléphone si un span dédié est créé en JS */
.toac-hidden-phone {
  display: none !important;
}

/* Responsive */
@media (max-width: 979px) {
  .tc-header .navbar-inner,
  .tc-header .primary-navbar__wrapper,
  .tc-header .nav-collapse,
  .tc-header .menu-wrapper {
    border-radius: 1.25rem;
    padding: .5rem;
  }
}


/* ============================================================
   Correctif v0.6 — entrée de sous-menu survolée
   Objectif :
   - ne pas changer le fond du sous-menu ;
   - conserver le bloc déroulant noir ;
   - quand Customizr passe une entrée en fond blanc,
     le texte de cette entrée doit passer en noir.
   ============================================================ */

/* Entrée directe de sous-menu survolée */
.tc-header .dropdown-menu > li:hover > a,
.tc-header .dropdown-menu > li > a:hover,
.tc-header .dropdown-menu > li > a:focus,
.tc-header .sub-menu > li:hover > a,
.tc-header .sub-menu > li > a:hover,
.tc-header .sub-menu > li > a:focus {
  color: #111827 !important;
}

/* Cas Customizr / Bootstrap avec classes actives */
.tc-header .dropdown-menu > .active > a,
.tc-header .dropdown-menu > .active > a:hover,
.tc-header .dropdown-menu > .active > a:focus,
.tc-header .sub-menu > .active > a,
.tc-header .sub-menu > .active > a:hover,
.tc-header .sub-menu > .active > a:focus {
  color: #111827 !important;
}

/* Sécurité : si le lien contient span, strong ou autre élément interne */
.tc-header .dropdown-menu > li:hover > a *,
.tc-header .dropdown-menu > li > a:hover *,
.tc-header .sub-menu > li:hover > a *,
.tc-header .sub-menu > li > a:hover * {
  color: #111827 !important;
}


/* ============================================================
   Correctif v0.8 — responsive hamburger Customizr
   Objectif :
   - afficher le bouton hamburger sur mobile ;
   - ne PAS afficher les liens du menu en clair tant que le menu est fermé ;
   - afficher le menu seulement quand Customizr ajoute .in / .show / .open.
   ============================================================ */

@media (max-width: 979px) {

  /* Le bouton hamburger doit être visible */
  .tc-header .navbar-toggle,
  .tc-header .menu-toggle,
  .tc-header .btn-toggle-nav,
  .tc-header .ham__navbar-toggler,
  .tc-header .navbar-toggler,
  .site-header .navbar-toggle,
  .site-header .menu-toggle,
  #masthead .navbar-toggle,
  #masthead .menu-toggle {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    background: rgba(255,255,255,0.14) !important;
    border: 1px solid rgba(255,255,255,0.30) !important;
    border-radius: 999px !important;
    padding: 0.65rem 0.85rem !important;
    min-width: 44px;
    min-height: 44px;
  }

  .tc-header .navbar-toggle .icon-bar,
  .site-header .navbar-toggle .icon-bar,
  #masthead .navbar-toggle .icon-bar {
    background-color: #ffffff !important;
  }

  /* IMPORTANT : menu fermé = liens cachés.
     On ne force plus display:flex/block sur le conteneur du menu. */
  .tc-header .nav-collapse:not(.in):not(.show):not(.open),
  .tc-header .navbar-collapse:not(.in):not(.show):not(.open),
  .site-header .nav-collapse:not(.in):not(.show):not(.open),
  .site-header .navbar-collapse:not(.in):not(.show):not(.open),
  #masthead .nav-collapse:not(.in):not(.show):not(.open),
  #masthead .navbar-collapse:not(.in):not(.show):not(.open) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  /* Menu ouvert = visible et lisible */
  .tc-header .nav-collapse.in,
  .tc-header .nav-collapse.show,
  .tc-header .nav-collapse.open,
  .tc-header .navbar-collapse.in,
  .tc-header .navbar-collapse.show,
  .tc-header .navbar-collapse.open,
  .site-header .nav-collapse.in,
  .site-header .nav-collapse.show,
  .site-header .nav-collapse.open,
  .site-header .navbar-collapse.in,
  .site-header .navbar-collapse.show,
  .site-header .navbar-collapse.open,
  #masthead .nav-collapse.in,
  #masthead .nav-collapse.show,
  #masthead .nav-collapse.open,
  #masthead .navbar-collapse.in,
  #masthead .navbar-collapse.show,
  #masthead .navbar-collapse.open {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
    width: 100% !important;
    background: rgba(15, 23, 42, 0.96) !important;
    border-radius: 1.25rem !important;
    margin-top: 0.75rem !important;
    padding: 0.5rem !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
  }

  /* Liens visibles uniquement dans le menu ouvert */
  .tc-header .nav-collapse.in a,
  .tc-header .nav-collapse.show a,
  .tc-header .nav-collapse.open a,
  .tc-header .navbar-collapse.in a,
  .tc-header .navbar-collapse.show a,
  .tc-header .navbar-collapse.open a,
  .site-header .nav-collapse.in a,
  .site-header .nav-collapse.show a,
  .site-header .nav-collapse.open a,
  .site-header .navbar-collapse.in a,
  .site-header .navbar-collapse.show a,
  .site-header .navbar-collapse.open a,
  #masthead .nav-collapse.in a,
  #masthead .nav-collapse.show a,
  #masthead .nav-collapse.open a,
  #masthead .navbar-collapse.in a,
  #masthead .navbar-collapse.show a,
  #masthead .navbar-collapse.open a {
    display: block !important;
    color: #ffffff !important;
    padding: 0.8rem 1rem !important;
    border-radius: 0.85rem !important;
  }

  .tc-header .nav-collapse.in a:hover,
  .tc-header .nav-collapse.show a:hover,
  .tc-header .navbar-collapse.in a:hover,
  .tc-header .navbar-collapse.show a:hover {
    background: rgba(255,255,255,0.14) !important;
    color: #ffffff !important;
  }

  /* Sous-menus dans menu mobile ouvert */
  .tc-header .nav-collapse.in .dropdown-menu,
  .tc-header .nav-collapse.in .sub-menu,
  .tc-header .navbar-collapse.in .dropdown-menu,
  .tc-header .navbar-collapse.in .sub-menu,
  .tc-header .nav-collapse.show .dropdown-menu,
  .tc-header .nav-collapse.show .sub-menu,
  .tc-header .navbar-collapse.show .dropdown-menu,
  .tc-header .navbar-collapse.show .sub-menu {
    position: static !important;
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0.25rem 0 0.5rem 0 !important;
    box-shadow: none !important;
  }
}

@media (max-width: 600px) {
  .tc-header img,
  .site-header img,
  #masthead img {
    max-height: 68px;
  }
}


/* ============================================================
   v0.9 — Slogan sous TOAC
   ============================================================ */

.toac-header-slogan {
  display: block;
  margin-top: 0.15rem;
  color: #dbeafe !important;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: 0;
}

@media (max-width: 600px) {
  .toac-header-slogan {
    font-size: 0.92rem;
    text-align: center;
  }
}


/* ============================================================
   v0.10 — Slogan mobile + hamburger blanc
   ============================================================ */

/* Le slogan ne doit pas disparaître sur mobile */
.tc-header .toac-header-slogan,
.site-header .toac-header-slogan,
#masthead .toac-header-slogan {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #dbeafe !important;
}

/* Slogan mobile : lisible, centré si l'en-tête se replie */
@media (max-width: 979px) {
  .tc-header .toac-header-slogan,
  .site-header .toac-header-slogan,
  #masthead .toac-header-slogan {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100%;
    margin-top: 0.2rem;
    font-size: 0.95rem !important;
    line-height: 1.25;
    text-align: center;
    color: #dbeafe !important;
  }
}

/* Barres hamburger Customizr / Bootstrap en blanc */
.tc-header .navbar-toggle .icon-bar,
.site-header .navbar-toggle .icon-bar,
#masthead .navbar-toggle .icon-bar,
.tc-header .navbar-toggler .icon-bar,
.site-header .navbar-toggler .icon-bar,
#masthead .navbar-toggler .icon-bar,
.tc-header .menu-toggle .icon-bar,
.site-header .menu-toggle .icon-bar,
#masthead .menu-toggle .icon-bar {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
}

/* Cas où les barres sont dessinées avec pseudo-éléments */
.tc-header .navbar-toggle::before,
.tc-header .navbar-toggle::after,
.tc-header .menu-toggle::before,
.tc-header .menu-toggle::after,
.tc-header .btn-toggle-nav::before,
.tc-header .btn-toggle-nav::after,
.site-header .navbar-toggle::before,
.site-header .navbar-toggle::after,
.site-header .menu-toggle::before,
.site-header .menu-toggle::after,
#masthead .navbar-toggle::before,
#masthead .navbar-toggle::after,
#masthead .menu-toggle::before,
#masthead .menu-toggle::after {
  color: #ffffff !important;
  background-color: #ffffff !important;
  border-color: #ffffff !important;
}

/* Cas où l'icône hamburger est un SVG ou une police */
.tc-header .navbar-toggle,
.tc-header .navbar-toggler,
.tc-header .menu-toggle,
.tc-header .btn-toggle-nav,
.site-header .navbar-toggle,
.site-header .navbar-toggler,
.site-header .menu-toggle,
#masthead .navbar-toggle,
#masthead .navbar-toggler,
#masthead .menu-toggle {
  color: #ffffff !important;
  fill: #ffffff !important;
}


/* ============================================================
   v0.12 — Retour arrière sécurité V11
   Objectif :
   - ne plus toucher à l'icône recherche ;
   - ne plus transformer les barres hamburger en carré blanc ;
   - ne cibler que les barres réelles du bouton menu.
   ============================================================ */

/* Annule les effets éventuels hérités d'une version précédente sur la recherche */
.tc-header .search-toggle,
.tc-header .search-toggle *,
.tc-header .search-form,
.tc-header .search-form *,
.tc-header .search-field,
.tc-header .search-submit,
.site-header .search-toggle,
.site-header .search-toggle *,
.site-header .search-form,
.site-header .search-form *,
.site-header .search-field,
.site-header .search-submit,
#masthead .search-toggle,
#masthead .search-toggle *,
#masthead .search-form,
#masthead .search-form *,
#masthead .search-field,
#masthead .search-submit {
  filter: none !important;
}

/* Recherche : icône blanche, mais jamais fond carré blanc forcé */
.tc-header .search-toggle,
.site-header .search-toggle,
#masthead .search-toggle {
  color: #ffffff !important;
  background-color: transparent !important;
  border-color: rgba(255,255,255,0.25) !important;
}

/* Bouton hamburger : le bouton garde son style, pas d'inversion globale */
.tc-header .navbar-toggle,
.site-header .navbar-toggle,
#masthead .navbar-toggle {
  color: #ffffff !important;
  background: rgba(255,255,255,0.14) !important;
  border: 1px solid rgba(255,255,255,0.30) !important;
  filter: none !important;
}

/* Barres Bootstrap classiques uniquement */
.tc-header .navbar-toggle .icon-bar,
.site-header .navbar-toggle .icon-bar,
#masthead .navbar-toggle .icon-bar {
  display: block !important;
  width: 22px !important;
  height: 2px !important;
  margin: 4px 0 !important;
  border-radius: 2px !important;
  background-color: #ffffff !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}

/* Si Customizr utilise trois spans directs sans classe icon-bar dans .navbar-toggle */
.tc-header .navbar-toggle > span:not(.screen-reader-text):not(.sr-only),
.site-header .navbar-toggle > span:not(.screen-reader-text):not(.sr-only),
#masthead .navbar-toggle > span:not(.screen-reader-text):not(.sr-only) {
  display: block !important;
  width: 22px !important;
  height: 2px !important;
  margin: 4px 0 !important;
  border-radius: 2px !important;
  background-color: #ffffff !important;
  color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}

/* Éviter qu'un span texte éventuel du bouton devienne un bloc blanc */
.tc-header .navbar-toggle .screen-reader-text,
.tc-header .navbar-toggle .sr-only,
.site-header .navbar-toggle .screen-reader-text,
.site-header .navbar-toggle .sr-only,
#masthead .navbar-toggle .screen-reader-text,
#masthead .navbar-toggle .sr-only {
  background: transparent !important;
  color: inherit !important;
}

/* Ne jamais appliquer de rectangle blanc aux icônes FontAwesome / icônes de recherche */
.tc-header i,
.tc-header svg,
.site-header i,
.site-header svg,
#masthead i,
#masthead svg {
  background-color: transparent !important;
  filter: none !important;
}

/* SVG hamburger uniquement si présent dans le bouton navbar-toggle */
.tc-header .navbar-toggle svg,
.site-header .navbar-toggle svg,
#masthead .navbar-toggle svg {
  fill: #ffffff !important;
  stroke: #ffffff !important;
  background: transparent !important;
}


/* ============================================================
   v0.15 — Hamburger redessiné en CSS
   Objectif :
   - ne plus dépendre des barres noires générées par Customizr ;
   - ne pas toucher à l'icône recherche ;
   - dessiner 3 barres blanches propres sur le bouton menu.
   ============================================================ */

@media (max-width: 979px) {
  .toac-menu-button {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 46px !important;
    height: 42px !important;
    min-width: 46px !important;
    min-height: 42px !important;
    padding: 0 !important;
    color: #ffffff !important;
    background: rgba(255,255,255,0.14) !important;
    border: 1px solid rgba(255,255,255,0.30) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    filter: none !important;
    overflow: hidden !important;
  }

  /* On masque uniquement l'icône interne du bouton menu identifié par JS */
  .toac-menu-button > span,
  .toac-menu-button > i,
  .toac-menu-button > svg {
    opacity: 0 !important;
    visibility: hidden !important;
    background: transparent !important;
    filter: none !important;
  }

  /* Trois barres blanches dessinées proprement */
  .toac-menu-button::after {
    content: "";
    display: block !important;
    width: 23px !important;
    height: 16px !important;
    background:
      linear-gradient(#ffffff, #ffffff) 0 0 / 23px 2px no-repeat,
      linear-gradient(#ffffff, #ffffff) 0 7px / 23px 2px no-repeat,
      linear-gradient(#ffffff, #ffffff) 0 14px / 23px 2px no-repeat !important;
    border: 0 !important;
    box-shadow: none !important;
    filter: none !important;
  }

  /* Empêcher tout ancien pseudo-élément du hamburger de réapparaître */
  .toac-menu-button::before {
    content: none !important;
    display: none !important;
  }

  /* Ne jamais appliquer ce traitement à la recherche */
  .search-toggle,
  .search-toggle *,
  .search-form,
  .search-form *,
  .search-submit,
  .search-submit * {
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent !important;
    filter: none !important;
  }
}


/* ============================================================
   v0.16 — Accueil guidé TOAC en Gutenberg
   Reproduction visuelle de la page accueil-guide-toac.
   Les interactions métier restent à brancher par le plugin.
   ============================================================ */

.toac-home-page {
  --toac-guide-navy: #111827;
  --toac-guide-blue: #2563eb;
  --toac-guide-violet: #7c3aed;
  --toac-guide-border: rgba(226, 232, 240, 0.95);
  --toac-guide-muted: #64748b;
  --toac-guide-soft: #eef2ff;
  --toac-guide-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  padding: clamp(1rem, 2vw, 2rem) 0 clamp(3rem, 6vw, 5rem);
}

.toac-guide-shell {
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(37, 99, 235, .14), transparent 30rem),
    radial-gradient(circle at 100% 16%, rgba(124, 58, 237, .14), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 54%, #eef2ff 100%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: var(--toac-guide-shadow);
  padding: clamp(1rem, 2.5vw, 2rem);
}

.toac-guide-topbar,
.toac-guide-card,
.toac-interest-card,
.toac-question-panel,
.toac-answer-card,
.toac-guarantee-card,
.toac-mini-card {
  border: 1px solid var(--toac-guide-border);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.08);
}

.toac-guide-topbar {
  border-radius: 28px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.toac-guide-brand {
  gap: .75rem;
  align-items: center;
}

.toac-guide-logo {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  margin: 0 !important;
  border-radius: 1.1rem;
  color: #ffffff;
  font-weight: 950;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  box-shadow: 0 14px 30px rgba(37, 99, 235, .22);
}

.toac-guide-club {
  margin: 0 !important;
  color: #111827;
  font-weight: 900;
  font-size: 1.05rem;
}

.toac-guide-subtitle {
  margin: 0 !important;
  color: var(--toac-guide-muted);
  font-weight: 700;
  font-size: .9rem;
}

.toac-guide-steps,
.toac-guide-links {
  gap: .5rem !important;
}

.toac-guide-steps p,
.toac-guide-links p {
  margin: 0 !important;
}

.toac-guide-steps a,
.toac-guide-steps span,
.toac-guide-links a {
  display: inline-flex;
  border-radius: 999px;
  padding: .48rem .76rem;
  font-size: .9rem;
  font-weight: 800;
  color: #1e3a8a;
  background: #eef2ff;
  text-decoration: none !important;
}

.toac-guide-access {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: .5rem .85rem;
  margin: .25rem 0 1.25rem !important;
  color: #1e3a8a;
  background: #eef2ff;
  font-weight: 700;
}

.toac-guide-hero {
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: 0;
}

.toac-guide-card {
  border-radius: 32px;
  padding: clamp(1.4rem, 3vw, 2.5rem);
}

.toac-guide-card-dark {
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,.16), transparent 22rem),
    linear-gradient(135deg, #0f172a 0%, #1e3a8a 38%, #2563eb 70%, #7c3aed 100%);
  border-color: rgba(255,255,255,.18);
}

.toac-guide-card-dark .toac-guide-club,
.toac-guide-card-dark .toac-guide-title,
.toac-guide-card-dark h1,
.toac-guide-card-dark h2,
.toac-guide-card-dark h3,
.toac-guide-card-dark p {
  color: #ffffff;
}

.toac-guide-card-dark .toac-guide-subtitle,
.toac-guide-card-dark .toac-guide-lead {
  color: #dbeafe;
}

.toac-guide-brand-in-card {
  margin-bottom: 1rem;
}

.toac-guide-badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: .5rem .85rem;
  margin: .75rem 0 1rem !important;
  color: #e0e7ff !important;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.20);
  font-weight: 850;
}

.toac-guide-title {
  margin-top: 0 !important;
  font-size: clamp(2.1rem, 4.8vw, 4rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -.055em;
  font-weight: 950 !important;
}

.toac-guide-lead {
  font-size: clamp(1.08rem, 1.8vw, 1.25rem);
  line-height: 1.55;
  font-weight: 600;
}

.toac-guide-buttons {
  gap: .75rem !important;
  margin-top: 1rem;
}

.toac-btn-primary .wp-block-button__link,
.toac-btn-soft .wp-block-button__link,
.toac-btn-outline .wp-block-button__link {
  border-radius: 999px;
  font-weight: 850;
  padding: .82rem 1.15rem;
  text-decoration: none !important;
}

.toac-btn-primary .wp-block-button__link {
  color: #ffffff !important;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%) !important;
}

.toac-btn-soft .wp-block-button__link {
  color: #1e3a8a !important;
  background: #eef2ff !important;
}

.toac-btn-outline .wp-block-button__link {
  color: #ffffff !important;
  background: rgba(255,255,255,.14) !important;
  border: 1px solid rgba(255,255,255,.25);
}

.toac-audio-status,
.toac-helper {
  color: var(--toac-guide-muted);
  font-size: .95rem;
  font-weight: 650;
}

.toac-guide-stats {
  border-radius: 30px;
  padding: 1rem;
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(255,255,255,.85);
}

.toac-guide-mini-grid {
  gap: 1rem !important;
  margin-bottom: 1rem;
}

.toac-mini-card {
  border-radius: 24px;
  padding: 1.15rem;
}

.toac-mini-card h3 {
  margin-top: 0 !important;
  font-size: 1.1rem;
}

.toac-mini-card p {
  margin-bottom: 0 !important;
  color: var(--toac-guide-muted);
  font-weight: 700;
}

.toac-section-title {
  margin: clamp(2rem, 5vw, 4rem) 0 1.25rem !important;
  color: #111827;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 900;
}

.toac-interest-grid,
.toac-answer-grid,
.toac-guarantee-grid {
  gap: 1rem !important;
}

.toac-interest-card,
.toac-answer-card,
.toac-guarantee-card,
.toac-question-panel {
  border-radius: 28px;
  padding: clamp(1.25rem, 2.5vw, 2rem);
}

.toac-interest-card h3,
.toac-answer-card h3,
.toac-guarantee-card h3 {
  margin-top: 0 !important;
  color: #111827;
}

.toac-question-panel {
  margin-top: clamp(2rem, 5vw, 4rem);
  background: #ffffff;
}

.toac-question-panel .toac-guide-badge {
  color: #1e3a8a !important;
  background: #eef2ff;
  border-color: #dbeafe;
}

.toac-form-placeholder {
  border-radius: 24px;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.toac-field-label {
  margin: .75rem 0 .35rem !important;
  color: #111827;
  font-weight: 850;
}

.toac-demo-textarea,
.toac-demo-input,
.toac-demo-select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 18px;
  padding: .9rem 1rem;
  background: #ffffff;
  color: #111827;
  font: inherit;
}

.toac-demo-textarea {
  min-height: 7rem;
  resize: vertical;
}

.toac-answer-grid {
  margin-top: 2rem;
}

.toac-answer-card {
  min-height: 100%;
  background: #ffffff;
}

.toac-guarantee-grid {
  margin-top: 2rem;
}

.toac-guarantee-card {
  min-height: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

@media (max-width: 900px) {
  .toac-guide-hero,
  .toac-interest-grid,
  .toac-answer-grid,
  .toac-guarantee-grid,
  .toac-guide-mini-grid {
    flex-direction: column;
  }

  .toac-guide-hero > .wp-block-column,
  .toac-interest-grid > .wp-block-column,
  .toac-answer-grid > .wp-block-column,
  .toac-guarantee-grid > .wp-block-column,
  .toac-guide-mini-grid > .wp-block-column {
    flex-basis: 100% !important;
  }
}

@media (max-width: 600px) {
  .toac-guide-shell {
    border-radius: 24px;
    padding: .85rem;
  }

  .toac-guide-card,
  .toac-interest-card,
  .toac-question-panel,
  .toac-answer-card,
  .toac-guarantee-card {
    border-radius: 22px;
  }

  .toac-guide-topbar {
    border-radius: 22px;
  }

  .toac-guide-steps a,
  .toac-guide-steps span,
  .toac-guide-links a {
    font-size: .86rem;
  }
}

/* ============================================================
   v0.17 — Hero Gutenberg de référence, fidèle à accueil-guide-toac
   À utiliser dans la nouvelle page Gutenberg, sans toucher au plugin métier.
   ============================================================ */

.toac-hero-block {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: linear-gradient(135deg, #020617 0%, #172554 55%, #312e81 100%);
  color: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.toac-hero-block::before,
.toac-hero-block::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(46px);
  opacity: 0.35;
  pointer-events: none;
}

.toac-hero-block::before {
  width: 390px;
  height: 390px;
  right: -120px;
  top: -120px;
  background: #38bdf8;
}

.toac-hero-block::after {
  width: 330px;
  height: 330px;
  left: 42%;
  top: 70px;
  background: #a78bfa;
}

.toac-hero-block .toac-hero-inner {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 24px 56px;
}

.toac-hero-block .toac-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin: 0 0 20px !important;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.10);
  color: #e2e8f0 !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.toac-hero-block .toac-hero-title,
.toac-hero-block h1.toac-hero-title.wp-block-heading {
  max-width: 900px;
  margin: 0 !important;
  color: #ffffff !important;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: clamp(30px, 3.8vw, 48px) !important;
  font-weight: 650 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.025em !important;
  text-transform: none !important;
}

.toac-hero-block p,
.toac-hero-block .wp-block-button__link,
.toac-hero-block .toac-hero-card-title,
.toac-hero-block .toac-hero-card-label {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.toac-hero-block .toac-hero-lead {
  max-width: 820px;
  margin: 22px 0 0 !important;
  color: #dbeafe !important;
  font-size: clamp(18px, 2vw, 22px) !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
}

.toac-hero-block .toac-hero-text {
  max-width: 760px;
  margin: 14px 0 0 !important;
  color: #f8fafc !important;
  font-size: 19px !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
}

.toac-hero-block .toac-hero-buttons {
  gap: 12px !important;
  margin-top: 28px !important;
}

.toac-hero-block .toac-btn-white .wp-block-button__link,
.toac-hero-block .toac-btn-glass .wp-block-button__link,
.toac-hero-block .toac-btn-theme-primary .wp-block-button__link,
.toac-hero-block .toac-btn-theme-white .wp-block-button__link,
.toac-hero-block .toac-btn-theme-glass .wp-block-button__link,
.toac-hero-block .toac-btn-theme-navy .wp-block-button__link,
.toac-hero-block .toac-btn-theme-blue .wp-block-button__link,
.toac-hero-block .toac-btn-theme-violet .wp-block-button__link,
.toac-hero-block .toac-btn-theme-soft .wp-block-button__link,
.toac-hero-block .toac-btn-theme-outline-light .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 17px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none !important;
  box-shadow: none !important;
}

.toac-hero-block .toac-btn-white .wp-block-button__link,
.toac-hero-block .toac-btn-theme-white .wp-block-button__link {
  background: #ffffff !important;
  border: 1px solid #ffffff !important;
  color: #020617 !important;
}

.toac-hero-block .toac-btn-glass .wp-block-button__link,
.toac-hero-block .toac-btn-theme-glass .wp-block-button__link {
  background: rgba(255, 255, 255, 0.10) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
}

.toac-hero-block .toac-btn-theme-primary .wp-block-button__link {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  color: #ffffff !important;
}

.toac-hero-block .toac-btn-theme-navy .wp-block-button__link {
  background: #0f172a !important;
  border: 1px solid #0f172a !important;
  color: #ffffff !important;
}

.toac-hero-block .toac-btn-theme-blue .wp-block-button__link {
  background: #2563eb !important;
  border: 1px solid #2563eb !important;
  color: #ffffff !important;
}

.toac-hero-block .toac-btn-theme-violet .wp-block-button__link {
  background: #7c3aed !important;
  border: 1px solid #7c3aed !important;
  color: #ffffff !important;
}

.toac-hero-block .toac-btn-theme-soft .wp-block-button__link {
  background: #eef2ff !important;
  border: 1px solid #c7d2fe !important;
  color: #1e3a8a !important;
}

.toac-hero-block .toac-btn-theme-outline-light .wp-block-button__link {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  color: #ffffff !important;
}

.toac-hero-block .toac-btn-white .wp-block-button__link:hover,
.toac-hero-block .toac-btn-glass .wp-block-button__link:hover,
.toac-hero-block .toac-btn-theme-primary .wp-block-button__link:hover,
.toac-hero-block .toac-btn-theme-white .wp-block-button__link:hover,
.toac-hero-block .toac-btn-theme-glass .wp-block-button__link:hover,
.toac-hero-block .toac-btn-theme-navy .wp-block-button__link:hover,
.toac-hero-block .toac-btn-theme-blue .wp-block-button__link:hover,
.toac-hero-block .toac-btn-theme-violet .wp-block-button__link:hover,
.toac-hero-block .toac-btn-theme-soft .wp-block-button__link:hover,
.toac-hero-block .toac-btn-theme-outline-light .wp-block-button__link:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.toac-btn-icon-audio .wp-block-button__link::before,
.toac-btn-icon-stop .wp-block-button__link::before {
  display: inline-block;
  margin-right: 0.55rem;
  font-size: 0.95em;
  line-height: 1;
}

.toac-btn-icon-audio .wp-block-button__link::before {
  content: "🔊";
}

.toac-btn-icon-stop .wp-block-button__link::before {
  content: "⏹";
}

.toac-hero-block .toac-hero-status {
  margin: 16px 0 0 !important;
  color: #cbd5e1 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
}

.toac-hero-block .toac-hero-cards {
  gap: 12px;
  margin-top: 32px !important;
}

.toac-hero-block .toac-hero-cards > .wp-block-column {
  flex-basis: 25% !important;
}

.toac-hero-block .toac-hero-card {
  min-height: 96px;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.10);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.toac-hero-block .toac-hero-card-label {
  margin: 0 !important;
  color: #cbd5e1 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
}

.toac-hero-block .toac-hero-card-title {
  margin: 8px 0 0 !important;
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

@media (max-width: 1024px) {
  .toac-hero-block .toac-hero-cards {
    flex-wrap: wrap !important;
  }

  .toac-hero-block .toac-hero-cards > .wp-block-column {
    flex-basis: calc(50% - 6px) !important;
  }
}

@media (max-width: 640px) {
  .toac-hero-block .toac-hero-inner {
    padding-left: 14px;
    padding-right: 14px;
  }

  .toac-hero-block .toac-hero-cards > .wp-block-column {
    flex-basis: 100% !important;
  }
}
