/*
 * jr-lecons.css — leçons « Lire et écrire » au modèle par parties (pilote : son a, #9438, GEO-MENU-01, 21/11/2026).
 * Créé par LECONS-GEN-01 (21/11/2026) : reprend tel quel le CSS en ligne de son a (_genesis_scripts fd4168e2…, 4 blocs),
 * puis une section pour les leçons en rangées numérotées (cadre du modèle sur la vignette de chaque rangée).
 * Chargé SEULEMENT sur les leçons passées au nouveau modèle, avec ?ver=<8 premiers caractères du md5 de CE fichier> :
 * Cloudflare garde les CSS en cache, donc TOUTE modification de ce fichier doit changer ce numéro.
 * Sources et journal : ~/projet/chantiers/LECONS-GEN.md.
 */
@font-face {
    font-family: 'Cursif';
    src: url('/wp-content/uploads/2025/06/cursif.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.sound-lesson-title {
    text-align: center;
    font-family: 'Cursif', cursive, sans-serif;
    color: #2c5282;
    font-size: 36px;
    margin: 0 0 5px 0;
}

.sound-lesson-container {
    padding: 5px 20px 20px 20px;
    background-color: white;
    border-radius: 12px;
}

.sound-lesson-word.sound-lesson-cursive {
    font-family: 'Cursif', ecole-cursive, courier, monospace !important;
    font-size: 21pt;
}

.sound-lesson-sentence.sound-lesson-cursive span {
    font-family: 'Cursif', ecole-cursive, courier, monospace !important;
}

.sound-lesson-words-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.sound-lesson-word-card {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid #e9ecef;
}

.sound-lesson-word-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-color: #e7f5ff;
}

.sound-lesson-word-card.speaking {
    background-color: #d1f5d3;
    border-color: #22c55e;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.sound-lesson-word {
    font-size: 18pt;
    color: #2c3e50;
    margin-top: 10px;
}

.sound-lesson-highlight {
    color: red;
}

.sound-lesson-sentences {
    background-color: #f0f8f5;
    padding: 10px;
    border-radius: 12px;
    margin-top: 15px;
    border: 2px solid #76d7c4;
}

.sound-lesson-sentence {
    font-size: 24pt;
    margin: 5px 0;
    padding: 5px;
    background-color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    color: #495057;
    line-height: 1.2;
}

.sound-lesson-sentence:hover {
    background-color: #e3f2fd;
}

.sound-lesson-sentence.speaking {
    background-color: #c8e6c9;
    border: 2px solid #4caf50;
}

@media (max-width: 768px) {
    .sound-lesson-words-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sound-lesson-title {
        margin-top: 60px;
        position: relative;
        z-index: 1;
    }
}

@media (max-width: 480px) {
    .sound-lesson-words-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sound-lesson-title {
        margin-top: 60px;
        position: relative;
        z-index: 1;
    }
}

/* GEO-INTRO-01 (21/11/2026) : introduction de la lecon */
.lecon-intro {
    text-align: left;
}
.lecon-intro .sound-lesson-highlight {
    color: #CC0000;
    font-weight: 700;
}

/* GEO-INTRO-01 COMPLEMENT 3 (21/11/2026) : filet entre cursive et imprimerie */
.lecon-graphies {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: -webkit-fit-content;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    overflow-x: clip;
    text-align: center;
}
.lecon-graphies-groupe {
    flex: 1 0 auto;
    position: relative;
    white-space: nowrap;
    font-size: 20pt;
    text-align: center;
    padding: 0 47px;
}
.lecon-graphies-groupe + .lecon-graphies-groupe {
    padding: 0 45px;
}
.lecon-graphies-filet {
    position: absolute;
    left: -2px;
    top: 50%;
    width: 2px;
    height: 1.4em;
    transform: translateY(-50%);
    background: #c8d3e0;
}

