/* ==========================================================================
   Collège Alfred Mauguin — feuille de style
   Style : pastel doux & formes organiques
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Pastels */
  --lavender: #8b7cf6;
  --lavender-deep: #5b4fc4;
  --lavender-pale: #ece7fd;
  --peach: #ff9a7b;
  --peach-deep: #e8734f;
  --peach-pale: #ffe9df;
  --mint: #4fd8b8;
  --mint-deep: #2aa889;
  --mint-pale: #dcf7ef;
  --sunny: #ffd166;
  --sunny-deep: #e0a827;
  --sunny-pale: #fff3d6;

  /* Rôles fonctionnels (mappés sur les pastels ci-dessus) */
  --blue-deep: #453a8f;     /* titres, header, footer — violet profond */
  --blue: var(--lavender);
  --blue-light: #b3a8fb;
  --teal: var(--mint-deep);
  --coral: var(--peach-deep);
  --coral-light: var(--peach);
  --yellow: var(--sunny);

  --ink: #2b2933;
  --slate: #625f70;
  --slate-light: #9793a3;
  --bg: #fdfbf5;
  --white: #ffffff;
  --border: #ece7e0;

  --shadow: 0 6px 24px rgba(91, 79, 196, 0.08);
  --shadow-lg: 0 20px 48px rgba(91, 79, 196, 0.18);
  --radius: 24px;
  --radius-sm: 14px;
  --font: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; border-radius: var(--radius-sm); }

a { color: var(--lavender-deep); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--peach-deep); }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---------- Blob decorations (pure CSS, no images) ---------- */
@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(18px, -24px) scale(1.05); }
  66% { transform: translate(-14px, 16px) scale(0.97); }
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
  animation: blob-float 16s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue-deep);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  z-index: 999;
}
.skip-link:focus { left: 0; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--blue-deep);
  color: #e3ddff;
  font-size: 0.82rem;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar a { color: #e3ddff; }
.topbar a:hover { color: var(--sunny); text-decoration: underline; }
.topbar .quick-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Header ---------- */
header.site-header {
  background: rgba(139, 124, 246, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  border-bottom: 1px solid rgba(139, 124, 246, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-badge {
  width: 54px;
  height: 54px;
  border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%;
  background: linear-gradient(135deg, var(--lavender) 0%, var(--peach) 55%, var(--mint) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(139, 124, 246, 0.4);
  transition: border-radius 0.4s ease, transform 0.3s ease;
}
.brand:hover .brand-badge {
  border-radius: 45% 55% 40% 60% / 60% 40% 55% 45%;
  transform: rotate(6deg);
}
.brand-text .brand-title {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--blue-deep);
}
.brand-text .brand-sub {
  font-size: 0.78rem;
  color: var(--slate);
}

/* ---------- Nav ---------- */
nav.main-nav { position: relative; }
.nav-toggle {
  display: none;
  background: var(--blue-deep);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 1.2rem;
  cursor: pointer;
}
.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-list > li { position: relative; }
.nav-list > li > a,
.nav-list > li > button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  border-radius: 999px;
  background: none;
  border: none;
  font-family: var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-list > li > a:hover,
.nav-list > li > button:hover,
.nav-list > li.open > button {
  background: var(--lavender-pale);
  color: var(--lavender-deep);
}
.nav-list > li > a.active,
.nav-list > li > button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--lavender), var(--lavender-deep));
}
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-sm);
  min-width: 260px;
  padding: 8px;
  display: none;
  z-index: 50;
  max-height: 70vh;
  overflow-y: auto;
  border: 1px solid var(--border);
}
.nav-list > li.open .dropdown { display: block; }
.dropdown a, .dropdown .sub-label {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--ink);
}
.dropdown a:hover { background: var(--lavender-pale); color: var(--lavender-deep); }
.dropdown .sub-label {
  font-weight: 700;
  color: var(--teal);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
  padding-bottom: 2px;
}
.dropdown .sub-group { padding-left: 6px; border-left: 2px solid var(--border); margin: 2px 6px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, #fff9f0 0%, var(--bg) 100%);
  color: var(--ink);
  padding: 76px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero .blob:nth-of-type(1) { width: 420px; height: 420px; background: var(--lavender); top: -140px; right: -100px; }
.hero .blob:nth-of-type(2) { width: 340px; height: 340px; background: var(--peach); bottom: -160px; left: -80px; animation-delay: -4s; }
.hero .blob:nth-of-type(3) { width: 260px; height: 260px; background: var(--mint); top: 60%; right: 18%; animation-delay: -9s; opacity: 0.4; }
.hero .wrap { position: relative; }
.hero-badge {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--lavender-deep);
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow);
}
.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  margin: 0 0 18px;
  font-weight: 800;
  max-width: 780px;
  letter-spacing: -0.02em;
  color: var(--blue-deep);
}
.hero p.lead {
  font-size: 1.12rem;
  max-width: 640px;
  color: var(--slate);
  margin: 0 0 30px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}
