/* =========================================================
   ITC — Selectividad
   Theme : Editorial Chaleureux
   Keep CSS variables in sync with config/app.php brand.colors
   ========================================================= */

:root {
    --cream:       #FAF7F2;
    --cream-dark:  #F2EDE3;
    --orange:      #F26522;
    --orange-deep: #D9501A;
    --ink:         #1F1A16;
    --ink-soft:    #4A4239;
    --rule:        #E6DECF;
    --white:       #FFFFFF;

    --font-head:   'Playfair Display', Georgia, serif;
    --font-body:   'DM Sans', system-ui, sans-serif;

    --container:   1240px;
    --gutter:      32px;
    --radius-sm:   4px;
    --radius:      8px;
    --radius-pill: 999px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 600;
    line-height: 1.15;
    color: var(--ink);
}

/* Layout */
.wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---------- HEADER ---------- */
/* ---------- TOP BAR ---------- */
.topbar {
    background: #151e3c;
    color: rgba(255, 255, 255, .8);
    font-size: 13px;
}
.topbar { font-size: 12.5px; }
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px 28px;
    padding: 5px 0;
    flex-wrap: wrap;
}
.topbar-contacts {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.topbar-contacts a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .82);
    text-decoration: none;
    transition: color .2s;
}
.topbar-contacts a:hover { color: #fff; }
.topbar-contacts svg { color: var(--orange); flex-shrink: 0; }
.topbar .lang-switch { border-color: rgba(255, 255, 255, .2); padding: 3px; }
.topbar .lang-link { color: rgba(255, 255, 255, .65); }
.topbar .lang-link:hover { color: #fff; }
.topbar .lang-link.is-current { background: var(--orange); color: #fff; }
@media (max-width: 760px) {
    .topbar { display: none; }
}

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(250, 247, 242, .92);
    backdrop-filter: saturate(140%) blur(8px);
    -webkit-backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--rule);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 0;
    gap: 24px;
}
.brand {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none;
    color: var(--ink);
    flex-shrink: 0;
}
.brand-logo {
    height: 48px;
    width: auto;
    display: block;
}

.menu > ul {
    list-style: none;
    display: flex;
    gap: 28px;
    align-items: center;
}
.menu > ul > li { position: relative; }
.menu a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: border-color .2s, color .2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.menu > ul > li > a:hover { border-bottom-color: var(--orange); }
.caret { font-size: 10px; color: var(--ink-soft); transition: transform .2s; }
.has-submenu:hover .caret { transform: rotate(180deg); }

/* Dropdown submenu */
.submenu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    box-shadow: 0 20px 40px -16px rgba(31, 26, 22, .25);
    padding: 8px;
    margin-top: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    z-index: 60;
}
/* Hover bridge so the menu doesn't close in the gap */
.has-submenu::after {
    content: "";
    position: absolute;
    top: 100%; left: 0; right: 0;
    height: 16px;
}
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.submenu li { display: block; }
.submenu a {
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    border-bottom: none;
    transition: background .15s, color .15s;
}
.submenu a:hover {
    background: var(--cream-dark);
    color: var(--orange-deep);
    border-bottom: none;
}

.header-aside {
    display: flex;
    align-items: center;
    gap: 16px;
}
/* Higher specificity than the generic .btn so the header pill stays compact */
.header-aside .btn-pill {
    padding: 10px 20px;
    font-size: 13px;
}

.btn-pill {
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s, background .2s, color .2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.btn-pill-primary {
    background: var(--orange);
    color: var(--white);
    box-shadow: 0 6px 18px -8px rgba(242, 101, 34, .45);
}
.btn-pill-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px -8px rgba(242, 101, 34, .55);
}

.btn-on-orange-ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, .5);
}
.btn-on-orange-ghost:hover {
    background: rgba(255, 255, 255, .12);
    border-color: var(--white);
}

.lang-switch {
    display: flex; gap: 4px;
    align-items: center;
    border: 1px solid var(--rule);
    border-radius: var(--radius-pill);
    padding: 4px;
    background: transparent;
}
.lang-link {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 10px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    color: var(--ink-soft);
    transition: background .2s, color .2s;
}
.lang-link:hover { color: var(--orange-deep); }
.lang-link.is-current {
    background: var(--ink);
    color: var(--cream);
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform .15s ease, box-shadow .15s ease, background .2s, color .2s;
}
.btn-primary {
    background: var(--orange);
    color: var(--white);
    box-shadow: 0 8px 24px -8px rgba(242, 101, 34, .45);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -8px rgba(242, 101, 34, .55);
}
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-on-orange { background: var(--white); color: var(--orange-deep); }
.btn-on-orange:hover { background: var(--ink); color: var(--white); }
.arrow { font-family: serif; font-size: 18px; line-height: 1; }

/* ---------- HERO ---------- */
.hero { padding: 80px 0 100px; }
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 80px;
    align-items: center;
}

/* Hero with background video */
.hero-video {
    position: relative;
    min-height: clamp(560px, 88vh, 900px);
    padding: 140px 0 100px;
    overflow: hidden;
    color: var(--cream);
    display: flex;
    align-items: center;
    background: var(--ink);
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-video-el {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(31, 26, 22, .35) 0%, rgba(31, 26, 22, .85) 100%),
        linear-gradient(90deg, rgba(31, 26, 22, .55) 0%, rgba(31, 26, 22, .15) 60%);
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}
.hero.hero-video h1,
.hero.hero-video .lead,
.hero.hero-video .eyebrow {
    color: var(--cream);
}
.hero.hero-video h1 em {
    color: var(--orange);
    font-style: italic;
}
.hero.hero-video .lead {
    color: #F1F1F1;
    font-size: 15px;
    text-shadow: 0 1px 12px rgba(31, 26, 22, .55);
}
.hero.hero-video h1 {
    text-shadow: 0 2px 16px rgba(31, 26, 22, .45);
}
.hero.hero-video .eyebrow {
    color: var(--orange);
}
.hero.hero-video .eyebrow::before { background: var(--orange); }

.btn-hero-ghost {
    background: transparent;
    color: var(--cream);
    border: 1px solid rgba(250, 247, 242, .45);
    padding: 16px 28px;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background .2s, border-color .2s;
}
.btn-hero-ghost:hover {
    background: rgba(250, 247, 242, .12);
    border-color: var(--cream);
}

.hero-video .hero-badge {
    position: absolute;
    right: clamp(20px, 4vw, 64px);
    bottom: clamp(20px, 4vw, 64px);
    top: auto;
    z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
    .hero-video-el { display: none; }
    .hero-bg {
        background:
            linear-gradient(135deg, var(--ink) 0%, var(--orange-deep) 100%);
    }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--orange-deep);
    font-weight: 700;
    margin-bottom: 24px;
}
.eyebrow::before {
    content: "";
    width: 32px; height: 2px;
    background: var(--orange);
    display: inline-block;
}
.hero h1 {
    font-size: clamp(40px, 6vw, 76px);
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}
.hero h1 em {
    font-style: italic;
    color: var(--orange);
    font-weight: 500;
}
.hero .lead {
    font-size: 19px;
    color: var(--ink-soft);
    max-width: 540px;
    margin-bottom: 36px;
}
.cta-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.hero-media { position: relative; }
.hero-visual {
    aspect-ratio: 4 / 5;
    background:
        linear-gradient(135deg, rgba(242, 101, 34, .18), rgba(242, 101, 34, .02)),
        radial-gradient(circle at 30% 30%, #FBD9C2, #E6C8A8 70%);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px -30px rgba(31, 26, 22, .25);
}
.hero-photo-caption {
    position: absolute;
    bottom: 16px; left: 16px; right: 16px;
    font-size: 12px;
    color: var(--ink-soft);
    letter-spacing: .5px;
    background: rgba(250, 247, 242, .85);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
}
.hero-badge {
    position: absolute;
    top: 24px; right: -16px;
    background: var(--ink);
    color: var(--cream);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-family: var(--font-head);
    box-shadow: 0 12px 24px -12px rgba(31, 26, 22, .5);
}
.hero-badge strong {
    display: block;
    font-size: 28px;
    color: var(--orange);
}
.hero-badge span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ---------- STATS ---------- */
.stats {
    background: var(--ink);
    color: var(--cream);
    padding: 48px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
}
.stat strong {
    font-family: var(--font-head);
    font-size: 48px;
    color: var(--orange);
    display: block;
    line-height: 1;
}
.stat span {
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--cream-dark);
    margin-top: 8px;
    display: block;
}

/* ---------- SECTIONS ---------- */
.section { padding: 100px 0; }
.section-head {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    margin-bottom: 64px;
    align-items: end;
}
.section-head h2 {
    font-size: clamp(34px, 4vw, 52px);
    letter-spacing: -1px;
}
.section-head p {
    font-size: 17px;
    color: var(--ink-soft);
    max-width: 540px;
}
.section-num {
    font-family: var(--font-head);
    font-size: 14px;
    letter-spacing: 4px;
    color: var(--orange-deep);
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* ---------- FILIÈRES LIST ---------- */
.filieres-list { border-top: 1px solid var(--rule); }
.filiere {
    display: grid;
    grid-template-columns: 80px 1fr 2fr 60px;
    gap: 32px;
    align-items: center;
    padding: 28px 0;
    border-bottom: 1px solid var(--rule);
    transition: padding .25s ease, background .25s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.filiere:hover { padding-left: 16px; }
.filiere:hover .f-name { color: var(--orange-deep); }
.f-num {
    font-family: var(--font-head);
    font-size: 18px;
    color: var(--ink-soft);
}
.f-name {
    font-family: var(--font-head);
    font-size: 26px;
    font-weight: 600;
    transition: color .25s;
}
.f-desc { color: var(--ink-soft); font-size: 15px; }
.f-arrow { text-align: right; font-size: 22px; color: var(--orange); }

/* ---------- PROCESS ---------- */
.process { background: var(--cream-dark); }
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.step {
    padding-top: 32px;
    border-top: 2px solid var(--ink);
}
.step .num {
    font-family: var(--font-head);
    font-size: 14px;
    letter-spacing: 3px;
    color: var(--orange-deep);
    margin-bottom: 16px;
}
.step h3 { font-size: 22px; margin-bottom: 12px; }
.step p { font-size: 14px; color: var(--ink-soft); }

/* ---------- TESTIMONIALS · CHALKBOARD ROTATOR ---------- */
.chalkboard {
    position: relative;
    min-height: 620px;
    padding: 80px 0 64px;
    background-color: #1A1715;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #F4F0E6;
    overflow: hidden;
}
.chalkboard-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 100%),
        linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.25));
    pointer-events: none;
}
.chalkboard-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.chalk-head { margin-bottom: 48px; }
.chalk-eyebrow {
    display: inline-block;
    font-family: 'Caveat', cursive;
    font-size: 26px;
    color: #FFD9A6;
    letter-spacing: 1px;
    text-shadow: 0 0 2px rgba(0,0,0,.35);
}
.chalk-title {
    font-family: 'Caveat', cursive;
    font-size: clamp(40px, 5.5vw, 68px);
    color: #F4F0E6;
    margin: 6px 0 0;
    line-height: 1.1;
    text-shadow: 0 0 2px rgba(0,0,0,.4), 0 0 14px rgba(244,240,230,.08);
    letter-spacing: .5px;
}

/* Carousel stage */
.chalk-stage {
    position: relative;
    min-height: 340px;
    padding: 0 8px;
}
.testi-slide {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    opacity: 0;
}
.testi-slide.is-current { display: flex; }
.testi-slide.is-active {
    animation: testiFadeIn .9s ease forwards;
}
.testi-slide.is-fading {
    animation: testiFadeOut .5s ease forwards;
}
@keyframes testiFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes testiFadeOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-6px); }
}

.testi-slide-grid {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1.5fr .5fr;
    gap: 56px;
    align-items: center;
    margin: 0 auto;
}

