/* ============================================================
   CURSUS — styles des pages ajoutées (à charger APRÈS style.css)
   ============================================================ */

/* Page avec pied de page collé en bas */
body.avec-pied { display: flex; flex-direction: column; min-height: 100vh; }
body.avec-pied > main { flex: 1; width: 100%; }

.entete-droite { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }
.avatar-compte {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--sur-accent); font-weight: 800; font-size: 0.85rem;
  text-decoration: none;
}
.avatar-compte:hover { background: var(--accent-clair); color: var(--sur-accent); text-decoration: none; }
.navigation { margin-right: auto; }

@media (max-width: 640px) {
  .entete-droite { margin-left: auto; }
  .entete-droite .bouton { padding: 0.45rem 0.8rem; font-size: 0.78rem; }
}

/* ---------- Pied de page ---------- */
.pied {
  border-top: 1px solid var(--bordure);
  padding: 1.4rem 1.25rem;
  margin-top: 2rem;
  text-align: center;
  color: var(--texte-plus-doux);
  font-size: 0.85rem;
}
.pied-marque { margin: 0 0 0.6rem; }
.pied-liens { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; justify-content: center; }
.pied-liens a { color: var(--texte-doux); }

/* ---------- Pages larges / étroites ---------- */
.contenu-large { max-width: 66rem; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.contenu-etroit { max-width: 40rem; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.sous-titre { color: var(--texte-doux); margin-top: -0.2rem; }

.panneau-page {
  background: var(--degrade-carte);
  border: 1px solid var(--bordure);
  border-radius: 12px;
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.25rem;
}
.panneau-page h2 { margin-bottom: 0.9rem; }
.panneau-danger { border-color: rgba(239, 82, 87, 0.45); }

.ligne-info { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--bordure); font-size: 0.92rem; }
.ligne-info:last-child { border-bottom: 0; }
.ligne-info span:first-child { color: var(--texte-doux); }

/* ---------- Accueil (landing) ---------- */
.hero { text-align: center; padding: 4.2rem 1.25rem 3rem; max-width: 52rem; margin: 0 auto; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.1rem); letter-spacing: -0.02em; margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: var(--accent-clair); }
.hero p { color: var(--texte-doux); font-size: 1.1rem; max-width: 40rem; margin: 0 auto 1.5rem; }
.hero .actions { justify-content: center; }
.hero-note { font-size: 0.85rem; color: var(--texte-plus-doux); }

.bloc { max-width: 66rem; margin: 0 auto; padding: 2.2rem 1.25rem; }
.bloc > h2 { text-align: center; font-size: clamp(1.4rem, 4vw, 1.8rem); margin-bottom: 0.4rem; }
.bloc > .sous-titre { text-align: center; margin-bottom: 1.6rem; }

.grille-cartes { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.carte-info {
  background: var(--degrade-carte); border: 1px solid var(--bordure); border-radius: 12px; padding: 1.3rem;
}
.carte-info .icone { font-size: 1.6rem; margin-bottom: 0.5rem; display: block; }
.carte-info h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.carte-info p { color: var(--texte-doux); font-size: 0.92rem; margin: 0; }

.etapes { counter-reset: etape; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); list-style: none; padding: 0; margin: 0; }
.etapes li {
  counter-increment: etape; background: var(--panneau); border: 1px solid var(--bordure);
  border-radius: 12px; padding: 1.2rem 1.2rem 1.2rem 1.2rem;
}
.etapes li::before {
  content: counter(etape); display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--sur-accent); font-weight: 800; margin-bottom: 0.6rem;
}
.etapes strong { display: block; color: var(--blanc); margin-bottom: 0.25rem; }
.etapes span { color: var(--texte-doux); font-size: 0.92rem; }

/* ---------- Tarifs ---------- */
.tarifs { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.tarif {
  background: var(--degrade-carte); border: 1px solid var(--bordure); border-radius: 12px;
  padding: 1.4rem; text-align: center; position: relative;
}
.tarif.vedette { border-color: var(--accent); box-shadow: 0 10px 30px rgba(39,118,220, 0.25); }
.tarif .badge {
  position: absolute; top: -0.7rem; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--sur-accent); font-size: 0.7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.4px; padding: 0.2rem 0.7rem; border-radius: 999px; white-space: nowrap;
}
.tarif h3 { margin-bottom: 0.3rem; }
.tarif .prix { font-size: 1.7rem; font-weight: 800; color: var(--blanc); margin: 0.2rem 0; }
.tarif .duree { color: var(--texte-doux); margin: 0; }
.liste-avantages { list-style: none; padding: 0; margin: 0 auto 1.4rem; max-width: 30rem; display: grid; gap: 0.5rem; }
.liste-avantages li { padding-left: 1.6rem; position: relative; color: var(--texte); }
.liste-avantages li::before { content: "✓"; position: absolute; left: 0; color: var(--vert-clair); font-weight: 800; }

/* ---------- FAQ ---------- */
.faq { max-width: 44rem; margin: 0 auto; display: grid; gap: 0.6rem; }
.faq details { background: var(--panneau); border: 1px solid var(--bordure); border-radius: 10px; padding: 0.9rem 1.1rem; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--blanc); }
.faq details[open] { border-color: var(--accent); }
.faq details p { margin: 0.7rem 0 0; color: var(--texte-doux); }

.bandeau-final { text-align: center; padding: 2.5rem 1.25rem; background: var(--panneau); border-top: 1px solid var(--bordure); border-bottom: 1px solid var(--bordure); }
.bandeau-final .actions { justify-content: center; margin-bottom: 0; }

/* ---------- Tableau de bord ---------- */
.bandeau-acces { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.25rem; }
.bandeau-acces .infos p { margin: 0; }
.bandeau-acces .infos .discret { color: var(--texte-doux); font-size: 0.9rem; }

.section-titre { display: flex; align-items: baseline; justify-content: space-between; margin: 1.8rem 0 0.7rem; }
.section-titre h2 { margin: 0; }
.section-titre a { font-size: 0.88rem; }

.liste-annonces { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.65rem; }
.annonce {
  background: var(--degrade-carte); border: 1px solid var(--bordure); border-left: 4px solid var(--accent);
  border-radius: 10px; padding: 0.9rem 1.1rem;
}
.annonce.epinglee { border-left-color: var(--vert-clair); }
.annonce h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.annonce p { margin: 0 0 0.3rem; color: var(--texte); white-space: pre-wrap; word-break: break-word; }
.annonce small { color: var(--texte-plus-doux); }
.annonce .bouton { margin-top: 0.5rem; }

.liste-compacte { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.liste-compacte a.element {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap;
  background: var(--degrade-carte); border: 1px solid var(--bordure); border-radius: 10px;
  padding: 0.75rem 1rem; color: inherit; text-decoration: none; transition: border-color 0.25s;
}
.liste-compacte a.element:hover { border-color: var(--accent); text-decoration: none; }
.liste-compacte .titre { font-weight: 700; color: var(--blanc); margin: 0; }
.liste-compacte .meta { color: var(--texte-doux); font-size: 0.82rem; margin: 0; }

.chiffres { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); margin-bottom: 1.4rem; }
.chiffre { background: var(--degrade-carte); border: 1px solid var(--bordure); border-radius: 10px; padding: 0.8rem 1rem; }
.chiffre strong { display: block; font-size: 1.5rem; color: var(--blanc); }
.chiffre span { color: var(--texte-doux); font-size: 0.82rem; }

/* ---------- Abonnement ---------- */
.cadre-abonnement { width: 100%; min-height: 780px; border: 1px solid var(--bordure); border-radius: 12px; background: var(--fond); display: block; }

/* ---------- Mon compte ---------- */
.formulaire-compte .champ input[readonly] { opacity: 0.7; cursor: not-allowed; }
.zone-boutons { display: flex; flex-wrap: wrap; gap: 0.6rem; }

@media (max-width: 640px) {
  .hero { padding: 2.6rem 1rem 2rem; }
  .bloc { padding: 1.6rem 1rem; }
  .panneau-page { padding: 1.1rem; }
}


/* ---------- Documentation ---------- */
.doc-entete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.doc-entete h1 { margin-bottom: 0.2rem; }

.barre-outils { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.9rem; }
.champ-recherche { flex: 1 1 16rem; position: relative; }
.champ-recherche input, .barre-outils select, .doc-filtres select {
  font: inherit; color: var(--texte); background: var(--panneau); border: 1px solid var(--bordure);
  border-radius: 10px; padding: 0.7rem 0.9rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.champ-recherche input { width: 100%; padding-left: 2.5rem;
  background: var(--panneau) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23a3a6ad' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 0.85rem center; }
.champ-recherche input:focus, .barre-outils select:focus, .doc-filtres select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(39,118,220, 0.22); outline: none; }

.groupe-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 0.7rem; }
.chip {
  font: 600 0.82rem var(--police); color: var(--texte-doux); background: var(--panneau);
  border: 1px solid var(--bordure); border-radius: 999px; padding: 0.42rem 0.95rem; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.chip:hover { color: var(--blanc); border-color: var(--accent); }
.chip:active { transform: scale(0.95); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--sur-accent); }

.compte-resultats { color: var(--texte-plus-doux); font-size: 0.85rem; margin: 0.4rem 0 0.8rem; min-height: 1.2em; }

