/* Lot ADS-CONSENTEMENT (02/11/2026) : bandeau de consentement. Couleurs locales, memes valeurs que les jetons clairs de obtp-ui.css : le site vitrine redefinit ces jetons en sombre sur <body>, le bandeau reste clair et lisible partout. */
/* Lot BANDEAU-COOKIES-BAS (09/11/2026, C472) : toujours fixe, hors du flux : bas de l'ecran sur telephone, carte compacte en bas a gauche sur ordinateur (voir la fin de ce bloc). La hauteur du bandeau est reservee en bas de page par rf-consentement.js (padding de <html>), rien ne bouge au chargement ni a la fermeture.
   Anciennes regles : .rfc { ... max-height: 100vh; ... border-top: 2px solid var(--rfc-bord); ... font-size: 16px; line-height: 1.45; ... } .rfc-int { ... padding: 16px; } .rfc-titre { margin: 0 0 4px; ... } .rfc-texte { margin: 0 0 12px; } .rfc-actions { ...; gap: 8px; } et, sous 560 px, 2 colonnes avec Personnaliser sur toute la largeur. */
.rfc { --rfc-fond: #ffffff; --rfc-texte: #0a0b0d; --rfc-bleu: #0047b3; --rfc-bord: #7c8392; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; max-height: 100vh; max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain; background: var(--rfc-fond); color: var(--rfc-texte); border-top: 1px solid var(--rfc-bord); box-shadow: 0 -4px 20px rgba(10, 11, 13, .18); font-size: 14px; line-height: 1.35; text-align: left; }
.rfc[hidden], .rfc-detail[hidden] { display: none; }
.rfc-int { max-width: 1040px; margin: 0 auto; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); }
.rfc-titre { margin: 0 0 2px; font-size: 15px; font-weight: 700; }
.rfc-texte { margin: 0 0 8px; }
.rfc a { color: var(--rfc-bleu); text-decoration: underline; }
.rfc-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.rfc .rfc-btn { padding: 6px 4px; font-size: 14px; }
.rfc-btn { min-height: 44px; padding: 8px 12px; border: 2px solid var(--rfc-bleu); border-radius: 8px; background: var(--rfc-bleu); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.rfc-btn-trois { background: var(--rfc-fond); color: var(--rfc-bleu); }
.rfc-btn:focus-visible, .rfc a:focus-visible, .rfc-case input:focus-visible { outline: 3px solid var(--rfc-texte); outline-offset: 2px; }
.rfc-detail { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rfc-bord); }
.rfc-ligne { margin: 0 0 12px; }
.rfc-case { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; cursor: pointer; }
.rfc-case input { flex: none; width: 24px; height: 24px; margin: 2px 0 0; }
.rfc-pied { margin: 8px 0 0; text-align: center; }
.rfc-pied a.rfc-gerer { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: inherit; text-decoration: underline; font-size: 14px; }
.rfc-pied a.rfc-gerer:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
/* Lot BANDEAU-COOKIES-BAS (C472) : grand ecran, carte compacte en bas a gauche */
@media (min-width: 720px) {
  .rfc { left: 16px; right: auto; bottom: 16px; width: 400px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); border: 1px solid var(--rfc-bord); border-radius: 12px; box-shadow: 0 8px 32px rgba(10, 11, 13, .28); }
  .rfc-int { padding: 12px 14px; }
  .rfc-droite { left: auto; right: 16px; } /* pose par rf-consentement.js seulement si la carte couvrirait le bouton principal du premier ecran */
}
/* Lot BANDEAU-COOKIES-BAS (C472, ne jamais cacher le bouton principal) : telephones de petite hauteur, pages en ancien style ou le bouton du haut suit un long texte : le bouton vient juste sous le titre. Regle independante du bandeau (rien ne bouge au chargement ni a la fermeture) ; ordre visuel seulement, HTML inchange. */
@media (max-width: 480px) and (max-height: 820px) {
  body:not(.page-accueil) .hero:has(> .ctas) { display: flex; flex-direction: column; }
  body:not(.page-accueil) .hero:has(> .ctas) > h1 { order: -2; }
  body:not(.page-accueil) .hero > .ctas { order: -1; }
}
/* Lot INSCRIPTION-RAPIDE (12/11/2026, C527 point 3 c, choix 3) : telephone (moins de 720 px de large), mise en page seulement, AUCUN mot change ni deplace.
   Titre en amorce sur la meme ligne que le texte (display: inline, gras garde), texte et titre a 12 px (exception au controle des polices, pour ce seul texte :
   outils/controles.py), interligne 1,2 fixe sur .rfc-int (la hauteur des lignes d'un texte en ligne vient du bloc parent), marges 3 px, boutons gardes a 44 px
   et a 14 px, « Tout refuser » identique a « Tout accepter ». Detail « Personnaliser » : 14 px et interligne 1,35, comme avant. Mesure a 390 x 844 : 190 px (22,5 %)
   avant, voir RAPPORT du lot apres. Grand ecran (carte en bas a gauche) : inchange.
   /inscription sur telephone : le bandeau est dans la colonne de la page (position static voulue, Lot INSCRIPTION-FIXE, src/views/login.js) ; au repos (aucun champ
   actif), .rfc-int redevient un bloc pour que l'amorce tienne sur la ligne du texte ; champ actif ou clavier : regles du bandeau reduit inchangees (titre sur sa ligne). */