.testi-slide-quote {
    margin: 0;
    text-align: left;
    border: none;
    padding: 0;
}
.testi-slide-quote p {
    font-family: 'Caveat', cursive;
    font-size: clamp(26px, 3.1vw, 38px);
    line-height: 1.45;
    color: #F4F0E6;
    margin: 0;
    text-shadow:
        0 0 1px rgba(0,0,0,.5),
        0 1px 0 rgba(255,255,255,.05),
        0 0 8px rgba(244,240,230,.12);
}
.testi-slide-quote p::before { content: "\201C "; color: #FFD9A6; }
.testi-slide-quote p::after  { content: " \201D"; color: #FFD9A6; }
.testi-slide-meta {
    display: block;
    font-family: 'Caveat', cursive;
    font-size: 20px;
    color: rgba(244, 240, 230, .65);
    font-style: normal;
    margin-top: 18px;
    letter-spacing: .5px;
}

/* Big Post-it on the right */
.testi-postit {
    position: relative;
    width: 220px;
    justify-self: center;
    padding: 16px 14px 18px;
    background: #FFE26A;
    box-shadow:
        0 22px 36px -10px rgba(0, 0, 0, .7),
        0 8px 16px rgba(0, 0, 0, .35);
    transform: rotate(-3deg);
    text-align: center;
}
/* Per-slide colors + slight rotation variations */
.testi-slide[data-idx="0"] .testi-postit { background: #FFE26A; transform: rotate(-3deg); }
.testi-slide[data-idx="1"] .testi-postit { background: #FFC971; transform: rotate(2.6deg); }
.testi-slide[data-idx="2"] .testi-postit { background: #dcd2c0; transform: rotate(-1.8deg); }
.testi-slide[data-idx="3"] .testi-postit { background: #C9E4A4; transform: rotate(3deg); }

.testi-postit .postit-tape {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 72px; height: 22px;
    background: rgba(244, 240, 230, .55);
    border: 1px solid rgba(244, 240, 230, .25);
    box-shadow: 0 2px 5px rgba(0, 0, 0, .35);
}
.testi-postit .postit-frame {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: rgba(0, 0, 0, .08);
}
.testi-postit .postit-photo {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.testi-postit .postit-photo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Caveat', cursive;
    font-size: 64px;
    line-height: 1;
    color: #5C3D1A;
    background: linear-gradient(135deg, #FFD27A, #FFB347);
    font-weight: 700;
}
.testi-postit .postit-name {
    display: block;
    font-family: 'Caveat', cursive;
    font-size: 22px;
    color: #2A2520;
    line-height: 1.1;
    margin-top: 10px;
}

/* Simple chalk dots for carousel navigation */
.chalk-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}
.chalk-dot {
    width: 11px; height: 11px;
    border-radius: 50%;
    border: 1.5px solid rgba(244, 240, 230, .55);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background .25s ease, border-color .25s ease, transform .25s;
}
.chalk-dot:hover { transform: scale(1.2); border-color: #FFD9A6; }
.chalk-dot.is-current {
    background: #FFD9A6;
    border-color: #FFD9A6;
}

@media (prefers-reduced-motion: reduce) {
    .testi-chalk-quote .w { opacity: 1; transform: none; filter: none; transition: none; }
    .testi-chalk-author { opacity: 1; transform: none; transition: none; }
}

/* ---------- CTA FINAL ---------- */
.cta-final {
    background: var(--orange);
    color: var(--white);
    padding: 0px 0;
    position: relative;
    overflow: hidden;
}
.cta-final::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .18), transparent 50%);
    pointer-events: none;
}
.cta-final .wrap { position: relative; }
.cta-final h2 {
    color: var(--white);
    font-size: clamp(36px, 5vw, 64px);
    max-width: 800px;
    margin-bottom: 32px;
    letter-spacing: -1px;
}
.cta-final p {
    font-size: 18px;
    max-width: 600px;
    margin-bottom: 32px;
    opacity: .92;
}

/* Two-column layout: cap illustration left (anchored bottom), copy right */
.cta-final { padding-bottom: 0; }
.cta-final-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 56px;
    align-items: end;
}
.cta-final-media {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    align-self: end;
    line-height: 0;
}
.cta-final-content { padding-bottom: 100px; }
.cta-final-cap {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 22px 40px rgba(0, 0, 0, .22));
    animation: ctaCapEnter 1s cubic-bezier(.22, .9, .25, 1) both;
}
@keyframes ctaCapEnter {
    0%   { opacity: 0; transform: translateY(40px) scale(.94); }
    60%  { opacity: 1; transform: translateY(-6px) scale(1.02); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.cta-final-content h2 { margin-bottom: 20px; }

/* Two phones (Casa + Marrakech) shown as pill links */
.cta-final-phones {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0 0 36px;
    padding: 0;
}
.cta-final-phone {
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 14px;
    padding: 12px 18px;
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 200px;
    transition: background .25s, transform .25s, border-color .25s;
}
.cta-final-phone:hover {
    background: rgba(255, 255, 255, .22);
    border-color: rgba(255, 255, 255, .65);
    transform: translateY(-2px);
}
.cta-final-phone-city {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .8);
    font-weight: 600;
}
.cta-final-phone-num {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: .3px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.cta-final-phone-icon {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--ink);
    color: var(--cream);
    padding: 80px 0 32px;
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
}
.site-footer h4,
.site-footer p,
.site-footer a,
.site-footer span,
.site-footer li,
.site-footer ul,
.site-footer .foot-label,
.site-footer .foot-lang,
.site-footer .foot-addr,
.site-footer .foot-email,
.site-footer .foot-about-title {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
}

/* Real logo, recolored white via filter (works on any opaque PNG silhouette) */
.foot-logo {
    display: inline-block;
    line-height: 0;
}
.foot-logo-img {
    height: 56px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}
.foot-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.1fr 1.1fr;
    gap: 48px;
    margin-bottom: 56px;
}
.foot-about-title {
    margin-top: 14px;
}
.foot-email {
    display: inline-block;
    margin-top: 14px;
    font-size: 14px;
    color: var(--orange);
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    transition: border-color .2s;
}
.foot-email:hover { border-bottom-color: var(--orange); }

/* Per-center mini block (Casablanca / Marrakech) */
.foot-center ul { display: flex; flex-direction: column; gap: 6px; }
.foot-center li {
    margin-bottom: 0;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}
.foot-label {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(244, 240, 230, .55);
    min-width: 36px;
    font-weight: 600;
}
.foot-addr {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.55;
    opacity: .8;
}

/* Compact lang switcher in the bottom strip */
.foot-langs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.foot-lang {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: rgba(244, 240, 230, .6) !important;
    border: 1px solid rgba(244, 240, 230, .2);
    border-radius: var(--radius-pill);
    text-decoration: none;
    transition: color .2s, border-color .2s, background .2s;
    opacity: 1 !important;
}
.foot-lang:hover { color: var(--orange) !important; border-color: var(--orange); }
.foot-lang.is-current {
    color: #FFFFFF !important;
    background: var(--orange);
    border-color: var(--orange);
}
.foot h4 {
    font-size: 13px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--orange);
}
.foot ul { list-style: none; }
.foot li { margin-bottom: 10px; }
.foot a {
    color: var(--cream);
    text-decoration: none;
    font-size: 14px;
    opacity: .85;
}
.foot a:hover { opacity: 1; color: var(--orange); }
.foot p { font-size: 14px; opacity: .85; max-width: 320px; }
.foot .muted { opacity: .5; }
.brand-name-light { color: var(--cream); font-size: 24px; }
.foot-bottom {
    border-top: 1px solid rgba(250, 247, 242, .12);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    opacity: .6;
}

/* ---------- FAQ ---------- */
.faq-hero { padding: 80px 0 40px; }
.faq-hero h1 {
    font-size: clamp(36px, 5vw, 60px);
    letter-spacing: -1px;
}

.faq-section { padding: 40px 0 100px; }
.faq-list {
    list-style: none;
    counter-reset: faq;
    border-top: 1px solid var(--rule);
    max-width: 980px;
    margin: 0 auto;
}
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item details { padding: 0; }
.faq-item summary {
    display: grid;
    grid-template-columns: 60px 1fr 40px;
    align-items: center;
    gap: 24px;
    padding: 28px 0;
    cursor: pointer;
    list-style: none;
    transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--orange-deep); }
.faq-item summary:hover .faq-icon { background: var(--orange); }
.faq-item summary:hover .faq-icon::before,
.faq-item summary:hover .faq-icon::after { background: var(--white); }

.faq-index {
    font-family: var(--font-head);
    font-size: 16px;
    color: var(--ink-soft);
    letter-spacing: 1px;
}
.faq-q-text {
    font-family: var(--font-head);
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
    transition: color .2s;
}
.faq-item[open] summary .faq-q-text { color: var(--orange-deep); }

.faq-icon {
    position: relative;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--rule);
    transition: background .2s, border-color .2s, transform .25s;
    justify-self: end;
}
.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    background: var(--ink);
    transition: background .2s, transform .25s;
}
.faq-icon::before {
    /* horizontal bar */
    top: 50%; left: 25%; right: 25%;
    height: 2px;
    transform: translateY(-50%);
}
.faq-icon::after {
    /* vertical bar */
    left: 50%; top: 25%; bottom: 25%;
    width: 2px;
    transform: translateX(-50%);
}
.faq-item[open] .faq-icon {
    background: var(--ink);
    border-color: var(--ink);
    transform: rotate(180deg);
}
.faq-item[open] .faq-icon::before { background: var(--cream); }
.faq-item[open] .faq-icon::after  { background: var(--cream); transform: translateX(-50%) scaleY(0); }

.faq-answer {
    padding: 0 0 32px 84px;
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.7;
    max-width: 760px;
    animation: faqReveal .3s ease;
}
@keyframes faqReveal {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

[dir="rtl"] .faq-item summary { grid-template-columns: 60px 1fr 40px; }
[dir="rtl"] .faq-answer { padding: 0 84px 32px 0; }

/* ---------- INSCRIPTION ---------- */
.inscription-hero { padding: 80px 0 40px; }
.inscription-hero h1 {
    font-size: clamp(36px, 5vw, 60px);
    letter-spacing: -1px;
}

.inscription-section { padding: 20px 0 120px; }
.inscription-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 80px;
    align-items: start;
}

.inscription-side {
    position: sticky;
    top: 120px;
    padding: 32px;
    background: var(--cream-dark);
    border-radius: var(--radius);
    border: 1px solid var(--rule);
}
.inscription-side h3 {
    font-family: var(--font-head);
    font-size: 22px;
    margin-bottom: 24px;
    color: var(--ink);
}
.side-steps {
    list-style: none;
    counter-reset: side;
    margin: 0 0 28px;
}
.side-steps li {
    counter-increment: side;
    position: relative;
    padding: 12px 0 12px 44px;
    border-top: 1px solid var(--rule);
    font-size: 15px;
    color: var(--ink-soft);
    line-height: 1.4;
}
.side-steps li:last-child { border-bottom: 1px solid var(--rule); }
.side-steps li::before {
    content: counter(side, decimal-leading-zero);
    position: absolute;
    left: 0; top: 12px;
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 700;
    color: var(--orange-deep);
    letter-spacing: 1px;
}
.side-reassure {
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.5;
    padding-top: 12px;
    border-top: 1px dashed var(--rule);
}

.inscription-form fieldset {
    border: none;
    padding: 0;
    margin: 0;
}
.inscription-form legend {
    font-family: var(--font-head);
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--orange-deep);
    margin-bottom: 28px;
    font-weight: 700;
}
.form-row {
    margin-bottom: 24px;
}
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.field {
    display: flex;
    flex-direction: column;
}
.field label {
    font-size: 13px;
    letter-spacing: .5px;
    color: var(--ink);
    font-weight: 600;
    margin-bottom: 8px;
}
.field label abbr {
    color: var(--orange);
    text-decoration: none;
    margin-left: 2px;
}
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
    border-color: #C9BFA9;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(242, 101, 34, .15);
}
.field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%231F1A16' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}
.field textarea {
    resize: vertical;
    min-height: 120px;
    font-family: var(--font-body);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
    border-color: #C0392B;
    background: #FFF6F4;
}
.form-error {
    margin-top: 6px;
    font-size: 13px;
    color: #C0392B;
}
.form-banner {
    padding: 14px 18px;
    background: #FFF6F4;
    border-left: 3px solid #C0392B;
    color: #8B2A1F;
    font-size: 14px;
    margin-bottom: 24px;
    border-radius: var(--radius-sm);
}

.form-consent {
    margin-top: 8px;
}
.check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.5;
}
.check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px; height: 18px;
    border: 1.5px solid var(--ink);
    border-radius: 3px;
    background: var(--white);
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: background .15s, border-color .15s;
}
.check input[type="checkbox"]:checked {
    background: var(--orange);
    border-color: var(--orange);
}
.check input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 5px; top: 1px;
    width: 5px; height: 10px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.form-consent.has-error .check input { border-color: #C0392B; }

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px; height: 1px;
    overflow: hidden;
}

.form-hint {
    font-size: 12px;
    color: var(--ink-soft);
    margin-top: 8px;
}
.form-actions {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--rule);
}

/* ---------- INSCRIPTION SUCCESS ---------- */
.inscription-success {
    padding: 120px 0;
}
.success-card {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 32px;
    background: var(--cream-dark);
    border-radius: var(--radius);
    border: 1px solid var(--rule);
}
.success-icon {
    width: 72px;
    height: 72px;
    color: var(--orange);
    margin: 0 auto 24px;
    display: block;
}
.inscription-success h1 {
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -1px;
    margin-bottom: 16px;
}
.inscription-success p {
    color: var(--ink-soft);
    font-size: 17px;
    max-width: 480px;
    margin: 0 auto 36px;
}
.success-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.success-tel {
    font-size: 14px;
    color: var(--ink-soft);
}
.success-tel a {
    color: var(--orange-deep);
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}
.success-tel a:hover { text-decoration: underline; }

/* ---------- HOME · "Qui sommes-nous" — modern style ---------- */
.abm-section {
    position: relative;
    padding: 110px 0 80px;
    background: var(--cream);
    overflow: hidden;
}

/* shape-9 background (dotted pattern), tinted gray + low opacity */
.abm-bg {
    position: absolute;
    inset: 0;
    background-image: url("../images/shape/shape-9.png");
    background-repeat: no-repeat;
    background-position: right 60px;
    background-size: 380px auto;
    opacity: .55;
    pointer-events: none;
    z-index: 0;
}
.abm-bg::after {
    /* Second decorative shape mirrored on the left */
    content: "";
    position: absolute;
    left: -40px;
    bottom: 200px;
    width: 220px;
    height: 220px;
    background-image: url("../images/shape/shape-9.png");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: .35;
    transform: rotate(180deg);
}

.abm-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 80px;
}

/* Left text */
.abm-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--orange);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 22px;
}
.abm-title {
    font-family: var(--font-head);
    font-size: clamp(36px, 4.6vw, 56px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--ink);
    margin: 0 0 28px;
    max-width: 580px;
}
.abm-lead {
    font-size: 16px;
    color: var(--ink-soft);
    line-height: 1.75;
    margin: 0 0 36px;
    max-width: 520px;
}

/* Feature items (icon + title + desc) */
.abm-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.abm-feature {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 24px;
    align-items: start;
}
.abm-feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--cream-dark);
    color: var(--ink);
    display: grid;
    place-items: center;
    transition: background .25s ease, color .25s ease, transform .25s ease;
}
.abm-feature:hover .abm-feature-icon {
    background: var(--orange);
    color: #FFFFFF;
    transform: scale(1.05);
}
.abm-feature h3 {
    font-family: var(--font-head);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.3px;
    margin: 0 0 6px;
    color: var(--ink);
}
.abm-feature p {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.6;
    margin: 0;
    max-width: 440px;
}

/* Right image with orange ring decoration */
.abm-media { position: relative; }
.abm-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 60px -30px rgba(31, 26, 22, .35);
    z-index: 1;
}
.abm-image {
    height: 580px;
    max-height: 580px;
}
.abm-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;        /* crop sides to fill the frame, no empty space */
    object-position: center;
    display: block;
}
.abm-ring {
    position: absolute;
    bottom: 4px;
    right: -4px;
    width: 78px;
    height: 78px;
    border: 6px solid var(--orange);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 10px 22px -8px rgba(242, 101, 34, .5);
    animation: abmRingFloat 4.5s ease-in-out infinite;
}

