/* ==========================================================================
   UCPC — page d'accueil
   Chargé après style.css. Classes préfixées « u- ».
   Couleurs : bleu et rouge du logo, déclinés en jetons ci-dessous.
   ========================================================================== */

:root {
  --u-blue: #1c64c8;          /* boutons, liens */
  --u-blue-hover: #1653a8;
  --u-deep: #0f3f80;          /* bandeaux foncés, pied de page */
  --u-deep-2: #0b3166;
  --u-tint: #eef4fc;          /* fonds clairs, pastilles d'icônes */
  --u-red: #be321a;           /* rouge du logo : accents */
  --u-red-hover: #a12a15;
  --u-red-light: #ff8a73;     /* accent lisible sur fond foncé */
  --u-ink: #0f1b2d;
  --u-text: #4b5565;
  --u-muted: #6b7280;
  --u-line: #e4e8ef;
  --u-bg: #ffffff;
  --u-radius: 12px;
  --u-radius-sm: 8px;
  --u-shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 6px 20px rgba(15, 27, 45, .06);
  --u-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --u-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --u-script: "Caveat", "Segoe Script", cursive;
  --u-header-h: 72px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--u-header-h) + 16px); }
body.u-page {
  font-family: var(--u-sans); font-size: 16px; line-height: 1.65;
  color: var(--u-text); background: var(--u-bg);
  -webkit-font-smoothing: antialiased;
}
.u-page h1, .u-page h2, .u-page h3 {
  font-family: var(--u-head); color: var(--u-ink); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.15; margin: 0;
}
.u-page h2 { font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.4rem); margin-bottom: 1rem; }
.u-page h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: .5rem; }
.u-page p { margin: 0 0 1rem; }
.u-page a { color: var(--u-blue); text-decoration: none; transition: color .15s ease; }
.u-page a:hover { color: var(--u-blue-hover); }
.u-page img { display: block; max-width: 100%; height: auto; }
.u-page ::selection { background: var(--u-blue); color: #fff; }
.u-page :focus-visible { outline: 2px solid var(--u-red); outline-offset: 3px; }

.u-skip { position: absolute; left: 16px; top: -60px; z-index: 3000; background: var(--u-deep); color: #fff !important; padding: 10px 14px; border-radius: var(--u-radius-sm); }
.u-skip:focus { top: 12px; }

.u-script { font-family: var(--u-script); font-weight: 700; letter-spacing: 0; }

.u-kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 600; color: var(--u-red);
  margin-bottom: .9rem !important;
}
.u-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.u-kicker-light { color: var(--u-red-light); }

.u-intro { font-size: 1.05rem; margin-bottom: 1.75rem !important; }

/* Icônes en pastille */
.u-ico {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--u-tint); color: var(--u-blue); font-size: 1.1rem;
}
.u-ico-solid { background: var(--u-blue); color: #fff; }
.u-ico-outline { background: transparent; border: 1.5px solid rgba(255, 255, 255, .35); color: #fff; }

/* ---------- Boutons ---------- */
.u-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: .7rem 1.3rem;
  border: 1.5px solid transparent; border-radius: var(--u-radius-sm);
  font-family: var(--u-sans); font-size: .93rem; font-weight: 600; line-height: 1.2; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.u-btn [class^="icon-"] { font-size: .95em; }
.u-btn-sm { min-height: 40px; padding: .5rem 1rem; font-size: .88rem; }
.u-page .u-btn-primary { background: var(--u-blue); color: #fff; }
.u-page .u-btn-primary:hover { background: var(--u-blue-hover); color: #fff; }
.u-page .u-btn-accent { background: var(--u-red); color: #fff; }
.u-page .u-btn-accent:hover { background: var(--u-red-hover); color: #fff; }
.u-page .u-btn-outline { border-color: var(--u-line); background: #fff; color: var(--u-ink); }
.u-page .u-btn-outline:hover { border-color: var(--u-blue); color: var(--u-blue); }
.u-page .u-btn-glass { border-color: rgba(255, 255, 255, .6); color: #fff; background: rgba(255, 255, 255, .08); }
.u-page .u-btn-glass:hover { background: #fff; color: var(--u-deep); }
.u-page .u-btn-white { background: #fff; color: var(--u-deep); }
.u-page .u-btn-white:hover { background: var(--u-tint); color: var(--u-deep); }
.u-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.u-more { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 600; }
.u-more [class^="icon-"] { transition: transform .15s ease; }
.u-more:hover [class^="icon-"] { transform: translateX(3px); }
.u-page .u-more-light { color: #fff; }

/* ---------- En-tête ---------- */
.u-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--u-line);
}
.u-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: var(--u-header-h); }
.u-brand { display: inline-flex; align-items: center; gap: .65rem; }
.u-brand img { width: 42px; height: 42px; }
.u-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.u-brand-text strong { font-family: var(--u-head); font-weight: 800; font-size: 1.02rem; color: var(--u-deep); letter-spacing: -.01em; }
.u-brand-text small { font-size: .72rem; color: var(--u-muted); letter-spacing: .02em; }
.u-brand-light img { background: #fff; border-radius: 50%; }
.u-brand-light .u-brand-text strong { color: #fff; }
.u-brand-light .u-brand-text small { color: rgba(255, 255, 255, .65); }

.u-menu { display: none; list-style: none; margin: 0; padding: 0; gap: 1.6rem; }
@media (min-width: 992px) { .u-menu { display: flex; } }
.u-page .u-menu a { display: block; padding: .45rem 0; font-size: .9rem; font-weight: 500; color: var(--u-text); }
.u-page .u-menu a:hover, .u-page .u-menu a.is-active { color: var(--u-blue); }
.u-menu a.is-active { box-shadow: inset 0 -2px 0 var(--u-blue); }
.u-header-actions { display: flex; align-items: center; gap: .6rem; }
.u-burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 11px; cursor: pointer;
  background: var(--u-tint); border: 0; border-radius: var(--u-radius-sm);
}
.u-burger span { height: 2px; background: var(--u-deep); border-radius: 2px; }
.u-page .site-mobile-menu .site-nav-wrap { padding-top: 24px; }
.u-page .site-mobile-menu .site-nav-wrap a { padding: 14px 4px; font-size: 1.05rem; font-weight: 500; color: var(--u-ink); border-bottom: 1px solid var(--u-line); box-shadow: none; }

/* ---------- Hero ---------- */
.u-hero { position: relative; overflow: hidden; color: #fff; padding: clamp(4.5rem, 9vw, 7rem) 0 clamp(7rem, 11vw, 9rem); }
.u-hero-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: 65% 35%; }
.u-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(11, 49, 102, .94) 0%, rgba(15, 63, 128, .82) 38%, rgba(15, 63, 128, .25) 72%, rgba(15, 63, 128, .05) 100%);
}
.u-hero-text { max-width: 36rem; }
.u-page .u-hero h1 { color: #fff; font-size: clamp(2.4rem, 1.5rem + 3.6vw, 3.9rem); line-height: 1.08; margin-bottom: 1.25rem; }
.u-hero h1 .u-script { color: var(--u-red-light); font-size: 1.2em; font-weight: 700; }
.u-hero-lead { font-size: 1.08rem; color: rgba(255, 255, 255, .88); margin-bottom: 2rem !important; max-width: 32rem; }
@media (max-width: 767.98px) {
  .u-hero::before { background: linear-gradient(180deg, rgba(11, 49, 102, .85) 0%, rgba(15, 63, 128, .9) 100%); }
}

.u-facts-wrap { position: relative; z-index: 2; margin-top: -4.5rem; }
.u-facts {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--u-radius); box-shadow: 0 12px 40px rgba(15, 27, 45, .12);
}
.u-facts li { display: flex; align-items: center; gap: .9rem; padding: 1.4rem 1.35rem; }
.u-facts li + li { border-left: 1px solid var(--u-line); }
.u-facts strong { display: block; font-family: var(--u-head); font-size: 1rem; font-weight: 700; color: var(--u-ink); line-height: 1.3; }
.u-facts small { display: block; font-size: .8rem; color: var(--u-muted); }
.u-facts li:nth-child(2) .u-ico { background: #fdeeea; color: var(--u-red); }
@media (max-width: 991.98px) {
  .u-facts { grid-template-columns: 1fr 1fr; }
  .u-facts li:nth-child(3) { border-left: 0; }
  .u-facts li:nth-child(n+3) { border-top: 1px solid var(--u-line); }
}
@media (max-width: 575.98px) {
  .u-facts { grid-template-columns: 1fr; }
  .u-facts li { padding: 1rem 1.15rem; }
  .u-facts li + li { border-left: 0; border-top: 1px solid var(--u-line); }
}

/* ---------- Sections ---------- */
.u-section { padding: clamp(4rem, 8vw, 6rem) 0; }
.u-section-tint { background: var(--u-tint); }
.u-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .5rem 3rem; margin-bottom: 2.25rem; }
.u-head h2 { margin: 0; max-width: 32rem; }
.u-head > p { max-width: 26rem; margin: 0; }

/* Présentation formations */
.u-feature-img { position: relative; margin: 0; padding: 1.25rem 0 0 1.25rem; }
.u-shape { position: absolute; left: 0; top: 0; width: 45%; height: 60%; background: var(--u-tint); border-radius: var(--u-radius); }
.u-shape::after { content: ""; position: absolute; right: -14px; bottom: -14px; width: 56px; height: 56px; background: var(--u-red); border-radius: 10px; opacity: .9; z-index: -1; }
.u-feature-img img { position: relative; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--u-radius); }
.u-feature-img figcaption {
  position: absolute; left: 2.25rem; bottom: 1.25rem;
  display: flex; align-items: center; gap: .75rem;
  background: #fff; padding: .7rem 1rem .7rem .7rem; border-radius: 10px; box-shadow: var(--u-shadow);
}
.u-feature-img figcaption strong { display: block; font-size: .9rem; color: var(--u-ink); }
.u-feature-img figcaption small { display: block; font-size: .78rem; color: var(--u-muted); }

.u-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.u-tile {
  display: flex; flex-direction: column; gap: .2rem;
  padding: 1.25rem; border: 1px solid var(--u-line); border-radius: var(--u-radius); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.u-tile .u-ico { margin-bottom: .75rem; }
.u-tile strong { font-family: var(--u-head); font-size: .95rem; font-weight: 700; color: var(--u-ink); line-height: 1.3; }
.u-tile small { font-size: .8rem; color: var(--u-muted); }
.u-tile:hover { border-color: var(--u-blue); box-shadow: var(--u-shadow); }
.u-tile:nth-child(even) .u-ico { background: #fdeeea; color: var(--u-red); }
@media (max-width: 991.98px) { .u-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px) {
  .u-tiles { grid-template-columns: 1fr 1fr; }
  .u-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Bandeau université */
.u-split { display: grid; grid-template-columns: 1fr 1fr; background: var(--u-deep); color: rgba(255, 255, 255, .85); }
.u-split-img { min-height: 420px; background-size: cover; background-position: center; }
.u-split-body { padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 5rem); max-width: 640px; }
.u-page .u-split h2 { color: #fff; }
.u-split-points { list-style: none; padding: 0; margin: 1.75rem 0 2rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.u-split-points li { display: flex; flex-direction: column; gap: .6rem; font-size: .88rem; font-weight: 600; color: #fff; }
.u-split-points .u-ico { background: rgba(255, 255, 255, .1); color: #fff; }
@media (max-width: 991.98px) {
  .u-split { grid-template-columns: 1fr; }
  .u-split-img { min-height: 260px; }
}
@media (max-width: 575.98px) { .u-split-points { grid-template-columns: 1fr; } .u-split-points li { flex-direction: row; align-items: center; } }

/* Onglets */
.u-tabs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; margin-bottom: 2rem; scrollbar-width: none; }
.u-tabs::-webkit-scrollbar { display: none; }
.u-tabs button {
  flex-shrink: 0; min-height: 42px; padding: .5rem 1.1rem; cursor: pointer;
  border: 1px solid var(--u-line); border-radius: 999px; background: #fff;
  font: 500 .88rem/1.2 var(--u-sans); color: var(--u-text);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.u-tabs button:hover { border-color: var(--u-blue); color: var(--u-blue); }
.u-tabs button.is-active { background: var(--u-blue); border-color: var(--u-blue); color: #fff; }

/* Cartes */
.u-grid { row-gap: 1.75rem; }
.u-grid > [class*="col-"] { display: flex; }
.u-grid > [class*="col-"][hidden] { display: none; }
.u-card {
  display: flex; flex-direction: column; width: 100%;
  background: #fff; border: 1px solid var(--u-line); border-radius: var(--u-radius); overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.u-card:hover { box-shadow: var(--u-shadow); border-color: transparent; }
.u-card-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--u-tint); }
.u-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.u-card-img .u-ico { position: absolute; left: 1.25rem; bottom: -22px; border: 3px solid #fff; box-sizing: content-box; width: 40px; height: 40px; }
.u-card-img { overflow: visible; }
.u-card-img img { border-radius: var(--u-radius) var(--u-radius) 0 0; }
.u-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.6rem 1.35rem 1.35rem; }
.u-card-img + .u-card-body { padding-top: 2rem; }
.u-card-body > p { font-size: .93rem; }
.u-card-body .u-more { margin-top: auto; }
.u-card-meta { font-size: .8rem !important; color: var(--u-red); font-weight: 600; margin-bottom: .5rem !important; }

/* Chiffres */
.u-numbers { position: relative; overflow: hidden; color: #fff; padding: clamp(3.5rem, 7vw, 5rem) 0; }
.u-numbers-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.u-numbers::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 49, 102, .96), rgba(15, 63, 128, .9)); }
.u-numbers-head { margin-bottom: 2.5rem; }
.u-page .u-numbers h2 { color: #fff; margin-bottom: .4rem; }
.u-numbers-head p { color: rgba(255, 255, 255, .75); margin: 0; }
.u-numbers-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.u-numbers-list li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; padding: .5rem 1rem; }
.u-numbers-list li + li { border-left: 1px solid rgba(255, 255, 255, .15); }
.u-numbers-list .u-ico { margin-bottom: .5rem; }
.u-numbers-list strong { font-family: var(--u-head); font-size: clamp(2rem, 1.6rem + 1.5vw, 2.8rem); font-weight: 800; line-height: 1.05; }
.u-numbers-list small { font-size: .88rem; color: rgba(255, 255, 255, .75); }
@media (max-width: 767.98px) {
  .u-numbers-list { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .u-numbers-list li:nth-child(3) { border-left: 0; }
}

/* Citations */
.u-quote {
  position: relative; display: flex; flex-direction: column; width: 100%; margin: 0;
  padding: 1.75rem 1.5rem 1.5rem; background: #fff;
  border: 1px solid var(--u-line); border-radius: var(--u-radius);
}
.u-quote-mark { font-family: Georgia, serif; font-size: 3.5rem; line-height: .6; color: var(--u-red); height: 1.6rem; }
.u-quote blockquote { margin: 0 0 1.5rem; font-size: 1rem; line-height: 1.6; color: var(--u-ink); }
.u-quote figcaption { display: flex; align-items: center; gap: .75rem; margin-top: auto; padding-top: 1.1rem; border-top: 1px solid var(--u-line); }
.u-quote figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--u-tint); }
.u-quote figcaption strong { display: block; font-size: .92rem; color: var(--u-ink); }
.u-quote figcaption small { display: block; font-size: .8rem; color: var(--u-muted); }

/* Calendrier */
.u-events { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: .75rem; }
.u-events li {
  display: flex; align-items: center; gap: 1rem;
  padding: .85rem 1rem; background: #fff; border: 1px solid var(--u-line); border-radius: var(--u-radius);
}
.u-day {
  flex-shrink: 0; width: 58px; height: 58px; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--u-blue); color: #fff; line-height: 1;
}
.u-day strong { font-family: var(--u-head); font-size: 1.35rem; font-weight: 800; }
.u-day small { font-size: .68rem; font-weight: 600; margin-top: .2rem; opacity: .85; }
.u-events li > div strong { display: block; font-family: var(--u-head); font-size: .98rem; font-weight: 700; color: var(--u-ink); }
.u-events li > div small { display: block; font-size: .84rem; color: var(--u-muted); }
.u-next {
  display: none; margin-left: .4rem; padding: .1rem .5rem; border-radius: 999px; vertical-align: 2px;
  background: #fdeeea; color: var(--u-red); font: 600 .7rem/1.4 var(--u-sans);
}
.u-events li.is-next { border-color: var(--u-red); }
.u-events li.is-next .u-day { background: var(--u-red); }
.u-events li.is-next .u-next { display: inline-block; }
.u-events li.is-past { opacity: .5; }

.u-events-img { position: relative; margin: 0; }
.u-events-img img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; border-radius: var(--u-radius); }
.u-events-img figcaption {
  position: absolute; right: 1.25rem; top: 1.25rem;
  background: var(--u-red); color: #fff; font-size: 1.5rem; line-height: 1.1;
  padding: .45rem .9rem; border-radius: 10px; transform: rotate(-3deg);
}

/* Appel à l'action */
.u-cta-wrap { padding-bottom: clamp(4rem, 8vw, 6rem); }
.u-cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem;
  padding: clamp(2rem, 5vw, 3.25rem) clamp(1.5rem, 5vw, 3.5rem);
  border-radius: var(--u-radius); color: #fff;
}
.u-cta-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center 60%; }
.u-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 49, 102, .97) 0%, rgba(15, 63, 128, .9) 55%, rgba(15, 63, 128, .55) 100%); }
.u-cta-text { max-width: 34rem; }
.u-page .u-cta h2 { color: #fff; font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); margin-bottom: .5rem; }
.u-cta p { margin: 0; color: rgba(255, 255, 255, .8); }
.u-cta-script { position: absolute; right: 2rem; bottom: .75rem; font-size: 1.35rem; line-height: 1; color: rgba(255, 255, 255, .55); transform: rotate(-4deg); text-align: right; }
@media (max-width: 991.98px) { .u-cta-script { display: none; } }

/* ---------- Pied de page ---------- */
.u-footer { background: var(--u-deep-2); color: rgba(255, 255, 255, .72); padding-top: clamp(3.5rem, 6vw, 4.5rem); font-size: .92rem; }
.u-page .u-footer h3 { font-family: var(--u-sans); font-size: .9rem; font-weight: 600; color: #fff; margin-bottom: 1.1rem; }
.u-footer ul { list-style: none; margin: 0; padding: 0; }
.u-footer li { margin-bottom: .55rem; }
.u-page .u-footer a { color: rgba(255, 255, 255, .78); }
.u-page .u-footer a:hover { color: #fff; }
.u-footer-text { margin-top: 1.1rem !important; max-width: 22rem; }
.u-footer-contact li { display: flex; gap: .65rem; }
.u-footer-contact [class^="icon-"] { margin-top: .3rem; width: 1rem; text-align: center; color: var(--u-red-light); flex-shrink: 0; }
.u-footer address { margin: 0; }
.u-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; }
.u-footer-bottom p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
