@font-face{font-family:Fredoka;src:url('../fonts/FredokaOne-Regular.otf') format('opentype');font-display:swap} :root{font-family:Fredoka,'Arial Rounded MT Bold',system-ui,sans-serif;color:#34475c;background:#fffaf7}*{box-sizing:border-box}body{margin:0;background:linear-gradient(145deg,#fef9ef 0%,#f1f9ff 48%,#fff0f4 100%);min-height:100vh}button,a,input,select,textarea{font-family:inherit}button,a{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible{outline:4px solid #5f93cb;outline-offset:3px}.top{max-width:1120px;margin:auto;padding:20px 22px;display:flex;justify-content:space-between;align-items:center;gap:15px}.brand{font-weight:750;color:#5b6282}.brand small{display:block;font-size:.74rem;font-weight:500}.pill{border:0;border-radius:30px;background:white;padding:11px 17px;color:#556882;box-shadow:0 5px 16px #5d789218}.shell{max-width:1050px;margin:auto;padding:15px 20px 60px}.cover{text-align:center;position:relative;padding:32px 18px 45px}.eyebrow{display:inline-block;background:#fff1bc;border-radius:50px;padding:9px 22px;color:#755c37;font-weight:750;font-size:.83rem}.cover h1{font-family:Fredoka,system-ui,sans-serif;font-weight:400;font-size:clamp(2.25rem,7vw,4.7rem);line-height:1.12;margin:26px auto 18px;color:#576eae;max-width:850px}.cover h1 em{font-style:normal;color:#dd8caa}.lead{font-size:clamp(1.05rem,2.5vw,1.32rem);max-width:660px;margin:12px auto 22px;line-height:1.65}.art{display:flex;align-items:center;justify-content:center;gap:clamp(8px,2vw,26px);margin:28px auto;flex-wrap:wrap}.art .tile{width:clamp(100px,19vw,164px);height:clamp(125px,22vw,185px);background:white;border-radius:32px;box-shadow:0 14px 28px #7389a526;display:flex;flex-direction:column;justify-content:center;align-items:center;border:3px solid #fff;transform:rotate(var(--turn));gap:4px}.art .tile:nth-child(2){background:#fff9da}.art .tile:nth-child(3){background:#e7fbf3}.tile img{width:88%;height:74%;object-fit:contain}.tile b{font:36px Fredoka;color:#7187bc}.choices{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;margin-top:30px}.choice{border:0;min-height:100px;padding:20px 24px;border-radius:24px;width:min(100%,310px);box-shadow:0 9px 0 #0000000c,0 18px 26px #4f6f8621;text-align:left;transition:transform .15s}.choice:hover{transform:translateY(-3px)}.choice strong{font:1.32rem Fredoka;display:block;margin-bottom:7px}.choice span{font-size:.93rem}.choice.free{background:#d9f6e8;color:#276b55}.choice.premium{background:#ffe1eb;color:#a54f7c}.subtext{font-size:.89rem;margin:32px auto;color:#66748a}.page-head{text-align:center;margin:20px auto 24px}.page-head h1{font:clamp(1.9rem,5vw,3rem) Fredoka;color:#6276ae;margin:7px}.page-head p{margin:5px}.filters{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin:22px auto}.filter{border:1px solid #e5e7ef;border-radius:28px;padding:10px 14px;background:#fff;color:#53647e;font-weight:700}.filter[aria-pressed=true]{background:#d8eafa;border-color:#9bbfe9}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:14px}.sound-card{position:relative;background:white;border:2px solid #fff;border-radius:24px;box-shadow:0 8px 19px #61739118;min-height:175px;padding:14px 10px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px}.sound-card:not(:disabled):hover{transform:translateY(-2px)}.sound-card img{max-width:100%;width:110px;height:96px;object-fit:contain}.glyph{font:clamp(2rem,4vw,3rem) Fredoka;line-height:1;color:#d67891}.glyph.blue,.glyph.consonant{color:#718ac5}.glyph.red,.glyph.vowel{color:#df7c91}.sound-card.locked{background:#f5f3f7;color:#827d91;border:2px dashed #dedbe5;min-height:175px}.sound-card.locked .glyph{color:#9994aa}.lock-tag{font-size:.76rem;font-weight:800;color:#aa6d90;background:#fff;padding:7px 9px;border-radius:30px}.back{border:0;border-radius:40px;background:white;color:#576b8d;padding:12px 19px;font-weight:800;box-shadow:0 4px 15px #6582a21a}.lesson{max-width:990px;margin:auto}.main-letter{margin:20px auto 25px;display:flex;flex-direction:column;align-items:center;gap:8px}.letter-button{min-width:140px;min-height:140px;background:#fff;border:3px solid #f9dae7;border-radius:34px;box-shadow:0 12px 21px #8190b823;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px}.letter-button .glyph{font-size:4.4rem}.sound-hint{font-size:.85rem;color:#63738a;font-weight:600}.examples{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.example{background:white;border:0;border-radius:25px;box-shadow:0 9px 24px #7689a323;padding:12px;min-width:0;display:flex;flex-direction:column;align-items:center}.example img{width:100%;height:155px;object-fit:contain}.example .pair{display:flex;height:155px;align-items:center;width:100%}.example .pair img{height:120px;max-width:50%}.word{margin-top:12px;font-weight:850;font-size:clamp(.72rem,1.7vw,1.07rem);overflow-wrap:anywhere;text-align:center;line-height:1.6}.c-rouge{color:#de6378}.c-bleu{color:#5489cf}.c-vert{color:var(--lettre-digramme,#268454)}.c-gris{color:#aeb2bb}.nav{display:flex;justify-content:center;align-items:center;gap:20px;margin-top:23px}.nav button{border:0;background:white;border-radius:25px;width:62px;height:58px;font-size:1.8rem;color:#7189b4}.nav button:disabled{opacity:.3}.muted{color:#7b8394}.more{display:block;margin:25px auto;border:0;border-radius:30px;background:#e1f3e9;color:#326d5a;padding:14px 27px;font-weight:750}.premium-note{max-width:620px;margin:24px auto;text-align:center;background:#fff3f7;border-radius:23px;padding:20px;line-height:1.6}.premium-note strong{color:#a64e79}.footer{text-align:center;color:#788299;padding:10px 20px 26px;font-size:.85rem}.hidden{display:none!important}@media(max-width:650px){.top{padding:15px}.shell{padding:8px 12px 30px}.cover{padding-top:18px}.examples{grid-template-columns:1fr;max-width:400px;margin:auto;gap:10px}.example{flex-direction:row;gap:12px;min-height:124px}.example img{width:42%;height:116px}.example .pair{width:45%;height:116px}.example .pair img{width:50%;height:95px}.word{flex:1}.grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.sound-card,.sound-card.locked{min-height:135px;border-radius:18px;padding:8px}.sound-card img{width:78px;height:68px}.glyph{font-size:2rem}.lock-tag{font-size:.63rem;padding:5px}.letter-button{min-height:120px;min-width:120px}.top .brand{font-size:.89rem}}@media(max-width:375px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Harmonisation globale Fredoka One */
html,body,button,input,select,textarea,a,h1,h2,h3,h4,p,span,strong,small,.brand,.word,.filter,.back,.more,.lock-tag,.sound-hint,.footer{font-family:Fredoka,'Arial Rounded MT Bold',system-ui,sans-serif!important;font-weight:400!important}
/* Couverture lumineuse et aérée, couleurs pastel */
body{background:radial-gradient(circle at 8% 18%,#ffe5ed 0,transparent 25%),radial-gradient(circle at 91% 13%,#fff4c9 0,transparent 25%),radial-gradient(circle at 58% 73%,#e3f9eb 0,transparent 33%),linear-gradient(135deg,#fffaf3,#eff9ff 55%,#fff2fa)}
.top{position:relative;z-index:2}.brand{font-size:1.04rem;color:#6174ac}.brand small{margin-top:4px;color:#8c7c98}
.cover{isolation:isolate;padding-top:42px}.cover:before,.cover:after{position:absolute;z-index:-1;pointer-events:none;opacity:.9;font-size:clamp(2rem,5vw,4rem)}
.cover:before{content:'✿';left:4%;top:10%;color:#f4aac7;transform:rotate(-17deg)}.cover:after{content:'✦';right:7%;top:18%;color:#e5c454;transform:rotate(15deg)}
.cover h1{letter-spacing:.1px;max-width:900px;text-shadow:0 2px 0 #fff}.cover h1 em{color:#df82a9}.cover .lead{color:#5f7190;line-height:1.5;margin-bottom:12px}
.eyebrow{background:#fff4b8;color:#84693e;box-shadow:0 5px 20px #ebcf7c38}
.art{margin:28px auto 19px;gap:clamp(12px,2.5vw,30px)}.art .tile{border:4px solid white;box-shadow:0 12px 28px #7d8cad25;transition:transform .2s,box-shadow .2s}.art .tile:first-child{background:#ffe9f0}.art .tile:nth-child(2){background:#fff5cd}.art .tile:nth-child(3){background:#e0f8ef}.art .tile:hover{transform:rotate(0deg) translateY(-5px);box-shadow:0 18px 30px #7d8cad32}.art .tile b{color:#697eb6;font-size:clamp(2.1rem,5vw,3rem)}
.cover .sparkles{font-size:1.4rem;letter-spacing:.65rem;margin:0 auto 12px;color:#e5aa5f;user-select:none}
.choices{margin-top:19px}.choice{text-align:center;border:3px solid #fff;border-radius:27px;min-height:116px;box-shadow:0 9px 18px #8e8faf25;transition:transform .15s,box-shadow .15s}.choice.free{background:#d7f7e9;color:#31745c}.choice.premium{background:#ffe0ed;color:#9d517c}.choice strong{font-size:clamp(1.2rem,2vw,1.45rem)}.choice span{line-height:1.4;display:block}.choice:hover{box-shadow:0 15px 24px #8e8faf28}.subtext{margin:24px auto 4px;color:#71809d}
.sound-card .glyph{text-transform:uppercase}.letter-button .glyph{text-transform:uppercase}
@media(max-width:650px){.cover{padding:22px 9px 35px}.cover:before{left:0;top:6%}.cover:after{right:1%;top:10%}.cover h1{margin:18px auto 11px}.art .tile{width:29%;height:clamp(130px,35vw,170px);border-radius:23px}.art{gap:3%}.choices{gap:12px}.choice{width:min(100%,370px);min-height:88px;padding:15px}.subtext{line-height:1.5}.lead{padding:0 5px}}

/* v3 : couleurs pédagogiques des graphèmes et titres sans rose */
:root{--lettre-voyelle:#d94242;--lettre-consonne:#3476cc;--lettre-digramme:#268454}
.glyph.red,.glyph.vowel{color:var(--lettre-voyelle)!important}
.glyph.blue,.glyph.consonant{color:var(--lettre-consonne)!important}
.glyph.green,.glyph.digraph{color:var(--lettre-digramme)!important}
.sound-card.locked .glyph.red{color:var(--lettre-voyelle)!important}
.sound-card.locked .glyph.blue{color:var(--lettre-consonne)!important}
.sound-card.locked .glyph.green{color:var(--lettre-digramme)!important}
.cover h1,.page-head h1{color:#416caa!important}
.cover h1 em{color:#21866f!important}
.brand,.brand small{color:#386d9d!important}
.choice.premium{color:#356a92!important}
.lock-tag{color:#546d8b!important}
.premium-note strong{color:#397a65!important}
.art .tile:nth-child(1) b{color:var(--lettre-voyelle)!important}
.art .tile:nth-child(2) b,.art .tile:nth-child(3) b{color:var(--lettre-consonne)!important}
.sound-card.locked{cursor:default}
.sound-card.locked:hover{transform:none}
/* Garder Fredoka One sur les lettres et l'ensemble des contrôles. */
.glyph,.tile b,.word,.sound-card,.letter-button{font-family:Fredoka,'Arial Rounded MT Bold',system-ui,sans-serif!important}

.title-graph{font-family:Fredoka,'Arial Rounded MT Bold',system-ui,sans-serif!important;text-transform:uppercase}
.title-graph.vowel{color:var(--lettre-voyelle)!important}
.title-graph.consonant{color:var(--lettre-consonne)!important}
.title-graph.digraph,.title-graph.word{color:var(--lettre-digramme)!important}


/* v5 : interface épurée et centrée sur les cartes */
.brand{display:none!important}
.top{justify-content:flex-end!important;max-width:1280px!important;padding:20px 26px 8px!important}
.footer{display:none!important}
.sound-hint{display:none!important}
.shell{max-width:1280px!important;padding-top:4px!important;padding-bottom:34px!important}
.lesson{max-width:1280px!important}
.lesson .page-head{margin:6px auto 14px!important}
.lesson .page-head h1{font-size:clamp(2.4rem,5vw,4rem)!important;margin:4px 0 0!important}
.main-letter{margin:8px auto 22px!important}
.letter-button{min-width:150px!important;min-height:150px!important}
.letter-button .glyph{font-size:4.7rem!important}
.examples{max-width:1220px!important;margin:0 auto!important;grid-template-columns:repeat(3,minmax(280px,1fr))!important;gap:26px!important}
.example{min-height:360px!important;padding:16px 16px 18px!important;border-radius:30px!important;box-shadow:0 14px 30px #7689a328!important}
.example img{height:235px!important}
.example .pair{height:235px!important}
.example .pair img{height:180px!important;max-width:48%!important}
.word{margin-top:18px!important;font-size:clamp(1rem,1.7vw,1.35rem)!important;line-height:1.45!important}
.more{margin:24px auto 14px!important;padding:16px 30px!important;border-radius:34px!important;font-size:1.05rem!important}
.nav{margin-top:16px!important}
.nav strong{font-size:1.3rem!important}
.nav button{width:66px!important;height:60px!important}
@media(max-width:900px){
  .examples{grid-template-columns:1fr!important;max-width:620px!important;gap:16px!important}
  .example{min-height:0!important;flex-direction:row!important;align-items:center!important;padding:16px!important}
  .example img{width:42%!important;height:170px!important}
  .example .pair{width:42%!important;height:170px!important}
  .example .pair img{height:130px!important}
  .word{flex:1!important;margin-top:0!important;padding-left:8px!important;text-align:left!important}
}
@media(max-width:650px){
  .top{padding:12px 14px 4px!important}
  .shell{padding:6px 12px 24px!important}
  .lesson .page-head h1{font-size:clamp(2rem,8vw,3rem)!important}
  .main-letter{margin-bottom:16px!important}
  .letter-button{min-width:132px!important;min-height:132px!important}
  .letter-button .glyph{font-size:4.1rem!important}
  .example img,.example .pair{height:140px!important}
  .example .pair img{height:110px!important}
}

/* v7 — couverture simple, bouton vert pastel, aucun encadré rose */
.cover .choices.simple-start{display:flex;justify-content:center;align-items:center;margin:26px auto 0;gap:0}
.cover .choices.simple-start .choice.start{width:min(100%,320px);min-height:76px;padding:18px 25px;background:#d6f2df;color:#286d56;border:3px solid #fff;box-shadow:0 10px 24px #5b957021;text-align:center;border-radius:25px}
.cover .choices.simple-start .choice.start strong{margin:0;font-size:clamp(1.3rem,2.5vw,1.7rem);color:#286d56}
.cover .choices.simple-start .choice.start span{display:inline;color:inherit;font-size:inherit}
.cover .choices.simple-start .choice.start:hover{background:#c6ecd2;transform:translateY(-3px)}
.cover .choices.simple-start .choice.start:focus-visible{outline:4px solid #468f72;outline-offset:4px}
.cover .art .tile:first-child{background:#fff5e0}
@media(max-width:650px){.cover .choices.simple-start{margin-top:24px}.cover .choices.simple-start .choice.start{min-height:70px}}

/* v8 : mots illustrés agrandis individuellement, sans changer leurs couleurs */
.example .word{display:block!important;width:100%!important;min-width:0!important;flex:0 1 auto!important;padding:0 6px!important;margin-top:14px!important;text-align:center!important;line-height:1.2!important;overflow:visible!important;overflow-wrap:normal!important;white-space:nowrap!important;font-family:Fredoka,'Arial Rounded MT Bold',system-ui,sans-serif!important}
.example .word .mot{display:inline-block!important;white-space:nowrap!important;max-width:none!important;font-size:inherit!important}
.example .word .mot span{font-size:inherit!important}
@media(max-width:900px){.example .word{flex:1 1 0!important;width:auto!important;margin-top:0!important;text-align:center!important;padding:0 5px!important}}


/* v11 : mots encore plus grands et très lisibles */
.example .word{font-size:clamp(1.2rem,2.2vw,1.7rem);padding:0 2px!important;margin-top:10px!important;line-height:1.08!important;letter-spacing:0!important}
.example .word .mot{width:auto!important;max-width:none!important}
@media(max-width:900px){.example .word{padding:0 2px!important}}

/* V12 — L'ajustement Javascript doit primer sur les règles de taille CSS. */
.example .word{font-size:32px;min-width:0;max-width:100%;box-sizing:border-box;}
.example .word .mot{white-space:nowrap!important;}


/* v13 : phrases et mots longs toujours contenus dans la carte */
.example .word{max-width:100%!important;white-space:normal!important;overflow:hidden!important;text-wrap:balance;line-height:1!important}
.example .word .mot{max-width:100%!important;white-space:inherit!important;overflow-wrap:anywhere!important}
.example .word .mot span{font-size:inherit!important}

/* V15 : respect strict des limites internes de chaque carte */
.example .word{box-sizing:border-box!important;min-width:0!important;max-width:100%!important;overflow:hidden!important;text-align:center!important}
.example .word .mot{box-sizing:border-box!important}

/* V16 : accents visibles sur les mots en capitales (É, È, Ê, etc.).
   La zone haute appartient au libellé : aucune image, son ou couleur n'est modifié. */
.example .word{padding-top:0.21em!important;padding-bottom:0.08em!important;line-height:1.22!important;}
.example .word .mot{line-height:1.22!important;vertical-align:middle!important;}
.example .word .mot span{line-height:inherit!important;}
