/* =========================================================
   CILA CHALLENGE — Feuille de style principale
   Site public
   ========================================================= */

/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    --ink-900: #0f1730;
    --ink-800: #1a2340;
    --ink-700: #303b5b;
    --ink-600: #4b5573;
    --ink-500: #66708d;
    --ink-400: #7a839c;
    --ink-300: #b8bfd0;
    --ink-200: #d7dbe8;
    --ink-100: #eef0f7;
    --ink-50: #f7f8fc;

    --white: #ffffff;

    --blue-900: #180d46;
    --blue-800: #21105d;
    --blue-700: #271570;
    --blue-600: #3d2494;
    --blue-500: #5a3dc2;
    --blue-400: #8163d3;
    --blue-300: #a895e3;
    --blue-200: #c7bcef;
    --blue-100: #ece7fb;

    --orange-700: #c25900;
    --orange-600: #ed6f00;
    --orange-500: #f5893a;
    --orange-100: #fdece0;

    --green-700: #0d7a4f;
    --green-600: #0f9d63;
    --green-500: #17b571;
    --green-100: #e0f8ec;

    --amber-600: #b8790a;
    --amber-500: #dd9c14;
    --amber-100: #fbf0d9;

    --rose-600: #c23a5a;
    --rose-100: #fbe4ea;

    --cream: #ebc9a0;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-pill: 999px;

    --shadow-sm:
        0 1px 2px rgba(15, 23, 48, .06),
        0 1px 1px rgba(15, 23, 48, .04);

    --shadow-md:
        0 8px 24px rgba(15, 23, 48, .08);

    --shadow-lg:
        0 20px 45px rgba(15, 23, 48, .14);

    --font-display:
        "Sora",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;

    --font-body:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;

    --container: 1180px;
}


/* =========================================================
   RESET / BASE
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;

    font-family: var(--font-body);
    color: var(--ink-800);
    background: var(--white);

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    line-height: 1.55;

    overflow-x: hidden;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

img {
    display: block;
}

svg {
    width: 1em;
    height: 1em;
    vertical-align: -.15em;
    flex: none;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 .5em;

    font-family: var(--font-display);
    color: var(--ink-900);
    line-height: 1.15;
}

h1 {
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -.02em;
}

h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -.01em;
}

h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

h4 {
    font-size: 1.05rem;
    font-weight: 700;
}

p {
    margin: 0 0 1em;
    color: var(--ink-600);
}

strong {
    color: var(--ink-900);
}

.lead {
    font-size: 1.15rem;
    color: var(--ink-600);
}


/* =========================================================
   LAYOUT
   ========================================================= */

.container {
    width: 100%;
    max-width: var(--container);

    margin-left: auto;
    margin-right: auto;

    padding-left: 24px;
    padding-right: 24px;
}

.section {
    width: 100%;
    padding: 76px 0;
}

.section--tight {
    padding: 48px 0;
}

.section--alt {
    background: var(--ink-50);
}

.section--dark {
    background:
        radial-gradient(
            120% 160% at 10% 0%,
            var(--blue-700) 0%,
            var(--blue-900) 55%,
            #0e0834 100%
        );

    color: var(--white);
}

.section--dark h2,
.section--dark h3,
.section--dark p {
    color: var(--white);
}

.section--dark .eyebrow {
    color: var(--green-100);
}

.section-head {
    width: 100%;
    max-width: 680px;
    margin-bottom: 44px;
}

.section-head.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}


/* =========================================================
   EYEBROW
   ========================================================= */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 14px;

    font-family: var(--font-display);
    font-weight: 700;
    font-size: .78rem;

    letter-spacing: .14em;
    text-transform: uppercase;

    color: var(--blue-600);
}

.eyebrow::before {
    content: "";

    width: 22px;
    height: 2px;

    flex: none;

    background: currentColor;
    border-radius: 2px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 46px;

    padding: 13px 24px;

    border: 2px solid transparent;
    border-radius: var(--radius-pill);

    font-family: var(--font-display);
    font-weight: 700;
    font-size: .95rem;

    line-height: 1.2;

    white-space: nowrap;

    cursor: pointer;

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        background .15s ease,
        border-color .15s ease,
        color .15s ease;
}

