/* ============================================================
   Paris Digital School — Program detail pages v5
   Loaded via custom_css block on program_detail.html.twig only
   v2.2
   ============================================================ */

/* ---- Design tokens ---- */
:root {
  --pds-blue:        #0084BC;
  --pds-blue-bright: #27AAE1;
  --pds-blue-deep:   #00638c;
  --pds-orange:      #FF5500;
  --pds-ink:         #1c2b33;
  --pds-body:        #46555d;
  --pds-line:        #e4ebef;
  --pds-tint:        #f0f8fc;
  --pds-tint-2:      #f7fafc;
  --pds-white:       #ffffff;
  --pds-dark:        #14222b;
  --pds-gradient:    linear-gradient(270deg, var(--pds-blue-bright) 0%, var(--pds-blue) 100%);

  --ff-body:  'Jost', system-ui, -apple-system, sans-serif;
  --ff-serif: 'Libre Baskerville', Georgia, serif;

  --radius-card: 10px 10px 70px 10px;
  --radius-soft: 14px;
  --shadow-soft: 0 8px 30px rgba(0,72,104,.07);
  --header-h: 78px;
  --anchor-h: 56px;
}

/* ---- Base (program pages only) ---- */
body {
  font-family: var(--ff-body);
  color: var(--pds-body);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}
h1,h2,h3,h4 { font-family: var(--ff-serif); color: var(--pds-ink); line-height: 1.2; font-weight: 700; }
p { margin: 0 0 1rem; }
strong { color: var(--pds-ink); font-weight: 600; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin-bottom: .4rem; }
html { scroll-behavior: smooth; }

/* ---- Container ---- */
.pg-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- Buttons ---- */
.btn-pds {
  --bg: var(--pds-blue);
  --fg: #fff;
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--ff-body); font-weight: 600; font-size: .98rem;
  padding: .8em 1.5em;
  color: var(--fg); background: var(--bg);
  border: 2px solid var(--bg);
  border-radius: 8px;
  box-shadow: 5px 5px 0 rgba(0,0,0,.18);
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .2s, color .2s;
  text-decoration: none;
}
.btn-pds:hover {
  background: #fff; color: var(--bg);
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transform: translate(5px,5px);
}
.btn-pds.is-orange { --bg: var(--pds-orange); }
.btn-pds.is-ghost {
  background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.85);
  box-shadow: 5px 5px 0 rgba(0,0,0,.12);
}
.btn-pds.is-ghost:hover { background: #fff; color: var(--pds-blue); }

/* ============================================================
   HERO
   ============================================================ */
.prog-hero {
  position: relative;
  padding: calc(var(--header-h) + 42px) 0 0;
  background: var(--pds-blue-deep);
  color: #fff; overflow: hidden;
}
.prog-hero-bg {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 0;
  background-size: cover; background-position: center 35%;
}
.prog-hero::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1;
  background: linear-gradient(270deg, rgba(0,99,140,.80) 0%, rgba(0,132,188,.92) 100%);
  pointer-events: none;
}
.prog-hero .pg-wrap { position: relative; z-index: 2; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.1rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5em;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35);
  color: #fff; font-weight: 500; font-size: .82rem; letter-spacing: .03em; text-transform: uppercase;
  padding: .42em 1em; border-radius: 50px;
  backdrop-filter: blur(3px);
}
.hero-badge i { color: #fff; font-size: .85em; }
.prog-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: .25em; text-shadow: 0 2px 18px rgba(0,40,60,.35); }
.hero-rncp { font-family: var(--ff-body); font-size: 1rem; color: rgba(255,255,255,.9); margin-bottom: 0; padding-bottom: 2.4rem; }
/* CTA bar — pleine largeur */
.hero-cta, .hero-flash {
  position: relative; left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw; width: 100vw;
}
.hero-cta {
  display: flex; flex-wrap: wrap; align-items: stretch;
  background: rgba(8,28,40,.62);
  border-top: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(5px);
}
.hero-cta-inner {
  width: 100%; max-width: 1200px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: stretch;
}
.hero-cta a {
  flex: 1 1 0; min-width: 200px;
  display: flex; align-items: center; justify-content: center; gap: .7em;
  padding: 1.25rem 1.5rem;
  color: #fff; font-family: var(--ff-body); font-weight: 500; font-size: 1rem;
  border-left: 1px solid rgba(255,255,255,.14);
  transition: background .2s, color .2s;
  text-decoration: none;
}
.hero-cta a:first-child { border-left: 0; }
.hero-cta a i { color: var(--pds-blue-bright); font-size: 1.15em; transition: color .2s; }
.hero-cta a:hover { background: rgba(255,255,255,.96); color: var(--pds-blue); }
.hero-cta a:hover i { color: var(--pds-blue); }
.hero-flash {
  display: flex; align-items: center; justify-content: center; gap: .6em;
  background: var(--pds-orange); color: #fff; font-weight: 500; font-size: .92rem;
  padding: .7rem 1rem; text-align: center;
}