@keyframes abmRingFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow:
            0 10px 22px -8px rgba(242, 101, 34, .5),
            0 0 0 0 rgba(242, 101, 34, 0);
    }
    50% {
        transform: translateY(-14px) scale(1.06);
        box-shadow:
            0 18px 32px -8px rgba(242, 101, 34, .65),
            0 0 0 12px rgba(242, 101, 34, .08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .abm-ring { animation: none; }
}

/* Stats strip below — the 4 indicators that moved here */
.abm-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 36px 40px;
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px -28px rgba(31, 26, 22, .25);
    border: 1px solid var(--rule);
}
.abm-stat {
    text-align: center;
    padding: 0 12px;
    border-right: 1px solid var(--rule);
}
.abm-stat:last-child { border-right: none; }
.abm-stat strong {
    display: block;
    font-family: var(--font-head);
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    color: var(--orange);
    line-height: 1;
    letter-spacing: -1px;
    margin-bottom: 8px;
}
.abm-stat-label {
    display: block;
    font-family: var(--font-head);
    font-size: 14px;
    color: var(--ink);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
}
.abm-stat-desc {
    display: block;
    font-size: 12px;
    color: var(--ink-soft);
    line-height: 1.4;
}

@media (max-width: 900px) {
    .abm-section { padding: 64px 0 48px; }
    .abm-grid { grid-template-columns: 1fr; gap: 48px; margin-bottom: 48px; }
    .abm-media { max-width: 480px; margin: 0 auto; }
    .abm-ring { width: 60px; height: 60px; border-width: 5px; bottom: -4px; right: 8px; }
    .abm-stats { grid-template-columns: 1fr 1fr; gap: 16px; padding: 24px; }
    .abm-stat { border-right: none; }
    .abm-bg { background-position: right -100px top; background-size: 280px auto; }
}

/* ---------- ABOUT (legacy, kept for other usages) ---------- */
.about-section { padding: 100px 0; }
.about-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 80px;
    align-items: center;
}
.about-text h2 {
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -1px;
    margin-bottom: 24px;
}
.about-lead {
    font-size: 17px;
    color: var(--ink-soft);
    margin-bottom: 36px;
    max-width: 540px;
}
.about-points {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 0;
    padding: 0;
}
.about-points li {
    padding: 20px 0;
    border-top: 2px solid var(--ink);
    display: flex;
    flex-direction: column;
}
.about-value {
    font-family: var(--font-head);
    font-size: 32px;
    line-height: 1;
    color: var(--orange);
    margin-bottom: 6px;
}
.about-label {
    font-family: var(--font-head);
    font-size: 14px;
    color: var(--ink);
    font-weight: 600;
    margin-bottom: 4px;
}
.about-desc {
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.4;
}

.about-media { position: relative; }
.about-image {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 30px 60px -30px rgba(31, 26, 22, .25);
    position: relative;
    background:
        linear-gradient(135deg, rgba(31, 26, 22, .12), rgba(31, 26, 22, .02)),
        radial-gradient(circle at 70% 70%, #E6DECF, #C9BFA9 70%);
}
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.about-caption {
    margin-top: 14px;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ink-soft);
    text-align: center;
}

/* ---------- PARTNERS CAROUSEL ---------- */
.partners-section {
    padding: 80px 0 100px;
    overflow: hidden;
    background: var(--cream-dark);
}
.partners-head {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    margin-bottom: 56px;
    align-items: end;
}
.partners-head h2 {
    font-size: clamp(28px, 3.4vw, 42px);
    letter-spacing: -.5px;
}
.partners-head p {
    color: var(--ink-soft);
    font-size: 16px;
    max-width: 540px;
}

.partners-strip {
    --speed: 35s;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.partners-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: scrollPartners var(--speed) linear infinite;
}
.partners-strip:hover .partners-track {
    animation-play-state: paused;
}
.partner-logo {
    flex-shrink: 0;
    height: 60px;
    width: 160px;
    margin-right: 80px;
    display: grid;
    place-items: center;
}
.partner-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}
@keyframes scrollPartners {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .partners-track { animation: none; }
    .play-btn { animation: none; }
}

/* ---------- CITY SECTIONS (home : Casablanca / Marrakech) ---------- */
.city-section { padding: 100px 0; }
.city-section + .city-section { padding-top: 0; }

.city-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.city-reverse .city-grid {
    grid-template-columns: 1fr 1fr;
}
.city-reverse .city-media { order: 2; }
.city-reverse .city-text  { order: 1; }

.city-media { position: relative; }
.city-image {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 30px 60px -30px rgba(31, 26, 22, .3);
    position: relative;
}
.city-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.city-caption {
    margin-top: 14px;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ink-soft);
}

/* Second paragraph in the about block */
.ct-intro-2 {
    font-size: 16px;
    color: var(--ink-soft);
    line-height: 1.7;
    margin-top: 14px;
}

/* "Nos points forts" small heading above the features list */
.ct-features-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--orange-deep);
    margin: 0 0 16px;
}
.ct-features-col { display: flex; flex-direction: column; }

/* Casablanca : palette sable / pierre dorée — Atlantique */
.city-casablanca .city-image {
    background:
        linear-gradient(135deg, rgba(31, 26, 22, .15), rgba(31, 26, 22, .02)),
        radial-gradient(circle at 60% 35%, #E8D7BC, #B89F7D 70%);
}
/* Marrakech : palette terre cuite / ocre — ville rouge */
.city-marrakech .city-image {
    background:
        linear-gradient(135deg, rgba(217, 80, 26, .18), rgba(31, 26, 22, .04)),
        radial-gradient(circle at 35% 65%, #ECB89A, #B5573A 70%);
}

.city-text h2 {
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -1px;
    margin-bottom: 20px;
}
.city-text .lead {
    color: var(--ink-soft);
    font-size: 17px;
    margin-bottom: 28px;
    max-width: 540px;
}

.city-features {
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
    border-top: 1px solid var(--rule);
}
.city-features li {
    padding: 16px 0 16px 24px;
    border-bottom: 1px solid var(--rule);
    position: relative;
    font-size: 15px;
    color: var(--ink);
    line-height: 1.5;
}
.city-features li::before {
    content: "";
    position: absolute;
    left: 0; top: 24px;
    width: 12px; height: 1px;
    background: var(--orange);
}

/* ---------- FILIÈRES PAGE ---------- */
.filieres-detail { padding: 20px 0 100px; }
.filiere-card {
    padding: 56px 0;
    border-top: 1px solid var(--rule);
}
.filiere-card:last-child { border-bottom: 1px solid var(--rule); }
.filiere-card-head {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 32px;
    align-items: start;
    margin-bottom: 40px;
}
.f-num-big {
    font-family: var(--font-head);
    font-size: 56px;
    line-height: 1;
    color: var(--orange);
    font-weight: 600;
}
.filiere-card h2 {
    font-size: clamp(28px, 3vw, 40px);
    letter-spacing: -1px;
    margin-bottom: 16px;
}
.filiere-lead {
    color: var(--ink-soft);
    font-size: 17px;
    max-width: 620px;
}
.filiere-card-body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding-left: 132px;
}
.filiere-col h4 {
    font-family: var(--font-head);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--orange-deep);
    margin-bottom: 16px;
    font-weight: 700;
}
.filiere-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.filiere-col li {
    padding: 8px 0;
    border-bottom: 1px solid var(--rule);
    font-size: 15px;
    color: var(--ink);
}
.filiere-col li:last-child { border-bottom: none; }
.filiere-card-note {
    margin-top: 32px;
    padding: 20px 24px;
    margin-left: 132px;
    background: var(--cream-dark);
    border-left: 3px solid var(--orange);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: var(--ink-soft);
    font-style: italic;
}

/* ---------- SELECTIVIDAD PROGRAM PAGE ---------- */
/* Programme Selectividad — banner intro */
.sel-intro-section {
    padding: 64px 0 32px;
}
.sel-intro-section .section-num {
    margin-bottom: 24px;
    display: block;
}
.sel-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 1040px;
}
.sel-intro-grid p {
    font-size: 17px;
    color: var(--ink-soft);
    line-height: 1.75;
    margin: 0;
}
.sel-intro-grid p:first-child::first-letter {
    font-family: var(--font-head);
    font-size: 48px;
    line-height: 1;
    color: var(--orange);
    float: left;
    margin-right: 8px;
    padding-top: 4px;
}

@media (max-width: 900px) {
    .sel-intro-section { padding: 40px 0 24px; }
    .sel-intro-grid { grid-template-columns: 1fr; gap: 16px; }
}

.sel-timeline-head {
    margin-bottom: 48px;
}
.sel-timeline-head h2 {
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -1px;
    margin: 6px 0 12px;
}
.sel-timeline-head p {
    font-size: 17px;
    color: var(--ink-soft);
    max-width: 560px;
    line-height: 1.55;
}

.sel-phase-label {
    font-family: var(--font-head);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--orange-deep);
    margin: 22px 0 10px;
    font-weight: 700;
}

/* ─── Selectividad en parallèle ─── */
/* ─── Selectividad parallèle : intro text + indicators (no image) ──────── */
.sp-intro {
    padding: 76px 0;
    position: relative;
    background-color: #ffffff;
    background-image: url("../images/shape/shape-15.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
.sp-intro-inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.sp-intro-title {
    font-size: clamp(28px, 3.4vw, 42px);
    letter-spacing: -.5px;
    line-height: 1.2;
    margin: 0 0 18px;
}
.sp-intro .ctf-rule { margin: 0 0 26px; }
.sp-intro-text { max-width: 760px; }
.sp-intro-text p {
    font-size: 16.5px;
    line-height: 1.8;
    color: var(--ink-soft);
    margin: 0 0 16px;
}
.sp-intro-text p:last-child { margin-bottom: 0; }
.sp-intro-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 44px;
}
.sp-intro-stat {
    text-align: center;
    padding: 26px 16px;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: 16px;
    box-shadow: 0 18px 40px -34px rgba(31, 26, 22, .4);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.sp-intro-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 56px -32px rgba(31, 26, 22, .45);
    border-color: transparent;
}
.sp-intro-stat strong {
    display: block;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 700;
    color: var(--orange);
    line-height: 1.1;
    margin-bottom: 8px;
}
.sp-intro-stat span {
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.45;
}
@media (max-width: 780px) {
    .sp-intro { padding: 48px 0; }
    .sp-intro-stats { grid-template-columns: 1fr 1fr; }
}

/* ─── Filières : navy band (text left, subjects grid right) ────────────── */
.sp-filband {
    background: linear-gradient(135deg, #1f2c52 0%, #151e3c 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.sp-filband-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 56px;
    align-items: center;
    padding: 76px 0;
}
.sp-filband-eyebrow {
    display: block;
    color: var(--orange);
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 16px;
}
.sp-filband-text h2 {
    color: #fff;
    font-size: clamp(28px, 3.6vw, 44px);
    line-height: 1.12;
    letter-spacing: -1px;
    margin: 0 0 22px;
}
.sp-filband-lead {
    color: rgba(255, 255, 255, .72);
    font-size: 16px;
    line-height: 1.6;
    max-width: 440px;
    margin: 0 0 28px;
}
.sp-filband-btn {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, .55);
    padding: 13px 26px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    gap: 8px;
    transition: background .2s, border-color .2s, color .2s;
}
.sp-filband-btn:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.sp-filband-btn .arrow { transition: transform .2s; }
.sp-filband-btn:hover .arrow { transform: translateX(4px); }
.sp-filband-extra {
    margin: 22px 0 0;
    font-size: 13px;
    font-style: italic;
    color: rgba(255, 255, 255, .55);
}
/* Subjects grid with thin separators (like the reference) */
.sp-filband-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.sp-filband-item {
    text-align: center;
    padding: 28px 20px;
    border-right: 1px solid rgba(255, 255, 255, .12);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.sp-filband-item:nth-child(2n) { border-right: none; }
.sp-filband-item:nth-last-child(-n+2) { border-bottom: none; }
.sp-filband-num {
    display: block;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: clamp(30px, 3.2vw, 42px);
    font-weight: 700;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 10px;
}
.sp-filband-name {
    display: block;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: clamp(14px, 1.3vw, 17px);
    font-weight: 600;
    letter-spacing: .2px;
    color: rgba(255, 255, 255, .8);
    line-height: 1.2;
}
@media (max-width: 860px) {
    .sp-filband-grid { grid-template-columns: 1fr; gap: 36px; padding: 48px 0; }
}
@media (max-width: 480px) {
    .sp-filband-list { grid-template-columns: 1fr; }
    .sp-filband-item { border-right: none; }
    .sp-filband-item:nth-last-child(2) { border-bottom: 1px solid rgba(255, 255, 255, .12); }
}

.sp-blocks { padding: 64px 0; }
/* Centered section heading (full-width, stacked sections) */
.sp-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}
.sp-head .section-num { display: block; margin-bottom: 10px; }
.sp-head h2 {
    font-size: clamp(26px, 3.2vw, 38px);
    letter-spacing: -.5px;
    line-height: 1.2;
    margin-bottom: 14px;
}
.sp-block-lead {
    font-size: 16px;
    color: var(--ink-soft);
    line-height: 1.65;
    margin: 0 auto;
    max-width: 560px;
}

/* Filières list (modern cards in a full-width grid) */
.sp-filieres-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.sp-filieres-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 15px 20px;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: 14px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.sp-filieres-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 44px -30px rgba(31, 26, 22, .4);
    border-color: transparent;
}
.sp-filieres-list li:hover .sp-fil-name { color: var(--orange-deep); }
.sp-fil-num {
    flex-shrink: 0;
    width: 38px; height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--orange), var(--orange-deep));
    color: var(--white);
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 18px -8px rgba(217, 80, 26, .6);
}
.sp-fil-name {
    font-family: var(--font-head);
    font-size: 19px;
    font-weight: 600;
    transition: color .2s ease;
}
.sp-fil-extra {
    font-size: 13px;
    color: var(--ink-soft);
    font-style: italic;
    margin: 24px 0 0;
    text-align: center;
}

/* Includes list (modern numbered cards) */
.sp-includes-list {
    list-style: none;
    counter-reset: spi;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}
