/* Khallot — la page d'orientation des terminales (orientation.html).
   Système visuel 2 : ne charge que systeme.css et cette feuille.
   Une idée par section ; la carte est le seul grand dessin de la page. */

.or { width: min(var(--large), calc(100% - 2 * var(--gouttiere))); margin: 0 auto; }

.page-breadcrumb { margin: 22px 0 0; font-size: 13.5px; color: var(--gris); }
.page-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.page-breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #b5b9c3; }
.page-breadcrumb a { color: var(--gris); text-decoration: none; }
.page-breadcrumb a:hover { color: var(--nuit); }

/* ── L'outil : titre, spécialités et réponse à gauche, carte à droite ──── */
.or-outil { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-top: clamp(36px, 5vw, 72px); }
.or-outil h1 { font-size: clamp(38px, 4.1vw, 60px); font-weight: 720; letter-spacing: -.05em; line-height: 1.02; }
.or-lede { max-width: 560px; margin-top: 20px; font-size: clamp(17px, 1.4vw, 19.5px); line-height: 1.5; color: var(--encre-2); }

.or-specialites { margin: 36px 0 0; padding: 0; border: 0; min-width: 0; }
.or-specialites legend { padding: 0; margin-bottom: 14px; color: var(--nuit); font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.or-puces { display: flex; flex-wrap: wrap; gap: 8px; }
.or-puce {
  min-height: 40px; padding: 0 15px; border: 1px solid rgba(16, 29, 53, .16); border-radius: 999px;
  background: var(--papier); color: var(--encre); font: 500 15px/1 var(--police); letter-spacing: -.005em; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform var(--rapide) var(--sortie);
}
.or-puce:hover { border-color: rgba(16, 29, 53, .42); }
.or-puce:active { transform: scale(.97); }
.or-puce[aria-pressed="true"] { border-color: var(--nuit); background: var(--nuit); color: #fff; }
.or-voie {
  margin-top: 14px; padding: 4px 0; border: 0; background: none; color: var(--cobalt);
  font: 500 15px/1.4 var(--police); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; cursor: pointer;
}
.or-voie[aria-pressed="true"] { color: var(--nuit); text-decoration-color: var(--cobalt); text-decoration-thickness: 2px; }
.or-sans-js { color: var(--gris); font-size: 15px; }

.or-reponse { margin-top: 36px; }
.or-phrase { color: var(--nuit); font-size: var(--t-3); font-weight: 680; letter-spacing: -.035em; line-height: 1.2; text-wrap: balance; }
.or-precision { margin-top: 10px; color: var(--gris); font-size: 15px; line-height: 1.5; }
.or-phrase:empty, .or-precision:empty, .or-aussi:empty { display: none; }

.or-filieres { display: grid; gap: 20px; margin: 28px 0 0; padding: 0; list-style: none; }
.or-filiere { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; }
.or-filieres-entete { display: flex; justify-content: space-between; margin-bottom: -6px; color: var(--gris); font-size: 13px; }
.or-filiere-nom { color: var(--nuit); font-size: 17px; font-weight: 680; letter-spacing: -.02em; text-decoration: none; }
a.or-filiere-nom:hover { color: var(--cobalt); }
.or-filiere-part { color: var(--nuit); font-size: 17px; font-weight: 680; font-variant-numeric: tabular-nums; text-align: right; }
.or-filiere-sous { grid-column: 1 / -1; color: var(--gris); font-size: 14px; }
.or-barre { grid-column: 1 / -1; height: 6px; margin: 8px 0 4px; border-radius: 3px; background: rgba(16, 29, 53, .08); overflow: hidden; }
.or-barre span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--cobalt); transition: width .7s var(--sortie); }
.or-filiere-chiffres { grid-column: 1 / -1; color: var(--encre-2); font-size: 14px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.or-aussi { margin-top: 20px; color: var(--gris); font-size: 14.5px; line-height: 1.5; }

/* La carte : le contour de la métropole, un point par lycée. */
.or-carte { position: sticky; top: 92px; margin: 0; }
.or-carte-dessin { position: relative; }
.or-carte svg { width: 100%; height: auto; overflow: hidden; touch-action: manipulation; }
.or-zoom {
  position: absolute; top: 4px; left: 0; z-index: 4; min-height: 34px; padding: 0 13px; border: 1px solid rgba(16, 29, 53, .16); border-radius: 999px;
  background: rgba(255, 253, 248, .92); color: var(--nuit); font: 500 13.5px/1 var(--police); cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: border-color .2s;
}
.or-zoom:hover { border-color: rgba(16, 29, 53, .42); }
.or-contour { fill: var(--papier); stroke: rgba(16, 29, 53, .16); stroke-width: 1; vector-effect: non-scaling-stroke; }
.or-idf { fill: none; stroke: rgba(16, 29, 53, .2); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .5s; }
.or-idf-nom { fill: var(--nuit); stroke: var(--papier); stroke-width: .45px; paint-order: stroke; font: 650 1.6px var(--police); letter-spacing: .02em; text-anchor: middle; opacity: 0; transition: opacity .5s; pointer-events: none; }
.zoome .or-idf, .zoome .or-idf-nom { opacity: 1; }
.or-point { fill: var(--cobalt); fill-opacity: .62; stroke: var(--papier); stroke-width: 1; vector-effect: non-scaling-stroke; transition: fill .45s, fill-opacity .45s; }
.or-carte.a-choix .or-point { fill: var(--nuit); fill-opacity: .12; }
.or-carte.a-choix .or-point.allume { fill: var(--cobalt); fill-opacity: var(--force, .9); }
.or-point.dans-academie { stroke: var(--nuit); stroke-width: 1.6; }
.or-point.survole { stroke: var(--nuit); stroke-width: 2.4; }
.or-carte figcaption { margin-top: 14px; color: var(--gris); font-size: 14.5px; line-height: 1.5; }
.or-carte figcaption b { color: var(--nuit); font-weight: 650; }

.or-outremer { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.or-om {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 11px; border: 1px solid var(--filet); border-radius: 999px;
  background: var(--papier); color: var(--encre-2); font: 500 13px/1 var(--police); cursor: pointer;
}
.or-om:hover { border-color: rgba(16, 29, 53, .35); }
.or-om[aria-pressed="true"] { border-color: var(--nuit); color: var(--nuit); }
.or-om i { width: 7px; height: 7px; border-radius: 50%; background: var(--cobalt); opacity: .5; transition: background-color .45s, opacity .45s; }
.or-carte.a-choix .or-om i { background: var(--nuit); opacity: .14; }
.or-carte.a-choix .or-om i.allume { background: var(--cobalt); opacity: .9; }

.or-bulle {
  position: absolute; z-index: 5; width: max-content; max-width: 290px; padding: 12px 14px; border-radius: var(--r-1);
  background: var(--nuit); color: #fff; font-size: 14px; line-height: 1.45; box-shadow: var(--ombre); pointer-events: none;
}
.or-bulle b { display: block; font-weight: 650; }
.or-bulle span { display: block; color: rgba(255, 255, 255, .62); }
.or-bulle ul { margin: 8px 0 0; padding: 0; list-style: none; }
.or-bulle li { color: rgba(255, 255, 255, .55); }
.or-bulle li.allume { color: #fff; }

/* ── Près de chez toi ─────────────────────────────────────────────────── */
.or-proche { margin-top: clamp(80px, 10vw, 140px); }
.or-proche-tete { max-width: 720px; }
.or-proche h2, .or-suite h2, .or-section-tete h2, .or-questions h2 { font-size: var(--t-2); font-weight: 700; letter-spacing: -.045em; }
.or-proche-tete > p { margin-top: 14px; color: var(--encre-2); }
.or-filtres { display: flex; flex-wrap: wrap; align-items: end; gap: 14px 28px; margin-top: 26px; }
.or-select { display: grid; gap: 6px; }
.or-select span { color: var(--gris); font-size: 13px; }
.or-select select {
  min-width: 240px; min-height: 48px; padding: 0 40px 0 14px; border: 1px solid rgba(16, 29, 53, .18); border-radius: var(--r-1);
  background: var(--papier) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23101d35' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 15px center;
  color: var(--encre); font: 500 16px/1.2 var(--police); -webkit-appearance: none; appearance: none; cursor: pointer;
}
.or-coche { display: flex; align-items: center; gap: 10px; min-height: 48px; color: var(--encre-2); font-size: 15px; cursor: pointer; }
.or-coche input { width: 18px; height: 18px; margin: 0; accent-color: var(--cobalt); }

.or-lycees { margin-top: 32px; }
.or-lycees-total { color: var(--gris); font-size: 14.5px; }
.or-lycees-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 0 40px; margin-top: 12px; }
.or-lycee { padding: 20px 0 22px; border-top: 1px solid var(--filet); }
.or-lycee h3 { font-size: 17px; font-weight: 680; letter-spacing: -.02em; line-height: 1.25; }
.or-lycee > p { margin-top: 3px; color: var(--gris); font-size: 14px; }
.or-lycee ul { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.or-lycee li { font-size: 14.5px; line-height: 1.4; }
.or-lycee li a { display: block; text-decoration: none; }
.or-lycee li b { color: var(--encre-2); font-weight: 650; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .2em; transition: text-decoration-color .2s; }
.or-lycee li a:hover b { text-decoration-color: currentColor; }
.or-lycee li.allume b { color: var(--cobalt); }
.or-lycee li small { color: var(--gris); font-size: 13px; font-weight: 400; }
.or-lycee li span { display: block; color: var(--gris); font-size: 13.5px; font-variant-numeric: tabular-nums; }

/* ── Repères ──────────────────────────────────────────────────────────── */
.or-source a { color: inherit; }

/* ── Le tableau, prépa par prépa ──────────────────────────────────────── */
.or-tableau { margin-top: clamp(64px, 8vw, 110px); border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); }
.or-tableau summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; cursor: pointer; list-style: none; }
.or-tableau summary::-webkit-details-marker { display: none; }
.or-tableau summary h2 { font-size: var(--t-3); font-weight: 680; letter-spacing: -.03em; }
.or-tableau summary::after { content: "+"; flex: none; color: var(--nuit); font-size: 26px; font-weight: 400; line-height: 1; transition: transform var(--rapide) var(--sortie); }
.or-tableau details[open] summary::after { transform: rotate(45deg); }
.or-tableau-defile { overflow-x: auto; padding-bottom: 24px; }
.or-tableau table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14.5px; }
.or-tableau th { padding: 10px 12px 10px 0; color: var(--gris); font-size: 13px; font-weight: 500; text-align: left; border-bottom: 1px solid var(--filet); }
.or-tableau td { padding: 12px 12px 12px 0; vertical-align: top; border-bottom: 1px solid var(--filet); color: var(--encre-2); }
.or-tableau td:first-child b { display: block; color: var(--nuit); font-weight: 680; }
.or-tableau td:first-child span { color: var(--gris); font-size: 13px; }
.or-tableau td.nombre { font-variant-numeric: tabular-nums; white-space: nowrap; }
.or-tableau .or-tableau-note { margin-top: 0; padding-bottom: 24px; color: var(--gris); font-size: 13.5px; }

