:root {
  --encre: #17213d;
  --encre-douce: #59627a;
  --fond: #f8f5ed;
  --papier: #fffdf8;
  --corail: #f2675a;
  --corail-fonce: #d94d43;
  --menthe: #38b79d;
  --menthe-pale: #dff6ef;
  --jaune: #ffd166;
  --bleu: #3857cf;
  --ligne: #e8e2d6;
  --ombre: 0 20px 60px rgba(23, 33, 61, 0.12);
  --rayon: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--encre);
  background: var(--fond);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
a { color: inherit; }

.conteneur { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.conteneur-etroit { width: min(940px, calc(100% - 40px)); }
.conteneur-question { width: min(760px, calc(100% - 40px)); }
.sr-seulement { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.lien-evitement { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px 18px; color: white; background: var(--encre); border-radius: 10px; }
.lien-evitement:focus { top: 12px; }

.entete { position: relative; z-index: 20; border-bottom: 1px solid rgba(23, 33, 61, 0.08); background: rgba(255, 253, 248, 0.9); backdrop-filter: blur(14px); }
.entete-interieur { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.marque { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.marque-icone { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; background: var(--corail); box-shadow: 0 8px 20px rgba(242, 103, 90, 0.28); transform: rotate(-2deg); }
.marque-icone svg { width: 30px; height: 30px; fill: none; stroke: white; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.5; }
.marque-icone path:last-child { fill: var(--jaune); stroke: none; }
.marque strong, .marque small { display: block; }
.marque strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; line-height: 1; }
.marque small { margin-top: 5px; color: var(--encre-douce); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.035em; }
.navigation { display: flex; align-items: center; gap: 24px; font-size: 0.9rem; font-weight: 750; }
.navigation a { text-decoration: none; }
.navigation a:hover, .bouton-texte:hover { color: var(--corail-fonce); }
.navigation form { margin: 0; }
.bouton-texte { padding: 0; border: 0; color: var(--encre-douce); background: transparent; cursor: pointer; }

.pied { padding: 30px 0; border-top: 1px solid var(--ligne); background: var(--papier); }
.pied-interieur { display: flex; justify-content: center; align-items: center; gap: 14px; color: var(--encre-douce); font-size: 0.84rem; }
.pied p { margin: 0; }
.pied span { color: var(--corail); }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -0.035em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.7rem); line-height: 1.01; }
h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.08; }
h3 { font-size: 1.35rem; line-height: 1.25; }
.surtitre { display: inline-block; margin-bottom: 13px; color: var(--corail-fonce); font-size: 0.76rem; font-weight: 850; letter-spacing: 0.14em; text-transform: uppercase; }
.etiquette { display: inline-flex; align-items: center; width: fit-content; padding: 6px 11px; border-radius: 999px; color: var(--encre-douce); background: #efede7; font-size: 0.69rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.etiquette-maths { color: #19715f; background: var(--menthe-pale); }
.carte { border: 1px solid rgba(23, 33, 61, 0.08); border-radius: var(--rayon); background: var(--papier); box-shadow: var(--ombre); }

.bouton { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 13px 21px; border: 2px solid transparent; border-radius: 13px; font-weight: 820; text-align: center; text-decoration: none; cursor: pointer; transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.bouton:hover { transform: translateY(-2px); }
.bouton:focus-visible, input:focus-visible, summary:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid rgba(56, 87, 207, 0.38); outline-offset: 3px; }
.bouton:disabled { cursor: wait; opacity: 0.68; transform: none; }
.bouton-principal { color: white; background: var(--corail); box-shadow: 0 10px 24px rgba(242, 103, 90, 0.24); }
.bouton-principal:hover { background: var(--corail-fonce); box-shadow: 0 13px 30px rgba(217, 77, 67, 0.28); }
.bouton-secondaire { color: var(--encre); border-color: var(--ligne); background: var(--papier); }
.bouton-large { width: 100%; }

.alertes { position: relative; z-index: 30; padding-top: 18px; }
.alerte { padding: 13px 16px; border-radius: 12px; font-size: 0.92rem; font-weight: 700; }
.alerte-erreur { color: #8b2d28; border: 1px solid #f2aaa4; background: #fff0ed; }
.alerte-succes { color: #176b5a; border: 1px solid #a9ddcf; background: var(--menthe-pale); }

/* Connexion */
.section-connexion { position: relative; min-height: calc(100vh - 139px); display: grid; align-items: center; overflow: hidden; padding: 72px 0 90px; background: var(--encre); }
.section-connexion::before { content: ""; position: absolute; inset: 0; opacity: 0.17; background-image: radial-gradient(circle at 1px 1px, white 1px, transparent 0); background-size: 27px 27px; mask-image: linear-gradient(to right, black, transparent 78%); }
.decor { position: absolute; border-radius: 50%; filter: blur(1px); }
.decor-un { width: 430px; height: 430px; right: -160px; top: -170px; border: 85px solid rgba(56, 183, 157, 0.2); }
.decor-deux { width: 220px; height: 220px; left: 36%; bottom: -140px; background: rgba(255, 209, 102, 0.12); }
.connexion-grille { position: relative; display: grid; grid-template-columns: 1.08fr 0.78fr; align-items: center; gap: clamp(60px, 9vw, 130px); }
.connexion-message { color: white; }
.connexion-message .surtitre { color: var(--jaune); }
.connexion-message h1 { max-width: 680px; margin-bottom: 24px; font-size: clamp(3.4rem, 7vw, 6.6rem); }
.connexion-message h1 em { color: var(--jaune); font-weight: inherit; }
.connexion-message > p { max-width: 600px; margin-bottom: 35px; color: #d7dcec; font-size: 1.12rem; }
.regle-recompense { width: fit-content; display: flex; align-items: center; gap: 15px; padding: 14px 20px 14px 13px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 18px; background: rgba(255, 255, 255, 0.07); }
.regle-icone { width: 55px; height: 55px; display: grid; place-items: center; border-radius: 14px; color: var(--encre); background: var(--jaune); font: 800 1.25rem Georgia, serif; transform: rotate(-3deg); }
.regle-recompense strong { color: white; }
.regle-recompense span:last-child { color: #cbd1e2; font-size: 0.88rem; }
.connexion-carte { padding: 40px; }
.avatar { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 20px; border: 5px solid #ffe8e2; border-radius: 20px; color: white; background: var(--corail); font: 800 1.7rem Georgia, serif; transform: rotate(3deg); }
.mini-titre { margin-bottom: 3px; color: var(--encre-douce); font-size: 0.83rem; font-weight: 750; }
.connexion-carte h2 { margin-bottom: 26px; font-size: 2.5rem; }
.formulaire { display: grid; gap: 10px; }
.formulaire label, .formulaire-reponse label { font-size: 0.81rem; font-weight: 820; }
.champ-avec-icone { position: relative; margin-bottom: 8px; }
.champ-avec-icone span { position: absolute; left: 16px; top: 50%; color: var(--corail); font-size: 0.67rem; transform: translateY(-50%); }
.champ-avec-icone input, .formulaire-reponse input { width: 100%; min-height: 54px; border: 1.5px solid var(--ligne); border-radius: 12px; color: var(--encre); background: white; }
.champ-avec-icone input { padding: 12px 16px 12px 42px; }
.champ-avec-icone input:focus, .formulaire-reponse input:focus { border-color: var(--bleu); }
.connexion-carte .bouton { margin-top: 12px; }

/* Tableau de bord */
.tableau-bord { min-height: calc(100vh - 139px); padding: 64px 0 100px; }
.bienvenue { display: flex; justify-content: space-between; align-items: center; gap: 40px; margin-bottom: 70px; }
.bienvenue h1 { margin-bottom: 10px; font-size: clamp(3rem, 6vw, 5.6rem); }
.bienvenue p { margin: 0; color: var(--encre-douce); font-size: 1.04rem; }
.niveau-enfant { width: fit-content; display: flex; align-items: center; gap: 8px; margin: 13px 0 14px; color: #687087; font-size: .73rem; font-weight: 750; }
.niveau-enfant span { padding: 5px 8px; border-radius: 7px; color: #fff; background: var(--encre); font-size: .65rem; font-weight: 900; text-transform: uppercase; }
.compteur-minutes { min-width: 330px; display: flex; align-items: center; gap: 20px; padding: 20px 25px 20px 18px; border: 1px solid rgba(56, 183, 157, 0.28); border-radius: 22px; background: var(--menthe-pale); }
.compteur-cadran { width: 80px; height: 80px; display: grid; align-content: center; justify-items: center; flex: 0 0 auto; border: 6px solid white; border-radius: 50%; color: white; background: var(--menthe); box-shadow: 0 8px 20px rgba(56, 183, 157, 0.24); }
.compteur-cadran span { font: 800 1.9rem/0.8 Georgia, serif; }
.compteur-cadran small { margin-top: 6px; font-size: 0.62rem; font-weight: 850; text-transform: uppercase; }
.compteur-minutes > div:last-child span, .compteur-minutes > div:last-child strong { display: block; }
.compteur-minutes > div:last-child strong { font-size: 1.02rem; }
.compteur-minutes > div:last-child span { color: #37766b; font-size: 0.77rem; }
.compteur-minutes > div:last-child small { display: block; margin-top: 4px; color: #568b82; font-size: .68rem; font-weight: 750; }
.titre-section { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.titre-section h2 { margin-bottom: 0; }
.titre-section .surtitre { margin-bottom: 7px; }
.pastille-info { padding: 7px 12px; border-radius: 99px; color: var(--encre-douce); background: #ece8de; font-size: 0.72rem; font-weight: 800; }
.grille-activites { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 24px; }
.grille-banque { grid-template-columns: repeat(3, 1fr); }
.carte-activite.carte-banque { min-height: 440px; grid-template-columns: 1fr; }
.carte-banque .activite-illustration { min-height: 175px; }
.illustration-banque > span { position: relative; z-index: 2; padding: 15px 20px; border: 2px solid rgba(255,255,255,.65); border-radius: 50%; color: white; font: 800 clamp(1.55rem, 3vw, 2.25rem) Georgia, serif; transform: rotate(-4deg); }
.illustration-banque i { position: absolute; z-index: 1; display: block; border-radius: 15px; background: rgba(255,255,255,.16); transform: rotate(16deg); }
.illustration-banque i:nth-of-type(1) { width: 75px; height: 75px; top: 20px; left: 20px; }
.illustration-banque i:nth-of-type(2) { width: 42px; height: 42px; right: 24px; top: 35px; border-radius: 50%; }
.illustration-banque i:nth-of-type(3) { width: 85px; height: 30px; right: 18px; bottom: 24px; transform: rotate(-12deg); }
.banque-corail { background: #ec655a; }
.banque-menthe { background: #299d86; }
.banque-jaune { background: #d6a62d; }
.banque-bleu { background: #4158ad; }
.carte-banque .activite-contenu { padding: 25px; }
.carte-banque .activite-contenu h3 { font-size: 1.4rem; }
.activite-indisponible { width: 100%; display: block; padding: 11px; border-radius: 10px; color: #777f90; background: #efede7; font-size: .73rem; font-weight: 800; text-align: center; }
.carte-activite { position: relative; min-height: 360px; display: grid; grid-template-columns: 0.9fr 1.15fr; overflow: hidden; border: 1px solid var(--ligne); border-radius: var(--rayon); background: var(--papier); box-shadow: 0 12px 36px rgba(23, 33, 61, 0.08); }
.carte-activite.carte-bientot { grid-template-columns: 1fr; opacity: 0.72; }
.carte-activite.carte-desactivee { opacity: .72; }
.carte-desactivee .ruban { background: #767f91; }
.ressources-examens { margin-top: 38px; }
.ressources-examens .titre-section p { max-width: 760px; margin: 8px 0 0; color: #687184; line-height: 1.55; }
.liens-ressources { display: flex; flex-wrap: wrap; gap: 9px; }
.liens-ressources a { display: inline-flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--ligne); border-radius: 9px; color: var(--encre); background: var(--papier); font-size: .76rem; font-weight: 800; text-decoration: none; }
.liens-ressources a:hover, .liens-ressources a:focus-visible { border-color: #3857cf; color: #3857cf; }
.ruban { position: absolute; z-index: 3; top: 17px; right: -34px; width: 140px; padding: 6px; color: white; background: var(--menthe); font-size: 0.64rem; font-weight: 900; letter-spacing: 0.08em; text-align: center; text-transform: uppercase; transform: rotate(38deg); }
.activite-illustration { position: relative; display: grid; place-items: center; overflow: hidden; background: var(--encre); }
.activite-illustration::after { content: ""; position: absolute; inset: 0; opacity: 0.12; background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px); background-size: 24px 24px; }
.forme { position: absolute; z-index: 1; display: grid; place-items: center; color: white; font: 800 1.8rem Georgia, serif; }
.forme-a { width: 110px; height: 110px; left: 24px; top: 40px; border-radius: 28px; background: var(--corail); transform: rotate(-9deg); }
.forme-b { width: 65px; height: 65px; right: 25px; top: 70px; border-radius: 50%; color: var(--encre); background: var(--jaune); }
.forme-c { width: 120px; height: 74px; right: 35px; bottom: 55px; border: 3px solid rgba(255,255,255,.6); border-radius: 50%; transform: rotate(8deg); }
.activite-contenu { display: flex; flex-direction: column; align-items: flex-start; padding: 36px; }
.activite-contenu h3 { margin: 17px 0 10px; font-family: Georgia, serif; font-size: 1.65rem; }
.activite-contenu p { flex-grow: 1; color: var(--encre-douce); font-size: 0.91rem; }
.activite-meta { width: 100%; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 10px 0 20px; padding-top: 15px; border-top: 1px solid var(--ligne); color: var(--encre-douce); font-size: 0.72rem; font-weight: 750; }
.activite-contenu .bouton { width: 100%; }
.geometrie { min-height: 168px; grid-template-columns: repeat(3, auto); align-content: center; justify-content: center; gap: 12px; color: white; font-size: 2rem; background: #8c94a8; }
.geometrie span:nth-child(2) { color: var(--jaune); transform: translateY(-18px); }
.carte-bientot .activite-contenu { padding: 27px; }
.carte-bientot .activite-contenu h3 { margin-bottom: 8px; }
.historique { margin-top: 65px; }
.titre-section-compact { margin-bottom: 20px; }
.titre-section-compact h2 { font-size: 2rem; }
.liste-resultats { display: grid; gap: 10px; }
.liste-resultats a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid var(--ligne); border-radius: 14px; background: var(--papier); text-decoration: none; transition: border 160ms ease, transform 160ms ease; }
.liste-resultats a:hover { border-color: var(--menthe); transform: translateX(3px); }
.resultat-icone { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #19715f; background: var(--menthe-pale); font-weight: 900; }
.liste-resultats strong, .liste-resultats small { display: block; }
.liste-resultats small { color: var(--encre-douce); }
.liste-resultats b { color: var(--menthe); font-size: 1.15rem; }

/* Préparation de l’activité */
.page-activite, .page-resultat { min-height: calc(100vh - 139px); padding: 45px 0 90px; }
.retour { display: inline-flex; margin-bottom: 34px; color: var(--encre-douce); font-size: 0.82rem; font-weight: 800; text-decoration: none; }
.retour:hover { color: var(--corail-fonce); }
.entete-activite { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 25px; margin-bottom: 38px; }
.icone-activite { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 23px; color: white; background: var(--encre); box-shadow: 0 12px 25px rgba(23, 33, 61, 0.2); font: 800 1.45rem Georgia, serif; transform: rotate(-3deg); }
.icone-corail { background: var(--corail); }
.icone-menthe { background: var(--menthe); }
.icone-jaune { color: var(--encre); background: var(--jaune); }
.icone-bleu { background: var(--bleu); }
.entete-activite .etiquette { margin-bottom: 9px; }
.entete-activite h1 { margin-bottom: 5px; font-size: clamp(2.4rem, 5vw, 4rem); }
.entete-activite p { margin: 0; color: var(--encre-douce); }
.grille-preparation { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 22px; }
.grille-preparation-simple { grid-template-columns: .9fr 1.1fr; }
.lecon-carte, .choix-carte { padding: 34px; }
.numero-etape { display: inline-block; margin-bottom: 8px; color: var(--corail-fonce); font-size: 0.7rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.lecon-carte h2, .choix-carte h2 { margin-bottom: 20px; font-size: 2rem; }
.etapes { display: grid; gap: 17px; margin: 0 0 28px; padding: 0; list-style: none; }
.etapes li { display: grid; grid-template-columns: auto 1fr; gap: 13px; align-items: start; }
.etapes li > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: white; background: var(--menthe); font-size: 0.76rem; font-weight: 900; }
.etapes p { margin: 2px 0 0; color: var(--encre-douce); font-size: 0.86rem; }
.etapes strong { color: var(--encre); }
.exemple { padding: 19px; border-radius: 16px; text-align: center; background: #f1efe8; }
.exemple span { display: block; color: var(--encre-douce); font-size: 0.65rem; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.exemple p, .exemple strong { display: block; margin: 8px 0; font: 700 1.15rem Georgia, serif; }
.exemple i { display: block; color: var(--corail); font-style: normal; }
.exemple strong { color: var(--menthe); }
.choix-carte > p { color: var(--encre-douce); font-size: 0.9rem; }
.choix-nombre { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 25px 0; padding: 0; border: 0; }
.choix-nombre input { position: absolute; opacity: 0; pointer-events: none; }
.choix-nombre span { min-height: 53px; display: grid; place-items: center; border: 1.5px solid var(--ligne); border-radius: 12px; background: white; font-weight: 850; cursor: pointer; transition: 150ms ease; }
.choix-nombre input:checked + span { color: white; border-color: var(--corail); background: var(--corail); box-shadow: 0 7px 18px rgba(242, 103, 90, 0.22); transform: translateY(-1px); }
.choix-nombre input:focus-visible + span { outline: 3px solid rgba(56, 87, 207, 0.38); outline-offset: 3px; }
.reprise { display: block; margin: 20px 0; padding: 14px 16px; border: 1px solid #a9ddcf; border-radius: 13px; color: #176b5a; background: var(--menthe-pale); text-decoration: none; }
.reprise span, .reprise strong { display: block; }
.reprise span { font-size: 0.67rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.reprise strong { margin-top: 2px; }
.separateur { display: flex; align-items: center; gap: 10px; color: var(--encre-douce); font-size: 0.72rem; text-align: center; }
.separateur::before, .separateur::after { content: ""; height: 1px; flex: 1; background: var(--ligne); }
.rappel-simple { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 13px; margin: 25px 0; padding: 17px; border-radius: 14px; background: #f1efe8; }
.rappel-simple > span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; color: #745b0b; background: var(--jaune); }
.rappel-simple p { margin: 0; color: var(--encre-douce); font-size: .83rem; }
.rappel-simple strong { color: var(--encre); }
.source-alloprof { display: inline-flex; align-items: center; gap: 7px; color: var(--bleu); font-size: .76rem; font-weight: 800; text-decoration: none; }
.source-alloprof:hover { text-decoration: underline; }

/* Questions et corrections */
.page-question { min-height: calc(100vh - 139px); padding: 44px 0 90px; background: linear-gradient(180deg, #f1eee5, var(--fond) 36%); }
.barre-question { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.barre-question .retour { margin-bottom: 0; }
.progression-texte { display: flex; gap: 22px; font-size: 0.78rem; }
.progression-texte span { color: var(--encre-douce); font-weight: 800; }
.progression-texte strong { color: var(--menthe); }
.progression { height: 8px; margin: 18px 0 34px; overflow: hidden; border-radius: 99px; background: #ddd8cc; }
.progression span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--menthe), #62d2b9); transition: width 400ms ease; }
.carte-question { position: relative; padding: clamp(32px, 6vw, 66px); text-align: center; }
.question-badge { position: absolute; top: 18px; left: 18px; padding: 7px 11px; border-radius: 9px; color: var(--corail-fonce); background: #ffebe7; font-size: 0.68rem; font-weight: 900; text-transform: uppercase; }
.consigne { margin: 20px 0 25px; color: var(--encre-douce); font-weight: 720; }
.expression { margin: 0 auto 40px; padding: 25px 20px; border-block: 1px solid var(--ligne); font: 700 clamp(1.6rem, 5vw, 2.8rem)/1.3 Georgia, serif; letter-spacing: 0.025em; overflow-wrap: anywhere; }
.expression-enonce { font-size: clamp(1.45rem, 4.2vw, 2.45rem); }
.formulaire-reponse { max-width: 550px; margin-inline: auto; text-align: left; }
.formulaire-reponse label { display: block; margin-bottom: 8px; }
.formulaire-reponse input { padding: 14px 17px; font: 700 1.1rem Georgia, serif; }
.champ-reponse-signee { display: flex; align-items: stretch; gap: 9px; }
.champ-reponse-signee input { min-width: 0; flex: 1; }
.bouton-signe { width: 58px; min-height: 54px; flex: 0 0 auto; border: 1.5px solid var(--bleu); border-radius: 12px; color: var(--bleu); background: #edf0fc; font-size: 1.6rem; font-weight: 850; cursor: pointer; }
.bouton-signe:hover, .bouton-signe:focus-visible { color: #fff; background: var(--bleu); }
.aide-champ { margin: 8px 0 18px; color: var(--encre-douce); font-size: 0.72rem; }
.aide-champ code { padding: 1px 4px; border-radius: 4px; color: var(--encre); background: #eeebe3; }
.indice { max-width: 550px; margin: 23px auto 0; padding-top: 20px; border-top: 1px solid var(--ligne); text-align: left; }
.indice summary { width: fit-content; margin: auto; color: var(--bleu); font-size: 0.8rem; font-weight: 820; cursor: pointer; }
.indice p { margin: 13px 0 0; padding: 13px 15px; border-radius: 11px; color: #4d5870; background: #edf0fc; font-size: 0.8rem; }
.carte-correction { max-width: 690px; margin-inline: auto; padding: clamp(34px, 6vw, 58px); text-align: center; }
.resultat-symbole { width: 78px; height: 78px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 50%; color: white; font-size: 2.2rem; font-weight: 900; }
.correction-bonne .resultat-symbole { background: var(--menthe); box-shadow: 0 10px 30px rgba(56, 183, 157, 0.3); }
.correction-erreur .resultat-symbole { background: var(--jaune); color: var(--encre); }
.carte-correction h1 { margin-bottom: 13px; font-size: clamp(2.3rem, 5vw, 3.8rem); }
.carte-correction h1 em { color: var(--menthe); font-weight: inherit; }
.carte-correction > p { color: var(--encre-douce); }
.comparaison { display: grid; gap: 9px; margin: 28px 0; text-align: left; }
.comparaison > div { display: grid; grid-template-columns: 145px 1fr; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 11px; background: #f2efe8; }
.comparaison span { color: var(--encre-douce); font-size: 0.68rem; font-weight: 820; text-transform: uppercase; }
.comparaison strong { font-family: Georgia, serif; overflow-wrap: anywhere; }
.comparaison .bonne-solution { background: var(--menthe-pale); }
.comparaison .bonne-solution strong { color: #146552; }

/* Résultat */
.page-resultat { position: relative; overflow: hidden; }
.resultat-carte { position: relative; padding: clamp(40px, 7vw, 70px); text-align: center; }
.trophee { width: 88px; height: 88px; display: grid; place-items: center; margin: 0 auto 18px; border: 9px solid #fff1be; border-radius: 27px; color: var(--encre); background: var(--jaune); box-shadow: 0 12px 35px rgba(255, 209, 102, 0.35); font-size: 2.4rem; transform: rotate(-4deg); }
.resultat-carte h1 { margin-bottom: 10px; }
.resultat-carte > p { color: var(--encre-douce); }
.resultat-chiffres { display: grid; grid-template-columns: repeat(3, 1fr); margin: 37px 0 25px; border: 1px solid var(--ligne); border-radius: 18px; overflow: hidden; }
.resultat-chiffres > div { padding: 25px 12px; background: #f5f2eb; }
.resultat-chiffres > div + div { border-left: 1px solid var(--ligne); }
.resultat-chiffres .gain-final { color: white; background: var(--menthe); }
.resultat-chiffres strong, .resultat-chiffres span { display: block; }
.resultat-chiffres strong { font: 800 2.2rem Georgia, serif; }
.resultat-chiffres span { margin-top: 3px; font-size: 0.67rem; font-weight: 800; }
.message-resultat { max-width: 620px; margin: 0 auto 28px; padding: 14px 18px; border-radius: 13px; color: #725b18; background: #fff5d6; font-size: 0.85rem; font-weight: 650; }
.actions-resultat { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.detail-reponses { margin-top: 35px; }
.detail-reponses h2 { margin-bottom: 17px; font-size: 1.8rem; }
.detail-ligne { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 13px; margin-bottom: 9px; padding: 14px 17px; border: 1px solid var(--ligne); border-radius: 13px; background: var(--papier); }
.detail-statut { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-weight: 900; }
.detail-correct .detail-statut { color: #176b5a; background: var(--menthe-pale); }
.detail-incorrect .detail-statut { color: #983b35; background: #ffe8e5; }
.detail-ligne strong, .detail-ligne small { display: block; }
.detail-ligne strong { font-family: Georgia, serif; }
.detail-ligne small { margin-top: 3px; color: var(--encre-douce); }
.confettis i { position: absolute; width: 9px; height: 21px; border-radius: 3px; background: var(--corail); transform: rotate(20deg); }
.confettis i:nth-child(1) { top: 50px; left: 9%; background: var(--jaune); transform: rotate(42deg); }
.confettis i:nth-child(2) { top: 180px; left: 4%; background: var(--menthe); transform: rotate(-31deg); }
.confettis i:nth-child(3) { top: 100px; right: 8%; background: var(--bleu); transform: rotate(68deg); }
.confettis i:nth-child(4) { top: 250px; right: 3%; background: var(--corail); transform: rotate(-18deg); }
.confettis i:nth-child(5) { top: 430px; left: 7%; background: var(--bleu); transform: rotate(80deg); }
.confettis i:nth-child(6) { top: 500px; right: 7%; background: var(--jaune); transform: rotate(12deg); }

.page-vide { min-height: calc(100vh - 139px); display: grid; place-items: center; padding: 60px 0; }
.carte-vide { max-width: 650px; padding: 60px; text-align: center; }
.erreur-404 { color: var(--corail); font: 900 5rem/1 Georgia, serif; }
.carte-vide h1 { margin: 14px 0; font-size: 2.3rem; }
.carte-vide p { color: var(--encre-douce); }

/* Espace parent */
.admin-corps { min-width: 320px; color: #182036; background: #f3f5f8; }
.admin-largeur { width: min(1280px, calc(100% - 48px)); margin-inline: auto; }
.admin-entete { border-bottom: 1px solid #e0e4eb; background: #fff; }
.admin-entete-interieur { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.admin-marque { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.admin-marque-icone { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: #182036; font: 800 1.3rem Georgia, serif; }
.admin-marque strong, .admin-marque small { display: block; }
.admin-marque strong { font: 800 1.15rem/1 Georgia, serif; }
.admin-marque small { margin-top: 4px; color: #737b8f; font-size: .67rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.admin-navigation { display: flex; align-items: center; gap: 20px; font-size: .78rem; font-weight: 750; }
.admin-navigation a { color: #59627a; text-decoration: none; }
.admin-navigation form { margin: 0; }
.admin-navigation button { padding: 9px 13px; border: 1px solid #dde1e8; border-radius: 9px; color: #182036; background: #fff; font-weight: 780; cursor: pointer; }
.admin-navigation a:hover, .admin-navigation button:hover { color: var(--corail-fonce); border-color: #f1a29b; }
.admin-alertes { padding-top: 18px; }
.admin-page { min-height: calc(100vh - 72px); padding: 42px 0 75px; }
.admin-titre-page { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.admin-surtitre { display: block; margin-bottom: 7px; color: #6f778c; font-size: .67rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.admin-titre-page h1 { margin-bottom: 6px; font: 800 clamp(2rem, 4vw, 3.2rem)/1.05 Georgia, serif; }
.admin-titre-page > div > p { margin: 0; color: #6e7688; font-size: .9rem; }
.admin-ajout { position: relative; z-index: 5; }
.admin-ajout > summary { display: inline-flex; padding: 11px 16px; border-radius: 10px; color: #fff; background: #182036; font-size: .78rem; font-weight: 800; cursor: pointer; list-style: none; }
.admin-ajout > summary::-webkit-details-marker { display: none; }
.admin-ajout[open] > summary { border-radius: 10px 10px 0 0; }
.admin-formulaire-inline { position: absolute; top: 42px; right: 0; width: 310px; padding: 18px; border: 1px solid #dde1e8; border-radius: 12px 0 12px 12px; background: #fff; box-shadow: 0 18px 45px rgba(24, 32, 54, .16); }
.admin-resume { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 20px; }
.admin-resume article { display: flex; align-items: center; gap: 15px; padding: 20px; border: 1px solid #e0e4eb; border-radius: 15px; background: #fff; box-shadow: 0 4px 15px rgba(24, 32, 54, .035); }
.admin-resume-icone { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; font-size: 1.2rem; font-weight: 900; }
.admin-icone-corail { color: #bf4138; background: #ffebe8; }
.admin-icone-menthe { color: #17715e; background: #dff6ef; }
.admin-icone-jaune { color: #755c0c; background: #fff4c9; }
.admin-icone-bleu { color: #3857cf; background: #e9edff; }
.admin-resume small, .admin-resume strong, .admin-resume em { display: block; }
.admin-resume small { color: #71798b; font-size: .65rem; font-weight: 800; text-transform: uppercase; }
.admin-resume strong { margin: 2px 0; font: 800 1.65rem/1 Georgia, serif; }
.admin-resume em { color: #9197a5; font-size: .66rem; font-style: normal; }
.admin-carte { border: 1px solid #e0e4eb; border-radius: 17px; background: #fff; box-shadow: 0 7px 25px rgba(24, 32, 54, .045); }
.admin-grille-haut { display: grid; grid-template-columns: 1.8fr .72fr; gap: 20px; margin-bottom: 35px; }
.admin-graphique, .admin-objectif, .admin-liste { padding: 24px; }
.admin-entete-section { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.admin-entete-section h2 { margin: 0; font: 800 1.35rem/1.15 Georgia, serif; letter-spacing: -.02em; }
.admin-entete-section > span { color: #9298a5; font-size: .66rem; font-weight: 750; }
.admin-barres { height: 205px; display: grid; grid-template-columns: repeat(14, minmax(18px, 1fr)); align-items: end; gap: clamp(4px, 1.1vw, 12px); padding-top: 10px; }
.admin-barre-colonne { height: 100%; display: grid; grid-template-rows: 18px 1fr 22px; justify-items: center; align-items: end; }
.admin-barre-colonne i { width: min(26px, 70%); min-height: 7px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #41b99f, #24927d); transition: height .25s ease; }
.admin-barre-colonne:nth-child(n+8) i { background: linear-gradient(180deg, #f5877d, #ed6256); }
.admin-valeur-barre { color: #697184; font-size: .62rem; font-weight: 850; }
.admin-barre-colonne small { align-self: center; color: #949aa8; font-size: clamp(.48rem, .7vw, .59rem); transform: rotate(-38deg); white-space: nowrap; }
.admin-objectif { display: flex; flex-direction: column; color: #fff; border-color: #182036; background: #182036; }
.admin-objectif .admin-surtitre { color: #9ea9ca; }
.admin-objectif h2 { margin-bottom: 20px; color: #fff; font: 800 1.35rem Georgia, serif; }
.admin-grand-nombre { margin: auto 0 18px; color: #ffd166; font: 800 clamp(3.5rem, 6vw, 5.5rem)/.86 Georgia, serif; }
.admin-grand-nombre small { display: block; margin-top: 12px; color: #fff; font: 750 .72rem system-ui, sans-serif; }
.admin-objectif p { color: #b9c0d4; font-size: .75rem; }
.admin-legende { margin-top: 8px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.13); color: #b9c0d4; font-size: .65rem; }
.admin-legende span { width: 8px; height: 8px; display: inline-block; margin-right: 5px; border-radius: 50%; background: #ffd166; }
.admin-section { margin: 34px 0; }
.admin-tableau-cadre { overflow: visible; border: 1px solid #e0e4eb; border-radius: 15px; background: #fff; box-shadow: 0 5px 20px rgba(24, 32, 54, .035); }
.admin-tableau { width: 100%; border-collapse: collapse; font-size: .75rem; }
.admin-tableau th { padding: 12px 14px; color: #7a8294; background: #f7f8fa; font-size: .61rem; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.admin-tableau th:first-child { border-radius: 15px 0 0; }
.admin-tableau th:last-child { border-radius: 0 15px 0 0; }
.admin-tableau td { padding: 15px 14px; border-top: 1px solid #eceef2; vertical-align: middle; }
.admin-tableau td:first-child { display: flex; align-items: center; gap: 10px; }
.admin-tableau td small { display: block; margin-top: 2px; color: #969ba7; font-size: .59rem; }
.admin-avatar { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; color: #fff; background: #f2675a; font: 800 1rem Georgia, serif; }
.admin-lien-enfant { color: #182036; font-weight: 850; text-decoration: none; }
.admin-lien-enfant:hover { color: #3857cf; }
.admin-lien-enfant small { color: #3857cf !important; }
.admin-total-minutes { display: inline-flex; padding: 6px 9px; border-radius: 8px; color: #126452; background: #e1f6f0; font-weight: 850; white-space: nowrap; }
.admin-total-gagne { display: inline-flex; padding: 6px 9px; border-radius: 8px; color: #3857cf; background: #e9edff; font-weight: 850; white-space: nowrap; }
.admin-total-paye { display: inline-flex; padding: 6px 9px; border-radius: 8px; color: #8b5d13; background: #fff4c9; font-weight: 850; white-space: nowrap; }
.admin-niveau { display: inline-flex; padding: 5px 8px; border-radius: 7px; color: #3d4d8d; background: #e9edff; font-size: .66rem; font-weight: 900; white-space: nowrap; }
.admin-actions-enfant { position: relative; }
.admin-actions-enfant > summary { width: 34px; height: 30px; display: grid; place-items: center; border: 1px solid #e0e4eb; border-radius: 8px; cursor: pointer; list-style: none; }
.admin-actions-enfant > summary::-webkit-details-marker { display: none; }
.admin-menu-enfant { position: absolute; z-index: 12; top: 35px; right: 0; width: 290px; display: grid; gap: 16px; padding: 17px; border: 1px solid #dfe3ea; border-radius: 12px; background: #fff; box-shadow: 0 15px 40px rgba(24, 32, 54, .17); }
.admin-menu-enfant { max-height: min(80vh, 660px); overflow-y: auto; }
.admin-menu-enfant form { display: grid; gap: 7px; }
.admin-menu-enfant form + form { padding-top: 14px; border-top: 1px solid #e8eaf0; }
.admin-menu-enfant strong { font-size: .73rem; }
.admin-menu-enfant label { color: #737b8f; font-size: .62rem; font-weight: 750; }
.admin-menu-enfant input, .admin-menu-enfant select { width: 100%; min-height: 36px; margin-top: 3px; padding: 7px 9px; border: 1px solid #dfe3ea; border-radius: 7px; color: #182036; background: #fff; }
.admin-bouton { min-height: 43px; padding: 10px 15px; border: 0; border-radius: 9px; font-size: .75rem; font-weight: 850; cursor: pointer; }
.admin-bouton-principal { color: #fff; background: #182036; }
.admin-bouton-petit { min-height: 36px; color: #fff; background: #f2675a; }
.admin-bouton-neutre { background: #5d667d; }
.admin-bouton-niveau { background: #3857cf; }
.admin-bouton-paiement { background: #238a74; }
.admin-bouton:disabled { opacity: .45; cursor: not-allowed; }
.admin-banques { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.admin-banque { padding: 20px; }
.admin-banque-entete { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 13px; margin-bottom: 17px; }
.admin-banque-entete > span { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: #3857cf; font-size: .72rem; font-weight: 900; }
.admin-banque:nth-child(2) .admin-banque-entete > span { background: #299d86; }
.admin-banque:nth-child(3) .admin-banque-entete > span { background: #ec655a; }
.admin-banque h3 { margin: 0 0 2px; font: 800 1.05rem Georgia, serif; }
.admin-banque p { margin: 0; color: #848b9b; font-size: .62rem; }
.admin-banque ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.admin-banque li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding: 10px 0; border-top: 1px solid #eceef2; }
.admin-point { width: 8px; height: 8px; border-radius: 50%; background: #c7ccd6; }
.admin-point-actif { background: #299d86; box-shadow: 0 0 0 4px #e1f6f0; }
.admin-banque li strong, .admin-banque li small { display: block; }
.admin-banque li strong { font-size: .68rem; }
.admin-banque li small { margin-top: 2px; color: #9298a5; font-size: .56rem; }
.admin-banque li em { padding: 4px 6px; border-radius: 6px; color: #777f90; background: #f0f1f4; font-size: .52rem; font-style: normal; font-weight: 850; white-space: nowrap; }
.admin-banque li:has(.admin-point-actif) em { color: #176b5a; background: #dff6ef; }
.admin-reglage-activite { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px; padding: 9px 0 2px 17px; }
.admin-reglage-activite .interrupteur { grid-column: 1 / -1; }
.admin-plafond { color: #6e7688; font-size: .58rem; font-weight: 750; }
.admin-plafond input { width: 100%; min-height: 34px; margin-top: 4px; padding: 6px 8px; border: 1px solid #dfe3ea; border-radius: 7px; }
.interrupteur { position: relative; display: inline-flex !important; align-items: center; gap: 9px; cursor: pointer; color: #30394d !important; font-size: .67rem !important; font-weight: 800 !important; }
.interrupteur input, .admin-menu-enfant .interrupteur input { position: absolute; width: 1px; height: 1px; min-height: 1px; padding: 0; opacity: 0; }
.interrupteur-piste { position: relative; width: 38px; height: 22px; flex: 0 0 auto; border-radius: 20px; background: #a5acba; transition: background .15s; }
.interrupteur-piste::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.interrupteur input:checked + .interrupteur-piste { background: #25937c; }
.interrupteur input:checked + .interrupteur-piste::after { transform: translateX(16px); }
.interrupteur input:focus-visible + .interrupteur-piste { outline: 3px solid #3857cf; outline-offset: 3px; }
.admin-mode-extreme { color: #a9312b !important; font-weight: 850; }
.mode-extreme-avis { margin-top: 11px !important; padding: 9px 11px; border-radius: 9px; color: #8d332e !important; background: #ffe8e4; font-size: .72rem !important; font-weight: 800; }
.admin-grille-bas { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.admin-ligne-liste { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #eceef2; }
.admin-ligne-liste:first-of-type { border-top: 0; }
.admin-liste-icone { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: #176b5a; background: #dff6ef; font: 800 1rem Georgia, serif; }
.admin-liste-icone-neutre { color: #594ec7; background: #eceaff; }
.admin-ligne-liste strong, .admin-ligne-liste small { display: block; }
.admin-ligne-liste strong { font-size: .72rem; }
.admin-ligne-liste small { margin-top: 2px; color: #9298a5; font-size: .6rem; }
.admin-ligne-liste > b { font-size: .8rem; }
.admin-positif { color: #17816b; }
.admin-negatif { color: #cf4a40; }
.admin-vide { margin: 18px 0 5px; color: #9298a5; font-size: .78rem; }

.admin-connexion { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 80px; padding: 80px max(6vw, 30px); color: #fff; background: #182036; }
.admin-connexion::before { content: ""; position: fixed; inset: 72px 50% 0 0; opacity: .13; pointer-events: none; background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0); background-size: 28px 28px; }
.admin-connexion-message { position: relative; justify-self: end; max-width: 640px; }
.admin-connexion-message .admin-surtitre { color: #ffd166; }
.admin-connexion-message h1 { margin-bottom: 22px; font: 800 clamp(3rem, 6vw, 6rem)/1 Georgia, serif; }
.admin-connexion-message h1 em { color: #ffd166; font-weight: inherit; }
.admin-connexion-message p { max-width: 520px; color: #b9c0d4; font-size: 1rem; }
.admin-connexion-carte { position: relative; width: min(430px, 100%); padding: 38px; color: #182036; }
.admin-cadenas { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 13px; color: #fff; background: #f2675a; font-size: 1.5rem; }
.admin-connexion-carte h2 { margin-bottom: 5px; font: 800 2rem Georgia, serif; }
.admin-connexion-carte > p { margin-bottom: 24px; color: #737b8f; font-size: .8rem; }
.admin-formulaire { display: grid; gap: 8px; }
.admin-formulaire label { color: #50586b; font-size: .69rem; font-weight: 800; }
.admin-formulaire input, .admin-formulaire select { width: 100%; min-height: 47px; margin-top: 4px; padding: 10px 12px; border: 1px solid #dce0e8; border-radius: 9px; color: #182036; background: #fff; }
.admin-formulaire input:focus, .admin-formulaire select:focus { border-color: #3857cf; outline: 3px solid rgba(56, 87, 207, .15); }
.admin-formulaire .admin-bouton { margin-top: 9px; }
.admin-retour-enfant { display: block; margin-top: 20px; color: #737b8f; font-size: .69rem; font-weight: 750; text-align: center; text-decoration: none; }

.lien-progres { display: inline-block; margin-top: 9px; color: #267d6e; font-size: .82rem; font-weight: 800; text-decoration: none; }
.lien-progres:hover { text-decoration: underline; }
.page-progression { padding: 48px 0 80px; }
.page-progression.admin-page { padding-top: 42px; }
.progression-entete { margin: 22px 0 26px; }
.progression-entete h1 { margin: 0 0 9px; font: 800 clamp(2rem, 4vw, 3.3rem)/1.1 Georgia, serif; }
.progression-entete p { margin: 0; color: #6f778c; font-size: .86rem; }
.progression-chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 42px; }
.progression-chiffres article { padding: 19px; border: 1px solid #e0e4eb; border-radius: 15px; background: #fff; }
.progression-chiffres article span, .progression-chiffres article strong, .progression-chiffres article small { display: block; }
.progression-chiffres article span { color: #5d667d; font-size: .72rem; font-weight: 800; }
.progression-chiffres article strong { margin: 8px 0 4px; color: #182036; font: 800 2.15rem/1 Georgia, serif; }
.progression-chiffres article small { color: #8790a1; font-size: .67rem; }
.progression-section-titre { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 34px 0 16px; }
.progression-section-titre h2 { margin: 0; font: 800 1.45rem Georgia, serif; }
.progression-section-titre > p { max-width: 540px; margin: 0; color: #798293; font-size: .69rem; }
.progression-grille-matieres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.progression-matiere { padding: 20px; }
.progression-carte-entete { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.progression-carte-entete h3 { margin: 0; font: 800 1.05rem Georgia, serif; }
.progression-matiere p { margin: 10px 0 0; color: #697386; font-size: .72rem; }
.progression-jauge { height: 8px; margin-top: 18px; overflow: hidden; border-radius: 20px; background: #edf0f3; }
.progression-jauge span { display: block; height: 100%; border-radius: inherit; background: #31a78d; }
.progression-etat { display: inline-block; padding: 5px 8px; border-radius: 7px; font-size: .65rem; font-weight: 850; white-space: nowrap; }
.etat-facile { color: #126452; background: #e1f6f0; }
.etat-pratique { color: #805d0c; background: #fff4c9; }
.etat-difficile { color: #a9312b; background: #ffe8e4; }
.etat-inconnu { color: #5d667d; background: #edf0f3; }
.progression-table-cadre { overflow-x: auto; border: 1px solid #e0e4eb; border-radius: 14px; background: #fff; }
.progression-table { width: 100%; border-collapse: collapse; font-size: .77rem; }
.progression-table th { padding: 13px 16px; color: #737b8f; background: #f7f8fa; text-align: left; font-size: .65rem; text-transform: uppercase; }
.progression-table td { padding: 16px; border-top: 1px solid #eceef2; }
.progression-table td strong, .progression-table td small { display: block; }
.progression-table td small { margin-top: 4px; color: #9298a5; font-size: .65rem; }
.progression-historique { display: grid; gap: 10px; }
.progression-tentative { overflow: hidden; }
.progression-tentative summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 20px; cursor: pointer; }
.progression-tentative summary strong, .progression-tentative summary small { display: block; }
.progression-tentative summary strong { font-size: .84rem; }
.progression-tentative summary small { margin-top: 4px; color: #8991a0; font-size: .66rem; }
.progression-score { color: #267d6e; font-size: .76rem; font-weight: 850; white-space: nowrap; }
.progression-questions { padding: 0 20px 18px; border-top: 1px solid #eceef2; }
.progression-questions > p { color: #788193; font-size: .71rem; }
.progression-question { display: flex; align-items: flex-start; gap: 11px; padding: 10px 0; border-top: 1px solid #f0f1f4; }
.progression-question > span { width: 24px; height: 24px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; font-weight: 900; }
.progression-bon { color: #126452; background: #e1f6f0; }
.progression-erreur { color: #a9312b; background: #ffe8e4; }
.progression-question strong, .progression-question small { display: block; }
.progression-question strong { font-size: .73rem; }
.progression-question small { margin-top: 4px; color: #697386; font-size: .7rem; }
.progression-vide { padding: 25px; border: 1px dashed #dfe3ea; border-radius: 12px; color: #737b8f; background: #fff; font-size: .78rem; }
.progression-reset { padding: 22px; border-color: #f0b3ac; }
.progression-reset p { max-width: 790px; margin: 0 0 17px; color: #734c49; font-size: .76rem; }
.progression-reset form { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; }
.progression-reset label { display: grid; gap: 5px; color: #50586b; font-size: .7rem; font-weight: 800; }
.progression-reset input { min-height: 43px; padding: 8px 10px; border: 1px solid #dce0e8; border-radius: 8px; }
.progression-bouton-reset { color: #fff; background: #bd3e36; }

@media (max-width: 850px) {
  .connexion-grille { grid-template-columns: 1fr; gap: 50px; }
  .connexion-message { text-align: center; }
  .connexion-message > p, .regle-recompense { margin-inline: auto; }
  .connexion-carte { width: min(520px, 100%); margin-inline: auto; }
  .bienvenue { align-items: flex-start; flex-direction: column; }
  .compteur-minutes { width: 100%; }
  .grille-activites { grid-template-columns: 1fr; }
  .carte-bientot { min-height: auto; }
  .grille-preparation { grid-template-columns: 1fr; }
  .admin-resume { grid-template-columns: repeat(2, 1fr); }
  .admin-grille-haut { grid-template-columns: 1fr; }
  .admin-objectif { min-height: 250px; }
  .admin-grille-bas { grid-template-columns: 1fr; }
  .admin-banques { grid-template-columns: 1fr; }
  .progression-chiffres { grid-template-columns: repeat(2, 1fr); }
  .progression-grille-matieres { grid-template-columns: 1fr; }
  .admin-connexion { grid-template-columns: 1fr; gap: 45px; }
  .admin-connexion-message { justify-self: center; text-align: center; }
  .admin-connexion-message p { margin-inline: auto; }
  .admin-connexion-carte { justify-self: center; }
}

@media (max-width: 600px) {
  .conteneur, .conteneur-etroit, .conteneur-question { width: min(100% - 28px, 1120px); }
  .entete-interieur { min-height: 70px; }
  .marque small { display: none; }
  .marque-icone { width: 41px; height: 41px; }
  .navigation > a { display: none; }
  .navigation { gap: 0; }
  .bouton-texte { font-size: 0.75rem; }
  .section-connexion { padding: 48px 0 65px; }
  .connexion-message h1 { font-size: clamp(3rem, 16vw, 4.8rem); }
  .connexion-carte { padding: 28px 22px; }
  .tableau-bord { padding-top: 42px; }
  .bienvenue { margin-bottom: 55px; }
  .bienvenue h1 { font-size: 3.3rem; }
  .compteur-minutes { min-width: 0; padding-right: 15px; }
  .compteur-cadran { width: 68px; height: 68px; }
  .titre-section { align-items: start; flex-direction: column; }
  .carte-activite { grid-template-columns: 1fr; }
  .activite-illustration { min-height: 230px; }
  .activite-contenu { padding: 26px 22px; }
  .entete-activite { grid-template-columns: 1fr; }
  .icone-activite { width: 70px; height: 70px; }
  .lecon-carte, .choix-carte { padding: 26px 21px; }
  .barre-question { align-items: flex-start; }
  .progression-texte { align-items: flex-end; flex-direction: column; gap: 2px; text-align: right; }
  .carte-question { padding: 55px 21px 28px; }
  .expression { padding-inline: 3px; }
  .comparaison > div { grid-template-columns: 1fr; gap: 3px; }
  .resultat-carte { padding: 38px 20px; }
  .resultat-chiffres { grid-template-columns: 1fr; }
  .resultat-chiffres > div + div { border-top: 1px solid var(--ligne); border-left: 0; }
  .actions-resultat { display: grid; }
  .carte-vide { padding: 42px 22px; }
  .grille-banque { grid-template-columns: 1fr; }
  .admin-largeur { width: min(100% - 26px, 1280px); }
  .admin-entete-interieur { min-height: 65px; }
  .admin-marque small { display: none; }
  .admin-navigation a { display: none; }
  .admin-page { padding-top: 30px; }
  .admin-titre-page { flex-direction: column; }
  .admin-ajout, .admin-ajout > summary { width: 100%; }
  .admin-ajout > summary { justify-content: center; }
  .admin-formulaire-inline { position: static; width: 100%; border-radius: 0 0 12px 12px; box-shadow: none; }
  .admin-resume { grid-template-columns: 1fr; }
  .admin-resume article { padding: 17px; }
  .admin-graphique, .admin-objectif, .admin-liste { padding: 19px; }
  .admin-barres { height: 180px; gap: 2px; }
  .admin-barre-colonne small { font-size: .45rem; }
  .admin-tableau-cadre { border: 0; background: transparent; box-shadow: none; }
  .admin-tableau, .admin-tableau tbody { display: block; }
  .admin-tableau thead { display: none; }
  .admin-tableau tr { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 13px; padding: 9px; border: 1px solid #e0e4eb; border-radius: 14px; background: #fff; }
  .admin-tableau td, .admin-tableau td:first-child { min-height: 55px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px; border: 0; }
  .admin-tableau td::before { content: attr(data-titre); color: #858c9d; font-size: .57rem; font-weight: 800; text-transform: uppercase; }
  .admin-tableau td:first-child { grid-column: 1 / -1; justify-content: flex-start; border-bottom: 1px solid #eceef2; }
  .admin-tableau td:first-child::before, .admin-tableau td:last-child::before { display: none; }
  .admin-tableau td:nth-last-child(2) { grid-column: 1 / 2; }
  .admin-tableau td:last-child { grid-column: 2 / 3; justify-content: flex-end; }
  .admin-menu-enfant { position: fixed; top: 50%; right: 14px; left: 14px; width: auto; transform: translateY(-50%); }
  .progression-chiffres { gap: 8px; }
  .progression-chiffres article { padding: 14px; }
  .progression-section-titre { display: block; }
  .progression-section-titre > p { margin-top: 8px; }
  .progression-table, .progression-table tbody { display: block; }
  .progression-table thead { display: none; }
  .progression-table tr { display: grid; grid-template-columns: repeat(2, 1fr); padding: 10px; border-top: 1px solid #eceef2; }
  .progression-table tr:first-child { border-top: 0; }
  .progression-table td { padding: 8px; border: 0; }
  .progression-table td:first-child { grid-column: 1 / -1; }
  .progression-table td::before { content: attr(data-titre); display: block; margin-bottom: 3px; color: #9298a5; font-size: .57rem; font-weight: 800; text-transform: uppercase; }
  .progression-tentative summary { display: block; }
  .progression-score { display: block; margin-top: 8px; }
  .admin-connexion { min-height: calc(100vh - 65px); padding: 50px 17px; }
  .admin-connexion-message h1 { font-size: 3.2rem; }
  .admin-connexion-carte { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