/* ============================================================
   ANCHOR BAR
   ============================================================ */
.prog-anchor-bar {
  position: sticky; top: var(--header-h); z-index: 900;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--pds-line);
  box-shadow: 0 4px 18px rgba(0,72,104,.05);
}
.prog-anchor-bar ul {
  display: flex; gap: .3rem; list-style: none; margin: 0; padding: 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.prog-anchor-bar ul::-webkit-scrollbar { display: none; }
.prog-anchor-bar a {
  position: relative; display: block; white-space: nowrap; padding: 1rem .9rem;
  font-weight: 500; font-size: .93rem; color: var(--pds-body); text-decoration: none;
}
.prog-anchor-bar a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--pds-gradient); transition: width .3s;
}
.prog-anchor-bar a:hover { color: var(--pds-blue); }
.prog-anchor-bar a:hover::after,
.prog-anchor-bar a.active::after { width: 100%; }
.prog-anchor-bar a.active { color: var(--pds-blue); }

/* ============================================================
   SECTIONS
   ============================================================ */
.prog-section { padding: 80px 0; scroll-margin-top: calc(var(--header-h) + var(--anchor-h)); }
.prog-section.tint { background: var(--pds-tint); }
.prog-section.tint2 { background: var(--pds-tint-2); }
.sec-head { max-width: 760px; margin-bottom: 3rem; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head--logos { display: flex; align-items: center; gap: 2.5rem; max-width: 100%; }
.sec-head--logos .sec-head-text { flex: 1; min-width: 0; }
.sec-certifs { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.sec-certifs .cl { background: #fff; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,.07); padding: 14px; display: flex; align-items: center; justify-content: center; }
.sec-certifs .cl img { max-height: 100px; width: auto; display: block; }
@media (max-width: 760px) { .sec-head--logos { flex-direction: column; align-items: flex-start; } }
.eyebrow {
  display: inline-block; font-family: var(--ff-body); font-weight: 600;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--pds-blue); margin-bottom: .8rem;
}
.sec-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: .5rem; }
.sec-head p { font-size: 1.08rem; margin: 0; }

/* Content area for raw HTML sections */
.prog-content { font-size: 1rem; line-height: 1.7; }
.prog-content h3 { font-size: 1.2rem; margin: 1.4rem 0 .5rem; }
.prog-content ul, .prog-content ol { padding-left: 1.3rem; }
.prog-content li { margin-bottom: .4rem; }

/* ---- Reveal override (add auto-animation fallback) ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; animation: revealAuto .8s ease forwards; }
.reveal.in { opacity: 1; transform: none; animation: none; }
@keyframes revealAuto { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* ============================================================
   CARDS
   ============================================================ */
.card-pds {
  background: #fff; border: 1px solid var(--pds-line);
  border-radius: var(--radius-card);
  padding: 2rem 1.9rem; height: 100%;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card-pds:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); border-color: #cfe3ee; }
.card-ico {
  width: 84px; height: 84px; border-radius: 20px;
  background: var(--pds-tint); color: var(--pds-blue);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.3rem; border: 1px solid #e2f0f8;
}
.card-ico svg { width: 40px; height: 40px; stroke: var(--pds-blue); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card-pds h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.card-pds p, .card-pds li { font-size: .98rem; }
.card-pds.is-centered { text-align: center; }

/* ---- Grid systems ---- */
.pg-grid { display: grid; gap: 1.6rem; }
.pg-grid-2 { grid-template-columns: repeat(2, 1fr); }
.pg-grid-3 { grid-template-columns: repeat(3, 1fr); }
.pg-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .pg-grid-3, .pg-grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .pg-grid-2, .pg-grid-3, .pg-grid-4 { grid-template-columns: 1fr; } }

/* ---- Présentation cards (MBA1/MBA2) ---- */
.pres-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin-top: 2rem; }
@media (max-width: 760px) { .pres-cards { grid-template-columns: 1fr; } }
.pres-card { background: #fff; border: 1px solid var(--pds-line); border-radius: var(--radius-card); padding: 2rem; }
.pres-card .tag {
  display: inline-block; background: var(--pds-gradient); color: #fff;
  font-weight: 600; font-size: .85rem; letter-spacing: .04em;
  padding: .4em 1em; border-radius: 6px; margin-bottom: 1rem;
}
.pres-card .hl { color: var(--pds-blue); font-weight: 700; }

/* ---- Orient cards ---- */
.orient { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-bottom: 2.5rem; }
@media (max-width: 680px) { .orient { grid-template-columns: 1fr; } }
.orient-card {
  background: #fff; border: 1px solid var(--pds-line);
  border-radius: var(--radius-card); padding: 1.6rem 1.8rem;
  border-top: 4px solid var(--pds-blue-bright);
}
.orient-card .tag {
  display: inline-block; background: var(--pds-gradient); color: #fff;
  font-weight: 600; font-size: .82rem; letter-spacing: .04em;
  padding: .35em .9em; border-radius: 6px; margin-bottom: .7rem;
}
.orient-card p { margin: 0; font-size: 1rem; }
.obj-lead { font-weight: 600; color: var(--pds-ink); font-size: 1.08rem; margin-bottom: 1.6rem; }

/* ---- Stats ---- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.4rem; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }
.stat {
  background: #fff; border: 1px solid var(--pds-line); border-radius: var(--radius-soft);
  padding: 2rem 1.5rem; text-align: center;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: #cfe3ee; }
.stat-ico { width: 84px; height: 84px; border-radius: 20px; background: var(--pds-tint); color: var(--pds-blue); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; border: 1px solid #e2f0f8; }
.stat-ico svg { width: 40px; height: 40px; stroke: var(--pds-blue); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.stat .num { font-family: var(--ff-serif); font-size: 1.9rem; color: var(--pds-blue); font-weight: 700; line-height: 1; margin-bottom: .4rem; }
.stat .lbl { font-size: .95rem; color: var(--pds-body); }

/* ---- Rythme cards ---- */
.rythmes { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem; margin-top: 1.6rem; }
@media (max-width: 760px) { .rythmes { grid-template-columns: 1fr; } }
.rythme {
  background: #fff; border: 1px solid var(--pds-line); border-radius: var(--radius-card);
  padding: 2rem 1.9rem; display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.rythme:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); border-color: #cfe3ee; }
.rythme-ico { width: 84px; height: 84px; border-radius: 20px; background: var(--pds-tint); color: var(--pds-blue); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.2rem; border: 1px solid #e2f0f8; }
.rythme-ico svg { width: 40px; height: 40px; stroke: var(--pds-blue); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rythme h3 { font-size: 1.15rem; margin-bottom: .9rem; }
.rythme-facts { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-bottom: .9rem; }
.rythme-fact { display: inline-flex; align-items: center; gap: .4em; font-size: .82rem; font-weight: 600; color: var(--pds-blue); background: var(--pds-tint); border-radius: 50px; padding: .3em .8em; }
.rythme p { font-size: .96rem; margin: 0; }

/* ---- Handi card ---- */
.handi {
  text-align: center; margin-top: 1.6rem;
  background: #fff; border: 1px solid var(--pds-line);
  border-radius: var(--radius-card); padding: 2rem 1.9rem;
  max-width: 760px; margin-left: auto; margin-right: auto;
}
.handi-ico { width: 84px; height: 84px; border-radius: 20px; background: var(--pds-tint); color: var(--pds-blue); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.2rem; border: 1px solid #e2f0f8; }
.handi-ico svg { width: 40px; height: 40px; stroke: var(--pds-blue); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.handi h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.handi p { margin: 0; font-size: .96rem; }

/* ---- Handi + Ranking 2-col row (50 / 50) ---- */
.handi-row { display: flex; gap: 24px; margin-top: 1.6rem; align-items: stretch; }
.handi-row .handi { flex: 1 1 0; min-width: 0; margin-top: 0; max-width: none; margin-left: 0; margin-right: 0; }
.handi-row .handi-ico { margin: 0 auto 1.2rem; }
.handi-rank {
  flex: 1 1 0; min-width: 0;
  background: #fff; border: 1px solid #eef1f5; border-radius: 22px;
  padding: 40px 26px 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 6px 22px rgba(13,27,36,.05);
}
.handi-rank .ai { width: 94px; height: 94px; border-radius: 26px; background: #fff; display: grid; place-items: center; margin-bottom: 12px; overflow: hidden; padding: 0; }
.handi-rank .ai img { width: 75%; height: 100%; object-fit: contain; border-radius: 20px; }
.handi-rank h4 { font-size: 1.14rem; margin-bottom: 6px; color: var(--ink); }
.handi-rank p { color: var(--gray); line-height: 1.6; font-size: .95rem; margin: 0; }
.handi-rank p a { color: var(--pds-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.handi-rank p a:hover { color: var(--pds-blue-dark, #006fa0); }
.handi-rank .edu-widget { margin-top: 10px; width: 100%; display: block; overflow: hidden; }
.handi-rank .edu-widget > div { max-width: 100%; margin: 0 auto; }
#edu-program-7348-16, #edu-award-8048-1,
#edu-mobile-program-7348-16, #edu-mobile-award-8048-1 { height: 170px !important; }
@media (max-width: 700px) {
  .handi-row { flex-direction: column; }
}
.edu-w-mobile { display: none; }
.edu-w-desktop { display: block; }
@media (max-width: 640px) {
  .edu-w-desktop { display: none; }
  .edu-w-mobile { display: block; }
  #edu-mobile-program-7348-16, #edu-mobile-award-8048-1 { height: 320px !important; }
  .handi-rank .edu-widget { overflow: visible; height: 320px; }
}

/* ---- Why-list ---- */
.why-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 2rem; }
@media (max-width: 680px) { .why-list { grid-template-columns: 1fr; } }
.why-list li { display: flex; gap: .8em; align-items: flex-start; margin: 0; font-size: 1rem; }
.why-list i { color: var(--pds-blue); margin-top: .25em; }

/* ============================================================
   MODULES
   ============================================================ */
.mod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
@media (max-width: 760px) { .mod-grid { grid-template-columns: 1fr; } }
.mod-col { background: #fff; border: 1px solid var(--pds-line); border-radius: var(--radius-card); padding: 2rem 1.9rem; }
.mod-col > .tag {
  display: inline-block; color: var(--pds-blue); font-weight: 600;
  border: 1px solid var(--pds-blue); border-radius: 6px; padding: .35em .9em; margin-bottom: 1.4rem; font-size: .95rem;
}
.mod-block { margin-bottom: 1.2rem; }
.mod-block > strong { display: block; color: var(--pds-ink); margin-bottom: .3rem; font-size: 1.02rem; }
.mod-block ul { margin: 0; padding-left: 1.1rem; }
.mod-block li { font-size: .95rem; margin-bottom: .25rem; }

/* ============================================================
   ADMISSION TIMELINE
   ============================================================ */
.timeline { display: flex; align-items: stretch; justify-content: center; gap: 0; margin-bottom: 3rem; }
.tl-step {
  flex: 1; background: #fff; border: 1px solid var(--pds-line); border-radius: var(--radius-card);
  padding: 2.4rem 1.8rem 2rem; text-align: center;
  opacity: 0; transform: translateY(28px);
  transition: background .3s, box-shadow .3s, border-color .3s;
  animation: tl-rise .65s cubic-bezier(.2,.7,.3,1) forwards .15s;
}
.timeline.in .tl-step { animation: tl-rise .65s cubic-bezier(.2,.7,.3,1) forwards; }
.timeline.in .tl-step:nth-of-type(2) { animation-delay: .55s; }
.timeline.in .tl-step:nth-of-type(3) { animation-delay: 1.1s; }
@keyframes tl-rise { to { opacity: 1; transform: none; } }
.tl-step:hover { box-shadow: var(--shadow-soft); border-color: #cfe3ee; }
.tl-link { flex: 0 0 56px; align-self: center; position: relative; height: 3px; }
.tl-link::before { content: ""; position: absolute; inset: 0 5px; background: var(--pds-line); border-radius: 3px; }
.tl-link::after {
  content: ""; position: absolute; inset: 0 5px; border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--pds-blue-bright) 0 7px, transparent 7px 14px);
  background-size: 14px 3px; animation: tl-flow .8s linear infinite;
  box-shadow: 0 0 8px rgba(39,170,225,.5);
}
@keyframes tl-flow { to { background-position: 14px 0; } }
.tl-ico {
  position: relative; width: 84px; height: 84px; border-radius: 20px;
  background: var(--pds-tint); border: 1px solid #e2f0f8;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1.3rem;
}
.tl-ico svg { width: 40px; height: 40px; stroke: var(--pds-blue); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tl-num {
  position: absolute; top: -10px; right: -10px;
  font-family: var(--ff-serif); font-size: .9rem; font-weight: 700; color: #fff;
  background: var(--pds-gradient); width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(0,99,140,.3);
}
.tl-step h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.tl-step p { font-size: .95rem; margin: 0; }
.tl-cta {
  display: inline-flex; align-items: center; gap: .5em; margin-top: 1.4rem;
  font-family: var(--ff-body); font-weight: 600; font-size: .95rem;
  padding: .7em 1.5em; border-radius: 8px;
  background: #fff; color: var(--blue-deep); text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  transition: transform .2s, box-shadow .2s;
}
.tl-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.15); color: var(--blue-deep); }
.tl-ico svg * { stroke-dasharray: 240; stroke-dashoffset: 240; animation: tl-draw 1.3s ease forwards .5s; }
.timeline.in .tl-step .tl-ico svg * { animation: tl-draw 1.3s ease forwards .35s; }
.timeline.in .tl-step:nth-of-type(2) .tl-ico svg * { animation-delay: .9s; }
.timeline.in .tl-step:nth-of-type(3) .tl-ico svg * { animation-delay: 1.45s; }
@keyframes tl-draw { to { stroke-dashoffset: 0; } }
@media (max-width: 768px) { .timeline { flex-direction: column; gap: 18px; } .tl-link { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .tl-step { opacity: 1 !important; transform: none !important; animation: none !important; }
  .tl-ico svg * { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; animation: none !important; }
  .tl-link::after { animation: none !important; }
}

/* ---- Blocs RNCP ---- */
.blocs { background: #fff; border: 1px solid var(--pds-line); border-radius: var(--radius-soft); padding: 2rem; }
.bloc-item { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--pds-line); }
.bloc-item:last-child { border-bottom: 0; }
.bloc-code { font-family: var(--ff-body); font-weight: 700; color: var(--pds-blue); font-size: .9rem; white-space: nowrap; }

/* ============================================================
   DÉBOUCHÉS — MÉTIERS
   ============================================================ */
.metier-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem; }
@media (max-width: 880px) { .metier-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .metier-grid { grid-template-columns: 1fr; } }
.metier {
  border: 1px solid var(--pds-line); border-radius: var(--radius-card);
  padding: 2.2rem 1.7rem; background: #fff; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 6px 22px rgba(13,27,36,.05);
  transition: transform .3s, box-shadow .3s, border-color .3s;
  text-decoration: none; cursor: pointer;
}
.metier:hover { border-color: transparent; box-shadow: 0 18px 40px rgba(0,132,188,.13); transform: translateY(-6px); }
.metier .mi {
  width: 84px; height: 84px; border-radius: 24px;
  background: linear-gradient(160deg,#e9f6fc 0%,#f5fbff 100%);
  display: grid; place-items: center; margin-bottom: 1.3rem;
  box-shadow: inset 0 0 0 1px rgba(39,170,225,.12);
}
.metier .mi svg { width: 40px; height: 40px; fill: none; stroke: var(--pds-blue-deep); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.metier:hover .mi svg { stroke: var(--pds-blue-bright); }
.metier h3 { font-size: 1.12rem; margin: 0 0 .3rem; color: var(--pds-ink); }
.metier .role-sub { color: var(--pds-blue); font-weight: 500; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }

/* ============================================================
   CORPS PROFESSORAL
   ============================================================ */
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.6rem; }
@media (max-width: 1100px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .team-grid { grid-template-columns: 1fr; } }
.teacher {
  background: #fff; border: 1px solid var(--pds-line); border-radius: var(--radius-card);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.teacher:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.teacher .ph img { width: 100%; height: 180px; object-fit: cover; display: block; }
.teacher .body { padding: 1.3rem 1.2rem 1rem; display: flex; flex-direction: column; flex: 1; }
.teacher .name { font-family: var(--ff-serif); font-weight: 700; color: var(--pds-ink); font-size: .98rem; line-height: 1.2; margin-bottom: .25rem; }
.teacher .role { color: var(--pds-blue); font-size: .82rem; font-weight: 600; margin-bottom: .75rem; }
.teacher .bio { font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.teacher .bio-more { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.teacher.open .bio-more { max-height: 600px; }
.teacher .bio-more-inner { font-size: .88rem; margin-top: .5rem; }
.teacher .more-btn {
  background: none; border: 0; cursor: pointer;
  color: var(--pds-blue); font-family: var(--ff-body); font-weight: 600; font-size: .88rem;
  margin-top: auto; padding-top: .9rem; padding-bottom: 0; padding-left: 0; padding-right: 0; align-self: flex-start;
  display: flex; align-items: center; gap: .4em;
}
.teacher .more-btn:hover { color: var(--pds-blue-deep); }
.team-more { text-align: center; margin-top: 2.5rem; }

/* ============================================================
   FINANCEMENT
   ============================================================ */
.fin-price {
  background: var(--pds-gradient); color: #fff; border-radius: var(--radius-card);
  padding: 2.2rem 2.4rem; margin-bottom: 1.6rem;
  display: grid; grid-template-columns: auto 1fr; gap: 1rem 3rem; align-items: center;
}
@media (max-width: 760px) { .fin-price { grid-template-columns: 1fr; gap: 1.3rem; } }
.fin-price h3 { color: #fff; font-size: 1.2rem; margin: 0 0 1rem; grid-column: 1 / -1; }
.fin-amounts { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.fin-amount .v { font-family: var(--ff-serif); font-size: 2.1rem; font-weight: 700; line-height: 1; }
.fin-amount .k { font-size: .9rem; color: rgba(255,255,255,.85); margin-top: .3rem; }
.fin-right { display: flex; flex-direction: column; }
.fin-pay { list-style: none; padding: 0; margin: 0; }
.fin-pay li { display: flex; align-items: flex-start; gap: .6em; font-size: .96rem; color: rgba(255,255,255,.95); margin-bottom: .5rem; }
.fin-pay li i { margin-top: .25em; color: #fff; }
.fin-bank { margin-top: .9rem; font-size: .9rem; color: rgba(255,255,255,.9); border-top: 1px solid rgba(255,255,255,.25); padding-top: .9rem; }
.fin-bank a { color: #fff; text-decoration: underline; }
.fin-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem; }
@media (max-width: 880px) { .fin-grid { grid-template-columns: 1fr; } }
.fin-card {
  background: #fff; border: 1px solid var(--pds-line); border-radius: var(--radius-card); padding: 2rem 1.9rem;
  display: flex; flex-direction: column;
}
.fin-card .fico { width: 84px; height: 84px; border-radius: 20px; background: var(--pds-tint); border: 1px solid #e2f0f8; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.2rem; }
.fin-card .fico svg { width: 40px; height: 40px; stroke: var(--pds-blue); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fin-card h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.fin-card p { font-size: .96rem; margin: 0 0 1.1rem; }
.gov-link {
  display: inline-flex; align-items: center; gap: .5em; margin-top: auto; align-self: flex-start;
  background: var(--pds-blue-bright); color: #fff; padding: .7em 1.2em; border-radius: 8px;
  font-size: .9rem; font-weight: 600; text-decoration: none;
}
.gov-link:hover { background: var(--pds-blue-deep); color: #fff; }
/* Generic funding blocks */
.fi-title { font-family: var(--ff-serif); color: var(--pds-blue); font-weight: 700; font-size: 1.05rem; margin: 1.3rem 0 .6rem; }
.fi-content { font-size: .98rem; }
.fi-content a.gov-link { display: inline-block; background: var(--pds-blue-bright); color: #fff; padding: .6em 1.1em; border-radius: 8px; margin: .3rem 0; font-size: .92rem; }

/* ============================================================
   ACCORDION (Infos pratiques)
   ============================================================ */
.acc { max-width: 920px; margin: 0 auto; }
.acc-item { background: #fff; border: 1px solid var(--pds-line); border-radius: var(--radius-soft); margin-bottom: 1rem; overflow: hidden; }
.acc-head {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--ff-serif); font-weight: 700; color: var(--pds-ink); font-size: 1.12rem;
  padding: 1.3rem 1.6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.acc-head:hover { color: var(--pds-blue); }
.acc-head i { color: var(--pds-blue); transition: transform .3s; flex: none; }
.acc-item.open .acc-head i { transform: rotate(180deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.acc-item.open .acc-body { max-height: 2600px; }
.acc-body-inner { padding: 0 1.6rem 1.5rem; font-size: .98rem; }
.acc-body-inner a.gov-link { display: inline-flex; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.quote-feature {
  max-width: 100%; flex: 0 0 100%; margin: 0 auto; text-align: center; position: relative;
  background: #fff; border: 1px solid var(--pds-line); border-radius: var(--radius-card);
  padding: 3.4rem 3rem 2.6rem;
}
.quote-feature .qmark { font-family: var(--ff-serif); font-size: 5rem; line-height: .8; color: var(--pds-blue-bright); opacity: .35; height: 2.2rem; }
.quote-feature blockquote {
  margin: 0 0 1.8rem; border: 0; padding: 0;
  font-family: var(--ff-serif); font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.5; color: var(--pds-ink);
}
.quote-feature .author { display: flex; align-items: center; justify-content: center; gap: .9rem; }
.quote-feature .author .av {
  width: 52px; height: 52px; border-radius: 50%; background: var(--pds-gradient);
  color: #fff; display: grid; place-items: center; font-family: var(--ff-body); font-weight: 700; font-size: 1rem; flex: none;
}
.quote-feature .author .who { text-align: left; }
.quote-feature .author .n { color: var(--pds-ink); font-weight: 600; }
.quote-feature .author .p { font-size: .9rem; color: var(--pds-body); }
/* Video testimonials */
.prog-video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 2rem; }
@media (max-width: 900px) { .prog-video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .prog-video-grid { grid-template-columns: 1fr; } }
.prog-video-item { background: #fff; border: 1px solid var(--pds-line); border-radius: var(--radius-card); overflow: hidden; }

/* ============================================================
   CALL POP-UP
   ============================================================ */
.call-pop {
  position: fixed; inset: 0; z-index: 2000; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(8,22,30,.7); backdrop-filter: blur(4px);
}
.call-pop.open { display: flex; }
.call-card {
  position: relative; width: 100%; max-width: 540px;
  background: var(--pds-gradient); color: #fff; border-radius: 20px;
  padding: 2.4rem 2.2rem; box-shadow: 0 30px 80px rgba(0,0,0,.4);
  text-align: center;
}
.call-card .close {
  position: absolute; top: 14px; right: 16px; background: none; border: 0; cursor: pointer;
  color: rgba(255,255,255,.85); font-size: 1.3rem; line-height: 1; padding: 6px;
}
.call-card .close:hover { color: #fff; }
.call-card .cc-head { font-family: var(--ff-serif); font-size: 1.25rem; margin-bottom: 1.6rem; color: #fff; }
.call-contact {
  display: flex; align-items: center; gap: 18px; text-align: left;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: 16px; padding: 18px 20px;
}
.call-contact .ac-av {
  flex: none; width: 58px; height: 58px; border-radius: 50%; background: #fff;
  color: var(--pds-blue-deep); display: grid; place-items: center; font-weight: 700; font-size: 1.15rem;
}
.call-contact .ac-info b { display: block; color: #fff; font-size: 1.1rem; line-height: 1.2; }
.call-contact .ac-info .role { display: block; color: rgba(255,255,255,.85); font-size: .86rem; margin: 3px 0 10px; }
.call-contact .ac-links { display: flex; flex-direction: column; gap: 8px; }
.call-contact .ac-links a { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-size: .95rem; font-weight: 500; text-decoration: none; }
.call-contact .ac-links a:hover { color: #d6f1ff; }
.call-contact .ac-links svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 480px) { .call-contact { flex-direction: column; text-align: center; } .call-contact .ac-links { align-items: center; } .cta-contact { max-width: 100%; } .call-contact .ac-info { min-width: 0; } .call-contact .ac-links a { word-break: break-word; } }

/* ============================================================
   CTA FINAL
   ============================================================ */
.prog-foot-cta { background: var(--pds-gradient); color: #fff; text-align: center; padding: 70px 0; }
.prog-foot-cta h2 { font-family: var(--ff-serif); color: #fff; font-size: clamp(1.6rem,3.5vw,2.4rem); margin-bottom: .6rem; }
.prog-foot-cta p { color: rgba(255,255,255,.92); max-width: 560px; margin: 0 auto 1.8rem; font-size: 1.08rem; }
.prog-foot-cta .btns { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }
.prog-foot-cta .fbtn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--ff-body); font-weight: 600; font-size: 1rem;
  padding: .85em 1.6em; border-radius: 8px; border: 2px solid #fff;
  transition: background .2s, color .2s; text-decoration: none;
}
.prog-foot-cta .fbtn-solid { background: #fff; color: var(--pds-blue-deep); }
.prog-foot-cta .fbtn-solid:hover { background: var(--pds-blue-deep); color: #fff; }
.prog-foot-cta .fbtn-ghost { background: transparent; color: #fff; }
.prog-foot-cta .fbtn-ghost:hover { background: #fff; color: var(--pds-blue-deep); }
.cta-contact { display: inline-flex; margin: 0 auto 1.8rem; text-align: left; }

/* ============================================================
   CERTIFICATIONS
   ============================================================ */
.prog-certifs { background: var(--pds-tint); padding: 54px 0; }
.prog-certifs .inner { display: grid; grid-template-columns: auto 1fr; gap: 42px; align-items: center; }
@media (max-width: 768px) { .prog-certifs .inner { grid-template-columns: 1fr; gap: 26px; } }
.certif-logos { display: flex; gap: 18px; flex-wrap: wrap; }
.certif-logos .cl {
  background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,.06); padding: 18px 24px; display: flex; align-items: center; justify-content: center; height: 116px;
}
.certif-logos .cl img { max-height: 78px; width: auto; display: block; }
.certif-text { color: var(--pds-body); line-height: 1.65; font-size: .92rem; }
.certif-text strong { color: var(--pds-ink); font-weight: 600; }
.certif-text .af { display: block; margin-top: 12px; color: var(--pds-orange); font-weight: 700; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  :root { --header-h: 70px; }
  .prog-section { padding: 54px 0; }
  .sec-head { margin-bottom: 2rem; }
  .prog-hero { padding-top: calc(var(--header-h) + 30px); }
  .prog-hero h1 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .hero-rncp { padding-bottom: 1.8rem; font-size: .95rem; }
  .hero-badge { font-size: .74rem; padding: .4em .85em; }
  .hero-cta a { padding: 1rem 1.2rem; font-size: .95rem; }
  .hero-flash { font-size: .85rem; padding: .65rem .9rem; }
  .prog-anchor-bar a { padding: .9rem .8rem; font-size: .88rem; }
  .quote-feature { padding: 2.6rem 1.6rem 2rem; }
  .prog-video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .hero-cta a { flex-basis: 100%; border-left: 0; border-top: 1px solid rgba(255,255,255,.12); justify-content: flex-start; }
  .hero-cta a:first-child { border-top: 0; }
}
@media (max-width: 420px) {
  .pg-wrap { padding: 0 18px; }
  .hero-cta, .hero-flash { margin-left: -50vw; margin-right: -50vw; }
  .fin-price { padding: 1.5rem 1.3rem; }
  .tl-step { padding: 1.5rem 1.3rem; }
}

.president{background:linear-gradient(180deg,var(--bg) 0%,var(--bg-soft) 100%)}
.pres-carousel{position:relative}
.pres-viewport{overflow:hidden;border-radius:30px}
.pres-slides{display:flex;transition:transform .6s cubic-bezier(.4,.0,.2,1)}
.pres-card{flex:0 0 100%;display:flex;flex-direction:column;gap:32px;background:#fff;border-radius:30px;box-shadow:var(--soft-shadow);padding:46px;position:relative;overflow:hidden;margin:0;}
#corps-professoral .pres-card{flex-direction:row;}
@media(max-width: 567px) {
  #corps-professoral .pres-card {flex-direction: column;}
}
.pres-card::before{content:"\201C";position:absolute;font-family:"Libre Baskerville",serif;font-size:13rem;color:rgba(39,170,225,.08);right:30px;top:-50px;line-height:1}
.pres-card-head{display:flex;flex-direction:column;align-items:center;gap:16px}
.pres-card-head .ai-logo{flex:0 0 auto;width:100px}
.pres-card-head .ai-logo img{width:100%;height:auto;display:block}
.pres-card-head h4{margin:0;text-align:center}
.pres-widgets-row{display:flex;gap:24px;align-items:flex-start}
.pres-widget-col{flex:1 1 0;min-width:0}
.pres-photo{aspect-ratio:1;border-radius:24px 24px 70px 24px;background:var(--grad);display:grid;place-items:center;color:#fff;overflow:hidden;position:relative;}
#corps-professoral .pres-photo{flex:0 0 300px; max-height: 300px;}
@media(max-width: 567px) {#corps-professoral .pres-photo{flex:0 0 220px; max-height: 220px;}}
.pres-photo img{width:100%;height:100%;object-fit:cover;object-position:center 15%;display:block}
.pres-photo .av-init{width:100%;height:100%;display:grid;place-items:center;font-family:"Libre Baskerville",serif;font-size:4rem;font-weight:700;color:#fff}
.pres-quote{font-size:1.08rem;line-height:1.7;color:#3a4a54;position:relative;z-index:1}
.pres-quote .sig{margin-top:22px;display:flex;align-items:center;gap:14px}
.pres-quote .sig b{font-size:1.15rem;color:var(--blue-deep);font-family:"Libre Baskerville",serif}
.pres-quote .sig span{color:var(--gray);font-size:.92rem}
.pres-nav{position:absolute;top:50%;transform:translateY(-50%);width:52px;height:52px;border-radius:50%;border:0;cursor:pointer;background:#fff;color:var(--blue-deep);box-shadow:0 8px 24px rgba(0,72,104,.18);display:grid;place-items:center;z-index:3;transition:background .2s,color .2s,transform .2s}
.pres-nav:hover{background:var(--blue-deep);color:#fff}
.pres-nav svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.pres-nav.prev{left:-22px}
.pres-nav.next{right:-22px}
.pres-dots{display:flex;justify-content:center;gap:9px;margin-top:24px}
.pres-dots button{width:9px;height:9px;border-radius:50%;border:0;background:rgba(0,99,140,.25);cursor:pointer;padding:0;transition:background .2s,transform .2s}
.pres-dots button.active{background:var(--blue);transform:scale(1.3)}
@media(max-width:980px){.pres-nav.prev{left:8px}.pres-nav.next{right:8px}.pres-nav{background:rgba(255,255,255,.92)}}
@media(max-width:760px){.pres-nav{width:42px;height:42px}}