/* ==========================================================
   ISTE — Institut Supérieur Technique de l'Excellence
   Couleurs issues du logo : bleu marine, orange, jaune, cyan
   ========================================================== */
:root {
  --navy: #0b2454;
  --navy-2: #12336f;
  --navy-deep: #071838;
  --orange: #f2600c;
  --orange-2: #ff7a2b;
  --yellow: #f7d117;
  --cyan: #1cb0d4;
  --ink: #142033;
  --muted: #5b6678;
  --line: #e3e7ef;
  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --radius: 18px;
  --shadow: 0 18px 50px -20px rgba(11, 36, 84, .35);
  --shadow-sm: 0 6px 20px -8px rgba(11, 36, 84, .25);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.ico { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* ---------- Typo ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--orange); margin: 0 0 .9rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--yellow); }
.eyebrow .dot { display: none; }
.title {
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.12; margin: 0 0 1.2rem; color: var(--navy); letter-spacing: -.01em;
}
.title em, .hero__title em { font-style: italic; color: var(--orange); }
.title--light { color: #fff; }
.title--light em { color: var(--yellow); }
.subtitle { font-family: var(--serif); font-size: 1.5rem; color: var(--navy); margin: 4rem 0 1.4rem; text-align: center; }
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 3.2rem; }
.section__head .eyebrow::after { content: ""; width: 26px; height: 2px; background: currentColor; }
.section__lead { color: var(--muted); font-size: 1.07rem; margin: 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: .95rem; transition: transform .25s, box-shadow .25s, background .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--orange); color: #fff; box-shadow: 0 10px 24px -10px rgba(242, 96, 12, .8); }
.btn--accent:hover { background: var(--orange-2); }
.btn--primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--navy-2); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; backdrop-filter: blur(6px); }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--sm { padding: .6rem 1.15rem; font-size: .85rem; }
.btn--block { width: 100%; }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy-deep); color: #c9d4ea; font-size: .82rem; }
.topbar__inner { display: flex; gap: 1.6rem; align-items: center; padding: .5rem 0; }
.topbar__inner > * { display: inline-flex; align-items: center; gap: .4rem; }
.topbar__inner .ico { color: var(--yellow); }
.topbar__tag { margin-left: auto; color: var(--yellow); font-weight: 600; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s;
}
.nav.is-scrolled { box-shadow: 0 8px 30px -18px rgba(11, 36, 84, .45); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: .75rem; }
.brand__logo { width: 50px; height: 50px; object-fit: contain; border-radius: 10px; background: #fff; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: 1.35rem; color: var(--navy); letter-spacing: .06em; }
.brand__text small { font-size: .68rem; color: var(--muted); font-weight: 600; max-width: 190px; }
.menu { display: flex; align-items: center; gap: 1.4rem; font-weight: 600; font-size: .92rem; white-space: nowrap; }
.brand { flex: none; }
.menu a:not(.btn) { position: relative; color: var(--ink); padding: .3rem 0; }
.menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--orange); transition: width .3s;
}
.menu a:not(.btn):hover::after, .menu a.is-current::after { width: 100%; }
.menu a.is-current { color: var(--navy); }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero__slides, .hero__slide, .hero__overlay { position: absolute; inset: 0; }
.hero__slide {
  background-size: cover; background-position: center; opacity: 0;
  transform: scale(1.08); transition: opacity 1.4s ease, transform 7s ease;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__overlay {
  background:
    linear-gradient(100deg, rgba(7, 24, 56, .95) 0%, rgba(11, 36, 84, .82) 45%, rgba(11, 36, 84, .35) 100%),
    linear-gradient(0deg, rgba(7, 24, 56, .6), transparent 40%);
}
.hero__content { position: relative; padding: 5rem 0 6rem; max-width: 1200px; }
.hero__title {
  font-family: var(--serif); font-weight: 600; font-size: clamp(2.5rem, 6vw, 4.6rem);
  line-height: 1.04; margin: 0 0 1.4rem; max-width: 760px; letter-spacing: -.02em;
}
.hero__title em { color: var(--yellow); }
.hero__lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 590px; color: #dbe4f5; margin: 0 0 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__motto { margin: 2.6rem 0 0; font-family: var(--serif); font-style: italic; color: var(--cyan); font-size: 1.15rem; }
.hero__dots { position: absolute; bottom: 2.2rem; right: max(16px, calc((100% - 1200px) / 2)); display: flex; gap: .5rem; }
.hero__dots button { width: 34px; height: 4px; border: 0; border-radius: 4px; background: rgba(255,255,255,.35); padding: 0; transition: background .3s, width .3s; }
.hero__dots button.is-active { background: var(--yellow); width: 54px; }

/* ---------- Stats ---------- */
.stats { position: relative; z-index: 2; margin-top: -3.2rem; }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.stat { padding: 1.8rem 1.4rem; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num { display: block; font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; color: var(--navy); line-height: 1.1; }
.stat__num small { font-size: .55em; color: var(--orange); margin: 0 .2em; }
.stat__label { font-size: .85rem; color: var(--muted); font-weight: 600; }

/* ---------- A propos ---------- */
.about__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.about__media { position: relative; padding: 0 3rem 3rem 0; }
.about__img { border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }
.about__img--main { width: 100%; aspect-ratio: 4 / 3.3; }
.about__img--small { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 4 / 3; border: 6px solid #fff; }
.about__badge {
  position: absolute; left: -1rem; top: 1.5rem; display: flex; align-items: center; gap: .7rem;
  background: #fff; padding: .7rem 1.1rem .7rem .7rem; border-radius: 14px; box-shadow: var(--shadow-sm);
  font-family: var(--serif); font-style: italic; color: var(--navy); line-height: 1.2; font-size: .95rem;
}
.about__badge img { width: 44px; height: 44px; object-fit: contain; }
.about__text p { color: var(--muted); }
.about__text strong { color: var(--ink); }
.checks { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: .7rem; }
.checks li { display: flex; gap: .75rem; align-items: flex-start; font-weight: 600; }
.checks span {
  flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(242, 96, 12, .12); color: var(--orange); font-size: .8rem;
}

/* ---------- Valeurs ---------- */
.values { background: radial-gradient(circle at 85% 10%, rgba(28,176,212,.18), transparent 40%), linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; }
.values__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.value {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius);
  padding: 2rem 1.6rem; transition: transform .35s, background .35s, border-color .35s;
}
.value:hover { transform: translateY(-6px); background: rgba(255,255,255,.09); border-color: rgba(247, 209, 23, .45); }
.value__icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--orange), var(--yellow)); margin-bottom: 1.3rem; }
.value__icon svg { width: 26px; height: 26px; fill: #fff; }
.value h3 { margin: 0 0 .5rem; font-size: 1.12rem; }
.value p { margin: 0; color: #b9c6e0; font-size: .95rem; }

/* ---------- Départements ---------- */
.depts { background: var(--bg-soft); }
.depts__layout { display: grid; grid-template-columns: 330px 1fr; gap: 1.8rem; align-items: start; }
.depts__tabs { display: grid; gap: .6rem; position: sticky; top: 100px; }
.dtab {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 1rem;
  text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 1rem 1.2rem; transition: all .3s; color: var(--ink);
}
.dtab__num { grid-row: span 2; align-self: center; font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--line); transition: color .3s; }
.dtab__name { font-weight: 700; }
.dtab__count { font-size: .8rem; color: var(--muted); }
.dtab:hover { border-color: var(--navy); }
.dtab.is-active { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: var(--shadow); transform: translateX(6px); }
.dtab.is-active .dtab__num { color: var(--yellow); }
.dtab.is-active .dtab__count { color: #b9c6e0; }
.dpanel {
  display: grid; grid-template-columns: 1fr 1.1fr; background: #fff; border-radius: 22px;
  overflow: hidden; box-shadow: var(--shadow); min-height: 480px; animation: fadeUp .5s ease;
}
.dpanel[hidden] { display: none; }
.dpanel__media img { width: 100%; height: 100%; object-fit: cover; }
.dpanel__body { padding: clamp(1.6rem, 3vw, 2.6rem); display: flex; flex-direction: column; }
.dpanel__tag { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.dpanel h3 { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: var(--navy); margin: .4rem 0 .8rem; line-height: 1.15; }
.dpanel p { color: var(--muted); margin: 0 0 1.3rem; }
.pills { list-style: none; padding: 0; margin: 0 0 1.8rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.pills li {
  padding: .45rem .95rem; border-radius: 999px; font-size: .86rem; font-weight: 600;
  background: rgba(28, 176, 212, .1); color: var(--navy); border: 1px solid rgba(28, 176, 212, .3);
}
.head { margin-top: auto; display: flex; align-items: center; gap: .9rem; padding-top: 1.3rem; border-top: 1px dashed var(--line); }
.head small { display: block; font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.head strong { color: var(--navy); }
.head--duo { flex-direction: column; align-items: stretch; gap: .9rem; }
.head__item { display: flex; align-items: center; gap: .9rem; }
.avatar {
  flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: var(--yellow);
  font-weight: 800; font-size: .9rem; letter-spacing: .04em; box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(242,96,12,.35);
}
.avatar--muted { background: var(--bg-soft); color: var(--muted); }

/* ---------- Gouvernance ---------- */
.gov__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.leader {
  position: relative; text-align: center; padding: 2.6rem 1.8rem 2.2rem; border-radius: 22px;
  background: #fff; border: 1px solid var(--line); transition: transform .35s, box-shadow .35s; overflow: hidden;
}
.leader::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--navy), var(--cyan)); }
.leader:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.leader--main { background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; border: 0; }
.leader--main::before { background: linear-gradient(90deg, var(--orange), var(--yellow)); }
.leader__avatar {
  width: 92px; height: 92px; margin: 0 auto 1.3rem; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.9rem; font-weight: 700; color: var(--navy);
  background: linear-gradient(135deg, var(--yellow), #ffe981); box-shadow: 0 0 0 6px rgba(247, 209, 23, .18);
}
.leader:not(.leader--main) .leader__avatar { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: var(--yellow); box-shadow: 0 0 0 6px rgba(11, 36, 84, .08); }
.gov .leader .leader__avatar--photo { width: 128px; height: 128px; background: #fff; padding: 4px; box-shadow: 0 0 0 3px var(--orange), 0 12px 30px -10px rgba(11,36,84,.5); }
.leader__avatar--photo img { font-size: 0; color: transparent; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.leader__role { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: .5rem; }
.leader--main .leader__role { color: var(--yellow); }
.leader h3 { font-family: var(--serif); font-size: 1.35rem; margin: 0 0 .7rem; color: var(--navy); line-height: 1.25; }
.leader--main h3 { color: #fff; }
.leader p { margin: 0; color: var(--muted); font-size: .94rem; }
.leader--main p { color: #b9c6e0; }
.chiefs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.chief { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; border-radius: 14px; background: var(--bg-soft); transition: background .3s; }
.chief:hover { background: #e9edf6; }
.chief strong { display: block; color: var(--navy); font-size: .95rem; }
.chief small { color: var(--orange); font-weight: 600; font-size: .82rem; }

/* ---------- Citation ---------- */
.quote { position: relative; padding: clamp(5rem, 10vw, 8rem) 0; color: #fff; text-align: center; overflow: hidden; }
.quote__bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; background-attachment: fixed; }
.quote::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(7,24,56,.93), rgba(242,96,12,.78)); }
.quote__inner { position: relative; z-index: 1; max-width: 860px; }
.quote p { font-family: var(--serif); font-size: clamp(1.5rem, 3.2vw, 2.4rem); line-height: 1.3; margin: 0 0 1.2rem; font-style: italic; }
.quote span { color: var(--yellow); font-weight: 700; letter-spacing: .05em; }

/* ---------- Galerie ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 2.4rem; }
.filter {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .6rem 1.2rem;
  font-weight: 600; font-size: .9rem; color: var(--muted); transition: all .25s;
}
.filter:hover { border-color: var(--navy); color: var(--navy); }
.filter.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.masonry { columns: 4 240px; column-gap: 1rem; }
.masonry figure {
  margin: 0 0 1rem; break-inside: avoid; border-radius: 14px; overflow: hidden; position: relative;
  cursor: zoom-in; background: var(--bg-soft); animation: fadeUp .5s ease both;
}
.masonry img { width: 100%; height: auto; transition: transform .6s ease; }
.masonry figure::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,24,56,.55), transparent 50%);
  opacity: 0; transition: opacity .35s;
}
.masonry figure:hover img { transform: scale(1.06); }
.masonry figure:hover::after { opacity: 1; }
.gallery__more { text-align: center; margin-top: 1.6rem; }

/* ---------- Admission ---------- */
.admission { background: linear-gradient(150deg, var(--navy-deep), var(--navy) 60%, #163f86); color: #fff; position: relative; overflow: hidden; }
.admission::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,96,12,.35), transparent 65%);
}
.admission__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.admission__text > p { color: #c4d0e8; }
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.1rem; }
.steps li { display: flex; gap: 1rem; align-items: flex-start; }
.steps li > span {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; color: var(--navy); background: var(--yellow);
}
.steps strong { display: block; }
.steps small { color: #aebbd6; font-size: .9rem; }
.admission__card { background: #fff; border-radius: 22px; padding: .8rem; box-shadow: 0 30px 70px -25px rgba(0,0,0,.6); transform: rotate(1.5deg); transition: transform .4s; }
.admission__card:hover { transform: rotate(0); }
.admission__card img { border-radius: 16px; cursor: zoom-in; }
.admission__cardfoot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem .6rem .4rem; color: var(--navy); font-weight: 700; font-size: .92rem; }

/* ---------- Actualités / communiqués ---------- */
.news { background: var(--bg-soft); }
.news__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.news-card {
  display: flex; flex-direction: column; text-align: left; padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; overflow: hidden; color: var(--ink); transition: transform .3s, box-shadow .3s; animation: fadeUp .5s ease both;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.news-card__media { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--navy), var(--navy-2)); display: grid; place-items: center; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.news-card__media .news-card__logo { width: 64px; height: 64px; background: #fff; border-radius: 14px; padding: 4px; object-fit: contain; }
.news-card__pin { position: absolute; top: .8rem; left: .8rem; background: var(--orange); color: #fff; font-size: .72rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; letter-spacing: .04em; }
.news-card__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.news-card__date { font-size: .78rem; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: .08em; }
.news-card h3 { font-family: var(--serif); font-size: 1.2rem; line-height: 1.25; color: var(--navy); margin: 0; }
.news-card p { margin: 0; color: var(--muted); font-size: .93rem; }
.news-card__more { margin-top: auto; padding-top: .4rem; font-weight: 700; font-size: .88rem; color: var(--navy); }
.topbar__tag button { all: unset; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.topbar__socials { display: inline-flex; gap: .7rem; }
.topbar__socials a:hover .ico { color: #fff; }

/* Fenêtre de lecture d'un communiqué */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(4, 12, 30, .75); display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 1.2rem; animation: fade .25s; overflow-y: auto; }
.modal[hidden] { display: none; }
.modal__box { position: relative; width: min(720px, 100%); max-height: calc(100vh - 2.4rem); overflow-y: auto; background: #fff; border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.modal__close { position: sticky; top: .8rem; float: right; margin: .8rem .8rem 0 0; z-index: 2; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(11,36,84,.85); color: #fff; font-size: 1.6rem; line-height: 1; }
.modal__close:hover { background: var(--orange); }
.modal__img { width: 100%; max-height: 460px; object-fit: contain; background: var(--bg-soft); }
.modal__body { padding: 1.6rem clamp(1.2rem, 4vw, 2.4rem) 2rem; }
.modal__date { margin: 0 0 .4rem; font-size: .8rem; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: .08em; }
.modal__body h3 { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--navy); margin: 0 0 1rem; line-height: 1.2; }
.modal__text { color: var(--ink); line-height: 1.75; white-space: normal; }
.modal__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.btn--ghost-dark { border-color: var(--line); color: var(--navy); background: #fff; }
.btn--ghost-dark:hover { border-color: var(--navy); }

/* Réseaux sociaux du contact et portraits */
.social-btns { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .55rem; }
.social-btns a { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1rem; border-radius: 999px; background: var(--navy); color: #fff !important; font-weight: 700; font-size: .86rem; }
.social-btns a svg { width: 16px; height: 16px; fill: currentColor; }
.social-btns a.fb-btn, .social-btns a[data-reseau="facebook"] { background: #1877f2; }
.social-btns a[data-reseau="whatsapp"] { background: #1fa855; }
.social-btns a[data-reseau="instagram"] { background: #c13584; }
.social-btns a[data-reseau="youtube"] { background: #e62117; }
.social-btns a[data-reseau="linkedin"] { background: #0a66c2; }
.social-btns a[data-reseau="tiktok"], .social-btns a[data-reseau="x"] { background: #111; }
.avatar img, .leader__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar:has(img) { padding: 0; background: #fff; }
#majSite:not(:empty)::before { content: " · "; }
.footer__links { display: flex; gap: 1.4rem; flex-wrap: wrap; justify-content: center; }
.footer__links a { padding: 0; }

/* Fil Facebook dans les actualités */
.news__grid[hidden] { display: none; }
.news__grid:not([hidden]) + .gallery__more + .fb-fil, .news__grid:not([hidden]) ~ .fb-fil { margin-top: 3rem; }
.fb-fil { display: grid; grid-template-columns: 1fr minmax(0, 500px); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.fb-fil__texte { position: sticky; top: 110px; }
.fb-fil__badge { display: inline-flex; align-items: center; gap: .45rem; background: #1877f2; color: #fff; font-weight: 700; font-size: .8rem; padding: .4rem .9rem; border-radius: 999px; margin-bottom: 1rem; }
.fb-fil__badge svg { width: 16px; height: 16px; fill: #fff; }
.fb-fil__texte h3 { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); color: var(--navy); margin: 0 0 .7rem; line-height: 1.2; }
.fb-fil__texte p { color: var(--muted); margin: 0 0 1.4rem; }
.fb-fil__cadre { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; min-height: 300px; display: grid; place-items: center; }
.fb-fil__cadre iframe { display: block; border: 0; width: 100%; max-width: 500px; }
.fb-fil__attente { color: var(--muted); margin: 0; padding: 2rem; }
@media (max-width: 900px) {
  .fb-fil { grid-template-columns: 1fr; }
  .fb-fil__texte { position: static; text-align: center; }
  .fb-fil__cadre { justify-self: center; width: 100%; max-width: 500px; }
}

/* ---------- Horaires étudiants ---------- */
.timetable { padding: clamp(3rem, 6vw, 4.5rem) 0 0; }
.timetable__inner {
  display: flex; align-items: center; gap: 1.8rem; padding: clamp(1.6rem, 3vw, 2.4rem);
  border-radius: 22px; background: var(--bg-soft); border: 1px solid var(--line);
}
.timetable__icon { flex: none; width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--navy-2)); }
.timetable__icon svg { width: 34px; height: 34px; fill: var(--yellow); }
.timetable__text { flex: 1; }
.timetable__text .eyebrow { margin-bottom: .4rem; }
.timetable__text h2 { font-family: var(--serif); color: var(--navy); font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 .4rem; line-height: 1.15; }
.timetable__text p:last-child { margin: 0; color: var(--muted); }
.timetable .btn { flex: none; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.cinfo { display: flex; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.cinfo:last-child { border-bottom: 0; }
.cinfo__icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(242,96,12,.1); }
.cinfo__icon svg { width: 22px; height: 22px; fill: var(--orange); }
.cinfo strong { color: var(--navy); }
.cinfo p { margin: .2rem 0 0; color: var(--muted); }
.cinfo a:hover { color: var(--orange); }
.cinfo .phones { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .55rem; }
.phones a {
  padding: .4rem .8rem; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line);
  font-weight: 600; font-size: .88rem; color: var(--navy); white-space: nowrap; transition: border-color .25s, color .25s;
}
.phones a:hover { border-color: var(--orange); }
.fb-btn {
  display: inline-block; margin-top: .55rem; padding: .5rem 1rem; border-radius: 999px;
  background: #1877f2; color: #fff !important; font-weight: 700; font-size: .88rem; transition: background .25s;
}
.fb-btn:hover { background: #0f63d1; }
.topbar__fb { padding: 0 .2rem; }
.topbar__fb:hover .ico { color: #fff; }
.socials { display: flex; gap: .6rem; margin-top: 1.1rem; }
.footer .socials a {
  width: 40px; height: 40px; padding: 0; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); transition: background .25s;
}
.footer .socials a:hover { background: var(--orange); }
.socials svg { width: 19px; height: 19px; fill: #fff; }
.form { background: #fff; border-radius: 22px; padding: clamp(1.6rem, 3.5vw, 2.6rem); box-shadow: var(--shadow); border: 1px solid var(--line); display: grid; gap: 1.1rem; }
.form h3 { font-family: var(--serif); font-size: 1.6rem; color: var(--navy); margin: 0; }
.form__hint { margin: -.6rem 0 .2rem; color: var(--muted); font-size: .9rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .4rem; font-weight: 600; font-size: .88rem; color: var(--ink); }
.form input:not([type="radio"]), .form select, .form textarea {
  font: inherit; font-weight: 500; padding: .85rem 1rem; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--bg-soft); color: var(--ink); transition: border-color .25s, background .25s, box-shadow .25s; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px rgba(11,36,84,.08); }
.form .is-invalid { border-color: #d93025 !important; }
.radios { display: flex; gap: .7rem; }
.form .radio {
  display: flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem; border: 1.5px solid var(--line);
  border-radius: 12px; font-weight: 600; cursor: pointer; flex: 1; background: var(--bg-soft);
}
.form .radio:has(input:checked) { border-color: var(--orange); background: rgba(242,96,12,.06); color: var(--orange); }
.form .radio input { accent-color: var(--orange); }
.form__error { margin: 0; color: #d93025; font-size: .88rem; font-weight: 600; min-height: 1em; }
.form__error:empty { display: none; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #a9b6d1; padding: 4.5rem 0 0; font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.4rem; padding-bottom: 3rem; }
.footer__brand img { width: 84px; background: #fff; border-radius: 14px; padding: 4px; margin-bottom: 1rem; }
.footer__brand strong { color: #fff; }
.footer h4 { color: #fff; font-size: .95rem; margin: 0 0 1.1rem; letter-spacing: .04em; }
.footer a { display: block; padding: .25rem 0; transition: color .25s; }
.footer a:hover { color: var(--yellow); }
.footer p { margin: 0 0 .8rem; }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.08); padding: 1.4rem 0; font-size: .85rem; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(4, 12, 30, .94); display: grid; place-items: center; padding: 4rem 1rem; animation: fade .3s; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1100px, 100%); max-height: 86vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; border-radius: 50%; width: 52px; height: 52px; font-size: 1.9rem; line-height: 1; transition: background .25s; }
.lightbox button:hover { background: var(--orange); }
.lightbox__close { top: 1.2rem; right: 1.2rem; }
.lightbox__prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1.2rem; top: 50%; transform: translateY(-50%); }

/* ---------- WhatsApp flottant ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(37,211,102,.7);
  transition: transform .3s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
/* Menu compact (burger) dès que 9 liens + bouton ne tiennent plus sur une ligne */
@media (max-width: 1280px) {
  .burger { display: block; }
  .menu {
    position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 1rem 16px 1.6rem; box-shadow: 0 20px 40px -20px rgba(11,36,84,.4);
    transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .35s ease, opacity .35s ease, visibility 0s linear .35s;
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .menu.is-open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .menu a:not(.btn) { padding: .95rem 0; border-bottom: 1px solid var(--line); }
  .menu a:not(.btn)::after { display: none; }
  .menu__cta { margin-top: 1rem; }
}
@media (max-width: 1080px) {
  .values__grid { grid-template-columns: repeat(2, 1fr); }
  .depts__layout { grid-template-columns: 1fr; }
  .depts__tabs { position: static; grid-template-columns: repeat(5, minmax(160px, 1fr)); overflow-x: auto; padding-bottom: .4rem; scrollbar-width: thin; }
  .dtab.is-active { transform: none; }
  .chiefs { grid-template-columns: repeat(2, 1fr); }
  .news__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .topbar__tag { display: none; }
  .about__grid, .admission__grid, .contact__grid { grid-template-columns: 1fr; }
  .gov__grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .dpanel { grid-template-columns: 1fr; }
  .dpanel__media img { aspect-ratio: 16 / 10; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .quote__bg { background-attachment: scroll; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 70px; }
  .section { padding: 3.6rem 0; }
  .section__head { margin-bottom: 2rem; }
  .section__lead { font-size: .98rem; }
  .title { font-size: 1.75rem; }
  .subtitle { margin-top: 2.8rem; font-size: 1.3rem; }

  /* Barre du haut et menu */
  .topbar { font-size: .76rem; }
  .topbar__inner { justify-content: space-between; gap: .8rem; padding: .45rem 0; white-space: nowrap; }
  .topbar__inner > span:first-child { display: none; }
  .nav__inner { height: 66px; }
  .menu { inset: 66px 0 auto; max-height: calc(100vh - 66px); }
  .brand__logo { width: 42px; height: 42px; }
  .brand__text strong { font-size: 1.2rem; }
  .brand__text small { display: none; }

  /* Hero */
  .hero { min-height: auto; }
  .hero__content { padding: 3.2rem 0 5.6rem; }
  .hero__title { font-size: 2.35rem; margin-bottom: 1rem; }
  .hero__lead { font-size: 1rem; margin-bottom: 1.8rem; }
  .hero__actions { flex-direction: column; gap: .75rem; }
  .hero__actions .btn { width: 100%; }
  .hero__motto { margin-top: 1.6rem; font-size: 1rem; }
  .hero__dots { left: 16px; right: auto; bottom: 4.2rem; }
  .hero__dots button { width: 22px; }
  .hero__dots button.is-active { width: 36px; }

  /* Chiffres */
  .stats { margin-top: -2.6rem; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 1.2rem .8rem; }
  .stat__num { font-size: 1.75rem; }
  .stat__label { font-size: .76rem; display: block; line-height: 1.35; margin-top: .2rem; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  /* A propos */
  .about__media { padding: 0 1.2rem 2.2rem 0; }
  .about__badge { left: .6rem; top: .6rem; font-size: .8rem; padding: .5rem .8rem .5rem .5rem; }
  .about__badge img { width: 34px; height: 34px; }
  .about__img--small { border-width: 4px; }
  .checks li { font-size: .94rem; }
  .about__text .btn { width: 100%; }

  /* Valeurs : icône à gauche, plus compact */
  .values__grid { grid-template-columns: 1fr; gap: .9rem; }
  .value { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; padding: 1.2rem; }
  .value__icon { grid-row: span 2; width: 46px; height: 46px; margin: 0; }
  .value__icon svg { width: 22px; height: 22px; }
  .value h3 { font-size: 1.02rem; margin-bottom: .25rem; }
  .value p { font-size: .9rem; }

  /* Départements : onglets en grille, tous visibles */
  .depts__tabs { grid-template-columns: 1fr 1fr; overflow: visible; padding: 0; gap: .5rem; }
  .dtab { padding: .75rem .85rem; column-gap: .6rem; border-radius: 12px; }
  .dtab:last-child { grid-column: span 2; }
  .dtab__num { font-size: 1.1rem; }
  .dtab__name { font-size: .86rem; line-height: 1.25; }
  .dtab__count { font-size: .72rem; }
  .dtab.is-active { box-shadow: var(--shadow-sm); }
  .dpanel { min-height: 0; border-radius: 18px; }
  .dpanel__body { padding: 1.4rem; }
  .dpanel h3 { font-size: 1.55rem; }
  .pills { gap: .4rem; margin-bottom: 1.4rem; }
  .pills li { font-size: .8rem; padding: .38rem .8rem; }

  /* Gouvernance */
  .leader { padding: 2rem 1.3rem 1.6rem; border-radius: 18px; }
  .leader__avatar { width: 72px; height: 72px; font-size: 1.5rem; margin-bottom: 1rem; }
  .gov .leader .leader__avatar--photo { width: 112px; height: 112px; }
  .leader h3 { font-size: 1.2rem; }
  .gov__grid { gap: 1rem; }
  .chiefs { grid-template-columns: 1fr; gap: .6rem; }
  .chief { padding: .8rem 1rem; }
  .chief .avatar { width: 42px; height: 42px; font-size: .8rem; }

  /* Citation */
  .quote { padding: 3.6rem 0; }
  .quote p { font-size: 1.3rem; }

  /* Galerie : filtres sur une ligne défilante */
  .filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -16px 1.6rem; padding: 0 16px .3rem; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; padding: .55rem 1rem; font-size: .85rem; }
  .masonry { columns: 2; column-gap: .6rem; }
  .masonry figure { margin-bottom: .6rem; border-radius: 10px; }
  .gallery__more .btn { width: 100%; }

  /* Admission */
  .steps li > span { width: 34px; height: 34px; border-radius: 10px; }
  .admission__card { transform: none; padding: .6rem; border-radius: 18px; }
  .admission__cardfoot { flex-direction: column; align-items: stretch; text-align: center; gap: .7rem; padding: .9rem .3rem .3rem; }

  /* Actualités */
  .news__grid { grid-template-columns: 1fr; gap: 1rem; }
  .news-card h3 { font-size: 1.1rem; }
  .modal { padding: 0; align-items: end; }
  .modal__box { border-radius: 20px 20px 0 0; max-height: 92vh; }
  .modal__actions .btn { flex: 1; }
  .topbar__tag { display: none; }

  /* Horaires étudiants */
  .timetable { padding-top: 2.6rem; }
  .timetable__inner { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.4rem; border-radius: 18px; }
  .timetable__icon { width: 56px; height: 56px; border-radius: 16px; }
  .timetable__icon svg { width: 28px; height: 28px; }
  .timetable .btn { width: 100%; }

  /* Contact */
  .cinfo { gap: .85rem; padding: 1rem 0; }
  .cinfo__icon { width: 42px; height: 42px; border-radius: 12px; }
  .form { padding: 1.4rem; border-radius: 18px; gap: .95rem; }
  .form h3 { font-size: 1.35rem; line-height: 1.2; }
  .form__row { grid-template-columns: 1fr; }
  .form input:not([type="radio"]), .form select, .form textarea { font-size: 16px; } /* évite le zoom automatique sur iPhone */

  /* Pied de page */
  .footer { padding-top: 3rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 1.8rem 1.2rem; padding-bottom: 2rem; }
  .footer__brand, .footer__grid > div:last-child { grid-column: span 2; }
  .footer__brand { display: flex; align-items: center; gap: 1rem; }
  .footer__brand img { width: 64px; margin: 0; }
  .footer__brand { flex-wrap: wrap; }
  .footer__brand p { margin: 0; flex: 1; }
  .footer__brand .socials { width: 100%; margin-top: .2rem; }
  .footer__bottom { flex-direction: column; align-items: center; text-align: center; gap: .4rem; padding-bottom: 5rem; }

  /* Bouton WhatsApp */
  .wa-float { width: 52px; height: 52px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
  .wa-float svg { width: 26px; height: 26px; }

  .lightbox__prev, .lightbox__next { top: auto; bottom: 1.2rem; transform: none; }
}

/* Adresses longues (e-mail) : retour à la ligne sur petit écran */
.footer p a, .cinfo p a { overflow-wrap: anywhere; }