.sp-includes-list li {
    counter-increment: spi;
    padding: 24px 28px 24px 74px;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: 16px;
    box-shadow: 0 18px 40px -34px rgba(31, 26, 22, .4);
    position: relative;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.sp-includes-list li:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 58px -32px rgba(31, 26, 22, .45);
    border-color: transparent;
}
.sp-includes-list li::before {
    content: counter(spi, decimal-leading-zero);
    position: absolute;
    left: 24px;
    top: 24px;
    width: 38px; height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--orange), var(--orange-deep));
    color: var(--white);
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 18px -8px rgba(217, 80, 26, .6);
}
.sp-includes-list h3 {
    font-size: 20px;
    letter-spacing: -.3px;
    margin: 0 0 6px;
}
.sp-includes-list p {
    font-size: 15px;
    color: var(--ink-soft);
    line-height: 1.6;
    margin: 0;
}

.cta-final-eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .85);
    margin-bottom: 12px;
    font-weight: 700;
}

/* Process-style "includes" section, set apart from the filières block */
.sp-includes-section { background: var(--cream-dark); }

@media (max-width: 860px) {
    .sp-blocks { padding: 48px 0; }
    .sp-filieres-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
    .sp-filieres-list { grid-template-columns: 1fr; }
}

/* ---------- PROCESS / DÉMARCHE PAGE ---------- */
.process-detail { padding: 20px 0 120px; }
.process-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: start;
}

.process-aside {
    position: sticky;
    top: 120px;
    padding: 32px;
    background: var(--cream-dark);
    border-radius: var(--radius);
    border: 1px solid var(--rule);
}
.process-aside h3 {
    font-family: var(--font-head);
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--orange-deep);
    margin-bottom: 20px;
    font-weight: 700;
}
.facts { margin: 0; }
.facts dt {
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-top: 14px;
}
.facts dt:first-child { margin-top: 0; }
.facts dd {
    font-family: var(--font-head);
    font-size: 20px;
    color: var(--ink);
    margin: 4px 0 0;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--rule);
}
.facts dd:last-child { border-bottom: none; }

.process-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}
.process-timeline::before {
    content: "";
    position: absolute;
    top: 10px; bottom: 10px; left: 19px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--orange) 0%, var(--orange-deep) 45%, rgba(217, 80, 26, .12) 100%);
}
.t-step {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 30px;
    margin-bottom: 28px;
    position: relative;
}
.t-step:last-child { margin-bottom: 0; }
.t-marker {
    position: relative;
    width: 40px;
}
.t-dot {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--orange-deep));
    box-shadow: 0 8px 20px -6px rgba(217, 80, 26, .6);
    display: block;
    position: relative;
    z-index: 1;
}
/* Ringing pulse around each marker */
.t-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--orange);
    animation: t-pulse 2.6s ease-out infinite;
}
@keyframes t-pulse {
    0%   { transform: scale(1);   opacity: .6; }
    70%  { opacity: 0; }
    100% { transform: scale(2);   opacity: 0; }
}
/* Each phase is a card */
.t-body {
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: 16px;
    padding: 26px 30px;
    box-shadow: 0 22px 48px -34px rgba(31, 26, 22, .45);
    transition: transform .3s ease, box-shadow .3s ease;
}
.t-step:hover .t-body {
    transform: translateY(-5px);
    box-shadow: 0 36px 64px -32px rgba(31, 26, 22, .5);
}
.t-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.t-num {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--orange-deep);
    font-weight: 700;
}
.t-when {
    font-size: 12px;
    color: var(--ink-soft);
    padding: 5px 12px;
    background: var(--cream-dark);
    border-radius: var(--radius-pill);
    letter-spacing: .5px;
}
.t-body h3 {
    font-size: 25px;
    letter-spacing: -.5px;
    margin-bottom: 12px;
}
.t-lead {
    color: var(--ink-soft);
    font-size: 16px;
    margin-bottom: 20px;
    max-width: 540px;
}
.t-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 4px;
}
.t-points li {
    padding: 8px 0 8px 26px;
    position: relative;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.5;
}
.t-points li::before {
    content: "";
    position: absolute;
    left: 2px; top: 14px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 4px rgba(217, 80, 26, .14);
}
@media (prefers-reduced-motion: reduce) {
    .t-dot::after { animation: none; }
}

/* ---------- CONTACT PAGE ---------- */
.contact-section { padding: 20px 0 120px; }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    background: var(--cream-dark);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 32px;
    position: sticky;
    top: 120px;
}
.info-block {
    padding: 20px 0;
    border-bottom: 1px solid var(--rule);
}
.info-block:first-child { padding-top: 0; }
.info-block:last-of-type { border-bottom: none; }
.info-block h4 {
    font-family: var(--font-head);
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--orange-deep);
    margin-bottom: 8px;
    font-weight: 700;
}
.info-block h4.info-sub {
    margin-top: 14px;
}
.info-big {
    font-family: var(--font-head);
    font-size: 22px;
    color: var(--ink);
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}
.info-big:hover { color: var(--orange-deep); }
.info-link { font-size: 18px; word-break: break-all; }
.info-line {
    display: block;
    font-size: 15px;
    color: var(--ink-soft);
    text-decoration: none;
    line-height: 1.5;
    margin-bottom: 4px;
}
a.info-line:hover { color: var(--orange-deep); }
.info-hint {
    font-size: 12px;
    color: var(--ink-soft);
    margin-top: 6px;
    opacity: .8;
}
.info-whatsapp {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    padding: 16px 20px;
    background: var(--ink);
    color: var(--cream);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background .2s;
}
.info-whatsapp:hover { background: var(--orange-deep); }

/* Per-center block on the contact page */
.info-center .info-center-phones {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}
.info-center .info-addr {
    margin-top: 4px;
    line-height: 1.5;
}
.info-whatsapp span {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}
.info-whatsapp small {
    font-size: 12px;
    opacity: .7;
}

.success-card-inline {
    align-self: start;
    text-align: left;
    padding: 48px;
}
.success-card-inline .success-icon {
    margin: 0 0 24px;
    width: 56px; height: 56px;
}
.success-card-inline h2 {
    font-size: clamp(28px, 3vw, 36px);
    margin-bottom: 12px;
}

/* ---------- FLOATING WHATSAPP BUTTON ---------- */
.wa-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #FFFFFF;
    display: grid;
    place-items: center;
    text-decoration: none;
    box-shadow:
        0 10px 28px -8px rgba(18, 140, 126, .55),
        0 4px 12px rgba(0, 0, 0, .18);
    z-index: 90;
    animation: waFabIn .55s cubic-bezier(.2, .9, .3, 1.4) .4s both;
    transition: transform .22s cubic-bezier(.2, .9, .3, 1.4),
                box-shadow .22s ease;
}
.wa-fab:hover,
.wa-fab:focus-visible {
    transform: translateY(-2px) scale(1.08);
    box-shadow:
        0 16px 36px -8px rgba(18, 140, 126, .65),
        0 8px 18px rgba(0, 0, 0, .22);
    outline: none;
}

.wa-fab-icon {
    width: 30px;
    height: 30px;
    fill: #FFFFFF;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25));
}

/* Pulse ring */
.wa-fab-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25D366;
    z-index: 1;
    animation: waPulse 2.4s ease-out infinite;
}
.wa-fab-pulse::before,
.wa-fab-pulse::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25D366;
}
.wa-fab-pulse::before { animation: waPulse 2.4s ease-out .8s infinite; }
.wa-fab-pulse::after  { animation: waPulse 2.4s ease-out 1.6s infinite; opacity: 0; }

@keyframes waPulse {
    0%   { transform: scale(1);   opacity: .35; }
    80%  { transform: scale(2.0); opacity: 0; }
    100% { transform: scale(2.0); opacity: 0; }
}
@keyframes waFabIn {
    from { opacity: 0; transform: translateY(28px) scale(.6); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Tooltip on hover */
.wa-fab-tip {
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    background: var(--ink);
    color: #FFFFFF;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .35);
    letter-spacing: .2px;
}
.wa-fab-tip::after {
    content: "";
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--ink);
}
.wa-fab:hover .wa-fab-tip,
.wa-fab:focus-visible .wa-fab-tip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

@media (max-width: 600px) {
    .wa-fab { bottom: 16px; right: 16px; width: 56px; height: 56px; }
    .wa-fab-icon { width: 28px; height: 28px; }
    .wa-fab-tip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .wa-fab,
    .wa-fab-pulse,
    .wa-fab-pulse::before,
    .wa-fab-pulse::after { animation: none; }
}

/* ---------- HOME · Process circles (4 steps with badges + arrows) ---------- */
.pc-section { background: var(--cream); }
.pc-head {
    display: block;             /* override .section-head 2-col grid */
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}
.pc-head .section-num { display: block; margin-bottom: 8px; }
.pc-head h2 { margin: 0 auto 16px; }
.pc-head p { margin: 0 auto; max-width: 600px; }

.pc-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    counter-reset: pc;
    position: relative;
}

.pc-step {
    position: relative;
    counter-increment: pc;
    padding-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Dashed arrow between two consecutive steps */
.pc-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -22px;
    width: 44px;
    height: 16px;
    transform: translateY(-10px);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 16' fill='none' stroke='%23F26522' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M2 8 H34' stroke-dasharray='4 4'/><path d='M30 3 L36 8 L30 13'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: 3;
}

/* Big translucent circle behind each step */
.pc-step-card {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 55%, rgba(31, 26, 22, .08) 0%, rgba(31, 26, 22, .03) 70%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 30px 30px;
    transition: transform .25s ease, background .25s ease;
}
.pc-step:hover .pc-step-card {
    transform: translateY(-4px);
    background: radial-gradient(circle at 50% 55%, rgba(242, 101, 34, .12) 0%, rgba(242, 101, 34, .04) 70%, transparent 100%);
}

.pc-step-card h3 {
    font-family: var(--font-head);
    font-size: clamp(15px, 1.4vw, 19px);
    line-height: 1.25;
    color: var(--ink);
    margin: 0 0 12px;
    letter-spacing: -.3px;
    max-width: 220px;
}
.pc-step-card p {
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.55;
    margin: 0;
    max-width: 220px;
}

/* Badge : orange filled circle wrapped in a dashed orange ring */
.pc-step-badge-ring {
    position: absolute;
    top: 0;
    left: 65%;
    transform: translateX(-50%);
    z-index: 2;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    border: 2px dashed var(--orange);
    display: grid;
    place-items: center;
    background: var(--cream);
    box-shadow: 0 6px 18px -8px rgba(31, 26, 22, .25);
    transition: transform .3s ease;
}
.pc-step:hover .pc-step-badge-ring { transform: translateX(-50%) rotate(8deg); }

.pc-step-badge {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--orange);
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    line-height: 1;
    box-shadow: 0 4px 12px -2px rgba(242, 101, 34, .5);
    transition: transform .3s ease;
}
.pc-step:hover .pc-step-badge { transform: rotate(-8deg); }

.pc-step-badge strong {
    font-size: 22px;
    font-weight: 700;
}
.pc-step-badge span {
    font-size: 11px;
    margin-top: 4px;
    letter-spacing: .5px;
    opacity: .92;
}

@media (max-width: 1100px) {
    .pc-steps { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
    .pc-step:nth-child(2)::after { display: none; }
}

@media (max-width: 600px) {
    .pc-steps { grid-template-columns: 1fr; gap: 56px; }
    .pc-step:not(:last-child)::after {
        top: auto;
        bottom: -42px;
        right: 50%;
        transform: translateX(50%) rotate(90deg);
    }
    .pc-step-badge-ring { left: 50%; }
    .pc-step-card h3, .pc-step-card p { max-width: 280px; }
}

/* ---------- HOME · "Pourquoi la Selectividad / EBAU ?" feature CTA ---------- */
.prg-cta {
    position: relative;
    background: #1E2A3A;
    color: var(--cream);
    overflow: hidden;
}

/* shape-24 as section background — sits behind the grid, visible on the right
   side (left half is covered by the cta-bg image). Tinted white at low opacity
   so it blends into the navy. */
.prg-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../images/shape-23.png");
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: 70% auto;
    opacity: .18;
    filter: brightness(0) invert(1);
    pointer-events: none;
    z-index: 0;
}

.prg-cta-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 540px;
}

/* Left image */
.prg-cta-img {
    position: relative;
    overflow: hidden;
}
.prg-cta-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Right panel — transparent so the section background (shape) shows through */
.prg-cta-panel {
    position: relative;
    background: transparent;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.prg-cta-content {
    position: relative;
    z-index: 1;
    padding: 80px 64px;
    max-width: 620px;
}

.prg-cta-eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--orange);
    font-weight: 700;
    margin-bottom: 18px;
}

.prg-cta-title {
    font-family: var(--font-head);
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.2;
    letter-spacing: -.5px;
    color: #FFFFFF;
    font-weight: 700;
    margin: 0 0 22px;
}
.prg-cta-title em {
    color: var(--orange);
    font-style: normal;
    font-weight: 700;
}

.prg-cta-lead {
    font-size: 16px;
    color: rgba(244, 240, 230, .8);
    line-height: 1.65;
    margin: 0 0 28px;
    max-width: 520px;
}

/* Checkmark bullet list */
.prg-cta-list {
    list-style: none;
    padding: 0;
    margin: 0 0 36px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.prg-cta-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    color: #FFFFFF;
    font-weight: 600;
    letter-spacing: .1px;
}
.prg-cta-check {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(242, 101, 34, .14);
    color: var(--orange);
    display: grid;
    place-items: center;
}

/* CTA button */
.prg-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 16px 28px;
    background: var(--orange);
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .2px;
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 24px -8px rgba(242, 101, 34, .55);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.prg-cta-btn:hover {
    transform: translateY(-2px);
    background: var(--orange-deep);
    box-shadow: 0 18px 30px -8px rgba(242, 101, 34, .65);
}
.prg-cta-arrow { transition: transform .2s ease; }
.prg-cta-btn:hover .prg-cta-arrow { transform: translateX(4px); }

@media (max-width: 900px) {
    .prg-cta-grid { grid-template-columns: 1fr; min-height: 0; }
    .prg-cta-img { aspect-ratio: 4 / 3; }
    .prg-cta-content { padding: 56px 24px; }
    .prg-cta::before { background-size: 200% auto; background-position: right -40px bottom; }
    .prg-cta-list li { font-size: 14px; }
}

