/* BRIDGE — css/bridge-interactions.css — shared stylesheet */
/* Style de base des éléments interactifs */
    a { transition: color .24s ease, background-color .24s ease,
                    border-color .24s ease, box-shadow .24s ease,
                    transform .24s ease, text-decoration-color .24s ease; }
    a:focus-visible {
      outline: 2px solid #16899a;
      outline-offset: 4px;
      border-radius: 5px;
    }

    /* Liens textuels : couleur et soulignement lisibles au survol. */
    a[href^="https://"]:not(.choice):not(.btn):hover,
    a[href^="mailto:"]:hover,
    #partners a:hover,
    #contact a:hover {
      color: #16899a;
      text-decoration: underline;
      text-decoration-thickness: 2px;
      text-underline-offset: 4px;
    }

    /* Navigation : comme PROTECT-DTI, l'accent est bien visible. */
    .navlinks > a { position: relative; }
    .navlinks > a::after {
      content: "";
      position: absolute;
      bottom: -5px;
      left: 0;
      width: 100%;
      height: 2px;
      border-radius: 2px;
      background: #16899a;
      transform: scaleX(0);
      transform-origin: left;
      transition: transform .25s ease;
    }
    .navlinks > a:hover,
    .navlinks > a:focus-visible { color: #16899a; }
    .navlinks > a:hover::after,
    .navlinks > a:focus-visible::after { transform: scaleX(1); }
    .flags a:hover { background: #e8f3fa; transform: translateY(-2px); }
    .flags a:hover img { filter: saturate(1.15); }

    /* Raccourcis : teinte + bordure + élévation, pas seulement un curseur. */
    .quick a:hover, .quick a:focus-visible {
      transform: translateY(-4px);
      background: #f0f8fb;
      border-color: #16899a;
      box-shadow: 0 12px 26px rgba(18, 62, 91, .14);
    }
    .quick a:hover b { color: #16899a; }

    /* Boutons d'action : animations discrètes, contraste conservé. */
    .buttonrow a:hover, .buttonrow a:focus-visible {
      transform: translateY(-3px);
      box-shadow: 0 8px 22px rgba(48, 108, 169, .2);
    }
    .buttonrow a[href="#contact"]:hover {
      background-color: #edf7fa;
      border-color: #16899a;
      color: #126b7b;
    }

    /* Accueil : choix des langues et Education. */
    .choice:hover, .choice:focus-visible {
      transform: translateY(-3px);
      background: #f5fbfd;
      border-color: #306ca9;
      box-shadow: 0 12px 28px rgba(18, 62, 91, .13);
    }
    .choice.fr:hover { border-color: #398878; background: #f1faf6; }
    .choice.de:hover { border-color: #8163ac; background: #f8f5fc; }
    .choice.education:hover { border-color: #b87736; background: #fff8ef; }
    .choice:hover .arrow { transform: translateX(4px); }
    .choice .arrow { display: inline-block; transition: transform .24s ease; }
    .choice:hover .choice-name { color: #16899a; }

    /* Autres pages (EN, DE, Education, Résultats) : navigation et CTA. */
    header nav a:hover { color: #16899a; }
    header nav a:not(:has(img)):hover { text-decoration: underline; text-underline-offset: 5px; }
    main a.rounded-full:hover, main a.rounded-full:focus-visible {
      transform: translateY(-3px);
      box-shadow: 0 10px 23px rgba(48, 108, 169, .2);
    }

    /* Respect des préférences d'accessibilité. */
    @media (prefers-reduced-motion: reduce) {
      a, .choice .arrow, .navlinks > a::after { transition: none !important; }
      a:hover, a:focus-visible { transform: none !important; }
    }
  

    /* Liens classiques inclus dans le contenu : toujours reconnaissables. */
    main p a:not(.btn):not(.choice):not(.rounded-full),
    main .callout a,
    #partners a:not(.btn),
    #contact a:not(.btn) {
      color: #246ba2;
      text-decoration-line: underline;
      text-decoration-color: #73a6c3;
      text-decoration-thickness: 1.5px;
      text-underline-offset: 4px;
      font-weight: 650;
    }
    main p a:not(.btn):not(.choice):not(.rounded-full):hover,
    main .callout a:hover,
    #partners a:not(.btn):hover,
    #contact a:not(.btn):hover {
      color: #087d8c;
      text-decoration-color: currentColor;
      text-decoration-thickness: 2px;
    }

    /* Menu de BRIDGE : discret trait visible même sans souris. */
    .navlinks > a:not(:has(img)) {
      color: #24658b;
    }
    .navlinks > a:not(:has(img))::after {
      background-color: #77b8be;
      transform: scaleX(1);
      opacity: .65;
    }
    .navlinks > a:not(:has(img)):hover::after,
    .navlinks > a:not(:has(img)):focus-visible::after {
      background-color: #16899a;
      opacity: 1;
    }

    /* Pages secondaires : liens de navigation colorés + soulignés. */
    header nav > div a:not(:has(img)) {
      color: #246ba2;
      text-decoration: underline;
      text-decoration-color: #9ac3cc;
      text-decoration-thickness: 1px;
      text-underline-offset: 5px;
    }
    header nav > div a:not(:has(img)):hover {
      color: #087d8c;
      text-decoration-color: currentColor;
      text-decoration-thickness: 2px;
    }

    /* Les gros liens visuels restent des cartes et boutons, pas des textes soulignés. */
    .choice, .quick a, .buttonrow a, main a.rounded-full {
      text-decoration: none;
    }


/* Compact devices: more comfortable interaction and keyboard focus. */
@media (max-width:640px) {
  a:focus-visible,button:focus-visible,select:focus-visible { outline-offset:3px; }
  a[class*="rounded"],button[class*="rounded"] { min-height:44px; }
  img,svg,video { max-width:100%; }
}
