/*
 * Conformité de grandline.be (24/10/2026) : accessibilité (WCAG 2.1 AA) et pages légales.
 * Chargée après les feuilles Divi et gl-design.css. Le rouge de la marque #bb464c (3,7–4,0:1) est remplacé partout par
 * #bb464c (4,7:1 sur crème, 5,1:1 sur blanc) ; sur fond brun foncé, le texte rouge passe à #df7277 (4,7:1).
 */

/* Lien d'évitement (2.4.1). */
.gl-evitement {
  position: absolute; left: 1rem; top: -5rem; z-index: 1000000;
  background: #2c2927; color: #ffffff !important; padding: .75rem 1.25rem; border-radius: 6px;
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.gl-evitement:focus { top: 1rem; }

/* Focus visible (2.4.7). */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
[role="button"]:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #1d4ed8 !important; outline-offset: 2px !important;
}

/* Sous-menus ouverts au clavier (2.1.1). */
.et-menu li.menu-item-has-children:focus-within > .sub-menu,
.et_pb_menu .et-menu li.menu-item-has-children:focus-within > .sub-menu {
  visibility: visible !important; opacity: 1 !important; display: block !important;
}

/* Contrastes (1.4.3). */
.gl-tel-discret, .gl-tel-discret a { color: #6e7278 !important; }
.et_pb_bg_layout_dark .gl-tel-discret, .et_pb_bg_layout_dark .gl-tel-discret a { color: #c9cdd2 !important; }

/* Liens dans le texte : soulignés pour ne pas reposer sur la seule couleur (1.4.1). */
.et_pb_text_inner p a:not(.et_pb_button), .et_pb_text_inner li a:not(.et_pb_button),
.et_pb_toggle_content a, .et_pb_blurb_description a { text-decoration: underline; text-underline-offset: 2px; }

/* Pied de page : identité et liens légaux. */
.gl-identite { margin: 10px 0 0 !important; padding: 0 !important; font-size: 12px; line-height: 1.6; color: #6e7278; text-align: center; }
.gl-liens-legaux { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin: 6px 0 0; font-size: 12px; line-height: 1.6; }
.gl-liens-legaux a { color: #4b4f55 !important; text-decoration: underline; text-underline-offset: 2px; }
.et_pb_bg_layout_dark .gl-identite { color: #c9cdd2; }
.et_pb_bg_layout_dark .gl-liens-legaux a { color: #e5e7eb !important; }

/* Mention d'information sous les formulaires (art. 13 RGPD). */
/* Les 12 formulaires sont sur fond brun (#2c2927) : texte clair (13:1). */
.gl-mention-rgpd { margin: 18px 0 0 !important; font-size: 13px; line-height: 1.55; color: #f3f4f6 !important; }
.et_pb_bg_layout_dark .gl-mention-rgpd { color: #e5e7eb; }
.gl-mention-rgpd a { color: inherit !important; text-decoration: underline; }

/* Pages légales. */
.gl-legal h1 { font-size: 34px; line-height: 1.25; margin: 0 0 8px; color: #2c2927; }
.gl-legal .gl-maj { color: #4b4f55; font-size: 14px; margin-bottom: 24px; }
.gl-legal h2 { font-size: 22px; line-height: 1.3; margin: 32px 0 12px; color: #2c2927; padding: 0; }
.gl-legal p, .gl-legal li, .gl-legal td, .gl-legal th { font-size: 16px; line-height: 1.65; color: #2c2927; }
.gl-legal ul { padding-left: 1.4em; margin-bottom: 16px; list-style: disc; }
.gl-legal li { margin-bottom: 6px; }
.gl-legal a { color: #9f3a40 !important; text-decoration: underline; }
.gl-legal table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; }
.gl-legal th, .gl-legal td { border: 1px solid #d6d3cd; padding: 8px 10px; text-align: left; vertical-align: top; }
.gl-legal th { background: #f6f4ef; font-weight: 700; }
@media (max-width: 700px) {
  .gl-legal table, .gl-legal thead, .gl-legal tbody, .gl-legal tr, .gl-legal th, .gl-legal td { display: block; }
  .gl-legal thead { position: absolute; left: -9999px; }
  .gl-legal td { border-top: 0; }
  .gl-legal tr { border-top: 1px solid #d6d3cd; margin-bottom: 12px; }
}
.a-completer { background: #fde68a; color: #111827; padding: 0 4px; border-radius: 3px; font-weight: 700; }
.lecteur-ecran {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Mouvement réduit (2.3.3). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .et_animated, .et-waypoint { opacity: 1 !important; transform: none !important; }
  .wow, .reveal-effect { visibility: visible !important; animation: none !important; opacity: 1 !important; }
}

/* h1 posé sur le texte du bandeau (une page = un h1) : même apparence qu'avant. */
h1.gl-h1-bandeau {
  font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; line-height: inherit;
  margin: 0; padding: 0; text-align: inherit;
}

/* Pied de page sur fond brun (#2c2927) : textes clairs (≥ 7:1). Ailleurs (fond clair), gris foncé (4,6:1). */
footer.et-l--footer .gl-tel-discret, footer.et-l--footer .gl-tel-discret a,
footer.et-l--footer .gl-identite { color: #c9cdd2 !important; }
footer.et-l--footer .gl-liens-legaux a { color: #f3f4f6 !important; }

/* Titres animés (WOW.js) : WOW les masque (visibility:hidden) tant qu'ils ne sont pas à l'écran, donc aussi pour les
   lecteurs d'écran et les robots. Le texte reste visible ; l'animation d'apparition joue toujours (.animated). */
.reveal-effect.wow { visibility: visible !important; }

/* Texte posé sur la vidéo de l'accueil (fond variable, non mesurable par axe) : ombre portée pour garder la lisibilité. */
.et_pb_section_video .et_pb_text_inner, .et_pb_section_video h1, .et_pb_section_video h2,
.et_pb_section_video .header-level {
  text-shadow: 0 1px 3px rgba(0, 0, 0, .9), 0 0 14px rgba(0, 0, 0, .65);
}
/* Slogan rouge sur la vidéo : rouge clair + ombre (contrôle visuel du 24/10). */
.et_pb_section_video .et_pb_text_0 .et_pb_text_inner p { color: #ffb3b6 !important; }

/* Menu principal (FR, NL, EN) : une seule ligne de 1280 à 1440 px (mesuré le 24/10). */
@media (min-width: 981px) {
  header .et_pb_menu .et-menu > li { padding-left: 4px !important; padding-right: 4px !important; }
  header .et_pb_menu .et-menu > li > a { font-size: clamp(10px, .82vw, 15px) !important; }
}

/* Contrastes ciblés (générés depuis l'audit axe-core, voir contrastes-cibles.json). */
body.page-id-987511792 .et_pb_text_4 > .et_pb_text_inner > p { color: #df7277 !important; }
body.page-id-987513199 .et_pb_text_13 > .et_pb_text_inner > p { color: #df7277 !important; }
body.page-id-987511915 .et_pb_text_3 > .et_pb_text_inner > p { color: #df7277 !important; }
body.page-id-987512886 .et_pb_text_13 > .et_pb_text_inner > p { color: #df7277 !important; }
body.page-id-987512373 .et_pb_text_3 > .et_pb_text_inner > p { color: #df7277 !important; }
body.page-id-987513231 .et_pb_text_13 > .et_pb_text_inner { color: #df7277 !important; }
body.page-id-987513222 .et_pb_text_13 > .et_pb_text_inner > p { color: #df7277 !important; }
body.page-id-987512961 .et_pb_text_13 > .et_pb_text_inner > p { color: #df7277 !important; }
body.page-id-987512999 .et_pb_text_13 > .et_pb_text_inner { color: #df7277 !important; }
body.page-id-987512374 .et_pb_text_3 > .et_pb_text_inner > p { color: #df7277 !important; }
body.page-id-987513241 .et_pb_text_13 > .et_pb_text_inner { color: #df7277 !important; }
body.page-id-987513243 .et_pb_text_13 > .et_pb_text_inner { color: #df7277 !important; }
body.page-id-987513209 .et_pb_text_13 > .et_pb_text_inner > p { color: #df7277 !important; }
