/* Section lycée : complète assets/css/main.css (Editorial) */

.fil { font-size: .85rem; margin: 0 0 1rem; color: #7f888f; }
.fil a { border-bottom: none; }
.chap-num { margin: 0; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: #f56a6a; font-weight: 600; }
.cours header.main h1 { margin-bottom: .6em; }

/* Sommaire du chapitre */
.sommaire { border: 1px solid rgba(210,215,217,.9); border-radius: .375em; padding: .6em 1em; margin: 0 0 1.5em; background: #f5f6f7; }
.sommaire summary { cursor: pointer; font-weight: 600; font-family: "Roboto Slab", serif; color: #3d4449; }
.sommaire ol { margin: .6em 0 0; }
.sommaire li.partie { list-style: none; margin-left: -1.25em; font-weight: 600; margin-top: .4em; }
.sommaire a { border-bottom: none; }

/* Titres */
.cours h2 { margin-top: 1.6em; padding-bottom: .25em; border-bottom: solid 3px #f56a6a; display: inline-block; }
.cours h2.partie { display: block; border-bottom: none; background: #3d4449; color: #fff; padding: .4em .7em; border-radius: .375em; }
.cours h2, .cours h3 { scroll-margin-top: 1em; }

/* Boîtes (couleurs reprises de style.sty) */
.boite { --c: 20,60,110; border: 1px solid rgb(var(--c)); border-radius: .375em; margin: 0 0 1.4em; background: rgba(var(--c), .05); overflow: hidden; scroll-margin-top: 1em; }
.boite-titre { background: rgb(var(--c)); color: #fff; font-weight: 600; padding: .35em .8em; font-size: .95em; display: flex; justify-content: space-between; gap: 1em; }
.boite-corps { padding: .7em .9em; }
.boite-corps > :last-child { margin-bottom: 0; }
.boite-corps p { margin-bottom: .8em; }
.boite .ancre { color: inherit; opacity: .35; border-bottom: none; font-weight: 400; }
.boite .ancre:hover { opacity: 1; color: inherit !important; }
.boite.def  { --c: 20,60,110; }
.boite.prop, .boite.thm { --c: 20,110,70; }
.boite.thm  { border-width: 2px; }
.boite.meth { --c: 160,90,10; }
.boite.ex   { --c: 120,120,120; background: rgba(0,0,0,.03); }
.boite.ex .boite-titre, .boite.rem .boite-titre, .boite.dem .boite-titre, .boite.hist .boite-titre { background: transparent; color: rgb(var(--c)); padding-bottom: 0; }
.boite.rem  { --c: 90,90,90; }
.boite.rem .boite-titre { font-style: italic; }
.boite.dem  { --c: 60,60,60; background: #fff; border-style: dashed; }
.boite.algo { --c: 100,100,100; background: rgba(0,0,0,.04); }
.boite.hist { --c: 128,110,0; background: rgba(255,230,0,.08); }
.boite.hist .boite-titre { font-style: italic; }

/* Contenus */
.cours .centre { text-align: center; margin: 0 0 1em; }
.cours .centre .tableau-scroll { display: flex; justify-content: center; }
.cours .minipage { display: inline-block; vertical-align: top; margin: 0 1em 1em; text-align: center; }
.cours .colonnes { columns: 2 16em; }
.cours .fig { margin: .5em auto 1em; text-align: center; }
.cours .fig img { max-width: 100%; height: auto; }
.cours .katex-display { overflow-x: auto; overflow-y: hidden; padding: .2em 0; }
.cours pre.code { margin: 0 0 1em; }
.cours pre.code code { display: block; font-size: .85em; line-height: 1.5; padding: .8em 1em; white-space: pre; overflow-x: auto; }
.cours ul, .cours ol { margin-bottom: 1em; }
.cours li { margin-bottom: .3em; }

/* Tableaux */
.tableau-scroll { overflow-x: auto; margin: 0 0 1em; }
.cours table.tableau { width: auto; margin: 0; border-collapse: collapse; }
.cours table.tableau tr, .cours table.tableau tbody tr:nth-child(2n+1) { background: transparent; border: none; }
.cours table.tableau td { padding: .35em .8em; border: none; }
.cours table.tableau tr.filet-haut td { border-top: 1px solid #3d4449 !important; }
.cours table.tableau tr.filet-bas td { border-bottom: 1px solid #3d4449 !important; }
.cours table.booktabs tr:first-child td { font-weight: 600; }

/* Exerciseurs */
.exos { margin: 0 0 1.5em; }
.exos h2 { font-size: 1.1em; border: none; margin: 0 0 .5em; display: block; }
.exo-carte { display: flex; flex-direction: column; gap: .15em; border: 2px solid #f56a6a; border-radius: .5em; padding: .7em 1em; margin-bottom: .6em; background: #fef0f0; color: #3d4449; border-bottom: 2px solid #f56a6a; }
.exo-carte:hover { background: #fde3e3; color: #3d4449 !important; }
.exo-carte span { font-size: .9em; color: #7f888f; }
.exo-carte .exo-badge { font-size: .75em; text-transform: uppercase; letter-spacing: .08em; color: #f56a6a; font-weight: 700; }

/* Navigation entre chapitres */
.chap-nav { display: flex; justify-content: space-between; gap: 1em; margin: 3em 0 1em; padding-top: 1em; border-top: 1px solid rgba(210,215,217,.9); flex-wrap: wrap; }
.chap-nav a { border-bottom: none; font-weight: 600; }
.chap-nav .suiv { margin-left: auto; text-align: right; }

/* Sommaire lycée */
.lycee-banner { padding-top: 2em; padding-bottom: 2em; }
.chap-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(16em, 1fr)); gap: 1.5em; margin-bottom: 1.5em; }
.chap-carte { border: 1px solid rgba(210,215,217,.9); border-radius: .5em; padding: 1em 1.2em; display: flex; flex-direction: column; }
.chap-carte h3 { margin: .2em 0 .5em; }
.chap-carte h3 a { border-bottom: none; color: inherit; }
.chap-secs { font-size: .85em; color: #7f888f; margin: 0 0 1em; padding-left: 1.1em; flex: 1; }
.chap-secs li { padding-left: 0; }
.chap-carte .actions { margin: 0; }
.chap-carte .actions li { padding: 0 .6em 0 0; }
.a-venir { color: #7f888f; font-style: italic; }
.parcours-titre { margin: 1.5em 0 .8em; padding-left: .6em; border-left: 4px solid #f56a6a; scroll-margin-top: 1em; }
.lycee-banner .niveaux { font-weight: 600; }
.lycee-banner .niveaux a { border-bottom: none; }
#lycee .features article .content p a { white-space: nowrap; }
#menu a.actif { color: #f56a6a; }

@media screen and (max-width: 736px) {
  .boite-corps { padding: .6em .7em; }
  .cours .minipage { display: block; margin: 0 0 1em; }
  .chap-secs { display: none; }
  .chap-grille { gap: 1em; }
}

@media print {
  #sidebar, .chap-nav, .exos, .sommaire, .fil, .boite .ancre { display: none !important; }
  .boite { break-inside: avoid; }
}
