/* =====================================================================
   refonte.css : style commun des pages publiques (maquette)
   Palette : brique #8E2A1F, beige #F5F0E9 / #D9CFC2, gris chaud #4A4541
   ===================================================================== */
@font-face { font-family:SourceSans; src:url(polices/source-sans-3-latin-400-normal.woff2) format("woff2"); font-weight:400; }
@font-face { font-family:SourceSans; src:url(polices/source-sans-3-latin-400-italic.woff2) format("woff2"); font-weight:400; font-style:italic; }
@font-face { font-family:SourceSans; src:url(polices/source-sans-3-latin-700-normal.woff2) format("woff2"); font-weight:700; }
@font-face { font-family:SourceSerif; src:url(polices/source-serif-4-latin-400-normal.woff2) format("woff2"); font-weight:400; }
@font-face { font-family:SourceSerif; src:url(polices/source-serif-4-latin-700-normal.woff2) format("woff2"); font-weight:700; }

:root { --brique:#8E2A1F; --brique2:#B5432F; --beige:#F5F0E9; --beige2:#D9CFC2; --beige3:#EAE2D7; --gris:#4A4541; --gris2:#6E6862; --texte:#2E2A27; --doux:#6F6760; }
* { box-sizing:border-box; }
html { scroll-padding-top:70px; }
body { margin:0; background:#E9E3DA; color:var(--texte); font:16px/1.65 SourceSans, "Segoe UI", Verdana, sans-serif; }
.page { max-width:1100px; margin:0 auto; background:#fff; min-height:100vh; box-shadow:0 0 0 1px #DDD4C8; }
a { color:var(--brique); text-decoration-thickness:1px; text-underline-offset:2px; }
a:hover { color:var(--brique2); }
img { max-width:100%; height:auto; }
h1, h2, h3 { font-family:SourceSerif, Georgia, serif; color:var(--gris); font-weight:700; line-height:1.25; }
h1 { font-size:34px; margin:0 0 10px; }
h2 { font-size:25px; margin:44px 0 12px; padding-bottom:6px; border-bottom:2px solid var(--beige3); }
h2::before { content:""; display:inline-block; width:18px; height:3px; margin:0 10px 0 0; vertical-align:middle; background:var(--brique); }
h3 { font-size:19px; margin:26px 0 8px; }
p { margin:0 0 12px; }
ul { margin:0 0 14px; padding-left:22px; }
li { margin:0 0 6px; }

/* ---------- en-tête ---------- */
#entete { position:sticky; top:-106px; z-index:50; }
.bandeau { display:flex; align-items:stretch; height:106px; background:#fff; }
.cartouche { flex:0 0 250px; display:flex; flex-direction:column; justify-content:center; align-items:center; background:var(--gris); color:#fff; text-decoration:none; font-family:SourceSerif, Georgia, serif; }
.cartouche:hover { color:#fff; }
.cartouche .bt1 { font-size:42px; line-height:1.05; letter-spacing:1px; }
.cartouche .bt2 { margin-top:6px; font-size:15px; font-variant:small-caps; letter-spacing:1.5px; color:#E6DED4; }
.dessin { flex:0 1 720px; min-width:0; background:url(images/bandeau-elevesherbe.jpg) no-repeat left center; }	/* photo 720 x 106, couleurs adoucies */
.lycee { flex:1 0 130px; display:flex; align-items:center; justify-content:center; }
.lycee img { display:block; width:auto; height:auto; max-width:118px; max-height:86px; }	/* logo en hauteur (logo-lachenal-haut.png) */
.barre { position:relative; display:flex; align-items:center; height:48px; padding:0 0 0 12px; background:var(--gris); font-size:16.5px; }
.marque, .burger { display:none; }
.rubs { display:flex; list-style:none; margin:0; padding:0; height:100%; }
.rub { position:relative; margin:0; }
.rub > .titre { display:flex; align-items:center; gap:7px; height:48px; padding:0 18px; color:#fff; text-decoration:none; border-bottom:3px solid transparent; }
.rub > .titre .fl { width:7px; height:7px; border-right:2px solid #CFC5B9; border-bottom:2px solid #CFC5B9; transform:rotate(45deg) translateY(-3px); }
.rub:hover > .titre, .rub.deplie > .titre, .rub:focus-within > .titre { background:#5D5752; }
.rub.actif > .titre { border-bottom-color:#fff; background:#5D5752; }
.sous { display:none; position:absolute; left:0; top:48px; min-width:310px; padding:10px 0 12px; background:#fff; border:1px solid var(--beige2); border-top:3px solid var(--brique); border-radius:0 0 6px 6px; box-shadow:0 10px 24px rgba(40,30,20,.18); }
@media (hover:hover) { .rub:hover .sous { display:block; } }
.rub:focus-within .sous, .rub.deplie .sous { display:block; }
.sous ul { list-style:none; margin:0; padding:0; }
.sous li { margin:0; }
.sous a { display:block; padding:6px 20px; color:var(--texte); text-decoration:none; line-height:1.35; }
.sous a:hover { background:var(--beige); color:var(--brique); }
.sous a.ici { color:var(--brique); font-weight:700; box-shadow:inset 3px 0 var(--brique); }
.pluloin { margin:8px 20px 4px; padding-top:8px; border-top:1px solid var(--beige3); font-size:12.5px; text-transform:uppercase; letter-spacing:.6px; color:var(--doux); }
.secondaire a { font-size:15px; color:var(--doux); }
.rubprive { margin-left:auto; }
.rubprive .sous { left:auto; right:0; min-width:220px; }
.rubprive .sous li.deco { margin-top:6px; padding-top:6px; border-top:1px solid var(--beige3); }
.rubprive .sous li.deco a { color:var(--doux); }
.cadenas { display:flex; align-items:center; gap:7px; height:48px; padding:0 20px; color:#E6DED4; text-decoration:none; font-size:15px; }
.cadenas:hover, .cadenas.actif { color:#fff; background:#5D5752; }
#pied { display:flex; flex-wrap:wrap; gap:8px 28px; justify-content:center; margin-top:50px; padding:22px; background:var(--beige); border-top:1px solid var(--beige2); font-size:14.5px; }
#pied a { color:var(--gris2); }

/* ---------- page de contenu : une colonne de texte, sommaire en pastilles ---------- */
.contenu { max-width:900px; margin:0 auto; padding:34px 30px 10px; }
.sommaire { margin:0 0 22px; font-size:15px; }
.sommaire ul { display:flex; flex-wrap:wrap; gap:8px; list-style:none; margin:0; padding:0; }
.sommaire li { margin:0; }
.sommaire a { display:block; padding:4px 14px; border:1px solid var(--beige2); border-radius:16px; color:var(--gris); text-decoration:none; }
.sommaire a:hover { border-color:var(--brique); color:var(--brique); }
.texte > h1 + .chapeau { font-size:18.5px; color:var(--doux); margin-bottom:18px; }

/* photos */
figure { margin:16px 0 18px; }
figure img { display:block; width:100%; border-radius:4px; }
figcaption { margin-top:5px; font-size:14px; color:var(--doux); }
.photodroite { float:right; width:360px; margin:4px 0 12px 26px; }
.photodroite img { border-radius:4px; display:block; }

/* encadrés (ce qui était dans la marge et qui est essentiel) */
.encadre { margin:18px 0; padding:14px 18px; background:var(--beige); border-left:4px solid var(--brique); border-radius:0 6px 6px 0; }
.encadre p:last-child { margin-bottom:0; }
.chiffres { display:grid; grid-template-columns:repeat(auto-fit, minmax(150px,1fr)); gap:10px; margin:18px 0; }
.chiffres div { padding:12px 10px; background:var(--beige); border-radius:6px; text-align:center; font-size:14px; line-height:1.35; color:var(--doux); }
.chiffres b { display:block; margin-bottom:4px; font-family:SourceSerif, Georgia, serif; font-size:21px; line-height:1.2; color:var(--brique); }
.chiffres b a { color:inherit; text-decoration:none; }
.alerte { display:flex; gap:14px; align-items:flex-start; margin:18px 0; padding:12px 16px; background:#FBEDEA; border-left:4px solid var(--brique); border-radius:0 6px 6px 0; font-size:15.5px; }
.alerte strong { color:var(--brique); }

/* « Pour aller plus loin » : blocs dépliables */
details.plus { margin:10px 0; border:1px solid var(--beige2); border-radius:6px; background:#fff; }
details.plus > summary { cursor:pointer; list-style:none; padding:10px 16px 10px 40px; position:relative; font-weight:700; color:var(--gris); }
details.plus > summary::-webkit-details-marker { display:none; }
details.plus > summary::before { content:"+"; position:absolute; left:14px; top:8px; width:18px; text-align:center; font-size:20px; line-height:1.2; color:var(--brique); }
details.plus[open] > summary::before { content:"–"; }
details.plus > summary:hover { background:var(--beige); }
details.plus > .dedans { padding:4px 18px 8px; border-top:1px solid var(--beige3); }
.etiquette { margin:28px 0 8px; font-size:12.5px; text-transform:uppercase; letter-spacing:.6px; color:var(--doux); }

/* bulles ouvertes dans le texte */
a.pop { border-bottom:1px dashed var(--brique); text-decoration:none; }
a.pop::after { content:" +"; font-weight:700; }
a.pop.ouvert::after { content:" –"; }
.pp { display:none; }
.bulle { position:relative; margin:4px 0 14px; padding:12px 40px 4px 16px; background:#FFFBF5; border:1px solid var(--beige2); border-radius:6px; font-size:15px; }
.bulle h4 { margin:0 0 6px; font-size:16px; }
.bulle .fermer { position:absolute; right:8px; top:6px; border:0; background:none; font-size:22px; line-height:1; color:var(--doux); cursor:pointer; }

/* diaporama */
.diapo { margin:18px 0; }
/* les photos des diaporamas font environ 500 x 370 px : affichées à leur taille, jamais agrandies, centrées dans un cadre */
.diapo .grande { margin:0; padding:10px; background:var(--beige); border-radius:6px; text-align:center; }
.diapo .grande img { display:block; width:auto; max-width:100%; height:auto; max-height:370px; margin:0 auto; border-radius:3px; }
.diapo .grande figcaption { min-height:1.4em; }
.minis { display:flex; gap:6px; overflow-x:auto; margin-top:8px; padding-bottom:4px; }
/* miniatures : la photo entière, réduite à 50 px de haut (largeur selon la photo), sans recadrage */
.minis button { flex:0 0 auto; height:54px; padding:0; border:2px solid transparent; border-radius:4px; background:none; cursor:pointer; overflow:hidden; }
.minis button img { display:block; height:50px; width:auto; min-width:44px; max-width:none; background:var(--beige); }
.minis button.actif { border-color:var(--brique); }

/* ---------- téléphone ---------- */
@media (max-width:860px) {
  body { font-size:16.5px; }
  .page { box-shadow:none; }
  #entete { top:0; }
  .bandeau { display:none; }
  .barre { padding:0 0 0 16px; height:54px; }
  .marque { display:block; color:#fff; text-decoration:none; font-family:SourceSerif, Georgia, serif; font-size:21px; }
  .marque small { font-family:SourceSans, sans-serif; font-size:13px; font-variant:small-caps; letter-spacing:1px; color:#E6DED4; margin-left:4px; }
  .cadenas { padding:0 12px; height:54px; } .cadenas span { display:none; }
  .cadenas svg { width:23px; height:23px; }   /* à la taille du bouton menu voisin */
  .barre > .rubprive > .titre { height:54px; padding:0 14px; color:#E6DED4; font-weight:400; border:0; background:none; }
  .barre > .rubprive:hover > .titre, .barre > .rubprive.actif > .titre, .barre > .rubprive.deplie > .titre { background:#5D5752; }
  .barre > .rubprive.deplie .sous { position:absolute; display:block; left:auto; right:0; top:54px; width:240px; padding:6px 0 10px; background:#fff; border:1px solid var(--beige2); border-top:3px solid var(--brique); box-shadow:0 10px 24px rgba(40,30,20,.2); }
  /* sans flex ni gap sur le bouton : certains navigateurs de tablette plus anciens n'affichaient pas les traits */
  /* traits placés au pixel près (un bouton centre son contenu à sa façon selon les navigateurs) : centrés sur la barre, comme le cadenas */
  .burger { position:relative; display:block; width:54px; height:54px; padding:0; border:0; background:none; cursor:pointer; -webkit-appearance:none; appearance:none; }
  .burger span { position:absolute; left:15px; display:block; width:24px; height:2.5px; margin:0; background:#fff; border-radius:2px; }
  .burger span:nth-child(1) { top:18.75px; } .burger span:nth-child(2) { top:25.75px; } .burger span:nth-child(3) { top:32.75px; }
  .rubs { display:none; position:absolute; left:0; right:0; top:54px; height:auto; max-height:calc(100vh - 54px); overflow:auto; flex-direction:column; background:#fff; box-shadow:0 12px 24px rgba(0,0,0,.2); }
  .barre.ouvert .rubs { display:flex; }
  .rub > .titre { height:auto; padding:13px 18px; color:var(--gris); font-weight:700; border-bottom:1px solid var(--beige3); justify-content:space-between; }
  .rub > .titre .fl { border-color:var(--brique); }
  .rub:hover > .titre, .rub.actif > .titre, .rub:focus-within > .titre { background:#fff; border-bottom-color:var(--beige3); }
  .rub.deplie > .titre { background:var(--beige); }
  .rub.deplie > .titre .fl { transform:rotate(-135deg); }
  .rub:hover .sous, .rub:focus-within .sous { display:none; }
  .rub.deplie .sous { display:block; position:static; box-shadow:none; border:0; border-radius:0; padding:4px 0 10px; background:var(--beige); }
  .sous a { padding:9px 30px; }
  .contenu { padding:18px 18px 0; }
  .sommaire a { font-size:14.5px; padding:4px 12px; }
  h1 { font-size:28px; } h2 { font-size:22px; margin-top:34px; }
  .photodroite { float:none; width:auto; margin:10px 0 16px; }
}

/* « Pour aller plus loin » : un pavé beige par section, titres sur 2 colonnes, le bloc ouvert prend toute la largeur */
.plusloin { display:grid; grid-template-columns:1fr 1fr; gap:0 26px; margin:22px 0; }
.plusloin .etiquette { grid-column:1/-1; margin:0 0 6px; }
.plusloin details.plus { margin:0; border:0; border-radius:0; background:none; }
.plusloin details.plus[open] { grid-column:1/-1; }
.plusloin details.plus > summary { padding:7px 0 7px 26px; font-weight:400; color:var(--brique); }
.plusloin details.plus > summary::before { left:0; top:5px; }
.plusloin details.plus > summary:hover { background:none; text-decoration:underline; }
.plusloin details.plus[open] > summary { font-weight:700; }
.plusloin details.plus > .dedans { padding:4px 0 10px 26px; border:0; }
.plusloin.b { padding:14px 20px 10px; background:var(--beige); border-radius:6px; }
.plusloin.b details.plus[open] { margin:4px 0 8px; padding:0 14px; background:#fff; border-radius:6px; }
.plusloin.b details.plus[open] > summary { padding-left:26px; }
@media (max-width:600px) { .plusloin { grid-template-columns:1fr; } }

/* ---------- pages converties : titres h4 d'origine = titres de section ---------- */
.texte h4 { font-family:SourceSerif, Georgia, serif; font-size:25px; line-height:1.25; font-weight:700; color:var(--gris); margin:44px 0 12px; padding-bottom:6px; border-bottom:2px solid var(--beige3); clear:both; }
.texte h4::before { content:""; display:inline-block; width:18px; height:3px; margin:0 10px 0 0; vertical-align:middle; background:var(--brique); }
.texte h1 + h4, .texte .sommaire + h4 { margin-top:20px; }
.plusloin h4, .bulle h4, .texte details h4, .carte h4 { font-size:17px; margin:10px 0 6px; padding:0; border:0; clear:none; }
.plusloin h4::before, .bulle h4::before, .texte details h4::before, .carte h4::before { display:none; }
.plusloin { clear:none; }
/* titres et encadrés passent à côté des images flottantes (comme sur l'ancien site) */
.texte h4 { clear:none; display:flow-root; }
.plusloin .lien { position:relative; margin:0; padding:7px 0 7px 26px; }
.plusloin .lien::before { content:"→"; position:absolute; left:2px; color:var(--brique); }
.photogauche { float:left; max-width:360px; margin:4px 26px 12px 0; }
.photodroite { max-width:360px; width:auto; }
.photodroite img, .photogauche img { display:block; max-width:100%; height:auto; border-radius:4px; }
.grande-seule { margin:16px 0; text-align:center; } .grande-seule img { width:auto; max-width:100%; border-radius:4px; }
#hautpage { clear:both; margin:30px 0 0; text-align:right; font-size:14px; }
.info { position:relative; display:block; }
a.info span { display:none; }
a.info:hover { z-index:500; }
a.info:hover span { position:absolute; display:inline; z-index:600; }
@media (max-width:860px) { .texte h4 { font-size:22px; margin-top:34px; } .photogauche { float:none; max-width:none; margin:10px 0 16px; } }

/* encadrés « En savoir + » encore fabriqués par les programmes PHP (résultats) : affichés comme les pavés */
.notemarge { position:static !important; left:auto !important; top:auto !important; width:auto !important; height:auto !important; clear:both; margin:18px 0; padding:14px 20px 10px; background:var(--beige); border:0; border-radius:6px; }
.notemarge p { margin:0 0 6px; font-size:12.5px; text-transform:uppercase; letter-spacing:.6px; color:var(--doux); text-align:left !important; }
.notemarge a { display:block; padding:4px 0; }

/* puce d'origine des titres, encore écrite par certains programmes PHP */
img[src*="puce1.gif"] { display:none; }

/* bascule Tableau / Barres (filières) placée dans un bloc replié : ne pas remonter sur le titre du bloc */
details .vsw { margin-top:6px !important; }

/* ---------------------------------------------------------------------------------------------
   Proportions : les images, schémas et encadrés ont été dessinés pour l'ancienne colonne
   (505 px, texte 14 px). Sur ordinateur, on les agrandit dans la même proportion que le texte :
   ×1,3 pour les photos et les schémas (largeur d'origine conservée, centrés),
   ×1,15 pour les encadrés de texte (pleine largeur). Le téléphone garde sa présentation.
   --------------------------------------------------------------------------------------------- */
@media (min-width:861px) {
  .texte .photodroite, .texte .photogauche { zoom:1.3; width:auto; max-width:308px; }	/* 308 × 1,3 ≈ 400 px affichés */
  .texte .photodroite { margin:3px 0 9px 20px; }
  .texte .photogauche { margin:3px 20px 9px 0; }
  .texte .parcours,
  .texte .photos, .texte .agenda, .texte .orals, .texte .v-bar, .texte .tabc, .texte .niv,
  .texte table.spe, .texte ol.frise5, .texte .dom5, .texte .presidents, .texte ul.frise, .texte .jpo,
  .texte .tot, .texte iframe[src*="admissionsgraphe"]
    { zoom:1.3; max-width:505px; margin-left:auto; margin-right:auto; clear:both; }
  .texte iframe[src*="admissionsgraphe"] { max-width:520px !important; }	/* graphiques de plusdereussite (largeur d'origine 500-520 px) */
  .texte iframe#cadrecomparaison { zoom:1; max-width:none !important; }
  .texte iframe#cadrecomparaisonreduite { zoom:1; max-width:410px !important; }	/* bulle « Comparaison avec d'autres lycées » de nosresultats */	/* comparaison avec les autres lycées : toute la largeur (le graphique s'adapte lui-même) */
  .texte .jpo { margin-left:0; }
  .texte .fonc, .texte .dom, .texte ul.aussi, .texte .filles,	/* (avis des élèves et thèmes des années : tailles réglées directement, sans zoom) */
  .texte .encadre-colle, .texte .oeuvres, .texte .encart-boston, .texte p.legende,
  .texte p.srcf, .texte p.srcp, .texte .qex, .texte .encart-sout, .texte p.st,
  .texte .theme, .texte .articlecote, .texte .artchal-cadre
    { zoom:1.15; }
  .texte .articlecote, .texte .articlecote * { line-height:1.35; }
  .texte .v-bar details.s2 > summary { zoom:.77; }	/* lesfilieres : repli « 2e semestre » dans le schéma agrandi ×1,3 : même taille que les autres replis */
}
/* téléphone : rien ne dépasse de la colonne (vidéos, contenus dépliés dans les encadrés) */
.texte iframe { max-width:100%; }
.plusloin > * { min-width:0; }
/* lesfilieres, « Quelles spécialités au lycée ? » : le tableau tient dans la largeur d'un téléphone */
@media (max-width:600px) {
  table.sp2 { margin-left:0 !important; border-spacing:2px !important; font-size:12px !important; }
  table.sp2 th span { min-width:0 !important; padding:2px 3px !important; font-size:11.5px !important; }
  table.sp2 td.sp2l { width:auto !important; padding:4px 3px 4px 0 !important; font-size:12px; line-height:1.2; }
  table.sp2 td.sp2c { padding:4px 1px !important; font-size:11px !important; line-height:1.2; }
}

/* « duo » : texte + photo d'illustration côte à côte ; la photo prend la hauteur du texte (recadrée, 170 à 360 px),
   à droite (classe duo) ou à gauche (duo gauche). Sur téléphone, la photo est masquée (sauf exceptions plus bas). */
.duo { display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:26px; margin:0 0 9px; }
.duo.gauche { grid-template-columns:280px minmax(0,1fr); }
.duo.gauche .duophoto { order:-1; }
.duotexte > :last-child { margin-bottom:0; }
.duophoto { position:relative; min-height:170px; max-height:360px; margin:4px 0; border-radius:8px; overflow:hidden; background:var(--beige); }
.duophoto > a, .duophoto img { position:absolute; inset:0; display:block; width:100%; height:100%; max-width:none; object-fit:cover; border-radius:0; }
.duophoto > a img { position:static; }
@media (max-width:700px) { .duo, .duo.gauche { display:block; } .duophoto { display:none; } }

/* carrés (atouts, chiffres clés, idées, qualités, internat…) : même style que les cartes de l'accueil,
   4 couleurs qui se suivent (rose brique, bleu, ocre, vert) */
.texte .atouts, .texte .chif, .texte .idees, .texte .chiffres { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:12px; margin:18px 0 12px; clear:both; }
.texte .qualites { gap:12px; margin:12px 0; font-size:15px; line-height:1.4; }
.texte .atouts > *, .texte .chif > *, .texte .idees > *, .texte .chiffres > *, .texte .qualites > * {
  padding:14px 15px 12px; border:0 !important; border-radius:10px; font-size:15px; line-height:1.4; color:var(--gris); box-shadow:none; }
.texte .atouts b, .texte .idees b, .texte .chiffres b, .texte .qualites b { display:block; margin-bottom:6px; font-family:SourceSerif, Georgia, serif; font-size:19px; line-height:1.2; }
.texte .chif > * { text-align:center; }
.texte .chif b { display:block; margin-bottom:4px; font-family:SourceSerif, Georgia, serif; font-size:28px; line-height:1.15; }
.texte :is(.atouts,.chif,.idees,.chiffres,.qualites) > :nth-child(4n+1) { background:#F6E6E1; } .texte :is(.atouts,.chif,.idees,.chiffres,.qualites) > :nth-child(4n+1) b { color:#8E2A1F; }
.texte :is(.atouts,.chif,.idees,.chiffres,.qualites) > :nth-child(4n+2) { background:#E3EAF3; } .texte :is(.atouts,.chif,.idees,.chiffres,.qualites) > :nth-child(4n+2) b { color:#2F5385; }
.texte :is(.atouts,.chif,.idees,.chiffres,.qualites) > :nth-child(4n+3) { background:#F4EAD5; } .texte :is(.atouts,.chif,.idees,.chiffres,.qualites) > :nth-child(4n+3) b { color:#94600F; }
.texte :is(.atouts,.chif,.idees,.chiffres,.qualites) > :nth-child(4n+4) { background:#E5EEDC; } .texte :is(.atouts,.chif,.idees,.chiffres,.qualites) > :nth-child(4n+4) b { color:#4B6B22; }
@media (max-width:600px) { .texte .atouts, .texte .chif, .texte .idees, .texte .chiffres { grid-template-columns:1fr 1fr; } .texte .qualites { grid-template-columns:1fr !important; } }

/* duo : image montrée en entier, sans recadrage (dessins, BD, schémas : classe « entiere » sur duophoto) */
.duophoto.entiere { min-height:0; max-height:none; align-self:start; background:none; }
.duophoto.entiere > a, .duophoto.entiere img { position:static; height:auto; object-fit:contain; }
/* image entière jamais agrandie au-delà de sa taille réelle (sinon floue) */
.duophoto.entiere img.naturelle, .duophoto img[src$="2ansdeprepa.jpg"] { width:auto; max-width:100%; margin:0 auto; }
/* sur téléphone, les photos d'ambiance des duos restent masquées, mais les images qui expliquent quelque chose
   sont montrées sous le texte, en entier : celles des encarts à déplier, et les dessins, BD, schémas (entiere) */
@media (max-width:700px) {
  details .duophoto, .duophoto.entiere { display:block; position:static; min-height:0; max-height:none; max-width:280px; margin:14px auto 4px; background:none; }
  .duo.petite .duophoto { max-width:160px; }
  details .duophoto > a, details .duophoto img, .duophoto.entiere > a, .duophoto.entiere img { position:static; width:100%; height:auto; object-fit:contain; border-radius:8px; }
}

/* photo seule sur sa ligne : centrée (classe posée par entete.js) */
.centree { text-align:center; }
.centree img { margin-left:auto; margin-right:auto; }
.centree[style*="margin-left"] { margin-left:0 !important; }	/* ancien décalage au pixel (annuaire) */

/* lavisdeseleves : cartes des témoignages, fond coloré identique, légère montée au survol */
.texte details.tcarte { border:0; border-radius:10px; background:#EAF0F7; box-shadow:0 1px 2px rgba(40,50,70,.08); transition:transform .15s, box-shadow .15s; }
.texte details.tcarte:not([open]):hover { transform:translateY(-3px); box-shadow:0 8px 18px rgba(40,50,70,.16); }
.texte details.tcarte summary:hover { background:none; }
.texte details.tcarte[open] { background:#F3F6FA; box-shadow:0 0 0 1px #C9D7EC; }
/* informatique : logos des logiciels un peu plus grands */
.texte .logi { gap:18px; }
.texte .logi img { width:140px; }
@media (max-width:600px) { .texte .logi img { width:100px; } }
/* duo « petite » : colonne de l'image deux fois plus étroite (140 px) */
.duo.petite { grid-template-columns:minmax(0,1fr) 140px; }
.duo.gauche.petite { grid-template-columns:140px minmax(0,1fr); }
/* chiffres secondaires (autresetudes, université) : carrés discrets, sans couleur */
.texte .chif.discret { gap:8px; margin:10px 0; }
.texte .chif.discret > * { padding:9px 10px 8px; background:#F5F0E9 !important; font-size:14px; color:#6B635C; }
.texte .chif.discret b { font-family:inherit; font-size:18px; font-weight:700; color:var(--gris) !important; }
/* autresetudes : étiquettes INSA, UTC… sur une seule ligne, centrées (sur plusieurs lignes si l'écran est étroit) */
.texte p.tags { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; max-width:none; margin:10px 0 14px; }
.texte p.tags a.tag { padding:5px 14px; font-size:15px; line-height:22px; }
/* autresetudes : BD de Mathieu un peu plus grande que les autres « petites » (140 px + 15 %) */
.duo.petite:has(img[src$="mathieunucl.gif"]) { grid-template-columns:minmax(0,1fr) 161px; }
/* volets : une image posée seule (hors paragraphe) est centrée */
.dedans > img, .dedans > a > img:only-child { display:block; margin:8px auto; }
/* rangée de photos (Ptsialachenal, bas de page) : plus grandes, centrées */
.texte .photoscadre { display:flex !important; justify-content:center !important; flex-wrap:wrap; gap:10px !important; margin:16px 0 8px !important; }
.texte .photoscadre img { height:230px !important; width:auto; max-width:100%; border-radius:6px !important; }
@media (max-width:700px) { .texte .photoscadre img { height:140px !important; } }

/* téléphone : volets plus larges (moins de marges), contenus qui ne passent pas à la ligne autorisés à le faire */
@media (max-width:600px) {
  .plusloin.b { padding:12px 12px 8px; }
  .plusloin details.plus > .dedans { padding-left:0; padding-right:0; }
  .texte [style*="white-space:nowrap"], .dedans .fr-carte .fr-m { white-space:normal !important; }
  .texte .orals { flex-direction:column; }
  .texte .orals > .ocard { flex:none; }
  .dedans .fr-cartes, .dedans .cmpx { gap:8px; }
}

/* metiers : cartes des domaines à fond teinté de leur couleur (--c), sans filet, texte plus grand */
.texte .domc { position:relative; isolation:isolate; border:0 !important; border-radius:10px; padding:14px 16px 10px; background:#FFFFFF; }
.texte .domc::before { content:""; position:absolute; inset:0; z-index:-1; border-radius:inherit; background:var(--c, #D9CFC2); opacity:.13; }	/* teinte : la couleur du domaine, très claire (marche sur tous les navigateurs) */
#principal.texte .domc h5 { margin:0 0 10px; font-family:SourceSerif, Georgia, serif; font-size:17px; line-height:1.25; filter:brightness(.75); }
#principal.texte .domc li { margin:0 0 8px; font-size:14.5px; line-height:1.4; }
.texte .domc li span { font-size:13px; }
.texte .domc details summary { font-size:14px; color:var(--c, #2F5F99); filter:brightness(.75); }
.texte .domc details[open] summary { color:#8A8AA0; filter:none; }
.texte .domphoto img { border-radius:10px; }

/* « Pour aller plus loin » : les liens (documents, sites) se distinguent des volets à déplier */
.plusloin .lien::before { content:"↗"; }
.plusloin .lien a::after { margin-left:6px; font-size:12.5px; font-weight:400; color:var(--doux); }
.plusloin .lien a[href^="http"]::after { content:"· lien vers le site"; }
.plusloin .lien a[href$=".pdf" i]::after { content:"· document PDF"; }
.plusloin .lien a[href$=".jpg" i]::after, .plusloin .lien a[href$=".jpeg" i]::after, .plusloin .lien a[href$=".png" i]::after, .plusloin .lien a[href$=".gif" i]::after { content:"· image"; }
.plusloin .lien a { text-decoration-color:transparent; }
.plusloin .lien a:hover { text-decoration-color:currentColor; }
/* barre de menu : maison = retour à l'accueil (ordinateur ; sur téléphone, « PTSI – PT » joue ce rôle) */
.maison { display:flex; align-items:center; justify-content:center; align-self:stretch; width:46px; margin-left:-12px; color:#E6DED4; text-decoration:none; }
.maison:hover, .maison.actif { color:#fff; background:#5D5752; }
@media (max-width:860px) { .maison { display:none; } }
/* écrans moyens (tablettes, petits portables) : la barre de menu tient sur une ligne */
.rub > .titre { white-space:nowrap; }
@media (min-width:861px) and (max-width:1120px) {
  .barre { font-size:15px; }
  .rub > .titre { gap:4px; padding:0 9px; }
  .cadenas { padding:0 12px; }
  .maison { width:38px; }
}
@media (min-width:861px) and (max-width:960px) {
  .barre { font-size:14px; }
  .rub > .titre { padding:0 7px; }
  .rub > .titre .fl { display:none; }
  .cadenas span:not(.fl) { display:none; }
}
/* encadré à trois volets côte à côte (si.html, témoignages d'élèves) */
.plusloin.trois { grid-template-columns:repeat(3,1fr); }
@media (max-width:600px) { .plusloin.trois { grid-template-columns:1fr; } }

/* page SI : une seule couleur d'accent (bleu ardoise), tailles de texte alignées sur le reste de la page */
@media (min-width:861px) { .texte .qex, .texte ol.frise5, .texte .encart-sout, .texte .qualites { zoom:1 !important; max-width:none !important; } }
.texte .qex { font-size:15px; line-height:1.45; border-radius:10px; overflow:hidden; background:#fff; box-shadow:0 0 0 1px #E3EAF3; }
.texte .qex > div { grid-template-columns:150px 1fr 196px; padding:10px 14px; border-bottom-color:#E3EAF3; }
.texte .qex > div:nth-child(even) { background:#F6F8FB; }
.texte .qex > div.tete { padding:8px 14px; border-radius:0; background:#E3EAF3; color:#2F5385; font-size:12.5px; }
.texte .qex p.qq { font-size:13px; line-height:1.35; }
.texte .qex p.qq strong { color:#2F5385; font-size:15px; line-height:1.3; }
.texte .qex img { width:186px; height:124px; border-radius:6px; }
.texte ol.frise5 { font-size:15px; line-height:1.45; margin:14px 0; }
.texte ol.frise5 li { padding:0 0 14px 44px; }
.texte ol.frise5 li:before { width:28px; height:28px; background:#2F5385; font-size:15px; line-height:28px; }
.texte ol.frise5 li:after { left:13px; top:30px; background:#D4DEEC; }
.texte ol.frise5 b { color:#2F5385; font-size:16px; }
.texte ul.coches li:before { background:#E3EAF3; color:#2F5385; }
.texte .encart-sout { padding:16px 20px 8px; background:#E3EAF3; border:0; border-radius:10px; font-size:15px; line-height:1.5; }
#principal.texte .encart-sout p.titre { font-size:18px; color:#2F5385; }
.texte .qualites > * { background:#F1F5FA !important; }
.texte .qualites > * b { color:#2F5385 !important; }
@media (max-width:600px) { .texte .qex > div { grid-template-columns:1fr; row-gap:4px; } .texte .qex img { display:block; width:100%; max-width:280px; height:auto; margin:6px auto 0; } .texte .qex > div.tete span.span2 { grid-column:auto; } }
/* emploi du temps (vieenprepa, emploidutemps) : pas de barre de défilement verticale ; texte blanc plus fin et plus lisible */
.edt-defile { overflow-y:hidden; padding-bottom:4px; }
.edt-b { font-weight:400 !important; font-size:13px !important; line-height:15px !important; letter-spacing:.2px; -webkit-font-smoothing:antialiased; text-shadow:0 1px 1px rgba(0,0,0,.18); }
.edt-b small { font-size:11px !important; font-weight:400 !important; }
/* alerte à plusieurs points (linternat : fermé le week-end, saturation) : triangle « attention » et liste séparée par un filet */
.alerte svg.triangle { flex:0 0 auto; margin-top:2px; }
.alerte ul.alertes { margin:0; padding:0; list-style:none; }
.alerte ul.alertes li { margin:0; padding:0; }
.alerte ul.alertes li + li { margin-top:10px; padding-top:10px; border-top:1px solid #EFCFC8; }

/* pourvous : tailles alignées sur le texte, une seule teinte d'encadré, carrés de chiffres dans un même bleu */
@media (min-width:861px) { .texte table.spe, .texte ul.aussi, .texte .chances, .texte .filles { zoom:1 !important; max-width:none !important; } }
.texte table.spe { font-size:15px; margin:8px 0 10px; }
.texte table.spe th { font-size:12.5px; color:#2F5385; border-bottom-color:#2F5385; }
.texte table.spe td { line-height:1.45; padding:8px 10px; }
.texte table.spe td.c { width:150px; border-left-color:#2F5385; }
.texte ul.aussi { font-size:15px; line-height:1.5; color:inherit; list-style:disc outside; padding-left:20px; }
.texte ul.aussi li { list-style:disc outside; margin-bottom:4px; }
.texte .chances { padding:14px 20px 8px; border:0; border-radius:10px; background:#E3EAF3; font-size:15px; }
.texte .filles { padding:14px 20px 8px; border:0; border-radius:10px; background:#F4EAD5; font-size:15px; line-height:1.5; }
#principal.texte .filles p.fillestit { font-size:17px; color:#94600F; }
.texte .chif.bleu > * { background:#E3EAF3 !important; }
.texte .chif.bleu > * b { color:#2F5385 !important; }
/* consignes : blocs des matières et conseils à la taille du texte de la page (sans agrandissement) */
#principal.texte p.mat-titre, #principal.texte p.conseil-titre { font-size:16px; }

/* taille du texte des pages publiques : 17 px (16 px dans les blocs, 15 px pour les petites mentions) ;
   la partie privée (.prive) garde ses réglages */
.contenu:not(.prive) .texte { font-size:17px; }
.contenu:not(.prive) .texte :is(.qex, ol.frise5, .encart-sout, table.spe, ul.aussi, .chances, .filles, .atouts > *, .chif > *, .idees > *, .chiffres > *, .qualites > *, .domc li, .cmpx > div, .logi) { font-size:16px; }
.contenu:not(.prive) .texte .plusloin details.plus > summary, .contenu:not(.prive) .texte .plusloin .lien { font-size:16.5px; }

/* nosresultats : les 4 chiffres clés en carrés colorés (comme les autres pages) */
.texte .nrtuiles { gap:12px; margin:16px 0 14px; }
.texte .nrtuiles > div { padding:14px 10px 12px; border-radius:10px; font-size:15px; line-height:1.35; color:var(--gris); }
.texte .nrtuiles b { margin-bottom:6px; font-family:SourceSerif, Georgia, serif; font-size:26px; line-height:1.15; }
.texte .nrtuiles small { margin-top:6px; font-size:13px; line-height:1.3; color:var(--doux); }
.texte .nrtuiles span[style] { color:inherit !important; }
.texte .nrtuiles > div:nth-child(1) { background:#F6E6E1; } .texte .nrtuiles > div:nth-child(1) :is(b, span[style]) { color:#8E2A1F !important; }
.texte .nrtuiles > div:nth-child(2) { background:#E3EAF3; } .texte .nrtuiles > div:nth-child(2) :is(b, span[style]) { color:#2F5385 !important; }
.texte .nrtuiles > div:nth-child(3) { background:#F4EAD5; } .texte .nrtuiles > div:nth-child(3) :is(b, span[style]) { color:#94600F !important; }
.texte .nrtuiles > div:nth-child(4) { background:#E5EEDC; } .texte .nrtuiles > div:nth-child(4) :is(b, span[style]) { color:#4B6B22 !important; }
@media (max-width:600px) { .texte .nrtuiles { flex-wrap:wrap; } .texte .nrtuiles > div { flex:1 1 40%; } }
/* graphique des admissions (grapheadmissions.php) : plus grand */
.texte .ga, .texte .ga-leg { max-width:700px !important; }
.texte .ga-leg { font-size:13px; }
/* tableaux détaillés des résultats (tableauresultats.php) : un peu plus grands */
.texte table.nrt { max-width:680px; font-size:13.5px; }
.texte table.nrt th { font-size:11.5px; }
.texte table.nrt td { line-height:18px; padding-top:3px; padding-bottom:3px; }

/* volet « Les groupes d'écoles » (groupesecole.php) : même présentation sur lesecoles et nosresultats ;
   texte à la taille des autres volets, écoles sans recrutement PT en gris */
.texte .dedans:has(.paspt) p { font-size:15px !important; line-height:1.55 !important; text-align:left; }
.texte .dedans .paspt { color:#A0A0B4; }
/* volet « Nos moyennes aux concours » (moyennesconcours.php) : graphiques centrés, textes à la taille des volets */
.texte .dedans #mc_recent svg, .texte .dedans #mc_tout svg { margin:0 auto; }
.texte .dedans:has(#mc_recent) p { font-size:14px !important; line-height:1.45 !important; }
.texte .dedans:has(#mc_recent) > p:first-of-type { text-align:center; }
.texte .dedans:has(#mc_recent) h4 { text-align:center; }
/* téléphone : les anciens tableaux à largeur fixe (width="515"…, résultats des années passées) tiennent dans l'écran */
@media (max-width:600px) {
  .texte table[width] { width:100% !important; }
  .texte table[width] td, .texte table[width] th { word-break:break-word; }
  .texte table.nrt { width:100%; }
  .texte table.nrt td.ec { white-space:normal; word-break:break-word; }
  .texte table.nrt .grp { white-space:nowrap; }
  .texte table.nrt { font-size:13px; }
}

/* navigation de bas de page (construite par entete.js) : page précédente / page suivante, dans l'ordre des menus */
.navpages { display:grid; grid-template-columns:1fr auto 1fr; align-items:end; gap:12px 24px; margin:40px 0 0; padding-top:14px; border-top:1px solid var(--beige2); }
.navpages a { display:block; color:var(--brique); font-size:16.5px; line-height:1.35; text-decoration:none; }
.navpages a:hover { text-decoration:underline; }
.navpages a span { display:block; margin-bottom:2px; color:var(--doux); font-size:11.5px; letter-spacing:.04em; text-transform:uppercase; }
.navpages a.prec { grid-column:1; }
.navpages a.haut { grid-column:2; color:var(--doux); font-size:14px; }
.navpages a.suiv { grid-column:3; text-align:right; }
@media (max-width:600px) {
  .navpages { grid-template-columns:1fr 1fr; margin-top:30px; }
  .navpages a { font-size:16px; }
  .navpages a.prec, .navpages a.suiv { grid-row:1; }
  .navpages a.suiv { grid-column:2; }
  .navpages a.haut { grid-column:1 / -1; grid-row:2; text-align:center; }
}

/* page des professeurs : chaque matière dans une carte beige ; les cartes remplissent la largeur,
   chacune proportionnelle à son nombre de professeurs (flex-grow écrit par convertit.py) */
.mats { display:flex; flex-wrap:wrap; gap:12px; margin:18px 0 14px; }
.mats .mat { flex-basis:0; min-width:max-content; padding:4px 14px 12px; background:var(--beige); border-radius:10px; }
#principal .mats .mat h4 { margin:10px 0 6px; padding:0; border:0; font-size:19px; white-space:nowrap; }
#principal .mats .mat h4::before { display:none; }
.mats .prof { width:98px; }
#principal .mats .profs { justify-content:center; flex-wrap:nowrap; gap:8px; margin:6px 0 0; }
#principal .mats a.info span, #principal .mats .prof:nth-child(n) a.info span { left:85px; right:auto; }
#principal .mats a.info.gauche span, #principal .mats .prof:nth-child(n) a.info.gauche span { left:auto; right:85px; }   /* grande photo vers la gauche dans la moitié droite (entete.js) */
#principal details.volet-anciens > summary, #principal details.hommage > summary { color:var(--brique); font-weight:400; }
#principal details.volet-anciens > summary:hover, #principal details.hommage > summary:hover { text-decoration:underline; }
@media (max-width:600px) { .mats .mat { flex-basis:100%; } }

/* specificites : graphique des heures de SI (PTSI ⊃ PCSI ⊃ MPSI), à droite du texte, en grand sur téléphone */
.graphe-si { float:right; width:330px; margin:4px 0 12px 24px; }
.graphe-si svg { display:block; width:100%; height:auto; }
#principal p.graphe-si-leg, .graphe-si-leg { margin:4px 0 0 !important; font-size:13px !important; color:var(--doux); text-align:center !important; }
@media (max-width:860px) { .graphe-si { width:300px; margin-left:18px; } }
@media (max-width:600px) { .graphe-si { float:none; width:auto; max-width:380px; margin:10px auto 16px; } }

/* duo « flottant » : la photo flotte à droite et le texte passe dessous (au lieu d'un blanc sous la photo) ;
   sur téléphone, la photo vient en tête, au-dessus du texte */
.duo.flotte { display:block; }
.duo.flotte::after { content:""; display:table; clear:both; }
.duo.flotte .duophoto { float:right; width:280px; margin:4px 0 10px 26px; }
@media (max-width:700px) { .duo.flotte .duophoto { float:none; width:auto; max-width:280px; margin:6px auto 14px; } }

/* page SI : la photo d'en-tête reste à côté du texte sur tablette, comme sur ordinateur */
@media (min-width:601px) and (max-width:860px) { .texte .photodroite.tete { float:right; width:300px; max-width:45%; margin:4px 0 12px 20px; } }

/* Ptsialachenal : l'article de Challenges dans un cadre avec « À lire : … », comme celui du Nouvel Obs (plusdereussite) */
.artchal-cadre { float:right; width:206px; margin:2px 0 6px 14px; padding:8px 8px 6px; background:#F7F7F2; border:1px solid #E2E2D8; border-radius:4px; text-align:center; }
.artchal-cadre:hover { border-color:#2F6FB5; }
.artchal-cadre a.artchal { float:none; display:block; width:auto; margin:0; }
.artchal-cadre .legende { display:block; margin-top:5px; font-family:SourceSans, Verdana, sans-serif; font-size:11.5px; line-height:1.35; color:#5E5E75; }
@media (max-width:420px) { .artchal-cadre { float:none; margin:6px auto 10px; } }

/* lavisdeseleves : tailles du site (17 px), bleus de la palette, accroche en citation, repli du bas au style du site (20/11/2026) */
html .texte details.tcarte { background:#E3EAF3; }
html .texte details.tcarte[open] { background:#F1F5FA; }
html #principal .tnom { font-size:17px; color:var(--gris); }
html #principal .tecole { margin-top:2px; font-size:14.5px; line-height:1.3; color:#2F5385; }
html #principal .ttags span { background:#fff; font-size:12px; }
html #principal p.taccroche { font-size:15.5px; line-height:1.45; font-style:italic; color:#3A3633; }
html #principal p.taccroche::before { content:"« "; }
html #principal p.taccroche::after { content:"\00a0»"; }
html #principal .tlire { font-size:14px; color:#2F5385; }
html #principal details.tcarte[open] .tlire { font-size:0; color:var(--doux); }
html #principal details.tcarte[open] .tlire:before, #principal details.tcarte[open] .tlire:after { font-size:14px; }
html #principal .tavis { border-left-color:#C3D1E6; }
html #principal details.tplus > summary { color:var(--brique); font-weight:400; font-size:16.5px; }
html #principal details.tplus > summary:hover { text-decoration:underline; }
@media (max-width:600px) { html .texte .tgrille { grid-template-columns:1fr; } }	/* téléphone : une carte par ligne */

/* ===== harmonisation des pages (20/11/2026) : restes des anciens styles ===== */
/* A. replis à l'ancienne : même style que les autres replis du site (+ rouge brique) */
html .texte details.passes > summary, html .texte details.s2 > summary, html .texte details.archivesres > summary, html .texte .domc details > summary {
  position:relative; display:block; list-style:none; margin:10px 0 6px; padding:6px 0 6px 26px; border:0; background:none;
  font-family:inherit; font-size:16.5px; font-weight:400; color:var(--brique); cursor:pointer; text-align:left; }
html .texte .domc details > summary { margin:4px 0 2px; padding:3px 0 3px 22px; font-size:14.5px; }
html .texte details.passes > summary::-webkit-details-marker, html .texte details.s2 > summary::-webkit-details-marker,
html .texte details.archivesres > summary::-webkit-details-marker, html .texte .domc details > summary::-webkit-details-marker { display:none; }
html .texte details.passes > summary::before, html .texte details.s2 > summary::before, html .texte details.archivesres > summary::before, html .texte .domc details > summary::before {
  content:"+"; position:absolute; left:0; top:4px; width:18px; text-align:center; font-size:20px; line-height:1.2; color:var(--brique); }
html .texte .domc details > summary::before { top:1px; font-size:17px; }
html .texte .domc details[open] > summary { color:var(--brique); }
html .texte details.passes[open] > summary::before, html .texte details.s2[open] > summary::before,
html .texte details.archivesres[open] > summary::before, html .texte .domc details[open] > summary::before { content:"–"; }
html .texte details.passes > summary:hover, html .texte details.s2 > summary:hover, html .texte details.archivesres > summary:hover, html .texte .domc details > summary:hover { text-decoration:underline; }
/* B. liens : le rouge brique du site */
html .texte .dos a, html .texte td.lieu a, html .texte a.pop.popt { color:var(--brique); }
html .texte p.tags a.tag { border:0; border-radius:16px; background:var(--beige); color:var(--brique); font-weight:600; }	/* pastilles beiges du site (autresetudes, lesecoles) */
html .texte p.tags a.tag:hover { background:var(--beige3); }
html .texte .vsw a { color:var(--gris); border-color:var(--beige3); }
html .texte .vsw a.on { background:var(--gris); border-color:var(--gris); color:#fff; }
html .texte label.gcbascule-lien span.voir { color:var(--brique); }
/* C. mises en valeur : le bleu de la palette (les bleus anciens sont remplacés dans les pages par convertit.py) */
/* D. textes encore petits */
html .texte table.nrt, html .texte table.nrt * { font-family:SourceSans, Verdana, sans-serif; }
html .texte table.nrt { font-size:15px; }
html .texte table.nrt th { font-size:13px; }
html .texte table.nrt td.dont, html .texte table.nrt th span { font-size:12px; }
html .texte table.tabadm, html .texte table.tabadm td, html .texte table.tabadm div, html .texte table.tabadm em,
html .texte .tabresupair, html .texte .tabresuimpair, html .texte .tabresupair *, html .texte .tabresuimpair *, html .texte .derncoltab {
  font-family:SourceSans, Verdana, sans-serif; font-size:14px; line-height:1.4; }
html .texte ul.themes li { font-size:15px; line-height:1.5; margin-bottom:3px; }
html .texte ul.themes b { width:84px; }
html .texte .pres { width:84px; font-size:12.5px; line-height:1.3; }
html .texte .pres strong { font-size:14px; }
html .texte .ancien { font-size:14px; line-height:1.35; }
html .texte .ancien strong { font-size:15.5px; }
html .texte span.ans { font-size:13px; }
html .texte .prov-ecoles p, html .texte .prov-nom .ville, html .texte b.prov-an1, html .texte b.prov-an2, html .texte .prov-st, html .texte .pcam-note { font-size:14px; }
html .texte .prov-ecoles b { font-size:14px; }

/* menus des années (nosresultats, apressup, provenance) : largeur selon le texte, pour ne jamais tronquer l'année (tablettes : police 16 px) */
html #principal select.menuperiode { width:auto; min-width:70px; font-family:SourceSans, Verdana, sans-serif; font-size:14px; }
@media (pointer:coarse) { html #principal select.menuperiode { font-size:16px; } }
/* bouton « Voir » des menus des années : bouton du site (rouge brique), à la hauteur des menus */
html #principal input.boutonsupspe { -webkit-appearance:none; appearance:none; width:auto; height:24px; margin:0 0 0 4px; padding:0 14px; border:0; border-radius:3px;
  background:var(--brique); color:#fff; font-family:SourceSans, Verdana, sans-serif; font-size:14px; font-weight:600; line-height:24px; vertical-align:middle; cursor:pointer; box-shadow:none; }
html #principal input.boutonsupspe:hover { background:var(--brique2); }
@media (pointer:coarse) { html #principal input.boutonsupspe { height:30px; line-height:30px; font-size:16px; } }

@media (max-width:380px) {   /* très petits téléphones : tout tient sur la barre sans renvoyer « Lachenal » à la ligne */
  .marque { white-space:nowrap; font-size:19px; }
  .cadenas { padding:0 8px; }
  .burger { width:46px; } .burger span { left:11px; }
}

/* Rouge réservé à ce qui se clique : les mots mis en valeur dans les textes passent en bleu profond
   (anciens rouges #A61C1C, Style1/Style2 en rouge vif, « Tentez votre chance ! »…) */
:root { --accent:#24426E; }
#principal span[style*="A61C1C"], #principal span[style*="a61c1c"], #principal b[style*="--brique"],
#principal span.Style2, #principal strong.Style1, #principal .fort { color:var(--accent) !important; }
.carte p b.k { color:var(--accent); }

/* Nos résultats : séparation entre la présentation et les résultats détaillés, année par année */
#principal .rd-sep { clear:both; margin:64px 0 6px; padding:26px 0 0; border-top:2px solid var(--beige2); text-align:center; }
#principal .rd-sep h2 { margin:0 0 6px; padding-bottom:0; border-bottom:0; font-size:28px; color:var(--gris); }
#principal .rd-sep h2::before { display:none; }
/* années repliées (« années précédentes ») : même titre « Promotion » que les années affichées */
.texte details.archivesres > h4 { font-size:25px; margin:30px 0 12px; padding-bottom:6px; border-bottom:2px solid var(--beige3); }
.texte details.archivesres > h4::before { display:inline-block; }
@media (max-width:860px) { .texte details.archivesres > h4 { font-size:22px; } #principal .rd-sep h2 { font-size:24px; } }

/* navigation page précédente / suivante : gris chaud (le rouge reste aux liens du texte juste au-dessus), brique au survol */
.navpages a.prec, .navpages a.suiv { color:var(--gris); }
.navpages a.prec:hover, .navpages a.suiv:hover { color:var(--brique); }

/* menu des promotions (choixpromo.php : Provenance, Nos résultats, Si ça ne marche pas) : menus à la taille du texte,
   bords beiges, même hauteur que le bouton « Voir » en contour brique */
html #principal .choixpromo { display:flex; flex-wrap:wrap; align-items:center; gap:6px 8px; font-size:15.5px; }
html #principal .choixpromo label { margin:0; }
html #principal .choixpromo select.menuperiode { -webkit-appearance:none; appearance:none; height:30px; min-width:0; padding:0 26px 0 10px; border:1px solid var(--beige2); border-radius:6px; font-size:15.5px; color:var(--texte);
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238E2A1F' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 9px center; cursor:pointer; }
html #principal .choixpromo select.menuperiode:hover { border-color:var(--brique); }
html #principal .choixpromo .choixpromo-nb { font-size:14px; }
html #principal .choixpromo input.boutonsupspe { height:30px; line-height:28px; margin:0; padding:0 14px; border:1px solid var(--brique); border-radius:6px; background:#fff; color:var(--brique); font-size:15px; font-weight:600; }
html #principal .choixpromo input.boutonsupspe:hover { background:var(--brique); color:#fff; }

/* colles : encadré « Une colle n'est pas une punition » au format des autres encadrés (comme « Les filles ont toute leur place ») :
   texte 16 px, titre 17 px, sans agrandissement ni bordure orange */
@media (min-width:861px) { .texte .encadre-colle { zoom:1 !important; max-width:none !important; } }
.contenu:not(.prive) .texte .encadre-colle { margin:18px 0 14px; padding:14px 20px 8px; border:0; border-radius:10px; background:#F4EAD5; font-size:16px; line-height:1.5; }
#principal.texte .encadre-colle p { margin:0 0 9px; }
#principal.texte .encadre-colle p.titre { margin:0 0 6px; font-size:17px; color:#94600F; }
