/* ==========================================================================
   FORMATION RGAA - Feuille de style de la version NON CONFORME
   Chargée après style.css, uniquement quand rgaa.defects = true.
   Chaque règle est précédée du critère RGAA qu'elle met en défaut.
   ========================================================================== */

/* G-10.7 : prise de focus invisible sur tous les éléments interactifs */
a:focus, a:focus-visible,
button:focus, button:focus-visible,
input:focus, input:focus-visible,
select:focus, select:focus-visible,
textarea:focus, textarea:focus-visible,
summary:focus, summary:focus-visible,
[tabindex]:focus, [tabindex]:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Lien d'évitement : reste fonctionnellement cassé (cible inexistante, G-12.7) */
.skip-links a { position: absolute; left: -9999rem; top: .5rem; z-index: 1000; padding: .75rem 1rem;
    background: var(--color-primary); color: #fff; font-weight: 700; }
.skip-links a:focus { left: .5rem; }

/* Bouton burger factice (G-7.1 / G-7.3) : même aspect que le vrai bouton */
.burger-nc { display: none; align-items: center; gap: .5rem; min-height: 2.75rem; min-width: 2.75rem;
    padding: .5rem .875rem; border: 2px solid var(--color-primary); border-radius: .375rem;
    color: var(--color-primary); cursor: pointer; }
@media (max-width: 63.99em) {
    .burger-nc { display: inline-flex; }
    .site-nav:not(.site-nav--below) .main-nav { display: none; }
    .site-nav.is-open .main-nav { display: flex; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; gap: 0; padding: .5rem 1rem 1rem; background: #fff;
        border-bottom: .25rem solid var(--color-primary); box-shadow: 0 .5rem 1rem rgba(0,0,0,.15); }
}
.site-nav--below { padding: 1rem; border-top: 4px solid var(--color-primary); }
.site-nav--below .burger-nc { display: none; }
.site-nav--below .main-nav { display: flex !important; justify-content: center; }

/* G-3.2 : pied de page peu contrasté (#9aa5b1 sur blanc = 2,5:1) */
.site-footer, .site-footer a, .site-footer th { color: #9aa5b1; }
.footer-layout { border-collapse: collapse; width: 100%; }
.footer-layout th { text-align: left; font-weight: 700; padding-bottom: .25rem; }
.footer-layout td { padding: 0; vertical-align: top; }
.social-nc a { display: inline-block; margin-right: .5rem; }
.footer-copy { margin-top: 1rem; }

/* G-3.1 : nature des messages flash portée uniquement par la couleur */
.flash--success { border-left-color: #2e8540; }
.flash--error   { border-left-color: #d00; }

/* ==========================================================================
   Accueil
   ========================================================================== */
.welcome-nc { background: #0a3f75; color: #fff; text-align: center; padding: .25rem; font-size: .875rem; }
.slogan-nc { font-style: italic; font-size: 1.25rem; color: var(--color-primary); margin: .25rem 0 1rem; }
.instruction-nc { font-size: .9rem; }
.btn-green-nc { background: #2e8540; border-color: #2e8540; color: #fff; }
/* [10.12] Hauteur fixe + débordement masqué : le texte est coupé quand on augmente l'espacement */
.card-nc { height: 15.5rem; overflow: hidden; }
.cards { list-style: none; padding: 0; }
.h2-nc { font-size: 1.75rem; font-weight: 700; color: var(--color-primary); margin: 0 0 1rem; }
.chart-nc { max-width: 100%; height: auto; background: #fff; }
.video-nc { position: relative; max-width: 48rem; }
.video-nc video { width: 100%; height: auto; display: block; }
.video-nc__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: #fff; cursor: pointer; background: rgba(0,0,0,.15); }
.video-nc__play.is-playing { opacity: 0; }
.video-nc__play .icon { width: 5rem; height: 5rem; }
.table-title-nc { font-weight: 700; margin-bottom: .5rem; }
/* [10.11] Largeur minimale sans conteneur défilant */
.offers-nc { min-width: 40rem; }
.offers-nc .th-nc { font-weight: 700; }
.offers-nc tr:first-child td { background: var(--color-primary); color: #fff; }
.offers-nc tr:first-child td.is-recommended { background: #2297b8; }
/* [10.13][10.14] Infobulle au survol uniquement, décalée : elle disparaît quand on veut la survoler */
.tip-nc { position: relative; display: inline-block; width: 1.25rem; height: 1.25rem; border-radius: 50%;
    background: #ccc; color: #fff; text-align: center; font-size: .8rem; line-height: 1.25rem; cursor: help; }
.tip-nc__bubble { display: none; position: absolute; left: 2.5rem; top: -0.5rem; width: 16rem; padding: .5rem;
    background: #1a1a1a; color: #fff; font-weight: 400; font-size: .8rem; text-align: left; z-index: 10; }
.tip-nc:hover .tip-nc__bubble { display: block; }
/* [10.2] Information portée uniquement par du contenu généré */
.promo-nc::after { content: " Offre de bienvenue : 80 € offerts à l'ouverture d'un compte Confort."; font-weight: 700; color: #2e8540; }
/* [3.2] Texte peu contrasté (#a0a0a0 sur blanc : 2,6:1) */
.note-nc { color: #a0a0a0; }
/* [10.6] Lien dans le texte non souligné, même couleur que le texte */
.link-nc { color: inherit; text-decoration: none; }
.frame-nc { border: 1px solid var(--color-border-light); background: #fff; }
.checklist-nc { line-height: 1.6; }
/* [13.8] Badge clignotant en continu (1 Hz, sans arrêt) */
.new-nc { display: inline-block; margin-left: .5rem; padding: .1rem .5rem; border-radius: .25rem; background: #d00;
    color: #fff; font-size: .875rem; vertical-align: middle; animation: blink-nc 1s steps(1) infinite; }
@keyframes blink-nc { 50% { visibility: hidden; } }
.carousel-nc { position: relative; min-height: 10rem; }
.carousel-nc__item { display: none; }
.carousel-nc__item.is-active { display: block; }
.quote-nc { font-size: 1.125rem; font-style: italic; }
.testimonial-author-nc { margin: .5rem 0; color: var(--color-muted); }
.faq-nc { border-bottom: 1px solid var(--color-border-light); padding: .75rem 0; }
.faq-nc__q { font-weight: 700; cursor: pointer; }
.faq-nc__q::before { content: "+ "; }
.faq-nc.is-open .faq-nc__q::before { content: "– "; }
.faq-nc__a { display: none; }
.faq-nc.is-open .faq-nc__a { display: block; }
.shortcuts-nc kbd { padding: 0 .3rem; border: 1px solid currentColor; border-radius: .2rem; }

/* ==========================================================================
   Connexion
   ========================================================================== */
/* [11.4] Étiquette rejetée à l'autre bout de la ligne, loin du champ */
.login-nc__row { display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 2rem; }
.login-nc__row input { flex: 0 1 60%; }
.label-far-nc { font-size: .8rem; color: #767676; }
/* [3.3] Bordure des champs peu contrastée (#dddddd sur blanc : 1,4:1) */
.input-nc, .nc input[type="text"].input-nc { border: 1px solid #ddd !important; }
.eye-nc { display: inline-flex; align-items: center; padding: 0 .5rem; cursor: pointer; color: #767676; }
.eye-nc .icon { width: 1.25rem; height: 1.25rem; }
.captcha-nc { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.error-nc { color: #d00; font-weight: 700; }
/* [3.2] Texte peu contrasté (#aaaaaa sur blanc : 2,3:1) */
.muted-nc { color: #aaa; }

/* ==========================================================================
   Espace client (commun)
   ========================================================================== */
.breadcrumb-nc { margin-bottom: 1rem; font-size: .9rem; }
.breadcrumb-nc a { margin-right: .25rem; }
.field-error-nc { color: #d00; font-size: .85rem; margin-left: .5rem; }
.form-field.has-error input, .form-field.has-error select, .form-field.has-error textarea { border-color: #d00 !important; }

/* ==========================================================================
   Tableau de bord
   ========================================================================== */
.banner-nc { display: block; width: 100%; height: 6rem; object-fit: cover; margin-top: -2rem; }
.h1-nc { font-size: 2rem; font-weight: 700; color: var(--color-primary); margin: 1rem 0; }
.promo-dash-nc { padding: .5rem 1rem; background: #fff4e5; border-radius: .25rem; }
/* [10.11] Largeur minimale fixe : défilement horizontal à 320 px */
.summary-nc { min-width: 42rem; }
.balance-nc.is-hidden-nc { filter: blur(.5rem); }
.hint-nc { font-size: .875rem; margin: .25rem 0 0; }
/* [3.2] Dates peu contrastées (#b0b0b0 sur blanc : 2,1:1) */
.date-nc { color: #b0b0b0; }
/* [3.1] Sens de l'opération porté uniquement par la couleur */
.amount-nc--credit { color: #2e8540; font-weight: 700; }
.amount-nc--debit  { color: #d00; font-weight: 700; }

/* ==========================================================================
   Détail du compte
   ========================================================================== */
.chart-box-nc img { max-width: 100%; height: auto; background: #fff; }
.chart-caption-nc { font-size: .875rem; font-style: italic; }
.rib-nc { border-collapse: collapse; }
.rib-nc td { padding: .25rem .75rem .25rem 0; }
.rib-nc tr:first-child td { font-weight: 700; }
.pagination-nc { display: flex; gap: .25rem; margin-top: 1rem; }
.pagination-nc a { padding: .25rem .6rem; border: 1px solid var(--color-border-light); text-decoration: none; }
.pagination-nc .is-current-nc { background: var(--color-primary); color: #fff; }

/* ==========================================================================
   Contacter un conseiller / Demande envoyée
   ========================================================================== */
/* [10.8] Masqué visuellement alors qu'il doit être ignoré : reste lu et atteignable au clavier */
.help-offscreen-nc { position: absolute; left: -9999px; top: auto; }
.pseudo-legend-nc { font-weight: 700; margin: 0 0 .5rem; }
.form-field--far-nc { display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 3rem; }
.form-field--far-nc label { order: 2; }
.form-field--far-nc input { flex: 0 1 60%; }
.counter-nc { font-size: .85rem; color: #767676; }
.thead-nc td { font-weight: 700; background: var(--color-tint); }
.redirect-nc { font-style: italic; }

/* ==========================================================================
   Indicateur d'étapes du virement
   ========================================================================== */
.steps-nc { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.5rem; }
.steps-nc__item { padding: .4rem .8rem; border-radius: 1rem; background: #eee; color: #333; }
/* [3.1] Étape en cours signalée uniquement par la couleur */
.steps-nc__item.is-current-nc { background: #2297b8; color: #fff; }

/* ==========================================================================
   Bénéficiaires
   ========================================================================== */
.beneficiary-card.is-internal-nc { border-left-color: #2e8540; }
.beneficiary-actions-nc { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.inline-form-nc { display: inline; margin: 0; }
.icon-button-nc { padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; }
.icon-link-nc { line-height: 0; }
/* [3.2] Avertissement orange clair (#f0a030 sur blanc : 2,1:1) */
.warning-nc { color: #f0a030; font-weight: 700; }
.fake-link-nc { color: var(--color-link); text-decoration: underline; cursor: pointer; }

/* ==========================================================================
   Virements
   ========================================================================== */
.fab-nc { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem;
    border-radius: 50%; background: var(--color-primary); color: #fff; font-size: 1.75rem; text-decoration: none; }
/* [10.11] Largeur minimale sans conteneur défilant */
.transfers-nc { min-width: 44rem; }
/* [10.3] Intitulés et valeurs dans deux blocs distincts, réalignés uniquement par la mise en forme */
.figures-nc { display: grid; gap: .25rem; margin-bottom: 1.5rem; }
.figures-nc__labels, .figures-nc__values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.figures-nc__labels span { font-size: .875rem; color: var(--color-muted); }
.figures-nc__values span { font-size: 1.25rem; font-weight: 700; color: var(--color-primary); }
/* [10.4] Hauteur fixe en pixels et débordement masqué : le texte agrandi est coupé */
.amount-box-nc { height: 40px; overflow: hidden; }
.amount-box-nc input { height: 40px; font-size: 16px; }
.chips-nc { display: flex; gap: .5rem; margin-top: .5rem; flex-wrap: wrap; }
.chips-nc span { padding: .2rem .7rem; border-radius: 1rem; background: var(--color-tint); cursor: pointer; font-size: .875rem; }
/* [12.8] Ordre visuel inversé par rapport à l'ordre du code */
.actions-reversed-nc { flex-direction: row-reverse; justify-content: flex-end; }
.timer-nc { font-weight: 700; color: #d00; }
/* [13.9] Contenu bloqué en orientation portrait */
.rotate-nc { display: none; padding: 1rem; background: #fff4e5; font-weight: 700; }
@media (orientation: portrait) and (max-width: 40em) {
    .rotate-nc { display: block; }
    .review-nc { display: none; }
}
.recap-nc td:first-child { width: 12rem; }
/* [13.10] Curseur à glisser */
.slider-nc { position: relative; width: min(22rem, 100%); height: 3.25rem; margin: 1.5rem 0 1rem;
    border-radius: 2rem; background: var(--color-tint); border: 2px solid var(--color-primary);
    user-select: none; touch-action: none; }
.slider-nc__track { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: var(--color-primary); font-weight: 700; }
.slider-nc__thumb { position: absolute; left: 0; top: 0; width: 3.1rem; height: 3.1rem; border-radius: 50%;
    background: var(--color-primary); color: #fff; font-size: 1.75rem; display: flex; align-items: center;
    justify-content: center; cursor: grab; }
/* [13.8] Confettis animés en continu */
.confetti-nc { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 50; }
.confetti-nc i { position: absolute; top: -2rem; width: .5rem; height: 1rem; background: #2297b8;
    animation: confetti-nc 7s linear infinite; }
.confetti-nc i:nth-child(3n) { background: #f0a030; }
.confetti-nc i:nth-child(3n+1) { background: #2e8540; }
@keyframes confetti-nc { to { transform: translateY(110vh) rotate(720deg); } }
/* [10.5] Texte blanc sur image de fond, sans couleur de fond de secours */
.done-banner-nc { padding: 1.5rem; border-radius: .5rem; color: #fff;
    background-image: url("banniere-espace-client.svg"); background-size: cover; }
.done-banner-nc h1 { color: #fff; margin-top: 0; }
