/* Chinage vetements - feuille de style unique, pensee pour le telephone.

   Parti pris : le minimum de traits. Ce qui separe deux blocs, c'est l'espace
   et le fond, pas une bordure. La couleur ne sert qu'a une chose : dire si la
   piece se prend ou se laisse. Tout le reste est en gris chaud. */

:root {
  color-scheme: dark;

  --fond: #141110;
  --carte: #1e1a18;
  --creux: #272220;          /* champs, pastilles, zones en retrait */
  --trait: rgba(255, 255, 255, .08);
  --texte: #f2ede6;
  --gris: #9b9183;

  --accent: #f2ede6;         /* boutons principaux : clairs sur fond sombre */
  --sur-accent: #17130f;
  --entete: #0e0c0b;

  /* Une seule couleur par verdict, declinee en texte, fond discret, fond plein. */
  --vert: #6fcf97;
  --vert-creux: rgba(111, 207, 151, .13);
  --vert-fort: #2c7a52;
  --rouge: #f0897c;
  --rouge-creux: rgba(240, 137, 124, .13);
  --rouge-fort: #a8332a;
  --or: #e0b45f;
  --or-creux: rgba(224, 180, 95, .13);
  --or-fort: #8d6a1e;

  --rayon: 16px;
  --rayon-petit: 11px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  padding-bottom: 92px;
  -webkit-font-smoothing: antialiased;
}

.page { max-width: 620px; margin: 0 auto; padding: 16px; }

/* --- En-tete ------------------------------------------------------------ */

header.haut {
  position: sticky; top: 0; z-index: 20;
  background: var(--entete); color: var(--texte);
  padding: 13px 16px;
}
header.haut .rangee {
  max-width: 620px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
}
header.haut h1 { font-size: 16px; margin: 0; font-weight: 600; }
header.haut h1.logo { line-height: 0; }
header.haut h1.logo img { display: block; height: 30px; width: auto; }
header.haut .titre_page { font-size: 13px; color: var(--gris); margin: 3px 0 0; }
header.haut .titre_page:empty { display: none; }
header.haut .date { font-size: 13px; color: var(--gris); margin: 0; }
header.haut a { color: var(--gris); text-decoration: none; font-size: 14px; }
.pousse { margin-left: auto; }

/* --- Cartes ------------------------------------------------------------- */

.carte {
  background: var(--carte);
  border-radius: var(--rayon);
  padding: 18px 16px;
  margin-bottom: 14px;
}
.carte h2 {
  font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--gris); margin: 0 0 14px; font-weight: 600;
}
.carte h2:not(:first-child) { margin-top: 26px; }
.carte p { margin: 0 0 12px; }

/* --- Sections depliables ------------------------------------------------ */

details.carte.pliable { padding: 0; }
details.carte.pliable > summary {
  display: flex; align-items: center; gap: 12px;
  padding: 17px 16px; cursor: pointer; list-style: none;
}
details.carte.pliable > summary::-webkit-details-marker { display: none; }
details.carte.pliable > summary::marker { content: ""; }

.titre_plie { font-size: 16px; font-weight: 600; }
.apercu_plie {
  font-size: 13px; color: var(--gris); margin-left: auto;
  text-align: right; padding-left: 10px;
}
/* Le chevron pivote a l'ouverture. */
details.carte.pliable > summary::after {
  content: ""; flex: 0 0 auto; width: 8px; height: 8px;
  border-right: 1.5px solid var(--gris); border-bottom: 1.5px solid var(--gris);
  transform: rotate(45deg); margin-top: -4px;
  transition: transform .18s ease;
}
details.carte.pliable[open] > summary::after {
  transform: rotate(-135deg); margin-top: 3px;
}
.dedans_plie { padding: 0 16px 18px; }
.dedans_plie > :last-child { margin-bottom: 0; }

/* --- Textes ------------------------------------------------------------- */

