@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Poppins:wght@400;500;600;700;800&display=swap');
:root{font-family:Poppins,Arial,sans-serif;color:#173047;background:#fff8ee;font-size:16px}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer}a{color:inherit}.skip{position:absolute;left:-9999px;z-index:20;background:white;padding:12px}.skip:focus{left:12px;top:12px}.app{display:flex;min-height:100vh}.sidebar{width:276px;flex-shrink:0;background:#fff;display:flex;flex-direction:column;border-right:1px solid #f1e9e1}.brand{min-height:165px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;text-decoration:none;margin:0 10px 8px}.brand-rainbow{width:83px;height:47px;display:block;border:7px solid #e79498;border-bottom:0;border-radius:90px 90px 0 0;position:relative;margin-bottom:11px}.brand-rainbow:after{content:'';position:absolute;inset:10px 10px 0;border:6px solid #e1c749;border-bottom:0;border-radius:80px 80px 0 0}.brand-name{font-family:Pacifico,cursive;font-size:22px;line-height:1.45;white-space:nowrap}.brand-name em{font-style:normal;color:#df888e}.brand-name small{font-size:21px;display:block;margin-top:-8px}.sidebar nav{display:grid;gap:10px}.sidebar nav a{display:flex;align-items:center;gap:14px;min-height:68px;padding:10px 20px;text-decoration:none;font-weight:500;border-radius:17px;margin:0 2px}.sidebar nav a:hover,.sidebar nav a[aria-current]{background:#EAFBF7;color:#21CCB5}.nav-icon{width:26px;text-align:center;font-size:21px;flex:none}.sidebar-help{margin:auto 2px 20px;display:block;background:#21CCB5;color:#173047;text-decoration:none;text-align:center;padding:19px 10px;border-radius:18px;font-weight:700;box-shadow:0 13px 23px #b65c6020}.sidebar-help:hover{background:#18AA97}.main{flex:1;min-width:0;background:linear-gradient(110deg,#fffaf4,#EAFBF7)}.mobile-topbar{display:none}.menu-button{background:none;border:0;font-size:24px;color:#173047}main{max-width:1550px;margin:auto;padding:14px clamp(24px,2.4vw,48px) 80px;min-height:calc(100vh - 65px)}footer{text-align:center;font-size:12px;color:#8a8188;padding:18px}.eyebrow{text-transform:uppercase;letter-spacing:.055em;font-weight:800;color:#b4525e;font-size:15px}.script{font-family:Pacifico,cursive;font-weight:400}.welcome{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:0 0 27px}.welcome h1{font-size:clamp(30px,3vw,43px);margin:0 0 6px}.welcome p{font-size:25px;margin:0}.badge{border:2px dashed #21CCB5;border-radius:50px;padding:14px 19px;text-decoration:none;background:#fff;font-size:18px;font-weight:600;white-space:nowrap}.dashboard{display:grid;grid-template-columns:minmax(0,2.25fr) minmax(295px,1fr);gap:20px}.dashboard-main,.dashboard-side{display:flex;flex-direction:column;gap:34px}.card{background:#fff;border:1px solid #e9e8ed;border-radius:27px;padding:25px;box-shadow:0 12px 30px #45352908}.card h2{font-size:clamp(22px,2vw,29px);line-height:1.35;margin:0 0 20px}.card p{margin:10px 0 18px}.project-card{display:grid;grid-template-columns:42% 1fr;gap:25px;min-height:340px}.project-art{min-height:286px;border-radius:22px;background:linear-gradient(133deg,#ffe5e5 0%,#fff 54%,#c5ebe9 100%);padding:27px;display:flex;flex-direction:column;justify-content:flex-end;position:relative;overflow:hidden}.project-scissors{position:absolute;right:27px;top:24px;font-size:106px;color:#b9cbd0;opacity:.7;transform:rotate(-18deg)}.project-overline{font-size:14px;margin-bottom:5px}.project-art strong{font-size:27px;line-height:1.6}.project-details{padding:4px 0;display:flex;flex-direction:column;align-items:flex-start}.project-details h2{font-size:30px;margin:4px 0 20px}.project-details p{font-size:19px;margin:0 0 22px}.project-details .progress{width:100%;margin:0 0 24px}.progress{height:15px;background:#e7edf0;border-radius:30px;overflow:hidden}.progress span{display:block;height:100%;background:#21CCB5;border-radius:30px}.button{display:inline-block;text-align:center;text-decoration:none;background:#21CCB5;color:#173047;border:0;border-radius:15px;padding:14px 22px;font-weight:700;font-size:17px}.button:hover{background:#18AA97}.button.secondary{background:#EAFBF7;color:#21CCB5}.button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #7550a1;outline-offset:3px}.victories{min-height:340px}.victory-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.victory-grid div{background:#fff7f0;border-radius:20px;padding:15px;display:flex;flex-direction:column;min-height:110px;justify-content:center}.victory-grid strong{font-size:30px}.victory-grid span{font-size:17px;line-height:1.4}.victory-note{background:#ffe0e2;text-align:center;border-radius:18px;padding:17px 10px;font-size:17px;margin-top:20px!important}.box-feature{min-height:380px}.box-feature h2{margin-bottom:18px}.box-feature>p{font-size:19px;margin:0 0 22px}.tag{display:inline-block;vertical-align:middle;border-radius:50px;padding:5px 12px;background:#ffe4e5;color:#ad535d;font-size:13px;font-weight:700;white-space:nowrap}.tag.yellow{background:#fff3bd;color:#796018}.tag.green{background:#d7f7ec;color:#177561}.tag.blue{background:#d9f2f8;color:#245b72}.tag.purple{background:#eee4f7;color:#68507d}.box-content{display:grid;grid-template-columns:1.3fr 1fr minmax(175px,.9fr);gap:16px;align-items:stretch}.box-visual{height:223px;overflow:hidden;border-radius:20px;background:linear-gradient(145deg,#d5b89d,#f7e9d5 54%,#bd947c);position:relative}.fabric{position:absolute;border-radius:50%;box-shadow:inset -22px -13px 0 #0002,0 10px 20px #492b2640}.fabric-one{background:repeating-linear-gradient(90deg,#f0d8c2 0 9px,#e6c4ae 10px 14px);width:135px;height:115px;bottom:12px;left:20px;transform:rotate(-12deg)}.fabric-two{background:repeating-linear-gradient(90deg,#cfa3a0 0 10px,#b98685 11px 16px);width:120px;height:100px;bottom:35px;right:12px;transform:rotate(13deg)}.spool{position:absolute;background:#bd8c72;border:10px solid #ead1b8;border-radius:15px;width:39px;height:65px;top:20px;left:20px;transform:rotate(-27deg)}.needle{position:absolute;right:20px;top:0;font-size:61px;color:#86624f;transform:rotate(-20deg)}.box-copy{display:flex;flex-direction:column;justify-content:center;text-align:center;background:#f6eeee;border-radius:20px;padding:14px}.box-copy .script{font-size:21px}.box-actions{display:flex;flex-direction:column;justify-content:center;gap:12px}.community p{font-size:18px}.community-link{display:block;border-radius:19px;padding:19px;margin:12px 0;background:#f0fafb;text-decoration:none}.community-link strong,.community-link span{display:block}.community-link span{font-size:15px;margin-top:6px;color:#547082}.community-link.soft-pink{background:#fff0f1}.section-heading{margin:0;font-size:25px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:18px 0 32px}.cards-two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid .card{border-radius:22px}.grid .card h3{margin:12px 0}.grid .card p{font-size:15px}.grid .button{font-size:14px}.hero{background:#ffe9e7;border-radius:28px;padding:36px 40px;margin-bottom:30px;position:relative;overflow:hidden}.hero:after{content:'✂';position:absolute;right:38px;top:25px;font-size:110px;color:#e8919266;transform:rotate(-18deg)}h1{font-size:clamp(27px,3vw,40px);line-height:1.2;margin:12px 0}h2{font-size:25px;margin:0 0 17px}h3{font-size:19px;margin:0 0 8px}.muted{color:#746d75}.row{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.steps{display:grid;gap:11px;margin:20px 0}.step{display:flex;align-items:center;gap:14px;background:white;border:1px solid #efe7e0;padding:15px;border-radius:14px}.step input{width:19px;height:19px;accent-color:#21CCB5}.step label{cursor:pointer;flex:1}.notice{background:#e8faf7;border-radius:20px;padding:22px;margin:20px 0}.columns{display:grid;grid-template-columns:2fr 1fr;gap:20px}.empty{border:2px dashed #e3d7cd;border-radius:17px;padding:20px;color:#716b70}textarea{width:100%;min-height:100px;border:1px solid #d8cdc8;border-radius:12px;padding:12px;resize:vertical}.mini{font-size:12px}
@media(max-width:1250px){.sidebar{width:238px}.dashboard{grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr)}.project-card{grid-template-columns:1fr}.project-art{min-height:190px}.box-content{grid-template-columns:1fr 1fr}.box-actions{grid-column:1/-1;flex-direction:row}.box-actions .button{flex:1}}
@media(max-width:900px){.sidebar{width:210px}.brand-name{font-size:18px}.brand-name small{font-size:18px}.sidebar nav a{font-size:14px;padding:10px}.dashboard{grid-template-columns:1fr}.dashboard-main,.dashboard-side{gap:20px}.dashboard-side{display:grid;grid-template-columns:1fr 1fr}.victories{min-height:0}.welcome{align-items:flex-start;flex-direction:column}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.columns{grid-template-columns:1fr}}
@media(max-width:650px){.sidebar{display:none;position:fixed;inset:60px auto 0 0;z-index:5;width:min(300px,85vw);box-shadow:20px 0 50px #0002;overflow-y:auto}.sidebar.open{display:flex}.brand{min-height:110px}.mobile-topbar{height:60px;background:white;display:flex;align-items:center;gap:15px;padding:0 18px;font-weight:700;position:sticky;top:0;z-index:4}.welcome{margin-bottom:20px}.welcome h1{font-size:30px}.welcome p{font-size:22px}.badge{font-size:13px;white-space:normal}main{padding:24px 16px 60px}.project-card{padding:16px}.project-details h2{font-size:26px}.project-art{min-height:200px}.dashboard-side{grid-template-columns:1fr}.box-content{grid-template-columns:1fr}.box-visual{height:200px}.box-copy{min-height:125px}.box-actions{grid-column:auto;flex-direction:column}.grid,.cards-two{grid-template-columns:1fr}.hero{padding:25px}.hero:after{font-size:65px;right:10px;top:7px}}
/* Logo, badge, victoires et oracle */
.brand{min-height:175px;margin:0 12px 8px}.brand img{display:block;max-width:100%;width:250px;height:auto;object-fit:contain}.badge-display{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #f4e5d3;border-radius:22px;padding:8px 15px 8px 8px;font-weight:700;font-size:15px;max-width:255px}.badge-display img{display:block;width:78px;height:78px;object-fit:contain;flex:none;border-radius:12px}.victory-grid div{min-height:95px}.victory-grid span{font-size:15px}.oracle{background:linear-gradient(135deg,#fff,#fff2e5);border-color:#f2e1d4}.oracle h2{margin:5px 0 12px}.oracle>p{font-size:16px;line-height:1.6}.oracle-button{width:100%;margin-top:4px;background:#21CCB5}.oracle-button:hover{background:#18AA97}.oracle-reveal{border:1px solid #e9d5bf;background:#fff;padding:20px;border-radius:20px;text-align:center;margin-top:15px}.oracle-reveal>span{display:block;font-size:36px}.oracle-reveal strong{display:block;font-family:Pacifico,cursive;font-weight:400;font-size:26px;color:#b75f68}.oracle-reveal p{font-size:15px;margin:9px 0 0}.completion-list{display:grid;gap:9px;margin:15px 0}.completion-item{display:flex;gap:12px;align-items:center;padding:12px 14px;background:#fff8f1;border-radius:13px;cursor:pointer}.completion-item input{accent-color:#21CCB5;width:20px;height:20px;flex:none}
@media(max-width:900px){.brand{min-height:150px}.badge-display{max-width:100%}}
@media(max-width:650px){.brand{min-height:130px}.badge-display img{width:70px;height:70px}.victory-grid span{font-size:14px}}
/* Variante B : logo entier et badge mis en valeur au-dessus des victoires */
.sidebar .brand{width:calc(100% - 24px);min-height:182px;flex:0 0 auto;overflow:visible;padding:12px 0;margin:0 12px 8px}.sidebar .brand img{display:block;width:100%;max-width:250px;height:auto;max-height:none;object-fit:contain}.badge-card{display:flex;flex-direction:column;align-items:center;gap:8px;padding:20px 18px;background:linear-gradient(145deg,#fff,#fff9f1);border-color:#f3dfe1}.badge-card h2{align-self:stretch;text-align:center;margin:0;font-size:19px;color:#ad535d}.badge-card img{width:clamp(105px,11vw,156px);height:auto;aspect-ratio:375/377;object-fit:contain;filter:drop-shadow(0 8px 12px #d7ad6133)}.dashboard-side{gap:20px}.welcome{margin-bottom:27px}
@media(max-width:900px){.sidebar .brand{min-height:155px}.badge-card img{width:128px}}
@media(max-width:650px){.sidebar .brand{min-height:140px}.badge-card img{width:140px}}

/* Connexion des membres et médias publiés */
[hidden]{display:none!important}#member-login{max-width:490px;margin:8vh auto;padding:16px}.member-gate{text-align:center}.member-gate img{width:210px;max-width:100%;height:auto}.member-gate form{display:grid;gap:15px;text-align:left}.member-gate label{display:grid;gap:6px;font-weight:600}.member-gate input{font:inherit;padding:12px;border:1px solid #d8cdc8;border-radius:12px;min-width:0}.member-gate button{cursor:pointer}.content-photo{width:100%;height:180px;object-fit:cover;border-radius:17px}#member-signout{border:0;background:none;color:#21CCB5;cursor:pointer;font:inherit;text-decoration:underline}
.member-link{display:inline-block;margin-top:16px;padding:6px;border:0;background:none;color:#21CCB5;text-decoration:underline;cursor:pointer}
.member-gate .member-show-password{display:flex;align-items:center;gap:9px;font-weight:400}.member-show-password input{width:18px;height:18px}

.sync-status{margin:8px 30px 0;color:#375c63;font-size:13px}.completion-item{margin-top:18px}.completion-item input{cursor:pointer}

.step-status{width:24px;flex:none;color:#21CCB5;font-size:23px;font-weight:700}.tutorial-note-label{display:block;margin:18px 0 8px;font-weight:600}.grid .card textarea{font:inherit;font-size:15px;min-height:92px}

.tutorial-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0}.tutorial-meta>span:last-child:not(.tag){color:#547082;font-size:14px;font-weight:600}


/* Photos des parcours : cadrage de fond et titre lisible. */
.project-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}.project-art.has-photo:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,transparent 20%,rgba(23,48,71,.85) 100%)}.project-art.has-photo .project-overline,.project-art.has-photo strong{position:relative;z-index:1;color:#fff;text-shadow:0 1px 4px #173047}.course-section{margin-bottom:24px}.course-photo{width:100%;height:230px;object-fit:cover;border-radius:18px;margin-bottom:22px}.button.secondary:hover{background:#D3F5EE}.button:hover,.sidebar-help:hover{color:#173047}

/* Titres et appels à l’action harmonisés. */
.dashboard .card h2{font-family:Poppins,Arial,sans-serif;font-size:clamp(22px,2vw,29px);font-weight:700;line-height:1.35;color:#21CCB5;text-transform:none;letter-spacing:normal;margin:0 0 20px}
.project-details .course-name{font-family:Poppins,Arial,sans-serif;font-size:30px;line-height:1.35;margin:0 0 20px;color:#173047}
.badge-card h2{align-self:stretch;text-align:center}
.oracle h3{margin:0 0 12px}
.button,.button:hover,.button:active,.oracle-button,.oracle-button:hover,.sidebar-help,.sidebar-help:hover{color:#fff}
.button.secondary{color:#21CCB5}
.sidebar nav a:hover,.sidebar nav a[aria-current]{color:#21CCB5}
@media(max-width:650px){.project-details .course-name{font-size:26px}}


/* La parenthèse quotidienne d’HAPPY, avec les médaillons validés. */
.happy-daily{display:flex;align-items:center;gap:clamp(20px,3vw,42px);padding:24px 32px;background:#fff;border:3px solid #21CCB5;border-radius:30px;box-shadow:0 10px 24px #75442210;margin:0 0 30px;min-height:210px}.happy-medallion{width:174px;aspect-ratio:1;position:relative;overflow:hidden;border-radius:50%;flex:none}.happy-medallion img{position:absolute;width:265.4%;max-width:none;height:auto;left:-14.3%;top:-25.4%}.happy-daily-copy{flex:1;min-width:0}.happy-daily h2{font-family:Poppins,Arial,sans-serif;color:#21CCB5;font-weight:700;font-size:clamp(22px,2vw,29px);line-height:1.3;margin:0 0 14px}.happy-daily p{font-family:Poppins,Arial,sans-serif;color:#173047;font-size:clamp(17px,1.6vw,23px);line-height:1.55;white-space:pre-line;overflow-wrap:anywhere;margin:0}.happy-daily-copy h2{text-transform:none}@media(max-width:650px){.happy-daily{padding:20px 18px;gap:16px;flex-direction:column;text-align:center;border-radius:24px}.happy-medallion{width:120px}.happy-daily h2{font-size:22px}.happy-daily p{font-size:18px}}
/* Tableau de bord : trois lignes, deux tiers / un tiers, ordre mobile explicite. */
.dashboard.dashboard-rows{display:flex;flex-direction:column;gap:24px}
.dashboard-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:24px;align-items:stretch}
.dashboard-row>*{min-width:0;margin:0}
.dashboard-row-happy{min-height:250px}
.dashboard-row-progress{min-height:360px}
.dashboard-row-box{min-height:380px}
.dashboard-row .happy-daily{height:100%;min-height:250px;padding:24px;gap:24px}
.dashboard-row .happy-medallion{width:clamp(110px,12vw,174px)}
.dashboard-row .badge-card{justify-content:center}
.dashboard-row .project-card{grid-template-columns:42% minmax(0,1fr);min-height:360px}
.dashboard-row .project-details .button{margin-top:auto}
.dashboard-row .victories{min-height:360px;display:flex;flex-direction:column;justify-content:center}
.dashboard-row .current-tutorial{min-height:380px;display:flex;flex-direction:column}
.current-tutorial .content-photo{height:170px;margin-bottom:16px}
.current-tutorial .button{margin-top:auto}
.dashboard-row .box-feature{min-height:380px}
.dashboard-row .box-content{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.dashboard-row .box-actions{grid-column:1/-1;flex-direction:row}
.dashboard-row .box-actions .button{flex:1;font-size:15px}
.dashboard-discover .grid{margin-bottom:24px}
.dashboard-row-extra{align-items:start}
@media(max-width:1250px){.dashboard-row .project-card{grid-template-columns:1fr}.dashboard-row .project-art{min-height:180px}.dashboard-row .victory-grid div{padding:12px}.dashboard-row .victory-grid span{font-size:14px}.dashboard-row .happy-medallion{width:110px}}
@media(max-width:900px){.dashboard-row{grid-template-columns:1fr}.dashboard-row-happy,.dashboard-row-progress,.dashboard-row-box{min-height:0}.dashboard-row .happy-daily,.dashboard-row .badge-card,.dashboard-row .project-card,.dashboard-row .victories,.dashboard-row .box-feature,.dashboard-row .current-tutorial{height:auto;min-height:0}.dashboard-row .project-card{grid-template-columns:42% minmax(0,1fr)}.dashboard-row .current-tutorial .button{align-self:flex-start}.dashboard-row .badge-card img{width:140px}}
@media(max-width:650px){.dashboard-row{gap:20px}.dashboard.dashboard-rows{gap:20px}.dashboard-row .project-card{grid-template-columns:1fr}.dashboard-row .happy-daily{padding:20px 18px;gap:16px}.dashboard-row .happy-medallion{width:120px}.dashboard-row .box-content{grid-template-columns:1fr}.dashboard-row .box-actions{grid-column:auto;flex-direction:column}}

/* Badge mis en valeur et contours du parcours et des victoires. */
.dashboard-row .badge-card{background:#21CCB5;border:2px solid #21CCB5;box-shadow:0 10px 24px #17304712}
.dashboard .badge-card h2{color:#173047}
.dashboard-row .badge-card img{background:#fff;border-radius:18px;padding:10px;box-sizing:border-box;filter:drop-shadow(0 6px 10px #17304718)}
.dashboard-row .project-card,.dashboard-row .victories{background:#fff;border:2px solid #21CCB5;border-radius:30px;box-shadow:0 10px 24px #17304712}


/* Mon compte et Mon carnet HAPPY */
.account-tabs{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}.account-tabs a{padding:10px 16px;background:#fff;border:1px solid #21CCB5;border-radius:24px;text-decoration:none;color:inherit}.account-tabs a:hover,.account-tabs a:focus{background:#d9f7f1}.account-links{margin-top:24px}.account-links .button{margin:6px 0}.card fieldset{border:0;padding:0;margin:0;min-width:0}.card form label{display:block;margin:12px 0}.card form input:not([type=checkbox]),.card form select{display:block;width:100%;font:inherit;padding:10px 12px;border:1px solid #b1b1b1;border-radius:10px;background:#fff;color:inherit}.card input[readonly]{background:#f4f4f4!important}.card form .account-check{display:flex;align-items:flex-start;gap:10px}.account-check input[type=checkbox]{width:20px;height:20px;flex:none;margin-top:3px;accent-color:#148b7b}.measure-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.measure-fields details{font-size:.86rem}.measure-fields details svg{float:left;margin:8px 12px 0 0}.measure-fields details p{margin:8px 0}.measurement-person{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:5px;margin-top:12px;text-align:left}.shopping-add{display:grid;grid-template-columns:1fr 1fr;gap:8px 20px}.shopping-add label:last-of-type{grid-column:1/-1}.shopping-project{margin-top:24px}.shopping-row{border-top:1px solid #e4ded5;margin-top:16px;padding-top:12px;display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.shopping-row>.account-check,.shopping-row>div{grid-column:1/-1}.shopping-row.is-purchased strong{text-decoration:line-through;color:#666}.tutorial-supplies{border-top:1px solid #e4ded5;margin-top:16px;padding:12px 0}.tutorial-supplies summary,.measure-fields summary{cursor:pointer}.member-link{cursor:pointer}.card form button:disabled{opacity:.55;cursor:wait}#account-message:empty{display:none}#account-message{padding:12px;background:#d9f7f1;border-radius:12px}input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #148b7b;outline-offset:3px}@media(max-width:650px){.measure-fields,.shopping-add,.shopping-row{grid-template-columns:1fr}.account-tabs{gap:8px}.account-tabs a{padding:8px 12px;font-size:.9rem}.shopping-row>*,.shopping-add>*{grid-column:1!important}}

/* Fournitures sélectionnées chez Rascol */
.rascol-link{display:inline-block;color:#186c62;font-weight:600;margin:0 0 12px;padding:7px 0;text-underline-offset:3px}.supply-choice{border-bottom:1px solid #eee;padding:4px 0}.supply-choice .rascol-link{margin-left:30px}.shopping-row>.rascol-link{grid-column:1/-1;justify-self:start}.happy-kit{margin-top:20px}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* Menu personnel en haut à droite : icône et libellé en dessous. */
.member-utility{display:flex;justify-content:flex-end;align-items:stretch;gap:16px;max-width:1550px;margin:16px auto 0;padding:0 clamp(24px,2.4vw,48px)}
.member-utility .member-utility-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:104px;min-height:78px;padding:10px 12px;border:0;border-radius:16px;background:transparent;color:#173047;font-family:Poppins,Arial,sans-serif;font-size:13px;font-weight:600;line-height:1.3;text-decoration:none;cursor:pointer}
.member-utility-item svg{width:30px;height:30px;flex:none}
.member-utility .member-utility-item:hover,.member-utility .member-utility-item[aria-current]{background:#EAFBF7;color:#159B89}
.member-utility .member-utility-item:focus-visible{outline:3px solid #7550a1;outline-offset:3px}
.member-utility #member-signout{text-decoration:none;color:#173047;font:inherit;font-size:13px;font-weight:600}
.member-utility #member-signout:hover{color:#159B89}
@media(max-width:650px){.member-utility{padding:0 16px;margin-top:10px;gap:10px}.member-utility .member-utility-item{min-width:98px;min-height:70px;padding:8px 10px}.member-utility-item svg{width:27px;height:27px}}

/* Icônes du menu : parcours, cercle HAPPY et cadeau. */
.sidebar .nav-icon{display:flex;align-items:center;justify-content:center;width:32px;height:32px}.sidebar .nav-icon svg,.sidebar .nav-icon img{display:block;width:32px;height:32px;object-fit:contain}

/* Silhouette noire du cercle HAPPY dans la navigation. */
.sidebar a[data-route="communaute"] .nav-icon img{filter:brightness(0)}

/* Parcours carré et seconde ligne compacte. */
.dashboard-row-progress{min-height:0}
.dashboard-row-progress .project-card{background:var(--course-color,#21CCB5);border-color:var(--course-color,#21CCB5);grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);min-height:0;align-items:center;gap:22px;padding:22px}
.dashboard-row-progress .project-art{width:100%;aspect-ratio:1;min-height:0;height:auto;padding:0;background:#ffffff60;display:flex;align-items:center;justify-content:center}
.dashboard-row-progress .project-art.has-photo:after{display:none}
.course-mountain{width:70%;height:70%;color:#173047}
.dashboard-row-progress .project-details{padding:0}
.dashboard-row-progress .project-details h2{color:#173047;margin:0 0 10px}
.dashboard-row-progress .project-details .course-name{font-size:clamp(22px,2vw,28px);margin:0 0 12px}
.dashboard-row-progress .project-details p{font-size:16px;margin:0 0 14px}
.dashboard-row-progress .project-details .progress{margin:0 0 12px;background:#ffffffa6}
.dashboard-row-progress .project-details .button{margin-top:0;font-size:15px;padding:12px 16px}
.dashboard-row-progress .course-not-started .button{background:#173047;color:#fff}
.dashboard-row-progress .victories{min-height:0;padding:22px;justify-content:center}
.dashboard-row-progress .victories h2{margin-bottom:12px}
.dashboard-row-progress .victory-grid{gap:10px}
.dashboard-row-progress .victory-grid div{min-height:72px;padding:10px 12px}
.dashboard-row-progress .victory-grid strong{font-size:26px}
.dashboard-row-progress .victory-grid span{font-size:13px}
.dashboard-row-progress .victory-note{font-size:15px;padding:10px;margin:12px 0 0!important}
@media(max-width:1100px) and (min-width:901px){.dashboard-row-progress .project-card{grid-template-columns:1fr}.dashboard-row-progress .project-art{max-width:210px;justify-self:center}}
@media(max-width:650px){.dashboard-row-progress .project-card{grid-template-columns:1fr}.dashboard-row-progress .project-art{max-width:280px;justify-self:center}.dashboard-row-progress .project-details{width:100%}}

/* Écrin circulaire du badge. */
.dashboard-row .badge-card img{border-radius:50%;aspect-ratio:1;object-fit:contain;overflow:hidden}

/* Actions du compte alignées avec le Bonjour. */
.welcome{align-items:center}
.welcome>.member-utility{margin:0;padding:0;flex:none;max-width:none;gap:12px}
.welcome>div{min-width:0}
@media(max-width:900px){.welcome{flex-direction:row;align-items:center;gap:14px}.welcome h1{font-size:clamp(26px,3vw,43px)}}
@media(max-width:650px){.welcome{flex-wrap:wrap}.welcome>.member-utility{margin-left:auto;gap:4px}.welcome .member-utility-item{min-width:88px;padding:6px;font-size:12px}}

/* Parcours en cours — panneau blanc, version 1. */
.dashboard-row-progress .project-details{align-items:stretch}
.dashboard-row-progress .project-details h2{margin:0 0 12px}
.course-info-panel{background:#fff;border-radius:22px;padding:20px;min-width:0}
.dashboard-row-progress .course-info-panel .course-name{text-transform:uppercase;font-weight:800;font-size:clamp(20px,1.8vw,27px);line-height:1.25;margin:0 0 10px}
.dashboard-row-progress .course-info-panel p{margin:0 0 14px}
.dashboard-row-progress .course-info-panel .progress{background:#f8dedf;margin:0 0 10px}
.dashboard-row-progress .course-info-panel .button{margin:0;background:#21CCB5;color:#fff}
.dashboard-row-progress .course-info-panel .button:hover{background:#18AA97;color:#fff}
@media(max-width:650px){.course-info-panel{padding:18px}}

/* Fond crème de la montagne avant le premier parcours. */
.dashboard-row-progress .course-not-started .course-start-art{background:#FBEDDA}


/* Badges : image administrable et collection personnelle. */
.badge-placeholder{display:flex;width:150px;height:150px;border-radius:50%;background:#FBEDDA;border:5px double #E9CD42;align-items:center;justify-content:center;color:#173047;font-weight:800;font-size:45px}
.badge-collection{width:100%;text-align:center;font-size:13px}.badge-collection summary{cursor:pointer;font-weight:600;padding:6px}.badge-collection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}.badge-collection-grid>div{padding:10px;background:#ffffffd9;border-radius:16px;min-width:0}.badge-collection-grid strong{display:block;font-size:12px;margin-top:6px}.badge-collection-grid p{font-size:12px;margin:6px 0}.dashboard-row .badge-collection-grid img,.badge-collection-grid .badge-placeholder{width:65px;height:65px;margin:auto;padding:4px;font-size:24px}.badge-card .badge-birthday-message{margin:0;font-weight:700}

/* Oracle : les rectos et versos originaux, cadrés sans découper les illustrations. */
.oracle-artwork{display:block;width:min(100%,280px);height:auto;margin:0 auto 18px;border-radius:14px;box-shadow:0 8px 25px #17304718}
.oracle-reveal [hidden]{display:none}
.oracle-readable{margin-top:18px;text-align:left}
.oracle-readable summary{cursor:pointer;font-size:14px}
.oracle-readable strong{font-family:Poppins,sans-serif;font-size:20px;font-weight:600;margin-top:12px}
.oracle-readable p{font-size:16px;line-height:1.7}
@media(max-width:600px){.oracle-artwork{width:min(100%,260px)}}

/* L’éventail enchanté de l’oracle HAPPY. */
.oracle-ritual{text-align:center}
.oracle-invitation{font-size:16px;line-height:1.6;max-width:370px;margin:12px auto}
.oracle-fan{--fan-width:clamp(64px,16vw,96px);--fan-step:clamp(16px,4vw,27px);position:relative;height:245px;isolation:isolate;margin:6px auto 0;max-width:430px}
.oracle-fan-choice{position:absolute;left:50%;top:28px;margin-left:calc(var(--fan-width)/-2);width:var(--fan-width);padding:0;border:0;background:transparent;cursor:pointer;border-radius:12px;transform-origin:50% 95%;transform:translateX(calc(var(--i)*var(--fan-step))) rotate(calc(var(--i)*8deg));transition:transform .35s ease,filter .35s ease,opacity .35s ease;box-shadow:0 8px 15px #17304715}
.oracle-fan-choice svg{display:block;width:100%;height:auto}
.oracle-fan-choice:hover,.oracle-fan-choice:focus-visible{z-index:10;transform:translateX(calc(var(--i)*var(--fan-step))) translateY(-18px) rotate(calc(var(--i)*6deg))}
.oracle-fan-choice:focus-visible{outline:3px solid #176B73;outline-offset:4px}
.oracle-fan-choice:disabled{cursor:wait;opacity:.5}
.oracle-fan-choice.is-chosen{z-index:11;opacity:1;transform:translateY(-30px) scale(1.12) rotate(0deg);filter:drop-shadow(0 0 14px #E9CD4270)}
.oracle-sparkles{display:none;color:#B88C37;font-size:28px;letter-spacing:12px}
.oracle-new-reveal .oracle-sparkles{display:block;animation:oracle-sparkle 1.5s ease both}
.oracle-new-reveal .oracle-artwork{animation:oracle-appear .8s ease both}
@keyframes oracle-appear{from{opacity:0;transform:translateY(18px) rotate(-5deg) scale(.9)}to{opacity:1;transform:none}}
@keyframes oracle-sparkle{0%{opacity:0;transform:scale(.6)}40%{opacity:1;transform:scale(1.1)}100%{opacity:0;transform:translateY(-12px)}}
@media(max-width:420px){.oracle-fan{height:205px}.oracle-invitation{font-size:15px}}
@media(prefers-reduced-motion:reduce){.oracle-fan-choice{transition:none}.oracle-new-reveal .oracle-artwork,.oracle-new-reveal .oracle-sparkles{animation:none}.oracle-sparkles{display:none!important}}

.oracle-reveal{position:relative}.oracle-reveal>.oracle-sparkles{display:none;position:absolute;top:0;left:0;width:100%;pointer-events:none}.oracle-new-reveal>.oracle-sparkles{display:block}

/* Badge actuel agrandi, avec un écrin blanc discret. */
.dashboard-row .badge-card>div[title]{width:min(240px,100%);display:flex;justify-content:center}
.dashboard-row .badge-card>div[title]>img{width:100%;height:auto;aspect-ratio:1;padding:2px;border-radius:50%}
.dashboard-row .badge-card>div[title]>.badge-placeholder{width:100%;height:auto;aspect-ratio:1;font-size:64px}
@media(max-width:650px){.dashboard-row .badge-card>div[title]{width:min(220px,100%)}}

/* Garder l'encart du badge carré, sans agrandir la ligne. */
.dashboard-row .badge-card{width:100%;height:auto;min-height:0;aspect-ratio:1;align-self:start;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:6px;padding:12px}
.dashboard-row .badge-card h2{font-size:clamp(20px,2vw,29px);line-height:1.2;margin:0}
.dashboard-row .badge-card>div[title]{width:100%;max-width:240px;height:100%;min-height:0;justify-self:center;align-items:center}
.dashboard-row .badge-card>div[title]>img{width:auto;max-width:100%;height:100%;max-height:240px;padding:2px}
.dashboard-row .badge-card>div[title]>.badge-placeholder{width:auto;height:100%;max-height:240px}
.badge-card .badge-collection{max-height:100%;overflow:auto;min-height:0}
.badge-card .badge-collection summary{padding:2px;font-size:13px}
.dashboard-row .badge-card:has(.badge-collection[open]){grid-template-rows:auto minmax(0,1fr) minmax(30px,40%)}
.dashboard-row .badge-card:has(.badge-birthday-message){grid-template-rows:auto minmax(0,1fr) auto auto}
@media(max-width:900px){.dashboard-row .badge-card{max-width:380px;justify-self:center}}

/* Contour commun aux encarts du tableau de bord, hors parcours. */
.dashboard.dashboard-rows .card:not(.project-card),.dashboard.dashboard-rows .happy-daily{border:3px solid #21CCB5}

/* Les trois découvertes de la box, sans lien sur les photos. */
.box-monthly-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}
.box-monthly-tile{margin:0;min-width:0}
.box-monthly-tile>img,.box-photo-placeholder{display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:18px}
.box-photo-placeholder{display:grid;place-items:center;background:#FBEDDA;color:#173047}
.box-photo-placeholder span{font-size:clamp(32px,4vw,60px)}
.box-monthly-tile figcaption{padding:10px 0 0;text-align:center;overflow-wrap:anywhere}
.box-monthly-tile figcaption strong{display:block;font-size:14px}
.box-monthly-tile figcaption>span{display:block;font-size:12px;margin-top:4px;color:#746d75}
.dashboard-row .box-feature .box-actions{display:flex;flex-direction:row;gap:12px;margin-top:16px}
@media(max-width:650px){.box-monthly-photos{gap:8px}.box-monthly-tile>img,.box-photo-placeholder{border-radius:12px}.box-monthly-tile figcaption strong{font-size:12px}.dashboard-row .box-feature .box-actions{flex-direction:column}}

/* Badge compact : le visuel occupe l'espace entre le titre et la collection. */
.dashboard-row .badge-card{aspect-ratio:1;min-width:0;min-height:0;padding:8px;gap:2px;justify-content:stretch;overflow:hidden}
.dashboard-row .badge-card>div[title]{position:relative;width:100%;max-width:none;height:100%;min-height:0;overflow:hidden}
.dashboard-row .badge-card>div[title]>img{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:auto;height:100%;max-width:100%;max-height:100%;padding:2px;object-fit:contain}
.dashboard-row .badge-card>div[title]>.badge-placeholder{height:100%;width:auto;max-width:100%;max-height:100%}
.dashboard-row .badge-card .badge-collection{margin:0}
.dashboard-row .badge-card .badge-collection summary{padding:0;line-height:1.3}

/* La surprise du mois, conservée ouverte pour chaque membre. */
.box-gift-closed{text-align:center;display:flex;flex-direction:column;align-items:center}
.box-gift-closed>img{display:block;width:100%;max-width:560px;height:clamp(190px,20vw,300px);object-fit:contain;margin:0 auto 8px}
.box-gift-closed>.button{min-width:min(100%,230px)}
.box-gift-closed>.button:disabled{cursor:default;opacity:.6}
.box-gift-closed>p{margin:8px 0 0}
.box-just-opened .box-monthly-tile{animation:box-unwrapped .6s ease-out both}
.box-just-opened .box-monthly-tile:nth-child(2){animation-delay:.1s}
.box-just-opened .box-monthly-tile:nth-child(3){animation-delay:.2s}
@keyframes box-unwrapped{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.box-just-opened .box-monthly-tile{animation:none}}

/* La bibliothèque des parcours : disponibles, puis à venir. */
.course-kicker{font-family:Pacifico,cursive;color:#21CCB5;font-size:clamp(22px,2vw,28px);margin:0 0 12px}
.course-group{margin-top:32px}
.course-group>h2{color:#21CCB5;font-family:Poppins,Arial,sans-serif;font-size:25px}
.course-overview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.course-overview{min-width:0;padding:18px;border:3px solid #21CCB5;display:flex;flex-direction:column;align-items:stretch}
.course-overview-photo,.course-overview-placeholder{width:100%;aspect-ratio:1;object-fit:cover;border-radius:18px;margin-bottom:16px}
.course-overview-placeholder{display:grid;place-items:center;background:#FBEDDA;font-size:56px;color:#21CCB5}
.course-overview .course-level-tag{align-self:flex-start;background:#EAFBF7;color:#173047;border:1px solid #21CCB5;margin:0 0 12px}
.course-overview h3{font-family:Poppins,Arial,sans-serif;color:#173047;font-size:22px;margin:0 0 8px}
.course-overview .progress{margin:0 0 16px}
.course-overview>.button{font-size:14px;margin-bottom:16px}
.course-overview .course-coming{background:#EAFBF7;border-radius:14px;padding:12px;font-size:14px}
.course-program{margin-top:auto;padding-top:10px;font-size:14px}
.course-program summary{cursor:pointer;font-weight:600;color:#173047}
.course-program ol{padding-left:22px;line-height:1.6}
.course-program li{margin-bottom:8px}
.atelier-kit{margin:24px 0}
@media(max-width:1100px){.course-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.course-overview-grid{grid-template-columns:1fr}}

.course-program-description{white-space:pre-line;overflow-wrap:anywhere;line-height:1.65}

.parcours-page .parcours-welcome{margin-bottom:24px}.parcours-page .course-kicker{font-family:Pacifico,cursive;color:#21CCB5;font-size:clamp(22px,2vw,28px);margin:0 0 12px}

/* Un même esprit pour les pages de l'Académie. */
.page-welcome{margin-bottom:24px}
.page-welcome .page-kicker{font-family:Pacifico,cursive;font-weight:400;color:#21CCB5;font-size:clamp(22px,2vw,28px);margin:0 0 12px}
.page-welcome h1,.parcours-welcome h1{font-family:Poppins,Arial,sans-serif;font-weight:800;color:#171717}
.page-welcome .page-description{font-family:Poppins,Arial,sans-serif;font-size:16px;line-height:1.6;margin:10px 0 0}
.unified-page .card,.unified-page .notice{background:#fff;border:3px solid #21CCB5;border-radius:27px;box-shadow:0 10px 24px #1730470c}
.unified-page .grid .card{border-radius:27px}
.unified-page .card>h2,.unified-page .card>h3,.unified-page .notice>h3{font-family:Poppins,Arial,sans-serif;font-weight:700;color:#173047}
.unified-page .content-photo{border-radius:18px}
@media(max-width:650px){.unified-page .card,.unified-page .notice{border-radius:24px}}

/* La box du mois en pleine largeur, trois découvertes distinctes. */
.box-current-detail{width:100%;margin:24px 0}
.box-current-detail>.row{margin-bottom:18px}
.box-current-detail h2,.box-page-section>h2{font-family:Poppins,Arial,sans-serif;color:#21CCB5}
.box-detail-columns,.box-upcoming-grid,.box-history-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.box-detail-tile{min-width:0;padding:18px;display:flex;flex-direction:column}
.box-detail-tile h3{font-size:18px;margin-bottom:16px}
.box-detail-tile>img,.box-detail-tile>.box-photo-placeholder{width:100%;aspect-ratio:1;object-fit:cover;border-radius:18px}
.box-item-title{font-size:16px;line-height:1.5}
.box-tile-action{margin-top:auto;padding-top:16px}
.box-tile-action .button{width:100%;font-size:14px}
.box-page-section{margin-top:32px}
.box-month-tag{background:#EAFBF7;color:#173047;border:1px solid #21CCB5;text-transform:capitalize}
.upcoming-box{min-width:0;padding:16px}
.upcoming-box-art{position:relative;border-radius:18px;overflow:hidden;background:#FBEDDA}
.upcoming-box-art img{display:block;width:100%;aspect-ratio:3/2;object-fit:contain}
.upcoming-box-art:after{content:'✦';position:absolute;top:12px;right:16px;color:#21CCB5;font-size:25px}
.upcoming-box-art.art-1:after{content:'♡'}
.upcoming-box-art.art-2:after{content:'✧'}
.upcoming-month{position:absolute;bottom:8px;left:8px;right:8px;border-radius:12px;background:#EAFBF7e8;padding:6px;text-align:center;font-size:12px;text-transform:capitalize}
.upcoming-box h3{text-transform:capitalize;margin:16px 0 8px}
.upcoming-box p{white-space:pre-line;font-size:14px}
.box-history-card{padding:14px;min-width:0;align-self:start}
.box-history-card summary{cursor:pointer;font-weight:700;text-transform:capitalize}
.box-history-card summary>span{display:block;font-weight:400;font-size:12px;margin:6px 0 0}
.box-history-card:not([open]){background:#EAFBF7}
.box-history-card[open]{grid-column:1/-1}
.box-history-card[open] .box-detail-columns{margin-top:20px}
@media(max-width:1100px){.box-detail-columns{gap:10px}.box-detail-tile{padding:12px}.box-detail-tile h3{font-size:16px}}
@media(max-width:650px){.box-detail-columns,.box-upcoming-grid,.box-history-grid{grid-template-columns:1fr}.box-current-detail{padding:16px}}

.box-item-meta{font-size:14px;color:#176B73}.box-item-progress{display:grid;gap:6px;font-size:13px;margin:12px 0}.box-item-progress progress{width:100%;height:12px;accent-color:#21CCB5}

.project-photo-panel{margin-top:20px;padding-top:16px;border-top:1px solid #21CCB5}.project-photo-panel h4{font-family:Poppins,sans-serif;font-size:18px;margin:0 0 8px}.personal-project-photo{display:block;width:100%;max-height:320px;object-fit:contain;border-radius:16px;margin:12px 0;background:#FBEDDA}.project-photo-picker{display:grid;gap:8px;font-weight:600}.project-photo-picker input{max-width:100%;font:inherit}.project-photo-panel .button{margin-top:8px}

/* Les tutos restent dans la largeur du téléphone, même avec le sélecteur de photo. */
.unified-page .grid{min-width:0;max-width:100%}
.unified-page .grid>.card{min-width:0;max-width:100%;overflow-wrap:anywhere}
.project-photo-panel,.project-photo-picker{min-width:0;max-width:100%}
.project-photo-picker input[type="file"]{display:block;width:100%;min-width:0;max-width:100%;font-size:14px}
.personal-project-photo{display:block;width:100%;max-width:100%;height:auto;max-height:320px;object-fit:contain;object-position:center;margin:12px auto}
@media(max-width:650px){
 .unified-page .grid>.card{width:100%;padding:18px}
 .unified-page .grid .card .button{max-width:100%;white-space:normal;overflow-wrap:anywhere}
 .unified-page .tutorial-meta .tag{max-width:100%;white-space:normal}
 .project-photo-panel .personal-project-photo{max-height:280px}
}

.tutorial-meta .tutorial-level-tag{background:var(--tutorial-level-color);color:#173047;border:1px solid var(--tutorial-level-color);white-space:normal;max-width:100%}

/* Le carnet créatif : fournitures, notes et photo dans leurs écrins crème. */
.tutorial-card .carnet-panel{background:#FFF8EC;border:1px solid #D8C8AC;border-radius:18px;padding:6px;margin:16px 0 0;min-width:0;max-width:100%;position:relative}
.tutorial-card .carnet-panel::before{content:'';position:absolute;inset:4px;border:1px dashed #C8B697;border-radius:14px;pointer-events:none}
.tutorial-card .carnet-panel>summary{display:flex;align-items:center;gap:12px;position:relative;list-style:none;padding:10px;font-size:15px;font-weight:600;color:#173047;cursor:pointer;overflow-wrap:anywhere}
.tutorial-card .carnet-panel>summary::-webkit-details-marker{display:none}
.tutorial-card .carnet-panel>summary>span:not(.carnet-icon){flex:1;min-width:0}
.tutorial-card .carnet-panel>summary::after{content:'';width:8px;height:8px;border-right:2px solid #173047;border-bottom:2px solid #173047;transform:rotate(45deg);flex:none;margin:0 4px 4px}
.tutorial-card .carnet-panel[open]>summary::after{transform:rotate(225deg);margin-bottom:0}
.carnet-icon{width:36px;height:36px;display:grid;place-items:center;flex:none;border-radius:10px;background:#173047;color:#fff}
.carnet-icon svg{width:23px;height:23px}
.tutorial-card .carnet-body,.tutorial-card .carnet-panel>.supplies-form{position:relative;padding:0 10px 10px;min-width:0}
.tutorial-card .carnet-body textarea{display:block;background:#fff;min-width:0;max-width:100%;margin-top:4px}
.tutorial-card .personal-project-photo{width:100%;height:auto;max-height:280px;object-fit:contain;object-position:center;margin:12px auto;background:#fff;border:1px solid #E7DCC9;padding:6px}
.tutorial-card .project-photo-picker{font-size:14px}
.project-photo-picker input::file-selector-button{background:#21CCB5;color:#fff;border:0;border-radius:10px;padding:10px 12px;font:inherit;cursor:pointer;margin-right:8px}
.tutorial-progress{margin:16px 0}
.tutorial-progress .progress{height:10px;background:#E6EEE9}
.grid .card .tutorial-progress p{font-size:12px;text-align:right;margin:6px 0 0;color:#375C63}
@media(max-width:650px){.tutorial-card .carnet-panel>summary{padding:8px;gap:10px;font-size:14px}.carnet-icon{width:32px;height:32px}.tutorial-card .carnet-body,.tutorial-card .carnet-panel>.supplies-form{padding:0 8px 8px}}

/* Fond crème chaleureux commun à toutes les pages de l’espace membre. */
:root,body{background:#FFF8EE}
.main{background:linear-gradient(110deg,#FFF8EE 0%,#FBEDDA 100%)}

/* Le bouton d’aide suit immédiatement le menu, quelle que soit la page. */
.sidebar .sidebar-help{margin:12px 2px 20px;flex:0 0 auto}
.sidebar nav{flex:0 0 auto}

/* Ressource en cours sous la box : même largeur que le tuto en cours. */
.dashboard-resource-area{display:grid;grid-template-columns:calc((100% + 20px)/2) minmax(0,1fr);gap:20px;min-width:0}
.dashboard-resource-area>.current-resource{min-width:0;min-height:380px;display:flex;flex-direction:column;align-items:stretch;padding:25px}
.dashboard-resource-area>.current-resource h2{font-size:clamp(22px,2vw,29px)}
.dashboard-resource-area>.current-resource .button{align-self:flex-start;margin-top:auto}
.dashboard-resource-area>.oracle{grid-column:1/-1;min-width:0}
.current-resource .tutorial-progress p{font-size:12px;text-align:right;margin:6px 0;color:#375C63}
@media(max-width:900px){.dashboard-resource-area{grid-template-columns:1fr}.dashboard-resource-area>.current-resource{height:auto;min-height:0}.dashboard-resource-area>.oracle{grid-column:auto}}

/* Trois encarts alignés : ressource, oracle, communauté. */
.dashboard-row.dashboard-row-thirds{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
.dashboard-row-thirds>.card{min-width:0;width:100%;height:100%;min-height:0}
.dashboard-row-thirds>.current-resource{display:flex;flex-direction:column;align-items:stretch}
.dashboard-row-thirds>.current-resource>.button{margin-top:auto;align-self:flex-start}
.dashboard-row-thirds>.oracle>h2{overflow-wrap:anywhere}
.dashboard-row-thirds .oracle-fan{--fan-width:clamp(52px,5vw,82px);--fan-step:clamp(12px,1.2vw,21px);height:215px}
.badge-collection-link{display:block;justify-self:center;text-align:center;color:#173047;font-size:13px;font-weight:600;text-underline-offset:3px;padding:2px;max-width:100%}
.account-tabs a[href="#badges"]{white-space:nowrap}
.account-badge-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:24px}
.account-badge{min-width:0;text-align:center;overflow-wrap:anywhere}
.account-badge-art{display:grid;place-items:center;margin:0 auto 18px;width:min(100%,220px);aspect-ratio:1}
.account-badge-art>img,.account-badge-art>.badge-placeholder{display:block;width:100%;height:100%;max-width:100%;object-fit:contain;border-radius:50%}
.account-badge-art>.badge-placeholder{display:flex}
.account-badge h2{font-size:21px;margin-bottom:10px}
.account-badge p{font-size:14px;line-height:1.6}
@media(max-width:1100px){.account-badge-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.dashboard-row.dashboard-row-thirds{grid-template-columns:1fr}.dashboard-row-thirds>.card{height:auto}.dashboard-row-thirds .oracle-fan{--fan-width:clamp(64px,16vw,96px);--fan-step:clamp(16px,4vw,27px);height:245px}}
@media(max-width:650px){.account-badge-grid{grid-template-columns:1fr}.account-badge-art{width:min(100%,230px)}}

/* Bibliothèque des tutos : pastilles de niveau et filtres combinables. */
.tutorial-filter-area{margin:22px 0;min-width:0}.tutorial-search{display:block}.tutorial-search input{display:block;width:100%;min-width:0;border:1px solid #E5DDCF;background:#fff;border-radius:16px;padding:16px 18px;font:inherit}
.tutorial-level-filters{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px;margin:24px 0;align-items:start}
.tutorial-level-filter{display:flex;flex-direction:column;align-items:center;gap:10px;border:0;background:transparent;color:#173047;font:inherit;font-weight:600;font-size:14px;min-width:0;padding:4px;cursor:pointer;text-align:center;overflow-wrap:anywhere}
.tutorial-level-circle{display:grid;place-items:center;width:min(100%,112px);aspect-ratio:1;border-radius:50%;background:var(--level-color);color:var(--level-icon-color);box-shadow:0 5px 12px #1730470a;border:3px solid transparent}
.tutorial-level-circle svg{width:48%;height:48%}.tutorial-level-filter[aria-pressed="true"] .tutorial-level-circle{outline:2px solid #173047;outline-offset:3px}.tutorial-level-filter:hover .tutorial-level-circle{box-shadow:0 6px 15px #17304720}
.tutorial-filter-bar{display:flex;flex-wrap:wrap;align-items:flex-start;gap:14px;background:#fff;border-radius:18px;padding:16px;border:1px solid #E5DDCF}
.tutorial-filter-bar>label{display:grid;gap:5px;flex:1 1 170px;min-width:0;font-size:12px;font-weight:600}.tutorial-filter-bar select{display:block;width:100%;min-width:0;padding:10px;border:1px solid #D8CDC8;border-radius:10px;background:#fff;color:#173047;font:inherit;font-size:14px}
.tutorial-more-filters{flex:1 1 150px;min-width:0;font-size:14px}.tutorial-more-filters summary{cursor:pointer;padding:24px 0 10px;font-weight:600}.tutorial-more-filters>div{display:grid;gap:12px;margin-top:12px}.tutorial-more-filters label{display:grid;gap:5px;font-size:12px}
.tutorial-active-filters{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.tutorial-active-filters span{background:#EAFBF7;border:1px solid #21CCB5;border-radius:18px;padding:5px 10px;font-size:12px}
.tutorial-clear-filters{border:0;background:none;color:#173047;text-decoration:underline;text-underline-offset:3px;font:inherit;font-size:13px;padding:4px 0;cursor:pointer}.tutorial-result-count{text-align:right;font-size:14px;font-weight:600;margin:0}.tutorial-results-grid{margin-top:16px}
@media(max-width:1100px){.tutorial-level-filters{gap:10px}.tutorial-level-filter{font-size:12px}}
@media(max-width:650px){.tutorial-level-filters{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 12px}.tutorial-level-circle{max-width:82px}.tutorial-filter-bar{padding:12px;gap:12px}.tutorial-filter-bar>label,.tutorial-more-filters{flex-basis:100%}.tutorial-more-filters summary{padding:10px 0}.tutorial-filter-area{margin-top:18px}}

/* Petits cœurs personnels et accès aux tutos favoris. */
.tutorial-card{position:relative}
.tutorial-favorite-heart{position:absolute;top:34px;right:34px;z-index:1;display:grid;place-items:center;width:40px;height:40px;border:1px solid #E5DDCF;border-radius:50%;background:#fff;color:#173047;padding:8px;box-shadow:0 3px 10px #17304715;cursor:pointer}
.tutorial-favorite-heart svg{width:23px;height:23px}.tutorial-favorite-heart[aria-pressed="true"]{color:#B64E69;background:#FFF4F5;border-color:#E89192}.tutorial-favorite-heart:disabled{opacity:.5;cursor:default}.tutorial-favorite-heart:hover:not(:disabled){background:#FFF4F5}
.tutorial-favorites-switch{display:inline-flex;align-items:center;gap:9px;font-weight:600;font-size:14px;padding:10px 14px;border:1px solid #21CCB5;background:#fff;border-radius:20px;margin:0 0 8px;cursor:pointer}
.tutorial-favorites-switch input{width:18px;height:18px;accent-color:#21CCB5;margin:0}#tutorial-favorite-status{margin:0 0 10px;min-height:16px}
@media(max-width:650px){.tutorial-favorite-heart{top:26px;right:26px}}

/* Les favoris font partie de la barre : cœur rouge quand le filtre est actif. */
.tutorial-filter-bar>.tutorial-favorites-filter{display:flex;align-items:center;justify-content:center;gap:8px;flex:0 0 auto;align-self:flex-end;min-height:42px;margin-top:19px;padding:10px 12px;border:1px solid #D8CDC8;border-radius:10px;background:#fff;color:#173047;font:inherit;font-size:14px;cursor:pointer}
.tutorial-favorites-filter svg{display:block;width:22px;height:22px;flex:none}
.tutorial-favorites-filter[aria-pressed="true"] svg{fill:#D83B4D;stroke:#D83B4D}
.tutorial-filter-bar>.tutorial-favorites-filter[aria-pressed="true"]{border-color:#D83B4D;background:#FFF6F6}
.tutorial-favorites-filter:disabled{opacity:.5;cursor:default}
#tutorial-favorite-status:empty{display:none}
@media(max-width:650px){.tutorial-filter-bar>.tutorial-favorites-filter{margin-top:0;align-self:flex-start}}

/* Original course medallions, displayed without redrawing their illustrations. */
.tutorial-level-circle:has(.tutorial-original-level-icon){background:transparent}
.tutorial-level-circle .tutorial-original-level-icon{width:100%;height:100%;display:block;overflow:hidden;border-radius:50%}

.happy-path{margin:0 0 28px;padding:24px 28px;border:3px solid #21CCB5;border-radius:30px;background:#FFFDF8}
.happy-path-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.happy-path h2{font-family:Poppins,Arial,sans-serif;font-size:clamp(23px,2vw,30px);color:#21CCB5;margin:0 0 8px;font-weight:700}
.happy-path-heading p{margin:0;font-family:Pacifico,cursive;font-size:19px}
.happy-path-toggle,.tour-quit{border:0;background:transparent;color:#173047;text-decoration:underline;text-underline-offset:4px;padding:8px;flex:none}
.happy-path-body{margin-top:18px}.happy-path-body[hidden]{display:none}
.happy-path-body h3{margin:10px 0;font-size:21px}.happy-path-body p{white-space:pre-line;line-height:1.6}
.happy-path-count{font-size:13px;font-weight:600;color:#186C62;background:#EAFBF7;padding:6px 12px;border-radius:20px;display:inline-block}
.happy-path-actions{display:flex;flex-wrap:wrap;gap:12px}.happy-path-overview{margin-top:18px}.happy-path-overview summary{cursor:pointer;font-weight:600}.happy-path-overview ol{line-height:1.8}.happy-path-overview .is-done{color:#186C62}
.welcome-help{margin-top:24px}.welcome-help .button{margin:6px}
.happy-tour{position:fixed;inset:0;width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:0;border:0;background:transparent;overflow:hidden;color:#173047}
.happy-tour::backdrop{background:#17304770}
.happy-tour:has(.tour-spotlight:not([hidden]))::backdrop{background:transparent}
.tour-spotlight{position:fixed;border:3px solid #21CCB5;border-radius:20px;box-shadow:0 0 0 9999px #1730479c;pointer-events:none}
.tour-panel{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);width:min(520px,calc(100% - 32px));padding:24px;border:2px solid #21CCB5;border-radius:24px;background:#FFF8EE;box-shadow:0 12px 40px #0003;max-height:calc(100dvh - 32px);overflow:auto}
.tour-label{font-family:Pacifico,cursive;color:#186C62;font-size:20px}.tour-panel h2{font-family:Poppins,Arial,sans-serif;font-size:24px;margin:10px 0;font-weight:700}.tour-panel p{line-height:1.55;margin:12px 0}.tour-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.tour-actions button{font:inherit}.tour-panel button:focus-visible,.happy-path button:focus-visible{outline:3px solid #173047;outline-offset:3px}
@media(max-width:650px){.happy-path{padding:18px;border-radius:24px}.happy-path-heading{gap:8px}.happy-path-heading p{font-size:16px}.happy-path h2{font-size:22px}.happy-path-actions{flex-direction:column}.happy-path-actions .button{width:100%;text-align:center}.tour-panel{padding:18px}.tour-panel h2{font-size:21px}.tour-panel p{font-size:14px}.tour-actions .button{padding:10px 12px}.tour-label{font-size:18px}}

/* The notebook is decorative; all recommendations and actions remain live HTML. */
.happy-path-notebook{position:relative;isolation:isolate;padding:44px 7% 50px 7%;background:#FFF8EE url('assets/happy-notebook.webp') center/100% 100% no-repeat;min-height:460px;border:3px solid #21CCB5;overflow:visible}
.happy-notebook-pages{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10%;align-items:start}
.happy-notebook-left{display:block;padding-top:14px;min-width:0}
.happy-path-notebook h2{color:#173047;font-size:clamp(26px,2.5vw,40px);line-height:1.2;letter-spacing:-.035em;margin:0 0 16px;font-weight:800}
.happy-path-notebook .happy-path-heading p{font-family:Pacifico,cursive;color:#21CCB5;font-size:clamp(20px,1.8vw,29px);line-height:1.65;max-width:400px}
.happy-notebook-stitches{display:block;width:85%;margin-top:8px;border-bottom:2px dashed #21CCB5;color:#21CCB5;text-align:right;font-size:26px;line-height:1}
.happy-path-notebook>.happy-path-toggle{position:absolute;right:7%;top:10px;font-size:12px;padding:6px 9px;z-index:1;background:#FFF8EECC;border-radius:12px}
.happy-notebook-right{margin:0;min-width:0}
.happy-notebook-note{position:relative;background:#E7F5EF;padding:20px;border-radius:12px;box-shadow:0 5px 10px #6F4F2824;min-width:0;text-align:center}
.happy-notebook-note:before{content:'';position:absolute;top:-9px;left:30%;width:40%;height:20px;background:radial-gradient(circle,#fff9 2px,transparent 3px) 0 0/12px 12px,#A7D7C7;transform:rotate(-4deg);opacity:.85}
.happy-notebook-photo{margin:0 0 14px;transform:rotate(-2deg);background:white;padding:7px;box-shadow:0 3px 7px #6F4F2826;border-radius:5px}
.happy-notebook-photo img{display:block;width:100%;height:clamp(100px,12vw,170px);object-fit:cover;border-radius:2px}
.happy-notebook-symbol{width:74px;height:74px;margin:0 auto 10px;color:#21CCB5}.happy-notebook-symbol svg{width:100%;height:100%}
.happy-notebook-note .happy-path-count{font-size:11px;padding:3px 8px;background:#FFFFFF85}
.happy-path-notebook .happy-path-body h3{font-size:clamp(18px,1.8vw,25px);line-height:1.3;margin:12px 0}
.happy-path-notebook .happy-notebook-message{font-size:14px;line-height:1.6;margin:10px 0 16px;overflow-wrap:anywhere}
.happy-notebook-note .happy-path-actions{flex-direction:column;gap:8px}
.happy-notebook-note .button{width:100%;max-width:100%;text-align:center;white-space:normal;overflow-wrap:anywhere;padding:12px 14px;font-size:15px;border-radius:24px}
.happy-notebook-note .button.secondary{background:#fff;color:#186C62;border:1px solid #21CCB5}
.happy-path-notebook .happy-notebook-reassurance{font-size:14px;text-align:center;line-height:1.5;margin:14px 0 8px}
.happy-path-notebook .happy-path-overview{margin-top:8px;font-size:12px;text-align:center}.happy-path-notebook .happy-path-overview ol{text-align:left;margin-bottom:0}
.happy-notebook-mobile-tabs{display:none}
.happy-notebook-photo{position:relative}
.happy-notebook-heart-number{position:absolute;right:-10px;top:-10px;width:55px;height:55px;border-radius:50%;background:#FFF8EE;color:#186C62;box-shadow:0 2px 6px #0002;transform:rotate(2deg)}
.happy-notebook-heart-number svg{width:100%;height:100%}
.happy-notebook-symbol{color:#186C62}
.happy-notebook-tabs{display:grid;grid-template-rows:repeat(5,minmax(0,1fr));gap:7px;position:absolute;right:1.1%;top:11%;height:63%;width:5%;z-index:2}
.happy-notebook-tab{display:flex;align-items:center;justify-content:center;position:relative;min-width:0;padding:0;border:0;background:transparent;color:#173047;font-family:Poppins,Arial,sans-serif;font-size:16px;font-weight:700;border-radius:0 12px 12px 0;cursor:pointer}
.happy-notebook-tab[aria-pressed="true"]{box-shadow:inset 0 0 0 2px #173047; background:#FFFFFF25}
.happy-notebook-tab[aria-disabled="true"]{cursor:default;color:#17304799}
.happy-notebook-tab:focus-visible{outline:3px solid #173047;outline-offset:2px}
.happy-notebook-tab-title{position:absolute;right:calc(100% + 8px);top:50%;transform:translateY(-50%);padding:8px 12px;border-radius:10px;box-shadow:0 3px 12px #17304720;background:#fff;color:#173047;width:max-content;max-width:230px;font-size:12px;font-weight:500;line-height:1.4;visibility:hidden;opacity:0;pointer-events:none;transition:opacity .15s}
.happy-notebook-tab:hover .happy-notebook-tab-title,.happy-notebook-tab:focus-visible .happy-notebook-tab-title{visibility:visible;opacity:1}
.happy-path-notebook.is-collapsed .happy-notebook-tabs{display:none}
.happy-path-notebook.is-collapsed{min-height:0;background:#FFF8EE;padding:20px 28px}.happy-path-notebook.is-collapsed .happy-notebook-pages{display:block}.happy-path-notebook.is-collapsed .happy-notebook-left{padding:0}.happy-path-notebook.is-collapsed h2{font-size:26px;margin:0 0 8px}.happy-path-notebook.is-collapsed .happy-path-heading p{font-size:18px;max-width:none}.happy-path-notebook.is-collapsed .happy-notebook-stitches{display:none}
@media(max-width:1100px){.happy-path-notebook{padding-left:6%;padding-right:7%;min-height:420px}.happy-notebook-pages{gap:9%}.happy-notebook-note{padding:16px 12px}.happy-path-notebook .happy-path-heading p{font-size:21px}}
@media(max-width:800px){
 .happy-notebook-tabs{right:-10px;top:54px;height:auto;width:30px;gap:8px;grid-auto-rows:38px;grid-template-rows:repeat(5,38px)}
 .happy-notebook-tab{background:var(--tab-color);font-size:14px;border-radius:0 7px 7px 0;box-shadow:1px 2px 3px #6F4F2817}
 .happy-notebook-tab[aria-pressed="true"]{background:var(--tab-color);box-shadow:inset 0 0 0 2px #173047}
 .happy-path-notebook{background:#FFF8EE;min-height:0;padding:44px 26px 24px 18px;border-radius:24px;box-shadow:inset 5px 0 #E9DECE,inset 9px 0 #F4EADC,0 6px 15px #6F4F2815}
 .happy-notebook-pages{grid-template-columns:minmax(0,1fr);gap:28px}.happy-notebook-left{padding:0}.happy-path-notebook h2{font-size:29px}.happy-path-notebook .happy-path-heading p{font-size:21px;max-width:none}.happy-notebook-stitches{width:75%}
 .happy-notebook-right{padding:0 4px}.happy-notebook-note{padding:20px 16px}.happy-notebook-photo img{height:170px}.happy-path-notebook .happy-path-body h3{font-size:22px}
 .happy-notebook-mobile-tabs{display:flex;position:absolute;right:-8px;top:55px;flex-direction:column;gap:8px;pointer-events:none;z-index:-1}.happy-notebook-mobile-tabs i{display:block;width:16px;height:30px;border-radius:0 6px 6px 0;box-shadow:1px 2px 3px #6F4F2817}.happy-notebook-mobile-tabs i:nth-child(1){background:#E89192}.happy-notebook-mobile-tabs i:nth-child(2){background:#F1DB68}.happy-notebook-mobile-tabs i:nth-child(3){background:#8DD1B7}.happy-notebook-mobile-tabs i:nth-child(4){background:#A8DBE6}.happy-notebook-mobile-tabs i:nth-child(5){background:#CFBCE1}
 .happy-path-notebook.is-collapsed{padding:40px 22px 18px}.happy-path-notebook.is-collapsed .happy-notebook-mobile-tabs{display:none}
}

/* Keep member navigation within reach while the page scrolls. */
@media(min-width:651px){
 .sidebar{position:sticky;top:0;align-self:flex-start;height:100vh;height:100dvh;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin}
}

/* Une zone de choix plus compacte dans Mes tutos HAPPY. */
.tutorial-filter-area{margin:14px 0}
.tutorial-search input{padding:10px 14px;min-height:44px}
.tutorial-level-filters{gap:10px;margin:12px 0}
.tutorial-level-filter{gap:5px;padding:3px;font-size:13px}
.tutorial-level-circle{width:min(100%,72px)}
.tutorial-filter-bar{padding:10px 12px;gap:10px;align-items:flex-end}
.tutorial-filter-bar>label{gap:3px}
.tutorial-filter-bar select{padding:8px 10px;min-height:44px}
.tutorial-filter-bar>.tutorial-favorites-filter{margin-top:0;min-height:44px;padding:8px 10px}
.tutorial-more-filters summary{padding:12px 0;min-height:44px;box-sizing:border-box}
.tutorial-active-filters{margin:8px 0}
.tutorial-active-filters:empty{display:none}
@media(max-width:650px){
 .tutorial-filter-area{margin:12px 0}
 .tutorial-level-filters{gap:10px 8px;margin:10px 0}
 .tutorial-level-filter{font-size:12px}
 .tutorial-level-circle{width:min(100%,58px);max-width:58px}
 .tutorial-filter-bar{padding:10px;gap:8px}
 .tutorial-more-filters summary{padding:10px 0}
}

.resource-category-filters{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:20px 0;padding:14px 18px;border:2px solid #21CCB5;border-radius:20px;background:#fff}.resource-category-filters label{font-weight:600}.resource-category-filters select{min-height:44px;max-width:100%;padding:8px 12px;border:1px solid #E5DDCF;border-radius:12px;font:inherit;color:#173047;background:#fff}@media(max-width:650px){.resource-category-filters select{width:100%}}

.machine-maintenance-card{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:24px;background:linear-gradient(120deg,#fff7ef,#fff 70%);border:2px solid #f1db68}
.machine-maintenance-card h2{margin:4px 0 7px;font-size:21px}
.machine-maintenance-card p{margin:0 0 10px;color:#657487}
.machine-reminder-eyebrow{margin:0;color:#b95661;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.machine-reminder-link{color:#a64e59;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.machine-done-button{flex:0 0 auto}
.machine-reminder-overlay{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:20px;background:rgba(24,54,81,.46);backdrop-filter:blur(4px)}
.machine-reminder-dialog{position:relative;width:min(100%,560px);padding:36px;background:#fff;border-radius:28px;box-shadow:0 24px 80px rgba(24,54,81,.24);border-top:8px solid #E89192}
.machine-reminder-dialog h2{margin:10px 36px 12px 0;color:#183651;font-size:27px;line-height:1.25}
.machine-reminder-dialog>p:not(.machine-reminder-eyebrow){margin:0;color:#4d6275;line-height:1.75}
.machine-reminder-close{position:absolute;right:16px;top:12px;width:40px;height:40px;border:0;border-radius:50%;background:#fbf3ed;color:#183651;font-size:27px;line-height:1}
.machine-reminder-close:hover{background:#f8dadd}
.machine-reminder-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.machine-reminder-dialog .button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:12px 16px;border:0;border-radius:13px;background:#E87500;color:#fff;font:600 14px Poppins,Arial,sans-serif;text-decoration:none}
.machine-reminder-dialog .button:hover,.machine-reminder-dialog .button:focus-visible{filter:brightness(.94)}
.machine-reminder-dialog .machine-reminder-later{background:#f5f7f8;color:#183651}
.machine-reminder-dialog button:focus-visible,.machine-reminder-dialog a:focus-visible,.machine-done-button:focus-visible{outline:3px solid #21CCB5;outline-offset:3px}
@media(max-width:650px){.machine-maintenance-card{align-items:stretch;flex-direction:column;gap:16px}.machine-done-button{width:100%}.machine-reminder-dialog{padding:30px 22px 22px;border-radius:24px}.machine-reminder-dialog h2{font-size:23px}.machine-reminder-actions{display:grid}.machine-reminder-dialog .button{width:100%}}

/* Même pastille de niveau que les tutos, selon les cinq couleurs de l’Académie. */
.course-overview .course-level-tag{background:var(--course-level-color);border-color:var(--course-level-color);color:#173047;white-space:normal;max-width:100%}
.course-overview h3{color:color-mix(in srgb,var(--course-level-color) 45%,#173047)}


/* Enchanted monthly box: approved photographic stages with moving golden stardust. */
.box-feature{position:relative}.box-feature>[hidden]{display:none!important}.box-magic-inline{position:absolute;inset:65px 12px 12px;overflow:hidden;border-radius:20px;color:#173047;container-type:inline-size}

.box-magic-shell{position:relative;text-align:center;overflow:hidden;padding:30px 12px 22px;background:radial-gradient(ellipse at 50% 60%,#fff0c4,transparent 65%),#fffcf6}
.box-magic-shell h2{font:400 clamp(23px,4vw,34px)/1.6 Pacifico,cursive;margin:20px 0 0;color:#186c62}
.box-magic-skip{position:absolute;z-index:5;top:12px;right:18px;border:0;background:#ffffffdf;padding:8px 12px;border-radius:20px;color:#173047;font:500 12px Poppins,Arial,sans-serif;cursor:pointer}
.box-magic-skip:focus-visible{outline:3px solid #21ccb5;outline-offset:2px}
.box-magic-stage{position:relative;width:100%;aspect-ratio:1.5;isolation:isolate;overflow:hidden;border-radius:20px;margin-top:12px;mask-image:linear-gradient(transparent,#000 5%,#000 94%,transparent)}
.box-magic-frame{position:absolute;inset:0;background-image:url('assets/box-opening.webp');background-size:202% 202%;background-repeat:no-repeat;will-change:transform,opacity}
.box-magic-tied{background-position:0 0;animation:box-magic-tied 5.7s both}
.box-magic-ribbon{background-position:100% 0;animation:box-magic-ribbon 5.7s both}
.box-magic-open{background-position:0 100%;animation:box-magic-open 5.7s both}
.box-magic-glow{position:absolute;inset:10% 8%;background:radial-gradient(ellipse,#fffce5 0,#ffe8a688 23%,transparent 65%);mix-blend-mode:screen;animation:box-magic-light 5.7s both}
.box-magic-trails{position:absolute;inset:0;width:100%;height:100%;overflow:visible;fill:none;stroke:#ffda79;stroke-width:2;stroke-linecap:round;filter:drop-shadow(0 0 5px #ffd36e);stroke-dasharray:7 10;animation:box-magic-orbit 5.7s both}
.box-magic-stars{position:absolute;inset:0;pointer-events:none}
.box-magic-stars i{position:absolute;left:50%;top:65%;font-style:normal;color:#d99a28;font-size:var(--size);text-shadow:0 0 7px #ffefb1,0 0 16px #fff;opacity:0;animation:box-magic-star 2.8s var(--delay) both}
.box-magic-caption{font:500 15px/1.6 Poppins,Arial,sans-serif;margin:8px 0 0}
@keyframes box-magic-tied{0%,10%{opacity:1;transform:scale(1)}24%,100%{opacity:0;transform:scale(1.04)}}
@keyframes box-magic-ribbon{0%,10%{opacity:0;transform:scale(.97)}24%,39%{opacity:1;transform:scale(1.03)}54%,100%{opacity:0;transform:scale(1.1) translateY(-4%)}}
@keyframes box-magic-open{0%,38%{opacity:0;transform:translateY(7%) scale(.96)}55%,88%{opacity:1;transform:translateY(0) scale(1.02)}100%{opacity:0;transform:scale(1.06)}}
@keyframes box-magic-light{0%,32%{opacity:0;transform:scale(.2)}52%{opacity:.8;transform:scale(1)}75%{opacity:.25}100%{opacity:0;transform:scale(1.4)}}
@keyframes box-magic-orbit{0%,27%{opacity:0;stroke-dashoffset:400;transform:scale(.5)}45%,75%{opacity:.85}93%,100%{opacity:0;stroke-dashoffset:0;transform:scale(1.05)}}
@keyframes box-magic-star{0%{opacity:0;transform:translate(0,0) scale(0)}20%{opacity:1}65%{opacity:1}100%{opacity:0;transform:translate(var(--x),var(--y)) rotate(var(--turn)) scale(.5)}}
@media(max-width:600px){.box-magic-shell{padding:38px 4px 18px}.box-magic-shell h2{font-size:24px}.box-magic-stars{transform:scale(.65);transform-origin:50% 65%}.box-magic-caption{font-size:13px}.box-magic-inline{border-radius:20px}}
@media(prefers-reduced-motion:reduce){.box-magic-inline *{animation:none!important}}

/* The opening stays inside its dashboard card. */
.box-magic-inline .box-magic-shell{height:100%;box-sizing:border-box;display:flex;flex-direction:column;padding:30px 2px 8px;border-radius:18px}
.box-magic-inline .box-magic-shell h2{font-size:clamp(18px,5cqw,26px);margin:4px 0;line-height:1.5}
.box-magic-inline .box-magic-stage{flex:1;min-height:0;aspect-ratio:auto;margin-top:5px}
.box-magic-inline .box-magic-caption{font-size:12px;margin:4px 0}
.box-magic-inline .box-magic-skip{top:2px;right:4px;font-size:11px;padding:6px 9px}
.box-magic-inline .box-magic-stars{transform:scale(.7);transform-origin:50% 65%}
@media(max-width:650px){.box-magic-inline{inset:60px 8px 10px}}

/* The four approved sewn medallions link to the existing account tools. */
.account-medallions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:center;margin:22px 0 30px}
.account-medallion{display:block;min-width:0;position:relative;border-radius:50%;text-decoration:none;transition:transform .18s ease;outline-offset:5px}
.account-medallion svg{display:block;width:100%;height:auto;overflow:hidden;border-radius:16px}
.account-medallion:hover{transform:translateY(-5px)}
.account-medallion:focus-visible{outline:3px solid #148b7b}
.account-medallion-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.account-warm .cards-two>.card{border:1px dashed #21CCB5;background:linear-gradient(135deg,#fffdf9,#fff8ee);border-radius:26px}
.account-warm .cards-two>.card h2{color:#173047}
.account-warm+.welcome-help{border:2px dashed #21CCB5;background:#EAFBF7;border-radius:24px;padding:24px}
@media(max-width:700px){.account-medallions{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0 24px}.account-medallion{max-width:270px;width:100%;justify-self:center}}
@media(prefers-reduced-motion:reduce){.account-medallion{transition:none}.account-medallion:hover{transform:none}}

/* Shared account heading and personal measurement cards. */
.account-section-heading{margin:24px 0 20px}.account-section-heading h2{font:700 clamp(24px,2.5vw,32px)/1.3 Poppins,Arial,sans-serif;color:#173047;margin:0 0 8px}.account-section-heading p{line-height:1.6;margin:0}
.measurement-toolbar{margin:0 0 24px}
.measurement-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.measurement-sheet{min-width:0;display:flex;flex-direction:column;align-items:flex-start;border:2px solid #21CCB5;background:#fffdf9}
.measurement-sheet h3{font-size:23px;margin:0;overflow-wrap:anywhere}.measurement-sheet>p{margin:8px 0 16px}
.measurement-sheet dl{width:100%;margin:0 0 20px}.measurement-sheet dl>div{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px dashed #d7e9e3}.measurement-sheet dt{font-size:14px}.measurement-sheet dd{margin:0;white-space:nowrap;font-weight:600;font-size:14px}.measurement-sheet>.button{margin-top:auto}
.measurement-editor{margin:0 0 24px;border:2px solid #21CCB5}.measurement-editor[hidden]{display:none}
.measurement-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.measurement-editor-heading h2{margin:0}.measurement-editor-heading button{font:inherit}
@media(max-width:1000px){.measurement-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.measurement-grid{grid-template-columns:1fr}.measurement-toolbar .button{width:100%}}

/* Compact shopping slips: one visible line per supply, editing on demand. */
.shopping-quick-links{display:flex;gap:18px;flex-wrap:wrap;margin:0 0 16px;font-size:14px}
.shopping-add-panel{margin:0 0 20px;padding:12px 16px;border:1px solid #d7e9e3;border-radius:14px;background:#fffdf9}
.shopping-add-panel>summary{cursor:pointer;font-weight:600;font-size:14px}.shopping-add-panel .shopping-add{margin-top:14px}
.shopping-project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.shopping-project-grid>.shopping-project-compact{margin:0;padding:16px 18px;border:1px solid #21CCB5;border-radius:20px;background:#fffdf9;min-width:0}
.shopping-project-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:8px}
.shopping-project-heading h3{font:700 19px/1.4 Poppins,Arial,sans-serif;margin:0;color:#173047;overflow-wrap:anywhere}
.shopping-project-heading>a{font-size:12px;flex-shrink:0}
.shopping-project-compact .shopping-compact-row{display:block;margin:0;padding:0;border-top:1px dashed #d7e9e3}
.shopping-line{display:flex;align-items:center;gap:8px;min-height:48px}
.shopping-compact-row .shopping-line>.account-check{display:flex;align-items:center;gap:8px;flex:1;min-width:0;margin:0;padding:8px 0}
.shopping-compact-row .shopping-line input[type=checkbox]{width:18px;height:18px;margin:0;flex:none}
.shopping-item-copy{display:flex;gap:7px;align-items:baseline;min-width:0;overflow:hidden;white-space:nowrap}
.shopping-item-copy strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;min-width:0}
.shopping-item-note{font-size:12px;color:#657487;overflow:hidden;text-overflow:ellipsis;min-width:0}.shopping-item-note:empty{display:none}
.shopping-item-quantity{font-size:13px;max-width:30%;overflow-wrap:anywhere;text-align:right;color:#173047}
.shopping-edit-toggle,.shopping-buy-link{display:grid;place-items:center;flex:none;min-width:32px;min-height:36px;border:0;border-radius:9px;background:transparent;color:#186c62;text-decoration:none;font-size:20px;cursor:pointer;padding:0}
.shopping-edit-toggle:hover,.shopping-buy-link:hover{background:#eafbF7}
.shopping-item-editor{padding:6px 0 14px}.shopping-item-editor[hidden]{display:none}
.shopping-item-editor label{font-size:12px!important;margin:8px 0!important}.shopping-item-editor input{font-size:14px!important;padding:8px 10px!important}
.shopping-edit-actions{display:flex;align-items:center;gap:16px}.shopping-edit-actions .button{padding:8px 12px;font-size:12px}
.shopping-edit-toggle:focus-visible,.shopping-buy-link:focus-visible{outline:3px solid #148b7b;outline-offset:2px}
@media(max-width:1050px){.shopping-project-grid{grid-template-columns:1fr}}
@media(max-width:650px){.shopping-project-grid>.shopping-project-compact{padding:14px 12px}.shopping-line{gap:5px}.shopping-project-heading h3{font-size:18px}.shopping-item-copy{display:block}.shopping-item-note{display:none}.shopping-item-quantity{font-size:12px}.shopping-edit-toggle,.shopping-buy-link{min-width:32px}.shopping-compact-row .shopping-item-editor>*{grid-column:auto!important}}

/* Subscription management stays in the student’s Systeme.io account. */
.account-subscription{margin-top:24px;padding-top:20px;border-top:1px solid #eadbd4}
.account-cancel-subscription.button{background:#b42332;color:#fff;border:2px solid #b42332}
.account-cancel-subscription.button:hover{background:#941b28;border-color:#941b28;color:#fff}
.account-cancel-subscription.button:focus-visible{outline:3px solid #941b28;outline-offset:3px}

/* Accueil : un aperçu, les reprises, puis les rendez-vous HAPPY. */
.dashboard-home .dashboard-row{min-width:0;align-items:stretch}
.dashboard-home-highlights>.happy-daily{min-height:0;height:auto;flex-direction:column;justify-content:center;text-align:center;gap:14px}
.dashboard-home-highlights .happy-medallion{width:clamp(92px,9vw,145px)}
.dashboard-home-highlights .happy-daily-copy{flex:0 1 auto}
.dashboard-home-highlights .happy-daily p{font-size:clamp(15px,1.2vw,19px)}
.dashboard-home-highlights>.badge-card{height:auto;aspect-ratio:auto;align-self:stretch;max-width:none;padding:18px;gap:6px;grid-template-rows:auto minmax(130px,1fr) auto}
.dashboard-home-highlights>.badge-card:has(.badge-birthday-message){grid-template-rows:auto minmax(130px,1fr) auto auto}
.dashboard-home-highlights .badge-card>div[title]{min-height:130px}
.dashboard-home-highlights>.victories{min-height:0;padding:clamp(14px,1.8vw,24px)}
.dashboard-home-highlights .victory-grid{gap:8px}
.dashboard-home-highlights .victory-grid div{min-width:0;min-height:78px;padding:10px}
.dashboard-home-highlights .victory-grid span{font-size:clamp(12px,1vw,15px);overflow-wrap:anywhere}
.dashboard-home-highlights .victory-note{font-size:15px}
.dashboard-home-resume{min-width:0}
.dashboard-home-resume>h2{display:flex;align-items:baseline;gap:12px;font-size:clamp(20px,2vw,29px);line-height:1.25;margin:4px 0 16px;color:#173047}
.dashboard-home-resume>h2 span{color:#178e80;font-size:1.2em}
.dashboard-home .dashboard-row-progress>.card{display:flex;flex-direction:column;align-items:stretch;min-width:0;min-height:0;padding:clamp(14px,1.6vw,22px);gap:12px}
.dashboard-home .dashboard-row-progress>.card h2{font-size:clamp(18px,1.5vw,25px);margin:0;line-height:1.25}
.dashboard-home .dashboard-row-progress .project-art,.dashboard-resume-photo{display:block;width:100%;max-width:none;aspect-ratio:16/10;height:auto;min-height:0;object-fit:cover;border-radius:16px}
.dashboard-home .dashboard-row-progress .project-art{display:flex}
.dashboard-home .dashboard-row-progress .project-details{margin-top:auto}
.dashboard-home .dashboard-row-progress .course-info-panel{padding:14px}
.dashboard-home .dashboard-row-progress .course-info-panel .course-name,.dashboard-home .dashboard-row-progress h3{font-size:clamp(17px,1.4vw,22px);margin:0;overflow-wrap:anywhere}
.dashboard-home .dashboard-row-progress .course-info-panel p{margin:8px 0 10px}
.dashboard-home .dashboard-row-progress>.card>.button{align-self:flex-start;margin-top:auto}
.dashboard-home .dashboard-row-progress .button{max-width:100%;font-size:14px;white-space:normal}
.dashboard-home>.happy-path,.dashboard-home-box>.box-feature{width:100%;min-width:0;margin:0}
.dashboard-home .dashboard-home-box{grid-template-columns:minmax(0,1fr)}
.dashboard-home-box .box-actions{flex-wrap:wrap}
.dashboard-home-extras textarea{width:100%;min-height:145px}
@media(max-width:900px){
 .dashboard-home-highlights>.badge-card>div[title]{height:165px}
 .dashboard-home .dashboard-row-progress .project-art,.dashboard-resume-photo{max-height:320px}
 .dashboard-home-highlights .victory-grid span{font-size:14px}
}

/* Bulle du titre, assortie aux détails du parcours. */
.dashboard-home .dashboard-row-progress > .project-card > .dashboard-title {
  background: #fff;
  color: #21CCB5;
  border-radius: 22px;
  padding: 12px 14px;
}