.btn svg {
    width: 16px;
    height: 16px;
}

.btn-primary {
    color: var(--white);
    background: var(--orange-600);

    box-shadow:
        0 10px 24px rgba(237, 111, 0, .32);
}

.btn-primary:hover {
    background: var(--orange-700);
    transform: translateY(-1px);
}

.btn-secondary {
    color: var(--blue-700);
    background: var(--white);
    border-color: var(--ink-200);
}

.btn-secondary:hover {
    color: var(--blue-700);
    border-color: var(--blue-500);
}

.btn-outline-light {
    color: var(--white);
    background: transparent;
    border-color: rgba(255, 255, 255, .4);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, .08);
    border-color: var(--white);
}

.btn-ghost {
    padding: 10px 6px;
    color: var(--blue-600);
    background: transparent;
}

.btn-ghost:hover {
    color: var(--blue-700);
}

.btn-danger {
    color: var(--rose-600);
    background: var(--white);
    border-color: var(--rose-100);
}

.btn-danger:hover {
    background: var(--rose-100);
    border-color: var(--rose-600);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 9px 16px;
    font-size: .85rem;
}

.btn-demo {
    padding: 10px 16px;
    color: var(--white);
    background: var(--ink-900);
}

.btn-demo:hover {
    background: var(--blue-900);
    transform: translateY(-1px);
}

.btn[disabled],
.btn.is-disabled {
    opacity: .55;
    pointer-events: none;
}


/* =========================================================
   BADGES
   ========================================================= */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 5px 12px;

    border-radius: var(--radius-pill);

    font-family: var(--font-display);
    font-weight: 700;
    font-size: .72rem;

    letter-spacing: .04em;
    text-transform: uppercase;

    background: var(--ink-100);
    color: var(--ink-600);
}

.badge-dot::before {
    content: "";

    width: 7px;
    height: 7px;

    border-radius: 50%;
    background: currentColor;
}

.badge-green {
    background: var(--green-100);
    color: var(--green-700);
}

.badge-blue {
    background: var(--blue-100);
    color: var(--blue-700);
}

.badge-amber {
    background: var(--amber-100);
    color: var(--amber-600);
}

.badge-rose {
    background: var(--rose-100);
    color: var(--rose-600);
}

.badge-orange {
    background: var(--orange-100);
    color: var(--orange-700);
}

.badge-ink {
    background: var(--ink-800);
    color: var(--white);
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    width: 100%;
    max-width: 100%;

    background: rgba(255, 255, 255, .94);

    backdrop-filter: blur(10px);

    border-bottom: 1px solid var(--ink-100);
}

.header-bar {
    display: flex;
    align-items: center;

    width: 100%;
    min-width: 0;

    gap: 18px;

    padding-top: 14px;
    padding-bottom: 14px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;

    min-width: 0;

    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.28rem;

    color: var(--ink-900);
}

.logo-mark {
    width: 40px;
    height: 40px;

    min-width: 40px;
    flex: 0 0 40px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    min-width: 0;
}

.logo-text .brand-c {
    color: var(--orange-600);
}

.logo-text .brand-ila {
    color: var(--blue-400);
}

.logo-text small {
    display: block;

    font-family: var(--font-body);
    font-weight: 600;
    font-size: .62rem;

    letter-spacing: .14em;
    text-transform: uppercase;

    color: var(--ink-400);
}

.main-nav {
    display: flex;
    align-items: center;

    gap: 2px;

    margin-left: 8px;

    flex: 1;
    min-width: 0;
}

.main-nav > li {
    position: relative;
}

.main-nav > li > a,
.nav-parent {
    display: flex;
    align-items: center;
    gap: 5px;

    padding: 12px 10px;

    border-radius: var(--radius-sm);

    font-weight: 600;
    font-size: .92rem;

    color: var(--ink-700);

    cursor: pointer;
}

.main-nav > li > a:hover,
.nav-parent:hover,
.main-nav > li.is-open .nav-parent {
    background: var(--ink-50);
    color: var(--blue-700);
}

.main-nav > li.active > a {
    color: var(--blue-700);
}