@media (max-width: 719px) {
  .rfc-int { font-size: 12px; line-height: 1.2; padding-top: 3px; padding-bottom: calc(3px + env(safe-area-inset-bottom, 0px)); }
  .rfc-titre, .rfc-texte { display: inline; margin: 0; font-size: 12px; line-height: 1.2; }
  .rfc-actions { margin-top: 2px; }
  .rfc-detail { font-size: 14px; line-height: 1.35; }
  html:not(.rf-champ-actif):not(.rf-clavier-760) body.compte-inscription-fixe .rfc-int { display: block; }
}
/* (fin Lot INSCRIPTION-RAPIDE) */
/* Lot BANDEAU-CENTRE (13/11/2026, C541) : fenetre centree sur fond assombri, page bloquee jusqu'au choix (classe rfc-fenetre, posee par le serveur partout sauf sur
   les pages juridiques et leurs archives, qui gardent le bandeau compact ci-dessus). Selecteurs par id : ils passent devant les regles du bandeau compact, de la
   direction B (couleurs gardees) et de /inscription (src/views/login.js, bandeau dans la colonne), sans toucher a ces fichiers. Aucun mot change.
   Le fond (la section) couvre l'ecran et defile s'il le faut (petites hauteurs) ; la fenetre est centree par margin: auto (jamais coupee en haut).
   html.rfc-bloque (pose par rf-consentement.js tant que la fenetre est ouverte) : la page ne defile plus ; le reste de la page est inert (ni clic, ni focus).
   Ordinateur : la barre de defilement disparait ; sa largeur est rendue a <body> (padding-right pose par rf-consentement.js), rien ne bouge derriere le fond. */