/* ── Suite et sources ─────────────────────────────────────────────────── */
.or-suite { margin-top: clamp(80px, 10vw, 140px); }
.or-suite ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 32px 0 0; padding: 0; list-style: none; }
.or-suite a { display: grid; gap: 6px; padding-top: 18px; border-top: 1px solid rgba(16, 29, 53, .22); text-decoration: none; }
.or-suite b { color: var(--nuit); font-size: 17px; font-weight: 680; letter-spacing: -.02em; transition: color .2s; }
.or-suite span { color: var(--gris); font-size: 14.5px; line-height: 1.5; }
.or-suite a:hover b { color: var(--cobalt); }

.or-sources { max-width: 760px; margin-top: clamp(64px, 8vw, 110px); }
.or-sources h2 { font-size: 17px; font-weight: 680; letter-spacing: -.015em; }
.or-sources p { margin-top: 10px; color: var(--gris); font-size: 14.5px; line-height: 1.6; }
.or-sources a { color: inherit; }

/* ── Le sommaire : la page se lit dans l'ordre des questions ─────────── */
.or-sommaire { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: clamp(56px, 7vw, 96px); padding: 16px 0; border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); }
.or-sommaire a { color: var(--encre-2); font-size: 15px; font-weight: 550; text-decoration: none; }
.or-sommaire a:hover { color: var(--cobalt); }
.or [id] { scroll-margin-top: 96px; }
.or-section-tete { max-width: 760px; }
.or-section-tete > p { margin-top: 14px; color: var(--encre-2); font-size: var(--t-texte); line-height: 1.55; }
.or-source { margin-top: 18px; color: var(--gris); font-size: 13.5px; line-height: 1.55; }
.or-source a { color: inherit; }