.grille-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); }
.carte-doc {
  display: flex; flex-direction: column; gap: 0.5rem;
  background: var(--degrade-carte); border: 1px solid var(--bordure); border-radius: 12px; padding: 1.1rem 1.15rem;
}
.carte-doc-haut { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.carte-doc-pastilles { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.carte-doc-titre { font-weight: 700; color: var(--blanc); font-size: 1.02rem; line-height: 1.3; text-decoration: none; }
.carte-doc-titre:hover { color: var(--accent-clair); text-decoration: none; }
.carte-doc-meta { color: var(--texte-doux); font-size: 0.85rem; margin: 0; }
.carte-doc-pied { margin-top: auto; padding-top: 0.6rem; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.carte-doc-info { color: var(--texte-plus-doux); font-size: 0.78rem; }
.pastille-ia { background: rgba(39,118,220, 0.22); color: var(--accent-clair); }

.etoile { font-size: 1.25rem; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--texte-plus-doux); padding: 0.1rem 0.2rem; transition: color 0.2s, transform 0.2s; }
.etoile:hover { color: #ffd166; transform: scale(1.2); }
.etoile.active { color: #ffd166; animation: pop 0.35s ease; }

.squelette { min-height: 9.5rem; }
.squelette span { display: block; height: 0.9rem; border-radius: 6px; margin-bottom: 0.7rem;
  background: linear-gradient(90deg, var(--v05) 25%, var(--v12) 50%, var(--v05) 75%);
  background-size: 200% 100%; animation: brillance 1.4s linear infinite; }
.squelette span:nth-child(1) { width: 35%; }
.squelette span:nth-child(2) { width: 85%; height: 1.2rem; }
.squelette span:nth-child(3) { width: 55%; }

.vide-illustre { text-align: center; padding: 3rem 1rem; color: var(--texte-doux); animation: apparition 0.5s ease both; }
.vide-icone { font-size: 2.6rem; display: block; margin-bottom: 0.5rem; }
.vide-illustre h2 { color: var(--blanc); }

/* ---------- Salons de la filière (tableau de bord) ---------- */
.puces-salons { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 0; }
.puces-salons a {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; border-radius: 999px;
  background: var(--panneau); border: 1px solid var(--bordure); color: var(--texte); font-weight: 600; font-size: 0.9rem;
  text-decoration: none; transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.puces-salons a::before { content: "#"; color: var(--accent-clair); font-weight: 800; }
.puces-salons a:hover { border-color: var(--accent); background: rgba(39,118,220, 0.14); transform: translateY(-2px); text-decoration: none; }
.puces-salons .general::after { content: "général"; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.4px; padding: 0.1rem 0.5rem; border-radius: 999px; background: var(--accent); color: var(--blanc); }
.filiere-titre { color: var(--texte-doux); font-size: 0.9rem; margin: 0 0 0.6rem; }


/* ---------- Barre du haut provisoire (visible dès l'ouverture de la page) ---------- */
#entete:empty {
  display: block; height: 69px; box-sizing: border-box; padding: 0 1.25rem;
  background: var(--panneau); border-bottom: 1px solid var(--bordure);
  display: flex; align-items: center;
}
#entete:empty::before { content: "Cursus"; font-weight: 800; font-size: 1.3rem; color: var(--blanc); letter-spacing: -0.02em; }
#entete:empty::after { content: "."; color: var(--accent); font-weight: 800; font-size: 1.3rem; }
#pied:empty { min-height: 1px; }

/* ---------- Message d'attente de la page IA ---------- */
.attente-ia { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; padding: 4rem 1rem; color: var(--texte-doux); text-align: center; }
.rond-attente {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--v12); border-top-color: var(--accent-clair);
  animation: tourner 0.9s linear infinite;
}
@keyframes tourner { to { transform: rotate(360deg); } }

/* Menu du compte (clic sur le profil) */
.compte-conteneur { position: relative; }
.compte-bouton {
  display: flex; align-items: center; gap: 0.55rem; padding: 0.3rem 0.7rem 0.3rem 0.35rem; border-radius: 999px;
  border: 1px solid var(--v10); background: var(--v04); color: inherit; font: inherit; cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.compte-bouton:hover, .compte-bouton[aria-expanded="true"] { background: rgba(105,174,255,0.14); border-color: rgba(105,174,255,0.4); }
.compte-bouton .avatar-compte { pointer-events: none; }
.compte-nom { font-weight: 700; font-size: 0.9rem; }
.compte-forfait { font-size: 0.78rem; opacity: 0.6; }
.compte-fleche { font-size: 0.8rem; opacity: 0.6; }
@media (max-width: 720px) { .compte-forfait { display: none; } }
.menu-compte {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; min-width: 270px; max-width: 92vw;
  background: var(--menu-fond); border: 1px solid var(--v08); border-radius: 18px;
  padding: 0.5rem; box-shadow: 0 20px 48px var(--ombre); animation: apparition 0.18s ease both;
}
.menu-compte[hidden] { display: none; }
.menu-compte-email { padding: 0.6rem 0.75rem 0.7rem; font-size: 0.85rem; opacity: 0.65; word-break: break-all; }
.menu-compte-lien {
  display: flex; align-items: center; gap: 0.8rem; width: 100%; text-align: left; padding: 0.65rem 0.75rem; border-radius: 10px; border: 0;
  background: none; color: inherit; font: inherit; font-size: 0.95rem; cursor: pointer; text-decoration: none;
}
.menu-compte-lien:hover { background: var(--v07); text-decoration: none; color: inherit; }
.menu-icone { width: 20px; height: 20px; flex: none; opacity: 0.85; }
.menu-compte-trait { height: 1px; background: var(--v08); margin: 0.4rem 0.2rem; }
button.avatar-compte { cursor: pointer; border: 0; font: inherit; font-weight: 700; }

/* Lien de retour (« ← Mon espace ») : petit bouton arrondi */
.fil-ariane { margin: 0 0 1.2rem; }
.fil-ariane a {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.95rem 0.45rem 0.7rem;
  border-radius: 999px; border: 1px solid var(--v10); background: var(--v04);
  color: var(--texte, #eef3fa); font-size: 0.88rem; font-weight: 600; text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.fil-ariane a:hover { background: rgba(105,174,255,0.16); border-color: rgba(105,174,255,0.45); color: var(--blanc, #fff); text-decoration: none; transform: translateX(-2px); }

@media (max-width: 720px) {
  .entete .navigation { overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; max-width: 100%; }
  .entete .navigation::-webkit-scrollbar { display: none; }
  .entete .navigation a { white-space: nowrap; }
}

/* ---------- Pastilles de notification (navigation) ---------- */
.pastille-notif {
  display: inline-block; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 0.35rem;
  border-radius: 999px; background: var(--rouge); color: #fff; font-size: 0.68rem; font-weight: 800;
  line-height: 18px; text-align: center; vertical-align: middle; animation: pop 0.35s ease;
}
.bouton-theme-rond {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; font-size: 1rem;
  border: 1px solid var(--bordure); background: var(--v04); color: var(--texte);
}
.bouton-theme-rond:hover { background: var(--v10); }

/* ---------- Tableau de bord : reprendre, progression, nouveautés ---------- */
.nouveautes-bande { margin: 0 0 1rem; padding: 0.65rem 1rem; border-radius: 12px; font-size: 0.9rem; background: rgba(39,118,220,0.12); border: 1px solid rgba(39,118,220,0.3); }
.vie { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin: 0 0 1.6rem; }
.carte-vie { padding: 1.2rem 1.3rem; border-radius: 16px; border: 1px solid var(--bordure); background: var(--degrade-carte); }
.carte-vie h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--texte-doux); margin-bottom: 0.7rem; }
.carte-vie .meta { color: var(--texte-doux); font-size: 0.88rem; margin: 0.2rem 0 0.7rem; }
.reprise-titre { font-size: 1.15rem; font-weight: 800; color: var(--blanc); margin: 0; line-height: 1.3; }
.actions-vie { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.reprise-autres { list-style: none; margin: 0.9rem 0 0; padding: 0.7rem 0 0; border-top: 1px solid var(--v08); display: grid; gap: 0.35rem; }
.reprise-autres li { display: flex; justify-content: space-between; gap: 0.8rem; font-size: 0.86rem; }
.reprise-autres li span { color: var(--texte-plus-doux); white-space: nowrap; }
.flamme { margin: 0 0 0.8rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.3rem; color: var(--texte-doux); }
.flamme-nombre { font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--blanc); }
.flamme-nombre::before { content: "\1F525"; font-size: 1.6rem; margin-right: 0.3rem; }
.palier { margin-left: 0.5rem; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.74rem; font-weight: 700; background: rgba(245,185,66,0.2); color: var(--texte); border: 1px solid rgba(245,185,66,0.5); }
.semaine { display: flex; justify-content: space-between; gap: 0.3rem; margin-bottom: 0.9rem; }
.semaine .jour { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.semaine .jour i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 0.8rem; background: var(--v06); border: 1px solid var(--v10); color: #fff; }
.semaine .jour.fait i { background: var(--accent); border-color: var(--accent); }
.semaine .jour small { font-size: 0.68rem; color: var(--texte-plus-doux); }
.barre-palier { height: 8px; border-radius: 999px; background: var(--v08); overflow: hidden; margin-bottom: 0.4rem; }
.barre-palier span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-clair)); transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1); }

.choix-filiere-doc { max-width: 190px; padding: 0.4rem 0.6rem; border-radius: 8px; border: 1px solid var(--bordure); background: var(--panneau); color: var(--texte); font: inherit; font-size: 0.8rem; }

/* Modification d'un document (page admin) */
.liste-documents .document { flex-wrap: wrap; }
.edition { flex-basis: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.7rem; margin-top: 0.8rem; padding-top: 0.9rem; border-top: 1px solid var(--bordure); }
.edition-champ { display: grid; gap: 0.25rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--texte-doux); }
.edition-champ input, .edition-champ select { width: 100%; min-width: 0; padding: 0.55rem 0.7rem; border-radius: 8px; border: 1px solid var(--bordure); background: var(--fond); color: var(--texte); font: inherit; font-size: 0.9rem; text-transform: none; letter-spacing: 0; font-weight: 400; }
.edition .message, .edition-boutons { grid-column: 1 / -1; }
.edition-boutons { display: flex; gap: 0.5rem; }