/* GEO-MENU-01 COMPLEMENT 2 (21/11/2026) : bouton vers la page menu Lire et écrire (maquette Bouton.dc.html) */
.jerevise-resources-table a.jr-bouton-menu::after {
    content: "";
    position: absolute;
    top: -10%;
    bottom: -10%;
    left: 0;
    width: 40%;
    pointer-events: none;
    background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.95) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(-160%) skewX(-20deg);
    animation: jr-bouton-menu-reflet 3s ease-in-out infinite;
}
@keyframes jr-bouton-menu-reflet {
    0% { transform: translateX(-160%) skewX(-20deg); }
    60% { transform: translateX(320%) skewX(-20deg); }
    100% { transform: translateX(320%) skewX(-20deg); }
}
@media (hover: hover) {
    .jerevise-resources-table a.jr-bouton-menu:hover {
        transform: scale(1.06) !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    .jerevise-resources-table a.jr-bouton-menu::after {
        animation: none !important;
        opacity: 0 !important;
    }
}
@media (max-width: 480px) {
    .jerevise-resources-table a.jr-bouton-menu {
        font-size: 18px !important;
    }
    .jerevise-resources-table a.jr-bouton-menu .jr-bouton-menu-pastille {
        width: 40px !important;
        height: 40px !important;
    }
}

/* GEO-MENU-01 COMPLÉMENT 22 (21/11/2026) : fiche du son en HTML fixe, aspect de la fiche de la roue (#67380). Préfixé .jr-fs. */
.jerevise-resources-table.jr-fs{padding:0 !important;margin:0 auto !important;width:auto !important;max-width:none !important;display:block !important;background:none !important;border:0 !important;border-radius:0 !important;box-shadow:none !important;overflow:visible !important}
.jr-fs .jr-fs-cadre{box-sizing:border-box;border:1px solid #2c5282;border-radius:15px;background:linear-gradient(#ffffff,#e8f1fb);box-shadow:0 8px 16px -4px rgba(23,60,110,0.22);padding:22px 18px 22px;display:flex;flex-direction:column;gap:22px;font-family:Verdana,Geneva,sans-serif;color:#1d2a3a;text-align:left}
.jr-fs .jr-fs-tete{display:flex;align-items:center;gap:16px;margin-bottom:26px}
.jr-fs .jr-fs-lettre{width:62px;height:62px;flex:none;box-sizing:border-box;display:flex;align-items:center;justify-content:center;border-radius:12px;border:2px solid #1d2a3a;background:linear-gradient(#ffffff 55%,#e6edf6);box-shadow:inset 0 2px 0 #ffffff,inset 0 -4px 0 rgba(23,60,110,0.14),0 8px 14px -6px rgba(23,60,110,0.5);color:#1d2a3a;font-size:34px;line-height:1}
.jr-fs .jr-fs-nom{font-weight:700;font-size:26px;line-height:1.2;color:#1d2a3a}
.jr-fs .jr-fs-colonnes{display:grid;grid-template-columns:minmax(0,1fr);gap:22px}
@media (min-width:768px){.jr-fs .jr-fs-colonnes{grid-template-columns:repeat(3,minmax(0,1fr))}}
.jr-fs .jr-fs-col{min-width:0;display:flex;flex-direction:column;gap:10px}
.jr-fs .jr-fs-titre{display:block;font-weight:700;font-size:18px;line-height:1.2;color:#2c5282}
.jerevise-resources-table.jr-fs a.jr-fs-tuile,.jerevise-resources-table.jr-fs .jr-fs-tuile-pdf{display:flex;align-items:center;gap:12px;min-height:58px;box-sizing:border-box;padding:6px 14px;border:2px solid #8a94a0;border-radius:12px;background:#ffffff;color:#1d2a3a !important;text-decoration:none !important;font-size:17px;line-height:1.25;transition:transform 180ms ease !important}
.jerevise-resources-table.jr-fs .jr-fs-tuile-pdf{flex-wrap:wrap;gap:8px 10px;padding:6px 10px 6px 14px;transition:none !important}
.jerevise-resources-table.jr-fs .jr-fs-tuile-pdf a.jr-fs-pdf-lien{flex:1 1 150px;min-width:0;display:flex;align-items:center;gap:12px;color:#1d2a3a !important;text-decoration:none !important;transition:transform 180ms ease !important}
.jr-fs .jr-fs-txt{display:flex;flex-direction:column;min-width:0;overflow-wrap:break-word}
.jr-fs .jr-fs-aide{font-size:14px;color:#5b6878}
.jr-fs .jr-fs-ico-video{width:42px;height:30px;flex:none;border-radius:9px;background:linear-gradient(#4a78b8,#1f3f6b);display:flex;align-items:center;justify-content:center;box-shadow:inset 0 1px 0 rgba(255,255,255,0.4),inset 0 -2px 3px rgba(0,0,0,0.25),0 3px 6px -2px rgba(23,60,110,0.55)}
.jr-fs .jr-fs-ico-video svg{display:block;width:22px;height:22px}
.jr-fs .jr-fs-ico-num{width:34px;height:34px;flex:none;border-radius:50%;border:2px solid #2c5282;box-sizing:border-box;display:flex;align-items:center;justify-content:center;background:linear-gradient(#ffffff,#dfe8f4);box-shadow:inset 0 1px 0 #ffffff,inset 0 -2px 3px rgba(23,60,110,0.15),0 3px 6px -2px rgba(23,60,110,0.45);font-weight:700;font-size:16px;line-height:1;color:#2c5282}
.jr-fs .jr-fs-ico-pdf{width:34px;height:34px;flex:none;border-radius:8px;background:linear-gradient(#e85a5a,#c53030 55%,#9b1c1c);color:#ffffff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:11px;line-height:1;text-shadow:0 1px 1px rgba(0,0,0,0.35);box-shadow:inset 0 1px 1px rgba(255,255,255,0.45),inset 0 -2px 3px rgba(0,0,0,0.28),0 3px 6px -2px rgba(140,10,10,0.55)}
.jerevise-resources-table.jr-fs a.jr-fs-corrige{flex:none;margin-left:auto;padding:7px 11px;border:2px solid #2c5282;border-radius:10px;color:#2c5282 !important;text-decoration:none !important;font-weight:700;font-size:14px;line-height:1;background:linear-gradient(#ffffff,#dfe8f4);box-shadow:inset 0 1px 0 #ffffff,inset 0 -3px 0 rgba(23,60,110,0.15),0 4px 8px -3px rgba(23,60,110,0.5);transition:transform 180ms ease !important}
.jr-fs .jr-fs-autres{margin:18px 0 0;padding:0;font-size:14px;line-height:1.5;color:#5b6878;background:none;text-align:left}
.jerevise-resources-table.jr-fs .jr-fs-autres a{color:#5b6878 !important;text-decoration:underline !important}
@media (hover:hover){.jerevise-resources-table.jr-fs a.jr-fs-tuile:hover,.jerevise-resources-table.jr-fs a.jr-fs-pdf-lien:hover,.jerevise-resources-table.jr-fs a.jr-fs-corrige:hover{transform:scale(1.06);text-decoration:none !important}}
@media (max-width:559px){.jerevise-resources-table.jr-fs a.jr-fs-tuile,.jerevise-resources-table.jr-fs .jr-fs-tuile-pdf{min-height:48px}}

/* GEO-MENU-01 COMPLÉMENT 26 (21/11/2026) : cadre des images de mots, style 1 retenu par Gaetan. Préfixé, ne touche qu'aux cartes de mots. */
.sound-lesson-words-grid .sound-lesson-word-card { box-sizing: border-box; border: 1px solid #2c5282; border-radius: 14px; background: #ffffff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 6px 14px -4px rgba(23, 60, 110, 0.35), 0 2px 3px rgba(23, 60, 110, 0.18); padding: 18px 12px 14px; transition: transform 180ms ease, box-shadow 180ms ease; }
.sound-lesson-words-grid .sound-lesson-word-card:hover { transform: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 6px 14px -4px rgba(23, 60, 110, 0.35), 0 2px 3px rgba(23, 60, 110, 0.18); background: #ffffff; }
.sound-lesson-words-grid .sound-lesson-word-card > p { margin: 0; padding: 0; }
.sound-lesson-words-grid .sound-lesson-word-card img { margin: 0 auto !important; }
.sound-lesson-words-grid .sound-lesson-word-card .sound-lesson-word { margin-top: 10px; text-align: center; color: #1d2a3a; }
.sound-lesson-words-grid .sound-lesson-word-card .sound-lesson-word:not(.sound-lesson-cursive) { font-family: Verdana, Geneva, sans-serif; }
.sound-lesson-words-grid .sound-lesson-word-card.speaking { background: #d1f5d3; border-color: #22c55e; }
@media (max-width: 768px) {
    .sound-lesson-words-grid .sound-lesson-word-card { padding-left: 16px; padding-right: 16px; }
}
@media (hover: hover) {
    .sound-lesson-words-grid .sound-lesson-word-card:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 22px -6px rgba(23, 60, 110, 0.4), 0 3px 5px rgba(23, 60, 110, 0.2); }
}
@media (prefers-reduced-motion: reduce) {
    .sound-lesson-words-grid .sound-lesson-word-card, .sound-lesson-words-grid .sound-lesson-word-card:hover, .sound-lesson-words-grid .sound-lesson-word-card.speaking { transition: none; transform: none; animation: none; }
}

/* GEO-MENU-01 COMPLÉMENT 34 (21/11/2026) : chaque phrase dans son cadre, style des cadres des mots (C26 + C33). CSS seul. Padding du bas 30 px : les jambages de la cursive (p, g, f) dépassaient avec 10 px ; haut 0 : la phrase commence déjà par une ligne vide (<br> d'origine). */
.sound-lesson-sentences { background: none; border: 0; padding: 0; border-radius: 0; }
.sound-lesson-sentences .sound-lesson-sentence { box-sizing: border-box; margin: 0 0 16px; padding: 0 18px 30px; background: #ffffff; border: 1px solid #2c5282; border-radius: 14px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 6px 14px -4px rgba(23, 60, 110, 0.35), 0 2px 3px rgba(23, 60, 110, 0.18); transition: transform 180ms ease, box-shadow 180ms ease; }
.sound-lesson-sentences .sound-lesson-sentence:last-child { margin-bottom: 0; }
.sound-lesson-sentences .sound-lesson-sentence:hover { background: #ffffff; transform: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 6px 14px -4px rgba(23, 60, 110, 0.35), 0 2px 3px rgba(23, 60, 110, 0.18); }
.sound-lesson-sentences .sound-lesson-sentence.speaking { background: #c8e6c9; border-color: #4caf50; }
@media (hover: hover) {
    .sound-lesson-sentences .sound-lesson-sentence:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 22px -6px rgba(23, 60, 110, 0.4), 0 3px 5px rgba(23, 60, 110, 0.2); }
}
@media (prefers-reduced-motion: reduce) {
    .sound-lesson-sentences .sound-lesson-sentence, .sound-lesson-sentences .sound-lesson-sentence:hover { transition: none; transform: none; }
}
/* COMPLÉMENT 44 : titres de partie (style des titres de groupes de la page menu), style du thème sur h2 neutralisé */
.entry-content h2.jr-partie { box-sizing: border-box; margin: 83.2px 0 57.6px; padding: 0 0 8px; border: 0; border-bottom: 1px solid #c9d6e6; border-radius: 0;
    background: none; box-shadow: none; color: #2c5282; font-family: Verdana, Geneva, sans-serif; font-size: 26px; font-weight: bold; font-style: normal;
    line-height: 1.35; text-align: left; text-wrap: balance; text-transform: none; letter-spacing: normal; text-shadow: none; max-width: none; }
.entry-content h2.jr-partie::before, .entry-content h2.jr-partie::after { content: none; display: none; }
.entry-content h2.jr-partie-hors { margin: 63.2px 20px 57.6px; }
/* COMPLÉMENT 48 : sous le trait, 16 px + DEUX lignes vides mesurées sous l'intro de #9438 (p « &nbsp;<br>&nbsp; ») : 41,6 px (2 × 20,8) au-delà
   de 768 px, 39 px (2 × 19,5, texte à 15 px du thème) jusqu'à 768 px. */
@media (max-width: 768px) { .entry-content h2.jr-partie, .entry-content h2.jr-partie-hors { margin-bottom: 55px; } }
/* COMPLÉMENT 50 : au-dessus du titre, TROIS lignes vides (3 × 20,8 = 62,4 px ; jusqu'à 768 px 3 × 19,5 = 58,5 px). Le titre de la fiche est
   hors du conteneur, dont la marge intérieure basse de 20 px s'ajoute : 42,4 / 38,5 px. */
@media (max-width: 768px) { .entry-content h2.jr-partie { margin-top: 78px; } .entry-content h2.jr-partie-hors { margin-top: 58px; } }
/* COMPLÉMENT 54 (modifie le 53, qui modifiait le 50) : au-dessus, QUATRE lignes vides : 4 × 20,8 = 83,2 px ; jusqu'à 768 px 4 × 19,5 = 78 px
   (~~62,4 / 58,5~~). Titre de la fiche : − 20 px de marge intérieure du conteneur. Titre des cours (COMPLÉMENT 53) : − le spacer-medium
   du thème qui le précède (1,7em du texte à 16 px = 27,2 px) ; sous son trait, − les 20 px de marge intérieure haute du bloc du bouton,
   pour que le bouton soit à 57,6 / 55 px du trait. */
.entry-content h2.jr-partie-cours { margin: 56px 20px 37.6px; }
@media (max-width: 768px) { .entry-content h2.jr-partie-cours { margin-top: 50.8px; margin-bottom: 35px; } }
/* COMPLÉMENT 58 : 26 px sur ordinateur (~~20 px~~), 22 px jusqu'à 768 px (~~19 px jusqu'à 559 px~~). */
@media (max-width: 768px) { .entry-content h2.jr-partie { font-size: 22px; } }
/* LECONS-GEN-01 (21/11/2026) : leçons en rangées numérotées (div.jr-rangee > div.jr-vign, ex. #2035, #2042, #2143).
   La vignette de chaque rangée prend le cadre des cartes du modèle (bordure, coins, relief, survol), image 133 px (90 px jusqu'à 768 px,
   colonne de 115 px). Ces sélecteurs remplacent ceux du gabarit des rangées, retirés du _genesis_scripts des leçons migrées. */
.entry-content .jr-vign .sound-lesson-word-card { box-sizing: border-box; position: relative; background: #ffffff; border: 1px solid #2c5282; border-radius: 14px; padding: 12px 10px 10px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 6px 14px -4px rgba(23, 60, 110, 0.35), 0 2px 3px rgba(23, 60, 110, 0.18); transition: transform 180ms ease, box-shadow 180ms ease; }
.entry-content .jr-vign .sound-lesson-word-card:hover { background: #ffffff; transform: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 6px 14px -4px rgba(23, 60, 110, 0.35), 0 2px 3px rgba(23, 60, 110, 0.18); }
.entry-content .jr-vign .sound-lesson-word-card img { width: 133px !important; height: 133px !important; max-width: none; margin: 0 auto 6px !important; background: transparent; }
.entry-content .jr-vign .sound-lesson-word-card:hover img { outline: none; }
.entry-content .jr-vign .sound-lesson-word-card.speaking img { outline: none; }
.entry-content .jr-vign .sound-lesson-word-card.speaking { background: #d1f5d3; border-color: #22c55e; }
@media (hover: hover) {
    .entry-content .jr-vign .sound-lesson-word-card:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 22px -6px rgba(23, 60, 110, 0.4), 0 3px 5px rgba(23, 60, 110, 0.2); }
}
@media (prefers-reduced-motion: reduce) {
    .entry-content .jr-vign .sound-lesson-word-card, .entry-content .jr-vign .sound-lesson-word-card:hover { transition: none; transform: none; }
}
@media (max-width: 768px) {
    .entry-content .jr-vign .sound-lesson-word-card { padding: 8px 6px 6px; }
    .entry-content .jr-vign .sound-lesson-word-card img { width: 90px !important; height: 90px !important; }
}

/* SON-GN-01 COMPLEMENT 5 (21/11/2026) : classe reutilisable .jr-mots-longs, a poser sur la grille des mots
   (.sound-lesson-words-grid) d'une lecon dont un mot en imprimerie est trop large pour un telephone (ex. champignon, son-gn).
   Sous 480 px : deux colonnes egales, marges de carte reduites, mots en imprimerie a 22 px (la cursive ne change pas).
   Sans la classe, rien ne change. */
@media (max-width: 480px) {
    .entry-content .sound-lesson-words-grid.jr-mots-longs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .entry-content .sound-lesson-words-grid.jr-mots-longs .sound-lesson-word-card { padding-left: 6px; padding-right: 6px; }
    .entry-content .sound-lesson-words-grid.jr-mots-longs .sound-lesson-word:not(.sound-lesson-cursive) { font-size: 22px; }
}

/* SON-GN-01 COMPLEMENT 7 (21/11/2026) : classe reutilisable .jr-api, a poser en <span class="jr-api">…</span> sur un symbole API
   (ex. U+0272) LA SEULEMENT ou la police de l'element n'a pas le glyphe. Cursif n'a ni \u0272 ni \u0292 : sans la classe, le titre
   cursif tombe sur la police generique « cursive » (ecriture penchee sur iPhone). Arial, Helvetica Neue et Helvetica ont le glyphe.
   Taille et ligne de base du parent (1em, baseline). Sans la classe, rien ne change. */
.jr-api { font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-style: normal; font-weight: inherit; font-size: 1em; vertical-align: baseline; }
