/* =====================================================================
   Barev Djan V2 — compléments au style V1 (même ADN : nuit indigo,
   dégradé grenade → abricot, Unbounded, panneaux en verre).
   Ce fichier ne remplace rien : il ajoute ce que l'audit demandait
   (inscription, communauté, icônes, footer complet, formulaires).
   ===================================================================== */

/* ---------- Icônes SVG (remplacent les émojis) ---------- */
.ico { width: 1.1em; height: 1.1em; display: inline-block; vertical-align: -0.18em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.son .ico { width: 22px; height: 22px; vertical-align: middle; }
.ecoute .son .ico { width: 42px; height: 42px; }
.case .fond .ico { width: 84px; height: 84px; stroke-width: 1.5; }
.tabbar .ico { width: 22px; height: 22px; }
.tabbar a, .tabbar button { min-width: 0; text-align: center; line-height: 1.15; overflow-wrap: anywhere; }
html:not(:lang(fr)) .tabbar a, html:not(:lang(fr)) .tabbar button { font-size: 9.5px; }.tabbar a span, .tabbar button span { display: grid; place-items: center; height: 22px; }

/* ---------- En-tête : bouton Rejoindre ---------- */
.top .btn-rejoindre { padding: 9px 16px; font-size: 14.5px; border-radius: 12px; white-space: nowrap; flex: 0 0 auto; }
.top .btn-rejoindre.connecte { background: rgba(255,255,255,0.1); color: var(--texte); box-shadow: none; border: 1px solid var(--bord); }
.logo { white-space: nowrap; flex: 0 0 auto; }
.top .wrap { gap: 10px; }
@media (max-width: 1240px) { .menu a { padding: 8px 8px; font-size: 14px; } }
@media (max-width: 1140px) { .menu a[data-lien="proverbes"], .menu a[data-lien="livres"] { display: none; } }
@media (max-width: 920px) { .menu a[data-lien="jeux"], .menu a[data-lien="boutique"] { display: none; } }
@media (max-width: 760px) {
  .menu.ouvert a { display: block !important; }
  .top .btn-rejoindre { margin-left: auto; padding: 8px 14px; font-size: 14px; }
}

/* ---------- Hero : promesse + inscription + preuve sociale ---------- */
.hero img { height: clamp(560px, 82vh, 760px); }
.hero .voile { background: linear-gradient(180deg, rgba(13,17,48,0.35) 0%, rgba(13,17,48,0.05) 28%, rgba(13,17,48,0.7) 58%, var(--nuit) 100%); }
.hero .sur-hero { display: inline-flex; align-items: center; gap: 8px; background: rgba(13,17,48,0.55); backdrop-filter: blur(8px); border: 1px solid var(--bord); border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--rose); margin-bottom: 14px; }
.hero .sur-hero .hy { letter-spacing: 0; text-transform: none; font-size: 15px; color: var(--abricot); }
.form-inscription { display: flex; gap: 8px; margin-top: 22px; max-width: 560px; background: rgba(13,17,48,0.6); backdrop-filter: blur(12px); border: 1px solid var(--bord); border-radius: 18px; padding: 6px; }
.form-inscription input { flex: 1; min-width: 0; background: none; border: none; color: var(--texte); font: 600 16px var(--font-texte); padding: 12px 14px; }
.form-inscription input::placeholder { color: var(--doux); }
.form-inscription input:focus { outline: none; }
.form-inscription:focus-within { border-color: var(--abricot); }
.form-inscription .btn { padding: 12px 20px; white-space: nowrap; }
.hero .petit { font-size: 13.5px; color: var(--doux); margin-top: 10px; }
.hero .petit a { color: var(--texte); font-weight: 700; }
.preuve { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.avatars { display: flex; }
.avatars i { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--nuit); margin-left: -8px; display: grid; place-items: center; font: 800 13px var(--font-texte); font-style: normal; color: #1a0f1f; }
.avatars i:first-child { margin-left: 0; }
.preuve p { margin: 0; font-size: 15px; color: var(--doux); }
.preuve b { color: var(--texte); }
@media (max-width: 560px) {
  .form-inscription { flex-direction: column; background: none; border: none; padding: 0; backdrop-filter: none; }
  .form-inscription input { background: rgba(13,17,48,0.7); border: 1px solid var(--bord); border-radius: 14px; }
  .form-inscription .btn { justify-content: center; }
  .hero .contenu { inset: auto 0 18px 0; }
}

/* ---------- Bande de chiffres ---------- */
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--bord); border: 1px solid var(--bord); border-radius: 22px; overflow: hidden; margin: 8px 0 30px; }
.chiffres div { background: var(--nuit-2); padding: 18px 20px; }
.chiffres b { display: block; font-family: var(--font-titre); font-size: clamp(22px, 3vw, 32px); line-height: 1.1; }
.chiffres span { color: var(--doux); font-size: 14px; font-weight: 700; }
@media (max-width: 760px) { .chiffres { grid-template-columns: 1fr 1fr; } }