/* Téléphone : les 3 offres s'empilent, le cadre doit être assez haut pour tout montrer */
.lien-offres { margin: 0.6rem 0 0; font-size: 0.85rem; text-align: center; }
@media (max-width: 700px) { .cadre-abonnement { min-height: 1550px; } }

.zone-plus { display: flex; justify-content: center; margin: 1.6rem 0 0.5rem; }

/* ============================================================
   PAGE D'ACCUEIL : titre à gauche, dialogue sur feuille à petits carreaux (Seyès)
   ============================================================ */
.accueil {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center; max-width: 66rem; margin: 0 auto; padding: clamp(2.4rem, 7vw, 5rem) 1.25rem clamp(2rem, 5vw, 3.5rem);
}
.accueil-texte h1 { font-size: clamp(2.2rem, 5.6vw, 3.7rem); line-height: 1.05; letter-spacing: -0.035em; margin: 0 0 1.1rem; max-width: 14ch; }
.accueil-intro { color: var(--texte-doux); font-size: 1.1rem; line-height: 1.6; max-width: 34rem; margin: 0 0 1.6rem; }
.accueil .actions { justify-content: flex-start; margin-bottom: 0.9rem; }
.accueil .hero-note { text-align: left; margin: 0; }

.copie { margin: 0; }
.copie-feuille {
  position: relative; transform: rotate(-1.4deg); border-radius: 6px; padding: 1.3rem 1.2rem 1.5rem 3.1rem; color: #1b1f3b;
  background-color: #fdfdff;
  background-image:
    linear-gradient(to right, transparent 2.4rem, #e9788f 2.4rem, #e9788f calc(2.4rem + 1px), transparent calc(2.4rem + 1px)),
    repeating-linear-gradient(to bottom, transparent 0 25px, #c9d3f5 25px 26px),
    repeating-linear-gradient(to right, transparent 0 25px, #e3e9fb 25px 26px);
  box-shadow: 0 1px 0 #fff inset, 0 22px 50px var(--ombre), 0 2px 6px var(--ombre);
}
.copie-enonce { margin: 0 0 1.1rem; font-size: 1.02rem; line-height: 1.5; color: #1b1f3b; }
.dialogue { display: grid; gap: 0.7rem; }
.d-bulle {
  margin: 0; max-width: 86%; padding: 0.55rem 0.85rem; border-radius: 14px; font-size: 0.93rem; line-height: 1.45;
  opacity: 0; animation: entre-bulle 0.5s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s) both;
}
.d-moi { justify-self: end; background: #fff; border: 1px solid #cdd3ef; border-bottom-right-radius: 4px; color: #1b1f3b; }
.d-tuteur { justify-self: start; background: var(--accent); color: #fff; border-bottom-left-radius: 4px; }
@keyframes entre-bulle { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.copie figcaption { margin: 1.2rem 0.4rem 0; font-size: 0.85rem; color: var(--texte-doux); }

/* Liste des fonctions : des lignes, pas des cartes identiques */
.fonctions { margin: 1.6rem 0 0; }
.fonctions > div { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 0.5rem 2rem; padding: 1.25rem 0; border-top: 1px solid var(--bordure); }
.fonctions > div:last-child { border-bottom: 1px solid var(--bordure); }
.fonctions dt { font-size: 1.15rem; font-weight: 800; color: var(--blanc); letter-spacing: -0.01em; }
.fonctions dd { margin: 0; color: var(--texte-doux); line-height: 1.6; max-width: 42rem; }

@media (max-width: 820px) {
  .accueil { grid-template-columns: 1fr; }
  .accueil-texte h1 { max-width: none; }
  .copie-feuille { transform: rotate(-0.6deg); }
  .fonctions > div { grid-template-columns: 1fr; gap: 0.3rem; }
}
@media (prefers-reduced-motion: reduce) { .d-bulle { animation: none; opacity: 1; } }

/* ============================================================
   ACCUEIL « cahier d'étudiant » : de la matière, du désordre contrôlé
   ============================================================ */
:root { --manuscrit: "Caveat", "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive; }

/* Hero : scotch, gommette et note à la main autour de la feuille */
.copie { position: relative; padding-bottom: 3.4rem; }
.scotch {
  position: absolute; z-index: 3; top: -14px; left: 42%; width: 112px; height: 30px; transform: rotate(3deg);
  background: rgba(255, 226, 122, 0.78); box-shadow: 0 1px 3px var(--ombre);
  clip-path: polygon(0 8%, 4% 0, 8% 10%, 12% 0, 16% 10%, 100% 0, 96% 50%, 100% 100%, 8% 92%, 4% 100%, 0 90%, 3% 50%);
}
.gommette {
  position: absolute; z-index: 3; right: -14px; bottom: 22px; width: 92px; height: 92px; display: grid; place-items: center;
  text-align: center; transform: rotate(9deg); border-radius: 50%; font: 700 1.2rem/1.05 var(--manuscrit); color: #2a2100;
  background: #ffd84d; box-shadow: 0 6px 16px var(--ombre), inset 0 0 0 3px rgba(255, 255, 255, 0.35);
}
.note-main {
  position: absolute; left: -2.2rem; bottom: 0; margin: 0; display: flex; align-items: flex-end; gap: 0.2rem;
  transform: rotate(-4deg); font: 700 1.45rem/1.1 var(--manuscrit); color: var(--accent-clair); max-width: 15rem;
}
.note-main svg { flex: none; transform: translateY(-6px) scaleY(-1) rotate(8deg); }
.copie figcaption { position: absolute; right: 6.2rem; bottom: 0; margin: 0; max-width: 11rem; text-align: right; }

/* Titres de section : posés à gauche, pas centrés au cordeau */
.page-accueil .titre-libre { text-align: left; margin-left: 0.2rem; }
.page-accueil .sous-libre { text-align: left; margin-left: 0.2rem; }

/* Les 4 outils : des notes de formats, de couleurs et d'angles différents */
.tableau { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.2rem 1.4rem; margin-top: 1.8rem; align-items: start; }
.note { padding: 1.4rem 1.5rem 1.6rem; border-radius: 4px 16px 6px 12px; box-shadow: 0 10px 26px var(--ombre); }
.note h3 { margin: 0 0 0.5rem; font-size: 1.45rem; letter-spacing: -0.02em; }
.note p { margin: 0; line-height: 1.55; }
.n1 { grid-column: 1 / 7; transform: rotate(-0.9deg); background: var(--panneau); border: 1px solid var(--bordure); }
.n1 p { color: var(--texte-doux); }
.n2 { grid-column: 7 / 13; margin-top: 2.6rem; transform: rotate(1deg); background: var(--accent); color: #fff; border-radius: 16px 4px 14px 6px; }
.n2 h3 { color: #fff; } .n2 p { color: rgba(255, 255, 255, 0.9); }
.n3 { grid-column: 2 / 8; margin-top: -0.6rem; transform: rotate(0.6deg); color: #1b1f3b; background-color: #fdfdff;
  background-image: repeating-linear-gradient(to bottom, transparent 0 25px, #c9d3f5 25px 26px); border-radius: 3px; padding-left: 2.4rem; }
.n3 h3 { color: #1b1f3b; } .n3 p { color: #343a66; }
.n4 { grid-column: 8 / 13; margin-top: 0.6rem; transform: rotate(-1.4deg); background: #ffe27a; color: #2a2100; border-radius: 6px 6px 18px 6px; }
.n4 h3 { color: #2a2100; font-family: var(--manuscrit); font-size: 1.9rem; letter-spacing: 0; } .n4 p { color: #4a3d0c; }

/* Tarifs : l'offre du milieu ressort, comme une carte posée par-dessus */

@media (max-width: 820px) {
  .copie { padding-bottom: 5.2rem; }
  .gommette { right: -6px; bottom: 20px; width: 78px; height: 78px; font-size: 1.05rem; }
  .note-main { left: 0; font-size: 1.25rem; }
  .copie figcaption { max-width: 9rem; right: 5rem; }
  .tableau { display: flex; flex-direction: column; gap: 1.1rem; }
  .n1, .n2, .n3, .n4 { margin-top: 0; }
  .n2 { margin-left: 1.2rem; } .n3 { margin-right: 1rem; } .n4 { margin-left: 0.6rem; }
}

/* FAQ : titre à gauche, questions en lignes simples (pas de boîtes identiques) */
.faq-zone { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem 4rem; align-items: start; max-width: 62rem; margin-left: auto; margin-right: auto; }
.faq-titre h2 { text-align: left; margin: 0; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.1; letter-spacing: -0.02em; }
.faq-note { margin: 1rem 0 0; transform: rotate(-3deg); font: 700 1.35rem/1.15 var(--manuscrit); color: var(--accent-clair); max-width: 14rem; }
.faq-zone .faq { max-width: none; margin: 0; gap: 0; }
.faq-zone .faq details { background: none; border: 0; border-bottom: 1px solid var(--bordure); border-radius: 0; padding: 1.1rem 0.2rem; }
.faq-zone .faq details:first-child { border-top: 1px solid var(--bordure); }
.faq-zone .faq details[open] { border-color: var(--bordure); }
.faq-zone .faq summary { list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 1.2rem; font-size: 1.05rem; }
.faq-zone .faq summary::-webkit-details-marker { display: none; }
.faq-zone .faq summary::after { content: "+"; flex: none; font-size: 1.6rem; font-weight: 400; line-height: 1; color: var(--accent-clair); transition: transform 0.2s; }
.faq-zone .faq details[open] summary::after { transform: rotate(45deg); }
.faq-zone .faq details p { max-width: 34rem; }
@media (max-width: 820px) { .faq-zone { grid-template-columns: 1fr; gap: 1.2rem; } .faq-note { display: none; } }

/* Étapes : un chemin, pas trois boîtes. Gros chiffres, trait pointillé qui relie. */
.page-accueil .etapes { display: block; max-width: 40rem; margin: 2rem 0 0 0.2rem; padding: 0; counter-reset: e; }
.page-accueil .etapes li {
  position: relative; display: block; background: none; border: 0; border-radius: 0; box-shadow: none;
  padding: 0 0 2rem 4.6rem; counter-increment: e; min-height: 3.4rem;
}
.page-accueil .etapes li:nth-child(2) { margin-left: 1.6rem; }
.page-accueil .etapes li:nth-child(3) { margin-left: 0.6rem; padding-bottom: 0; }
.page-accueil .etapes li::before {
  content: counter(e); position: absolute; left: 0; top: -0.3rem; width: 3.2rem; height: 3.2rem; margin: 0;
  display: grid; place-items: center; border-radius: 55% 45% 50% 50% / 50% 55% 45% 50%;
  background: var(--accent); color: var(--sur-accent); font: 700 1.9rem/1 var(--manuscrit); transform: rotate(-6deg);
}
.page-accueil .etapes li:nth-child(2)::before { transform: rotate(5deg); border-radius: 48% 52% 45% 55% / 55% 45% 55% 45%; }
.page-accueil .etapes li:not(:last-child)::after {
  content: ""; position: absolute; left: 1.6rem; top: 3.2rem; bottom: 0.3rem; border-left: 2px dashed var(--bordure-forte, var(--bordure));
}
.page-accueil .etapes strong { font-size: 1.25rem; margin-bottom: 0.3rem; }
.page-accueil .etapes span { display: block; font-size: 1rem; line-height: 1.55; max-width: 32rem; }

/* Tarifs : trois formats différents, alignés par le bas comme des étiquettes de prix */
.page-accueil .tarifs { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: flex-start; gap: 1.2rem 1.6rem; margin-top: 2.2rem; }
.page-accueil .tarif { flex: 0 1 14rem; text-align: left; padding: 1.3rem 1.5rem; box-shadow: none; }
.page-accueil .tarif .prix { font-size: 1.6rem; }
.page-accueil .tarif:nth-child(1) { background: none; border: 0; border-bottom: 2px dashed var(--bordure); border-radius: 0; padding-left: 0.2rem; flex-basis: 11rem; }
.page-accueil .tarif.vedette {
  flex-basis: 17rem; padding: 2.4rem 1.8rem 1.9rem; border-radius: 18px 6px 18px 6px; transform: rotate(-1.2deg);
  background: var(--accent); border-color: transparent; box-shadow: 0 16px 36px var(--ombre);
}
.page-accueil .tarif.vedette h3, .page-accueil .tarif.vedette .prix { color: #fff; }
.page-accueil .tarif.vedette .duree { color: rgba(255, 255, 255, 0.85); }
.page-accueil .tarif.vedette .prix { font-size: 2.2rem; }
.page-accueil .tarif.vedette .badge { left: 1.4rem; transform: rotate(-3deg); background: #ffd84d; color: #2a2100; top: -0.8rem; }
.page-accueil .tarif:nth-child(3) { flex-basis: 14rem; border-radius: 6px 16px 6px 16px; transform: rotate(0.8deg); }
.page-accueil .tarif:nth-child(3) .badge { left: auto; right: 1rem; transform: rotate(3deg); }
@media (max-width: 820px) {
  .page-accueil .etapes li:nth-child(n) { margin-left: 0; }
  .page-accueil .tarifs { flex-direction: column; align-items: stretch; }
  .page-accueil .tarif, .page-accueil .tarif.vedette, .page-accueil .tarif:nth-child(3) { flex-basis: auto; transform: none; }
  .page-accueil .tarif:nth-child(1) { padding-bottom: 0.9rem; }
}

/* ---- Plus de place : les deux sections occupent toute la largeur ---- */
@media (min-width: 821px) {
  .page-accueil .etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 3rem; max-width: none; margin: 2.6rem 0.2rem 0; align-items: start; }
  .page-accueil .etapes li, .page-accueil .etapes li:nth-child(n) { margin-left: 0; padding: 4.6rem 0 0 0; }
  .page-accueil .etapes li:nth-child(2) { margin-top: 3rem; }
  .page-accueil .etapes li:nth-child(3) { margin-top: 1rem; }
  .page-accueil .etapes li::before { width: 3.8rem; height: 3.8rem; font-size: 2.3rem; top: 0; }
  .page-accueil .etapes li:not(:last-child)::after {
    left: 4.8rem; right: -2.6rem; top: 1.9rem; bottom: auto; border-left: 0; border-top: 2px dashed var(--bordure-forte, var(--bordure)); height: 0;
  }
  .page-accueil .etapes strong { font-size: 1.5rem; }
  .page-accueil .etapes span { font-size: 1.05rem; max-width: 22rem; }

  .page-accueil .tarifs { flex-wrap: nowrap; justify-content: space-between; gap: 2rem; }
  .page-accueil .tarif, .page-accueil .tarif:nth-child(1), .page-accueil .tarif:nth-child(3) { flex: 1 1 0; }
  .page-accueil .tarif.vedette { flex: 1.5 1 0; padding: 3rem 2.4rem 2.4rem; }
  .page-accueil .tarif .prix { font-size: 2rem; }
  .page-accueil .tarif.vedette .prix { font-size: 3rem; }
  .page-accueil .tarif h3 { font-size: 1.25rem; }
  .page-accueil .tarif:nth-child(1), .page-accueil .tarif:nth-child(3) { padding-top: 1.8rem; padding-bottom: 1.8rem; }
}

/* ---------- Tableau de bord : de l'air entre chaque chose (polices et couleurs d'origine) ---------- */
.page-tdb main { padding-bottom: 4rem; }
.page-tdb h1 { margin-bottom: 0.5rem; }
.page-tdb .mot-doux { margin: 0 0 2rem; font-size: 1.1rem; color: var(--texte-doux); }
.page-tdb .mot-doux:empty { display: none; }
.page-tdb .bandeau { margin-bottom: 2rem; padding: 1.2rem 1.5rem; }
.page-tdb .bandeau p + p { margin-top: 0.3rem; }
.page-tdb .nouveautes-bande { margin-bottom: 2rem; padding: 0.85rem 1.2rem; }
.page-tdb .vie { gap: 1.8rem; margin-bottom: 2.8rem; }
.page-tdb .carte-vie { padding: 1.9rem 2rem; }
.page-tdb .carte-vie h2 { margin-bottom: 1.3rem; }
.page-tdb .reprise-titre { line-height: 1.35; margin-bottom: 0.7rem; }
.page-tdb .carte-vie .meta { line-height: 1.6; margin: 0 0 1.3rem; }
.page-tdb .actions-vie { margin-bottom: 1.4rem; gap: 0.8rem; }
.page-tdb .reprise-autres { margin-top: 0.5rem; }
.page-tdb .reprise-autres li { padding: 0.7rem 0; }
.page-tdb .flamme { margin-bottom: 1.3rem; }
.page-tdb .semaine { margin-bottom: 1.6rem; }
.page-tdb .barre-palier { margin-bottom: 0.9rem; }
.page-tdb #salons { gap: 1.6rem; margin-bottom: 3.2rem; }
.page-tdb .salon { padding: 1.7rem 1.8rem; }
.page-tdb .salon h2 { margin-bottom: 0.7rem; }
.page-tdb .salon p { line-height: 1.6; }
.page-tdb #contenu-acces section { margin-bottom: 3.2rem; }
.page-tdb .section-titre { margin: 0 0 1.2rem; }
.page-tdb .filiere-titre { margin: 0 0 1.4rem; }
.page-tdb .puces-salons { gap: 1rem; }
.page-tdb .liste-compacte, .page-tdb .liste-annonces { gap: 1.1rem; }
.page-tdb .liste-compacte .element { padding: 1.3rem 1.5rem; }
.page-tdb .annonce { padding: 1.4rem 1.6rem; }

/* ---------- Documentation : toute la largeur, filtres à gauche, documents à droite ---------- */
.page-doc .contenu-large { max-width: 96rem; padding-left: clamp(1rem, 4vw, 3.5rem); padding-right: clamp(1rem, 4vw, 3.5rem); }
.page-doc .doc-entete { margin-bottom: 1.4rem; }
.page-doc .chiffres { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.8rem; }
.page-doc .chiffre { flex: 1 1 11rem; }
.page-doc .chiffre { display: flex; align-items: baseline; gap: 0.6rem; padding: 0.9rem 1.3rem; }
.page-doc .chiffre strong { display: inline; font-size: 1.6rem; }
.page-doc .chiffre span { font-size: 0.92rem; }
.page-doc .doc-corps { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: 2.4rem; align-items: start; }
.page-doc .doc-filtres { position: sticky; top: 5.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.page-doc .doc-filtres .champ-recherche { flex: none; }
.page-doc .doc-filtres select { width: 100%; }
.page-doc .doc-filtre-label { margin: 0.9rem 0 0.1rem; font-size: 0.9rem; font-weight: 700; color: var(--blanc); }
.page-doc .doc-filtres .groupe-chips { margin-bottom: 0; }
.page-doc .compte-resultats { margin-top: 0; }
.page-doc .grille-docs { grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1.2rem; }
@media (max-width: 900px) {
  .page-doc .doc-corps { grid-template-columns: 1fr; gap: 1rem; }
  .page-doc .doc-filtres { position: static; }
}

/* ---------- Mon espace : titres plus naturels, cartes moins uniformes ---------- */
.page-tdb .carte-vie h2 { font-size: 1.15rem; text-transform: none; letter-spacing: 0; color: var(--blanc); font-weight: 700; }
.page-tdb .flamme-nombre { font-size: 3.2rem; }
.page-tdb .flamme { align-items: center; gap: 0.5rem; }
.page-tdb .semaine { justify-content: flex-start; gap: 0.9rem; }
.page-tdb .semaine .jour i { width: 36px; height: 36px; }
.page-tdb .semaine .jour.auj i { box-shadow: 0 0 0 3px var(--panneau, #15161b), 0 0 0 5px var(--accent); }
.page-tdb .semaine .jour.auj small { color: var(--blanc); font-weight: 700; }
.page-tdb .barre-palier { height: 10px; }
.page-tdb .carte-vie .meta { font-size: 0.95rem; }
.page-tdb .carte-vie .meta.discret { margin-top: -0.4rem; }

/* Cartes du bas : simples, sans images, qui occupent toute la largeur */
.page-tdb .contenu-large { max-width: 96rem; padding-left: clamp(1rem, 4vw, 3.5rem); padding-right: clamp(1rem, 4vw, 3.5rem); }
.page-tdb .salon h2 { margin: 0 0 0.6rem; font-size: 1.3rem; }
.page-tdb .salon p { font-size: 1rem; }
@media (min-width: 900px) {
  .page-tdb #salons { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .page-tdb .salon { padding: 2rem 2.1rem; }
  .page-tdb .salon-ia h2 { font-size: 1.5rem; }
}

/* ============================================================
   Mon espace — version compacte, moins symétrique, sérieuse
   ============================================================ */
.page-tdb .tdb-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; margin: 0 0 1.4rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--v08); }
.page-tdb .tdb-salut { min-width: 0; }
.page-tdb .tdb-tete h1 { margin: 0 0 0.25rem; font-size: 2.2rem; line-height: 1.1; }
.page-tdb .tdb-tete .mot-doux { margin: 0; font-size: 1rem; }
.page-tdb .tdb-tete .bandeau { margin: 0; padding: 0.7rem 0.7rem 0.7rem 1.1rem; gap: 1.4rem; border-radius: 12px 12px 12px 4px; width: auto; max-width: 100%; }
.page-tdb .tdb-tete .bandeau p { font-size: 0.95rem; }
.page-tdb .tdb-tete .bandeau .discret { font-size: 0.82rem; margin-top: 0.1rem; }
.page-tdb .nouveautes-bande { margin-bottom: 1.4rem; padding: 0.6rem 1rem; font-size: 0.92rem; border-radius: 10px; width: fit-content; max-width: 100%; }

/* Reprise + série : deux cartes de tailles différentes, décalées, hauteur propre à chacune */
.page-tdb .vie { align-items: start; gap: 1.2rem; margin-bottom: 1.8rem; }
@media (min-width: 900px) { .page-tdb .vie { grid-template-columns: 1.45fr 1fr; } }
.page-tdb .carte-vie { padding: 1.2rem 1.4rem; }
.page-tdb #carte-reprise { border-radius: 16px 16px 16px 6px; }
.page-tdb #carte-progression { border-radius: 14px 14px 6px 14px; margin-top: 1.1rem; }
.page-tdb .carte-vie h2 { margin-bottom: 0.7rem; font-size: 1rem; }
.page-tdb .reprise-titre { font-size: 1.1rem; margin-bottom: 0.4rem; }
.page-tdb .carte-vie .meta { margin: 0 0 0.9rem; font-size: 0.9rem; }
.page-tdb .actions-vie { margin-bottom: 0; }
.page-tdb .flamme { margin-bottom: 0.7rem; }
.page-tdb .flamme-nombre { font-size: 2.4rem; }
.page-tdb .semaine { gap: 0.6rem; margin-bottom: 0.9rem; }
.page-tdb .semaine .jour i { width: 28px; height: 28px; font-size: 0.72rem; }
.page-tdb .barre-palier { height: 7px; margin-bottom: 0.7rem; }
.page-tdb .carte-vie .meta.discret { margin-top: 0; }

/* Accès rapides : tailles et hauteurs inégales, plus compacts */
.page-tdb #salons { align-items: start; gap: 1rem 1.1rem; margin-bottom: 2.4rem; }
.page-tdb .salon { padding: 1.1rem 1.3rem; }
.page-tdb .salon h2 { font-size: 1.1rem; margin: 0 0 0.3rem; }
.page-tdb .salon p { font-size: 0.9rem; line-height: 1.45; }
@media (min-width: 900px) {
  .page-tdb #salons { grid-template-columns: 1.7fr 1fr 0.9fr 1.15fr; }
  .page-tdb .salon { padding: 1.1rem 1.3rem; }
  .page-tdb .salon-ia { padding: 1.3rem 1.5rem; border-radius: 16px 16px 16px 6px; }
  .page-tdb .salon-ia h2 { font-size: 1.3rem; }
  .page-tdb #salons > :nth-child(2) { margin-top: 0.9rem; border-radius: 12px 12px 4px 12px; }
  .page-tdb #salons > :nth-child(3) { margin-top: 0.3rem; }
  .page-tdb #salons > :nth-child(4) { margin-top: 1.3rem; border-radius: 12px 4px 12px 12px; }
}
.page-tdb #contenu-acces section { margin-bottom: 2.2rem; }

/* Mon espace : bandeau « nouveaux messages » retiré, carte de série réduite */
.page-tdb .nouveautes-bande { display: none !important; }
@media (min-width: 900px) { .page-tdb .vie { grid-template-columns: 1.8fr 0.95fr; } }
.page-tdb #carte-progression { padding: 0.9rem 1.1rem; margin-top: 0.8rem; }
.page-tdb #carte-progression h2 { margin-bottom: 0.4rem; font-size: 0.95rem; }
.page-tdb #carte-progression .flamme { margin-bottom: 0.45rem; }
.page-tdb #carte-progression .flamme-nombre { font-size: 1.9rem; }
.page-tdb #carte-progression .flamme-nombre::before { font-size: 1.2rem; }
.page-tdb #carte-progression .semaine { gap: 0.4rem; margin-bottom: 0.6rem; }
.page-tdb #carte-progression .semaine .jour i { width: 24px; height: 24px; font-size: 0.65rem; }
.page-tdb #carte-progression .semaine .jour small { font-size: 0.62rem; }
.page-tdb #carte-progression .barre-palier { height: 6px; margin-bottom: 0.5rem; }
.page-tdb #carte-progression .meta { font-size: 0.82rem; margin: 0 0 0.35rem; line-height: 1.4; }
.page-tdb #carte-progression .bouton { padding: 0.35rem 0.8rem; font-size: 0.8rem; margin-top: 0.2rem; }

/* ---------- Mon espace : salons en étiquettes, documents en liste fine, favoris à côté ---------- */
.page-tdb .puces-salons { gap: 0.5rem; }
.page-tdb .puces-salons a { padding: 0.4rem 0.85rem; border-radius: 10px 10px 10px 3px; font-size: 0.92rem; gap: 0.45rem; }
.page-tdb .puces-salons a:hover { transform: none; }
.page-tdb .puces-salons .general::after { display: none; }
.page-tdb .puces-salons .general { border-color: rgba(105,174,255,0.5); }
.puce-nb { font-style: normal; background: #e5484d; color: #fff; font-size: 0.68rem; font-weight: 800; border-radius: 999px; padding: 0.05rem 0.42rem; }
.page-tdb #section-salons { margin-bottom: 1.8rem; }

.tdb-docs { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2.2rem; align-items: start; }
.tdb-docs:not(:has(#section-favoris:not([hidden]))) { grid-template-columns: minmax(0, 1fr); }
.tdb-docs > section { margin-bottom: 0 !important; }
.page-tdb .tdb-docs .section-titre { margin-bottom: 0.5rem; }
.page-tdb .tdb-docs .liste-compacte { gap: 0; }
.page-tdb .tdb-docs .liste-compacte > li { animation: none; }
.page-tdb .tdb-docs .liste-compacte a.element {
  padding: 0.8rem 0.2rem; border: 0; border-bottom: 1px solid var(--v06); border-radius: 0; background: none; box-shadow: none; gap: 0.9rem; align-items: baseline;
}
.page-tdb .tdb-docs .liste-compacte a.element:hover { transform: none; background: var(--v04); border-color: var(--v06); }
.page-tdb .tdb-docs .element > div { flex: 1; min-width: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.page-tdb .tdb-docs .element .titre { font-weight: 600; font-size: 0.98rem; }
.page-tdb .tdb-docs .element .meta { white-space: nowrap; }
.page-tdb .tdb-docs .liste-compacte > li:nth-child(2) a.element { padding-left: 0.9rem; }
.page-tdb .tdb-docs .liste-compacte > li:nth-child(4) a.element { padding-left: 0.5rem; }

#section-favoris { background: var(--panneau); border: 1px solid var(--v08); border-radius: 16px 16px 16px 5px; padding: 1rem 1.2rem 0.4rem; }
#section-favoris .element .meta { display: none; }
#section-favoris .liste-compacte a.element { padding: 0.65rem 0 !important; }
#section-favoris .liste-compacte > li:last-child a.element { border-bottom: 0; }
#section-favoris .element .titre { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (max-width: 899px) { .tdb-docs { grid-template-columns: minmax(0, 1fr); } .page-tdb .tdb-docs .element > div { flex-direction: column; gap: 0.1rem; } }

/* ============================================================
   Mon compte — large, simple, sans grosses boîtes
   ============================================================ */
.page-profil .contenu-large { max-width: 96rem; padding-left: clamp(1rem, 4vw, 3rem); padding-right: clamp(1rem, 4vw, 3rem); }
.profil-tete { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.8rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--v08); }
.profil-tete h1 { margin: 0 0 0.15rem; font-size: 2rem; line-height: 1.1; }
.profil-tete .mot-doux { margin: 0; font-size: 0.95rem; color: var(--texte-doux); }
.profil-avatar { flex: none; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--sur-accent); font-size: 1.4rem; font-weight: 800; box-shadow: 0 0 0 4px var(--fond), 0 0 0 6px var(--v14); }

.profil-corps { display: grid; gap: 2.4rem; align-items: start; }
@media (min-width: 900px) { .profil-corps { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } }
.profil-col-g { display: grid; gap: 2rem; }
.profil-col-d { display: grid; gap: 1.4rem; }
@media (min-width: 900px) { .profil-col-d { margin-top: 2.6rem; } }

.profil-bloc h2 { font-size: 1.15rem; margin: 0 0 0.9rem; }
.profil-col-g .profil-bloc { padding-bottom: 1.8rem; border-bottom: 1px solid var(--v06); }
.profil-col-g .profil-bloc:last-child { border-bottom: 0; }
.profil-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; align-items: start; }
.profil-grille > p, .profil-grille > .profil-large, .profil-action { grid-column: 1 / -1; }
.profil-grille .champ { margin: 0; }
.profil-grille .aide { font-size: 0.82rem; color: var(--texte-doux); margin-top: -0.4rem; }
.profil-action { margin-top: 0.2rem; }
@media (max-width: 640px) { .profil-grille { grid-template-columns: 1fr; } }

.profil-abo { padding: 1.2rem 1.4rem; background: var(--degrade-carte); border: 1px solid var(--bordure); border-radius: 16px 16px 16px 5px; }
.profil-abo h2 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.profil-etat { margin: 0 0 1rem; color: var(--texte); line-height: 1.5; }

.profil-danger { padding: 0.2rem 0; border-top: 1px solid var(--v06); }
.profil-danger summary { padding: 0.8rem 0; cursor: pointer; color: var(--texte-doux); font-size: 0.92rem; list-style: none; }
.profil-danger summary::-webkit-details-marker { display: none; }
.profil-danger summary::after { content: " \203A"; }
.profil-danger[open] summary { color: var(--rouge); }
.profil-danger[open] summary::after { content: " \2304"; }
.profil-danger p { font-size: 0.88rem; color: var(--texte-doux); }


/* ============================================================
   MON ESPACE v3 : plus de vie, de couleur et de relief
   ============================================================ */
body.page-tdb { position: relative; }
.page-tdb::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 560px; pointer-events: none; z-index: 0;
  background: radial-gradient(60% 100% at 12% 0, rgba(39, 118, 220, 0.30), transparent), radial-gradient(40% 80% at 96% 18%, rgba(255, 138, 61, 0.10), transparent);
}
:root[data-theme="light"] .page-tdb::before { opacity: 0.45; }
.page-tdb main { position: relative; z-index: 1; }

/* En-tête : pastilles colorées comme des gommettes */
.page-tdb .tdb-tete { border-bottom: 0; padding-bottom: 0.4rem; align-items: flex-start; }
.page-tdb .tdb-tete h1 { font-size: clamp(2.2rem, 4.4vw, 3rem); letter-spacing: -0.035em; }
.page-tdb .tdb-tete .mot-doux { font-size: 1.08rem; }
.pastilles { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.pastilles:empty { display: none; }
.pastille-tdb { display: inline-block; padding: 0.4rem 0.95rem; border-radius: 999px; font-size: 0.85rem; font-weight: 700; color: #1b1f3b; text-decoration: none; }
a.pastille-tdb:hover { text-decoration: none; filter: brightness(1.06); }
.pastille-tdb.p1 { background: #ffe27a; transform: rotate(-1.5deg); }
.pastille-tdb.p2 { background: #bfe3ff; transform: rotate(1deg); }
.pastille-tdb.p3 { background: #c9f0cf; transform: rotate(-0.8deg); }
.pastille-tdb.p4 { background: #ffc9d6; transform: rotate(1.2deg); }

/* Grille principale : reprise + tuteur à gauche, série + annonces à droite */
.page-tdb .tdb-grille { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1.4rem; margin: 1.6rem 0 2.4rem; align-items: stretch; }
.page-tdb .tdb-grille > .vie:not([hidden]) { display: contents; }
.page-tdb #carte-reprise { grid-column: 1; grid-row: 1; margin: 0; }
.page-tdb #carte-progression { grid-column: 2; grid-row: 1 / span 1; margin: 0; }
.page-tdb .carte-tuteur { grid-column: 1; grid-row: 2; }
.page-tdb .carte-annonces { grid-column: 2; grid-row: 2; }
.page-tdb .tdb-grille:not(:has(#section-annonces:not([hidden]))) .carte-tuteur { grid-column: 1 / -1; }
.page-tdb .carte-vie { padding: 1.5rem 1.6rem; border-radius: 22px; }
.page-tdb .carte-vie h2 { font-size: 0.85rem; text-transform: none; letter-spacing: 0; font-weight: 700; color: var(--accent-clair); margin-bottom: 0.8rem; }

/* Reprendre : la feuille à carreaux montre le document en cours */
.page-tdb #carte-reprise { position: relative; overflow: hidden; background: radial-gradient(circle at 100% 0, rgba(39, 118, 220, 0.25), transparent 55%), var(--degrade-carte); }
.reprise-ligne { display: grid; grid-template-columns: minmax(0, 1fr) 11.5rem; gap: 1.2rem; align-items: center; }
.reprise-texte .reprise-titre { font-size: 1.35rem; line-height: 1.25; letter-spacing: -0.015em; }
.reprise-texte .meta { margin: 0.4rem 0 1rem !important; }
.feuille {
  position: relative; transform: rotate(3deg); height: 9.5rem; padding: 1rem 0.8rem 0 1.8rem; border-radius: 5px; overflow: hidden; color: #1b1f3b;
  background-color: #fdfdff; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  background-image: linear-gradient(to right, transparent 1.3rem, #e9788f 1.3rem, #e9788f calc(1.3rem + 1px), transparent calc(1.3rem + 1px)), repeating-linear-gradient(to bottom, transparent 0 17px, #c9d3f5 17px 18px);
}
.feuille strong { display: block; font-size: 0.78rem; margin-bottom: 0.3rem; }
.feuille p { margin: 0; font-size: 0.74rem; line-height: 18px; }
.feuille .scotch { position: absolute; top: -8px; left: 3.2rem; width: 4.2rem; height: 1.2rem; transform: rotate(-3deg); background: rgba(255, 226, 122, 0.85); clip-path: none; box-shadow: none; }

/* Tuteur IA : la carte qui donne envie de poser une question */
.carte-tuteur {
  display: block; padding: 1.5rem 1.6rem 1.4rem; border-radius: 22px; color: var(--texte); text-decoration: none;
  background: linear-gradient(135deg, #1a3a6e, #0f1d38); border: 1px solid rgba(105, 174, 255, 0.45);
  transition: transform 0.25s, box-shadow 0.25s;
}
:root[data-theme="light"] .carte-tuteur { background: linear-gradient(135deg, #dbe9ff, #eef4ff); }
.carte-tuteur:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 18px 40px rgba(39, 118, 220, 0.3); }
.tuteur-tete { display: flex; justify-content: space-between; align-items: center; }
.tuteur-tete h2 { margin: 0; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--blanc); }
.tuteur-pastille { font-size: 0.74rem; font-weight: 800; padding: 0.15rem 0.65rem; border-radius: 999px; background: rgba(105, 174, 255, 0.22); color: var(--accent-clair); }
.tuteur-intro { margin: 0.4rem 0 0.9rem; color: var(--texte-doux); font-size: 0.95rem; }
.tuteur-dialogue { display: grid; gap: 0.5rem; margin-bottom: 0.9rem; }
.tuteur-dialogue small { color: var(--texte-plus-doux); font-size: 0.72rem; }
.tuteur-dialogue p { margin: 0; max-width: 78%; padding: 0.55rem 0.9rem; border-radius: 14px; font-size: 0.92rem; line-height: 1.4; }
.tuteur-dialogue .moi { justify-self: end; background: rgba(255, 255, 255, 0.1); border-bottom-right-radius: 4px; }
.tuteur-dialogue .tut { justify-self: start; background: var(--accent); color: var(--sur-accent); border-bottom-left-radius: 4px; }
.tuteur-saisie { display: flex; align-items: center; gap: 0.6rem; padding: 0.65rem 0.8rem 0.65rem 1rem; border-radius: 14px; border: 1px solid var(--bordure); background: rgba(8, 13, 22, 0.55); color: var(--texte-doux); font-size: 0.92rem; }
.tuteur-saisie span { margin-left: auto; padding: 0.4rem 0.9rem; border-radius: 10px; background: var(--accent); color: var(--sur-accent); font-weight: 700; font-size: 0.82rem; }
:root[data-theme="light"] .tuteur-saisie { background: rgba(255, 255, 255, 0.8); }
.tuteur-sugg { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.tuteur-sugg i { font-style: normal; font-size: 0.8rem; padding: 0.3rem 0.8rem; border-radius: 999px; border: 1px solid var(--bordure); background: rgba(255, 255, 255, 0.05); color: var(--texte); }

/* Série : la seule couleur chaude de la page */
.page-tdb #carte-progression { background: linear-gradient(160deg, rgba(255, 138, 61, 0.2), transparent 62%), var(--degrade-carte); border-color: rgba(255, 138, 61, 0.38); padding: 1.5rem 1.6rem; }
.page-tdb #carte-progression h2 { color: #ff9a55; font-size: 0.85rem; margin-bottom: 0.4rem; }
.page-tdb #carte-progression .flamme-nombre { font-size: 3.6rem; color: #ff8a3d; letter-spacing: -0.04em; }
.page-tdb #carte-progression .flamme-nombre::before { font-size: 1.6rem; }
.page-tdb #carte-progression .flamme { margin-bottom: 0.9rem; }
.page-tdb #carte-progression .semaine { gap: 0.5rem; margin-bottom: 0.9rem; justify-content: space-between; }
.page-tdb #carte-progression .semaine .jour { flex: 1; }
.page-tdb #carte-progression .semaine .jour i { width: 100%; height: 2rem; border-radius: 10px; font-size: 0.8rem; }
.page-tdb #carte-progression .semaine .jour.fait i { background: linear-gradient(135deg, #ff8a3d, #ffb36b); border-color: transparent; color: #3a1d05; }
.page-tdb #carte-progression .semaine .jour.auj i { box-shadow: 0 0 0 3px var(--fond), 0 0 0 5px #ff8a3d; }
.page-tdb #carte-progression .barre-palier span { background: linear-gradient(90deg, #ff8a3d, #ffb36b); }
.page-tdb #carte-progression .meta { font-size: 0.88rem; }
.page-tdb #carte-progression .bouton { padding: 0.45rem 0.95rem; font-size: 0.82rem; }

/* Annonces */
.carte-annonces { padding: 1.4rem 1.6rem; border-radius: 22px; border: 1px solid var(--bordure); background: var(--degrade-carte); margin: 0; }
.carte-annonces h2 { margin: 0 0 0.5rem; font-size: 0.85rem; font-weight: 700; color: var(--accent-clair); }
.page-tdb .carte-annonces .liste-annonces { gap: 0; }
.page-tdb .carte-annonces .annonce { background: none; border: 0; border-top: 1px solid var(--v08); border-radius: 0; padding: 0.8rem 0 0.8rem 1.1rem; position: relative; box-shadow: none; }
.page-tdb .carte-annonces .annonce:first-child { border-top: 0; }
.page-tdb .carte-annonces .annonce::before { content: ""; position: absolute; left: 0; top: 1.25rem; width: 8px; height: 8px; border-radius: 50%; background: #ffd84d; }
.page-tdb .carte-annonces .annonce h3 { font-size: 0.98rem; margin: 0 0 0.15rem; }
.page-tdb .carte-annonces .annonce p { font-size: 0.88rem; color: var(--texte-doux); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Salons : étiquettes colorées avec les messages non lus */
.page-tdb #section-salons .section-titre h2 { font-size: 1.5rem; letter-spacing: -0.02em; }
.page-tdb .puces-salons { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0.9rem; }
.page-tdb .puces-salons a {
  position: relative; display: flex; align-items: flex-end; min-height: 5.6rem; padding: 1rem 1.1rem; border: 0; border-radius: 16px;
  font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; color: #1b1f3b; transition: transform 0.2s;
}
.page-tdb .puces-salons a::before { content: none; }
.page-tdb .puces-salons li:nth-child(4n+1) a { background: #ffe27a; transform: rotate(-0.8deg); }
.page-tdb .puces-salons li:nth-child(4n+2) a { background: #bfe3ff; transform: rotate(0.6deg); }
.page-tdb .puces-salons li:nth-child(4n+3) a { background: #ffc9d6; transform: rotate(-0.4deg); }
.page-tdb .puces-salons li:nth-child(4n+4) a { background: #c9f0cf; transform: rotate(0.7deg); }
.page-tdb .puces-salons a:hover { transform: translateY(-3px) rotate(0); background-color: inherit; }
.page-tdb .puces-salons .puce-nb { position: absolute; top: 0.8rem; right: 0.8rem; background: #1b1f3b; color: #fff; font-size: 0.74rem; padding: 0.1rem 0.55rem; }

/* Documents et favoris : deux cartes */
.page-tdb .tdb-docs { gap: 1.4rem; }
.page-tdb .tdb-docs > section { background: var(--degrade-carte); border: 1px solid var(--bordure); border-radius: 22px; padding: 1.3rem 1.6rem 0.8rem; margin-bottom: 0 !important; }
.page-tdb #section-favoris { border-radius: 22px; }
.page-tdb .tdb-docs .section-titre h2 { font-size: 0.95rem; font-weight: 700; color: var(--accent-clair); }
.page-tdb .vide { margin: 0.4rem 0 0.9rem; color: var(--texte-doux); font-size: 0.88rem; }
.page-tdb .tdb-docs .liste-compacte a.element { padding: 0.85rem 0.1rem; }
.page-tdb .tdb-docs .liste-compacte > li:nth-child(n) a.element { padding-left: 0.1rem; }

@media (max-width: 899px) {
  .page-tdb .tdb-grille { grid-template-columns: minmax(0, 1fr); }
  .page-tdb #carte-reprise, .page-tdb #carte-progression, .page-tdb .carte-tuteur, .page-tdb .carte-annonces { grid-column: 1; grid-row: auto; }
  .reprise-ligne { grid-template-columns: minmax(0, 1fr); }
  .feuille { display: none; }
  .tuteur-dialogue p { max-width: 92%; }
}
@media (min-width: 1000px) {
  .page-tdb .tdb-tete { flex-wrap: nowrap; }
  .page-tdb .tdb-salut { flex: 1; }
  .page-tdb .tdb-tete .bandeau { flex: 0 0 auto; max-width: 27rem; }
}
.page-tdb .puces-salons { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
@media (max-width: 899px) { .page-tdb .puces-salons a { min-height: 3.8rem; } }

/* ============================================================
   Mon espace : derniers documents et favoris en feuilles à carreaux
   ============================================================ */
.page-tdb .bloc-feuilles { background: none; border: 0; padding: 0; border-radius: 0; margin-bottom: 2.4rem !important; }
.page-tdb #section-favoris { background: none; border: 0; padding: 0; border-radius: 0; }
.page-tdb .bloc-feuilles .section-titre { margin: 0 0 1.2rem; }
.page-tdb .bloc-feuilles .section-titre h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; color: var(--blanc); }
.feuilles-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1rem; }
.feuille-doc {
  position: relative; display: flex; flex-direction: column; gap: 0.5rem; min-height: 8.6rem; padding: 1.1rem 1.2rem; border-radius: 16px; color: var(--texte); text-decoration: none;
  background: var(--degrade-carte); border: 1px solid var(--bordure); transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.feuille-doc:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--accent); background: var(--panneau-2); }
.feuille-doc .scotch { display: none; }
.feuille-doc strong { font-size: 1rem; line-height: 1.35; color: var(--blanc); letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feuille-doc small { margin-top: auto; font-size: 0.82rem; color: var(--texte-doux); }
.etiquette-doc { align-self: flex-start; padding: 0.15rem 0.65rem; border-radius: 999px; font-size: 0.72rem; font-weight: 800; background: rgba(105, 174, 255, 0.16); color: var(--accent-clair); }
.etiquette-doc.t-tp { background: rgba(155, 109, 255, 0.16); color: #b59bff; }
.etiquette-doc.t-examen { background: rgba(255, 138, 61, 0.16); color: #ff9d5c; }
.etiquette-doc.t-cours { background: rgba(86, 214, 130, 0.16); color: #6fe09a; }
.etoile-doc { position: absolute; top: 0.9rem; right: 1rem; font-size: 1.15rem; color: #f2b705; }
.favoris-vide {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 1.5rem; padding: 1.2rem 1.5rem;
  border: 1px dashed var(--bordure); border-radius: 18px; background: var(--degrade-carte);
}
.favoris-vide p { margin: 0; color: var(--texte-doux); line-height: 1.5; }
.favoris-vide strong { color: var(--blanc); }
@media (max-width: 899px) { .feuilles-grille { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); } }

/* Annonces : la carte garde la hauteur de la carte du Tuteur IA, on clique pour lire en entier */
@media (min-width: 900px) {
  .page-tdb .carte-annonces { contain: size; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--v18) transparent; }
}
.page-tdb .carte-annonces .annonce { cursor: pointer; transition: background 0.2s; }
.page-tdb .carte-annonces .annonce:hover h3, .page-tdb .carte-annonces .annonce:focus-visible h3 { color: var(--accent-clair); }
.page-tdb .carte-annonces .annonce:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.annonce-fenetre { width: min(34rem, calc(100% - 2rem)); max-height: 85vh; padding: 1.6rem; border: 1px solid var(--bordure); border-radius: 22px; background: var(--panneau); color: var(--texte); box-shadow: var(--ombre); overflow-y: auto; }
.annonce-fenetre::backdrop { background: rgba(4, 8, 16, 0.7); }
.annonce-fenetre h2 { margin: 0 0 0.8rem; font-size: 1.3rem; color: var(--blanc); }
.annonce-fenetre p { margin: 0 0 1rem; white-space: pre-line; line-height: 1.6; color: var(--texte); }
.annonce-fenetre small { display: block; margin-bottom: 1.2rem; color: var(--texte-doux); }


/* ============================================================
   Documentation en lignes groupées par matière + Favoris en cartes
   ============================================================ */
.page-doc .grille-docs { grid-template-columns: minmax(0, 1fr); gap: 0.7rem; }
.groupe-matiere { margin: 0.9rem 0 0.1rem; font-size: 0.9rem; font-weight: 700; color: var(--accent-clair); }
.groupe-matiere:first-child { margin-top: 0; }
.ligne-doc {
  display: flex; align-items: center; gap: 1rem; padding: 0.85rem 1.1rem; border-radius: 16px;
  background: var(--degrade-carte); border: 1px solid var(--bordure); transition: border-color 0.2s, background 0.2s;
}
.ligne-doc:hover { border-color: var(--accent); background: var(--panneau-2); }
.ico-doc { flex: none; width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 13px; font-size: 0.76rem; font-weight: 800; background: rgba(105, 174, 255, 0.16); color: var(--accent-clair); }
.ico-doc.t-cours { background: rgba(86, 214, 130, 0.15); color: #6fe09a; }
.ico-doc.t-tp { background: rgba(155, 109, 255, 0.16); color: #b59bff; }
.ico-doc.t-examen { background: rgba(255, 138, 61, 0.16); color: #ff9d5c; }
.ligne-doc-texte { flex: 1; min-width: 0; }
.ligne-doc-titre { display: block; font-weight: 700; color: var(--blanc); font-size: 1rem; line-height: 1.3; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ligne-doc-titre:hover { color: var(--accent-clair); text-decoration: none; }
.ligne-doc-meta { margin: 0.15rem 0 0; font-size: 0.82rem; color: var(--texte-doux); }
@media (max-width: 640px) {
  /* Téléphone : icône + titre + étoile en haut, bouton en dessous sur toute la largeur */
  .ligne-doc { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.55rem 0.75rem; padding: 0.8rem 0.9rem; border-radius: 14px; }
  .ligne-doc > .ico-doc { grid-column: 1; grid-row: 1; width: 2.4rem; height: 2.4rem; border-radius: 11px; font-size: 0.68rem; }
  .ligne-doc > .ligne-doc-texte { grid-column: 2; grid-row: 1; }
  .ligne-doc > button { grid-column: 3; grid-row: 1; }
  .ligne-doc > .bouton { grid-column: 1 / -1; grid-row: 2; justify-content: center; justify-self: stretch; text-align: center; box-sizing: border-box; }
  .ligne-doc-titre {
    white-space: normal; font-size: 0.92rem; line-height: 1.3;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
  }
  .ligne-doc-meta { font-size: 0.76rem; line-height: 1.35; }
}

.favoris-filtres { margin: 0 0 1.2rem; }
.grille-favoris { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); }
.carte-favori { display: flex; flex-direction: column; gap: 0.6rem; min-height: 11rem; padding: 1.1rem 1.2rem; border-radius: 18px; background: var(--degrade-carte); border: 1px solid var(--bordure); }
.carte-favori:hover { border-color: var(--accent); }
.carte-favori-haut { display: flex; align-items: center; justify-content: space-between; }
.carte-favori-titre { font-weight: 700; font-size: 1.05rem; line-height: 1.35; color: var(--blanc); text-decoration: none; }
.carte-favori-titre:hover { color: var(--accent-clair); text-decoration: none; }
.carte-favori-meta { margin: 0; font-size: 0.85rem; color: var(--texte-doux); }
.carte-favori-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ===== Mon espace v4 : raccourcis, objectif du jour, Tuteur, annonces ===== */
.raccourcis { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.raccourci { padding: 0.55rem 1.1rem; border-radius: 999px; border: 1px solid var(--bordure); background: rgba(255, 255, 255, 0.05); color: var(--texte); font-weight: 600; font-size: 0.92rem; text-decoration: none; transition: background 0.2s, transform 0.2s; }
.raccourci:hover { background: rgba(255, 255, 255, 0.1); text-decoration: none; transform: translateY(-1px); }
.raccourci-principal { background: var(--accent); border-color: var(--accent); color: var(--sur-accent); }
.raccourci-principal:hover { background: var(--accent); filter: brightness(1.1); }
.raccourcis + .pastilles:empty { display: none; }
.raccourcis + .pastilles { margin-top: 0.8rem; }

.objectif { margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid var(--v08); }
.objectif-titre { display: flex; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; margin: 0 0 0.6rem; font-size: 0.9rem; }
.objectif-titre strong { color: var(--blanc); }
.objectif-titre span { color: var(--texte-doux); }
.objectif .meta { margin: 0.6rem 0 0; }

.carte-tuteur:hover { transform: none; box-shadow: none; }
.carte-tuteur .tuteur-saisie { display: flex; align-items: center; gap: 0.8rem; padding: 0.95rem 0.9rem 0.95rem 1.1rem; border-radius: 18px; text-decoration: none; transition: border-color 0.2s; }
.carte-tuteur .tuteur-saisie:hover { border-color: var(--accent-clair); text-decoration: none; }
.saisie-plus { font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--texte-doux); }
.carte-tuteur .saisie-texte { margin: 0; padding: 0; background: none; color: var(--texte-doux); font-size: 0.95rem; font-weight: 400; }
.carte-tuteur .saisie-envoi { margin-left: auto; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--sur-accent); font-size: 1.05rem; }
.tuteur-sugg a { font-size: 0.82rem; padding: 0.35rem 0.85rem; border-radius: 999px; border: 1px solid var(--bordure); background: rgba(255, 255, 255, 0.05); color: var(--texte); text-decoration: none; transition: background 0.2s; }
.tuteur-sugg a:hover { background: rgba(255, 255, 255, 0.11); text-decoration: none; }
.derniere-conv { display: block; margin-top: 0.9rem; font-size: 0.85rem; color: var(--texte-doux); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.derniere-conv:hover { color: var(--accent-clair); text-decoration: none; }

.badge-epingle { display: inline-block; margin-bottom: 0.3rem; padding: 0.1rem 0.55rem; border-radius: 999px; background: rgba(255, 216, 77, 0.18); color: #ffd84d; font-size: 0.68rem; font-weight: 800; }
.page-tdb .carte-annonces .annonce-pied { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; }
.page-tdb .carte-annonces .annonce-pied small { font-size: 0.78rem; }
.annonce-lire { font-size: 0.8rem; font-weight: 700; color: var(--accent-clair); }
.annonce-attente { margin: 0.8rem 0 0; padding: 0.9rem 1rem; border: 1px dashed var(--bordure); border-radius: 14px; text-align: center; font-size: 0.86rem; color: var(--texte-plus-doux); }

/* ===== Communauté WhatsApp ===== */
.carte-communaute { margin-top: 1rem; padding: 1.2rem 1.3rem; border: 1px solid var(--bordure); border-radius: 16px; background: rgba(255, 255, 255, 0.03); }
.carte-communaute h2 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.carte-communaute p { margin: 0; color: var(--texte-doux); font-size: 0.92rem; }
.communaute-note { margin: 1.4rem 0 0.8rem; color: var(--texte-doux); }

.tarif .prix-barre { margin: 0 0 -0.2rem; font-size: 1rem; opacity: 0.55; text-decoration: line-through; text-decoration-color: #ff6b6b; text-decoration-thickness: 2px; }