/* ---------- HOME BLOG SECTION (3 cards) ---------- */
.home-blog {
    padding: 100px 0;
    background: var(--cream);
    overflow: hidden;
}
.home-blog-head {
    display: grid;
    grid-template-columns: 1fr 1.2fr auto;
    gap: 32px;
    align-items: end;
    margin-bottom: 56px;
}
.home-blog-head .section-num { display: block; }
.home-blog-head h2 {
    font-size: clamp(32px, 4vw, 50px);
    letter-spacing: -1px;
    margin: 12px 0 0;
    line-height: 1.05;
}
.home-blog-head p {
    font-size: 17px;
    color: var(--ink-soft);
    line-height: 1.55;
    max-width: 480px;
    margin: 0;
}
.home-blog-all {
    color: var(--orange-deep);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .3px;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: border-color .2s ease, color .2s ease;
    padding-bottom: 2px;
}
.home-blog-all:hover {
    border-bottom-color: var(--orange);
}
.home-blog-all .arrow { display: inline-block; transition: transform .2s ease; }
.home-blog-all:hover .arrow { transform: translateX(4px); }

.home-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.home-blog-card {
    background: #FFFFFF;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px -22px rgba(31, 26, 22, .25);
    transition: transform .25s ease, box-shadow .25s ease;
    position: relative;
}
.home-blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 50px -28px rgba(31, 26, 22, .4);
}
.home-blog-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.home-blog-img {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--cream-dark);
}
.home-blog-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.home-blog-card:hover .home-blog-img img { transform: scale(1.06); }

/* Date badge — orange circle overlapping image bottom-right */
.home-blog-date {
    position: absolute;
    right: -8px;
    bottom: -28px;
    width: 72px; height: 72px;
    border-radius: 50%;
    background: var(--orange);
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px -6px rgba(242, 101, 34, .55);
    line-height: 1;
    z-index: 2;
    transition: transform .25s ease, box-shadow .25s ease;
}
.home-blog-card:hover .home-blog-date {
    transform: scale(1.08);
    box-shadow: 0 14px 28px -6px rgba(242, 101, 34, .65);
}
.home-blog-date strong {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}
.home-blog-date em {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-style: normal;
    margin-top: 4px;
    font-weight: 600;
}

.home-blog-body {
    padding: 36px 28px 28px;
}
.home-blog-body h3 {
    font-size: 22px;
    line-height: 1.3;
    letter-spacing: -.3px;
    margin: 0 0 14px;
    color: var(--ink);
    transition: color .2s ease;
}
.home-blog-card:hover .home-blog-body h3 { color: var(--orange-deep); }

.home-blog-body p {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.65;
    margin: 0 0 24px;
}

.home-blog-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFFFFF;
    color: var(--ink);
    padding: 11px 22px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(31, 26, 22, .12);
    transition: background .2s ease, color .2s ease, transform .2s ease;
    letter-spacing: .2px;
}
.home-blog-cta .arrow { transition: transform .2s ease; }
.home-blog-card:hover .home-blog-cta {
    background: var(--orange);
    color: #FFFFFF;
    box-shadow: 0 8px 20px -4px rgba(242, 101, 34, .5);
}
.home-blog-card:hover .home-blog-cta .arrow {
    transform: translateX(4px);
}

@media (max-width: 900px) {
    .home-blog { padding: 56px 0; }
    .home-blog-head { grid-template-columns: 1fr; gap: 16px; }
    .home-blog-grid { grid-template-columns: 1fr; gap: 32px; }
    .home-blog-date { width: 60px; height: 60px; right: 12px; bottom: -22px; }
    .home-blog-date strong { font-size: 20px; }
}

/* ---------- BLOG ---------- */
.blog-hero { padding: 56px 0 24px; }
.blog-hero h1 {
    font-size: clamp(36px, 5vw, 60px);
    letter-spacing: -1px;
}

.blog-list { padding: 32px 0 100px; }
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.blog-grid-2 { grid-template-columns: 1fr 1fr; }

.blog-card {
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.blog-card:hover {
    transform: translateY(-4px);
    border-color: var(--orange);
    box-shadow: 0 22px 44px -24px rgba(31, 26, 22, .35);
}
.blog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}
.blog-card-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--cream-dark);
}
.blog-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { padding: 24px; }
.blog-card-date {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ink-soft);
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}
.blog-card-body h2,
.blog-card-body h3 {
    font-size: 22px;
    letter-spacing: -.4px;
    line-height: 1.3;
    margin: 0 0 12px;
}
.blog-card-body p {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.55;
    margin: 0 0 16px;
}
.blog-card-cta {
    font-size: 13px;
    font-weight: 600;
    color: var(--orange-deep);
    letter-spacing: .2px;
}

/* ── Single post ── */
.post-header { padding: 56px 0 32px; }
.post-header .section-num { display: block; margin: 14px 0 10px; }
.post-back {
    display: inline-block;
    font-size: 13px;
    color: var(--ink-soft);
    text-decoration: none;
}
.post-back:hover { color: var(--orange-deep); }
.post-header h1 {
    font-size: clamp(32px, 4.6vw, 54px);
    letter-spacing: -1px;
    margin: 0 0 16px;
    max-width: 880px;
}
.post-lead {
    font-size: 19px;
    color: var(--ink-soft);
    line-height: 1.55;
    max-width: 720px;
    margin: 0;
}
.post-meta {
    font-size: 12px;
    color: var(--ink-soft);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 16px 0 0;
    font-weight: 700;
}

.post-hero {
    padding: 8px 0 40px;
}
.post-hero img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
}

.post-body { padding: 0 0 80px; }
.post-content {
    max-width: 760px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.75;
    color: var(--ink);
}
.post-content > * + * { margin-top: 18px; }
.post-content h2,
.post-content h3 {
    font-family: var(--font-head);
    letter-spacing: -.4px;
    margin-top: 36px;
}
.post-content h2 { font-size: clamp(22px, 2.6vw, 30px); }
.post-content h3 { font-size: clamp(19px, 2.2vw, 24px); color: var(--orange-deep); }
.post-content p { margin: 0; }
.post-content a {
    color: var(--orange-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.post-content ul,
.post-content ol {
    padding-left: 22px;
    margin: 0;
}
.post-content ul li,
.post-content ol li {
    margin: 10px 0;
    padding-left: 4px;
}
.post-content strong { color: var(--ink); }
.post-content blockquote {
    margin: 24px 0;
    padding: 18px 22px;
    background: var(--cream-dark);
    border-left: 3px solid var(--orange);
    border-radius: var(--radius-sm);
    font-style: italic;
}
.post-content .post-table,
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
}
.post-content th,
.post-content td {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--rule);
}
.post-content thead th {
    background: var(--cream-dark);
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--orange-deep);
    font-weight: 700;
}

.post-related {
    padding: 56px 0 80px;
    background: var(--cream-dark);
}
.post-related h2 {
    font-size: clamp(24px, 3vw, 32px);
    margin: 0 0 32px;
    letter-spacing: -.5px;
}

@media (max-width: 900px) {
    .blog-grid,
    .blog-grid-2 { grid-template-columns: 1fr; gap: 20px; }
    .blog-card-body { padding: 20px; }
    .post-header h1 { font-size: 30px; }
    .post-lead { font-size: 17px; }
    .post-content { font-size: 16px; }
}

/* ---------- VIE ÉTUDIANTE PAGE ---------- */
.vie-banner {
    position: relative;
    min-height: clamp(420px, 58vh, 620px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: var(--cream);
}
.vie-banner-bg { position: absolute; inset: 0; z-index: 0; }
.vie-banner-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.vie-banner-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(31, 26, 22, .2) 0%, rgba(31, 26, 22, .82) 100%),
        linear-gradient(90deg, rgba(31, 26, 22, .5) 0%, rgba(31, 26, 22, .1) 60%);
}
.vie-banner .wrap { position: relative; z-index: 1; width: 100%; }
.vie-banner-content {
    max-width: 760px;
    padding: 64px 0;
}
.vie-banner-content .eyebrow { color: var(--orange); }
.vie-banner-content .eyebrow::before { background: var(--orange); }
.vie-banner-content h1 {
    color: var(--cream);
    font-size: clamp(36px, 5vw, 60px);
    letter-spacing: -1px;
    margin-bottom: 16px;
    text-shadow: 0 2px 16px rgba(31, 26, 22, .45);
}
.vie-banner-content p {
    color: #F1F1F1;
    font-size: 17px;
    max-width: 560px;
    text-shadow: 0 1px 12px rgba(31, 26, 22, .5);
}

/* ─── Compact page header (breadcrumb banner) ──────────────────────────── */
.page-hero {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: var(--white);
}
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    animation: page-hero-zoom 22s ease-in-out infinite alternate;
}
@keyframes page-hero-zoom {
    from { transform: scale(1); }
    to   { transform: scale(1.1); }
}
/* Blue veil (#151e3c) — same tone as the slider panels */
.page-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(21, 30, 60, .80) 0%, rgba(21, 30, 60, .90) 100%);
}
.page-hero-inner {
    position: relative;
    z-index: 1;
    padding: 40px 20px;
    animation: sel-rise .8s cubic-bezier(.22, 1, .36, 1) both;
}
.page-hero h1 {
    color: var(--white);
    font-size: clamp(34px, 5vw, 56px);
    letter-spacing: -1px;
    line-height: 1.05;
    margin: 0 0 16px;
}
.page-hero-crumb {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
}
.page-hero-crumb a {
    color: rgba(255, 255, 255, .9);
    text-decoration: none;
    transition: color .2s;
}
.page-hero-crumb a:hover { color: var(--white); }
.page-hero-crumb-sep { color: rgba(255, 255, 255, .45); }
.page-hero-crumb-current { color: var(--orange); }

/* Landing : stats band in our navy blue */
.is-landing .ct-stats { background: linear-gradient(135deg, #1f2c52 0%, #151e3c 100%); }

/* Accreditation cards (landing) */
.lpe-accred { padding: 80px 0; }
.lpe-accred-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.lpe-accred-card {
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: 18px;
    padding: 36px 30px 30px;
    text-align: center;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.lpe-accred-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px -32px rgba(31, 26, 22, .45);
    border-color: transparent;
}
.lpe-accred-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--orange-deep));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    box-shadow: 0 12px 24px -10px rgba(217, 80, 26, .6);
}
.lpe-accred-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    margin-bottom: 18px;
}
.lpe-accred-logo {
    max-height: 56px;
    max-width: 150px;
    width: auto;
    object-fit: contain;
    display: block;
}
.lpe-accred-card h3 {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 10px;
}
.lpe-accred-card p {
    font-size: 14.5px;
    color: var(--ink-soft);
    line-height: 1.6;
    margin: 0 0 16px;
}
.lpe-accred-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--orange-deep);
}
@media (max-width: 820px) {
    .lpe-accred { padding: 48px 0; }
    .lpe-accred-grid { grid-template-columns: 1fr; }
}

/* Taller hero variant for the landing page */
.page-hero--tall { min-height: 520px; }
.page-hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.page-hero--tall .ctf-eyebrow { color: var(--orange); }
.page-hero-lead {
    color: rgba(255, 255, 255, .9);
    font-size: 18px;
    line-height: 1.65;
    max-width: 640px;
    margin: 0 auto 28px;
}
.page-hero .cta-row { justify-content: center; flex-wrap: wrap; }

@keyframes sel-rise {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .page-hero-bg img,
    .page-hero-inner { animation: none; }
}

/* Simple uniform gallery */
.vie-simple { padding: 64px 0 88px; }
.vie-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.vie-grid .vie-tile {
    aspect-ratio: 3 / 2;
    border-radius: 6px;
    box-shadow: 0 16px 36px -28px rgba(31, 26, 22, .4);
}
@media (max-width: 820px) {
    .vie-simple { padding: 40px 0 56px; }
    .vie-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (max-width: 520px) {
    .vie-grid { grid-template-columns: 1fr; }
}

.vie-gallery-section { padding: 40px 0 100px; }

/* Bento gallery */
.vie-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 16px;
}
.vie-tile {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: none;
    padding: 0;
    cursor: pointer;
    background: var(--cream-dark);
    box-shadow: 0 18px 40px -24px rgba(31, 26, 22, .35);
}
.vie-tile.vie-wide { grid-column: span 2; }
.vie-tile.vie-tall { grid-row: span 2; }
.vie-tile.vie-big  { grid-column: span 2; grid-row: span 2; }

.vie-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease, filter .3s ease;
}
.vie-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(31, 26, 22, .35));
    opacity: 0;
    transition: opacity .3s ease;
}
.vie-tile:hover img { transform: scale(1.06); }
.vie-tile:hover::after { opacity: 1; }

.vie-tile-zoom {
    position: absolute;
    top: 14px; right: 14px;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(250, 247, 242, .92);
    color: var(--orange-deep);
    display: grid;
    place-items: center;
    opacity: 0;
    transform: scale(.8);
    transition: opacity .25s ease, transform .25s ease;
    z-index: 2;
}
.vie-tile:hover .vie-tile-zoom,
.vie-tile:focus-visible .vie-tile-zoom {
    opacity: 1;
    transform: scale(1);
}

/* ---------- SCROLL REVEAL (generic) ---------- */
/* Applied via JS to any [data-reveal] + the legacy tile/highlight classes. */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity .75s cubic-bezier(.16, 1, .3, 1),
        transform .75s cubic-bezier(.16, 1, .3, 1);
    will-change: opacity, transform;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}
/* Directional variants */
[data-reveal="left"].reveal  { transform: translateX(-32px); }
[data-reveal="right"].reveal { transform: translateX(32px); }
[data-reveal="fade"].reveal  { transform: none; }
[data-reveal="zoom"].reveal  { transform: scale(.94); }

[data-reveal="left"].reveal.is-visible,
[data-reveal="right"].reveal.is-visible,
[data-reveal="zoom"].reveal.is-visible {
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(15, 12, 10, .92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    animation: lightboxIn .2s ease;
}
.lightbox[hidden] { display: none; }
@keyframes lightboxIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-img {
    max-width: min(1100px, 92vw);
    max-height: 86vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6);
}
.lightbox-close {
    position: absolute;
    top: 24px; right: 28px;
    width: 48px; height: 48px;
    border: none;
    background: transparent;
    color: var(--cream);
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    opacity: .8;
    transition: opacity .2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px; height: 56px;
    border: none;
    border-radius: 50%;
    background: rgba(250, 247, 242, .12);
    color: var(--cream);
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s;
}
.lightbox-nav:hover { background: var(--orange); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* ---------- EXAM PAGES (DELE / SIELE) ---------- */
.exam-facts-section {
    background: var(--ink);
    padding: 44px 0;
}
.exam-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}
.exam-fact { display: flex; flex-direction: column; }
.exam-fact-label {
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--cream-dark);
    margin-bottom: 8px;
}
.exam-fact-value {
    font-family: var(--font-head);
    font-size: 23px;
    color: var(--orange);
    line-height: 1.25;
}

