/* =====================================================================
   Institut Sainte-Thérèse (IST) — Charte graphique centralisée
   Typos : Comfortaa (titres/corps) + Lumios Marker (slogans script)
   ===================================================================== */

/* ----------  Web-fonts (self-host)  ---------- */
@font-face {
  font-family: "Comfortaa";
  src: url("../fonts/Comfortaa-Light.ttf") format("truetype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Comfortaa";
  src: url("../fonts/Comfortaa-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Comfortaa";
  src: url("../fonts/Comfortaa-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Lumios Marker";
  src: url("../fonts/LumiosMarker.otf") format("opentype");
  font-weight: normal; font-style: normal; font-display: swap;
}

/* ----------  Variables de marque  ---------- */
:root {
  --ist-cyan:  #00AEEF;
  --ist-cyan-d:#0095cf;
  --ist-navy:  #1B3F8B;
  --ist-navy-d:#142f68;
  --ink:       #243042;
  --muted:     #5b6b7e;
  --line:      #e3e9f0;
  --bg:        #ffffff;
  --bg-soft:   #f4f8fc;

  /* 8 secteurs (codes couleur pictos officiels) */
  --sec-arts:     #7ac143;
  --sec-eco:      #f7941e;
  --sec-edu:      #2bb3e3;
  --sec-sciences: #ffcf00;
  --sec-horti:    #39a935;
  --sec-services: #ec008c;
  --sec-securite: #1b3f8b;
  --sec-degre1:   #7b2d8b;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 30px rgba(20,47,104,.12);
  --shadow-sm: 0 3px 12px rgba(20,47,104,.10);
  --maxw: 1180px;
  --header-h: 76px;
  --font-sans: "Comfortaa", "Segoe UI", system-ui, sans-serif;
  --font-script: "Lumios Marker", "Comfortaa", cursive;
}

/* ----------  Reset / base  ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ist-cyan-d); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-sans); color: var(--ist-navy); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1rem; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(1.4rem, 3.5vw, 2.6rem) 0; }
.section--soft { background: var(--bg-soft); }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 760px; }
.center .lead, .lead.center { margin-inline: auto; }

/* Trame de fond — page d'accueil uniquement (dégradé cyan 20% → blanc, droite vers gauche) */
body[data-page="accueil"] {
  background-image: linear-gradient(to left, rgba(0,174,239,.2), #ffffff);
  background-repeat: no-repeat;
  background-attachment: fixed;
}
/* gradient uniforme : les sections "soft" ne masquent plus le fond */
body[data-page="accueil"] .section--soft { background: transparent; }

/* Script slogan */
.script { font-family: var(--font-script); color: var(--ist-cyan); font-weight: 400; line-height: 1.05; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.5rem; border-radius: 999px; font-weight: 700;
  font-family: var(--font-sans); cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--ist-cyan); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--ist-cyan-d); }
.btn--navy { background: var(--ist-navy); color: #fff; }
.btn--navy:hover { background: var(--ist-navy-d); }
.btn--ghost { background: #fff; color: var(--ist-navy); border-color: var(--line); }

/* =====================================================================
   HEADER + NAVIGATION (commun à toutes les pages)
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 700; color: var(--ist-navy); }
.brand:hover { text-decoration: none; }
.brand img { height: 48px; width: auto; }
.brand__name { font-size: 1.05rem; line-height: 1.05; }
.brand__name small { display: block; font-weight: 400; font-size: .72rem; color: var(--ist-cyan); letter-spacing: .04em; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { color: var(--ink); font-weight: 700; font-size: .92rem; padding: .55rem .7rem; border-radius: 8px; }
.nav a:hover { background: var(--bg-soft); text-decoration: none; }
.nav a.is-active { color: var(--ist-cyan-d); }
.nav a.is-active::after { content: ""; display: block; height: 3px; border-radius: 3px; background: var(--ist-cyan); margin-top: 4px; }

/* Dropdown "Nos écoles" */
.dropdown { position: relative; }
.dropdown > button {
  font: inherit; font-weight: 700; font-size: .92rem; color: var(--ink);
  background: none; border: 0; cursor: pointer; padding: .55rem .7rem; border-radius: 8px;
  display: inline-flex; align-items: center; gap: .3rem;
}
.dropdown > button:hover { background: var(--bg-soft); }
.dropdown__caret { transition: transform .2s ease; }
.dropdown[aria-open="true"] .dropdown__caret { transform: rotate(180deg); }
.dropdown__menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: .4rem; opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.dropdown[aria-open="true"] .dropdown__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown__menu a {
  display: flex; flex-direction: column; padding: .6rem .8rem; border-radius: 8px; color: var(--ink);
}
.dropdown__menu a:hover { background: var(--bg-soft); text-decoration: none; }
.dropdown__menu a span { font-weight: 700; color: var(--ist-navy); }
.dropdown__menu a small { color: var(--muted); font-weight: 400; }

/* Burger */
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .4rem;
  width: 44px; height: 44px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 26px; height: 3px; border-radius: 3px;
  background: var(--ist-navy); transition: .25s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -8px; }
.nav-toggle span::after  { position: absolute; top:  8px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* =====================================================================
   HERO mosaïque (homepage)
   ===================================================================== */
.hero { padding: .8rem 0 0; }
.mosaic {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
  grid-auto-rows: 1fr;
}
.mosaic__tile { border-radius: var(--radius-sm); aspect-ratio: 1; overflow: hidden; background: var(--bg-soft); }
.mosaic__tile img { width: 100%; height: 100%; object-fit: cover; }
.mosaic__tile--c1 { background: var(--sec-degre1); }
.mosaic__tile--c2 { background: var(--sec-eco); }
.mosaic__tile--c3 { background: var(--sec-services); }
.mosaic__tile--c4 { background: var(--sec-sciences); }
.mosaic__tile--c5 { background: var(--sec-arts); }
.mosaic__tile--c6 { background: var(--ist-cyan); }
.mosaic__tile--logo { background: var(--ist-cyan); display: grid; place-items: center; }
.mosaic__tile--logo img { width: 70%; height: auto; }

.hero__intro { text-align: left; padding: 1rem 0 .6rem; }
.hero__welcome { font-size: clamp(3.6rem, 15.5vw, 10rem); font-weight: 700; color: var(--ist-navy); margin: 0; line-height: .9; letter-spacing: -.01em; }
.hero__sub { font-size: clamp(1.6rem, 6.6vw, 4.5rem); font-weight: 700; color: var(--ist-cyan); margin: 0 0 .1rem; text-align: right; line-height: 1; white-space: nowrap; }
.hero__slogan { font-family: var(--font-script); color: var(--ist-navy); font-size: clamp(2rem, 6.4vw, 4.4rem); margin: 0; text-align: justify; text-align-last: justify; }

/* Quote bloc */
.quote {
  background: var(--ist-cyan); color: #fff; border-radius: var(--radius);
  padding: 2rem 2.2rem; box-shadow: var(--shadow-sm); text-align: center;
}
.quote q { font-family: var(--font-script); font-size: clamp(2rem, 4.5vw, 3.2rem); display: block; line-height: 1.2; }
.quote cite { font-style: normal; opacity: .9; font-size: clamp(1.1rem, 2vw, 1.4rem); display: block; margin-top: .8rem; }

/* =====================================================================
   CARTES ÉCOLES
   ===================================================================== */
.schools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.school-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.school-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; }
.school-card__img { aspect-ratio: 16/10; background: var(--bg-soft); object-fit: cover; width: 100%; }
.school-card__body { padding: 1.2rem 1.3rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.school-card__tag {
  display: inline-block; align-self: flex-start; background: var(--ist-cyan); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; padding: .25rem .7rem;
  border-radius: 999px; text-transform: uppercase; margin-bottom: .6rem;
}
.school-card h3 { margin-bottom: .25rem; }
.school-card__addr { color: var(--muted); font-size: .92rem; margin-bottom: .8rem; }
.school-card__tel { font-weight: 700; color: var(--ist-cyan-d); }
.school-card__cta { margin-top: auto; padding-top: .9rem; color: var(--ist-navy); font-weight: 700; }

/* =====================================================================
   SECTEURS (pictos / badges)
   ===================================================================== */
.sectors { display: grid; grid-template-columns: repeat(8, 1fr); gap: .6rem; }
.sector {
  border-radius: var(--radius-sm); color: #fff; padding: 1rem .5rem; text-align: center;
  font-weight: 700; font-size: .78rem; line-height: 1.15; min-height: 92px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
}
.sector__icon { font-size: 1.6rem; line-height: 1; }
.sector--arts     { background: var(--sec-arts); }
.sector--eco      { background: var(--sec-eco); }
.sector--edu      { background: var(--sec-edu); }
.sector--sciences { background: var(--sec-sciences); color: var(--ist-navy); }
.sector--horti    { background: var(--sec-horti); }
.sector--services { background: var(--sec-services); }
.sector--securite { background: var(--sec-securite); }
.sector--degre1   { background: var(--sec-degre1); }
.sector--commune  { background: #6b7785; }

/* Slogan script cyan (bandeau secteurs) — pleine largeur, aligné gauche comme la charte */
.slogan-band {
  font-family: var(--font-script); color: var(--ist-cyan); text-align: center; margin: 0 0 .35rem;
  font-size: clamp(1.6rem, 5.6vw, 3.6rem); line-height: 1.02; white-space: nowrap;
}
.slogan-band--small { color: var(--ist-cyan); text-align: center; white-space: normal; font-size: clamp(1.5rem, 4vw, 2.6rem); margin: .8rem 0 .8rem; }

/* Pictos officiels (images) — strip serré, carrés, pleine largeur */
.sector-pictos { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.sector-pictos img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; height: auto; display: block; border-radius: 2px; }

.sector-badge {
  display: inline-block; color: #fff; font-size: .68rem; font-weight: 700;
  padding: .18rem .55rem; border-radius: 999px; letter-spacing: .03em;
}
.badge-impl {
  display: inline-block; font-size: .68rem; font-weight: 700; border-radius: 999px;
  padding: .18rem .55rem; border: 1.5px solid var(--ist-cyan); color: var(--ist-cyan-d);
}

/* Ruban transition/qualif */
.ribbon {
  background: var(--ist-cyan); color: #fff; text-align: center; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; font-size: clamp(.7rem, 1.4vw, 1rem);
  padding: .7rem 1rem; border-radius: 6px; margin-bottom: 1.5rem;
}

/* =====================================================================
   4 AXES (projet)
   ===================================================================== */
.axes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.axis { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.axis__head { font-family: var(--font-script); color: var(--ist-cyan); font-size: 2.4rem; margin-bottom: .4rem; }
.axis__head::before { content: "✓ "; }
.axis p { font-size: .92rem; color: var(--muted); margin-bottom: 0; }

/* sous-titre cyan, gras, agrandi */
.subtitle-cyan { color: var(--ist-cyan); font-weight: 700; font-size: 1.4rem; }

/* ----------  Notre engagement  ---------- */
.engagement h2, .engagement__lead { text-align: center; }
.engagement__list { max-width: 760px; margin-right: auto; }
.engagement__lead { color: var(--ist-cyan); font-family: var(--font-script); font-weight: 700; font-size: 1.6rem; margin: 1rem 0 .6rem; }
.engagement__list { list-style: none; padding: 0; margin: 0; }
.engagement__list li { position: relative; padding-left: 1.6rem; }
.engagement__list li::before { content: "✓"; position: absolute; left: 0; color: var(--ist-cyan); font-weight: 700; }

/* =====================================================================
   PORTAIL parents (tuiles)
   ===================================================================== */
.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.tile {
  border-radius: var(--radius); color: #fff; padding: 1.4rem; min-height: 140px;
  display: flex; flex-direction: column; justify-content: space-between; font-weight: 700;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); text-decoration: none; color: #fff; }
.tile__icon { font-size: 2rem; }
.tile__label { font-size: 1.05rem; line-height: 1.2; }
.tile--navy { background: var(--ist-navy); }
.tile--cyan { background: var(--ist-cyan); }
.tile--orange { background: var(--sec-eco); }
.tile--magenta { background: var(--sec-services); }
.tile--purple { background: var(--sec-degre1); }
.tile--green { background: var(--sec-arts); }
.tile--skyblue { background: #5aa9e6; }

/* =====================================================================
   Tableaux options / listes secteurs
   ===================================================================== */
.option-sector { margin-bottom: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.option-sector__head { color: #fff; padding: .7rem 1.1rem; font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: .6rem; }
.option-sector__body { padding: .4rem 1.1rem 1rem; }
.option-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .6rem 0; border-bottom: 1px dashed var(--line); }
.option-row:last-child { border-bottom: 0; }
.option-row__name { font-weight: 700; color: var(--ink); }
.option-row__meta { color: var(--muted); font-size: .85rem; }
.option-row__impls { margin-left: auto; display: flex; gap: .3rem; }

/* =====================================================================
   Pages écoles — en-tête + infos
   ===================================================================== */
.page-hero { background: linear-gradient(135deg, var(--ist-cyan), var(--ist-navy)); color: #fff; }
.page-hero .container { padding-block: clamp(2rem, 5vw, 3.4rem); }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.92); margin-bottom: 0; }
.crumb { font-size: .85rem; opacity: .85; margin-bottom: .4rem; }
.crumb a { color: #fff; text-decoration: underline; }

.school-banner img { width: 100%; max-height: 400px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.info-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: start; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.info-card h3 { color: var(--ist-cyan-d); }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { padding: .5rem 0; border-bottom: 1px solid var(--line); display: flex; gap: .6rem; }
.info-list li:last-child { border-bottom: 0; }
.info-list b { color: var(--ist-navy); min-width: 90px; }

/* =====================================================================
   FOOTER (3 implantations)
   ===================================================================== */
.site-footer { background: var(--ist-navy); color: #fff; margin-top: 2rem; }
.site-footer a { color: #cfe6ff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 1.8rem; padding: 2.6rem 0; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .6rem; }
.footer-impl p { font-size: .9rem; color: rgba(255,255,255,.85); margin-bottom: .2rem; }
.footer-impl .tel { font-weight: 700; color: #fff; }
.footer-brand img { height: 56px; margin-bottom: .8rem; }
.footer-brand .script { color: #8fd8f6; font-size: 1.4rem; }
.footer-social { display: flex; gap: .7rem; margin-top: .8rem; align-items: center; }
.footer-social img { width: 30px; height: 30px; display: block; background: #fff; border-radius: 6px; padding: 2px; }
.footer-social a:hover img { opacity: .85; }

/* Liens réseaux sociaux (page actualités) */
.social-links { display: flex; justify-content: center; gap: 1.4rem; margin-top: 1rem; flex-wrap: wrap; }
.social-links a { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--ist-navy); }
.social-links a:hover { text-decoration: none; color: var(--ist-cyan-d); }
.social-links img { width: 40px; height: 40px; display: block; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.2); padding: 1rem 0; text-align: center; font-size: .82rem; color: rgba(255,255,255,.75); }

/* =====================================================================
   Bandeau CTA inscriptions
   ===================================================================== */
.cta-band { background: var(--ist-cyan); color: #fff; border-radius: var(--radius); padding: 2rem; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .phone { font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 700; letter-spacing: .04em; }
.cta-band .phone a { color: #fff; }

/* Bandeau inscriptions (reproduction du visuel PDF) */
.insc-band {
  position: relative; background: #ddf0fb; border-radius: var(--radius);
  padding: 2.6rem 2.2rem 1.4rem; margin-top: 1.6rem;
  display: flex; align-items: center; gap: 1.5rem;
}
.insc-band__title {
  position: absolute; top: -1.3rem; left: 1.4rem;
  background: var(--ist-cyan); color: #fff; font-weight: 700;
  font-size: clamp(1.2rem, 2.6vw, 1.9rem); padding: .45rem 1.6rem; border-radius: 20px;
}
.insc-band__txt { flex: 1; min-width: 0; }
.insc-band__dates { color: var(--ist-navy); font-weight: 700; font-size: clamp(1.3rem, 3.2vw, 2.3rem); line-height: 1.15; margin: .4rem 0 .15rem; }
.insc-band__hours { color: var(--ist-cyan-d); font-weight: 700; font-size: clamp(.95rem, 1.8vw, 1.3rem); margin: 0 0 .3rem; }
.insc-band__phone { margin: 0; }
.insc-band__phone a { color: var(--ist-navy); font-weight: 700; font-size: clamp(2.4rem, 7vw, 4.6rem); letter-spacing: .06em; line-height: 1.1; text-decoration: none; }
.insc-band__icon { width: clamp(90px, 13vw, 150px); flex-shrink: 0; }
@media (max-width: 640px) {
  .insc-band { flex-direction: column; text-align: center; }
  .insc-band__icon { width: 90px; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 980px) {
  .sectors { grid-template-columns: repeat(4, 1fr); }
  .sector-pictos { grid-template-columns: repeat(4, 1fr); }
  .axes { grid-template-columns: repeat(2, 1fr); }
  .tile-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: .6rem 18px 1.2rem; gap: .1rem;
    box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .28s ease;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: .8rem .6rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a.is-active::after { display: none; }
  .dropdown { width: 100%; }
  .dropdown > button { width: 100%; justify-content: space-between; padding: .8rem .6rem; border-bottom: 1px solid var(--line); }
  .dropdown__menu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; border-radius: 0; padding: 0 0 .4rem .8rem; max-height: 0; overflow: hidden;
    transition: max-height .25s ease;
  }
  .dropdown[aria-open="true"] .dropdown__menu { max-height: 320px; }
  .schools { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .mosaic { grid-template-columns: repeat(4, 1fr); }
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .sector-pictos { grid-template-columns: repeat(2, 1fr); }
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .axes { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ----------  Utilitaires  ---------- */
.mt    { margin-top: 1.6rem; }
.mt-0  { margin: 0; }
.text-left { text-align: left; }
.school-card__img--manage { background: linear-gradient(135deg, var(--ist-cyan), var(--ist-navy)); }
.school-card__img--llv    { background: linear-gradient(135deg, #2bb3e3, #7b2d8b); }
.school-card__img--cefa   { background: linear-gradient(135deg, #f7941e, #ec008c); }

/* Accessibilité */
:focus-visible { outline: 3px solid var(--ist-cyan); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: .6rem 1rem; z-index: 200; }
.skip-link:focus { left: 8px; top: 8px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto; } }

/* sync 2026-06-10 13:2x */

/* Bandeau "page en construction" */
.section--construction { padding-bottom: 0; }
.construction-banner {
  background: #fff7e0; border: 2px dashed #f7941e; border-radius: 14px;
  padding: 1.1rem 1.6rem; display: flex; align-items: center; gap: .9rem;
}
.construction-banner__icon { font-size: 1.8rem; }
.construction-banner p { margin: 0; font-weight: 700; color: var(--ist-navy); font-size: 1.15rem; }

/* ----------  Fiches options : lignes cliquables + popup PDF  ---------- */
.option-row--link { cursor: pointer; }
.option-row--link:hover .option-row__name,
.option-row--link:focus-visible .option-row__name { color: var(--ist-cyan-d); text-decoration: underline; }
.option-row--link .option-row__name::after { content: " 📄"; font-size: .85em; }

.fiche-modal {
  position: fixed; inset: 0; z-index: 300; display: none;
  align-items: center; justify-content: center; padding: 2vh 2vw;
  background: rgba(20,47,104,.55);
}
.fiche-modal[aria-open="true"] { display: flex; }
.fiche-modal__box {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  width: min(960px, 96vw); height: 92vh; display: flex; flex-direction: column; overflow: hidden;
}
.fiche-modal__bar {
  display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem;
  background: var(--ist-navy); color: #fff;
}
.fiche-modal__title { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fiche-modal__tabs { display: flex; gap: .4rem; }
.fiche-modal__tab {
  font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer;
  background: rgba(255,255,255,.15); color: #fff; border: 1.5px solid rgba(255,255,255,.5);
  border-radius: 999px; padding: .25rem .9rem;
}
.fiche-modal__tab[aria-selected="true"] { background: var(--ist-cyan); border-color: var(--ist-cyan); }
.fiche-modal__open { color: #fff; font-size: .85rem; text-decoration: underline; white-space: nowrap; }
.fiche-modal__close {
  font: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer;
  background: none; border: 0; color: #fff; padding: .2rem .5rem;
}
.fiche-modal__frame { flex: 1; border: 0; width: 100%; }