.gros { font-size: 30px; font-weight: 600; letter-spacing: -.6px; }
.moyen { font-size: 19px; font-weight: 600; }
.mini { font-size: 13px; color: var(--gris); line-height: 1.45; }
.mini_texte { font-size: 14px; line-height: 1.45; }
.barree { text-decoration: line-through; color: var(--gris); }
.conseil { margin: -4px 0 14px; }
.vert { color: var(--vert); }
.rouge { color: var(--rouge); }
.portrait { white-space: pre-wrap; font-size: 15px; line-height: 1.6; }

/* --- Lignes ------------------------------------------------------------- */

.ligne {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--trait);
}
.ligne:last-child { border-bottom: 0; padding-bottom: 0; }
.ligne:first-child { padding-top: 0; }
.ligne .fin { margin-left: auto; text-align: right; white-space: nowrap; }
a.lien_ligne { color: inherit; text-decoration: none; }

/* Pastilles : un fond discret suffit, pas de contour. */
.etiquette, .pastille {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  background: var(--creux); color: var(--gris);
}
.pastille {
  min-width: 42px; text-align: center; font-size: 14px;
  font-variant-numeric: tabular-nums; color: var(--texte);
}
.etiquette.souci, .pastille.laisse { background: var(--rouge-creux); color: var(--rouge); }
.pastille.prend { background: var(--vert-creux); color: var(--vert); }
.pastille.limite { background: var(--or-creux); color: var(--or); }

/* --- Photos ------------------------------------------------------------- */

.vignette {
  width: 52px; height: 52px; border-radius: 10px; object-fit: cover;
  background: var(--creux); flex: 0 0 auto;
}
.grande_photo {
  width: 100%; border-radius: var(--rayon); margin-bottom: 14px;
  background: var(--carte); display: block;
}
.apercu { display: none; width: 100%; border-radius: var(--rayon); margin-bottom: 14px; }

/* --- Passer d'une piece a l'autre -------------------------------------- */

.navigation_pieces {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 12px;
}
.navigation_pieces .fleche {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex: 0 0 auto;
  border-radius: 999px; border: 0;
  background: var(--creux); color: var(--texte);
  font-size: 22px; line-height: 1; text-decoration: none;
}
.navigation_pieces .fleche:active { opacity: .6; }
.navigation_pieces .fleche.vide { opacity: .2; }
.navigation_pieces .rang { font-size: 13px; color: var(--gris); }

/* --- La photo plein ecran, les infos posees dessus --------------------- */