.nav-parent svg {
    width: 13px;
    height: 13px;

    transition: transform .15s ease;
}

.main-nav > li.is-open .nav-parent svg {
    transform: rotate(180deg);
}

.dropdown {
    position: absolute;

    top: calc(100% + 6px);
    left: 0;

    min-width: 230px;

    padding: 8px;

    background: var(--white);

    border: 1px solid var(--ink-100);
    border-radius: var(--radius-md);

    box-shadow: var(--shadow-lg);

    opacity: 0;
    visibility: hidden;

    transform: translateY(6px);

    transition: .15s ease;
}

.main-nav > li.is-open .dropdown,
.has-dropdown.is-open .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;

    padding: 10px 12px;

    border-radius: var(--radius-sm);

    font-size: .9rem;
    font-weight: 600;

    color: var(--ink-700);
}

.dropdown a:hover {
    background: var(--blue-100);
    color: var(--blue-700);
}

.dropdown .dd-note {
    padding: 6px 12px;

    font-size: .72rem;
    font-weight: 700;

    letter-spacing: .08em;
    text-transform: uppercase;

    color: var(--ink-400);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;

    flex: 0 0 auto;
}

.header-actions .dropdown {
    right: 0;
    left: auto;
}

.header-actions .btn {
    padding: 11px 18px;
    font-size: .88rem;
}

.menu-toggle {
    display: none;

    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    padding: 9px;

    background: var(--white);
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-sm);

    cursor: pointer;
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;

    width: 100%;
    max-width: 100%;

    overflow: hidden;

    padding: 96px 0 110px;

    color: var(--white);

    background:
        radial-gradient(
            130% 140% at 15% -10%,
            var(--blue-700) 0%,
            var(--blue-900) 55%,
            #0c0730 100%
        );
}

.hero::before {
    content: "";

    position: absolute;
    inset: 0;

    opacity: .55;

    pointer-events: none;

    background:
        radial-gradient(
            500px 260px at 88% 8%,
            rgba(237, 111, 0, .32),
            transparent 70%
        ),
        radial-gradient(
            420px 300px at 100% 90%,
            rgba(129, 99, 211, .4),
            transparent 70%
        );
}

.hero-grid {
    position: relative;

    display: grid;

    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);

    gap: 56px;

    align-items: center;

    width: 100%;
    max-width: 100%;
}

.hero h1 {
    color: var(--white);
}

.hero .lead {
    max-width: 520px;

    font-size: 1.15rem;

    color: rgba(255, 255, 255, .82);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 30px;
}

.hero-top-cta {
    margin-top: 0;
    margin-bottom: 26px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;

    gap: 28px;

    margin-top: 46px;
}

.hero-stats div b {
    display: block;

    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 800;

    color: var(--white);
}

.hero-stats div span {
    font-size: .8rem;
    color: rgba(255, 255, 255, .65);
}

.hero-art {
    position: relative;

    width: 100%;
    height: 420px;
}


/* =========================================================
   FLOATING CARDS
   ========================================================= */

.float-card {
    position: absolute;

    width: 230px;

    padding: 18px 20px;

    background: var(--white);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-lg);

    color: var(--ink-800);
}

.float-card .fc-top {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 10px;
}

.float-card .fc-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: none;

    border-radius: 10px;
}

.float-card .fc-icon svg {
    width: 18px;
    height: 18px;
}

.float-card h4 {
    margin: 0;
    font-size: .92rem;
}

.float-card p {
    margin: 0;

    font-size: .8rem;

    color: var(--ink-500);
}


/* =========================================================
   GRIDS / CARDS
   ========================================================= */

.grid {
    display: grid;

    gap: 24px;

    min-width: 0;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
    min-width: 0;

    padding: 26px;

    background: var(--white);

    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);

    transition:
        box-shadow .18s ease,
        transform .18s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 16px;

    border-radius: 13px;
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

.icon-blue {
    background: var(--blue-100);
    color: var(--blue-700);
}

.icon-green {
    background: var(--green-100);
    color: var(--green-700);
}

.icon-amber {
    background: var(--amber-100);
    color: var(--amber-600);
}