/* DELE/SIELE accreditation credentials */
.exam-credentials {
    padding: 72px 0 24px;
    background: var(--cream);
}
.exam-cred-head {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
}
.exam-cred-head h2 {
    font-size: clamp(28px, 3.4vw, 40px);
    letter-spacing: -.5px;
    margin-bottom: 14px;
}
.exam-cred-head p {
    font-size: 16px;
    color: var(--ink-soft);
    line-height: 1.65;
    margin: 0 auto;
}
.exam-cred-card {
    max-width: 880px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--rule);
    border-left: 3px solid var(--orange);
    border-radius: var(--radius);
    padding: 28px 36px;
    display: flex;
    gap: 32px;
    align-items: center;
    box-shadow: 0 24px 50px -32px rgba(31, 26, 22, .3);
}
.exam-cred-logo-wrap {
    flex-shrink: 0;
    width: 130px;
    display: grid;
    place-items: center;
}
.exam-cred-logo {
    width: 100%;
    height: auto;
    display: block;
}
.exam-cred-text { flex: 1; }
.exam-cred-text h3 {
    font-size: 22px;
    color: var(--orange-deep);
    margin-bottom: 8px;
    letter-spacing: -.3px;
}
.exam-cred-text p {
    font-size: 15px;
    color: var(--ink-soft);
    line-height: 1.6;
    margin: 0;
}

.exam-about { padding: 80px 0; }
.exam-about .about-grid { align-items: start; }
.exam-why-title {
    font-size: 20px;
    margin: 32px 0 16px;
}
.exam-levels {
    background: var(--cream-dark);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 28px;
    position: sticky;
    top: 120px;
}
.exam-levels h3 {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--orange-deep);
    margin-bottom: 8px;
}
.exam-levels ul { list-style: none; margin: 0; padding: 0; }
.exam-levels li {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid var(--rule);
    align-items: baseline;
}
.exam-levels li:first-child { border-top: none; }
.exam-level-name {
    font-family: var(--font-head);
    font-size: 18px;
    color: var(--orange-deep);
    font-weight: 600;
}
.exam-level-desc { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }

.exam-gallery-section { padding: 40px 0 80px; }
.exam-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.exam-gallery .vie-tile { aspect-ratio: 16 / 9; }

/* Center gallery : a touch more modern — portrait tiles, rounder, softer, smoother hover */
.ct-gallery .exam-gallery .vie-tile {
    aspect-ratio: 4 / 5;
    border-radius: 18px;
    box-shadow: 0 20px 44px -28px rgba(31, 26, 22, .4);
    transition: transform .3s ease, box-shadow .3s ease;
}
.ct-gallery .exam-gallery .vie-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 34px 60px -30px rgba(31, 26, 22, .5);
}
.ct-gallery .vie-tile img { transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.ct-gallery .vie-tile:hover img { transform: scale(1.08); }

/* SIELE modalities (Global vs Independent) */
.exam-modalities {
    padding: 16px 0 80px;
    background: var(--cream);
}
.exam-mod-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}
.exam-mod-eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--orange-deep);
    font-weight: 700;
    margin-bottom: 12px;
}
.exam-mod-head h2 {
    font-size: clamp(28px, 3.4vw, 40px);
    letter-spacing: -.5px;
    margin-bottom: 12px;
}
.exam-mod-head p {
    font-size: 16px;
    color: var(--ink-soft);
    line-height: 1.6;
}
.exam-mod-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 980px;
    margin: 0 auto;
}
.exam-mod-card {
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.exam-mod-card:hover {
    transform: translateY(-3px);
    border-color: var(--orange);
    box-shadow: 0 22px 44px -24px rgba(31, 26, 22, .3);
}
.exam-mod-card h3 {
    font-family: var(--font-head);
    font-size: 26px;
    color: var(--orange-deep);
    letter-spacing: -.3px;
    margin-bottom: 4px;
}
.exam-mod-tag {
    font-size: 14px;
    color: var(--ink-soft);
    font-style: italic;
    margin: 0 0 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--rule);
}
.exam-mod-desc {
    font-size: 15px;
    color: var(--ink);
    line-height: 1.6;
    margin: 0 0 24px;
    flex: 1;
}
.exam-mod-meta {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 10px 16px;
    margin: 0;
    padding-top: 18px;
    border-top: 1px solid var(--rule);
}
.exam-mod-meta dt {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--orange-deep);
    font-weight: 700;
    align-self: center;
}
.exam-mod-meta dd {
    font-size: 14px;
    color: var(--ink);
    margin: 0;
    line-height: 1.5;
}

.exam-mod-cta {
    text-align: center;
    margin-top: 40px;
}
.exam-mod-cta .btn {
    box-shadow: 0 14px 28px -10px rgba(242, 101, 34, .55);
}
.exam-mod-cta-note {
    margin: 14px 0 0;
    font-size: 12px;
    color: var(--ink-soft);
    letter-spacing: .3px;
}

/* Compare side-by-side (DELE vs SIELE) */
.exam-compare-section { padding: 16px 0 100px; }
.exam-compare-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}
.exam-compare-eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--orange-deep);
    font-weight: 700;
    margin-bottom: 12px;
}
.exam-compare-head h2 {
    font-size: clamp(28px, 3.4vw, 40px);
    letter-spacing: -.5px;
    margin-bottom: 12px;
}
.exam-compare-head p {
    font-size: 16px;
    color: var(--ink-soft);
    line-height: 1.6;
    margin: 0;
}

.exam-compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 980px;
    margin: 0 auto;
}
.exam-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 32px 28px 28px;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.exam-card h3 {
    font-family: var(--font-head);
    font-size: 30px;
    letter-spacing: -.5px;
    margin-bottom: 4px;
}
.exam-card-tag {
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.4;
    margin: 0 0 20px;
    font-style: italic;
}
.exam-card-points {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    border-top: 1px solid var(--rule);
    flex: 1;
}
.exam-card-points li {
    padding: 12px 0 12px 22px;
    border-bottom: 1px solid var(--rule);
    position: relative;
    font-size: 14px;
    color: var(--ink);
    line-height: 1.5;
}
.exam-card-points li::before {
    content: "";
    position: absolute;
    left: 0; top: 19px;
    width: 12px; height: 1px;
    background: var(--orange);
}

/* Current page card : highlighted */
.exam-card-current {
    background: var(--cream-dark);
    border: 2px solid var(--orange);
    box-shadow: 0 22px 44px -28px rgba(242, 101, 34, .4);
}
.exam-card-current h3 { color: var(--orange-deep); }
.exam-card-badge {
    position: absolute;
    top: -12px; left: 24px;
    background: var(--orange);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    box-shadow: 0 6px 14px -4px rgba(242, 101, 34, .5);
}

/* Other card : clickable to switch */
.exam-card-other:hover {
    transform: translateY(-3px);
    border-color: var(--orange);
    box-shadow: 0 22px 44px -24px rgba(31, 26, 22, .3);
}
.exam-card-cta {
    align-self: flex-start;
    margin-top: auto;
}

/* =========================================================
   CENTER PAGES (Casablanca / Marrakech) — distinct style
   ========================================================= */
/* ---------- Split hero (Casablanca opt-in) ---------- */
.ctn-hero {
    position: relative;
    min-height: 620px;
    color: var(--white);
    overflow: hidden;
    isolation: isolate;
    background: #1F1A16;
}

/* ─── Left / right split slider ─────────────────────────────────────────
   Each slide is split into a LEFT coloured content panel and a RIGHT photo.
   On transition the panel slides out to the left and the photo out to the
   right, so the two halves pull apart horizontally to reveal the next slide. */
.ctn-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.ctn-slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    /* Default colour theme = orange. .ctn-slide--blue overrides these. */
    --panel-c1: #F25C1E;
    --panel-c2: #C8400F;
    /* Tint laid over the optional panel_bg photo. Keep it translucent so the
       background image shows through, dark enough that white text stays legible. */
    --panel-tint-1: rgba(226, 78, 24, .55);
    --panel-tint-2: rgba(168, 52, 12, .72);
}
.ctn-slide--blue {
    --panel-c1: #1f2c52;
    --panel-c2: #151e3c;
    --panel-tint-1: rgba(31, 44, 82, .58);
    --panel-tint-2: rgba(21, 30, 60, .76);
}
.ctn-slide.is-active { z-index: 1; }

/* The two halves */
.ctn-slide-panel,
.ctn-slide-photo {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    will-change: transform;
    transition: transform 1s cubic-bezier(.76, 0, .24, 1);
}
.ctn-slide-panel {
    left: 0;
    background-color: var(--panel-c2);
    background-image: linear-gradient(165deg, var(--panel-c1), var(--panel-c2));
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    z-index: 2;
}
/* Background photo shown in full (not cropped); empty space falls back to the
   panel colour. */
.ctn-slide-panel.has-bg {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
/* When a background photo is set on the panel, lay the colour over it as a
   translucent tint so the text stays readable. */
.ctn-slide-panel.has-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, var(--panel-tint-1), var(--panel-tint-2));
    z-index: 0;
}
.ctn-slide-photo {
    right: 0;
    background-color: #1e2a3a;
    background-size: cover;       /* garde les proportions, remplit le cadre */
    background-position: center;
    background-repeat: no-repeat;
}

/* Resting (off-stage) positions for non-active slides: panel parked left,
   photo parked right. The active slide brings them both back to 0. */
.ctn-slide:not(.is-active) .ctn-slide-panel { transform: translateX(-102%); }
.ctn-slide:not(.is-active) .ctn-slide-photo { transform: translateX(102%); }
.ctn-slide.is-active .ctn-slide-panel,
.ctn-slide.is-active .ctn-slide-photo { transform: translateX(0); }

/* Content inside the orange panel */
.ctn-panel-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0 56px 0 max(32px, calc((100vw - var(--container, 1240px)) / 2));
    color: var(--white);
}
.ctn-hero--split .ctn-hero-tag { padding: 0 0 22px; }
.ctn-hero--split .ctn-hero-eyebrow { display: block; margin-bottom: 14px; }
.ctn-hero--split .ctn-hero-title {
    text-align: left;
    font-size: clamp(40px, 4.6vw, 68px);
    letter-spacing: -1px;
    text-shadow: none;
    margin: 0 0 30px;
}
.ctn-hero-cta { display: inline-flex; align-items: center; gap: 8px; }
.ctn-hero-cta .arrow { transition: transform .2s; }
.ctn-hero-cta:hover .arrow { transform: translateX(4px); }

/* Pager dots */
.ctn-slider-dots {
    position: absolute;
    left: 25%;
    bottom: 116px;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}
.ctn-slider-dot {
    width: 36px;
    height: 4px;
    border: 0;
    padding: 0;
    border-radius: 2px;
    background: rgba(255, 255, 255, .35);
    cursor: pointer;
    transition: background .3s, width .3s;
}
.ctn-slider-dot:hover { background: rgba(255, 255, 255, .6); }
.ctn-slider-dot.is-current {
    background: var(--orange, #E8541E);
    width: 52px;
}

@media (prefers-reduced-motion: reduce) {
    .ctn-slide-panel,
    .ctn-slide-photo { transition: none; }
}

/* Brand tag — sits at the top of the orange panel */
.ctn-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 34px 0 0;
    color: var(--white);
    font-family: 'Poppins', system-ui, sans-serif;
    align-self: flex-start;
}
.ctn-hero-tag-mark {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ctn-hero-tag-brand {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .3px;
}
.ctn-hero-tag-sep {
    width: 1px;
    height: 32px;
    background: rgba(255, 255, 255, .35);
}
.ctn-hero-tag-kicker {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .85);
    max-width: 230px;
    line-height: 1.4;
}

.ctn-hero-eyebrow {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .9);
    margin-bottom: 18px;
}
.ctn-hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--white);
    font-size: clamp(40px, 4.6vw, 68px);
    letter-spacing: -1px;
    line-height: 1.05;
    margin: 0;
}

/* Floating cards strip overlapping the hero bottom */
.ctn-cards-wrap {
    background: transparent;
    margin-top: -90px;
    position: relative;
    z-index: 2;
    padding-bottom: 72px;
}
.ctn-cards {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 30px 60px -28px rgba(31, 26, 22, .25);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.ctn-card {
    padding: 44px 36px;
    text-align: center;
    border-right: 1px solid var(--rule);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ctn-card:last-child { border-right: none; }
.ctn-card-icon {
    color: var(--orange);
    margin-bottom: 18px;
    display: inline-flex;
}
.ctn-card h3 {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 19px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 12px;
}
.ctn-card p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-soft);
    margin: 0 0 18px;
}
.ctn-card-phone {
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}
.ctn-card-phone:hover { color: var(--orange); }
.ctn-card-phone-alt {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 13px;
}
.ctn-card-cta {
    color: var(--orange);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .3px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    transition: color .2s;
}
.ctn-card-cta:hover { color: var(--orange-deep); }
.ctn-card-arrow {
    font-size: 18px;
    line-height: 1;
    transition: transform .2s;
}
.ctn-card-cta:hover .ctn-card-arrow { transform: translateX(3px); }

@media (max-width: 900px) {
    .ctn-hero { min-height: 560px; }

    /* Stack the split: photo on top, orange panel below. The panel keeps
       sliding from the left, the photo from the right. */
    .ctn-slide-panel,
    .ctn-slide-photo { width: 100%; }
    .ctn-slide-photo { top: 0; height: 44%; bottom: auto; }
    .ctn-slide-panel { top: 44%; bottom: 0; height: auto; }

    .ctn-panel-inner { padding: 28px 24px; max-width: none; margin: 0; }
    .ctn-hero--split .ctn-hero-tag { padding: 0 0 14px; gap: 10px; }
    .ctn-hero-tag-brand { font-size: 18px; }
    .ctn-hero-tag-kicker { font-size: 10px; max-width: 160px; }
    .ctn-hero--split .ctn-hero-title { font-size: clamp(30px, 7vw, 44px); margin-bottom: 20px; }

    .ctn-slider-dots { left: 50%; bottom: auto; top: calc(44% - 24px); }

    .ctn-cards-wrap { margin-top: -70px; padding-bottom: 56px; }
    .ctn-cards { grid-template-columns: 1fr; }
    .ctn-card { border-right: none; border-bottom: 1px solid var(--rule); padding: 32px 24px; }
    .ctn-card:last-child { border-bottom: none; }
}