/* ── Ta filière, en chiffres ──────────────────────────────────────────── */
.or-fiches { margin-top: clamp(64px, 8vw, 110px); }
.or-fiches-puces { margin-top: 28px; }
.or-fiche { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(16, 29, 53, .22); }
.or-fiche-tete h3 { font-size: var(--t-3); font-weight: 700; letter-spacing: -.035em; }
.or-fiche-tete h3 span { color: var(--gris); font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.or-fiche-tete p { margin-top: 6px; color: var(--encre-2); font-size: 15.5px; }
.or-fiche-tete a { margin-left: 4px; color: var(--cobalt); }
.or-fiche-grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 26px; }
.or-fiche-grille section > p { margin-top: 10px; color: var(--encre-2); font-size: 15px; line-height: 1.5; }
.or-fiche h4 { color: var(--gris); font-size: 13.5px; font-weight: 600; letter-spacing: .01em; }
.or-fiche-grille .or-gros { margin-top: 8px; color: var(--nuit); font-size: clamp(30px, 3vw, 40px); font-weight: 720; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.or-mentions { display: flex; height: 10px; margin-top: 14px; overflow: hidden; border-radius: 999px; background: rgba(16, 29, 53, .06); }
.or-mentions span { width: 0; transition: width .8s var(--sortie); }
.m-tbf { background: var(--nuit); }
.m-tb { background: var(--cobalt); }
.m-b { background: rgba(51, 92, 245, .45); }
.m-ab { background: rgba(16, 29, 53, .22); }
.m-sans { background: rgba(16, 29, 53, .1); }
.m-nr { background: repeating-linear-gradient(45deg, rgba(16, 29, 53, .12) 0 3px, transparent 3px 6px); }
.or-legende { display: grid; gap: 3px; margin: 12px 0 0; padding: 0; list-style: none; color: var(--encre-2); font-size: 13.5px; }
.or-legende li { display: flex; align-items: center; gap: 8px; }
.or-legende i { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.or-legende b { margin-left: auto; color: var(--nuit); font-weight: 650; font-variant-numeric: tabular-nums; }
.or-profil { display: grid; gap: 8px; margin: 12px 0 0; }
.or-profil div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--filet); font-size: 15px; }
.or-profil dt { color: var(--encre-2); }
.or-profil dd { margin: 0; color: var(--nuit); font-weight: 650; font-variant-numeric: tabular-nums; }
.or-exemple sup { font-size: .7em; line-height: 0; }