.icon-rose {
    background: var(--rose-100);
    color: var(--rose-600);
}

.icon-orange {
    background: var(--orange-100);
    color: var(--orange-700);
}

.cause-shield {
    width: 48px;
    height: 48px;

    object-fit: contain;

    display: block;

    flex-shrink: 0;

    margin-bottom: 16px;
}

.cause-group-head .cause-shield,
.panel-head .cause-shield {
    margin-bottom: 0;
}


/* =========================================================
   STEPS
   ========================================================= */

.step-card {
    position: relative;

    padding-left: 64px;
}

.step-num {
    position: absolute;

    left: 0;
    top: 0;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--blue-900);
    color: var(--white);

    font-family: var(--font-display);
    font-weight: 800;
}


/* =========================================================
   STAT STRIP
   ========================================================= */

.stat-strip {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 1px;

    overflow: hidden;

    background: var(--ink-100);

    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);
}

.stat-strip > div {
    min-width: 0;

    padding: 28px 22px;

    text-align: center;

    background: var(--white);
}

.stat-strip b {
    display: block;

    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;

    color: var(--blue-700);
}

.stat-strip span {
    font-size: .82rem;
    color: var(--ink-500);
}


/* =========================================================
   TIMELINE
   ========================================================= */

.timeline {
    position: relative;

    padding-left: 34px;

    border-left: 3px solid var(--ink-100);
}

.timeline-item {
    position: relative;

    padding-bottom: 32px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: "";

    position: absolute;

    left: -42px;
    top: 2px;

    width: 16px;
    height: 16px;

    border-radius: 50%;

    background: var(--orange-600);

    border: 4px solid var(--orange-100);
}


/* =========================================================
   TABLES
   ========================================================= */

.table-wrap {
    width: 100%;
    max-width: 100%;

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;

    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);
}

table {
    width: 100%;
    min-width: 640px;

    border-collapse: collapse;
}

th,
td {
    padding: 14px 18px;

    text-align: left;

    font-size: .92rem;

    border-bottom: 1px solid var(--ink-100);
}

th {
    background: var(--ink-50);

    font-family: var(--font-display);
    font-size: .76rem;
    font-weight: 700;

    letter-spacing: .06em;
    text-transform: uppercase;

    color: var(--ink-500);
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: var(--ink-50);
}

.rank-cell {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--blue-700);
}

.rank-1 {
    color: var(--amber-600);
}


/* =========================================================
   FORMS
   ========================================================= */

.form-card {
    width: 100%;
    max-width: 100%;

    padding: 34px;

    background: var(--white);

    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-md);
}

.field {
    min-width: 0;

    margin-bottom: 18px;
}

.field label {
    display: block;

    margin-bottom: 7px;

    font-weight: 700;
    font-size: .86rem;

    color: var(--ink-800);
}

.field .hint {
    margin-top: 5px;

    font-size: .78rem;

    color: var(--ink-400);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    max-width: 100%;

    padding: 12px 14px;

    border: 1.5px solid var(--ink-200);
    border-radius: var(--radius-sm);

    font-family: var(--font-body);
    font-size: .94rem;

    color: var(--ink-800);
    background: var(--white);
}

.field textarea {
    min-height: 120px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;

    border-color: var(--blue-500);

    box-shadow:
        0 0 0 4px var(--blue-100);
}

.field-row {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 16px;
}

.field-row-3 {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr)
        minmax(0, .7fr);

    gap: 16px;
}

.lycee-search {
    margin-bottom: 18px;
    padding: 16px 18px 2px;

    background: var(--ink-50);

    border: 1px solid var(--ink-100);
    border-radius: var(--radius-md);
}

.checkbox-row {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    font-size: .86rem;

    color: var(--ink-600);
}

.checkbox-row input {
    width: auto;
    margin-top: 3px;
}

.form-note {
    padding: 12px 14px;

    background: var(--amber-100);
    color: var(--amber-600);

    border-radius: var(--radius-sm);

    font-size: .84rem;
    font-weight: 600;
}

.antibot-field {
    position: absolute;

    left: -9999px;
    top: auto;

    width: 1px;
    height: 1px;

    overflow: hidden;
}