.ct-hero { padding: 72px 0 56px; }
.ct-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.ct-hero-text h1 {
    font-size: clamp(38px, 5vw, 64px);
    letter-spacing: -1.5px;
    margin: 16px 0 18px;
}
.ct-hero-text .lead {
    font-size: 18px;
    color: var(--ink-soft);
    max-width: 520px;
    margin-bottom: 32px;
}
/* Framed image with offset accent block behind */
.ct-hero-media { position: relative; }
.ct-hero-frame {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: 0 40px 80px -30px rgba(31, 26, 22, .4);
    z-index: 1;
}
.ct-hero-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ct-hero-media::before {
    content: "";
    position: absolute;
    right: -22px; bottom: -22px;
    width: 60%; height: 70%;
    background: var(--orange);
    border-radius: var(--radius);
    z-index: 0;
}

/* Info cards */
.ct-info { padding: 0 0 24px; }
.ct-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.ct-info-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 22px 24px;
    background: var(--cream-dark);
    border: 1px solid var(--rule);
    border-left: 3px solid var(--orange);
    border-radius: var(--radius-sm);
}
.ct-info-label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--orange-deep);
    font-weight: 700;
}
.ct-info-card strong { font-family: var(--font-head); font-size: 17px; color: var(--ink); line-height: 1.3; }
.ct-info-sub { font-size: 13px; color: var(--ink-soft); text-decoration: none; }
a.ct-info-sub:hover { color: var(--orange-deep); }
.ct-info-phone { font-family: var(--font-head); font-size: 20px; color: var(--orange-deep); text-decoration: none; }

/* About + features */
.ct-about { padding: 72px 0; }
.ct-about .about-grid { align-items: start; }
.ct-features {
    list-style: none;
    margin: 0; padding: 0;
    border-top: 1px solid var(--rule);
}
.ct-features li {
    padding: 16px 0 16px 28px;
    border-bottom: 1px solid var(--rule);
    position: relative;
    font-size: 15px;
    color: var(--ink);
}
.ct-features li::before {
    content: "";
    position: absolute;
    left: 0; top: 22px;
    width: 14px; height: 2px;
    background: var(--orange);
}

/* ─── About : feature layout (image + structured content) ──────────────── */
.ct-feature { padding: 88px 0; }
.ctf-grid {
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    gap: 64px;
    align-items: center;
}

/* Framed media with optional play button */
.ctf-media { position: relative; }
.ctf-frame {
    position: relative;
    border: 1px solid var(--rule);
    padding: 14px;
    border-radius: 4px;
}
.ctf-frame img {
    display: block;
    width: 100%;
    height: auto;          /* proportions naturelles, image entière, non rognée */
    border-radius: 2px;
}
.ctf-play {
    position: absolute;
    left: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 26px 16px 20px;
    background: var(--orange);
    color: var(--white);
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .2s;
}
.ctf-play:hover { background: var(--orange-deep, #C8400F); }
.ctf-play-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, .75);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Content column */
.ctf-eyebrow {
    display: block;
    color: var(--orange);
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.ctf-title {
    font-size: clamp(30px, 3.6vw, 46px);
    line-height: 1.1;
    letter-spacing: -1px;
    margin: 0;
}
.ctf-rule {
    display: block;
    width: 90px;
    height: 4px;
    margin: 22px 0 26px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--orange) 0 55%, var(--rule) 55% 100%);
}
.ctf-lead {
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink-soft);
    margin: 0 0 16px;
}
.ctf-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-soft);
    margin: 0 0 28px;
}

/* Two-column checklist */
.ctf-checks {
    list-style: none;
    margin: 0 0 38px;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 32px;
}
.ctf-checks li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--ink);
}
.ctf-check-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--orange);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Footer stat blocks */
.ctf-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 44px;
    padding-top: 30px;
    border-top: 1px solid var(--rule);
}
.ctf-stat {
    display: flex;
    align-items: center;
    gap: 16px;
}
.ctf-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--orange);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ctf-stat-icon--ghost {
    background: transparent;
    border: 1.5px solid var(--orange);
    color: var(--orange);
}
.ctf-stat-text strong {
    display: block;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 20px;
    line-height: 1.1;
    color: var(--ink);
}
.ctf-stat-text span {
    font-size: 14px;
    color: var(--ink-soft);
}

@media (max-width: 900px) {
    .ct-feature { padding: 56px 0; }
    .ctf-grid { grid-template-columns: 1fr; gap: 40px; }
    .ctf-checks { grid-template-columns: 1fr; }
    .ctf-footer { gap: 28px; }
}

/* Programs cards */
.ct-programs { padding: 0 0 80px; }
.ct-programs-title {
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: -.5px;
    margin-bottom: 36px;
}
.ct-programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.ct-program {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 210px;
    padding: 34px 32px;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: var(--ink);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
/* Soft orange wash that fades in on hover */
.ct-program::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, rgba(226, 78, 24, .10), transparent 60%);
    opacity: 0;
    transition: opacity .3s ease;
}
.ct-program:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px -32px rgba(31, 26, 22, .45);
    border-color: transparent;
}
.ct-program:hover::before { opacity: 1; }
.ct-program h3 {
    position: relative;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.2px;
    margin-bottom: 10px;
}
.ct-program p {
    position: relative;
    font-size: 14.5px;
    color: var(--ink-soft);
    line-height: 1.6;
    margin: 0;
}
.ct-program-arrow {
    position: relative;
    margin-top: auto;
    align-self: flex-start;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--rule);
    color: var(--orange);
    font-size: 19px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.ct-program:hover .ct-program-arrow {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
    transform: translateX(4px);
}

.ct-gallery { padding: 0 0 80px; }

/* ─── Modern "visit the center" CTA ────────────────────────────────────── */
.cta-final.cta-visit { padding: 92px 0; }
.cta-visit {
    background: linear-gradient(135deg, #F2611E 0%, #E8541E 45%, #C8400F 100%);
}
.cta-visit { position: relative; overflow: hidden; }
.cta-visit .wrap { position: relative; z-index: 1; }
.cta-visit h2 { margin-bottom: 18px; }
.cta-visit p { margin-bottom: 32px; }

/* Centered single column : title, lead, phone, button */
.cta-visit-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.cta-visit-inner h2 { margin-bottom: 18px; }
.cta-visit-inner p { margin-bottom: 32px; max-width: 640px; }

/* Row of phone cards (both centers) */
.cta-visit-phones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}
.cta-visit-phones .cta-visit-phone { margin-bottom: 0; }

/* Centered phone card */
.cta-visit-phone {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 32px;
    padding: 22px 34px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .4);
    backdrop-filter: blur(8px);
    box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .45);
    text-decoration: none;
    color: var(--white);
    text-align: left;
    transition: background .25s, border-color .25s, transform .25s;
}
.cta-visit-phone:hover {
    background: rgba(255, 255, 255, .24);
    border-color: rgba(255, 255, 255, .7);
    transform: translateY(-3px);
}
/* Gentle attention pulse to invite the click */
.cta-visit-phone { animation: cta-phone-glow 2.6s ease-in-out infinite; }
.cta-visit-phone:hover { animation-play-state: paused; }
@keyframes cta-phone-glow {
    0%, 100% { box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .45), 0 0 0 0 rgba(255, 255, 255, 0); }
    50%      { box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .45), 0 0 0 7px rgba(255, 255, 255, .12); }
}

.cta-visit-phone-icon {
    position: relative;
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
/* Ringing ripple around the icon */
.cta-visit-phone-icon::before,
.cta-visit-phone-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .55);
    animation: cta-ring 2.6s ease-out infinite;
}
.cta-visit-phone-icon::after { animation-delay: 1.3s; }
@keyframes cta-ring {
    0%   { transform: scale(1);   opacity: .7; }
    70%  { opacity: 0; }
    100% { transform: scale(1.9); opacity: 0; }
}
/* Phone handset wiggles like it's ringing */
.cta-visit-phone-icon svg {
    transform-origin: center;
    animation: cta-wiggle 2.6s ease-in-out infinite;
}
@keyframes cta-wiggle {
    0%, 60%, 100% { transform: rotate(0); }
    66% { transform: rotate(-13deg); }
    72% { transform: rotate(11deg); }
    78% { transform: rotate(-8deg); }
    84% { transform: rotate(6deg); }
    90% { transform: rotate(0); }
}

@media (prefers-reduced-motion: reduce) {
    .cta-visit-phone,
    .cta-visit-phone-icon::before,
    .cta-visit-phone-icon::after,
    .cta-visit-phone-icon svg { animation: none; }
}
.cta-visit-phone-meta { display: flex; flex-direction: column; gap: 4px; }
.cta-visit-phone-label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .85);
    font-weight: 600;
}
.cta-visit-phone-num {
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(24px, 2.8vw, 32px);
    letter-spacing: .5px;
    line-height: 1;
}

@media (max-width: 700px) {
    .cta-visit-phone { width: 100%; justify-content: center; }
}

/* Gently floating circles in the background */
.cta-visit-orbs {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.cta-orb {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
}
.cta-orb-1 {
    width: 360px; height: 360px;
    right: -60px; top: -120px;
    border: 60px solid rgba(255, 255, 255, .08);
    animation: cta-orb-float 13s ease-in-out infinite;
}
.cta-orb-2 {
    width: 200px; height: 200px;
    right: 22%; bottom: -90px;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 70%);
    animation: cta-orb-float 17s ease-in-out infinite reverse;
}
.cta-orb-3 {
    width: 130px; height: 130px;
    left: -40px; bottom: 10%;
    border: 2px solid rgba(255, 255, 255, .18);
    animation: cta-orb-float 11s ease-in-out infinite;
    animation-delay: -4s;
}
@keyframes cta-orb-float {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(-24px, 26px) scale(1.06); }
    100% { transform: translate(0, 0) scale(1); }
}

@media (max-width: 700px) {
    .cta-final.cta-visit { padding: 60px 0; }
    .cta-orb-1 { width: 220px; height: 220px; border-width: 40px; }
    .cta-orb-2 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .cta-orb { animation: none; }
}

/* Stats bandeau */
.ct-stats {
    background: var(--ink);
    color: var(--cream);
    padding: 56px 0;
    margin-bottom: 0;
}
.ct-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}
.ct-stat {
    text-align: left;
    border-left: 2px solid var(--orange);
    padding-left: 20px;
}
.ct-stat strong {
    display: block;
    font-family: var(--font-head);
    font-size: 42px;
    color: var(--orange);
    line-height: 1.05;
    margin-bottom: 6px;
    letter-spacing: -.5px;
}
.ct-stat span {
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(250, 247, 242, .75);
    line-height: 1.4;
}

/* Method (4 pillars) */
.ct-method { padding: 80px 0; }
.ct-method-head {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}
.ct-method-head .section-num { display: block; margin-bottom: 12px; }
.ct-method-head h2 {
    font-size: clamp(28px, 3.4vw, 42px);
    letter-spacing: -.5px;
    margin-bottom: 14px;
}
.ct-method-head p {
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.65;
}
.ct-method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 1000px;
    margin: 0 auto;
}
.ct-pillar {
    position: relative;
    padding: 38px 34px 32px;
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: 18px;
    overflow: hidden;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
/* Accent bar that grows in on hover */
.ct-pillar::before {
    content: "";
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--orange), var(--orange-deep, #C8400F));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}
.ct-pillar:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px -34px rgba(31, 26, 22, .45);
    border-color: transparent;
}
.ct-pillar:hover::before { transform: scaleX(1); }
.ct-pillar-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--orange), var(--orange-deep, #C8400F));
    color: var(--white);
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 22px;
    box-shadow: 0 10px 22px -10px rgba(226, 78, 24, .7);
}
.ct-pillar h3 {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 19px;
    font-weight: 600;
    margin: 0 0 10px;
    letter-spacing: -.2px;
}
.ct-pillar p {
    font-size: 14.5px;
    color: var(--ink-soft);
    line-height: 1.65;
    margin: 0;
}

/* City FAQ */
.ct-faq { padding: 0 0 80px; }
.ct-faq-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 32px;
}
.ct-faq-head .section-num { display: block; margin-bottom: 10px; }
.ct-faq-head h2 {
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: -.5px;
    margin: 0;
}
.ct-faq .faq-list {
    max-width: 880px;
    margin: 0 auto;
    border-top: 1px solid var(--rule);
}

@media (max-width: 900px) {
    .ct-hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .ct-hero-media { order: -1; max-width: 420px; }
    .ct-info-grid { grid-template-columns: 1fr; }
    .ct-programs-grid { grid-template-columns: 1fr; }
    .ct-about { padding: 48px 0; }
    .ct-stats { padding: 40px 0; }
    .ct-stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .ct-stat strong { font-size: 32px; }
    .ct-method { padding: 48px 0; }
    .ct-method-grid { grid-template-columns: 1fr; gap: 16px; }
    .ct-pillar { padding: 22px; }
}

/* =========================================================
   LANDING PAGE (lp/selectividad)
   ========================================================= */
.lp-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(250, 247, 242, .95);
    backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--rule);
}
.lp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 16px;
}
.lp-header-phones {
    display: flex;
    align-items: center;
    gap: 28px;
}
.lp-header-phone {
    display: flex;
    flex-direction: column;
    text-align: right;
    text-decoration: none;
    line-height: 1.1;
}
.lp-header-phone strong { direction: ltr; }
.lp-phone-label {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.lp-header-phone strong {
    font-family: var(--font-head);
    font-size: 19px;
    color: var(--orange-deep);
}

.lp-footer {
    background: var(--ink);
    color: var(--cream);
    padding: 28px 0;
}
.lp-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    opacity: .85;
}
.lp-footer a { color: var(--orange); text-decoration: none; }

