/* Visuels de notion (piste A « Formes vives »). Les valeurs de repli rendent le fichier autonome. */

.notion {
  display: block;
  width: 100%;
  height: auto;
  max-width: 720px;
  margin-inline: auto;
  font-family: var(--police-texte, 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif);
  overflow: visible;
}

.notion text {
  fill: var(--encre, #1B1340);
  text-anchor: middle;
  dominant-baseline: central;
}

/* Fonds et cases */
.notion .fond { fill: var(--lavande, #F4F1FF); }
.notion .case { fill: var(--blanc, #FFFFFF); stroke: var(--violet-trait, #8C74E8); stroke-width: 1.5; }
.notion .case-fine { stroke-width: 0.8; }
.notion .case-unite { stroke: var(--encre, #1B1340); stroke-width: 2.5; }
.notion .contour { fill: none; stroke: var(--encre, #1B1340); stroke-width: 2.5; }

/* Surlignages : toujours doublés d'un texte, d'une forme ou de hachures (jamais la couleur seule) */
.notion .surligne { fill: var(--soleil, #FFD23F); }
.notion .resultat-fond { fill: var(--menthe, #2FD4A3); stroke: var(--encre, #1B1340); stroke-width: 1.5; }
.notion .pastille-soleil { fill: var(--soleil, #FFD23F); stroke: var(--encre, #1B1340); stroke-width: 1.5; }
.notion .pastille-point { fill: var(--blanc, #FFFFFF); stroke: var(--encre, #1B1340); stroke-width: 2; }
.notion .pastille-point.resultat-fond { fill: var(--menthe, #2FD4A3); }
.notion .colorie { fill: var(--soleil, #FFD23F); }
.notion .hachure-trait { stroke: var(--encre, #1B1340); stroke-width: 1.6; opacity: 0.55; }
.notion .entoure { fill: var(--soleil, #FFD23F); fill-opacity: 0.45; stroke: var(--encre, #1B1340); stroke-width: 3; stroke-dasharray: 7 4; }
.notion .badge { fill: var(--encre, #1B1340); }
.notion .badge-texte { fill: var(--blanc, #FFFFFF); font-weight: 800; }
.notion .objet { fill: var(--ciel, #5CC8FF); stroke: var(--encre, #1B1340); stroke-width: 1.5; }

/* Textes */
.notion .entete { font-family: var(--police-titre, 'Baloo 2', ui-rounded, 'Arial Rounded MT Bold', 'Trebuchet MS', system-ui, sans-serif); font-weight: 800; }
.notion .entete-valeur { font-size: 9px; fill: var(--encre-douce, #4A3F73); }
.notion .chiffre { font-family: var(--police-titre, 'Baloo 2', ui-rounded, 'Arial Rounded MT Bold', 'Trebuchet MS', system-ui, sans-serif); font-weight: 800; }
.notion .chiffre-gras { font-weight: 800; }
.notion .chiffre-ajoute { font-weight: 800; }
.notion .virgule { fill: var(--corail-fonce, #C2321F); font-family: var(--police-titre, system-ui, sans-serif); font-weight: 800; }
.notion .etiquette { font-family: var(--police-titre, 'Baloo 2', ui-rounded, 'Arial Rounded MT Bold', 'Trebuchet MS', system-ui, sans-serif); font-weight: 800; }
.notion .legende { fill: var(--encre-douce, #4A3F73); font-weight: 700; }
.notion .trait-fraction { stroke: var(--encre, #1B1340); stroke-width: 2.2; }

/* Flèches et traits */
.notion .fleche { stroke: var(--encre, #1B1340); stroke-width: 3; stroke-linecap: round; fill: none; }
.notion .fleche-pointe { fill: var(--encre, #1B1340); }
.notion .arc { fill: none; stroke: var(--encre, #1B1340); stroke-width: 3; stroke-linecap: round; }

/* Horloge */
.notion .graduation { stroke: var(--encre-douce, #4A3F73); stroke-width: 1; }
.notion .graduation-grosse { stroke: var(--encre, #1B1340); stroke-width: 2; }
.notion .secteur { stroke: var(--soleil, #FFD23F); fill: none; opacity: 0.9; }
.notion .secteur-hachure { fill: none; opacity: 0.7; }
.notion .rayon { stroke: var(--encre, #1B1340); stroke-width: 2.5; stroke-linecap: round; }
.notion .aiguille { stroke: var(--corail-fonce, #C2321F); stroke-width: 5; stroke-linecap: round; }
.notion .pivot { fill: var(--encre, #1B1340); }
.notion .quart-trait { stroke: var(--violet-vif, #7B5CFF); stroke-width: 2.5; stroke-dasharray: 5 5; }
.notion .anneau { fill: none; stroke: var(--encre, #1B1340); stroke-width: 3; stroke-dasharray: 3 5; }

/* Cadran pour lire et placer l'heure : petite aiguille épaisse et courte, grande fine et longue */
.notion-cadran-heure .aiguille-heures { stroke: var(--corail-fonce, #C2321F); stroke-width: 9; stroke-linecap: round; }
.notion-cadran-heure .aiguille-minutes { stroke: var(--violet, #3A1C9A); stroke-width: 5; stroke-linecap: round; }
.notion-cadran-heure .trotteuse { stroke: var(--encre-douce, #4A3F73); stroke-width: 2; stroke-linecap: round; }
.notion-cadran-heure .halo { stroke: var(--soleil, #FFD23F); stroke-linecap: round; stroke-width: 18; }
.notion-cadran-heure .halo-trotteuse { stroke-width: 10; }
.notion-cadran-heure .part-heure { fill: var(--soleil, #FFD23F); fill-opacity: 0.55; stroke: var(--encre, #1B1340); stroke-width: 1.5; stroke-dasharray: 4 3; }
.notion-cadran-heure .cercle-nombre { fill: var(--soleil, #FFD23F); stroke: var(--encre, #1B1340); stroke-width: 2; }
.notion-cadran-heure .compte-minutes { fill: var(--violet, #3A1C9A); font-weight: 800; }
.notion-cadran-heure .ecran { fill: var(--encre, #1B1340); }
.notion-cadran-heure .ecran-cadre { fill: none; stroke: var(--soleil, #FFD23F); stroke-width: 3; }
.notion-cadran-heure .digital { fill: var(--soleil, #FFD23F); font-family: var(--police-titre, 'Baloo 2', ui-rounded, system-ui, sans-serif); font-weight: 800; font-variant-numeric: tabular-nums; }
.notion-cadran-heure .aiguille-groupe { transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease; }

/* Frise du temps : millénaire en 10 siècles, calendrier de 12 mois */
.notion-frise-temps .coupe { stroke: var(--encre, #1B1340); stroke-width: 2; }
.notion-frise-temps .case-fevrier { fill: var(--soleil, #FFD23F); stroke: var(--encre, #1B1340); stroke-width: 2.5; }

/* Figure codée : le codage est surligné (halo soleil + trait épaissi) à l'étape qui le nomme */
.notion .figure { fill: var(--blanc, #FFFFFF); stroke: var(--encre, #1B1340); stroke-width: 3; stroke-linejoin: round; }
.notion .code-trait { fill: none; stroke: var(--encre, #1B1340); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.notion .code-halo { fill: none; stroke: var(--soleil, #FFD23F); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity 0.5s ease; }
.notion .code.en-avant .code-halo { opacity: 1; }
.notion .code.en-avant .code-trait { stroke: var(--corail-fonce, #C2321F); stroke-width: 3.5; }
.notion .axe { fill: none; stroke: var(--violet-vif, #7B5CFF); stroke-width: 3; stroke-dasharray: 8 6; stroke-linecap: round; }
.notion .axe-halo { fill: none; stroke: var(--soleil, #FFD23F); stroke-width: 9; opacity: 0; transition: opacity 0.5s ease; }
.notion .code.en-avant .axe-halo { opacity: 0.8; }
.notion .lettre { font-family: var(--police-titre, 'Baloo 2', ui-rounded, 'Arial Rounded MT Bold', 'Trebuchet MS', system-ui, sans-serif); font-weight: 800; }

/* Solides : arêtes vues en trait plein, cachées en pointillés ; faces repérées par couleur ET hachures */
.notion .arete { fill: none; stroke: var(--encre, #1B1340); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.notion .arete-cachee { fill: none; stroke: var(--encre-douce, #4A3F73); stroke-width: 2; stroke-dasharray: 6 6; }
.notion .face-plane { fill: var(--ciel, #5CC8FF); fill-opacity: 0.45; }
.notion .face-base { fill: var(--soleil, #FFD23F); fill-opacity: 0.85; }
.notion .face-courbe { fill: var(--lilas, #D9CCFF); }

/* Diagrammes et tableaux */
.notion .barre { fill: var(--ciel, #5CC8FF); stroke: var(--encre, #1B1340); stroke-width: 2; }
.notion .grille { stroke: var(--lavande-trait, #DCD3FF); stroke-width: 1.5; }
.notion .axe-diagramme { stroke: var(--encre, #1B1340); stroke-width: 2.5; stroke-linecap: round; }
.notion .lecture-trait { stroke: var(--corail-fonce, #C2321F); stroke-width: 3; stroke-dasharray: 6 5; }
.notion .lecture-rond { fill: none; stroke: var(--corail-fonce, #C2321F); stroke-width: 2.5; }
.notion .secteur-a { fill: var(--blanc, #FFFFFF); stroke: var(--encre, #1B1340); stroke-width: 2; }
.notion .secteur-b { fill: var(--lavande-trait, #DCD3FF); stroke: var(--encre, #1B1340); stroke-width: 2; }
.notion .quart-repere { stroke: var(--violet-trait, #8C74E8); stroke-width: 1.2; stroke-dasharray: 3 4; }
.notion .fond-tableau { fill: var(--blanc, #FFFFFF); }
.notion .case-tableau { fill: none; stroke: var(--violet-trait, #8C74E8); stroke-width: 1.5; }
.notion .surligne-doux { fill: var(--soleil, #FFD23F); fill-opacity: 0.45; }

/* Quadrillage et carré-unité : surfaces A (ciel) et B (soleil) toujours nommées par une lettre ;
   demi-carreaux et morceau découpé hachurés ; contour du périmètre en trait épais */
.notion .quad-fond { fill: var(--blanc, #FFFFFF); }
.notion .quad-lignes line { stroke: var(--violet-trait, #8C74E8); stroke-width: 0.9; stroke-opacity: 0.75; }
.notion .carreau-plein { stroke: none; }
.notion .surface-a { fill: var(--ciel, #5CC8FF); }
.notion .surface-b { fill: var(--soleil, #FFD23F); }
.notion .trait-unite { stroke: var(--encre, #1B1340); stroke-width: 1.5; }
.notion .demi-hachure { stroke: none; }
.notion .trait-contour { stroke: var(--encre, #1B1340); stroke-width: 3; stroke-linecap: round; fill: none; }
.notion .trait-perimetre { stroke: var(--corail-fonce, #C2321F); stroke-width: 4; }
.notion .trait-coupe { stroke-dasharray: 6 4; }
.notion .trait-calque { stroke: var(--violet-vif, #7B5CFF); stroke-width: 4; stroke-dasharray: 9 5; stroke-linecap: round; }
.notion .numero { font-weight: 700; }
.notion .lettre-surface { fill: var(--encre, #1B1340); }
.notion .surligne-pale { fill-opacity: 0.55; }
.notion .legende-unite { text-anchor: start; }

/* Compas : segment [AB], demi-droite [Cx) et segment [CD] épaissi */
.notion .compas-segment { stroke: var(--encre, #1B1340); stroke-width: 3; stroke-linecap: round; }
.notion .compas-cd { stroke-width: 6; }
.notion .compas-point { stroke: var(--encre, #1B1340); stroke-width: 2.5; stroke-linecap: round; }
.notion .compas-branche { stroke: var(--encre-douce, #4A3F73); stroke-width: 5; stroke-linecap: round; }
.notion .compas-mine { stroke: var(--violet-vif, #7B5CFF); }
.notion .compas-tete { fill: var(--encre, #1B1340); }
.notion .compas-pointe { fill: var(--corail-fonce, #C2321F); }
.notion .arc-compas { stroke: var(--corail-fonce, #C2321F); stroke-width: 3.5; }

/* Tableau d'addition : zéros du terme en retrait, retenue dans une pastille */
.notion .chiffre-discret { fill: var(--encre-douce, #4A3F73); font-weight: 400; }
.notion .retenue-fond { fill: var(--soleil, #FFD23F); stroke: var(--encre, #1B1340); stroke-width: 1.5; }

/* Rectangle de la distributivité : deux parts séparées par un trait en pointillés et nommées par leur longueur */
.notion .part-a { fill: var(--ciel, #5CC8FF); fill-opacity: 0.45; }
.notion .part-b { fill: var(--soleil, #FFD23F); fill-opacity: 0.6; }
.notion .decoupe { stroke: var(--encre, #1B1340); stroke-width: 3; stroke-dasharray: 7 5; }

/* Bande graduée en dixièmes, repère d'un nombre, accolade « la bande vaut 1 » */
.notion .graduation-bande { stroke: var(--encre, #1B1340); stroke-width: 2; }
.notion .repere-trait { stroke: var(--corail-fonce, #C2321F); stroke-width: 3; stroke-linecap: round; }
.notion .accolade { stroke: var(--encre, #1B1340); stroke-width: 2.5; stroke-linecap: round; }

/* Schéma en barres : barre connue pleine, barre cherchée hachurée ; rangées d'objets entourées */
.notion .barre-connue { fill: var(--ciel, #5CC8FF); }
.notion .barre-cherchee { fill: var(--soleil, #FFD23F); }
.notion .barre-separation { stroke: var(--encre, #1B1340); stroke-width: 2.5; }
.notion .rangee-cadre { fill: var(--soleil, #FFD23F); fill-opacity: 0.35; stroke: var(--encre, #1B1340); stroke-width: 2; stroke-dasharray: 6 4; }

/* Mouvement : glissements et apparitions, coupés si l'élève ou la classe le demande */
.notion .glisse { transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1); }
.notion .secteur,
.notion .secteur-hachure { transition: stroke-dasharray 0.9s ease-in-out; }
.notion .apparait { transition: opacity 0.5s ease; }
.notion .apparait.apres { transition-delay: 0.7s; }

.notion.sans-animation *,
.notion.sans-animation *::before,
.notion.sans-animation *::after {
  transition: none !important;
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .notion *,
  .notion *::before,
  .notion *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Grand écran (vidéoprojecteur) : le visuel garde sa lisibilité en s'agrandissant */
@media (min-width: 900px) {
  .notion { max-width: 880px; }
}