.antibot-check {
    padding: 12px 14px;

    background: var(--ink-50);

    border: 1px solid var(--ink-100);
    border-radius: var(--radius-sm);
}

.demo-code-hint {
    margin-bottom: 18px;
    padding: 12px 14px;

    background: var(--amber-100);
    color: var(--amber-600);

    border-radius: var(--radius-sm);

    font-size: .84rem;
    line-height: 1.5;
}

.demo-code-hint strong {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: .08em;

    color: var(--ink-900);
}


/* =========================================================
   DEMO BANNER
   ========================================================= */

.demo-banner {
    padding: 10px 16px;

    text-align: center;

    background: var(--ink-900);
    color: var(--white);

    font-size: .85rem;
    font-weight: 600;
}

.demo-banner strong {
    color: var(--amber-500);
}

.demo-banner a {
    color: var(--white);
    text-decoration: underline;
}


/* =========================================================
   TABS
   ========================================================= */

.tabs {
    display: flex;

    gap: 4px;

    margin-bottom: 24px;

    border-bottom: 1px solid var(--ink-100);

    flex-wrap: wrap;
}

.tabs a {
    padding: 12px 18px;

    border-bottom: 2px solid transparent;

    font-family: var(--font-display);
    font-weight: 700;
    font-size: .92rem;

    color: var(--ink-500);
}

.tabs a:hover {
    color: var(--blue-600);
}

.tabs a.active {
    color: var(--blue-600);
    border-color: var(--orange-600);
}


/* =========================================================
   FAQ / ACCORDION
   ========================================================= */

.accordion-item {
    margin-bottom: 12px;

    overflow: hidden;

    border: 1px solid var(--ink-100);
    border-radius: var(--radius-md);
}

.accordion-q {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    padding: 18px 22px;

    cursor: pointer;

    font-family: var(--font-display);
    font-weight: 700;

    color: var(--ink-900);
}

.accordion-q svg {
    width: 18px;
    height: 18px;

    flex: none;

    color: var(--blue-600);

    transition: transform .2s ease;
}

.accordion-item.is-open .accordion-q svg {
    transform: rotate(45deg);
}

.accordion-a {
    max-height: 0;

    overflow: hidden;

    transition: max-height .25s ease;
}

.accordion-a-inner {
    padding: 0 22px 20px;

    font-size: .94rem;

    color: var(--ink-600);
}


/* =========================================================
   ASSOCIATIONS / CAUSES
   ========================================================= */

.cause-group {
    margin-bottom: 36px;
}

.cause-group-head {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 16px;
}

.cause-group-head .card-icon {
    margin: 0;
}

.assoc-card {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.assoc-avatar {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    font-family: var(--font-display);
    font-weight: 800;
    font-size: .95rem;

    color: var(--white);
}


/* =========================================================
   CHIPS
   ========================================================= */

.chip-row {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;
}

.chip {
    padding: 9px 16px;

    border: 1.5px solid var(--ink-200);
    border-radius: var(--radius-pill);

    background: var(--white);

    font-weight: 700;
    font-size: .84rem;

    color: var(--ink-600);

    cursor: pointer;
}

.chip.is-active,
.chip:hover {
    border-color: var(--blue-500);

    background: var(--blue-100);

    color: var(--blue-700);
}


/* =========================================================
   MAP
   ========================================================= */

.map-shell {
    overflow: hidden;

    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);
}

#lycees-map {
    width: 100%;
    height: 460px;

    background: var(--ink-50);
}

.leaflet-popup-content-wrapper {
    border-radius: 12px;
}


/* =========================================================
   TESTIMONIALS
   ========================================================= */

.testimonial {
    padding: 26px;

    background: var(--white);

    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);
}

.testimonial .quote-mark {
    display: block;

    margin-bottom: 6px;

    font-family: var(--font-display);
    font-size: 2.6rem;

    line-height: 1;

    color: var(--blue-200);
}

.avatar-circle {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--blue-600);
    color: var(--white);

    font-family: var(--font-display);
    font-weight: 800;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    width: 100%;

    padding: 64px 0 0;

    background: var(--ink-900);

    color: rgba(255, 255, 255, .72);
}