/* Hero with form */
.lp-hero {
    position: relative;
    overflow: hidden;
    background: var(--ink);
    color: var(--cream);
    padding: 64px 0 72px;
}
.lp-hero-bg { position: absolute; inset: 0; z-index: 0; }
.lp-hero-bg .hero-video-el { width: 100%; height: 100%; object-fit: cover; }
.lp-hero-bg .hero-overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(31,26,22,.55), rgba(31,26,22,.8)),
        linear-gradient(90deg, rgba(31,26,22,.7) 0%, rgba(31,26,22,.35) 100%);
}
.lp-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: center;
}
.lp-badge {
    display: inline-block;
    background: var(--orange);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    margin-bottom: 20px;
}
.lp-hero-text h1 {
    color: var(--cream);
    font-size: clamp(34px, 4.6vw, 58px);
    letter-spacing: -1px;
    line-height: 1.08;
    margin-bottom: 18px;
    text-shadow: 0 2px 16px rgba(31, 26, 22, .4);
}
.lp-hero-sub {
    color: #F1F1F1;
    font-size: 17px;
    max-width: 540px;
    margin-bottom: 24px;
    text-shadow: 0 1px 10px rgba(31, 26, 22, .5);
}
.lp-trust {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    padding: 0; margin: 0;
}
.lp-trust li {
    position: relative;
    padding-left: 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--cream);
}
.lp-trust li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--orange);
    font-weight: 700;
}

/* ── Étudier en Espagne landing : centered hero, stats band, end form ── */
.lp-hero--center { padding: 96px 0 104px; text-align: center; }
.lp-hero-center-inner { position: relative; z-index: 1; max-width: 840px; margin: 0 auto; }
.lp-hero--center h1 {
    color: var(--cream);
    font-size: clamp(36px, 5.2vw, 64px);
    letter-spacing: -1.5px;
    line-height: 1.06;
    margin: 0 0 20px;
    text-shadow: 0 2px 16px rgba(31, 26, 22, .4);
}
.lp-hero--center .lp-hero-sub { margin: 0 auto 28px; max-width: 640px; }
.lp-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 26px; }
.lp-trust--center { justify-content: center; }
.btn-ghost-light { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .6); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }

.lp-stats-band { background: linear-gradient(135deg, #1f2c52, #151e3c); color: #fff; padding: 42px 0; }
.lp-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.lp-stat strong {
    display: block;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 700;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 6px;
}
.lp-stat span { font-size: 13px; color: rgba(255, 255, 255, .75); }

.lp-form-section { padding: 84px 0; background: var(--cream-dark); }
.lp-form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.lp-form-intro h2 { font-size: clamp(26px, 3vw, 40px); letter-spacing: -.5px; line-height: 1.15; margin: 12px 0 14px; }
.lp-form-intro p { color: var(--ink-soft); font-size: 16px; line-height: 1.7; margin-bottom: 18px; max-width: 460px; }
.lp-form-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lp-form-points li { position: relative; padding-left: 26px; font-weight: 600; color: var(--ink); }
.lp-form-points li::before { content: "✓"; position: absolute; left: 0; color: var(--orange); font-weight: 700; }

@media (max-width: 860px) {
    .lp-hero--center { padding: 60px 0 68px; }
    .lp-stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .lp-form-wrap { grid-template-columns: 1fr; gap: 32px; }
}

/* Form card */
.lp-form-card {
    background: var(--white);
    color: var(--ink);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
}
.lp-form-title {
    font-size: 24px;
    letter-spacing: -.5px;
    margin-bottom: 6px;
}
.lp-form-lead {
    font-size: 14px;
    color: var(--ink-soft);
    margin-bottom: 20px;
}
.lp-form-card .field { margin-bottom: 14px; }
.lp-form-card .form-consent { margin: 8px 0 18px; }
.lp-form-submit { width: 100%; justify-content: center; }

.lp-form-success { text-align: center; padding: 16px 8px; }
.lp-form-success .success-icon { width: 56px; height: 56px; color: var(--orange); margin-bottom: 16px; }
.lp-form-success h2 { font-size: 24px; margin-bottom: 10px; }
.lp-form-success p { color: var(--ink-soft); margin-bottom: 20px; }

/* Section titles */
.lp-section-title {
    font-size: clamp(28px, 3.6vw, 44px);
    letter-spacing: -1px;
    text-align: center;
    margin-bottom: 12px;
}
.lp-section-lead {
    text-align: center;
    color: var(--ink-soft);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 48px;
}

/* Advantages */
.lp-advantages { padding: 90px 0; }
.lp-advantages .lp-section-title { margin-bottom: 48px; }
.lp-adv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.lp-adv {
    padding: 28px;
    background: var(--cream-dark);
    border-radius: var(--radius);
    border: 1px solid var(--rule);
    transition: transform .2s ease, box-shadow .2s ease;
}
.lp-adv:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px -22px rgba(31, 26, 22, .35);
}
.lp-adv-num {
    font-family: var(--font-head);
    font-size: 15px;
    color: var(--orange);
    font-weight: 700;
    letter-spacing: 2px;
}
.lp-adv h3 { font-size: 20px; margin: 12px 0 8px; }
.lp-adv p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

/* Program / gallery / faq on landing */
.lp-program { padding: 0 0 90px; }
.lp-gallery { padding: 0 0 90px; }
.lp-faq { padding: 0 0 90px; }
.lp-faq .faq-list { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--rule); }

@media (max-width: 900px) {
    .lp-hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .lp-adv-grid { grid-template-columns: 1fr; }
    .lp-advantages, .lp-program, .lp-gallery, .lp-faq { padding-bottom: 56px; }
    .lp-advantages { padding-top: 56px; }
    .lp-header-phones { gap: 14px; }
    .lp-header-phone .lp-phone-label { display: none; }
    .lp-header-phone strong { font-size: 15px; }
}
@media (max-width: 480px) {
    /* Keep only the first center's number on very small screens */
    .lp-header-phones .lp-header-phone:nth-child(2) { display: none; }
}

/* ---------- ERROR PAGE ---------- */
.error-page { min-height: 60vh; display: flex; align-items: center; }

/* ---------- RTL (Arabic) ---------- */
/* Arabic uses Cairo everywhere (body + headings + buttons), a real
   Arabic-supporting font distinct from the Latin Playfair / Poppins / DM Sans. */
[dir="rtl"] body { font-family: 'Cairo', system-ui, sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5,
[dir="rtl"] .btn, [dir="rtl"] .eyebrow, [dir="rtl"] .section-num,
[dir="rtl"] .ctn-hero-title, [dir="rtl"] .ctf-title, [dir="rtl"] .sp-intro-title,
[dir="rtl"] .ctf-eyebrow, [dir="rtl"] .sp-filband-eyebrow, [dir="rtl"] .vie-feature-eyebrow,
[dir="rtl"] .t-body h3, [dir="rtl"] .pc-step-card h3, [dir="rtl"] .ct-pillar h3,
[dir="rtl"] .page-hero h1, [dir="rtl"] .cta-final h2 {
    font-family: 'Cairo', system-ui, sans-serif;
}

/* Phone numbers must stay left-to-right even inside RTL text. */
[dir="rtl"] .cta-visit-phone-num,
[dir="rtl"] .cta-final-phone-num,
[dir="rtl"] .topbar-phone,
[dir="rtl"] .ctn-card-phone,
[dir="rtl"] .ctn-card-phone-alt,
[dir="rtl"] .ct-info-phone,
[dir="rtl"] .ct-info-sub,
[dir="rtl"] a[href^="tel:"] {
    direction: ltr;
    unicode-bidi: isolate;
}
[dir="rtl"] .eyebrow::before { margin-left: 10px; margin-right: 0; }
[dir="rtl"] .hero-badge { right: auto; left: -16px; }
[dir="rtl"] .filiere:hover { padding-left: 0; padding-right: 16px; }
[dir="rtl"] .f-arrow { text-align: left; transform: scaleX(-1); }

/* Flip directional arrows */
[dir="rtl"] .arrow,
[dir="rtl"] .ct-program-arrow,
[dir="rtl"] .ctn-card-arrow,
[dir="rtl"] .ct-card-arrow,
[dir="rtl"] .ct-program-cta .arrow { display: inline-block; transform: scaleX(-1); }

/* Bullet lists : move marker + padding to the right */
[dir="rtl"] .ct-features li { padding: 16px 28px 16px 0; }
[dir="rtl"] .ct-features li::before { left: auto; right: 0; }
[dir="rtl"] .t-points li { padding: 8px 26px 8px 0; }
[dir="rtl"] .t-points li::before { left: auto; right: 2px; }

/* Timeline & process flow */
[dir="rtl"] .process-timeline::before { left: auto; right: 19px; }
[dir="rtl"] .pc-step:not(:last-child)::after { right: auto; left: -22px; transform: translateY(-10px) scaleX(-1); }

/* Dropdown menus open from the right */
[dir="rtl"] .submenu { left: auto; right: 0; }

/* Split hero panel : keep copy aligned to the reading side */
[dir="rtl"] .ctn-panel-inner {
    padding-left: 56px;
    padding-right: max(32px, calc((100vw - var(--container, 1240px)) / 2));
}
[dir="rtl"] .ctn-hero--split .ctn-hero-title { text-align: right; }

/* Misc text blocks that were hard-set to left */
[dir="rtl"] .testi-slide-quote,
[dir="rtl"] .cta-visit-phone,
[dir="rtl"] .ctf-content,
[dir="rtl"] .vie-feature-text { text-align: right; }

/* Dark stats band : orange accent on the right */
[dir="rtl"] .ct-stat {
    text-align: right;
    border-left: 0;
    border-right: 2px solid var(--orange);
    padding-left: 0;
    padding-right: 20px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .hero-grid,
    .section-head,
    .foot-grid,
    .stats-grid,
    .steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .menu { display: none; }
    .hero { padding: 48px 0 64px; }
    .hero-video { padding: 100px 0 80px; min-height: 600px; }
    .hero-video .hero-badge { right: 16px; bottom: 16px; }
    .hero-video .hero-badge strong { font-size: 22px; }
    .hero-video .hero-badge span { font-size: 10px; }
    .section, .testimonial, .cta-final { padding: 64px 0; }
    .filiere { grid-template-columns: 40px 1fr 40px; }
    .filiere .f-desc { display: none; }
    .brand-sub { display: none; }
    .foot-bottom { justify-content: flex-start; }
    .faq-item summary { grid-template-columns: 40px 1fr 32px; gap: 16px; padding: 22px 0; }
    .faq-icon { width: 32px; height: 32px; }
    .faq-answer { padding: 0 0 24px 56px; font-size: 16px; }
    [dir="rtl"] .faq-answer { padding: 0 56px 24px 0; }

    .inscription-grid { grid-template-columns: 1fr; gap: 32px; }
    .inscription-side { position: static; padding: 24px; }
    .form-row-2 { grid-template-columns: 1fr; gap: 16px; }
    .header-aside .btn-pill { display: none; }

    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-points { grid-template-columns: 1fr 1fr; }
    .about-media { order: -1; }

    .city-section { padding: 64px 0; }
    .city-section + .city-section { padding-top: 0; }
    .city-grid { grid-template-columns: 1fr; gap: 32px; }
    .city-reverse .city-media,
    .city-media { order: -1; }
    .city-reverse .city-text { order: 0; }

    .chalkboard { min-height: 540px; padding: 56px 0 48px; }
    .chalk-head { margin-bottom: 32px; }
    .chalk-stage { min-height: 340px; }
    .testi-chalk-quote { font-size: 22px; }
    .testi-slide-grid { grid-template-columns: 1fr; gap: 28px; }
    .testi-slide-quote { text-align: center; }
    .testi-postit { width: 160px; order: -1; }
    .testi-postit .postit-name { font-size: 18px; }
    .testi-postit .postit-photo-fallback { font-size: 48px; }

    .vie-banner { min-height: 360px; }
    .vie-banner-content { padding: 40px 0; }
    .exam-facts { grid-template-columns: 1fr 1fr; gap: 24px; }
    .exam-cred-card { flex-direction: column; text-align: center; gap: 20px; padding: 24px; }
    .exam-cred-card { border-left: none; border-top: 3px solid var(--orange); }
    .exam-compare-grid { grid-template-columns: 1fr; gap: 20px; }
    .exam-card { padding: 28px 22px 24px; }
    .exam-card h3 { font-size: 26px; }
    .exam-mod-grid { grid-template-columns: 1fr; gap: 20px; }
    .exam-mod-card { padding: 24px; }
    .exam-levels { position: static; }
    .exam-compare { flex-direction: column; align-items: flex-start; }
    .exam-gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
    .vie-bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 12px; }
    .vie-tile.vie-big { grid-column: span 2; grid-row: span 2; }
    .vie-tile.vie-wide { grid-column: span 2; }
    .lightbox-nav { width: 44px; height: 44px; font-size: 28px; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .partners-section { padding: 56px 0 72px; }
    .partners-head { grid-template-columns: 1fr; gap: 16px; }
    .partner-logo { height: 48px; width: 130px; margin-right: 56px; }

    .filiere-card-head { grid-template-columns: 64px 1fr; gap: 20px; }
    .f-num-big { font-size: 40px; }
    .filiere-card-body { grid-template-columns: 1fr; gap: 24px; padding-left: 0; }
    .filiere-card-note { margin-left: 0; }

    .process-grid { grid-template-columns: 1fr; gap: 32px; }
    .process-aside { position: static; }

    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .contact-info { position: static; padding: 24px; }
    .success-card-inline { padding: 32px 24px; }
}

@media (max-width: 560px) {
    :root { --gutter: 20px; }
    .stat strong { font-size: 36px; }
    .hero-badge {
        top: auto; bottom: 16px;
        right: 16px; left: auto;
    }
    .success-card { padding: 40px 20px; }
    .inscription-form fieldset legend { font-size: 12px; letter-spacing: 2px; }
    .cta-final .cta-row { flex-direction: column; align-items: stretch; }
    .cta-final .cta-row .btn { justify-content: center; }
    .cta-final { padding-bottom: 0; }
    .cta-final-grid { grid-template-columns: 1fr; gap: 24px; }
    .cta-final-media { order: 2; margin-bottom: 0; }
    .cta-final-content { padding-bottom: 0; }
    .cta-final-cap { max-height: 320px; }
    .cta-final-phones { gap: 10px; }
    .cta-final-phone { min-width: 0; flex: 1 1 100%; }
}