html.rfc-bloque { overflow: hidden; overscroll-behavior: none; }
html.rfc-bloque body { overflow: hidden; }
#rf-consentement.rfc-fenetre { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2000; display: flex; flex: none; order: 0; width: auto; max-width: none; height: auto; min-height: 0; max-height: none; margin: 0; padding: 16px; box-sizing: border-box; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; background: rgba(10, 11, 13, .62); border: 0; border-radius: 0; box-shadow: none; font-size: 15px; line-height: 1.45; }
#rf-consentement.rfc-fenetre[hidden] { display: none; }
#rf-consentement.rfc-fenetre:focus { outline: none; }
#rf-consentement.rfc-fenetre .rfc-int { display: block; flex: none; width: 100%; max-width: 480px; min-height: 0; max-height: none; margin: auto; padding: 20px; box-sizing: border-box; overflow: visible; background: var(--rfc-fond); color: var(--rfc-texte); border: 1px solid var(--rfc-bord); border-radius: 12px; box-shadow: 0 12px 40px rgba(10, 11, 13, .35); font-size: 15px; line-height: 1.45; }
#rf-consentement.rfc-fenetre .rfc-titre { display: block; margin: 0 0 8px; font-size: 18px; line-height: 1.3; font-weight: 700; }
#rf-consentement.rfc-fenetre .rfc-texte { display: block; flex: none; min-height: 0; max-height: none; margin: 0 0 16px; overflow: visible; font-size: 15px; line-height: 1.45; }
#rf-consentement.rfc-fenetre .rfc-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; }
#rf-consentement.rfc-fenetre .rfc-actions .rfc-btn { flex: none; min-height: 48px; padding: 10px 8px; font-size: 15px; }
#rf-consentement.rfc-fenetre .rfc-actions .rfc-btn-trois { grid-column: 1 / -1; justify-self: center; min-width: 60%; min-height: 44px; padding: 8px 16px; font-size: 14px; }
#rf-consentement.rfc-fenetre .rfc-detail { flex: none; min-height: 0; max-height: none; margin-top: 16px; padding-top: 16px; overflow: visible; font-size: 14px; line-height: 1.4; }
#rf-consentement.rfc-fenetre .rfc-detail .rfc-btn { min-height: 44px; padding: 8px 16px; font-size: 14px; }
@media print { #rf-consentement.rfc-fenetre { display: none; } html.rfc-bloque, html.rfc-bloque body { overflow: visible; } }
/* (fin Lot BANDEAU-CENTRE) */
/* Lot COOKIES-BARRE (18/11/2026, C601 point 1) : la fenetre centree (bloc ci-dessus, garde mais inactif : le serveur ne pose plus rfc-fenetre) devient une barre fixee
   en bas d'ecran, sur toute la largeur, sans voile ni blocage (classe rfc-barre, posee par le serveur partout sauf sur les pages juridiques, qui gardent le bandeau
   compact). Aucun mot change. Selecteurs par id, comme BANDEAU-CENTRE : ils passent devant les regles du bandeau compact, de la direction B (couleurs gardees) et de
   /inscription (src/views/login.js, bandeau dans la colonne), sans toucher a ces fichiers. La hauteur de la barre est reservee en bas de page par rf-consentement.js
   (padding de <html>, bandeau en position fixe) : la fin de page reste atteignable. Telephone (moins de 720 px) : mise en page du bandeau compact (INSCRIPTION-RAPIDE,
   C527 : titre en amorce, 12 px, boutons a 44 px et 14 px), 3 boutons de meme largeur sur une ligne. Grand ecran : texte a gauche, boutons a droite. */
#rf-consentement.rfc-barre { position: fixed; top: auto; right: 0; bottom: 0; left: 0; z-index: 2000; display: block; flex: none; order: 0; width: auto; max-width: none; height: auto; min-height: 0; max-height: 100vh; max-height: 100dvh; margin: 0; padding: 0; box-sizing: border-box; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; background: var(--rfc-fond); color: var(--rfc-texte); border: 0; border-top: 1px solid var(--rfc-bord); border-radius: 0; box-shadow: 0 -4px 20px rgba(10, 11, 13, .18); font-size: 14px; line-height: 1.35; text-align: left; }
#rf-consentement.rfc-barre[hidden] { display: none; }
#rf-consentement.rfc-barre .rfc-int { display: block; flex: none; flex-direction: row; width: 100%; max-width: 1040px; min-height: 0; max-height: none; margin: 0 auto; padding: 3px 12px calc(3px + env(safe-area-inset-bottom, 0px)); box-sizing: border-box; overflow: visible; background: none; border: 0; border-radius: 0; box-shadow: none; font-size: 12px; line-height: 1.2; }
#rf-consentement.rfc-barre .rfc-titre, #rf-consentement.rfc-barre .rfc-texte { display: inline; flex: none; min-height: 0; max-height: none; margin: 0; overflow: visible; font-size: 12px; line-height: 1.2; }
#rf-consentement.rfc-barre .rfc-titre { font-weight: 700; }
#rf-consentement.rfc-barre .rfc-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 2px 0 0; padding: 0; }
#rf-consentement.rfc-barre .rfc-actions .rfc-btn { flex: none; min-height: 44px; padding: 6px 4px; font-size: 14px; }
#rf-consentement.rfc-barre .rfc-detail { flex: none; min-height: 0; max-height: none; margin-top: 8px; padding-top: 8px; overflow: visible; font-size: 14px; line-height: 1.35; }
#rf-consentement.rfc-barre .rfc-detail[hidden] { display: none; }
#rf-consentement.rfc-barre .rfc-ligne { margin: 0 0 8px; }
#rf-consentement.rfc-barre .rfc-detail .rfc-btn { min-height: 44px; padding: 8px 16px; font-size: 14px; }
@media (min-width: 720px) {
  #rf-consentement.rfc-barre .rfc-int { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: center; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); font-size: 14px; line-height: 1.4; }
  #rf-consentement.rfc-barre .rfc-titre { display: block; grid-column: 1; grid-row: 1; margin: 0 0 2px; font-size: 15px; line-height: 1.3; }
  #rf-consentement.rfc-barre .rfc-texte { display: block; grid-column: 1; grid-row: 2; font-size: 14px; line-height: 1.4; }
  #rf-consentement.rfc-barre .rfc-actions { grid-column: 2; grid-row: 1 / 3; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
  #rf-consentement.rfc-barre .rfc-actions .rfc-btn { padding: 8px 14px; white-space: nowrap; }
  #rf-consentement.rfc-barre .rfc-detail { grid-column: 1 / -1; grid-row: 3; }
}
/* Creation de compte en en-tete fixe (Lot INSCRIPTION-FIXE, body.compte-inscription-fixe, memes media que MEDIA_FIXE de src/views/login.js) : la page ne defile pas,
   seul le volet de la carte defile. Une barre en position fixe couvrirait le bas du volet (fin du formulaire, pied de page) sans qu'on puisse l'en sortir : la barre
   prend donc sa place en bas de la colonne (comme le bandeau d'avant BANDEAU-CENTRE), toujours au bas de l'ecran, et le volet se raccourcit d'autant. Rien n'est voile. */
@media screen and (max-width: 899px) and (min-height: 300px), screen and (min-width: 900px) and (max-height: 500px) and (min-height: 300px) and (pointer: coarse) {
  body.compte-inscription-fixe > #rf-consentement.rfc-barre { position: static; order: 2; flex: none; max-height: calc(var(--rf-h, 100vh) - 112px); }
}
@media screen and (max-height: 299px) and (max-width: 899px), screen and (max-height: 299px) and (pointer: coarse) {
  body.compte-inscription-fixe > #rf-consentement.rfc-barre { position: static; order: 2; flex: none; max-height: none; }
}
@media print { #rf-consentement.rfc-barre { display: none; } }
/* (fin Lot COOKIES-BARRE) */
/* Lot ADS-CONSENTEMENT-2 (02/11) : page « Gérer mes cookies », sans balise */
.rfc-page { --rfc-fond: #ffffff; --rfc-texte: #0a0b0d; --rfc-bleu: #0047b3; --rfc-bord: #7c8392; }
.rfc-page .rfc-actions { grid-template-columns: repeat(2, 1fr); margin-bottom: 12px; }
.rfc-page .compte-liens { display: flex; flex-wrap: wrap; gap: 16px; }
.rfc-page .compte-liens a { display: inline-flex; align-items: center; min-height: 44px; }
.sidebar-pied a.rfc-menu { min-height: 44px; }
@media print { .rfc, .rfc-pied { display: none; } }