.footer-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.4fr)
        repeat(4, minmax(0, 1fr));

    gap: 32px;

    padding-bottom: 48px;

    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-grid h4 {
    margin-bottom: 16px;

    color: var(--white);

    font-size: .82rem;

    letter-spacing: .06em;
    text-transform: uppercase;
}

.footer-grid a,
.footer-grid li {
    margin-bottom: 10px;

    font-size: .88rem;

    color: rgba(255, 255, 255, .65);
}

.footer-grid a:hover {
    color: var(--white);
}

.footer-logo {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 14px;

    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;

    color: var(--white);
}

.footer-social {
    display: flex;

    gap: 10px;

    margin-top: 18px;
}

.footer-social a {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;

    border-radius: 50%;

    background: rgba(255, 255, 255, .08);
}

.footer-social svg {
    width: 17px;
    height: 17px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    padding: 22px 0;

    font-size: .78rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, .55);
}

.footer-bottom a:hover {
    color: var(--white);
}


/* =========================================================
   UTILITIES
   ========================================================= */

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

.text-center {
    text-align: center;
}

.flex {
    display: flex;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gap-8 {
    gap: 8px;
}

.gap-12 {
    gap: 12px;
}

.gap-16 {
    gap: 16px;
}

.muted {
    color: var(--ink-400);
}

.divider {
    height: 1px;

    margin: 32px 0;

    border: none;

    background: var(--ink-100);
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.progress {
    height: 8px;

    overflow: hidden;

    border-radius: 99px;

    background: var(--ink-100);
}

.progress > span {
    display: block;

    height: 100%;

    background:
        linear-gradient(
            90deg,
            var(--blue-600),
            var(--orange-600)
        );
}

.skip-link {
    position: absolute;

    left: -999px;
    top: 0;

    z-index: 200;

    padding: 10px 16px;

    background: var(--white);

    border-radius: 8px;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
}


/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

.mobile-nav {
    position: fixed;

    inset: 0;

    z-index: 200;

    display: none;

    background: rgba(15, 23, 48, .5);
}

.mobile-nav.is-open {
    display: block;
}

.mobile-nav-panel {
    position: absolute;

    top: 0;
    right: 0;
    bottom: 0;

    width: min(340px, 88vw);

    padding: 20px;

    overflow-y: auto;

    background: var(--white);

    box-shadow: var(--shadow-lg);
}

.mobile-nav-panel a {
    display: block;

    padding: 13px 6px;

    border-bottom: 1px solid var(--ink-100);

    font-weight: 700;

    color: var(--ink-800);
}

.mobile-nav-close {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    margin-left: auto;

    padding: 8px;

    background: transparent;

    border: none;

    cursor: pointer;
}

.mobile-nav-close svg {
    width: 22px;
    height: 22px;
}

.mobile-nav-cta {
    display: flex;
    flex-direction: column;

    gap: 10px;

    margin-top: 20px;
}

.mobile-nav-cta .btn {
    width: 100%;
}

.mobile-sub {
    padding-left: 14px;
}

.mobile-sub a {
    padding: 9px 6px;

    border-bottom: none;

    font-size: .9rem;
    font-weight: 600;

    color: var(--ink-600);
}


/* =========================================================
   LARGE TABLET / PETITE DESKTOP
   ========================================================= */

@media (max-width: 1180px) {

    .container {
        max-width: 100%;
    }

    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .header-actions .btn-secondary {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-art {
        display: none;
    }

    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   TABLETTE
   ========================================================= */

@media (max-width: 768px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        overflow-x: hidden;
    }

    .container {
        width: 100%;
        max-width: 100%;

        padding-left: 20px;
        padding-right: 20px;
    }

    /* HEADER */

    .site-header {
        width: 100%;
        max-width: 100%;
    }

    .header-bar {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        padding: 12px 20px;

        gap: 12px;
    }

    .logo {
        flex: 1 1 auto;

        min-width: 0;

        font-size: 1.1rem;
    }

    .logo-mark {
        width: 42px;
        height: 42px;

        min-width: 42px;
        flex-basis: 42px;
    }

    .logo-text {
        min-width: 0;
    }

    .logo-text small {
        font-size: .55rem;
        line-height: 1.3;
    }

    .header-actions {
        flex: 0 0 auto;

        margin-left: auto;
    }

    .header-actions .btn {
        display: none !important;
    }

    .menu-toggle {
        display: flex !important;

        width: 46px;
        height: 46px;

        min-width: 46px;
        flex: 0 0 46px;

        padding: 8px;
    }

    /* HERO */

    .hero {
        width: 100%;
        max-width: 100%;

        padding: 64px 0 70px;
    }

    .hero-grid {
        display: block;

        width: 100%;
        max-width: 100%;
    }

    .hero h1 {
        font-size: clamp(2.1rem, 7vw, 3rem);
    }

    .hero .lead {
        width: 100%;
        max-width: 100%;

        font-size: 1.05rem;
    }

    .hero-top-cta {
        width: 100%;

        display: flex;
        flex-direction: column;

        gap: 12px;
    }

    .hero-top-cta .btn {
        width: 100%;
        max-width: 100%;
    }

    .hero-cta {
        width: 100%;

        display: flex;
        flex-direction: column;

        gap: 12px;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 100%;
    }

    /* GRILLES */

    .grid-3,
    .grid-4 {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    /* FORMS */

    .field-row,
    .field-row-3 {
        grid-template-columns: 1fr;
    }

    /* TABLES */

    .table-wrap {
        width: 100%;
        max-width: 100%;

        overflow-x: auto;
    }

    /* FOOTER */

    .footer-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   SMARTPHONE
   ========================================================= */

@media (max-width: 600px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        overflow-x: hidden;
    }

    .container {
        width: 100%;
        max-width: 100%;

        margin-left: 0;
        margin-right: 0;

        padding-left: 16px;
        padding-right: 16px;
    }

    /* =====================================================
       HEADER MOBILE
       ===================================================== */

    .site-header {
        width: 100%;
        max-width: 100%;
    }

    .header-bar {
        width: 100%;
        max-width: 100%;

        padding: 10px 16px;

        gap: 8px;
    }

    .logo {
        display: flex;

        flex: 1 1 auto;

        min-width: 0;

        gap: 8px;

        font-size: 1rem;
    }

    .logo-mark {
        width: 38px;
        height: 38px;

        min-width: 38px;
        flex: 0 0 38px;
    }

    .logo-text {
        min-width: 0;

        overflow: hidden;
    }

    .logo-text small {
        font-size: .48rem;

        letter-spacing: .1em;

        line-height: 1.25;
    }

    .header-actions {
        display: flex;

        flex: 0 0 auto;

        margin-left: auto;
    }

    .header-actions .btn {
        display: none !important;
    }

    .menu-toggle {
        display: flex !important;

        align-items: center;
        justify-content: center;

        width: 44px;
        height: 44px;

        min-width: 44px;
        flex: 0 0 44px;

        padding: 8px;
    }

    .menu-toggle svg {
        width: 24px;
        height: 24px;
    }


    /* =====================================================
       HERO MOBILE
       ===================================================== */

    .hero {
        position: relative;

        width: 100%;
        max-width: 100%;

        padding: 46px 0 56px;

        overflow: hidden;
    }

    .hero-grid {
        display: block;

        width: 100%;
        max-width: 100%;

        margin: 0;
    }

    .hero-art {
        display: none !important;
    }

    .hero h1 {
        width: 100%;
        max-width: 100%;

        font-size: clamp(2rem, 10vw, 2.7rem);

        line-height: 1.06;

        overflow-wrap: normal;
        word-break: normal;
    }

    .hero .lead {
        width: 100%;
        max-width: 100%;

        font-size: 1rem;

        line-height: 1.55;
    }

    .hero-top-cta {
        width: 100%;
        max-width: 100%;

        display: flex;
        flex-direction: column;

        gap: 10px;

        margin-bottom: 28px;
    }

    .hero-top-cta .btn {
        width: 100%;
        max-width: 100%;

        white-space: normal;
    }

    .hero-cta {
        width: 100%;
        max-width: 100%;

        display: flex;
        flex-direction: column;

        gap: 10px;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 100%;

        white-space: normal;
    }

    .hero-stats {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 16px;

        width: 100%;
    }


    /* =====================================================
       SECTIONS
       ===================================================== */

    .section {
        width: 100%;

        padding: 50px 0;
    }

    .section--tight {
        padding: 36px 0;
    }

    .section-head {
        width: 100%;
        max-width: 100%;

        margin-bottom: 30px;
    }


    /* =====================================================
       GRILLES MOBILE
       ===================================================== */

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr !important;

        width: 100%;
        max-width: 100%;
    }


    /* =====================================================
       CARTES MOBILE
       ===================================================== */

    .card {
        width: 100%;
        max-width: 100%;

        padding: 22px;
    }

    .form-card {
        width: 100%;
        max-width: 100%;

        padding: 22px;
    }


    /* =====================================================
       STAT STRIP
       ===================================================== */

    .stat-strip {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        width: 100%;
    }

    .stat-strip > div {
        padding: 22px 14px;
    }

    .stat-strip b {
        font-size: 1.6rem;
    }


    /* =====================================================
       TABLES
       ===================================================== */

    .table-wrap {
        width: 100%;
        max-width: 100%;

        overflow-x: auto;

        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 620px;
    }


    /* =====================================================
       TABS
       ===================================================== */

    .tabs {
        width: 100%;
        max-width: 100%;

        flex-wrap: nowrap;

        overflow-x: auto;

        -webkit-overflow-scrolling: touch;

        scrollbar-width: thin;
    }

    .tabs a {
        flex: 0 0 auto;

        white-space: nowrap;
    }


    /* =====================================================
       FORMULAIRES
       ===================================================== */

    .field-row,
    .field-row-3 {
        grid-template-columns: 1fr !important;

        width: 100%;
    }

    .field input,
    .field select,
    .field textarea {
        max-width: 100%;

        font-size: 16px;
    }


    /* =====================================================
       MAP
       ===================================================== */

    #lycees-map {
        width: 100%;
        height: 360px;
    }


    /* =====================================================
       FOOTER
       ===================================================== */

    .footer-grid {
        grid-template-columns: 1fr !important;
    }

    .footer-bottom {
        flex-direction: column;

        align-items: flex-start;
    }


    /* =====================================================
       STEP CARDS
       ===================================================== */

    .step-card {
        padding-left: 56px;
    }


    /* =====================================================
       TIMELINE
       ===================================================== */

    .timeline {
        padding-left: 26px;
    }

    .timeline-item::before {
        left: -34px;
    }
}


/* =========================================================
   TRÈS PETITS SMARTPHONES
   ========================================================= */

@media (max-width: 380px) {

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .header-bar {
        padding-left: 12px;
        padding-right: 12px;
    }

    .logo {
        gap: 6px;

        font-size: .92rem;
    }

    .logo-mark {
        width: 34px;
        height: 34px;

        min-width: 34px;
        flex-basis: 34px;
    }

    .logo-text small {
        font-size: .43rem;

        letter-spacing: .08em;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;

        min-width: 42px;
        flex-basis: 42px;
    }

    .hero {
        padding-top: 38px;
        padding-bottom: 46px;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .hero .lead {
        font-size: .95rem;
    }

    .card,
    .form-card {
        padding: 18px;
    }

    .btn {
        padding-left: 18px;
        padding-right: 18px;
    }
}


/* =========================================================
   ULTRA SMALL
   ========================================================= */

@media (max-width: 330px) {

    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .header-bar {
        padding-left: 10px;
        padding-right: 10px;
    }

    .logo-mark {
        width: 32px;
        height: 32px;

        min-width: 32px;
        flex-basis: 32px;
    }

    .logo {
        font-size: .86rem;
    }

    .logo-text small {
        display: none;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;

        min-width: 40px;
        flex-basis: 40px;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero .lead {
        font-size: .92rem;
    }
}

/* =========================================================
   MOBILE — SUPPRESSION DU BOUTON CTA DU HEADER
   Le bouton "Inscrire mon lycée" du hero reste visible.
   ========================================================= */

@media (max-width: 768px) {

    .header-actions .btn-primary {
        display: none !important;
    }

}