/* ---------- Titres de section de l'accueil ---------- */
.titre-section { display: flex; justify-content: space-between; align-items: end; gap: 14px; flex-wrap: wrap; margin: 46px 0 16px; }
.titre-section h2 { font-size: clamp(22px, 3vw, 30px); margin-top: 4px; }
.titre-section .sur { margin: 0; }
.lien-fleche { color: var(--abricot); font-weight: 800; text-decoration: none; font-size: 15px; }
.lien-fleche:hover { text-decoration: underline; }

/* ---------- « Près de chez toi » ---------- */
.ville-choix { display: inline-flex; align-items: center; gap: 8px; background: var(--carte); border: 1px solid var(--bord); border-radius: 999px; padding: 6px 8px 6px 14px; font-weight: 700; font-size: 14.5px; }
.ville-choix select { background: rgba(255,255,255,0.08); color: var(--texte); border: 1px solid var(--bord); border-radius: 999px; padding: 6px 10px; font: 700 14px var(--font-texte); }
.evts-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.evt-mini { display: grid; grid-template-columns: 64px 1fr; gap: 14px; background: var(--carte); border: 1px solid var(--bord); border-radius: 20px; padding: 14px; text-decoration: none; color: var(--texte); transition: transform .2s, border-color .2s; }
.evt-mini:hover { transform: translateY(-3px); border-color: var(--abricot); }
.evt-mini .jour { background: var(--degrade); color: #1a0f1f; border-radius: 14px; text-align: center; padding: 8px 4px; font-weight: 800; line-height: 1.1; align-self: start; }
.evt-mini .jour b { display: block; font-family: var(--font-titre); font-size: 22px; }
.evt-mini .jour small { font-size: 11px; text-transform: uppercase; }
.evt-mini h3 { font-family: var(--font-texte); font-weight: 800; font-size: 16px; line-height: 1.3; }
.evt-mini p { margin: 4px 0 0; color: var(--rose); font-size: 13.5px; font-weight: 700; }
.evt-publier { display: grid; place-content: center; justify-items: center; text-align: center; gap: 8px; border: 1.5px dashed rgba(255,179,71,0.45); border-radius: 20px; padding: 16px; color: var(--doux); background: rgba(255,179,71,0.04); cursor: pointer; font: inherit; }
.evt-publier b { color: var(--texte); font-size: 16px; }
.evt-publier .ico { width: 26px; height: 26px; color: var(--abricot); }
.evt-publier:hover { border-color: var(--abricot); }

/* ---------- Cartes info : 3 colonnes (fait, proverbe, mot du jour) ---------- */
.savais { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.mot-jour .mot { font-family: var(--font-hy); font-size: 40px; font-weight: 700; line-height: 1.1; }
.mot-jour .pron { color: var(--rose); font-weight: 700; }
.mot-jour .ligne { display: flex; align-items: center; gap: 14px; }
.serie { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,179,71,0.14); color: var(--abricot); border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: 13.5px; justify-self: start; }

/* ---------- Groupes et réseaux ---------- */
.groupes { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.groupe { display: grid; gap: 4px; background: rgba(255,255,255,0.06); border: 1px solid var(--bord); border-radius: 18px; padding: 14px 16px; color: var(--texte); text-decoration: none; transition: transform .2s, border-color .2s; }
.groupe:hover { transform: translateY(-3px); border-color: var(--abricot); }
.groupe .res { display: flex; align-items: center; gap: 8px; color: var(--doux); font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.groupe .res i { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font: 800 12px var(--font-texte); font-style: normal; color: #fff; }
.groupe b { font-size: 16px; line-height: 1.3; }
.groupe small { color: var(--doux); font-weight: 700; font-size: 13.5px; }
.groupe .membres { color: var(--abricot); font-weight: 800; font-size: 14px; }
.a-completer { outline: 1px dashed rgba(255,179,71,0.5); outline-offset: 2px; border-radius: 4px; }

/* ---------- Bandeau newsletter ---------- */
.newsletter { position: relative; overflow: hidden; margin-top: 46px; border-radius: 28px; padding: clamp(22px, 4vw, 40px); background: radial-gradient(circle at 90% 10%, rgba(255,179,71,0.35), transparent 45%), radial-gradient(circle at 5% 100%, rgba(255,61,94,0.35), transparent 50%), var(--nuit-2); border: 1px solid var(--bord); display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; }
.newsletter h3 { font-size: clamp(22px, 3vw, 30px); margin: 6px 0 8px; }
.newsletter p { color: var(--doux); margin: 0; }
.newsletter .form-inscription { margin-top: 0; max-width: none; }
.newsletter .liste-plus { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; color: var(--texte); font-weight: 600; font-size: 15px; }
.newsletter .liste-plus .ico { color: var(--vert); margin-right: 6px; }
@media (max-width: 760px) { .newsletter { grid-template-columns: 1fr; } }

/* ---------- Bloc contribution ---------- */
.contribuer { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.contrib { text-align: left; display: grid; gap: 6px; background: var(--carte); border: 1px solid var(--bord); border-radius: 20px; padding: 18px; color: var(--texte); cursor: pointer; font: inherit; transition: transform .2s, border-color .2s; }
.contrib:hover { transform: translateY(-3px); border-color: var(--abricot); }
.contrib .ico { width: 28px; height: 28px; color: var(--abricot); }
.contrib b { font-family: var(--font-titre); font-size: 17px; }
.contrib span { color: var(--doux); font-size: 15px; }

/* ---------- Communauté (ex-Agenda) ---------- */
.barre-comm { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin: 6px 0 16px; }
.barre-comm .puces { margin: 0; }
.vide-ville { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1.5px dashed rgba(255,179,71,0.45); border-radius: 20px; padding: 16px 18px; margin-top: 14px; background: rgba(255,179,71,0.04); }
.vide-ville p { margin: 0; color: var(--doux); }
.vide-ville b { color: var(--texte); }

/* ---------- Boîtes de dialogue (formulaires) ---------- */
.boite-form .boite-in { max-width: 620px; padding: clamp(20px, 4vw, 32px); position: relative; overflow-x: hidden; }
.boite-form .boite-in > .etapes-ob, .boite-form .boite-in > .sur:first-of-type { margin-right: 48px; }
.boite-form h3 { font-size: clamp(22px, 3vw, 28px); margin: 6px 0 6px; }
.boite-form .intro { color: var(--doux); margin: 0 0 18px; }
.fermer-x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--bord); background: rgba(255,255,255,0.08); color: var(--texte); cursor: pointer; display: grid; place-items: center; }
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.champ { display: grid; gap: 6px; }
.champ.large { grid-column: 1 / -1; }
.champ label, .champ legend { font-weight: 800; font-size: 14px; color: var(--texte); }
.champ input, .champ select, .champ textarea { background: rgba(255,255,255,0.06); border: 1px solid var(--bord); color: var(--texte); border-radius: 12px; padding: 12px 14px; font: 600 16px var(--font-texte); width: 100%; }
.champ textarea { min-height: 110px; resize: vertical; }
.champ select option { background: var(--nuit-2); }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 2px solid var(--abricot); outline-offset: 1px; }
.champ small { color: var(--doux); font-size: 13px; }
fieldset.champ { border: none; padding: 0; margin: 0; }
.choix-puces { display: flex; flex-wrap: wrap; gap: 8px; }
.choix-puces label { cursor: pointer; position: relative; }
.choix-puces input { position: absolute; opacity: 0; pointer-events: none; }
.choix-puces span { display: inline-block; background: rgba(255,255,255,0.06); border: 1px solid var(--bord); color: var(--doux); border-radius: 999px; padding: 8px 14px; font-weight: 800; font-size: 14px; }
.choix-puces input:checked + span { background: var(--degrade); color: #1a0f1f; border-color: transparent; }
.choix-puces input:focus-visible + span { outline: 3px solid var(--abricot); outline-offset: 2px; }
.moderation { display: flex; gap: 10px; align-items: flex-start; background: rgba(61,220,151,0.08); border: 1px solid rgba(61,220,151,0.3); border-radius: 14px; padding: 12px 14px; color: var(--texte); font-size: 14.5px; margin-top: 14px; }
.moderation .ico { color: var(--vert); margin-top: 2px; }
.boite-form .btns { margin-top: 18px; }
.etapes-ob { display: flex; gap: 6px; margin-bottom: 18px; }
.etapes-ob i { flex: 1; height: 5px; border-radius: 99px; background: rgba(255,255,255,0.12); }
.etapes-ob i.fait { background: var(--degrade); }
.etape-ob[hidden] { display: none; }
.bienvenue { text-align: center; display: grid; gap: 10px; justify-items: center; }
.bienvenue .grand-hy { font-family: var(--font-hy); font-size: 54px; font-weight: 700; }
.ok-msg { display: flex; gap: 10px; align-items: center; background: rgba(61,220,151,0.12); border: 1px solid rgba(61,220,151,0.4); border-radius: 14px; padding: 12px 14px; font-weight: 700; margin-top: 12px; }
.ok-msg .ico { color: var(--vert); }
@media (max-width: 560px) { .champs { grid-template-columns: 1fr; } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 80; background: var(--nuit-2); border: 1px solid var(--abricot); border-radius: 18px; padding: 12px 14px 12px 18px; display: flex; gap: 12px; align-items: center; box-shadow: 0 16px 50px rgba(0,0,0,0.5); width: min(560px, calc(100% - 24px)); font-weight: 700; font-size: 15px; animation: entree .3s ease; }
.toast .btn { padding: 9px 14px; font-size: 14px; flex: 0 0 auto; }
@media (min-width: 761px) { .toast { bottom: 24px; } }

/* ---------- Footer complet ---------- */
footer { padding: 40px 0 28px; font-size: 14.5px; }
footer .wrap { gap: 26px; }
.pied { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 26px; }
.pied h4 { margin: 0 0 10px; font: 800 13px var(--font-texte); letter-spacing: .12em; text-transform: uppercase; color: var(--abricot); }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pied a, .pied button.lien { color: var(--doux); text-decoration: none; font: 600 14.5px var(--font-texte); background: none; border: none; padding: 0; cursor: pointer; text-align: left; }
.pied a:hover, .pied button.lien:hover { color: var(--texte); text-decoration: underline; }
.pied .marque p { margin: 10px 0 14px; max-width: 30em; }
.pied .logo { font-size: 18px; }
.pied .form-inscription { margin: 0; background: rgba(255,255,255,0.05); }
.bas-pied { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-top: 1px solid var(--bord); padding-top: 18px; font-size: 13px; }
.ruban { height: 4px; border-radius: 99px; background: linear-gradient(90deg, #d90012 0 33.3%, #0033a0 33.3% 66.6%, #f2a800 66.6%); width: 64px; }
details.credits-photo summary { cursor: pointer; font-weight: 700; }
details.credits-photo #credits { margin-top: 8px; font-size: 12.5px; line-height: 1.7; }
@media (max-width: 860px) { .pied { grid-template-columns: 1fr 1fr; } .pied .marque { grid-column: 1 / -1; } }

/* ---------- Livres : vraies couvertures ---------- */
.couv { position: relative; overflow: hidden; }
.couv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.couv.avec-image img { opacity: 1; }
.produit-livre .visuel { border: none; padding: 18px 0; cursor: pointer; display: grid; place-items: center; background: linear-gradient(150deg, #1b1745, #2a1d4f); }
.produit-livre .visuel .couv { width: 112px; }
.produit .visuel { text-decoration: none; }
.lien-livre { justify-self: start; background: none; border: none; color: var(--abricot); font: 800 14px var(--font-texte); padding: 0; cursor: pointer; text-decoration: underline; }
.mention-amazon { font-style: italic; }

/* ---------- Boutique attrayante ---------- */
.b-hero { position: relative; min-height: 440px; display: flex; align-items: flex-end; overflow: hidden; }
.b-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; animation: zoom 25s ease-out both; }
.b-hero .voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,17,48,0.25), rgba(13,17,48,0.55) 45%, var(--nuit) 100%); }
.b-hero .contenu { position: relative; width: 100%; padding: 40px 0 28px; }
.b-hero h2 { font-size: clamp(30px, 5vw, 54px); margin: 6px 0 10px; }
.b-hero p { font-size: clamp(16px, 2vw, 19px); max-width: 34em; margin: 0; }
.b-confiance { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 18px; }
.b-confiance span { display: inline-flex; align-items: center; gap: 6px; background: rgba(13,17,48,0.6); backdrop-filter: blur(8px); border: 1px solid var(--bord); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 14px; }
.b-titre { font-size: clamp(22px, 3vw, 30px); margin: 34px 0 14px; scroll-margin-top: 90px; }
.b-vedettes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .b-vedettes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .b-vedettes { grid-template-columns: 1fr; } }
.produit.vedette { border-color: rgba(255,179,71,0.45); box-shadow: 0 14px 40px rgba(255,61,94,0.12); }
.produit .visuel { position: relative; overflow: hidden; }
.produit .visuel::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 15%, rgba(255,255,255,0.18), transparent 45%); pointer-events: none; }
.produit .visuel svg, .produit .visuel > div { transition: transform .5s; }
.produit:hover .visuel svg, .produit:hover .visuel > div { transform: scale(1.08) rotate(-2deg); }
.b-badge { position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--degrade); color: #1a0f1f; border-radius: 999px; padding: 4px 11px; font: 800 12.5px var(--font-texte); box-shadow: 0 6px 18px rgba(0,0,0,0.3); }
.produit .b-cta { justify-self: stretch; justify-content: center; margin-top: 10px; }
.produit .infos { grid-template-rows: auto auto 1fr auto; }
.b-rayons { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.b-rayon { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; border: 1px solid var(--bord); padding: 0; cursor: pointer; background: var(--nuit-2); color: var(--texte); text-align: left; font: inherit; }
.b-rayon img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.b-rayon:hover img { transform: scale(1.08); }
.b-rayon .legende { position: absolute; inset: auto 0 0 0; padding: 40px 14px 12px; background: linear-gradient(180deg, transparent, rgba(13,17,48,0.95)); display: grid; gap: 1px; }
.b-rayon span { color: var(--rose); font-weight: 700; font-size: 12.5px; }
.b-rayon h4 { margin: 0; font-family: var(--font-titre); font-size: 17px; }
.b-rayon small { color: var(--doux); font-weight: 700; }
.b-bas { margin-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.b-bas > div { display: grid; gap: 2px; }
.b-bas span { color: var(--doux); }
@media (max-width: 560px) { .b-hero { min-height: 520px; } }

/* ---------- Recettes : photos ---------- */
.rec .bandeau.photo { height: 150px; padding: 0; position: relative; overflow: hidden; }
.rec .bandeau.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.rec:hover .bandeau.photo img { transform: scale(1.06); }
.rec .bandeau .hy-sur { position: absolute; left: 10px; bottom: 8px; background: rgba(13,17,48,0.72); backdrop-filter: blur(6px); border-radius: 999px; padding: 2px 10px; font-size: 15px; line-height: 1.4; }
.fr-photo { margin: 0; position: relative; }
.fr-photo img { width: 100%; height: clamp(200px, 34vh, 340px); object-fit: cover; display: block; border-radius: 22px 22px 0 0; }
.fr-photo figcaption { padding: 6px 24px 0; }

/* ---------- Histoire ---------- */
.h-titre { font-size: clamp(20px, 2.6vw, 26px); margin: 34px 0 14px; }
.h-epoques { margin-bottom: 12px; }
.h-epoques .onglet[aria-selected="true"] { background: var(--degrade); color: #1a0f1f; }
.h-carte-wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
.h-carte { margin: 0; }
.h-carte svg { width: 100%; height: auto; display: block; border-radius: 22px; border: 1px solid var(--bord); }
.h-terre { fill: #1d2356; }
.h-mer { fill: #2a5fa8; opacity: .85; }
.h-fleuve { fill: none; stroke: #5fa3e6; stroke-width: 2.5; opacity: .8; }
.h-territoire { fill: var(--c); fill-opacity: .42; stroke: var(--c); stroke-width: 3; stroke-linejoin: round; }
.h-actuel { fill: none; stroke: #fff; stroke-width: 2.5; stroke-dasharray: 7 6; }
.h-ville { fill: #fff; stroke: #0d1130; stroke-width: 3; }
.h-nom-ville { fill: var(--texte); font: 800 17px var(--font-texte); paint-order: stroke; stroke: #0d1130; stroke-width: 5px; }
.h-nom-geo { fill: #cfe3ff; font: italic 700 15px var(--font-texte); opacity: .85; }
.h-leg-terr { background: var(--grenade); }
.h-leg-actuel { background: none !important; border: 2px dashed #fff; border-radius: 3px !important; }
.h-info .btns .btn { padding: 10px 14px; font-size: 14px; }
.h-info .btn:disabled { opacity: .4; cursor: default; transform: none; }
.h-chap { padding: 0; }
.h-chap-tete { display: grid; gap: 2px; width: 100%; text-align: left; background: none; border: none; color: var(--texte); padding: 16px 18px; cursor: pointer; font: inherit; }
.h-chap-tete h3 { margin: 0; }
.h-chap-tete::after { content: "Lire la suite +"; color: var(--abricot); font-weight: 800; font-size: 13px; margin-top: 4px; }
.h-chap-tete[aria-expanded="true"]::after { content: "Refermer −"; }
.h-chap-corps { padding: 0 18px 18px; }
.h-points { margin: 10px 0 0; padding-left: 20px; color: var(--doux); display: grid; gap: 4px; }
.h-perso { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.h-carte-perso { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; text-align: left; background: var(--carte); border: 1px solid var(--bord); border-radius: 18px; padding: 12px; color: var(--texte); cursor: pointer; font: inherit; transition: transform .2s, border-color .2s; }
.h-carte-perso:hover { transform: translateY(-3px); border-color: var(--abricot); }
.h-carte-perso img, .h-initiale { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.h-initiale { display: grid; place-items: center; background: var(--degrade); color: #1a0f1f; font-size: 34px; font-weight: 700; }
.h-carte-perso .sur { margin: 0; font-size: 11.5px; }
.h-carte-perso h3 { font-family: var(--font-texte); font-weight: 800; font-size: 16px; line-height: 1.25; }
.h-carte-perso small { color: var(--doux); font-weight: 700; }
@media (max-width: 860px) { .h-carte-wrap { grid-template-columns: 1fr; } }

/* ---------- Apprendre : parcours, vocabulaire, grammaire, dialogues, nombres ---------- */
#o-apprendre { max-width: 100%; }
.badge-rev { background: var(--grenade); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 12px; margin-left: 4px; }
.badge-rev:empty { display: none; }
.titre-l { font-size: clamp(20px, 2.6vw, 26px); margin: 4px 0 6px; }
.titre-ex { font-family: var(--font-titre); font-size: 18px; margin: 22px 0 10px; }
.son.petit-son { width: 36px; height: 36px; }
.son.petit-son .ico { width: 18px; height: 18px; }
.question.hy, .choix button.hy { font-family: var(--font-hy); }
.choix button.hy { font-size: 20px; }
.vocab-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.vocab-c { background: rgba(255,255,255,0.05); border: 1px solid var(--bord); border-radius: 18px; padding: 14px 16px; display: grid; gap: 2px; align-content: start; }
.vocab-tete { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.vocab-hy { font-size: 26px; font-weight: 700; line-height: 1.2; }
.vocab-pron { color: var(--rose); font-weight: 700; }
.vocab-fr { font-weight: 800; font-size: 17px; }
.vocab-ex { margin: 8px 0 0; color: var(--texte); font-size: 16px; }
.vocab-ex-fr { margin: 0; color: var(--doux); font-size: 14.5px; }
.lecons { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 12px; }
.lecon-c { text-align: left; background: rgba(255,255,255,0.05); border: 1px solid var(--bord); border-radius: 18px; padding: 16px; color: var(--texte); cursor: pointer; font: inherit; display: grid; gap: 4px; transition: transform .2s, border-color .2s; }
.lecon-c:hover { transform: translateY(-3px); border-color: var(--abricot); }
.lecon-c .sur { margin: 0; font-size: 12px; }
.lecon-c h4 { margin: 0; font-family: var(--font-titre); font-size: 17px; }
.table-wrap { overflow-x: auto; margin: 10px 0; }
.table-l { border-collapse: collapse; min-width: 320px; width: 100%; max-width: 720px; }
.table-l th, .table-l td { border-bottom: 1px solid var(--bord); padding: 10px 12px; text-align: left; }
.table-l th { color: var(--abricot); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.table-l td.hy { font-size: 20px; font-weight: 700; }
.pron-l { color: var(--rose); font-weight: 700; }
.dialogue { display: grid; gap: 10px; margin: 16px 0; max-width: 720px; }
.bulle { background: rgba(255,255,255,0.06); border: 1px solid var(--bord); border-radius: 18px; padding: 12px 16px; max-width: 88%; }
.bulle.droite { justify-self: end; background: rgba(255,179,71,0.1); border-color: rgba(255,179,71,0.3); }
.bulle .qui { font-weight: 800; font-size: 13px; color: var(--abricot); }
.bulle p { margin: 2px 0; }
.bulle p.hy { font-size: 20px; font-weight: 700; }
.fr-l { color: var(--doux); }
.bloc-nombres { margin-top: 18px; }
.bloc-nombres .nombre { position: relative; }
.bloc-nombres .nombre .son { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; }
.convert-res { margin-top: 10px; }
.parcours-tete { margin-bottom: 14px; }
.niveau-c { background: rgba(255,255,255,0.04); border: 1px solid var(--bord); border-radius: 20px; padding: 16px 18px; margin-top: 12px; }
.niveau-c.fini { border-color: rgba(61,220,151,0.5); }
.niveau-c h4 { margin: 2px 0 4px; font-family: var(--font-titre); font-size: 19px; }
.niveau-c .sur { margin: 0; }
.etapes-n { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.etape-n { background: rgba(255,255,255,0.07); border: 1px solid var(--bord); color: var(--texte); border-radius: 999px; padding: 8px 14px; font: 700 14px var(--font-texte); cursor: pointer; }
.etape-n:hover { border-color: var(--abricot); }
.etape-n.ok { background: rgba(61,220,151,0.14); border-color: rgba(61,220,151,0.45); }

/* ---------- Communauté : bons plans, publicités, admin ---------- */
.tips { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.emplacement-pub:empty { display: none; }
.emplacement-pub { margin: 18px 0; }
.annonce { display: grid; gap: 4px; background: linear-gradient(150deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03)); border: 1px dashed rgba(255,255,255,0.25); border-radius: 18px; padding: 14px 18px; color: var(--texte); text-decoration: none; }
.annonce:hover { border-color: var(--abricot); }
.annonce-label { justify-self: start; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--doux); border: 1px solid var(--bord); border-radius: 999px; padding: 1px 8px; }
.annonce b { font-size: 17px; }
.annonce span:not(.annonce-label) { color: var(--doux); }
.annonce small { color: var(--doux); font-weight: 700; }
.admin-ligne { display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap; border-bottom: 1px solid var(--bord); padding: 12px 0; }
.admin-ligne > div:first-child { display: grid; gap: 2px; flex: 1 1 320px; }
.admin-ligne small { color: var(--doux); }
.admin-ligne p { margin: 4px 0 0; color: var(--doux); font-size: 15px; }
.admin-ligne .btn { padding: 8px 12px; font-size: 14px; }
.stats-iframe { width: 100%; height: 75vh; border: 1px solid var(--bord); border-radius: 18px; margin-top: 14px; background: #fff; }
.consentement { position: fixed; left: 12px; right: 12px; bottom: calc(90px + env(safe-area-inset-bottom)); z-index: 85; max-width: 520px; margin: 0 auto; background: var(--nuit-2); border: 1px solid var(--abricot); border-radius: 18px; padding: 14px 16px; box-shadow: 0 16px 50px rgba(0,0,0,0.5); }
.consentement p { margin: 0 0 10px; }
@media (min-width: 761px) { .consentement { bottom: 20px; } }

/* ---------- Langues ---------- */
.choix-langue { margin-left: 4px; flex: 0 0 auto; background: rgba(255,255,255,0.08); color: var(--texte); border: 1px solid var(--bord); border-radius: 10px; padding: 7px 6px; font: 700 13px var(--font-texte); max-width: 92px; }
.choix-langue option { background: var(--nuit-2); }
.avis-langue { background: rgba(255,179,71,0.12); border-bottom: 1px solid rgba(255,179,71,0.35); color: var(--texte); font-size: 13.5px; padding: 6px 18px; text-align: center; }
.avis-langue[hidden] { display: none; }
@media (max-width: 760px) { .choix-langue { margin-left: auto; } .top .btn-rejoindre { margin-left: 6px; } }
/* Langues aux mots plus longs : on garde l'essentiel dans la barre, le reste est dans « Plus » et le pied de page. */
@media (min-width: 761px) {
  html:lang(hy) .menu a, html:lang(nl) .menu a, html:lang(tr) .menu a { font-size: 13.5px; padding: 8px 7px; }
  html:lang(hy) .menu a[data-lien="jeux"], html:lang(hy) .menu a[data-lien="proverbes"], html:lang(hy) .menu a[data-lien="livres"] { display: none; }
}
@media (min-width: 761px) and (max-width: 1280px) { html:lang(hy) .menu a[data-lien="boutique"], html:lang(hy) .menu a[data-lien="recettes"] { display: none; } }
@media (min-width: 761px) and (max-width: 1020px) { html:lang(hy) .menu a[data-lien="histoire"], html:lang(nl) .menu a[data-lien="histoire"], html:lang(tr) .menu a[data-lien="histoire"] { display: none; } }

/* ---------- Textes légaux ---------- */
.texte-info h4 { font-family: var(--font-titre); font-size: 17px; margin: 18px 0 6px; }
.texte-info p { color: var(--doux); margin: 0 0 8px; }
.texte-info mark { background: rgba(255,179,71,0.2); color: var(--abricot); padding: 0 4px; border-radius: 4px; }
