/* Espace joueur, abonnement et espace professeur (retours du 17/11/2026) */
.ef-h{padding:clamp(18px,3vw,34px) 0 clamp(40px,6vw,72px);background:radial-gradient(1200px 400px at 85% -10%,rgba(255,217,15,.18),transparent 60%)}
.ef-h--abo{background:radial-gradient(1200px 400px at 85% -10%,rgba(143,224,154,.22),transparent 60%)}
.ef-h--prof{background:radial-gradient(1200px 400px at 85% -10%,rgba(143,227,248,.25),transparent 60%)}
.ef-h__t{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:24px 40px;align-items:center;margin:10px 0 clamp(22px,3vw,34px)}
.ef-h__t[hidden]{display:none}
.ef-h__r{display:flex;gap:12px;justify-content:flex-end;list-style:none;margin:0;padding:0}
.ef-h__r li{display:grid;place-items:center;align-content:center;gap:4px;width:136px;aspect-ratio:1;padding:10px;background:var(--c);color:#241530;border:2px solid #241530;border-radius:20px;transform:rotate(var(--r));box-shadow:4px 4px 0 #241530;text-align:center}
.ef-h__r b{font:400 1.1rem/1.05 var(--display)}
.ef-h__r span{font-size:.78rem;font-weight:700;line-height:1.15}
.ef-h__l{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.ef-h__l li,.ef-offre li,.ef-modal__l li{display:flex;gap:10px;align-items:flex-start;line-height:1.35}
.ef-h__l svg,.ef-offre li svg,.ef-modal__l svg{flex:none;width:20px;height:20px;padding:3px;border-radius:50%;background:#6FDB7A;fill:none;stroke:#241530;stroke-width:3}
@media(max-width:860px){.ef-h__t{grid-template-columns:1fr}.ef-h__r{justify-content:flex-start}}
@media(max-width:480px){.ef-h__r{flex-wrap:wrap;gap:8px}.ef-h__r li{width:auto;flex:1 1 90px;min-width:0;aspect-ratio:auto;padding:12px 6px}.ef-h__r b{font-size:.9rem;overflow-wrap:normal}.ef-h__r span{font-size:.72rem}}

/* Cartes et grilles */
.ef-carte{background:var(--card);border:1.5px solid var(--bord);border-radius:22px;padding:clamp(16px,2.2vw,24px);box-shadow:0 12px 30px -24px rgba(36,21,48,.45);min-width:0}
.ef-carte > :last-child{margin-bottom:0}
.ef-tt{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;margin-bottom:14px}
.ef-tt .titre{margin:0}
.ef-tdb{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.ef-span{grid-column:1/-1}
@media(max-width:820px){.ef-tdb{grid-template-columns:1fr}}
.tag--ok,.tag--vert{background:#CBF2CF;color:#1C4A2B}
.tag--jaune{background:#FFF1A6;color:#5a4a00}
.tag--rose{background:#FFD3E6;color:#7a1f48}
.tag--gris{background:#e6e1ea;color:#4a3b58}
.ef-bar{display:block;height:10px;border-radius:99px;background:rgba(36,21,48,.1);overflow:hidden}
.ef-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#FFD90F,#F6653C)}
.ef-bar--l{height:14px;border:1.5px solid #241530}

/* Formulaires */
.ef-in{display:grid;gap:16px;max-width:820px}
.ef-in__o{display:flex;gap:4px;padding:4px;background:var(--card);border:1.5px solid var(--bord);border-radius:999px;overflow-x:auto;scrollbar-width:none}
.ef-in__o > *{flex:1;display:inline-flex;justify-content:center;padding:.75em 1em;border-radius:999px;font:700 .95rem/1 var(--text);color:var(--fg);white-space:nowrap;text-decoration:none}
.ef-in__o [aria-selected=true]{background:#241530;color:#fff}
.ef-f{display:grid;gap:14px;background:var(--card);border:1.5px solid var(--bord);border-radius:22px;padding:clamp(16px,2.4vw,26px)}
.ef-f[hidden]{display:none}
.ef-dlg .ef-f{border:0;padding:0;background:none}
.ef-f__2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start} /* 25/11 : un message sous un champ n'étire plus son voisin */
.ef-f__3{display:grid;grid-template-columns:110px minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:start}
@media(max-width:560px){.ef-f__2,.ef-f__3{grid-template-columns:1fr}}
.ef-c{display:grid;gap:6px;font-weight:700;font-size:.92rem}
.ef-c small{font-weight:500;color:var(--fg-2)}
.ef-c input,.ef-c select,.ef-ligne input,.ef-ligne select{width:100%;min-width:0;padding:.75em .9em;border:1.5px solid var(--bord);border-radius:12px;background:var(--field,#fff);font:500 1rem/1.2 var(--text);color:var(--fg)}
.ef-c input:focus,.ef-c select:focus,.ef-ligne input:focus{outline:3px solid var(--cyan);outline-offset:1px}
.ef-av{border:0;margin:0;padding:0;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px}
.ef-av legend{font-weight:700;font-size:.92rem;margin-bottom:6px}
.ef-av label{position:relative;display:grid;justify-items:center;gap:4px;padding:6px 2px;border:1.5px solid var(--bord);border-radius:14px;background:var(--paper);cursor:pointer;font-size:.74rem;font-weight:700}
.ef-av input{position:absolute;opacity:0;inset:0;cursor:pointer}
.ef-av img{width:56px;height:56px;max-width:100%;object-fit:contain}
.ef-av label:has(input:checked){border-color:#241530;background:#FFF1A6;box-shadow:0 0 0 2px #241530}
.ef-av label:has(input:focus-visible){outline:3px solid var(--cyan)}
@media(max-width:560px){.ef-av{grid-template-columns:repeat(4,minmax(0,1fr))}}
.ef-ligne{display:flex;gap:8px;flex-wrap:wrap}
.ef-ligne > input{flex:1 1 160px}
.ef-dlg{width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 32px);border:0;border-radius:24px;padding:clamp(18px,3vw,28px);background:var(--card);color:var(--fg);box-shadow:0 30px 80px -20px rgba(0,0,0,.5)}
.ef-dlg::backdrop{background:rgba(20,10,30,.55);backdrop-filter:blur(3px)}

/* Bandeau joueur (au-dessus du Labo) */
.ef-j{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin:0 0 14px;padding:10px 14px;background:var(--card);border:1.5px solid var(--bord);border-radius:18px}
.ef-j__a{width:46px;height:46px;object-fit:contain;background:#FFF1A6;border-radius:50%;border:1.5px solid #241530}
.ef-j__t{display:grid;line-height:1.25;min-width:0}
.ef-j__t span{font-size:.86rem;color:var(--fg-2)}
.ef-j--in .ef-j__t{flex:1 1 300px}
.ef-j__x{flex:1 1 200px;display:grid;gap:4px}
.ef-j__x small{font-size:.8rem;color:var(--fg-2)}
.ef-j__s{display:inline-flex;align-items:center;gap:3px;font-weight:800}
.ef-j__s svg,.ef-joueur__k svg,.ef-alerte svg,.ef-tab svg{width:18px;height:18px;fill:#F6653C;stroke:none}

/* Tableau de bord élève */
.ef-joueur{grid-column:1/-1;display:grid;grid-template-columns:auto minmax(0,1fr) minmax(0,1.2fr);grid-template-areas:"a t x" "a k k";gap:10px 24px;align-items:center;background:linear-gradient(135deg,#FFF6C4,var(--card) 60%)}
.ef-joueur__a{grid-area:a;width:clamp(90px,12vw,140px);aspect-ratio:1;object-fit:contain;background:#fff;border:2px solid #241530;border-radius:28px;box-shadow:5px 5px 0 #241530}
.ef-joueur__t{grid-area:t}
.ef-joueur__t .titre{margin:4px 0 0}
.ef-joueur__x{grid-area:x;display:grid;gap:8px}
.ef-xp{display:flex;align-items:baseline;gap:6px}
.ef-xp b{font:400 2.6rem/1 var(--display)}
.ef-xp span{font-weight:800}
.ef-joueur__k{grid-area:k;display:flex;flex-wrap:wrap;gap:8px}
.ef-joueur__k span{display:inline-flex;align-items:baseline;gap:6px;padding:.5em .9em;border-radius:999px;background:var(--paper);border:1.5px solid var(--bord);font-size:.88rem}
.ef-joueur__k b{font-size:1.1rem}
.ef-joueur__k .feu{align-items:center}
@media(max-width:820px){.ef-joueur{grid-template-columns:auto minmax(0,1fr);grid-template-areas:"a t" "x x" "k k"}}
.ef-jeux{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(190px,100%),1fr));gap:12px}
.ef-jeu{display:grid;gap:6px;padding:8px;border:1.5px solid var(--bord);border-radius:16px;background:var(--card);color:var(--fg);text-decoration:none;transition:transform .2s var(--ease),box-shadow .2s}
.ef-jeu:hover{transform:translateY(-3px);box-shadow:0 14px 26px -18px rgba(36,21,48,.6)}
.ef-jeu__i{position:relative;display:block;aspect-ratio:16/9;border-radius:10px;overflow:hidden;background:#f3ece4}
.ef-jeu__i img{width:100%;height:100%;object-fit:cover}
.ef-jeu__i em{position:absolute;top:6px;display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:99px;font:800 .7rem/1 var(--text);font-style:normal}
.ef-jeu__i .lk{left:6px;background:#241530;color:#fff}
.ef-jeu__i .lk svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.4}
.ef-jeu__i .fr{left:6px;background:#6FDB7A;color:#241530}
.ef-jeu__i .ok{right:6px;background:#FFD90F;color:#241530}
.ef-jeu.is-lock img{filter:saturate(.5) brightness(.9)}
.ef-jeu b{font-size:.92rem;line-height:1.2}
.ef-pts{display:flex;align-items:center;gap:3px}
.ef-pts i{width:10px;height:10px;border-radius:50%;background:rgba(36,21,48,.12)}
.ef-pts i.on{background:#3FB54C}
.ef-pts small{margin-left:6px;font-size:.76rem;color:var(--fg-2);font-weight:700}
.ef-note{display:flex;gap:10px;align-items:center;margin:14px 0 0;padding:10px 14px;border-radius:14px;background:var(--paper);font-size:.9rem}
.ef-note svg{flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2}
.ef-badges{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ef-badges li{display:grid;justify-items:center;text-align:center;gap:4px;padding:10px 6px;border-radius:16px;border:1.5px dashed var(--bord);color:var(--fg-2)}
.ef-badges li > span{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:rgba(36,21,48,.08)}
.ef-badges li svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.4}
.ef-badges b{font-size:.84rem;line-height:1.15;color:var(--fg)}
.ef-badges small{font-size:.72rem;line-height:1.2}
.ef-badges li.ok{border-style:solid;border-color:#241530;background:#FFF6C4;color:#241530}
.ef-badges li.ok > span{background:#FFD90F;border:1.5px solid #241530}
@media(max-width:420px){.ef-badges{grid-template-columns:repeat(2,minmax(0,1fr))}}
.ef-clas{list-style:none;margin:0 0 10px;padding:0;display:grid;gap:6px}
.ef-clas li{display:grid;grid-template-columns:30px 34px minmax(0,1fr) auto;align-items:center;gap:10px;padding:6px 10px;border-radius:12px;background:var(--paper)}
.ef-clas li.moi{background:#FFF1A6;border:1.5px solid #241530;color:#241530}
.ef-clas__r{font:400 1.2rem/1 var(--display);text-align:center}
.ef-clas img{width:34px;height:34px;object-fit:contain}
.ef-clas em{font-style:normal;font-weight:800;font-size:.86rem}
.ef-dev{display:grid;grid-template-columns:72px minmax(0,1fr) auto;align-items:center;gap:12px;padding:8px;border-radius:14px;background:var(--paper);color:var(--fg);text-decoration:none;margin-bottom:8px}
.ef-dev img{width:72px;aspect-ratio:16/9;object-fit:cover;border-radius:8px}
.ef-dev span{display:grid}
.ef-dev small{color:var(--fg-2)}
.ef-dev em{font-style:normal;font-weight:800;padding:.35em .7em;border-radius:99px;background:rgba(36,21,48,.08)}
.ef-dev em.ok{background:#6FDB7A;color:#241530}
.ef-pied{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.ef-enf{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),1fr));gap:12px;margin-bottom:10px}
.ef-enf__c{display:grid;grid-template-columns:64px minmax(0,1fr);gap:8px 12px;align-items:center;padding:12px;border:1.5px solid var(--bord);border-radius:16px;background:var(--paper)}
.ef-enf__c img{width:64px;height:64px;object-fit:contain}
.ef-enf__c > div{display:grid;gap:3px;justify-items:start}
.ef-enf__c > div span{font-size:.86rem;color:var(--fg-2)}
.ef-enf__c .btn{grid-column:1/-1;justify-self:stretch;justify-content:center}
.ef-dl{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(200px,100%),1fr));gap:10px;margin:0 0 16px}
.ef-dl div{padding:10px 12px;border-radius:12px;background:var(--paper)}
.ef-dl dt{font-size:.78rem;color:var(--fg-2);font-weight:700}
.ef-dl dd{margin:2px 0 0;font-weight:700}
.ef-fact{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.ef-fact li{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:12px;align-items:center;padding:8px 12px;border-radius:10px;background:var(--paper);font-size:.92rem}

/* Annonces (XP, badges, rangs) */
.ef-ann{position:fixed;left:50%;bottom:90px;transform:translateX(-50%);z-index:300;display:grid;gap:8px;justify-items:center;pointer-events:none}
.ef-ann__i{pointer-events:auto;padding:.7em 1.2em;border-radius:999px;background:#241530;color:#fff;font-weight:600;box-shadow:0 12px 30px -10px rgba(0,0,0,.5);animation:ef-in .35s var(--ease)}
.ef-ann__i a{color:#FFD90F}
.ef-ann__i.xp b{color:#FFD90F}
.ef-ann__i.rang,.ef-ann__i.badge{background:#FFD90F;color:#241530;border:2px solid #241530}
.ef-ann__i.out{opacity:0;transform:translateY(10px);transition:.5s}
@keyframes ef-in{from{opacity:0;transform:translateY(14px) scale(.9)}}
@media(prefers-reduced-motion:reduce){.ef-ann__i{animation:none}}

/* Fenêtre « réservé aux abonnés » */
.ef-modal{position:fixed;inset:0;z-index:400;display:grid;place-items:center;padding:16px}
.ef-modal__f{position:absolute;inset:0;background:rgba(20,10,30,.6);backdrop-filter:blur(3px)}
.ef-modal__c{position:relative;width:min(480px,100%);max-height:calc(100dvh - 32px);overflow:auto;display:grid;gap:12px;padding:clamp(18px,3vw,26px);background:var(--card);color:var(--fg);border-radius:24px;box-shadow:0 30px 80px -20px rgba(0,0,0,.6);text-align:left}
.ef-modal__c h2{margin:0;font:400 1.7rem/1.05 var(--display)}
.ef-modal__c p{margin:0}
.ef-modal__img{position:relative;border-radius:16px;overflow:hidden;aspect-ratio:16/9}
.ef-modal__img img{width:100%;height:100%;object-fit:cover;filter:saturate(.6)}
.ef-modal__img span{position:absolute;left:10px;top:10px;display:inline-flex;gap:5px;align-items:center;padding:4px 10px;border-radius:99px;background:#241530;color:#fff;font:800 .76rem/1 var(--text)}
.ef-modal__img svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.2}
.ef-modal__l{list-style:none;margin:0;padding:0;display:grid;gap:6px;font-size:.92rem}
.ef-modal__b{display:grid;gap:8px}
.ef-modal__b .btn{justify-content:center}
.ef-modal__c > .lien{justify-self:center}
.ef-modal__x{position:absolute;top:10px;right:10px;z-index:2;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--card);border:1.5px solid var(--bord)}
.ef-modal__x svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4}

/* Abonnement */
.ef-deja{display:flex;gap:10px;align-items:center;padding:12px 16px;border-radius:16px;background:#CBF2CF;color:#1C4A2B;font-weight:600;margin:0 0 18px}
.ef-deja[hidden]{display:none}
.ef-deja svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:3}
.ef-offres{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}
.ef-offre{position:relative;display:flex;flex-direction:column;gap:12px;padding:clamp(18px,2.4vw,26px);background:var(--card);border:1.5px solid var(--bord);border-radius:24px}
.ef-offre .titre{margin:0}
.ef-offre ul{list-style:none;margin:0;padding:0;display:grid;align-content:start;gap:8px;font-size:.92rem;flex:1}
.ef-offre .btn{justify-content:center}
.ef-offre--top{border:2px solid #241530;box-shadow:6px 6px 0 #241530;background:linear-gradient(180deg,#FFF6C4,var(--card) 40%)}
.ef-offre__ruban{position:absolute;top:-13px;right:18px;padding:.4em .9em;border-radius:99px;background:#F6653C;color:#fff;font:800 .76rem/1 var(--text)}
.ef-prix{margin:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px}
.ef-prix b{font:400 2.4rem/1 var(--display)}
.ef-prix small{flex-basis:100%;font-size:.82rem;color:var(--fg-2)}
.ef-per{display:flex;gap:4px;padding:4px;border-radius:999px;background:var(--paper);border:1.5px solid var(--bord)}
.ef-per label{flex:1;position:relative;cursor:pointer}
.ef-per input{position:absolute;opacity:0}
.ef-per span{display:grid;justify-items:center;padding:.5em .6em;border-radius:999px;font-weight:700;font-size:.88rem;line-height:1.1;text-align:center}
.ef-per em{font-style:normal;font-size:.7rem;color:#3FB54C}
.ef-per label:has(input:checked) span{background:#241530;color:#fff}
.ef-per label:has(input:checked) em{color:#FFD90F}
.ef-per label:has(input:focus-visible) span{outline:3px solid var(--cyan)}
@media(max-width:900px){.ef-offres{grid-template-columns:1fr;max-width:520px;margin-inline:auto}}
/* Offres du 21/11 : deux blocs (familles en 4 cartes, établissements en 3) */
.ef-bl{margin-top:clamp(28px,4vw,48px)}
.ef-bl__t{display:grid;justify-items:start;gap:8px;margin:0 0 clamp(18px,2.4vw,26px)}
.ef-bl__t .titre{margin:0}
.ef-bl__t p{max-width:62ch;color:var(--fg-2)}
.ef-bl__n{margin:16px 0 0;font-size:.92rem;color:var(--fg-2)}
.ef-offres--4{grid-template-columns:repeat(4,minmax(0,1fr))}
.ef-offre .ef-prix small{text-transform:none}
.ef-offre__ruban{white-space:nowrap}
@media(max-width:1100px){.ef-offres--4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.ef-offres--4{grid-template-columns:1fr;max-width:520px;margin-inline:auto}}
.ef-suite{display:grid;grid-template-columns:auto auto minmax(0,1fr);gap:16px 32px;align-items:center;margin-top:clamp(28px,4vw,48px);padding:clamp(18px,2.4vw,26px);background:var(--card);border:1.5px solid var(--bord);border-radius:24px}
.ef-suite .titre{margin:6px 0 0}
.ef-suite ul{display:flex;gap:28px;list-style:none;margin:0;padding:0}
.ef-suite li{display:grid;gap:2px}
.ef-suite li b{font:400 2.4rem/1 var(--display)}
.ef-suite li span{font-size:.86rem;color:var(--fg-2)}
@media(max-width:900px){.ef-suite{grid-template-columns:1fr}}
.ef-merci{margin-top:20px;text-align:center;display:grid;justify-items:center;gap:8px}
.ef-merci[hidden]{display:none}
.ef-sous .ef-prix{margin-bottom:14px}
.ef-sous .ef-modal__x{top:14px;right:14px}
.ef-enfs{border:0;margin:0;padding:0;display:grid;gap:6px}
.ef-enfs legend{font-weight:700;margin-bottom:6px}
.ef-recap{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:12px 14px;border-radius:14px;background:var(--paper)}
.ef-recap span{color:var(--fg-2);font-size:.92rem}
/* Récapitulatif de la modale d'essai : sur 375 px, la ligne passe à la suite au lieu d'écraser le libellé (revue du 22/11, A5). */
.ef-recap{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 14px}
.ef-recap span{flex:1 1 240px}
.ef-recap b{white-space:nowrap}
.ef-niv__t{overflow-x:auto;border-radius:20px;border:1.5px solid var(--bord);background:var(--card)}
.ef-niv__t table{width:100%;border-collapse:collapse;min-width:640px}
.ef-niv__t th,.ef-niv__t td{padding:10px 14px;border-bottom:1px solid var(--bord);text-align:left;vertical-align:middle}
.ef-niv__t tbody th{font:400 1.4rem/1 var(--display)}
.ef-niv__t td:nth-child(2){white-space:nowrap;color:var(--fg-2);font-size:.9rem}
.ef-niv__t ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.ef-niv__t li{display:inline-flex;align-items:center;gap:6px;padding:3px 10px 3px 3px;border-radius:99px;background:var(--paper);border:1px solid var(--bord);font-size:.84rem;font-weight:600}
.ef-niv__t li img{width:34px;height:22px;object-fit:cover;border-radius:99px}
.ef-niv__t li.fr{background:#CBF2CF;border-color:#3FB54C;color:#1C4A2B}

/* Espace professeur */
.ef-prof__t{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center}
@media(max-width:820px){.ef-prof__t{grid-template-columns:1fr}}
.ef-lic{display:grid;gap:4px;justify-items:start;padding:12px 16px;border-radius:16px;background:#FFF1A6;color:#241530;font-size:.88rem}
.ef-lic.ok{background:#CBF2CF}
.ef-cls{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}
.ef-cls button{display:grid;padding:.6em 1.1em;border:1.5px solid var(--bord);border-radius:16px;background:var(--card);color:var(--fg);font:700 .95rem/1.15 var(--text);text-align:left}
.ef-cls button small{font-weight:600;color:var(--fg-2);font-size:.78rem}
.ef-cls button[aria-pressed=true]{background:#241530;border-color:#241530;color:#fff}
.ef-cls button[aria-pressed=true] small{color:#FFD90F}
.ef-cls .ef-cls__n{border-style:dashed;place-items:center}
.ef-vide{text-align:center;display:grid;justify-items:center}
.ef-kpi{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}
.ef-kpi div{display:grid;gap:2px;padding:14px 16px;border-radius:18px;background:var(--card);border:1.5px solid var(--bord)}
.ef-kpi b{font:400 2.2rem/1 var(--display)}
.ef-kpi span{font-size:.84rem;color:var(--fg-2);font-weight:600}
@media(max-width:720px){.ef-kpi{grid-template-columns:repeat(2,minmax(0,1fr))}}
.ef-prof__g{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:16px;margin-bottom:16px}
@media(max-width:900px){.ef-prof__g{grid-template-columns:1fr}}
.ef-code{display:grid;gap:10px;align-content:start;background:linear-gradient(135deg,#BEEEFB,var(--card) 70%)}
.ef-code__c{font:400 clamp(2rem,4vw,2.8rem)/1 var(--display);letter-spacing:.06em;padding:12px 16px;border:2px dashed #241530;border-radius:14px;background:#fff;color:#241530;text-align:center}
.ef-dev-f{margin-bottom:12px}
.ef-dev-f select,.ef-dev-f input{flex:1 1 140px;width:auto}
.ef-devs{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.ef-devs li{display:grid;grid-template-columns:60px minmax(0,1fr) 90px auto auto;gap:10px;align-items:center;padding:8px;border-radius:12px;background:var(--paper)}
.ef-devs img{width:60px;aspect-ratio:16/9;object-fit:cover;border-radius:6px}
.ef-devs span{display:grid;line-height:1.2}
.ef-devs small{color:var(--fg-2)}
.ef-devs em{font-style:normal;font-weight:800;font-size:.86rem}
@media(max-width:560px){.ef-devs li{grid-template-columns:60px minmax(0,1fr) auto}.ef-devs .ef-bar{grid-column:1/-1;grid-row:2}.ef-devs li .lien{grid-column:3;grid-row:1}}
.ef-alerte{display:flex;gap:10px;align-items:center;padding:12px 16px;border-radius:16px;background:#FFE3D6;color:#6b2a10;margin:0 0 16px}
.ef-tab{overflow-x:auto;margin:0 -4px 10px;padding:0 4px}
.ef-tab table{width:100%;border-collapse:separate;border-spacing:0;font-size:.9rem;min-width:720px}
.ef-tab th,.ef-tab td{padding:8px 10px;border-bottom:1px solid var(--bord);text-align:left;white-space:nowrap}
.ef-tab thead th{position:sticky;top:0;background:var(--card);font-size:.78rem;color:var(--fg-2);font-weight:700}
.ef-tab tbody th{display:flex;align-items:center;gap:8px;font-weight:700}
.ef-tab tbody th img{width:28px;height:28px;object-fit:contain}
.ef-tab .ef-tab__j{padding:4px}
.ef-tab .ef-tab__j img{width:46px;aspect-ratio:16/9;object-fit:cover;border-radius:6px;display:block}
.ef-tab .ef-hm{text-align:center;font-weight:800;font-size:.8rem;background:rgba(63,181,76,calc(var(--v) * .85));color:#173d20;border-left:2px solid var(--card)}
.ef-tab tr.moi{background:#FFF6C4}
.ef-tab .rouge{color:#d23b1e;font-weight:700}
.ef-tab tfoot td,.ef-tab tfoot th{font-weight:800;font-size:.8rem;text-align:center;border-bottom:0}
.ef-tab tfoot th{text-align:left}
.ef-tab svg{display:inline-block;width:14px;height:14px;vertical-align:-2px}
.ef-cartes-print{display:none}
@media print{
  body.ef-imprime > *{display:none!important}
  body.ef-imprime main,body.ef-imprime main *{display:revert!important}
  body.ef-imprime main *:not(.ef-cartes-print):not(.ef-cartes-print *){visibility:hidden}
  body.ef-imprime .ef-cartes-print{visibility:visible;position:absolute;left:0;top:0;width:100%;display:grid!important;grid-template-columns:repeat(2,1fr);gap:8mm}
  body.ef-imprime .ef-cartes-print div{display:grid!important;gap:2mm;padding:6mm;border:1px dashed #000;border-radius:4mm;break-inside:avoid;font:12pt/1.3 Arial,sans-serif;color:#000}
  body.ef-imprime .ef-cartes-print *{visibility:visible}
}

/* ===== Mise en page CRM de Mon espace (reprise de espace-wp.css) ===== */
/* =====================================================================
   Tableaux de bord parent et professeur en « CRM » : onglets à gauche, contenu à droite (18/11/2026)
   ===================================================================== */
[data-ef-espace] .wrap:has(.ef-crm),[data-ef-prof] .wrap:has(.ef-crm){width:min(1280px,100% - 2*var(--gut))}
.ef-crm{display:grid;grid-template-columns:262px minmax(0,1fr);gap:clamp(18px,2.4vw,28px);align-items:start}
.ef-crm svg{flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.ef-crm__side{position:sticky;top:98px;display:flex;flex-direction:column;gap:16px;min-width:0;padding:18px 12px 12px;background:var(--paper);border:1.5px solid var(--bord);border-radius:22px;box-shadow:0 12px 30px -24px rgba(36,21,48,.45);max-height:calc(100vh - 116px);overflow-y:auto}
.ef-crm__id{display:flex;align-items:center;gap:12px;padding:0 6px}
.ef-crm__id > div{display:grid;gap:3px;min-width:0;justify-items:start}
.ef-crm__av{flex:none;display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:#FFD90F;color:#241530;border:1.5px solid #241530;font:400 1.35rem/1 var(--display)}
.ef-crm__nom{font:400 1.2rem/1.1 var(--display);letter-spacing:-.01em;color:var(--fg);overflow-wrap:anywhere}
.ef-crm__id small{max-width:100%;color:var(--fg-2);font-size:.78rem;font-weight:600;overflow-wrap:anywhere;line-height:1.25}
.ef-crm__sel{display:grid;gap:6px;padding:0 6px}
.ef-crm__sel select{width:100%}
.ef-crm__nav{display:flex;flex-direction:column;gap:12px;min-width:0}
.ef-crm__tl{display:flex;flex-direction:column;gap:3px}
.ef-crm__t{display:flex;align-items:center;gap:12px;width:100%;min-height:46px;padding:0 12px;border:0;border-radius:14px;background:none;color:var(--fg);font:700 .95rem/1.15 var(--text);text-align:left;cursor:pointer;transition:background .15s}
.ef-crm__t svg{width:20px;height:20px}
.ef-crm__l{min-width:0;flex:1}
.ef-crm__lc{display:none}
.ef-crm__t:hover{background:rgba(36,21,48,.07)}
.ef-crm__t:focus-visible,.ef-crm__out:focus-visible,.ef-crm__cls button:focus-visible,.ef-crm__menu a:focus-visible{outline:3px solid var(--cyan);outline-offset:2px}
.ef-crm__t[aria-selected=true]{background:#241530;color:#fff}
.ef-crm__n{flex:none;min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:rgba(36,21,48,.1);color:var(--fg);font:800 .75rem/24px var(--text);text-align:center}
.ef-crm__t[aria-selected=true] .ef-crm__n{background:#FFD90F;color:#241530}
.ef-crm__n.is-alerte{background:#B3001B;color:#fff}
.ef-crm__out{display:flex;align-items:center;gap:12px;width:100%;min-height:46px;margin-top:2px;padding:0 12px;border:0;border-top:1.5px solid var(--bord);border-radius:0 0 14px 14px;background:none;color:var(--fg-2);font:700 .92rem/1.1 var(--text);text-align:left;cursor:pointer}
.ef-crm__out svg{width:20px;height:20px}
.ef-crm__out:hover{color:var(--fg);background:rgba(36,21,48,.05)}
.ef-crm__out:disabled{opacity:.6;cursor:default}

.ef-crm__main{min-width:0}
.ef-crm__p[hidden]{display:none}
.ef-crm__stack{display:grid;gap:16px;min-width:0;align-content:start}
.ef-crm__stack > *{margin-top:0;margin-bottom:0}
.ef-crm__ph{display:grid;gap:6px;padding:2px 2px 4px}
.ef-crm__ph .titre{margin:0}
.ef-crm__ph p{color:var(--fg-2)}

.ef-crm__kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.ef-crm__k{display:grid;gap:6px;align-content:space-between;min-width:0;padding:14px 16px;border-radius:18px;background:var(--card);border:1.5px solid var(--bord)}
.ef-crm__k span{font-size:.82rem;color:var(--fg-2);font-weight:700}
.ef-crm__k b{font:400 2.1rem/1 var(--display);color:var(--fg)}
.ef-crm__k b.ef-crm__k--t{font:400 1.25rem/1.15 var(--display)}
.ef-crm .ef-kpi{margin:0}
.ef-crm__rows{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.ef-crm__row{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:12px;padding:8px 14px 8px 10px;border-radius:16px;background:var(--paper)}
.ef-crm__row img{width:44px;height:44px;object-fit:contain}
.ef-crm__row__n,.ef-crm__row__v{display:grid;line-height:1.2;min-width:0}
.ef-crm__row__v{text-align:right}
.ef-crm__row small{color:var(--fg-2);font-size:.78rem;font-weight:600}
.ef-crm__menu{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.ef-crm__menu a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:54px;padding:0 16px;border:1.5px solid var(--bord);border-radius:16px;background:var(--paper);color:var(--fg);font:700 1rem/1.2 var(--text);text-decoration:none;transition:background .15s,border-color .15s}
.ef-crm__menu a svg{width:18px;height:18px;color:var(--fg-2)}
.ef-crm__menu a:hover{background:#FFF1A6;border-color:#241530;color:#241530}
.ef-crm__menu a:hover svg{color:#241530}
.ef-crm__cls{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.ef-crm__cls button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:58px;padding:8px 16px;border:1.5px solid var(--bord);border-radius:16px;background:var(--paper);color:var(--fg);font:700 1rem/1.2 var(--text);text-align:left;cursor:pointer}
.ef-crm__cls button:hover{border-color:#241530}
.ef-crm__cls button[aria-pressed=true]{background:#FFF1A6;border-color:#241530;color:#241530;cursor:default}
.ef-crm__cls__n{display:grid;gap:2px;min-width:0}
.ef-crm__cls__n small{color:var(--fg-2);font-size:.8rem;font-weight:600}
.ef-crm__cls button[aria-pressed=true] small{color:#3c2d4b}
.ef-crm__cls__c{flex:none;color:var(--fg-2);font-size:.85rem}
.ef-crm__cartes{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(200px,100%),1fr));gap:10px}
.ef-crm__carte{display:grid;gap:8px;justify-items:start;padding:12px 14px;border:1.5px dashed var(--bord);border-radius:16px;background:var(--paper)}
.ef-crm__carte b{overflow-wrap:anywhere}
.ef-crm .ef-ej-licc{margin-bottom:0}
.ef-crm .ef-code{margin:0}
.ef-crm .ef-dl{margin:0 0 14px}

/* Mode sombre : onglet actif en jaune, lisible sur le fond violet */
:root[data-theme=nuit] .ef-crm__t[aria-selected=true],:root[data-theme=dark] .ef-crm__t[aria-selected=true]{background:#FFD90F;color:#241530}
:root[data-theme=nuit] .ef-crm__t[aria-selected=true] .ef-crm__n,:root[data-theme=dark] .ef-crm__t[aria-selected=true] .ef-crm__n{background:#241530;color:#fff}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]):not([data-theme=jour]) .ef-crm__t[aria-selected=true]{background:#FFD90F;color:#241530}:root:not([data-theme=light]):not([data-theme=jour]) .ef-crm__t[aria-selected=true] .ef-crm__n{background:#241530;color:#fff}}

@media(max-width:1080px){.ef-crm__kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Mobile et petite tablette : la colonne devient une barre d'onglets horizontale défilante */
@media(max-width:860px){
  .ef-crm{grid-template-columns:minmax(0,1fr);gap:16px}
  .ef-crm__side{position:static;max-height:none;overflow:visible;gap:12px;padding:14px 10px 10px;border-radius:20px}
  .ef-crm__id small{display:none}
  .ef-crm__av{width:40px;height:40px;font-size:1.15rem}
  .ef-crm__nav{flex-direction:row;align-items:stretch;gap:6px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;padding:2px 2px 8px;margin:0 -2px;scrollbar-width:thin}
  .ef-crm__tl{flex-direction:row;gap:6px;flex:none}
  .ef-crm__t{flex:none;width:auto;min-height:48px;padding:0 14px;gap:8px;white-space:nowrap;scroll-snap-align:center;border:1.5px solid var(--bord);background:var(--card)}
  .ef-crm__t[aria-selected=true]{border-color:#241530}
  .ef-crm__lg{display:none}
  .ef-crm__lc{display:inline}
  .ef-crm__l{flex:none}
  .ef-crm__out{flex:none;width:auto;min-height:48px;margin:0;padding:0 14px;gap:8px;white-space:nowrap;border:1.5px solid var(--bord);border-radius:14px;background:var(--card)}
  .ef-crm__row{grid-template-columns:40px minmax(0,1fr) auto}
  .ef-crm__row img{width:40px;height:40px}
}
@media(max-width:480px){
  .ef-crm__kpis{gap:10px}
  .ef-crm__k{padding:12px}
  .ef-crm__cls button{flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){.ef-crm__t,.ef-crm__menu a{transition:none}}
@media print{
  body.ef-imprime main .ef-crm__side,body.ef-imprime main .ef-crm__carte,body.ef-imprime main .ef-crm__cartes{display:none!important}
}


/* ===== Lot 4 : Mon espace unifié et Tarifs du Labo ===== */
:root{--ef-ej-rouge:#B3001B}
:root[data-theme=nuit],:root[data-theme=dark]{--ef-ej-rouge:#FF7A8A}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]):not([data-theme=jour]){--ef-ej-rouge:#FF7A8A}}
.ef-ej-rouge{color:var(--ef-ej-rouge)!important}
.ef-ej-act{grid-column:1/-1;display:flex;flex-wrap:wrap;justify-content:center;gap:4px 16px}
.ef-ej-act button.lien{min-height:44px}
.ef-err{margin:0;padding:10px 14px;border-radius:12px;background:#FFE3E6;color:#6B0010;font-weight:600}
.ef-err[hidden]{display:none}
.ef-in__g{margin:0;text-align:center;font-size:.92rem}
.ef-vide-m{display:grid;justify-items:start;gap:10px}
.ef-vide-m p{color:var(--fg-2)}
.ef-f--nu{border:0;padding:0;background:none}
.ef-dlg--l{width:min(720px,calc(100vw - 32px))}
.ef-choix{border:1.5px solid var(--bord);border-radius:16px;margin:0;padding:12px 14px;display:grid;gap:10px}
.ef-choix legend{font-weight:700;padding:0 6px}
.ef-choix legend small{font-weight:500;color:var(--fg-2)}
.ef-choix__o{display:flex;gap:12px;align-items:flex-start;padding:10px 12px;border:1.5px solid var(--bord);border-radius:14px;cursor:pointer;background:var(--paper)}
.ef-choix__o span{display:grid;gap:2px}
.ef-choix__o small{color:var(--fg-2);font-weight:500}
.ef-choix__o input{margin-top:4px;width:18px;height:18px;flex:none}
.ef-choix__o:has(input:checked){border-color:#241530;background:#FFF1A6;color:#241530}
.ef-choix__o:has(input:checked) small{color:#3c2d4b}
.ef-choix__o:has(input:focus-visible){outline:3px solid var(--cyan)}
.coche--s{font-size:.84rem}
.ef-classes{display:flex;flex-wrap:wrap;gap:8px}
.ef-classes .btn{min-height:44px}
.ef-lig{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1.3fr) 84px auto;gap:8px;align-items:center}
.ef-lig select,.ef-lig input{width:100%;min-width:0;padding:.7em .8em;border:1.5px solid var(--bord);border-radius:12px;background:var(--field,#fff);font:500 1rem/1.2 var(--text);color:var(--fg)}
@media(max-width:560px){.ef-lig{grid-template-columns:1fr 1fr}.ef-lig select:first-child{grid-column:1/-1}}
.ef-c textarea{width:100%;min-width:0;padding:.75em .9em;border:1.5px solid var(--bord);border-radius:12px;background:var(--field,#fff);font:500 1rem/1.3 var(--text);color:var(--fg);resize:vertical}
.ef-retour{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;margin:0 0 16px;padding:12px 16px;border-radius:16px;background:#FFF1A6;color:#241530}
.ef-vues{display:flex;gap:4px;flex-wrap:wrap;margin:0 0 16px;padding:4px;width:fit-content;max-width:100%;background:var(--card);border:1.5px solid var(--bord);border-radius:999px}
.ef-vues button{padding:.7em 1.2em;border:0;border-radius:999px;background:none;color:var(--fg);font:700 .95rem/1 var(--text);cursor:pointer;min-height:44px}
.ef-vues button[aria-pressed=true]{background:#241530;color:#fff}
:root[data-theme=nuit] .ef-vues button[aria-pressed=true],:root[data-theme=dark] .ef-vues button[aria-pressed=true]{background:#FFD90F;color:#241530}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]):not([data-theme=jour]) .ef-vues button[aria-pressed=true]{background:#FFD90F;color:#241530}}
.ef-vues button:focus-visible{outline:3px solid var(--cyan);outline-offset:2px}
.ef-duo{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:16px;align-items:start}
@media(max-width:900px){.ef-duo{grid-template-columns:1fr}}
.ef-afaire{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.ef-afaire li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 14px;padding:10px 14px;border-radius:14px;background:var(--paper)}
.ef-pas{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:6px;background:#aaa}
.ef-pas--vert{background:#3FB54C}.ef-pas--orange{background:#F6A23C}.ef-pas--jaune{background:#FFD90F;box-shadow:0 0 0 1px #241530}.ef-pas--gris{background:#a39aad}
.ef-crm__cls img.ef-pe{width:40px;height:40px;object-fit:contain;flex:none}
.ef-crm__cls button{justify-content:flex-start}
.ef-crm__cls__c{margin-left:auto}
.ef-chrono{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.ef-chrono li{display:grid;grid-template-columns:130px minmax(0,1fr);gap:10px;padding:8px 12px;border-radius:12px;background:var(--paper);font-size:.9rem}
.ef-chrono time{color:var(--fg-2);font-weight:700}
@media(max-width:520px){.ef-chrono li{grid-template-columns:1fr}}
.ef-badges--s{grid-template-columns:repeat(auto-fill,minmax(110px,1fr))}
.ef-code__l{margin:0 0 10px}
.ef-code__c--s{display:inline-block;font:400 1.3rem/1 var(--display);letter-spacing:.06em;padding:6px 10px;border:2px dashed #241530;border-radius:10px;background:#fff;color:#241530}
.ef-dev--f{cursor:default}
.ef-dev__i{display:grid;place-items:center;width:72px;aspect-ratio:16/9;border-radius:8px;background:var(--card);border:1.5px solid var(--bord)}
.ef-dev__i svg{width:24px;height:24px}
@media(max-width:520px){.ef-dev{grid-template-columns:56px minmax(0,1fr)}.ef-dev > :last-child{grid-column:1/-1}}
.ef-phrase{margin:14px 0 0;padding:12px 16px;border-radius:14px;background:var(--paper);font-weight:600}
.ef-bib__d{border:1.5px solid var(--bord);border-radius:16px;background:var(--paper);margin:0 0 10px;overflow:hidden}
.ef-bib__d > summary{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;padding:12px 16px;cursor:pointer;font-size:1rem;min-height:44px}
.ef-bib__d > summary small{color:var(--fg-2)}
.ef-bib__l{list-style:none;margin:0;padding:0 10px 10px;display:grid;gap:6px}
.ef-bib__l li{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;padding:8px 10px;border-radius:12px;background:var(--card)}
.ef-bib__l li.is-gris{opacity:.78;background:transparent;border:1.5px dashed var(--bord)}
.ef-bib__t{display:grid;gap:2px;flex:1 1 240px;min-width:0}
.ef-bib__t b{overflow-wrap:anywhere}
.ef-bib__t small{color:var(--fg-2)}
.ef-bib__b{display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:flex-end}
.ef-bib__h{margin:6px 16px 4px;font-size:.9rem;color:var(--fg-2)}
.ef-bib__c{display:grid;place-items:center;width:30px;height:30px}
.ef-bib__c input{width:18px;height:18px}
.ef-dem,.ef-dvs{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.ef-dem li,.ef-dv{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;padding:12px 14px;border-radius:14px;background:var(--paper)}
.ef-dem li > div,.ef-dv > div{display:grid;gap:2px;min-width:0;flex:1 1 260px}
.ef-dem small,.ef-dv small{color:var(--fg-2)}
.ef-etapes{list-style:none;margin:0 0 12px;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;counter-reset:e}
.ef-etapes li{counter-increment:e;display:flex;align-items:center;gap:8px;padding:10px 12px;border-radius:14px;background:var(--paper);border:1.5px dashed var(--bord);font-weight:700;font-size:.9rem;color:var(--fg-2)}
.ef-etapes li::before{content:counter(e);display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:rgba(36,21,48,.12);font-size:.78rem;flex:none}
.ef-etapes li.is-fait{border-style:solid;border-color:#241530;background:#CBF2CF;color:#1C4A2B}
.ef-etapes li.is-cur{background:#FFF1A6;color:#241530}
.ef-etapes li.is-fait::before{background:#3FB54C;color:#fff}
.ef-dev-f{align-items:center}
.ef-devs li{grid-template-columns:minmax(0,1fr) 90px auto auto auto}
.ef-devs .ef-devs__t{display:grid;line-height:1.2}
@media(max-width:560px){.ef-devs li{grid-template-columns:minmax(0,1fr) auto}.ef-devs .ef-bar{grid-column:1/-1;grid-row:2}}
.ef-fact li{grid-template-columns:minmax(0,1fr) auto auto}
@media(max-width:520px){.ef-fact li{grid-template-columns:1fr}}
/* Tarifs du Labo */
.ef-trois{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:8px}
.ef-trois__c{display:flex;flex-direction:column;gap:12px;padding:clamp(18px,2.4vw,26px);background:var(--card);border:1.5px solid var(--bord);border-radius:24px}
.ef-trois__c .titre{margin:0}
.ef-trois__c ul{list-style:none;margin:0;padding:0;display:grid;gap:8px;font-size:.92rem}
.ef-trois__c li{display:flex;gap:10px;align-items:flex-start;line-height:1.35}
.ef-trois__c li svg{flex:none;width:20px;height:20px;padding:3px;border-radius:50%;background:#6FDB7A;fill:none;stroke:#241530;stroke-width:3}
.ef-trois__a{margin:0;font-size:.9rem;color:var(--fg-2)}
.ef-trois__a b{color:var(--fg);margin-right:6px}
.ef-regle{margin:16px 0 0;padding:14px 18px;border-radius:18px;background:#FFF1A6;color:#241530;font-size:1.05rem;text-align:center}
@media(max-width:900px){.ef-trois{grid-template-columns:1fr}}
.ef-ong{display:flex;gap:4px;margin:clamp(24px,3.4vw,40px) 0 0;padding:4px;width:fit-content;max-width:100%;background:var(--card);border:1.5px solid var(--bord);border-radius:999px;overflow-x:auto;scrollbar-width:none}
.ef-ong button{flex:none;padding:.8em 1.4em;border:0;border-radius:999px;background:none;color:var(--fg);font:700 .98rem/1 var(--text);cursor:pointer;min-height:44px}
.ef-ong button[aria-selected=true]{background:#241530;color:#fff}
:root[data-theme=nuit] .ef-ong button[aria-selected=true],:root[data-theme=dark] .ef-ong button[aria-selected=true]{background:#FFD90F;color:#241530}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]):not([data-theme=jour]) .ef-ong button[aria-selected=true]{background:#FFD90F;color:#241530}}
.ef-ong button:focus-visible{outline:3px solid var(--cyan);outline-offset:2px}
.ef-bl[hidden]{display:none}
.ef-offres--2{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:900px){.ef-offres--2{grid-template-columns:1fr;max-width:520px;margin-inline:auto}}
.ef-college{display:grid;grid-template-columns:minmax(0,1.4fr) auto;gap:16px 28px;align-items:center;margin-top:clamp(28px,4vw,48px)}
.ef-college .titre{margin:6px 0}
@media(max-width:900px){.ef-college{grid-template-columns:1fr}}
@media(max-width:480px){.ef-in__o{display:grid;grid-template-columns:1fr 1fr;border-radius:20px;overflow:visible}.ef-in__o > *{padding:.7em .5em;white-space:normal;text-align:center;line-height:1.15;font-size:.9rem}.ef-h__r li{overflow:hidden}.ef-h__r b{font-size:.85rem}}

/* =====================================================================
   Une seule page pour se connecter ou créer un compte, puis l'espace de chacun (23/11/2026)
   Jaune pâle : --ef-clair (le texte reste foncé, même en thème nuit).
   ===================================================================== */
:root{--ef-clair:#FFF3B0;--ef-creme:#FFF8E6;--ef-ciel:#E6F8FD;--ef-viol:#DCCBFA}
.ef-page-espace .pouce{display:none!important}
.ef-page-espace .assist{bottom:16px}
.ef-page-espace.ef-saisie .assist,.ef-saisie .assist{display:none!important}
@media(max-width:1179px){.ef-page-espace .assist{bottom:14px}.ef-page-espace.ef-espace-ouvert .assist{bottom:calc(82px + env(safe-area-inset-bottom))}}
/* Les personnages sont ici le choix proposé (carte de statut, pseudo, profil) : ils restent visibles sur cette page. */
body.ef-page-espace.ef-page-espace.ef-page-espace main img[src*="/wp-content/themes/einstein-family/assets/img/famille/"]:not([src*="/logo"]){display:block!important}

.ef-h--co{padding-top:clamp(8px,1.6vw,18px);background:radial-gradient(1200px 360px at 50% -12%,rgba(255,217,15,.2),transparent 62%)}
.ef-co__fil .fil{margin:0 0 4px;font-size:.8rem}
.ef-co__t{display:grid;justify-items:center;gap:6px;margin:4px 0 clamp(16px,2.4vw,28px);text-align:center}
.ef-co__t .sur{margin:0}
.ef-co__t .sur::after{content:"";width:22px;height:1.5px;background:currentColor;flex:none}
.ef-co__t .titre{margin:0}
.ef-co__t .lead{margin:0}
.ef-h--co.est-connecte .ef-co__fil{display:none}
.ef-h--co.est-connecte .ef-co__t{position:absolute;width:1px;height:1px;margin:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media(max-width:760px){.ef-co__t .titre{font-size:clamp(1.9rem,8.6vw,2.4rem)}.ef-co__t .lead{font-size:.95rem}}

/* ----- Les six cartes ----- */
.ef-in2{display:grid;gap:18px}
.ef-sts{border:0;margin:0;padding:0;min-width:0}
.ef-sts__l{padding:0;margin:0 0 12px;font:400 1.25rem/1.2 var(--display)}
.ef-sts__g{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}
.ef-st{position:relative;display:grid;grid-template-rows:auto auto 1fr;justify-items:center;align-content:start;gap:6px;padding:14px 10px 16px;background:var(--card);border:1.5px solid var(--bord);border-radius:18px;box-shadow:0 12px 30px -24px rgba(36,21,48,.45);text-align:center;cursor:pointer;transition:transform .15s var(--ease,ease),box-shadow .15s}
.ef-st:hover{transform:translateY(-2px);box-shadow:0 16px 30px -20px rgba(36,21,48,.5)}
.ef-st__r{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.ef-st:focus-within{outline:3px solid var(--cyan);outline-offset:3px}
.ef-st.is-on{background:var(--ef-clair);border:2px solid #241530;color:#241530}
.ef-st.is-on .ef-st__s{color:#463a55}
.ef-st__im{position:relative;display:block;width:100%;height:124px;overflow:hidden}
.ef-st__im img:first-child{width:100%;height:100%;object-fit:cover;object-position:50% 6%}
.ef-st__im--pic img:first-child{object-fit:contain;object-position:center}
.ef-st__im2{position:absolute!important;right:4%;bottom:0;width:42%!important;height:auto!important;object-fit:contain!important}
.ef-st__im--pic .ef-st__im2{right:0;bottom:6%;width:46%!important}
.ef-st__im--pic:has(.ef-st__im2) img:first-child{width:62%;height:100%;margin-left:0;object-position:left center}
.ef-st__t{font:400 1.02rem/1.12 var(--display);letter-spacing:-.005em;overflow-wrap:anywhere}
.ef-st__s{font-size:.82rem;line-height:1.25;color:var(--fg-2)}
.ef-st__ok{position:absolute;top:8px;right:8px;display:none;place-items:center;width:28px;height:28px;border-radius:50%;background:#FFD90F;border:2px solid #241530}
.ef-st.is-on .ef-st__ok{display:grid}
.ef-st__ok svg{width:15px;height:15px;fill:none;stroke:#241530;stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round}
.ef-in2__aide{margin:0;text-align:center;color:var(--fg-2)}
.ef-pli{display:none}
@media(max-width:1180px){.ef-sts__g{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){
  .ef-sts__g{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .ef-st{grid-template-columns:56px minmax(0,1fr);grid-template-rows:auto;align-items:center;justify-items:start;gap:0 10px;min-height:84px;padding:10px 12px;text-align:left}
  .ef-st__im{width:56px;height:56px;border-radius:50%;background:var(--ef-viol)}
  .ef-st:nth-child(2) .ef-st__im{background:var(--ef-clair)}.ef-st:nth-child(3) .ef-st__im{background:#CBF2CF}.ef-st:nth-child(4) .ef-st__im{background:#BEEEFB}.ef-st:nth-child(5) .ef-st__im{background:var(--ef-clair)}.ef-st:nth-child(6) .ef-st__im{background:#FFD1E6}
  .ef-st__im img:first-child{object-position:50% 4%}
  .ef-st__im2{display:none}
  .ef-st__im--pic:has(.ef-st__im2) img:first-child{width:100%;margin:0;object-position:center}
  .ef-st__t{font-size:.92rem}
  .ef-st__s{display:none}
  .ef-st__ok{top:6px;right:6px;width:22px;height:22px}
  .ef-st__ok svg{width:12px;height:12px}
  .ef-in2--choisi:not(.ef-in2--ouvre) .ef-sts{display:none}
  .ef-in2--choisi:not(.ef-in2--ouvre) .ef-pli{display:flex}
  .ef-in2--ouvre .ef-pli{display:none}
  .ef-pli{align-items:center;gap:10px;margin:0;padding:6px 14px 6px 8px;background:var(--ef-clair);border:1.5px solid var(--bord);border-radius:999px;color:#241530}
  .ef-pli__i{flex:none}
  .ef-st__im--s{width:44px;height:44px;border-radius:50%;background:#fff}
  .ef-pli__t{flex:1;min-width:0;font:400 1rem/1.15 var(--display)}
  .ef-pli__b{flex:none;min-height:44px;padding:0 4px 0 12px;border:0;border-left:1.5px solid rgba(36,21,48,.25);background:none;color:#241530;font:700 .95rem var(--text);text-decoration:underline;cursor:pointer}
}
@media(min-width:761px){.ef-st__im--s{display:none}}

/* ----- Le panneau ----- */
.ef-pn{background:var(--card);border:1.5px solid var(--bord);border-radius:22px;padding:clamp(16px,2.4vw,28px);box-shadow:0 12px 30px -24px rgba(36,21,48,.45);scroll-margin-top:92px}
.ef-pn[hidden]{display:none}
.ef-pn__g{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(18px,3vw,40px);align-items:start}
.ef-pn__f{min-width:0}
.ef-pn__rev{margin:0 0 12px;color:var(--fg-2);font-size:.95rem}
.ef-ong2{display:flex;gap:8px;margin:0 0 16px}
.ef-ong2__b{min-height:44px;padding:0 1.4em;border:1.5px solid var(--bord);border-radius:999px;background:var(--card);color:var(--fg);font:800 .95rem/1 var(--text);cursor:pointer;white-space:nowrap}
.ef-ong2__b[aria-selected=true]{background:#241530;border-color:#241530;color:#fff}
.ef-ong2__b:focus-visible,.ef-lnav__t:focus-visible,.ef-chips button:focus-visible,.ef-pil:focus-visible,.ef-ps__b:focus-visible,.ef-pg__b:focus-visible,.ef-pli__b:focus-visible{outline:3px solid var(--cyan);outline-offset:2px}
:root[data-theme=nuit] .ef-ong2__b[aria-selected=true],:root[data-theme=dark] .ef-ong2__b[aria-selected=true],:root[data-theme=nuit] .ef-lnav__t[aria-selected=true],:root[data-theme=dark] .ef-lnav__t[aria-selected=true],:root[data-theme=nuit] .ef-chips button[aria-pressed=true],:root[data-theme=dark] .ef-chips button[aria-pressed=true]{background:#FFD90F;border-color:#FFD90F;color:#241530}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]):not([data-theme=jour]) .ef-ong2__b[aria-selected=true],:root:not([data-theme=light]):not([data-theme=jour]) .ef-lnav__t[aria-selected=true],:root:not([data-theme=light]):not([data-theme=jour]) .ef-chips button[aria-pressed=true]{background:#FFD90F;border-color:#FFD90F;color:#241530}}
.ef-f--pn{border:0;padding:0;background:none;gap:14px}
.ef-pn__sur{margin:0!important}
.ef-pn__t{margin:0}
.ef-pn__b{width:100%;justify-content:center}
.ef-pn__b2{justify-self:stretch;justify-content:center}
.ef-pn__l{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 18px;margin:0;font-size:.95rem}
.ef-pn__l--c{justify-content:center}
.ef-pn__l .lien,.ef-pn__l a{min-height:44px;display:inline-flex;align-items:center}
.ef-pn__n{margin:0;color:var(--fg-2);font-size:.9rem;text-align:center}
.ef-pn__bt{display:grid;gap:10px}
.ef-pn__bt .btn{justify-content:center}
.ef-c label:not(.coche){font-weight:700}
.ef-c--k{gap:4px}
.ef-c--plus{gap:6px}
.ef-c--plus > .lien{justify-self:start;min-height:44px;display:inline-flex;align-items:center;font-weight:600;background:none;border:0;cursor:pointer;padding:0;color:inherit}
.ef-c input[aria-invalid],.ef-c select[aria-invalid]{border-color:#B3001B;outline:2px solid rgba(179,0,27,.25)}
.ef-c .ef-err{margin-top:2px}
.ef-mdp{position:relative}
.ef-mdp input{padding-right:6.4em}
.ef-mdp__b{position:absolute;right:6px;top:50%;translate:0 -50%;min-height:36px;padding:0 .95em;border:1.5px solid var(--bord);border-radius:999px;background:var(--card);color:var(--fg);font:800 .82rem/1 var(--text);cursor:pointer}
.ef-ok{margin:0;padding:10px 14px;border-radius:12px;background:#CBF2CF;color:#173d20;font-weight:700}
.ef-ok[hidden]{display:none}
.ef-dej{display:grid;gap:8px;justify-items:start;padding:12px 14px;border-radius:14px;background:var(--ef-ciel);color:#241530}
.ef-dej[hidden]{display:none}
.ef-dej p{margin:0;font-weight:600}
.ef-civ{border:0;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.ef-civ legend{width:100%;padding:0;margin:0 0 6px;font-weight:700;font-size:.92rem}
.ef-civ label{position:relative}
.ef-civ input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.ef-civ span{display:inline-flex;align-items:center;justify-content:center;min-width:72px;min-height:44px;padding:0 1.2em;border:1.5px solid var(--bord);border-radius:999px;background:var(--card);font:800 .95rem var(--text)}
.ef-civ input:checked + span{background:#241530;border-color:#241530;color:#fff}
.ef-civ input:focus-visible + span{outline:3px solid var(--cyan);outline-offset:2px}
.ef-pn__a{padding:clamp(18px,2.6vw,32px);border-radius:18px;background:var(--ef-creme);color:#241530}
.ef-pn__at{margin:0 0 14px;font:400 clamp(1.5rem,2.3vw,2rem)/1.1 var(--display)}
.ef-pn__al{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.ef-pn__al li{display:flex;gap:12px;align-items:center;font-size:1.05rem}
.ef-pn__al svg{flex:none;width:22px;height:22px;fill:none;stroke:#2f9a3d;stroke-width:3.4;stroke-linecap:round;stroke-linejoin:round}
.ef-pn__an{margin:22px 0 0;color:#463a55;font-size:.95rem}
@media(max-width:900px){.ef-pn__g{grid-template-columns:minmax(0,1fr)}.ef-pn__a{display:none}}
@media(max-width:560px){.ef-ong2{display:grid;grid-template-columns:1fr 1fr}.ef-ong2__b{padding:0 .5em;white-space:normal;line-height:1.1;font-size:.9rem}}
@media(max-width:400px){.ef-ong2{gap:6px}.ef-ong2__b{padding:0 .3em;white-space:nowrap;font-size:.8rem;letter-spacing:-.01em}}

/* ----- Parcours de l'enfant ----- */
.ef-f--enf{max-width:560px}
.ef-f--enf .titre--l{font-size:clamp(1.9rem,6vw,2.6rem)}
.ef-f--enf .ef-pn__t::after,.ef-spark::after{content:"";display:inline-block;width:.62em;height:.62em;margin-left:.3em;vertical-align:.5em;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD90F' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M12 3v6M4 8l5 3M20 6l-5 4'/%3E%3C/svg%3E") center/contain no-repeat}
.ef-code-in{width:100%;min-width:0;padding:.45em .3em;border:2px solid #A794DD;border-radius:16px;background:var(--field,#fff);color:#241530;font:400 clamp(1.7rem,7.4vw,2.5rem)/1.2 var(--display);letter-spacing:.12em;text-align:center;text-transform:uppercase}
.ef-code-in::placeholder{color:#a79fb2;letter-spacing:.06em;text-transform:none}
.ef-code-in:focus{outline:3px solid var(--cyan);outline-offset:2px}
.ef-pn__sans{display:grid;gap:10px;justify-items:center;margin-top:4px;padding-top:16px;border-top:1.5px solid var(--bord);text-align:center}
.ef-pn__sans p{margin:0}
.ef-pn__th{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.ef-tag-viol{background:var(--ef-viol)!important;color:#4A1F8F!important;font-weight:800}
.ef-ps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ef-ps__b{display:flex;align-items:center;gap:10px;width:100%;min-height:68px;padding:6px 12px 6px 8px;border:1.5px solid var(--bord);border-radius:16px;background:var(--card);color:var(--fg);font:800 1.05rem/1.1 var(--text);text-align:left;cursor:pointer;overflow:hidden}
.ef-ps__b:hover{background:var(--ef-clair);color:#241530}
.ef-ps__b img{flex:none;width:52px;height:52px;object-fit:cover;object-position:50% 6%;border-radius:12px}
.ef-ps__b span{min-width:0;overflow-wrap:anywhere}
.ef-bj{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;align-items:center}
.ef-bj img{width:clamp(80px,22vw,112px);height:clamp(80px,22vw,112px);object-fit:cover;object-position:50% 6%}
.ef-bj p{margin:4px 0 0}
.ef-emp{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ef-emp__c{display:grid;place-items:center;min-height:84px;border:2px solid #CFC3E8;border-radius:16px;background:var(--field,#fff);color:#a79fb2;font:400 2.2rem/1 var(--display)}
.ef-emp__c.is-plein{border-color:#241530}
.ef-emp__c .ef-pic{width:56px;height:56px}
.ef-pg{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ef-pg__b{display:grid;justify-items:center;align-content:center;gap:2px;width:100%;min-height:92px;padding:8px 4px;border:1.5px solid var(--bord);border-radius:16px;background:var(--card);color:var(--fg);font:800 .95rem/1.1 var(--text);cursor:pointer}
.ef-pg__b .ef-pic{width:46px;height:46px}
.ef-pg__b[aria-pressed=true]{border:2px solid #241530;background:var(--ef-clair);color:#241530}
.ef-pg__b:disabled{opacity:.55;cursor:not-allowed}
.ef-trem{animation:ef-trem .4s}
@keyframes ef-trem{20%{transform:translateX(-8px)}40%{transform:translateX(8px)}60%{transform:translateX(-5px)}80%{transform:translateX(5px)}}
@media(prefers-reduced-motion:reduce){.ef-trem{animation:none}}
.ef-pics{display:inline-flex;gap:6px;vertical-align:middle}
.ef-pics i{display:inline-grid;width:30px;height:30px;font-style:normal}
.ef-pics .ef-pic{width:100%;height:100%}
@media(min-width:900px){.ef-ps{grid-template-columns:repeat(3,minmax(0,1fr))}.ef-f--enf{max-width:none}}

/* ----- Feuille de niveau ----- */
.ef-feuille{padding:0;border:0;border-radius:22px;width:min(560px,calc(100vw - 24px));max-height:92vh;overflow:auto;background:var(--card);color:var(--fg);box-shadow:0 30px 80px -20px rgba(36,21,48,.6)}
.ef-feuille::backdrop{background:rgba(36,21,48,.58)}
.ef-fn{display:grid;gap:14px;padding:clamp(18px,3vw,28px)}
.ef-fn__p{display:none;justify-self:center;width:46px;height:5px;border-radius:9px;background:#cfc7d8}
.ef-fn__t{margin:0}
.ef-fn__t::after{content:"";display:inline-block;width:.6em;height:.6em;margin-left:.3em;vertical-align:.5em;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD90F' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M12 3v6M4 8l5 3M20 6l-5 4'/%3E%3C/svg%3E") center/contain no-repeat}
.ef-fn__a{margin:0;color:var(--fg-2);font-size:.95rem}
.ef-fn__niv{border:0;margin:0;padding:0;display:grid;gap:10px;min-width:0}
.ef-fn__gt{margin:0 0 6px;font:500 .72rem/1.3 var(--mono);letter-spacing:.12em;text-transform:uppercase;color:var(--fg-2)}
.ef-fn__pl{display:flex;flex-wrap:wrap;gap:8px}
.ef-pl{position:relative}
.ef-pl input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.ef-pl > span{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 1.1em;border:1.5px solid var(--bord);border-radius:999px;background:var(--card);font:800 .95rem/1 var(--text)}
.ef-pl input:checked + span{background:#FFD90F;border-color:#241530;color:#241530}
.ef-pl input:focus-visible + span{outline:3px solid var(--cyan);outline-offset:2px}
.ef-pl__c{display:inline-grid;font-style:normal}
.ef-pl__c svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:3.4;stroke-linecap:round;stroke-linejoin:round}
.ef-fn__ap{display:flex;gap:10px;align-items:flex-start;margin:0;padding:12px 14px;border-radius:14px;background:var(--ef-ciel);color:#241530;font-weight:700}
.ef-fn__ap[hidden]{display:none}
.ef-fn__i{flex:none;display:grid;width:26px}
.ef-fn__i svg{width:26px;height:26px;fill:none;stroke:#0A76B0;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.ef-fn__cl{margin:0;color:var(--fg-2);font-size:.92rem}
.ef-fn__ok{width:100%;justify-content:center}
.ef-fn__x{justify-self:center;min-height:44px;background:none;border:0;cursor:pointer;color:inherit;text-decoration:underline;font:700 .95rem var(--text)}
@media(max-width:700px){
  .ef-feuille{position:fixed;inset:auto 0 0 0;margin:0;width:100%;max-width:100%;border-radius:22px 22px 0 0;max-height:94vh}
  .ef-fn__p{display:block}
}

/* ----- Barre d'identité, menu à gauche (ordinateur) ou barre du bas (téléphone) ----- */
.ef-idb{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:0 0 16px;padding:14px 22px;background:var(--ef-clair);border:1.5px solid var(--bord);border-radius:22px;color:#241530}
.ef-idb .sur{color:#463a55!important;margin:0}
.ef-idb .ef-crm__nom{color:#241530;font-size:1.5rem}
.ef-idb__id{display:grid;gap:2px;min-width:0}
.ef-idb__v{margin:0 0 0 auto!important;background:#fff}
.ef-idb__v button[aria-pressed=false]{color:#241530}
.ef-idb__out{display:none;align-items:center;gap:8px;margin-left:auto;min-height:44px;padding:0 14px;border:1.5px solid var(--bord);border-radius:999px;background:#fff;color:#241530;font:700 .9rem var(--text);cursor:pointer}
.ef-idb__out svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.ef-idb__v + .ef-idb__out{margin-left:0}
.ef-crm__side{padding-top:12px}
.ef-propose{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px 16px;margin:0 0 14px;padding:12px 16px;background:var(--ef-ciel);border:1.5px solid var(--bord);border-radius:16px;color:#241530}
.ef-propose span:first-child{font-weight:700}
.ef-plus{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.ef-plus a{display:flex;align-items:center;gap:14px;min-height:60px;padding:12px 16px;border:1.5px solid var(--bord);border-radius:16px;background:var(--card);color:inherit;text-decoration:none}
.ef-plus a:hover{background:var(--ef-clair);color:#241530}
.ef-plus a:focus-visible{outline:3px solid var(--cyan);outline-offset:2px}
.ef-plus svg{flex:none;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.ef-plus__t{display:grid;gap:2px;flex:1;min-width:0}
.ef-plus__t small{color:var(--fg-2)}
.ef-plus a:hover .ef-plus__t small{color:#463a55}
.ef-plus__o{margin:18px 0 0}
.ef-plus__o .btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9}
.ef-plus__r{margin:0 0 10px}
.ef-plus__r a{display:inline-flex;align-items:center;gap:8px;min-height:44px}
.ef-plus__f{width:16px;height:16px;transform:scaleX(-1);fill:none;stroke:currentColor;stroke-width:2.4}
@media(max-width:860px){
  .ef-idb{padding:12px 14px;gap:10px;border-radius:18px}
  .ef-idb .ef-crm__nom{font-size:1.25rem}
  .ef-idb__v{order:3;margin:0!important;width:100%}
  .ef-idb__v button{flex:1}
  .ef-idb__out{display:inline-flex}
  .ef-crm__side{position:fixed;left:0;right:0;top:auto;bottom:0;height:auto;z-index:65;max-height:none;overflow:visible;gap:0;padding:4px 6px calc(4px + env(safe-area-inset-bottom));border-radius:18px 18px 0 0;border-width:1.5px 0 0;box-shadow:0 -10px 30px -18px rgba(36,21,48,.5)}
  .ef-crm__nav{flex-direction:row;overflow:visible;padding:0;margin:0;gap:0}
  .ef-crm__tl{flex-direction:row;flex:1;width:100%;gap:2px}
  .ef-crm__t{flex:1 1 0;min-width:0;flex-direction:column;justify-content:center;gap:2px;min-height:58px;padding:6px 2px;border:0;border-radius:12px;background:none;font-size:.7rem;line-height:1.1;text-align:center;white-space:normal;position:relative}
  .ef-crm__t[aria-selected=true]{border:0}
  .ef-crm__t svg{width:22px;height:22px}
  .ef-crm__l{flex:none}
  .ef-crm__lg{display:none}
  .ef-crm__lc{display:block}
  .ef-crm__n{position:absolute;top:2px;right:18%;height:18px;min-width:18px;font:800 .66rem/18px var(--text)}
  .ef-crm__out{display:none}
  body.ef-espace-ouvert main{padding-bottom:88px}
  body.ef-espace-ouvert .pied{padding-bottom:88px}
}

/* ----- Mon labo (enfant) ----- */
.ef-labo{display:grid;gap:16px}
.ef-lid{display:grid;grid-template-columns:auto minmax(120px,1fr) minmax(220px,1.35fr) auto auto;gap:10px 26px;align-items:center;padding:16px 24px;background:var(--ef-clair);border:1.5px solid var(--bord);border-radius:22px;color:#241530}
.ef-lid .sur{color:#463a55!important;margin:0 0 2px}
.ef-lid__a{width:92px;height:92px;object-fit:cover;object-position:50% 6%;background:#fff;border:2px solid #241530;border-radius:50%}
.ef-lid__t .titre{margin:0}
.ef-lid__t .hand{font-family:var(--hand);font-weight:800;color:#8A5A33}
.ef-lid__x{display:grid;gap:6px}
.ef-lid__x small{color:#463a55}
.ef-lid .ef-xp{display:flex;align-items:baseline;gap:6px}
.ef-lid .ef-xp b{font:400 2.1rem/1 var(--display)}
.ef-lid__k{display:flex;gap:8px;list-style:none;margin:0;padding:0}
.ef-lid__k li{display:grid;justify-items:center;min-width:66px;padding:6px 8px;border-radius:14px;background:#fff;text-align:center}
.ef-lid__k b{display:inline-flex;align-items:center;gap:3px;font:400 1.15rem/1.1 var(--display)}
.ef-lid__k span{font-size:.7rem;font-weight:700;color:#463a55;line-height:1.1}
.ef-lid__k svg{width:16px;height:16px;fill:#F6653C;stroke:none}
.ef-lid__n{display:grid;gap:2px;justify-items:end}
.ef-lid .lien{color:#241530;background:none;border:0;cursor:pointer;min-height:32px}
.ef-pil{display:inline-flex;align-items:center;gap:8px;min-height:46px;padding:0 1em 0 1.2em;border:2px solid #241530;border-radius:999px;background:#fff;color:#241530;font:800 .95rem/1 var(--text);cursor:pointer}
.ef-pil svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.ef-j__niv{min-height:40px;padding:0 1em;border:1.5px solid #241530;border-radius:999px;background:#fff;color:#241530;font:800 .85rem var(--text);cursor:pointer}
.ef-lnav__l{display:flex;gap:8px;flex-wrap:wrap}
.ef-lnav__t{display:inline-flex;align-items:center;gap:8px;min-height:46px;padding:0 1.2em;border:1.5px solid var(--bord);border-radius:999px;background:var(--card);color:var(--fg);font:800 .95rem/1 var(--text);cursor:pointer;white-space:nowrap}
.ef-lnav__t svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.ef-lnav__t[aria-selected=true]{background:#241530;border-color:#241530;color:#fff}
.ef-labo .ef-crm__stack{display:grid;gap:16px;min-width:0}
.ef-lab{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:22px;align-items:start}
.ef-lab__m{display:grid;gap:14px;min-width:0}
.ef-lab__m > .titre{margin:0}
.ef-lab__c{display:grid;gap:14px;min-width:0}
.ef-jls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.ef-jl{display:grid;gap:8px;align-content:start;padding:10px;background:var(--card);border:1.5px solid var(--bord);border-radius:18px}
.ef-jl__i{position:relative;display:block;aspect-ratio:3/2;overflow:hidden;border-radius:12px}
.ef-jl__i img{width:100%;height:100%;object-fit:cover}
.ef-jl__i em{position:absolute;left:8px;top:8px;display:inline-flex;align-items:center;gap:4px;padding:.25em .7em;border-radius:999px;font-style:normal;font-weight:800;font-size:.72rem;line-height:1.2}
.ef-jl__i em.fr{background:#CBF2CF;color:#173d20}
.ef-jl__i em.lk{background:#241530;color:#fff}
.ef-jl__i em.ok{left:auto;right:8px;background:#FFD90F;color:#241530}
.ef-jl__i em svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.2}
.ef-jl.is-lock .ef-jl__i img{filter:saturate(.7) brightness(.85)}
.ef-jl__n{margin:0;font:800 .98rem/1.2 var(--text)}
.ef-jl__n a{color:inherit;text-decoration:none}
.ef-jl .btn{justify-self:start}
.ef-autres summary{display:flex;align-items:center;justify-content:center;min-height:44px;margin:4px 0 12px;font-weight:800;text-decoration:underline;cursor:pointer}
.ef-autres summary:focus-visible{outline:3px solid var(--cyan);outline-offset:2px}
.ef-rv{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;margin:0;padding:12px 16px;background:var(--ef-ciel);border-radius:16px;color:#241530}
.ef-cal{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;align-items:center}
.ef-cal img{width:84px;height:auto}
.ef-cal--l img{width:130px}
.ef-cal .titre{margin:0 0 4px}
.ef-med{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0}
.ef-med li{width:26px;height:26px;border-radius:50%;background:#e6e1ea;border:1.5px solid #cdc4d6}
.ef-med li.ok{background:#FFD90F;border-color:#241530}
.ef-def{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.ef-def li{display:grid;grid-template-columns:56px minmax(0,1fr);gap:12px;align-items:center}
.ef-def img{width:56px;height:56px;border-radius:12px;object-fit:cover}
.ef-def__t{display:grid;gap:4px}
@media(max-width:1080px){.ef-lab{grid-template-columns:minmax(0,1fr)}.ef-lid{grid-template-columns:auto minmax(120px,1fr) minmax(200px,1.2fr)}.ef-lid__k{grid-column:1/3}.ef-lid__n{grid-column:3;justify-items:end}}
@media(max-width:700px){
  .ef-lid{grid-template-columns:auto minmax(0,1fr);gap:10px 14px;padding:14px}
  .ef-lid__a{width:68px;height:68px}
  .ef-lid__x,.ef-lid__k,.ef-lid__n{grid-column:1/-1}
  .ef-lid__n{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;justify-content:space-between}
  .ef-lid__n .lien:first-child{order:3}
  .ef-lnav__l{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;padding-bottom:6px;margin:0 calc(-1 * var(--gut));padding-inline:var(--gut);scroll-snap-type:x proximity}
  .ef-lnav__t{scroll-snap-align:start}
  .ef-jls{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .ef-jl{padding:8px}
  .ef-jl__n{font-size:.88rem}
}

/* ----- Parent : Ma famille ----- */
.ef-acc{display:grid;gap:18px;min-width:0}
.ef-tt--e{margin:6px 0 0}
.ef-ecs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.ef-ec{display:grid;gap:10px;align-content:start;padding:18px;background:var(--card);border:1.5px solid var(--bord);border-radius:20px;box-shadow:0 12px 30px -24px rgba(36,21,48,.45);min-width:0}
.ef-ec__h{display:flex;align-items:center;gap:12px}
.ef-ec__h .titre{margin:0 0 4px}
.ef-ec__a{flex:none;width:64px;height:64px;border-radius:50%;object-fit:cover;object-position:50% 6%;background:var(--ef-clair);border:1.5px solid var(--bord)}
.ef-ec__n{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin:0}
.ef-ec__k{margin:0;color:var(--fg-2);font-size:.92rem}
.ef-ec__b{display:flex;flex-wrap:wrap;gap:8px}
.ef-ec__b .btn svg{width:16px;height:16px}
.ef-tri{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.ef-liste{margin:0;padding-left:1.1em;display:grid;gap:4px}
.ef-fam{margin:6px 0;padding:.3em .5em;border-radius:12px;background:var(--ef-clair);color:#241530;font:400 clamp(1.5rem,2.6vw,2rem)/1.1 var(--display);letter-spacing:.06em;text-align:center}
.ef-code--fam{background:linear-gradient(135deg,var(--ef-clair),var(--card) 75%)}
.ef-essai{display:grid;grid-template-columns:1fr 1fr;gap:12px;text-align:left}
.ef-essai > div{display:grid;gap:8px;align-content:start;justify-items:start;padding:14px;border:1.5px solid var(--bord);border-radius:14px;background:var(--card)}
@media(max-width:1080px){.ef-tri{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){.ef-ecs,.ef-essai{grid-template-columns:minmax(0,1fr)}}

/* ----- Classes et groupes ----- */
.ef-cv{display:grid;gap:16px;min-width:0}
.ef-chips{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.ef-chips button{min-height:44px;padding:0 1.2em;border:1.5px solid var(--bord);border-radius:999px;background:var(--card);color:var(--fg);font:800 .92rem var(--text);cursor:pointer}
.ef-chips button[aria-pressed=true]{background:#241530;border-color:#241530;color:#fff}
.ef-ch{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,auto);gap:16px 28px;align-items:center}
.ef-ch__t .titre{margin:0 0 6px}
.ef-ch__n{display:inline-flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.ef-pil-s{display:inline-block;padding:.3em .95em;border:1.5px solid var(--bord);border-radius:999px;background:var(--ef-viol);color:#4A1F8F;font-weight:800;font-size:.85rem}
.ef-code--b{display:grid;gap:8px;justify-items:start;padding:12px 16px;border-radius:16px;background:var(--ef-clair);color:#241530}
.ef-code__l2{font-size:.82rem;font-weight:800}
.ef-code--b .ef-code__c{font-size:clamp(1.6rem,3vw,2.2rem);padding:6px 14px}
.ef-kp{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.ef-kp li{display:flex;align-items:center;gap:12px;padding:12px 14px;background:var(--card);border:1.5px solid var(--bord);border-radius:16px;min-width:0}
.ef-kp svg{flex:none;width:26px;height:26px;fill:none;stroke:#0A76B0;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.ef-kp span{display:grid;line-height:1.15;font-size:.82rem;color:var(--fg-2);min-width:0}
.ef-kp b{font:400 1.45rem/1.1 var(--display);color:var(--fg)}
.ef-kp .ef-kp__t{font:800 .95rem/1.2 var(--text)}
.ef-cg{display:grid;grid-template-columns:minmax(0,2.1fr) minmax(0,1fr);gap:16px;align-items:start}
.ef-cg__d{display:grid;gap:16px;min-width:0}
.ef-cg__t{min-width:0}
.ef-cg__b{display:grid;gap:8px}
.ef-cg__b .btn{justify-content:center;text-align:center}
.ef-lic{margin:0 0 12px;font-size:1.1rem}
.ef-dots{display:inline-flex;gap:2px}
.ef-dots i{width:7px;height:7px;border-radius:50%;background:#dcd5e3}
.ef-dots i.on{background:#3FB54C}
.ef-tab .ef-hm{background:none;border-left:0;text-align:center}
.ef-tab .ef-tab__j span{display:block;margin-top:2px;font-size:.7rem;font-weight:700;text-align:center;white-space:normal}
.ef-tab .ef-tab__j img{margin-inline:auto;width:34px;aspect-ratio:1;border-radius:50%}
.ef-tab table{min-width:640px}
.ef-tab__tg{display:block;width:fit-content;margin:2px 0 0 36px;font-size:.66rem;font-weight:700}
.ef-tab tbody th{flex-wrap:wrap}
@media(max-width:1180px){.ef-kp{grid-template-columns:repeat(2,minmax(0,1fr))}.ef-cg{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){.ef-ch{grid-template-columns:minmax(0,1fr)}.ef-kp li{padding:10px}.ef-kp b{font-size:1.2rem}}
@media print{body.ef-imprime .ef-cartes-print div.ef-hors{display:none!important}body.ef-imprime .ef-cartes-print .ef-pics i{width:14mm;height:14mm}}
.ef-cartes-print .ef-pics{display:inline-flex}
/* Corrections de la première passe */
.ef-c .coche input[type=checkbox]{width:24px;height:24px;padding:0;margin-top:1px}
.ef-c--k .coche{min-height:44px;align-items:center}
.ef-co__t .titre{font-size:clamp(2rem,3.6vw,3.2rem)}
.ef-st__t{overflow-wrap:break-word;hyphens:none}
@media(max-width:760px){
  .ef-st{align-content:center;gap:0 8px;padding:8px 8px}
  .ef-st{grid-template-columns:46px minmax(0,1fr)}
  .ef-st__im{width:46px;height:46px}
  .ef-st__t{font-size:.8rem;line-height:1.12}
}
.ef-pn__b svg,.ef-fn__ok svg,.ef-ec__b .btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}

.ef-tab table{min-width:0}
.ef-tab .ef-hm,.ef-tab .ef-tab__j{padding:6px 3px}
.ef-tab th[scope=col]:first-child,.ef-tab tbody th{padding-left:8px}
.ef-labo{grid-template-columns:minmax(0,1fr)}.ef-labo > *{min-width:0}
.ef-ps__b{font-size:1rem;gap:8px;padding:6px 8px}
.ef-ps__b img{width:44px;height:44px}
.ef-bj .titre--l{font-size:clamp(1.6rem,6.4vw,2.2rem)}
.ef-bj .ef-pn__t::after{display:none}
@media(max-width:1179px){body.ef-page-espace .assist{width:46px!important;bottom:12px!important}body.ef-page-espace .assist .elium{--w:46px}body.ef-page-espace.ef-espace-ouvert .assist{bottom:calc(82px + env(safe-area-inset-bottom))!important}body.ef-page-espace:has(.ef-f--enf) .assist{display:none!important}}
.ef-fn__t{font-size:clamp(1.5rem,4.6vw,2rem)}
.ef-ann__i{border-radius:18px!important;max-width:min(92vw,440px);text-align:center;line-height:1.35}

/* Connexion à 1024 px et plus : entête resserré pour que les cartes et le formulaire tiennent dans un écran. */
@media(min-width:1024px){
  .ef-h--co:not(.est-connecte) .ef-co__fil{display:none}
  .ef-co__t{gap:0;margin:6px 0 8px}
  .ef-co__t .titre{font-size:clamp(1.9rem,2.9vw,2.5rem)}
  .ef-co__t .lead{font-size:1rem}
  .ef-in2{gap:12px}
  .ef-sts__l{margin:0 0 8px;font-size:1.1rem}
  .ef-st{padding:10px 8px 12px;gap:4px}
  .ef-st__im{height:96px}
  .ef-st__t{font-size:.98rem}
  .ef-st__s{font-size:.8rem}
  .ef-pn{padding:clamp(14px,1.6vw,22px)}
  .ef-pn__g{gap:clamp(18px,2.4vw,32px)}
  .ef-f--pn{gap:8px}
  .ef-ong2{margin-bottom:6px}
  .ef-pn .btn--lg,.ef-pn .ef-f--pn .btn{min-height:48px}
  .ef-pn{scroll-margin-top:84px}
  .ef-st__im{height:100px}
  .ef-st__im img:first-child{object-fit:contain;object-position:center bottom}
  .ef-pn .ef-c input,.ef-pn .ef-c select{padding:.6em .9em}
  .ef-pn .ef-c--k{display:flex;flex-wrap:wrap;align-items:center;column-gap:12px;row-gap:0}
  .ef-pn .ef-c--k small{font-size:.82rem}
  .ef-pn__sur{font-size:.74rem}
}

/* Barre du bas (téléphone étroit) : « Bibliothèque » et « Abonnement » entiers, sans se toucher. */
@media(max-width:430px){
  .ef-crm__nav{gap:0}
  .ef-crm__tl{gap:0}
  .ef-crm__t{font-size:.64rem;letter-spacing:-.02em;padding:6px 0;overflow:hidden}
}
/* Les petits traits jaunes touchent le dernier mot du titre. */
.ef-f--enf .ef-pn__t::after,.ef-spark::after,.ef-fn__t::after{margin-left:.02em}
