/* Malafi : la matière est le dossier papier (chemise, sous-chemises à onglets de couleur, cases à cocher, tampon).
   Fond clair froid, encre vert pétrole, tampon vermillon ; aplats ; IBM Plex Sans Arabic (texte et titres) + Reem Kufi (logo, grands chiffres). */
@font-face { font-family: "Plex Arabe"; src: url("polices/plex-arabe-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Arabe"; src: url("polices/plex-arabe-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Reem Kufi"; src: url("polices/reem-kufi.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --fond: #F3F5F2; --papier: #FFFFFF; --encre: #142322; --doux: #3B4A48; --trait: #D5DCD8;
  --petrole: #123A3C; --petrole-2: #1D5558; --tampon: #C8442A; --tampon-fond: #FBE9E4; --tampon-texte: #A83620;
  --sauge: #D6E8DA; --ciel: #D5E4F1; --rose: #F3DAD3; --lilas: #E1DBF1; --sable: #ECE6D6;
  --r: 10px; --pas: clamp(16px, 4vw, 28px);
  --texte: "Plex Arabe", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --titre: "Reem Kufi", "Plex Arabe", sans-serif;
}
* { box-sizing: border-box; touch-action: manipulation; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fond); color: var(--encre); font: 400 18px/1.75 var(--texte);
  text-rendering: geometricPrecision; -webkit-tap-highlight-color: transparent; overflow-wrap: anywhere;
}
a { color: var(--petrole-2); text-underline-offset: 3px; }
/* Titres en Plex Arabic SemiBold : en Reem Kufi, les points des lettres et les espaces entre mots se perdaient aux
   tailles de titre (porte 3 du 04/12, cinq lots sur cinq ; « يخصّك » illisible sous Chromium Android aussi). La kufi
   garde le logo et les grands chiffres. */
h1, h2, h3 { font-family: var(--texte); font-weight: 600; line-height: 1.35; margin: 0 0 .5em; color: var(--petrole); }
h1 { font-size: clamp(30px, 6.4vw, 48px); }
h2 { font-size: clamp(24px, 4.6vw, 32px); margin-top: 0; }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
.fr { font-size: max(15px, .86em); color: var(--doux); unicode-bidi: isolate; }  /* jamais sous 14 px (zero-defaut 04/12, texte-petit) */
[dir="ltr"] { text-align: left; }
.cadre { max-width: 1120px; margin: 0 auto; padding: 0 var(--pas); }

/* en-tête */
.entete { background: var(--petrole); color: #fff; }
.entete .cadre { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.logo { font: 700 30px/1.5 var(--titre); color: #fff; text-decoration: none; display: flex; align-items: baseline; gap: 10px; }
.logo small { font: 600 15px/1 var(--texte); color: #B9D3D0; letter-spacing: .02em; }
.entete .aller { color: #fff; font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center;
  padding: 0 16px; border: 1.5px solid #6F9C99; border-radius: var(--r); }

/* boutons */
.bouton, button.principal {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 10px 24px;
  border: 0; border-radius: var(--r); background: var(--tampon); color: #fff; font: 600 19px/1.35 var(--texte);
  text-decoration: none; cursor: pointer; text-align: center;
}
.bouton.second { background: var(--papier); color: var(--petrole); border: 1.5px solid var(--petrole); }
button.principal:disabled { background: #DDE3E0; color: #3E4C4A; cursor: default; }  /* lisible même inactif (porte 3 du 04/12) */
.bouton .fr, button.principal .fr { color: inherit; font-weight: 500; }  /* plein blanc : à .9 sur le rouge, la ligne française se lisait mal (porte 3 b94ef27d, 0381-1) */
button, input, select, textarea { font-family: var(--texte); text-rendering: inherit; }  /* les champs ne héritent pas du rendu de body (kit police-champ) */

/* bandeau d'accueil */
.ouverture { background: var(--petrole); color: #fff; padding: 28px 0 40px; }
.ouverture h1 { color: #fff; max-width: 20ch; }
.ouverture .reponse { font-size: 20px; max-width: 46ch; color: #E3EEEC; }
.ouverture .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; align-items: center; }
.ouverture .prix { font: 600 18px/1.4 var(--texte); color: #CFE2DF; }

/* mention obligatoire */
.mention { border-inline-start: 4px solid var(--tampon); background: var(--papier); padding: 14px 16px; border-radius: 0 var(--r) var(--r) 0;
  font-size: 16px; line-height: 1.7; }
.ouverture .mention { color: var(--encre); margin-top: 22px; max-width: 760px; }
.mention p { margin: 0; }
.mention p + p { margin-top: 8px; }

/* sections */
.bloc { padding: 40px 0; }
.bloc + .bloc { border-top: 1px solid var(--trait); }
.intro { max-width: 62ch; color: var(--doux); }

/* chemise de règles (4 plateformes) */
.regles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); margin-top: 18px; }
.regle { background: var(--papier); border-radius: var(--r); padding: 18px; border-top: 8px solid var(--ciel); position: relative; }
.regle:nth-child(2) { border-top-color: var(--sauge); }
.regle:nth-child(3) { border-top-color: var(--rose); }
.regle:nth-child(4) { border-top-color: var(--lilas); }
.regle h3 { font-size: 19px; margin-bottom: 8px; }
.regle .lieu { font: 600 15px/1.4 var(--texte); color: var(--tampon); display: block; margin-bottom: 4px; }
.regle p { font-size: 16.5px; margin: 0 0 .6em; }
.regle .fr { display: block; margin-top: 8px; }
.source { font-size: 15px; color: var(--doux); }
.source a { color: var(--doux); }

/* chiffres */
.chiffres { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.chiffre { background: var(--papier); border-radius: var(--r); padding: 18px; }
.chiffre b { display: block; font: 600 34px/1.2 var(--texte); color: var(--petrole); }
.chiffre p { margin: 6px 0 0; font-size: 16.5px; }
.alerte { background: var(--tampon-fond); border-radius: var(--r); padding: 16px 18px; margin-top: 16px; font-size: 16.5px; }
.alerte b { color: var(--tampon-texte); }

/* liste nationale (onglets de sous-chemises) */
.chemises { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin: 16px 0; }
.chemise { background: var(--papier); border-radius: var(--r); padding: 14px 16px; border-inline-start: 8px solid var(--sauge); }
.chemise:nth-child(4n+2) { border-inline-start-color: var(--ciel); }
.chemise:nth-child(4n+3) { border-inline-start-color: var(--rose); }
.chemise:nth-child(4n+4) { border-inline-start-color: var(--lilas); }
.chemise b { display: block; }
.chemise span { font-size: 15px; color: var(--doux); }

/* offre */
.offre { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; }
.contenu-offre { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contenu-offre li { background: var(--papier); border-radius: var(--r); padding: 12px 16px; }
.contenu-offre b { color: var(--petrole); }
.caisse { background: var(--papier); border-radius: var(--r); padding: 20px; border: 2px solid var(--petrole); }
.caisse .montant { font: 700 44px/1.1 var(--titre); color: var(--petrole); }

/* plateformes */
.plateformes { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.plateformes a { display: flex; flex-direction: column; justify-content: center; min-height: 64px; padding: 10px 16px; background: var(--papier);
  border-radius: var(--r); text-decoration: none; color: var(--encre); font-weight: 600; border: 1.5px solid var(--trait); }
.plateformes a span { font-weight: 400; font-size: 15px; color: var(--doux); }

/* pied */
.pied { background: var(--petrole); color: #E6F0EE; padding: 26px 0 34px; margin-top: 40px; font-size: 16px; }
.pied nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 14px; }
.pied a { color: #fff; min-height: 44px; display: inline-flex; align-items: center; }
.pied a.retract { font-weight: 600; flex-wrap: wrap; gap: 0 10px; }
.pied p { margin: 0 0 8px; max-width: 80ch; }

/* questionnaire */
.questionnaire { max-width: 720px; margin: 0 auto; padding: 22px var(--pas) 40px; }
.avance { height: 8px; background: var(--trait); border-radius: 4px; overflow: hidden; margin-bottom: 18px; }
.avance i { display: block; height: 100%; background: var(--tampon); width: 0; transition: width .2s; }
.etape-q h1 { font-size: clamp(26px, 5.4vw, 36px); }
.choix { display: grid; gap: 10px; margin: 16px 0 20px; }
.choix button {
  display: block; width: 100%; text-align: start; min-height: 60px; padding: 12px 16px; background: var(--papier);
  border: 1.5px solid var(--trait); border-radius: var(--r); font: 600 19px/1.45 var(--texte); color: var(--encre); cursor: pointer;
}
.choix button[aria-pressed="true"] { border-color: var(--petrole); box-shadow: inset 0 0 0 1.5px var(--petrole); background: #EAF2F1; }
.choix button .fr { display: block; font-weight: 400; }
.choix button .aide { display: block; font-weight: 400; font-size: 15.5px; color: var(--doux); margin-top: 4px; }
.nav-q { display: flex; gap: 10px; justify-content: space-between; }
.nav-q .retour { min-height: 48px; padding: 0 16px; border-radius: var(--r); border: 1.5px solid var(--trait); background: var(--papier);
  font: 600 17px var(--texte); color: var(--petrole); cursor: pointer; }

/* aperçu et dossier */
.groupe { background: var(--papier); border-radius: var(--r); margin: 14px 0; overflow: hidden; }
.groupe > h3 { margin: 0; padding: 12px 16px; font-size: 19px; background: var(--sauge); }
.groupe:nth-of-type(4n+2) > h3 { background: var(--ciel); }
.groupe:nth-of-type(4n+3) > h3 { background: var(--rose); }
.groupe:nth-of-type(4n+4) > h3 { background: var(--lilas); }
.groupe h3 .fr { font-family: var(--texte); font-weight: 400; margin-inline-start: 8px; }
.piece { padding: 12px 16px; border-top: 1px solid var(--trait); }
.piece:first-of-type { border-top: 0; }
.piece .titre-fr { font-weight: 600; display: block; }
.piece .expl { margin: 6px 0 0; font-size: 17px; }
.etiquettes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.etiquettes span { font-size: 15px; padding: 2px 10px; border-radius: 6px; background: var(--fond); color: var(--doux); }
.etiquettes span.fort { background: var(--tampon-fond); color: var(--tampon-texte); }
.case { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.case input { width: 26px; height: 26px; margin: 4px 0 0; flex: none; accent-color: var(--petrole); }
/* Le texte de la pièce prend toute la ligne, et le titre français s'aligne contre sa case : avant, chaque titre se
   calait sur la largeur de sa propre explication (porte 3 du 04/12, 1280 px : titres en zigzag, 200 px de vide). */
.case > span { flex: 1; min-width: 0; }
@media screen { .piece .titre-fr { text-align: right; } }
.verrou { color: var(--doux); font-size: 16px; }
.resume { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: baseline; }
.resume b { font: 700 40px/1 var(--titre); color: var(--petrole); }
.onglets { display: flex; gap: 6px; overflow-x: auto; margin: 16px 0 6px; padding-bottom: 2px; scrollbar-width: none; }
.onglets button { flex: none; min-height: 48px; padding: 0 16px; border-radius: var(--r) var(--r) 0 0; border: 0; background: var(--sable);
  font: 600 17px var(--texte); color: var(--encre); cursor: pointer; }
.onglets button[aria-selected="true"] { background: var(--petrole); color: #fff; }
.panneau { background: var(--papier); border-radius: 0 0 var(--r) var(--r); padding: 6px 0 14px; }
.outils { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
/* Même marge de 16 px dans les quatre onglets. La liste et les lettres ont un conteneur de plus que les règles et les étapes :
   sans « > div > », leurs boutons et leurs champs touchaient le bord (porte 5 du 05/12). Les sous-chemises vont d'un bord à l'autre. */
.panneau > ol, .panneau > .regle-liste, .panneau > div > p, .panneau > div > .outils, .panneau > div > form { margin-inline: 16px; }
.regle-liste { display: grid; gap: 12px; margin-top: 12px; }
.regle-liste .regle { border: 1px solid var(--trait); border-top-width: 8px; }
.adresse { white-space: pre-line; direction: ltr; text-align: left; background: var(--fond); padding: 10px 14px; border-radius: 8px;
  font-size: 16px; unicode-bidi: isolate; overflow-wrap: anywhere; }
.courriels { display: grid; gap: 14px; margin: 14px 0; }
.courriels > div { display: grid; gap: 6px; }
.courriels .domaine { white-space: nowrap; }
.courriels a.adresse { display: block; min-height: 44px; background: var(--papier); border: 1px solid var(--trait);
  color: var(--petrole); text-decoration: underline; text-underline-offset: 3px; }
.etapes { padding-inline-start: 1.4em; }
.etapes li { margin-bottom: 14px; }
.etapes b { display: block; color: var(--petrole); }

/* formulaires */
form.champs { display: grid; gap: 14px; max-width: 640px; }
label.champ { display: grid; gap: 6px; font-weight: 600; }
label.champ input, label.champ select, label.champ textarea {
  font: 400 18px/1.4 var(--texte); padding: 12px 14px; min-height: 52px; border: 1.5px solid #AEB9B5; border-radius: var(--r);
  background: #fff; color: var(--encre); width: 100%;
}
label.champ input[dir="ltr"] { text-align: left; }
label.champ input:focus, label.champ select:focus { outline: 3px solid #9CC3BF; border-color: var(--petrole); }
.accord { display: flex; gap: 12px; align-items: flex-start; font-size: 16.5px; cursor: pointer; }
.accord input { width: 26px; height: 26px; flex: none; margin-top: 3px; accent-color: var(--petrole); }
.message { padding: 14px 16px; border-radius: var(--r); background: #EAF2F1; }
.message.erreur { background: var(--tampon-fond); }

/* lettre */
.lettre { background: #fff; border: 1px solid var(--trait); border-radius: 6px; padding: 22px; margin: 14px 16px; font: 400 16px/1.6 "Plex Arabe", Georgia, serif;
  direction: ltr; text-align: left; white-space: pre-wrap; unicode-bidi: isolate; }

/* pages légales */
.texte-legal { max-width: 820px; margin: 0 auto; padding: 28px var(--pas); }
.texte-legal [dir="ltr"] { font-size: 16.5px; }
.texte-legal .valeur { display: block; text-align: right; }  /* valeur déclarée sous son étiquette arabe (mentions) */
.texte-legal .annonce-fr { margin-top: 32px; font-weight: 600; }

/* impression : l'onglet affiché. Liste : en français, cases, sans les explications ; lettres : la lettre seule. */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 11pt; color: #000; }
  .entete, .pied, .onglets, .outils, .nav-q, .resume, .expl, .etiquettes, .source, .ecran-seul, form.champs, #note-delai,
  .groupe > h3 .ar, #dossier .bloc > h1:not(.imprime-seul), .panneau > div > p { display: none !important; }
  .imprime-seul { display: block !important; }
  .bloc { padding: 0; }
  .panneau, .groupe { background: #fff; border: 0 !important; margin: 0 !important; }
  .groupe > h3 { background: #fff !important; border-bottom: 1.5px solid #000; color: #000; padding: 8px 0; margin-top: 10px; }
  .groupe > h3 .fr { font-size: 12pt; color: #000; margin: 0; }
  .piece { padding: 5px 0; break-inside: avoid; direction: ltr; text-align: left; }
  .piece .titre-fr { font-weight: 400; }
  .piece .imprime-seul { font-size: 9.5pt; color: #333; margin-inline-start: 38px; }
  .case input { width: 14px; height: 14px; }
  body[data-vue="lettres"] #dossier .bloc > .imprime-seul { display: none !important; }
  #autres-pieces { display: block !important; direction: ltr; text-align: left; background: #fff; border: 0; padding: 8px 0 0; font-size: 9.5pt; color: #000; }
  #autres-pieces .ar, #autres-pieces a { display: none !important; }
  .lettre { border: 0; margin: 0; padding: 0; font-size: 12pt; color: #000; }
}
.imprime-seul { display: none; }

@media (min-width: 900px) {
  body { font-size: 18.5px; }
  .ouverture { padding: 48px 0 60px; }
  .ouverture .cadre { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: end; }
  .ouverture .mention { margin-top: 0; }
}
.apres { margin-top: 16px; }
.verrou { display: block; }
/* 04/12 01:10 : défauts vus au premier rendu */
[tabindex="-1"]:focus { outline: none; }
.groupe > h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.groupe > h3 .fr { margin: 0; }
.accord .fr { display: block; margin-top: 4px; }
button.principal, .bouton { flex-direction: column; gap: 2px; }
button.principal .fr, .bouton .fr { display: block; font-size: 15px; }
.pied a .fr { color: #E6F0EE; font-weight: 400; }
.nom-fr { margin: 4px 0 0; color: #CFE2DF; font-size: 17px; text-align: right; }
button.principal, .bouton { text-align: center; }
.resume > .fr { flex-basis: 100%; text-align: right; }
.choix-lettres { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.choix-lettres .bouton { width: 100%; }
/* Une source par ligne : des liens français enchaînés dans un paragraphe arabe s'entremêlent (rendu du 04/12). */
.source a { display: table; margin-block: 2px; }
.source .lu { display: block; }
/* Liste de sources françaises : liste arabe (puces à droite, sous le titre « المصادر »), chaque lien isolé de gauche à
   droite. Le bloc de gauche à droite de la porte 2 du 04/12 laissait les puces à gauche sous un titre à droite (porte 3,
   37153e20) ; un lien long qui se coupe reste lisible ligne à ligne. */
ul.sources { padding-inline-start: 1.2em; }
ul.sources li { margin-block: 4px; }
/* Pied toujours en bas : sur une page courte (404, lien invalide), plus de bande vide sous le pied (porte 2 du 04/12). */
@media screen {
  body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
  main { flex: 1 0 auto; }
}
#dossier > #chargement, #lien-invalide { margin-top: 28px; }
/* Onglets du dossier : les quatre tiennent dans la largeur d'un téléphone (kit 04/12 : la barre défilait et cachait
   « قائمتك ») ; le panneau fait au moins un écran pour que changer d'onglet ne fasse rien remonter sous le doigt. */
.panneau { min-height: 100vh; min-height: 100svh; }
@media (max-width: 640px) {
  .onglets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; overflow: visible; }
  .onglets button { padding: 8px 4px; min-height: 56px; font-size: 15px; line-height: 1.25; white-space: normal; text-align: center; }
}
@media print { .panneau { min-height: 0; } }

/* offre en français (loi Toubon) et vendeur près du prix : relecture légale du 04/12 */
.vendeur { margin: 10px 0; }
.offre-fr { text-align: left; border-top: 1px solid var(--trait); margin-top: 14px; padding-top: 12px; font-size: inherit;
  line-height: 1.55; }
.offre-fr p { margin: 0 0 8px; }
.montant small { font-size: .45em; font-weight: 600; }
.accord .fr, .caisse .mention [lang=fr], #commander .fr { font-size: 1em; color: inherit; opacity: 1; }
#commander { flex-direction: column; gap: 2px; }
#autres-pieces > span { display: block; }
#autres-pieces > span.fr { margin-top: 4px; }
#autres-pieces > a { display: inline-block; margin-top: 6px; }

/* Casseur 04/12 16:07 : bouton de commande toujours touchable (il dit quoi cocher), cibles tactiles de 44 px partout,
   français du bouton centré comme l'arabe, cartes de règles qui n'ont pas l'air de boutons. */
#commander .fr { text-align: center; text-wrap: balance; }
.source a { padding-block: 12px; margin-block: 0; }
.vendeur a, .intro a { padding-block: 12px; }
.logo { min-height: 44px; align-items: center; }
.accord input { width: 30px; height: 30px; }
.accord { min-height: 44px; }
.accord + .accord { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--trait); }  /* deux consentements, deux blocs (porte 3 c7483049) */
/* carte verrouillée : contour pointillé fin, onglet de couleur plein (porte 3 du 04/12 : un onglet de 8 px en tirets
   se lisait comme un rendu cassé) */
.chemise { background: transparent; border: 1px dashed var(--trait); border-inline-start: 8px solid var(--sauge); cursor: default; }
.chemise:nth-child(4n+2) { border-inline-start-color: var(--ciel); }
.chemise:nth-child(4n+3) { border-inline-start-color: var(--rose); }
.chemise:nth-child(4n+4) { border-inline-start-color: var(--lilas); }
/* Un champ de plusieurs lignes grandit avec son texte au lieu de défiler sous ses bords (porte 3) */
label.champ textarea { field-sizing: content; min-height: calc(4lh + 24px); }
@media print { h3, .groupe h3 .fr { text-align: left; } .groupe > h3 { direction: ltr; justify-content: flex-start; } }  /* feuille française : intitulés à gauche (porte 3) */

/* Fragment latin cité dans une phrase arabe : un seul bloc, jamais coupé au milieu de l'arabe (porte 5, 04/12). */
bdi.cite { display: inline-block; max-width: 100%; }
/* Dans un lien, l'isolat reste en ligne : le soulignement ne descend pas dans un inline-block (Superviseur Business
   04/12 18:09, liens de source au soulignement coupé). */
a bdi.cite { display: inline; unicode-bidi: isolate; }
/* Libellé français d'un titre : passe à la ligne d'un bloc, jamais coupé (« Mentions / légales », porte 3 du 04/12) */
h1 > .fr, h2 > .fr { display: inline-block; }
/* À côté du prix, la mention arabe en Plex : en kufi à cette taille, ses points se perdaient (porte 3 du 04/12) */
.montant small { font-family: var(--texte); font-weight: 600; }
/* Lettre française : une ligne saisie en arabe (adresse) prend sa propre direction, sans déplacer ses voisines */
#apercu-lettre, #apercu-lettre * { unicode-bidi: plaintext; }
/* Titre du dossier rouvert ailleurs : même colonne que les questions (deux colonnes décalées à 1280, porte 3 du 04/12) */
#accueil-dossier { max-width: 720px; margin-inline: auto; box-sizing: border-box; padding: 40px var(--pas) 0; }
#accueil-dossier + .questionnaire { border-top: 0; }
bdi.cite.long { display: inline; unicode-bidi: isolate; }  /* quatre mots et plus : coule avec le texte (typo.classe_isolat) */
.colle { white-space: nowrap; display: inline-block; line-height: normal; }  /* bloc en ligne + sa ponctuation (typo._bdi, malafi.js isolats) */
span.citation { display: block; direction: ltr; text-align: right; text-wrap: balance; }  /* citation française longue sur sa ligne, son point compris : lue de gauche à droite, calée à droite, sinon le point précédait « française » quand elle passe à deux lignes (typo._bdi, malafi.js isolats) */
/* Titres équilibrés : jamais un mot seul sur la dernière ligne (« منصّتك », porte 3 du 04/12) */
h1, h2 { text-wrap: balance; }
/* Champ de date en français (jj/mm/aaaa, chiffres latins) comme la lettre, quelle que soit la langue de la page */
input[type=date] { direction: ltr; text-align: right; }

/* Porte 3 du 04/12 (37153e20) */
.annonce-fr { font-weight: 600; }  /* une ligne arabe annonce chaque bloc français (conditions, confidentialité, offre, lettre d'exemple) */
.texte-legal .annonce-fr { margin-top: 32px; }
.ouverture .mention { background: transparent; color: #E4ECEA; border: 0; border-top: 1px solid rgba(255,255,255,.25);
  border-radius: 0; padding: 16px 0 0; }  /* identité du service, pas une alerte : ni liseré rouge ni carte blanche */
label.champ input { text-overflow: ellipsis; }  /* valeur plus longue que le champ : « … » plutôt qu'une lettre tronquée */
.case input, .accord input { appearance: none; -webkit-appearance: none; background: #fff; border: 2px solid var(--petrole);
  border-radius: 5px; display: grid; place-content: center; cursor: pointer; }  /* contour lisible (1,6:1 avant) */
.case input:checked, .accord input:checked { background: var(--petrole) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.case input:focus-visible, .accord input:focus-visible { outline: 3px solid #9CC3BF; outline-offset: 2px; }
#form-renoncer + p { margin-top: 28px; }
h1 .sous-titre { display: block; font-size: .7em; font-weight: 500; }  /* titre imprimé : plateforme et démarche sur leur ligne */
.ouverture .mention p:first-child { font-size: 18px; }  /* arabe à 16 px se lisait comme du 13 px sur le vert (porte 3, 2cbd2ef4) */
.annonce-fr + .offre-fr { border-top: 0; margin-top: 0; padding-top: 0; }
.caisse .annonce-fr, .apercu .annonce-fr { border-top: 1px solid var(--trait); margin-top: 14px; padding-top: 12px; }  /* le trait passe au-dessus de l'annonce */
/* caisse : mention, accords, bouton et message ne se touchent jamais (porte 3 c7483049 et captures du 05/12) */
.caisse .mention { margin: 18px 0; }
.caisse #commander { margin-top: 22px; }
.caisse .message { margin: 14px 0 0; }
/* porte 3 dfc729d0 : « modifier mes réponses » ne touche plus la caisse ; exemple de date lisible dans un champ vide */
.apercu .nav-q { margin-top: 18px; }
::placeholder { color: #55645F; opacity: 1; }