.photo_ecran {
  position: fixed; top: var(--haut-entete, 58px); left: 0; right: 0; bottom: 0;
  z-index: 0; background: #000;
}
.photo_ecran img { width: 100%; height: 100%; object-fit: contain; display: block; }
.photo_ecran .navigation_pieces {
  position: absolute; top: 12px; left: 0; right: 0;
  max-width: 620px; margin: 0 auto; padding: 0 16px;
}
.photo_ecran .navigation_pieces .fleche {
  background: rgba(0, 0, 0, .45); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.photo_ecran .navigation_pieces .rang {
  color: #fff; background: rgba(0, 0, 0, .45); padding: 5px 12px;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

/* Tout le reste defile par-dessus la photo. */
.par_dessus { position: relative; z-index: 1; pointer-events: none; }
.par_dessus > * { pointer-events: auto; }
.par_dessus > .vide_photo {
  pointer-events: none;
  height: calc(100svh - var(--haut-entete, 58px) - var(--haut-bandeau, 130px) - 104px);
  min-height: 80px;
}
.par_dessus .carte {
  background: rgba(30, 26, 24, .82);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.bandeau_verdict { margin: 0 -16px 14px; }

/* Le verdict pose sur la photo : un degrade le garde lisible. */
.sur_photo {
  padding: 34px 16px 16px; color: #fff;
  background: linear-gradient(to top,
    rgba(0, 0, 0, .94) 20%, rgba(0, 0, 0, .55) 65%, rgba(0, 0, 0, 0));
}
.sur_photo .tourne { border-color: rgba(255,255,255,.3); border-top-color: #fff; }
.attente_verdict {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: rgba(255, 255, 255, .85);
}

.verdict_photo {
  display: flex; align-items: center; gap: 12px;
  font-size: 19px; font-weight: 600;
}
.note_photo {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 50px; padding: 5px 12px; border-radius: 999px;
  font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, .16);
}
.sur_photo.prend .note_photo { background: var(--vert-fort); }
.sur_photo.limite .note_photo { background: var(--or-fort); }
.sur_photo.laisse .note_photo { background: var(--rouge-fort); }

/* Le premier coup d'oeil, pendant que le verdict se prepare. Chaque mot
   apparait l'un apres l'autre : l'attente devient vivante. */
.mots_cles { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.mots_cles span {
  background: rgba(255, 255, 255, .17); border-radius: 999px;
  padding: 4px 11px; font-size: 13px; color: #fff;
  animation: apparaitre .35s ease both;
}

/* La photo WhatsApp en cours de lecture, coins arrondis, avec un balayage. */
.lecture_direct { margin-bottom: 14px; }
.lecture_photo {
  position: relative; overflow: hidden; border-radius: 22px;
  background: #000; max-width: 280px; margin: 8px auto;
}
.lecture_photo img {
  width: 100%; max-height: 340px; object-fit: cover; display: block;
}
.lecture_balayage { display: none; }
.lecture_photo.scan .lecture_balayage {
  display: block; position: absolute; left: 0; right: 0; height: 36%;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.45), rgba(255,255,255,0));
  animation: balayage 1.8s ease-in-out infinite;
}
@keyframes balayage { from { top: -36%; } to { top: 100%; } }
.infos_lecture { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.infos_lecture span {
  background: var(--carte); border: 1px solid var(--trait);
  border-radius: 999px; padding: 4px 11px; font-size: 13px; font-weight: 600;
}

/* Taille, marque, prix : en pastilles sur la photo. */
.infos_photo { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.infos_photo span {
  background: rgba(255,255,255,.18); border-radius: 999px;
  padding: 3px 10px; font-size: 13px; font-weight: 600;
}
.mots_cles span:nth-child(2) { animation-delay: .07s; }
.mots_cles span:nth-child(3) { animation-delay: .14s; }
.mots_cles span:nth-child(4) { animation-delay: .21s; }
.mots_cles span:nth-child(5) { animation-delay: .28s; }
.mots_cles span:nth-child(6) { animation-delay: .35s; }
@keyframes apparaitre {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

.nom_photo { font-size: 14px; color: rgba(255,255,255,.9); margin-top: 7px; }
.resume_photo {
  font-size: 13px; color: rgba(255,255,255,.78); margin-top: 4px; line-height: 1.5;
}

/* Taille, marque, prix : pastilles posees sur la photo. */
.infos_photo { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.infos_photo span {
  background: rgba(255, 255, 255, .16); border-radius: 999px;
  padding: 4px 11px; font-size: 13px;
}
.infos_photo i { font-style: normal; opacity: .7; }
.infos_photo .revente { background: var(--or-fort); }

/* --- Le verdict, version carte ----------------------------------------- */

.verdict_bandeau {
  display: flex; align-items: center; gap: 18px;
  border-radius: var(--rayon); padding: 20px 18px; margin-bottom: 14px;
  color: #fff;
}
.verdict_bandeau.prend { background: var(--vert-fort); }
.verdict_bandeau.limite { background: var(--or-fort); }
.verdict_bandeau.laisse { background: var(--rouge-fort); }
.verdict_note {
  font-size: 42px; font-weight: 600; line-height: 1; flex: 0 0 auto;
  text-align: center; font-variant-numeric: tabular-nums;
}
.verdict_note small {
  display: block; font-size: 11px; opacity: .7; letter-spacing: .05em;
}
.verdict_mot { font-size: 20px; font-weight: 600; }
.verdict_resume { margin: 5px 0 0; font-size: 14px; line-height: 1.5; opacity: .9; }

.fiche_courte { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.fiche_courte span {
  background: var(--creux); border-radius: 999px;
  padding: 6px 13px; font-size: 14px;
}
.fiche_courte i { font-style: normal; color: var(--gris); }

/* --- Prix de revente ---------------------------------------------------- */

/* Le prix est l'information qui decide l'achat : la carte se distingue par un
   fond chaud, sans contour. */
.carte.prix_revente { background: var(--or-creux); }
.par_dessus .carte.prix_revente { background: rgba(224, 180, 95, .16); }

.prix_tete {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; margin-bottom: 12px;
}
.prix_gros {
  font-size: 34px; font-weight: 600; color: var(--or);
  letter-spacing: -.8px; line-height: 1.1;
}
.fourchette { text-align: right; font-size: 15px; color: var(--texte); }
.fourchette .mini { display: block; }

.prix_exemples { margin-top: 6px; }
.prix_exemples > summary {
  font-size: 13px; color: var(--gris); cursor: pointer; padding: 8px 0;
  list-style: none;
}
.prix_exemples > summary::-webkit-details-marker { display: none; }
.prix_exemples > summary::before { content: "› "; }
.prix_exemples[open] > summary::before { content: "⌄ "; }

/* --- Les pieces en cours d'analyse, qui defilent sur le cote ----------- */

.carrousel {
  display: flex; gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  margin: 0 -16px 14px; padding: 0 16px 4px;
  scrollbar-width: none;
}
.carrousel::-webkit-scrollbar { display: none; }
.carte_piece {
  position: relative; flex: 0 0 82%; scroll-snap-align: center;
  border-radius: var(--rayon); overflow: hidden; background: #000;
  aspect-ratio: 3 / 4; text-decoration: none; color: #fff;
}
.carte_piece img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- Le viseur ---------------------------------------------------------- */

.viseur {
  position: relative; margin-bottom: 14px;
  border-radius: var(--rayon); overflow: hidden;
  background: #000; aspect-ratio: 3 / 4;
}
.viseur video, .viseur img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.flash {
  position: absolute; inset: 0; background: #fff; opacity: 0;
  pointer-events: none; transition: opacity .18s ease;
}
.flash.eclair { opacity: .85; transition: none; }

.declencheur {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  width: 64px; height: 64px; border-radius: 999px;
  background: #fff; border: 4px solid rgba(255, 255, 255, .4);
  cursor: pointer; padding: 0;
}
.declencheur:active { transform: translateX(-50%) scale(.94); }
.declencheur:disabled { opacity: .45; }

.reprendre {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  padding: 11px 20px; border-radius: 999px; border: 0;
  background: rgba(255, 255, 255, .95); color: #17130f;
  font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}

/* La photo prise, qui descend vers la liste d'analyse. */
.vignette_vol {
  position: fixed; z-index: 60; pointer-events: none;
  object-fit: cover; border-radius: var(--rayon);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .6);
}

.attente_camera {
  text-align: center; color: var(--gris); font-size: 14px;
  padding: 30px 16px; margin-bottom: 14px;
  border-radius: var(--rayon); background: var(--carte);
}
.etat_envoi {
  text-align: center; font-size: 14px; color: var(--gris);
  padding: 13px; background: var(--carte); border-radius: var(--rayon);
  margin-bottom: 12px;
}

/* --- Choisir une photo -------------------------------------------------- */

.photo_choix { display: block; margin-bottom: 12px; }
.photo_choix input { position: absolute; opacity: 0; width: 0; height: 0; }
.photo_choix .faux_bouton {
  display: block; text-align: center; padding: 24px 16px;
  border-radius: var(--rayon); background: var(--carte);
  font-weight: 600; cursor: pointer;
}
.photo_choix input:focus + .faux_bouton { outline: 2px solid var(--accent); }
.photo_choix.galerie { margin-bottom: 12px; }
.lien_galerie {
  display: block; text-align: center; padding: 14px;
  font-size: 15px; color: var(--gris);
  border-radius: var(--rayon); background: var(--carte); cursor: pointer;
}

/* Champs secondaires de l'ecran Chiner, replies par defaut. */
.infos_pliees { margin-bottom: 14px; }
.infos_pliees > summary {
  list-style: none; cursor: pointer; padding: 12px 2px;
  font-size: 14px; color: var(--gris);
}
.infos_pliees > summary::-webkit-details-marker { display: none; }
.infos_pliees > summary::before { content: "› "; }
.infos_pliees[open] > summary::before { content: "⌄ "; }

/* --- La photo de l'etiquette ------------------------------------------- */

.bouton_etiquette {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  padding: 9px 13px; border-radius: 999px; cursor: pointer;
  background: rgba(0, 0, 0, .55); color: #fff;
  font-size: 13px; font-weight: 600; border: 0;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.bouton_etiquette input { position: absolute; opacity: 0; width: 0; height: 0; }
.bouton_etiquette.fait { background: var(--vert-fort); }
.bouton_etiquette.fait span::after { content: " ✓"; }

.etiquette_fiche { position: relative; }
.etiquette_fiche input { position: absolute; opacity: 0; width: 0; height: 0; }
.fiche_etiquette { margin-bottom: 12px; }
.photo_etiquette {
  width: 100%; max-height: 32vh; object-fit: contain;
  background: var(--carte); border-radius: var(--rayon);
  margin-bottom: 14px; display: block;
}

/* --- Les raisons du verdict -------------------------------------------- */

.raison { border-top: 1px solid var(--trait); padding: 16px 0 6px; }
.raison:first-of-type { border-top: 0; padding-top: 0; }
.tete_raison { display: flex; gap: 12px; align-items: flex-start; }
.tete_raison .mini { text-transform: lowercase; }

.signe {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px; margin-top: 2px;
}
.raison.pour .signe, .signe.pour { background: var(--vert-creux); color: var(--vert); }
.raison.contre .signe, .signe.contre { background: var(--rouge-creux); color: var(--rouge); }

.preuve {
  width: 52px; height: 52px; flex: 0 0 auto; margin-left: auto;
  border-radius: 10px; object-fit: cover; background: var(--creux);
}

/* --- Donner son avis ---------------------------------------------------- */

.avis { margin: 14px 0 4px 34px; }
.carte > .avis { margin-left: 0; }
.question_avis { font-size: 13px; color: var(--gris); margin-bottom: 9px; }
.pouces { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pouce {
  padding: 13px 8px; border-radius: var(--rayon-petit); cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600; border: 0;
  background: var(--creux); color: var(--texte);
}
.pouce.oui { background: var(--vert-creux); color: var(--vert); }
.pouce.non { background: var(--rouge-creux); color: var(--rouge); }
.pouce:active { transform: scale(.97); }
.correction label.champ { margin-bottom: 10px; }

/* --- Les conversations WhatsApp a cocher ------------------------------- */

.fils { margin: 0 0 14px; }
.fil {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 0; border-bottom: 1px solid var(--trait); cursor: pointer;
}
.fil:last-child { border-bottom: 0; }
.fil input { width: 21px; height: 21px; flex: 0 0 auto; accent-color: var(--accent); }
.nom_fil { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* --- Attente ------------------------------------------------------------ */

.carte.attente { display: flex; align-items: center; gap: 16px; }
.tourne {
  width: 26px; height: 26px; flex: 0 0 auto; border-radius: 999px;
  border: 2.5px solid var(--trait); border-top-color: var(--accent);
  animation: tourner .9s linear infinite;
}
.tourne.petit_rond {
  display: inline-block; width: 17px; height: 17px; border-width: 2px;
  vertical-align: middle;
}
@keyframes tourner { to { transform: rotate(360deg); } }

/* Mise a jour prete pendant qu'on ecrit : on propose, on n'impose pas. */
.annonce_maj {
  position: fixed; left: 16px; right: 16px; z-index: 40;
  bottom: calc(80px + env(safe-area-inset-bottom));
  padding: 14px 16px; border-radius: var(--rayon); border: 0;
  background: var(--accent); color: var(--sur-accent);
  font-family: inherit; font-size: 14px; font-weight: 600;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .5); cursor: pointer;
  max-width: 588px; margin: 0 auto;
}

/* --- Les pieces en vogue citees dans l'argumentaire -------------------- */

.vitrine {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0 4px;
}
.piece_vogue {
  display: block; text-decoration: none; color: var(--gris);
  border-radius: var(--rayon-petit); overflow: hidden; background: var(--creux);
}
.piece_vogue img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
}
.piece_vogue span {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; padding: 9px 11px; font-size: 12px; line-height: 1.4;
}

.sources { display: flex; flex-direction: column; gap: 7px; margin-top: 12px; }
.sources a {
  font-size: 13px; color: var(--or); text-decoration: none;
  background: var(--or-creux); border-radius: var(--rayon-petit);
  padding: 9px 12px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.lien_partage {
  font-size: 14px; word-break: break-all; background: var(--creux);
  border-radius: var(--rayon-petit); padding: 12px;
  font-family: ui-monospace, Consolas, monospace;
}

/* --- Boutons ------------------------------------------------------------ */

.bouton, button.bouton, a.bouton {
  display: block; width: 100%; text-align: center;
  padding: 16px; border-radius: var(--rayon-petit); border: 0;
  background: var(--accent); color: var(--sur-accent);
  font-size: 16px; font-weight: 600; font-family: inherit;
  text-decoration: none; cursor: pointer; margin-bottom: 12px;
}
.bouton:active { opacity: .8; }
.bouton.clair { background: var(--creux); color: var(--texte); }
.bouton.petit { padding: 12px; font-size: 14px; margin-bottom: 0; }
.bouton.petit_texte {
  font-size: 14px; padding: 13px; background: none; color: var(--gris);
}
.bouton.charge { pointer-events: none; }
.bouton.charge::before {
  content: ""; display: inline-block;
  width: 16px; height: 16px; margin-right: 10px; vertical-align: -3px;
  border: 2.5px solid rgba(128, 128, 128, .35); border-top-color: currentColor;
  border-radius: 999px; animation: tourner .8s linear infinite;
}

.grille2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grille3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.grille3 form { margin: 0; }
.grille3.serree { gap: 9px; margin-bottom: 0; }
.grille3.serree input { padding: 12px 10px; font-size: 16px; }

.supprimer {
  background: none; border: 0; color: var(--gris); font-size: 22px;
  cursor: pointer; padding: 2px 6px; line-height: 1;
}

/* La carte d'apprentissage reste visible, elle ne se plie pas. */
.carte.apprentissage { background: var(--creux); }
.carte.apprentissage .rangee_app { display: flex; align-items: center; gap: 12px; }

/* --- Formulaires -------------------------------------------------------- */

label.champ { display: block; margin-bottom: 14px; }
label.champ span {
  display: block; font-size: 13px; color: var(--gris); margin-bottom: 7px;
}
input[type=text], input[type=number], input[type=tel], input[type=password],
select, textarea {
  width: 100%; padding: 14px; font-size: 16px; font-family: inherit;
  border: 0; border-radius: var(--rayon-petit);
  background: var(--creux); color: var(--texte);
}
textarea { margin-bottom: 10px; line-height: 1.5; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent); outline-offset: -2px;
}
::placeholder { color: var(--gris); opacity: .7; }

/* --- Bandeaux ----------------------------------------------------------- */

.bandeau {
  border-radius: var(--rayon); padding: 14px 16px; margin-bottom: 14px;
  font-size: 14px; line-height: 1.5; border: 0;
}
.bandeau.ok { background: var(--vert-creux); color: var(--vert); }
.bandeau.souci, .bandeau.erreur { background: var(--rouge-creux); color: var(--rouge); }
.bandeau.info { background: var(--creux); color: var(--texte); }
.bandeau strong { font-weight: 600; }
.bandeau a { color: inherit; }

/* --- Barre du bas ------------------------------------------------------- */

.barre_bas {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  background: rgba(14, 12, 11, .92);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
}
.barre_bas .dedans { max-width: 620px; margin: 0 auto; display: flex; gap: 6px; }
.barre_bas a {
  flex: 1; text-align: center; padding: 11px 4px; border-radius: var(--rayon-petit);
  text-decoration: none; font-size: 13px; color: var(--gris); background: none;
}
/* Seul l'onglet courant est marque : le reste s'efface. */
.barre_bas a.actif { background: var(--creux); color: var(--texte); font-weight: 600; }

/* --- La page de liaison WhatsApp --------------------------------------- */

.cadre {
  background: var(--carte); border-radius: var(--rayon);
  padding: 20px; min-height: 300px;
  display: flex; align-items: center; justify-content: center;
}