.hero-text { flex: 1 1 480px; min-width: 0; }
.hero-photo {
  flex: 1 1 380px;
  max-width: 460px;
  position: relative;
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: -18px;
  background: linear-gradient(135deg, var(--lavender) 0%, var(--peach) 55%, var(--mint) 100%);
  border-radius: 42% 58% 63% 37% / 45% 40% 60% 55%;
  opacity: 0.35;
  z-index: 0;
  animation: blob-float 16s ease-in-out infinite;
}
.hero-photo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 42% 58% 63% 37% / 45% 40% 60% 55%;
  box-shadow: 0 20px 50px rgba(91, 79, 196, 0.25);
  border: 4px solid var(--white);
}
@media (max-width: 860px) {
  .hero-inner { flex-direction: column; }
  .hero-photo { max-width: 340px; width: 100%; }
  .hero-photo img { height: 260px; }
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn:hover { transform: translateY(-3px) scale(1.02); }
.btn:active { transform: translateY(-1px) scale(0.99); }
.btn-primary {
  background: linear-gradient(135deg, var(--peach) 0%, var(--sunny) 100%);
  color: #4a2e12;
  box-shadow: 0 10px 26px rgba(255, 154, 123, 0.45);
}
.btn-primary:hover { color: #4a2e12; filter: brightness(1.04); box-shadow: 0 14px 32px rgba(255, 154, 123, 0.55); }
.btn-outline { background: var(--white); border-color: var(--border); color: var(--blue-deep); box-shadow: var(--shadow); }
.btn-outline:hover { color: var(--lavender-deep); border-color: var(--lavender); }
.btn-dark { background: linear-gradient(135deg, var(--lavender), var(--lavender-deep)); color: #fff; box-shadow: 0 10px 26px rgba(91,79,196,0.35); }
.btn-dark:hover { color: #fff; filter: brightness(1.06); }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: linear-gradient(160deg, #efe9ff 0%, #fff2ea 100%);
  color: var(--ink);
  padding: 54px 0 62px;
  position: relative;
  overflow: hidden;
}
.page-header .blob:nth-of-type(1) { width: 260px; height: 260px; background: var(--mint); top: -100px; right: -60px; opacity: 0.45; }
.page-header .blob:nth-of-type(2) { width: 220px; height: 220px; background: var(--peach); bottom: -120px; left: 10%; opacity: 0.4; animation-delay: -6s; }
.page-header .wrap { position: relative; }
.breadcrumb { font-size: 0.82rem; color: var(--lavender-deep); margin-bottom: 10px; font-weight: 600; }
.breadcrumb a { color: var(--slate); }
.breadcrumb a:hover { color: var(--lavender-deep); }
.page-header h1 { margin: 0; font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; color: var(--blue-deep); }
.page-header p { color: var(--slate); max-width: 700px; margin: 12px 0 0; }

/* ---------- Sections ---------- */
main { display: block; position: relative; }
section { padding: 58px 0; position: relative; }
section.alt { background: linear-gradient(180deg, #f3f0ff 0%, #fdfbf5 100%); }
.section-eyebrow {
  color: var(--teal);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
h2.section-title {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  margin: 0 0 12px;
  color: var(--blue-deep);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.section-intro { color: var(--slate); max-width: 700px; margin-bottom: 32px; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card:hover {
  transform: translateY(-6px) rotate(-0.3deg);
  box-shadow: var(--shadow-lg);
  border-color: var(--lavender-pale);
}
.card .icon {
  width: 50px; height: 50px;
  border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 4px;
  transition: border-radius 0.4s ease, transform 0.3s ease;
}
.card:hover .icon { border-radius: 45% 55% 40% 60% / 60% 40% 55% 45%; transform: scale(1.08); }
.card h3 { margin: 0; font-size: 1.1rem; color: var(--ink); font-weight: 700; }
.card p { margin: 0; color: var(--slate); font-size: 0.92rem; flex-grow: 1; }
.card .card-link { font-weight: 700; font-size: 0.86rem; margin-top: 4px; color: var(--lavender-deep); }

.icon-blue { background: var(--lavender-pale); color: var(--lavender-deep); }
.icon-teal { background: var(--mint-pale); color: var(--mint-deep); }
.icon-coral { background: var(--peach-pale); color: var(--peach-deep); }
.icon-yellow { background: var(--sunny-pale); color: var(--sunny-deep); }

/* ---------- Alert / info banner ---------- */
.alert {
  background: var(--sunny-pale);
  border: 1px solid #f5e3ad;
  border-left: 5px solid var(--sunny-deep);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-bottom: 28px;
}
.alert strong { color: #8a6410; }
.alert.blue { background: var(--lavender-pale); border-color: #d9d0fa; border-left-color: var(--lavender); }
.alert.blue strong { color: var(--lavender-deep); }

/* ---------- Content blocks (rich text pages) ---------- */
.content-block {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 32px 36px;
  margin-bottom: 26px;
}
.content-block h2 {
  color: var(--blue-deep);
  font-size: 1.3rem;
  font-weight: 800;
  margin-top: 0;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--mint);
  display: inline-block;
}
.content-block h3 {
  color: var(--peach-deep);
  font-size: 1.05rem;
  margin-top: 24px;
  font-weight: 700;
}
.content-block table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.content-block th, .content-block td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}
.content-block th { background: var(--lavender-pale); color: var(--blue-deep); }
.content-block tr:nth-child(even) td { background: #fbf9f3; }
.content-block ul, .content-block ol { padding-left: 22px; }
.content-block li { margin-bottom: 6px; }
.content-block a { text-decoration: underline; }

/* ---------- Contact card list (services) ---------- */
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 24px 26px;
  margin-bottom: 20px;
  border-top: 4px solid var(--mint);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.contact-card h3 {
  margin: 0 0 12px;
  color: var(--blue-deep);
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.contact-card dl { margin: 0; }
.contact-card dt { font-weight: 700; color: var(--ink); margin-top: 10px; }
.contact-card dd { margin: 2px 0 0; color: var(--slate); }
.contact-card .hours {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 0.85rem;
  color: var(--slate);
}

/* ---------- Timeline (historique) ---------- */
.timeline { position: relative; padding-left: 32px; border-left: 3px dashed var(--lavender-pale); }
.timeline-item { position: relative; margin-bottom: 34px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -42px;
  top: 4px;
  width: 18px; height: 18px;
  border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%;
  background: linear-gradient(135deg, var(--peach), var(--sunny));
  border: 3px solid #fff;
  box-shadow: var(--shadow);
}
.timeline-item h3 { margin: 0 0 6px; color: var(--blue-deep); font-weight: 800; }
.timeline-item p { margin: 0 0 14px; color: var(--slate); }
.timeline-photo {
  display: block;
  max-width: 480px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  border: 3px solid var(--white);
  margin-top: 4px;
}
.timeline-photo-caption {
  font-size: 0.8rem;
  color: var(--slate);
  margin: 6px 0 0;
  font-style: italic;
}

/* ---------- Archive accordion ---------- */
.archive-year {
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.archive-year:hover { box-shadow: var(--shadow); }
.archive-year summary {
  cursor: pointer;
  padding: 16px 22px;
  font-weight: 800;
  color: var(--blue-deep);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #faf8f2;
}
.archive-year summary::-webkit-details-marker { display: none; }
.archive-year summary::after { content: "+"; font-size: 1.3rem; color: var(--peach-deep); transition: transform 0.2s ease; }
.archive-year[open] summary::after { content: "–"; }
.archive-year .archive-body { padding: 6px 22px 20px; color: var(--slate); }
.archive-year .archive-body ul { padding-left: 20px; }
.archive-year .archive-body li { margin-bottom: 6px; }
.archive-pdf {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 14px;
}
.archive-pdf-label { font-weight: 700; color: var(--ink); font-size: 0.9rem; flex: 1 1 auto; min-width: 180px; }
.archive-pdf .news-actions { flex: 0 0 auto; display: flex; gap: 8px; }
.archive-pdf .news-link { flex: 0 0 auto; padding: 6px 14px; }

/* ---------- Newsletter grid (mauguin news) ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.news-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-item-top { display: flex; align-items: center; gap: 12px; }
.news-item .news-badge {
  width: 42px; height: 42px;
  border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%;
  background: var(--mint-pale);
  color: var(--mint-deep);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.news-item .news-meta { font-size: 0.85rem; }
.news-item .news-meta strong { display: block; color: var(--ink); }
.news-item .news-meta span { color: var(--slate); font-size: 0.8rem; }
.news-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.news-link {
  flex: 1;
  text-align: center;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--blue-deep);
  background: var(--bg);
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.news-link:hover { background: var(--lavender-pale); border-color: var(--lavender); }
.news-link.news-download { background: var(--mint-pale); border-color: transparent; color: var(--mint-deep); }
.news-link.news-download:hover { background: var(--mint); color: var(--white); }
.news-item-pending { opacity: 0.7; }
.news-pending {
  flex: 1;
  text-align: center;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--slate);
}
.news-hs-title { margin-top: 36px; margin-bottom: 16px; }
.news-grid-hs { grid-template-columns: repeat(3, 1fr); }
.news-item-hs .news-badge-hs {
  background: var(--peach);
  color: var(--white);
}
@media (max-width: 980px) { .news-grid-hs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .news-grid-hs { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--blue-deep);
  color: #d9d3f5;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}
footer.site-footer .blob:nth-of-type(1) { width: 320px; height: 320px; background: var(--lavender); top: -140px; left: -80px; opacity: 0.35; }
footer.site-footer .blob:nth-of-type(2) { width: 260px; height: 260px; background: var(--peach); bottom: -140px; right: 5%; opacity: 0.25; animation-delay: -5s; }
.footer-top {
  padding: 48px 0 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  position: relative;
  z-index: 1;
}
.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 800;
}
.footer-col p, .footer-col a {
  color: #d9d3f5;
  font-size: 0.88rem;
  display: block;
  margin-bottom: 8px;
}
.footer-col a:hover { color: var(--sunny); }
.footer-emblem { display: inline-flex; background: #fff; border-radius: 10px; padding: 6px 12px; margin-top: 14px; }
.footer-emblem img { display: block; height: 40px; width: auto; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand .brand-badge { width: 44px; height: 44px; font-size: 1.1rem; }
.footer-brand strong { color: #fff; font-size: 1rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding: 18px 0;
  font-size: 0.8rem;
  color: #b3a8e0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.footer-bottom a { color: #b3a8e0; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Page entrance ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
main > section:first-of-type { animation: fade-up 0.5s ease both; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  nav.main-nav { position: static; }
  nav.main-nav .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--lavender-pale);
    flex-direction: column;
    flex-wrap: nowrap;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(139, 124, 246, 0.15);
    border-radius: var(--radius-sm);
    padding: 10px;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 50;
  }
  nav.main-nav.nav-open .nav-list { display: flex; }
  .nav-list > li { width: 100%; }
  .nav-list > li > a, .nav-list > li > button { width: 100%; justify-content: space-between; }
  .dropdown { position: static; box-shadow: none; background: transparent; display: none; padding-left: 10px; max-height: none; overflow-y: visible; }
  .nav-list > li.open .dropdown { display: block; }
  .topbar .wrap { justify-content: center; text-align: center; }
}

@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .content-block { padding: 24px 20px; }
  .hero { padding: 48px 0 64px; }
  .blob { display: none; }
}

/* ---------- Photo gallery ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.photo-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--lavender-pale);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.photo-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.photo-tile:hover img { transform: scale(1.06); }
.photo-tile:focus-visible { outline: 3px solid var(--lavender-deep); outline-offset: 3px; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(43, 41, 51, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox-figure {
  position: relative;
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: 74vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  background: #111;
}
.lightbox-caption {
  color: #fff;
  font-size: 0.95rem;
  text-align: center;
  max-width: 700px;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.14);
  color: #fff;
  border: none;
  border-radius: 999px;
  width: 46px;
  height: 46px;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(255,255,255,0.28);
  transform: scale(1.06);
}
.lightbox-close { top: -54px; right: 0; }
.lightbox-prev { left: -60px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: -60px; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
  color: #d9d3f5;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}
@media (max-width: 720px) {
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
  .lightbox-close { top: 4px; right: 4px; }
  .lightbox-figure img { max-height: 62vh; }
}

/* ---------- Projet d'établissement — axes stratégiques ---------- */
.axis-block { border-top: 4px solid transparent; border-image: linear-gradient(90deg, var(--lavender), var(--peach), var(--mint)) 1; }
.axis-head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
}
.axis-number {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50% 45% 55% 50% / 50% 55% 45% 50%;
  background: linear-gradient(135deg, var(--lavender) 0%, var(--peach) 55%, var(--mint) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  text-align: center;
  box-shadow: 0 8px 20px rgba(139, 124, 246, 0.35);
}
.axis-head h2 { margin: 0 0 4px; }
.axis-lead { margin: 0; color: var(--slate); font-style: italic; }
.objectif {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-bottom: 16px;
}
.objectif:last-child { margin-bottom: 0; }
.objectif h3 { margin: 0 0 10px; font-size: 1rem; color: var(--lavender-deep); }
.objectif ul { margin: 0; padding-left: 22px; }
.objectif li { margin-bottom: 6px; color: var(--slate); }
.objectif li:last-child { margin-bottom: 0; }

.og-code {
  display: inline-block;
  background: var(--lavender-pale);
  color: var(--lavender-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 8px;
  white-space: nowrap;
  vertical-align: middle;
}
.objectif ul ul { margin-top: 6px; padding-left: 20px; }
.objectif ul ul li { list-style: circle; }

/* ---------- Règlement intérieur — droits / devoirs ---------- */
.rd-domain { margin-bottom: 26px; }
.rd-domain:last-child { margin-bottom: 0; }
.rd-domain h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--blue-deep);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 800;
}
.rd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.rd-col {
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  border: 1px solid var(--border);
}
.rd-col h4 {
  margin: 0 0 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 800;
}
.rd-col p { margin: 0; color: var(--slate); font-size: 0.92rem; }
.rd-rights { background: var(--mint-pale); }
.rd-rights h4 { color: var(--mint-deep); }
.rd-duties { background: var(--peach-pale); }
.rd-duties h4 { color: var(--peach-deep); }
@media (max-width: 720px) {
  .rd-grid { grid-template-columns: 1fr; }
}

/* ---------- Agenda (flux Pronote) ---------- */
.agenda-loading { color: var(--slate); font-style: italic; }
.agenda-month { margin-bottom: 32px; }
.agenda-month:last-child { margin-bottom: 0; }
.agenda-month h3 {
  color: var(--blue-deep);
  font-size: 1.05rem;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--lavender-pale);
}
.agenda-list { display: flex; flex-direction: column; gap: 12px; }
.agenda-event {
  display: flex;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.agenda-event:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.agenda-date {
  flex-shrink: 0;
  width: 150px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.agenda-day { font-weight: 800; color: var(--lavender-deep); font-size: 0.88rem; }
.agenda-time {
  display: inline-block;
  align-self: flex-start;
  background: var(--sunny-pale);
  color: var(--sunny-deep);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 999px;
}
.agenda-time.agenda-allday { background: var(--mint-pale); color: var(--mint-deep); }
.agenda-info h4 { margin: 0 0 4px; color: var(--ink); font-size: 1rem; }
.agenda-location { margin: 0 0 4px; font-size: 0.85rem; color: var(--peach-deep); font-weight: 600; }
.agenda-desc { margin: 0; font-size: 0.88rem; color: var(--slate); }
@media (max-width: 600px) {
  .agenda-event { flex-direction: column; gap: 8px; }
  .agenda-date { width: auto; flex-direction: row; align-items: center; gap: 10px; }
}

/* ---------- Recherche de formations (orientation) ---------- */
.formation-search-box { position: relative; max-width: 560px; margin: 18px 0 8px; }
.formation-search-box input[type="search"] {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  font-family: var(--font);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.formation-search-box input[type="search"]:focus {
  outline: none;
  border-color: var(--lavender);
  box-shadow: 0 0 0 4px rgba(139, 124, 246, 0.15);
}
.formation-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  max-height: 320px;
  overflow-y: auto;
  z-index: 40;
  list-style: none;
  padding: 6px;
}
.formation-suggestions li {
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--ink);
}
.formation-suggestions li:hover,
.formation-suggestions li:focus {
  background: var(--lavender-pale);
  color: var(--lavender-deep);
}
.formation-suggestions li.no-match { color: var(--slate); cursor: default; font-style: italic; }
.formation-suggestions li.no-match:hover { background: none; }

.formation-filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.formation-filter-row label { font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.formation-filter-row select {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: var(--font);
  font-size: 0.86rem;
  color: var(--ink);
}
#formation-summary { color: var(--slate); font-size: 0.85rem; margin: 4px 0 0; }

.ets-category { margin-top: 28px; }
.ets-category-title {
  font-size: 1.05rem;
  color: var(--blue-deep);
  border-bottom: 2px solid var(--lavender-pale);
  padding-bottom: 6px;
  margin-bottom: 14px;
}
.ets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.ets-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ets-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.ets-card h4 { margin: 0 0 2px; font-size: 1rem; color: var(--ink); }
.ets-meta { margin: 0; font-size: 0.85rem; color: var(--slate); }
.ets-formation-meta { margin: 6px 0 0; font-size: 0.78rem; color: var(--lavender-deep); font-weight: 600; }
.ets-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }

@media (max-width: 600px) {
  .ets-grid { grid-template-columns: 1fr; }
}