/* ── Lire les chiffres d'une prépa ────────────────────────────────────── */
.or-lire { margin-top: clamp(80px, 10vw, 140px); }
.or-exemple { max-width: 760px; margin-top: 26px; padding: 22px 0; border-top: 1px solid rgba(16, 29, 53, .22); border-bottom: 1px solid var(--filet); color: var(--nuit); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; letter-spacing: -.01em; }
.or-exemple a { color: var(--cobalt); }
.or-trois { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 32px; }
.or-trois h3, .or-frise h3 { font-size: 19px; font-weight: 680; letter-spacing: -.025em; }
.or-trois p { margin-top: 10px; color: var(--encre-2); font-size: 15.5px; line-height: 1.55; }

/* ── Parcoursup, étape par étape ──────────────────────────────────────── */
.or-etapes { margin-top: clamp(80px, 10vw, 140px); }
.or-frise { max-width: 900px; margin: 30px 0 0; padding: 0; list-style: none; }
.or-frise > li { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 28px; padding: 20px 0; border-top: 1px solid var(--filet); }
.or-frise > li > :not(.or-quand) { grid-column: 2; }
.or-quand { grid-row: 1 / span 6; color: var(--cobalt); font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
.or-frise p:not(.or-quand), .or-frise ul { margin-top: 8px; color: var(--encre-2); font-size: 15.5px; line-height: 1.55; }
.or-frise ul { padding-left: 20px; }
.or-frise ul li + li { margin-top: 4px; }
.or-frise .or-donnee { color: var(--menthe-sombre); font-weight: 550; }

/* ── Ce que ça coûte ──────────────────────────────────────────────────── */
.or-cout { margin-top: clamp(80px, 10vw, 140px); }
.or-lignes { max-width: 900px; margin: 30px 0 0; }
.or-lignes > div { display: grid; grid-template-columns: 240px minmax(0, 1fr); column-gap: 28px; padding: 18px 0; border-top: 1px solid var(--filet); }
.or-lignes dt { color: var(--nuit); font-size: 17px; font-weight: 650; letter-spacing: -.015em; }
.or-lignes dd { margin: 0; }
.or-lignes dd b { display: block; color: var(--nuit); font-size: 22px; font-weight: 720; letter-spacing: -.03em; }
.or-lignes dd p { color: var(--encre-2); font-size: 15.5px; line-height: 1.55; }
.or-lignes dd b + p { margin-top: 6px; }
.or-lignes a { color: var(--cobalt); }

/* ── Les questions qu'on se pose ──────────────────────────────────────── */
.or-questions { margin-top: clamp(80px, 10vw, 140px); }
.or-faq { max-width: 900px; margin-top: 28px; border-bottom: 1px solid var(--filet); }
.or-faq details { border-top: 1px solid var(--filet); }
.or-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; color: var(--nuit); font-size: 18px; font-weight: 650; letter-spacing: -.02em; cursor: pointer; list-style: none; }
.or-faq summary::-webkit-details-marker { display: none; }
.or-faq summary::after { content: "+"; flex: none; font-size: 24px; font-weight: 400; line-height: 1; transition: transform var(--rapide) var(--sortie); }
.or-faq details[open] summary::after { transform: rotate(45deg); }
.or-faq details p { max-width: 760px; padding: 0 0 20px; color: var(--encre-2); font-size: 16px; line-height: 1.6; }
.or-faq a { color: var(--cobalt); }

/* ── Tablette et téléphone ────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .or-suite ul, .or-trois { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .or-fiche-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .or-outil { grid-template-columns: minmax(0, 1fr); }
  .or-carte { position: static; }
}
@media (max-width: 560px) {
  .or-suite ul, .or-trois, .or-fiche-grille { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .or-lignes > div, .or-frise > li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .or-frise > li > :not(.or-quand) { grid-column: 1; }
  .or-quand { grid-row: auto; }
  .or-sommaire { gap: 6px 16px; }
  .or-puce { min-height: 38px; padding: 0 13px; font-size: 14.5px; }
  .or-select, .or-select select { width: 100%; min-width: 0; }
  .or-bulle { position: static; width: auto; max-width: none; margin-top: 12px; }
  .or-zoom { position: static; margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .or-puce, .or-point, .or-om i, .or-barre span, .or-mentions span, .or-tableau summary::after, .or-faq summary::after { transition: none; }
}
