/* =========================================================
   PROFAYCEL — STYLE GLOBAL
========================================================= */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #eff6ff;
    --dark: #0f172a;
    --dark-2: #1e293b;
    --text: #334155;
    --text-light: #64748b;
    --white: #ffffff;
    --light: #f8fafc;
    --light-2: #f1f5f9;
    --border: #e2e8f0;
    --shadow-sm: 0 4px 15px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --container: 1180px;
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

img {
    max-width: 100%;
    display: block;
}


/* =========================================================
   CONTAINER
========================================================= */

.container {
    width: min(100% - 40px, var(--container));
    margin-inline: auto;
}


/* =========================================================
   HEADER
========================================================= */

.header {
    position: relative;
    z-index: 1000;
    display: flex;
    align-items: center;
    min-height: 78px;
    padding: 0 40px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
}

.header-container {
    width: min(100%, var(--container));
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 30px;
}


/* =========================================================
   LOGO
========================================================= */

.logo {
    display: inline-flex;
    align-items: center;
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.logo span {
    color: var(--primary);
}


/* =========================================================
   NAVIGATION
========================================================= */

.navigation {
    margin-left: auto;
}

.navigation ul {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
}

.navigation li {
    list-style: none;
}

.navigation a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 8px 0;
    color: var(--text-light);
    font-size: 0.93rem;
    font-weight: 600;
    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.navigation a:hover {
    color: var(--primary);
}

.navigation a.active {
    color: var(--primary);
}

.navigation a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 999px;
}


/* Navigation pages without ul */

header:not(:has(.header-container)) .navigation {
    margin-left: auto;
}

header:not(:has(.header-container)) .navigation a {
    margin-left: 24px;
}


/* =========================================================
   HEADER BUTTON
========================================================= */

.header-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    background: var(--dark);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.header-button:hover {
    background: var(--primary);
    transform: translateY(-1px);
}


/* =========================================================
   HEADER ACTIONS
========================================================= */

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 18px;
}

.header-actions .header-button {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.85rem;
}

@media (max-width: 1050px) {
    .header-actions {
        gap: 8px;
        margin-left: 12px;
    }

    .header-actions .header-button {
        padding: 0 12px;
        font-size: 0.82rem;
    }
}

@media (max-width: 800px) {
    .header-actions {
        display: none;
    }
}


/* =========================================================
   BOUTON CONNEXION (ROUGE)
========================================================= */

.header-login-button {
    background: #dc2626 !important;
    color: #ffffff !important;

    padding: 0 20px !important;

    font-weight: 800 !important;

    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.35);

    animation: pulse-login 2s ease-in-out infinite;

    margin-right: 8px;
}

.header-login-button:hover {
    background: #b91c1c !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.45);
}

@keyframes pulse-login {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(220, 38, 38, 0.35);
    }
    50% {
        box-shadow: 0 4px 25px rgba(220, 38, 38, 0.65);
    }
}



/* Bouton Déconnexion */

.header-logout-button {
    background: #475569 !important;
    color: #ffffff !important;

    padding: 0 20px !important;

    font-weight: 800 !important;

    margin-right: 8px;
}

.header-logout-button:hover {
    background: #334155 !important;
    transform: translateY(-1px);
}
/* =========================================================
   MOBILE MENU
========================================================= */

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 9px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: var(--dark);
    border-radius: 999px;
}


/* =========================================================
   BUTTONS
========================================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.18);
}

.button-primary:hover {
    background: var(--primary-dark);
}

.button-secondary {
    background: var(--white);
    color: var(--dark);
    border: 1px solid var(--border);
}

.button-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.button-light {
    background: var(--white);
    color: var(--dark);
}

.button-light:hover {
    background: #eff6ff;
}


/* =========================================================
   GENERAL SECTION
========================================================= */

.section {
    padding: 110px max(40px, 7vw);
}

.section-label {
    margin-bottom: 16px;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}


/* =========================================================
   ACCUEIL — HERO
========================================================= */

.hero {
    padding: 100px 0 110px;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(37, 99, 235, 0.10),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fafc 100%
        );
}

.hero-container {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 70px;
}

.hero-content {
    max-width: 680px;
}

.hero h1 {
    margin-bottom: 25px;
    color: var(--dark);
    font-size: clamp(3.5rem, 7vw, 6rem);
    line-height: 0.95;
    letter-spacing: -0.065em;
}

.hero-content > p:not(.section-label) {
    max-width: 600px;
    margin-bottom: 32px;
    color: var(--text-light);
    font-size: 1.08rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    position: relative;
    width: min(100%, 450px);
    min-height: 450px;
    padding: 45px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border-radius: 30px;
    background:
        linear-gradient(
            135deg,
            #0f172a,
            #1e293b
        );
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.hero-card::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    top: -70px;
    right: -50px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.35);
}

.hero-card::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    top: 100px;
    left: -55px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-card span,
.hero-card strong {
    position: relative;
    z-index: 2;
}

.hero-card span {
    margin-bottom: 14px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.hero-card strong {
    max-width: 320px;
    font-size: 2.6rem;
    line-height: 1.05;
    letter-spacing: -0.04em;
}


/* =========================================================
   ACCUEIL — INTRO
========================================================= */

.home-intro {
    padding: 110px 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 50px;
}

.section-heading h2 {
    margin-bottom: 18px;
    color: var(--dark);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.section-heading > p:not(.section-label) {
    color: var(--text-light);
    font-size: 1rem;
}


/* =========================================================
   ACCUEIL — FEATURES
========================================================= */

.home-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature-card {
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-number {
    display: block;
    margin-bottom: 28px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.feature-card h3 {
    margin-bottom: 10px;
    color: var(--dark);
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-light);
}


/* =========================================================
   ACCUEIL — DOMAINS
========================================================= */

.home-domains {
    padding: 110px 0;
    background: var(--light);
}

.domain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.domain-card {
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.domain-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: var(--shadow-md);
}

.domain-card > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 22px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 800;
}

.domain-card h3 {
    margin-bottom: 8px;
    color: var(--dark);
}

.domain-card p {
    color: var(--text-light);
}


/* =========================================================
   ACCUEIL — CTA
========================================================= */

.home-cta {
    padding: 90px 0;
}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 50px;
    border-radius: 24px;
    background: var(--dark);
    color: var(--white);
}

.cta-box .section-label {
    color: #93c5fd;
}

.cta-box h2 {
    margin-bottom: 12px;
    font-size: 2.4rem;
    letter-spacing: -0.04em;
}

.cta-box p:not(.section-label) {
    max-width: 600px;
    color: #cbd5e1;
}


/* =========================================================
   ABOUT
========================================================= */

.page-hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    padding: 100px 7vw;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 82% 25%,
            rgba(37, 99, 235, 0.16),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #f8fafc 0%,
            #ffffff 60%,
            #eff6ff 100%
        );
    border-bottom: 1px solid var(--border);
}

.page-hero::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -170px;
    bottom: -220px;
    border-radius: 50%;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.page-hero::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: 18%;
    top: 16%;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.page-hero-content {
    position: relative;
    z-index: 2;
    width: min(100%, 1180px);
    margin-inline: auto;
}

.eyebrow {
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.page-hero h1 {
    max-width: 850px;
    margin-bottom: 28px;
    color: var(--dark);
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 0.95;
    letter-spacing: -0.065em;
}

.page-hero h1 span {
    color: var(--primary);
}

.page-hero p {
    max-width: 620px;
    color: var(--text-light);
    font-size: 1.15rem;
    line-height: 1.8;
}

.about-intro {
    background: var(--white);
}

.about-intro > .section-label {
    max-width: 1180px;
    margin-inline: auto;
}

.about-intro-grid {
    width: min(100%, 1180px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    padding-top: 10px;
}

.about-intro-grid h2 {
    max-width: 600px;
    color: var(--dark);
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.about-intro-grid > div:last-child {
    padding-top: 8px;
}

.about-intro-grid p {
    margin-bottom: 24px;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.9;
}

.profile-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 650px;
}

.profile-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px max(40px, 7vw);
    background: var(--dark);
    color: var(--white);
}

.profile-content .section-label {
    color: #93c5fd;
}

.profile-content h2 {
    margin-bottom: 28px;
    color: var(--white);
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.profile-content h2 span {
    color: #60a5fa;
}

.profile-content > p {
    max-width: 600px;
    margin-bottom: 20px;
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.8;
}

.profile-signature {
    display: flex;
    flex-direction: column;
    margin-top: 28px;
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 700;
}

.profile-signature span {
    margin-top: 4px;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 500;
}

.profile-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at center,
            rgba(37, 99, 235, 0.13),
            transparent 42%
        ),
        #f8fafc;
}

.profile-visual::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(37, 99, 235, 0.10);
    border-radius: 50%;
}

.profile-visual::after {
    content: "";
    position: absolute;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 50%;
}

.profile-card {
    position: relative;
    z-index: 2;
    width: min(100%, 420px);
    min-height: 480px;
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 26px;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.profile-card:hover {
    transform: rotate(0deg) translateY(-5px);
}

.profile-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.profile-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    margin: auto 0 25px;
    border-radius: 20px;
    background: var(--primary-soft);
    font-size: 2.5rem;
}

.profile-card h3 {
    margin-bottom: 28px;
    color: var(--dark);
    font-size: 2.5rem;
    line-height: 1;
    letter-spacing: -0.05em;
}

.profile-line {
    width: 100%;
    height: 1px;
    margin-bottom: 18px;
    background: var(--border);
}

.profile-card > p {
    color: var(--text-light);
    font-size: 0.85rem;
}

.approach {
    background: var(--white);
}

.approach .section-heading {
    width: min(100%, 1180px);
    margin-inline: auto;
}

.approach .section-heading h2 {
    font-size: clamp(2.8rem, 5vw, 4.7rem);
}

.approach-grid {
    width: min(100%, 1180px);
    margin: 60px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.approach-card {
    position: relative;
    min-height: 340px;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--white);
    overflow: hidden;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.approach-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: var(--shadow-md);
}

.approach-number {
    position: absolute;
    top: 28px;
    right: 28px;
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.approach-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 65px;
    border-radius: 15px;
    background: var(--primary-soft);
    font-size: 1.7rem;
}

.approach-card h3 {
    margin-bottom: 12px;
    color: var(--dark);
    font-size: 1.55rem;
    letter-spacing: -0.03em;
}

.approach-card p {
    color: var(--text-light);
    line-height: 1.7;
}

.domains-section {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 90px;
    padding: 120px max(40px, 7vw);
    background: var(--dark);
    color: var(--white);
}

.domains-content {
    align-self: start;
    position: sticky;
    top: 100px;
}

.domains-content .section-label {
    color: #60a5fa;
}

.domains-content h2 {
    font-size: clamp(2.7rem, 5vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.domains-list {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.domains-list > div {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 82px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    color: #f8fafc;
    font-size: 1.3rem;
    font-weight: 600;
    transition:
        padding-left 0.25s ease,
        color 0.25s ease;
}

.domains-list > div:hover {
    padding-left: 12px;
    color: #60a5fa;
}

.domains-list span {
    min-width: 35px;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 800;
}

.philosophy {
    background: var(--light);
}

.philosophy-content {
    width: min(100%, 950px);
    margin-inline: auto;
    text-align: center;
}

.philosophy-content h2 {
    margin-bottom: 35px;
    color: var(--dark);
    font-size: clamp(3.2rem, 7vw, 6rem);
    line-height: 0.95;
    letter-spacing: -0.065em;
}

.philosophy-content h2 span {
    color: var(--primary);
}

.philosophy-content p {
    max-width: 720px;
    margin-inline: auto;
    color: var(--text-light);
    font-size: 1.08rem;
    line-height: 1.9;
}

.about-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 60px;
    padding: 110px max(40px, 7vw);
    background: var(--primary);
    color: var(--white);
}

.about-cta .section-label {
    color: #bfdbfe;
}

.about-cta h2 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 0.92;
    letter-spacing: -0.06em;
}

.about-cta-action {
    max-width: 450px;
}

.about-cta-action p {
    margin-bottom: 28px;
    color: #dbeafe;
    font-size: 1.05rem;
    line-height: 1.8;
}


/* =========================================================
   COURS — HERO
========================================================= */

.courses-page-hero {
    position: relative;
    min-height: 570px;
    display: flex;
    align-items: center;
    padding: 100px 7vw;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(37, 99, 235, 0.16),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #f8fafc 0%,
            #ffffff 60%,
            #eff6ff 100%
        );
    border-bottom: 1px solid var(--border);
}

.courses-page-hero::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -200px;
    top: -160px;
    border-radius: 50%;
    border: 1px solid rgba(37, 99, 235, 0.13);
}

.courses-page-hero::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    right: 21%;
    bottom: 12%;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.courses-page-hero-content {
    position: relative;
    z-index: 2;
    width: min(100%, 1180px);
    margin-inline: auto;
}

.courses-page-hero h1 {
    max-width: 800px;
    margin-bottom: 28px;
    color: var(--dark);
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    line-height: 0.93;
    letter-spacing: -0.065em;
}

.courses-page-hero h1 span {
    color: var(--primary);
}

.courses-page-hero p {
    max-width: 650px;
    color: var(--text-light);
    font-size: 1.12rem;
    line-height: 1.8;
}


/* =========================================================
   COURS — INTRO
========================================================= */

.courses-intro {
    background: var(--white);
}

.courses-intro > .section-label {
    width: min(100%, 1180px);
    margin-inline: auto;
}

.courses-intro-grid {
    width: min(100%, 1180px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    padding-top: 10px;
}

.courses-intro-grid h2 {
    max-width: 650px;
    color: var(--dark);
    font-size: clamp(2.5rem, 5vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.courses-intro-grid h2 span {
    color: var(--primary);
}

.courses-intro-grid > div:last-child {
    padding-top: 8px;
}

.courses-intro-grid p {
    margin-bottom: 24px;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.9;
}


/* =========================================================
   COURS — LISTE
========================================================= */

.courses-list-section {
    padding: 110px max(40px, 7vw);
    background: var(--light);
}

.courses-list-section .section-heading {
    width: min(100%, 1180px);
    margin-inline: auto;
}

.courses-list-section .section-heading h2 {
    font-size: clamp(2.8rem, 5vw, 4.8rem);
}

.courses-list-section .section-heading h2 span {
    color: var(--primary);
}

.courses-page-grid {
    width: min(100%, 1180px);
    margin: 65px auto 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}


/* =========================================================
   COURS — CARD
========================================================= */

.course-large-card {
    position: relative;
    min-height: 390px;
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 22px;
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}

.course-large-card::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -80px;
    top: -80px;
    border-radius: 50%;
    background: var(--primary-soft);
    transition: transform 0.3s ease;
}

.course-large-card:hover {
    transform: translateY(-7px);
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: var(--shadow-md);
}

.course-large-card:hover::before {
    transform: scale(1.35);
}

.course-large-top {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.course-large-number {
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.course-large-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 17px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.7rem;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
}

.course-large-content {
    position: relative;
    z-index: 2;
}

.course-large-content h3 {
    margin-bottom: 14px;
    color: var(--dark);
    font-size: 1.75rem;
    letter-spacing: -0.04em;
}

.course-large-content p {
    max-width: 560px;
    margin-bottom: 24px;
    color: var(--text-light);
    line-height: 1.75;
}

.course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.course-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    background: var(--light-2);
    color: var(--text);
    font-size: 0.74rem;
    font-weight: 700;
}


/* =========================================================
   COURS — MÉTHODE
========================================================= */

.learning-method {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 100px;
    padding: 120px max(40px, 7vw);
    background: var(--dark);
    color: var(--white);
}

.learning-method-content {
    position: sticky;
    top: 100px;
    align-self: start;
}

.learning-method-content .section-label {
    color: #60a5fa;
}

.learning-method-content h2 {
    margin-bottom: 28px;
    color: var(--white);
    font-size: clamp(3rem, 5.5vw, 5.5rem);
    line-height: 0.94;
    letter-spacing: -0.06em;
}

.learning-method-content h2 span {
    color: #60a5fa;
}

.learning-method-content > p {
    max-width: 480px;
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.8;
}

.learning-steps {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.learning-step {
    display: grid;
    grid-template-columns: 55px 1fr;
    gap: 25px;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.learning-step > span {
    color: #60a5fa;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.learning-step h3 {
    margin-bottom: 7px;
    color: var(--white);
    font-size: 1.4rem;
}

.learning-step p {
    color: #94a3b8;
    line-height: 1.7;
}


/* =========================================================
   COURS — CTA
========================================================= */

.courses-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 60px;
    padding: 110px max(40px, 7vw);
    background: var(--primary);
    color: var(--white);
}

.courses-cta .section-label {
    color: #bfdbfe;
}

.courses-cta h2 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 0.92;
    letter-spacing: -0.06em;
}

.courses-cta h2 span {
    color: #dbeafe;
}

.courses-cta-action {
    max-width: 450px;
}

.courses-cta-action p {
    margin-bottom: 28px;
    color: #dbeafe;
    font-size: 1.05rem;
    line-height: 1.8;
}

.courses-cta-action .button-primary {
    background: var(--white);
    color: var(--dark);
    box-shadow: none;
}

.courses-cta-action .button-primary:hover {
    background: #eff6ff;
}


/* =========================================================
   FOOTER — GLOBAL
========================================================= */

.footer {
    padding: 45px 0 25px;
    background: var(--dark);
    color: var(--white);
}

.footer > .container {
    width: min(100% - 40px, var(--container));
    margin-inline: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding-bottom: 35px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
}

.footer-logo span {
    color: var(--primary);
}

.footer-content p {
    color: #94a3b8;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: #cbd5e1;
    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #64748b;
    font-size: 0.85rem;
}


/* Footer simple version used by about/cours */

body > .footer:not(:has(.container)) {
    padding: 42px max(40px, 7vw) 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    background: #020617;
    color: #94a3b8;
}

body > .footer:not(:has(.container)) .footer-logo {
    margin: 0;
    color: var(--white);
}

body > .footer:not(:has(.container)) .footer-logo span {
    color: #60a5fa;
}

body > .footer:not(:has(.container)) p {
    margin: 0;
    font-size: 0.82rem;
}


/* =========================================================
   MOBILE NAV
========================================================= */

.navigation.menu-open {
    display: block;
}


/* =========================================================
   MODAL (AJOUTER / MODIFIER)
========================================================= */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(15, 23, 42, 0.6);

    z-index: 2000;

    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    width: min(100%, 520px);
    max-height: 90vh;

    padding: 32px;

    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);

    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 25px;
    padding-bottom: 18px;

    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    margin: 0;

    color: var(--dark);
    font-size: 1.5rem;
    letter-spacing: -0.03em;
}

.modal-close {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 8px;

    background: var(--light-2);
    color: var(--text);

    font-size: 1rem;
    font-weight: 800;

    cursor: pointer;

    transition: background 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
    background: #fee2e2;
    color: #dc2626;
}

.modal-form-group {
    margin-bottom: 18px;
}

.modal-form-group label {
    display: block;
    margin-bottom: 8px;

    color: var(--dark);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.modal-form-group input,
.modal-form-group select {
    width: 100%;
    min-height: 48px;
    padding: 0 15px;

    color: var(--dark);
    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 10px;

    outline: none;

    font: inherit;
    font-size: 0.95rem;

    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-form-group input:focus,
.modal-form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;

    margin-top: 25px;
    padding-top: 20px;

    border-top: 1px solid var(--border);
}

.modal-actions .button {
    min-height: 44px;
    padding: 0 20px;
}

@media (max-width: 520px) {
    .modal-box {
        padding: 24px 20px;
        border-radius: 18px;
    }

    .modal-header h2 {
        font-size: 1.3rem;
    }

    .modal-actions {
        flex-direction: column-reverse;
    }

    .modal-actions .button {
        width: 100%;
        justify-content: center;
    }
}


/* =========================================================
   CARD ACTIONS (MODIFIER / SUPPRIMER)
========================================================= */

.card-actions {
    display: flex;
    gap: 8px;

    margin-top: auto;
    padding-top: 20px;
}

.btn-edit,
.btn-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 34px;
    padding: 0 12px;

    border: none;
    border-radius: 8px;

    font-size: 0.78rem;
    font-weight: 700;

    cursor: pointer;

    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-edit {
    background: var(--primary-soft);
    color: var(--primary);
}

.btn-edit:hover {
    background: #dbeafe;
    transform: translateY(-1px);
}

.btn-delete {
    background: #fee2e2;
    color: #dc2626;
}

.btn-delete:hover {
    background: #fecaca;
    transform: translateY(-1px);
}


/* =========================================================
   TOAST NOTIFICATIONS
========================================================= */

.toast-container {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    left: auto !important;
    bottom: auto !important;

    display: flex !important;
    flex-direction: column;
    gap: 10px;

    z-index: 9999 !important;

    pointer-events: none;
}

.toast {
    min-width: 280px;
    max-width: 380px;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 14px 18px;

    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);

    color: var(--dark);
    font-size: 0.92rem;
    font-weight: 600;

    pointer-events: auto;

    border-left: 4px solid var(--primary);

    transform: translateX(120%);
    opacity: 0;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    width: 24px;
    height: 24px;

    flex: 0 0 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1rem;
}

.toast-message {
    flex: 1;
    line-height: 1.4;
}


/* Types */

.toast-success {
    border-left-color: #22c55e;
}

.toast-success .toast-icon {
    color: #22c55e;
}

.toast-error {
    border-left-color: #dc2626;
}

.toast-error .toast-icon {
    color: #dc2626;
}

.toast-info {
    border-left-color: #2563eb;
}

.toast-info .toast-icon {
    color: #2563eb;
}

.toast-warning {
    border-left-color: #f59e0b;
}

.toast-warning .toast-icon {
    color: #f59e0b;
}


@media (max-width: 520px) {
    .toast-container {
        top: 10px !important;
        left: 10px !important;
        right: 10px !important;
        bottom: auto !important;
    }

    .toast {
        min-width: 0;
        max-width: 100%;
    }
}


/* =========================================================
   BACK TO TOP BUTTON
========================================================= */

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background: var(--dark);
    color: var(--white);

    font-size: 22px;
    font-weight: 600;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transform: translateY(15px);

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease,
        background 0.2s ease;

    z-index: 999;
}

.back-to-top:hover {
    background: var(--primary);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 700px) {
    .back-to-top {
        right: 16px;
        bottom: 16px;

        width: 42px;
        height: 42px;

        font-size: 20px;
    }
}

/* =========================================================
   RESPONSI​​VE — 1050px
========================================================= */

@media (max-width: 1050px) {

    .navigation ul {
        gap: 17px;
    }

    .header {
        padding: 0 25px;
    }

    header:not(:has(.header-container)) .navigation a {
        margin-left: 14px;
    }

    .hero-container {
        gap: 40px;
    }

    .about-intro-grid,
    .courses-intro-grid {
        gap: 50px;
    }

    .domains-section,
    .learning-method {
        gap: 50px;
    }
}


/* =========================================================
   RESPONSIVE — 800px
========================================================= */

@media (max-width: 800px) {

    .header {
        min-height: 70px;
        padding: 0 20px;
    }

    .header-container {
        width: 100%;
    }

    .mobile-menu-button {
        display: block;
        margin-left: auto;
    }

    .navigation {
        display: none;
        position: absolute;
        top: 70px;
        left: 20px;
        right: 20px;
        margin: 0 !important;
        padding: 12px;
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: 14px;
        box-shadow: var(--shadow-lg);
    }

    .navigation ul {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }

    .navigation li {
        width: 100%;
    }

    .navigation a {
        display: flex;
        width: 100%;
        padding: 12px;
        border-radius: 8px;
    }

    .navigation a:hover {
        background: var(--light);
    }

    .navigation a.active::after {
        display: none;
    }

    .navigation.menu-open {
        display: block;
    }

    header:not(:has(.header-container)) .navigation a {
        margin-left: 0;
    }

    header:not(:has(.header-container)) .navigation {
        top: 70px;
    }

    .header > .header-button,
    .header-container > .header-button {
        display: none;
    }


    /* Home */

    .hero {
        padding: 75px 0 80px;
    }

    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        margin-top: 20px;
    }

    .hero-card {
        min-height: 360px;
    }

    .home-features {
        grid-template-columns: 1fr;
    }

    .domain-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 35px;
    }


    /* About */

    .page-hero,
    .courses-page-hero {
        min-height: 480px;
        padding: 80px 30px;
    }

    .about-intro-grid,
    .courses-intro-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .profile-section {
        grid-template-columns: 1fr;
    }

    .profile-content {
        padding: 80px 30px;
    }

    .profile-visual {
        min-height: 550px;
        padding: 50px 25px;
    }

    .approach-grid {
        grid-template-columns: 1fr;
    }

    .approach-card {
        min-height: auto;
    }

    .domains-section,
    .learning-method {
        grid-template-columns: 1fr;
        padding: 90px 30px;
        gap: 50px;
    }

    .domains-content,
    .learning-method-content {
        position: static;
    }

    .about-cta,
    .courses-cta {
        grid-template-columns: 1fr;
        padding: 85px 30px;
        gap: 45px;
    }


    /* Courses */

    .courses-page-grid {
        grid-template-columns: 1fr;
    }

    .course-large-card {
        min-height: 350px;
    }

    body > .footer:not(:has(.container)) {
        flex-direction: column;
        align-items: flex-start;
        padding: 40px 30px 25px;
    }
}



/* =========================================================
   MES COURS — SECTION PERSONNALISÉE
========================================================= */

.courses-mes-cours {
    padding: 110px max(40px, 7vw);
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.courses-mes-cours .section-heading {
    width: min(100%, 1180px);
    margin-inline: auto;
}

.courses-mes-cours .section-heading h2 {
    font-size: clamp(2.8rem, 5vw, 4.8rem);
}

.courses-mes-cours .section-heading h2 span {
    color: var(--primary);
}

.courses-mes-cours-content {
    width: min(100%, 1180px);
    margin: 60px auto 0;
}

.loading-message {
    text-align: center;
    color: var(--text-light);
    font-size: 1rem;
    padding: 40px 0;
}


/* Trimestre */

.mes-cours-trimestre {
    margin-bottom: 40px;
}

.mes-cours-trimestre-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}


/* Catégorie */

.mes-cours-categorie {
    margin-bottom: 32px;
}

.mes-cours-categorie-title {
    margin-bottom: 16px;
    color: var(--dark);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}


/* Liste de leçons */

.mes-cours-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mes-cours-lecon {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.mes-cours-lecon:hover {
    transform: translateX(6px);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: var(--shadow-sm);
}

.mes-cours-lecon-number {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 800;
}

.mes-cours-lecon-content {
    flex: 1;
}

.mes-cours-lecon-content h4 {
    margin: 0 0 4px;
    color: var(--dark);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
}

.mes-cours-lecon-content p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.85rem;
}

.mes-cours-lecon-arrow {
    flex: 0 0 auto;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 800;
}


/* En cours */

.mes-cours-empty {
    padding: 40px 24px;
    text-align: center;
    background: var(--light);
    border: 1px dashed var(--border);
    border-radius: 14px;
    color: var(--text-light);
    font-size: 0.95rem;
    font-style: italic;
}


/* Message de connexion */

.mes-cours-login {
    padding: 40px 24px;
    text-align: center;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.mes-cours-login p {
    margin: 0 0 18px;
    color: var(--text-light);
    font-size: 1rem;
}

.mes-cours-login a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border-radius: 10px;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    transition: background 0.2s ease;
}

.mes-cours-login a:hover {
    background: var(--primary-dark);
}


@media (max-width: 800px) {
    .courses-mes-cours {
        padding: 85px 30px;
    }

    .mes-cours-lecon {
        padding: 16px 18px;
    }

    .mes-cours-lecon-number {
        flex: 0 0 38px;
        width: 38px;
        height: 38px;
        font-size: 0.82rem;
    }

    .mes-cours-lecon-content h4 {
        font-size: 0.98rem;
    }
}

@media (max-width: 520px) {
    .courses-mes-cours {
        padding: 75px 22px;
    }

    .mes-cours-trimestre-title {
        font-size: 0.78rem;
        padding: 8px 14px;
    }

    .mes-cours-lecon {
        padding: 14px 16px;
        gap: 12px;
    }

    .mes-cours-lecon-content h4 {
        font-size: 0.92rem;
    }

    .mes-cours-lecon-content p {
        font-size: 0.78rem;
    }
}
/* =========================================================
   RESPONSIVE — 520px
========================================================= */

@media (max-width: 520px) {

    .container {
        width: min(100% - 28px, var(--container));
    }

    .header {
        padding: 0 14px;
    }

    .logo {
        font-size: 1.35rem;
    }


    /* Home */

    .hero {
        padding: 60px 0 70px;
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    .hero-card {
        min-height: 300px;
        padding: 30px;
    }

    .hero-card strong {
        font-size: 2.1rem;
    }

    .home-intro,
    .home-domains {
        padding: 75px 0;
    }

    .section-heading {
        margin-bottom: 35px;
    }

    .section-heading h2 {
        font-size: 2.4rem;
    }

    .domain-grid {
        grid-template-columns: 1fr;
    }

    .home-cta {
        padding: 65px 0;
    }

    .cta-box {
        padding: 28px;
    }

    .cta-box h2 {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
    }


    /* About */

    .section {
        padding: 75px 22px;
    }

    .page-hero,
    .courses-page-hero {
        min-height: 430px;
        padding: 65px 22px;
    }

    .page-hero h1,
    .courses-page-hero h1 {
        font-size: 3.2rem;
    }

    .page-hero p,
    .courses-page-hero p {
        font-size: 1rem;
    }

    .about-intro-grid h2 {
        font-size: 2.5rem;
    }

    .profile-content {
        padding: 70px 22px;
    }

    .profile-content h2 {
        font-size: 3.2rem;
    }

    .profile-visual {
        min-height: 470px;
        padding: 35px 18px;
    }

    .profile-card {
        min-height: 390px;
        padding: 25px;
        transform: none;
    }

    .profile-card h3 {
        font-size: 2rem;
    }

    .profile-symbol {
        width: 65px;
        height: 65px;
        font-size: 2rem;
    }

    .approach-grid {
        margin-top: 35px;
    }

    .approach-card {
        padding: 25px;
    }

    .approach-icon {
        margin-bottom: 45px;
    }

    .domains-section,
    .learning-method {
        padding: 75px 22px;
    }

    .domains-content h2,
    .learning-method-content h2 {
        font-size: 3rem;
    }

    .domains-list > div {
        min-height: 70px;
        gap: 15px;
        font-size: 1.05rem;
    }

    .philosophy-content h2 {
        font-size: 3.2rem;
    }

    .about-cta,
    .courses-cta {
        padding: 75px 22px;
    }

    .about-cta h2,
    .courses-cta h2 {
        font-size: 3.4rem;
    }


    /* Courses */

    .courses-intro-grid h2 {
        font-size: 2.5rem;
    }

    .courses-list-section {
        padding: 75px 22px;
    }

    .courses-page-grid {
        margin-top: 40px;
        gap: 16px;
    }

    .course-large-card {
        min-height: 350px;
        padding: 25px;
        border-radius: 18px;
    }

    .course-large-icon {
        width: 54px;
        height: 54px;
    }

    .course-large-content h3 {
        font-size: 1.5rem;
    }

    .course-large-content p {
        font-size: 0.93rem;
    }

    .learning-step {
        grid-template-columns: 40px 1fr;
        gap: 15px;
    }

    body > .footer:not(:has(.container)) {
        padding: 35px 22px 25px;
    }


    /* Toast */

    .toast-container {
        top: 10px;
        left: 10px;
        right: 10px;
    }

    .toast {
        min-width: 0;
        max-width: 100%;
    }

}


/* =========================================================
   ROBOTIQUE — HERO
========================================================= */


.robotics-page-hero {
    position: relative;
    min-height: 570px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 70px;
    padding: 100px 7vw;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(37, 99, 235, 0.16),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #f8fafc 0%,
            #ffffff 60%,
            #eff6ff 100%
        );
    border-bottom: 1px solid var(--border);
}

.robotics-page-hero::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -210px;
    top: -180px;
    border-radius: 50%;
    border: 1px solid rgba(37, 99, 235, 0.13);
}

.robotics-page-hero::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    right: 23%;
    bottom: 10%;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.robotics-page-hero-content {
    position: relative;
    z-index: 2;
    width: min(100%, 1180px);
    margin-inline: auto;
}

.robotics-page-hero h1 {
    max-width: 800px;
    margin-bottom: 28px;
    color: var(--dark);
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    line-height: 0.93;
    letter-spacing: -0.065em;
}

.robotics-page-hero h1 span {
    color: var(--primary);
}

.robotics-page-hero p {
    max-width: 650px;
    margin-bottom: 30px;
    color: var(--text-light);
    font-size: 1.12rem;
    line-height: 1.8;
}

.robotics-outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    color: var(--dark);
    font-size: 0.92rem;
    font-weight: 700;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
}

.robotics-outline-button:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}


/* =========================================================
   ROBOTIQUE — HERO VISUAL
========================================================= */

.robotics-page-visual {
    position: relative;
    min-height: 470px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.robotics-page-visual::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(37, 99, 235, 0.10);
    border-radius: 50%;
}

.robotics-page-visual::after {
    content: "";
    position: absolute;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 50%;
}

.robotics-big-card {
    position: relative;
    z-index: 2;
    width: min(100%, 420px);
    min-height: 450px;
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 26px;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}

.robotics-big-card:hover {
    transform: rotate(0deg) translateY(-5px);
}

.robotics-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.robotics-big-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    margin: auto 0 25px;
    border-radius: 20px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 2.5rem;
}

.robotics-big-card h2 {
    margin-bottom: 28px;
    color: var(--dark);
    font-size: 2.5rem;
    line-height: 1;
    letter-spacing: -0.05em;
}

.robotics-card-line {
    width: 100%;
    height: 1px;
    margin-bottom: 18px;
    background: var(--border);
}

.robotics-big-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
}


/* =========================================================
   ROBOTIQUE — INTRO
========================================================= */

.robotics-intro {
    background: var(--white);
}

.robotics-intro > .section-label {
    width: min(100%, 1180px);
    margin-inline: auto;
}

.robotics-intro-grid {
    width: min(100%, 1180px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    padding-top: 10px;
}

.robotics-intro-grid h2 {
    max-width: 650px;
    color: var(--dark);
    font-size: clamp(2.5rem, 5vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.robotics-intro-grid h2 span {
    color: var(--primary);
}

.robotics-intro-grid > div:last-child {
    padding-top: 8px;
}

.robotics-intro-grid p {
    margin-bottom: 24px;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.9;
}


/* =========================================================
   ROBOTIQUE — ACTIVITÉS
========================================================= */

.robotics-activities {
    padding: 110px max(40px, 7vw);
    background: var(--light);
}

.robotics-activities .section-heading {
    width: min(100%, 1180px);
    margin-inline: auto;
}

.robotics-activities .section-heading h2 {
    font-size: clamp(2.8rem, 5vw, 4.8rem);
}

.robotics-activities .section-heading h2 span {
    color: var(--primary);
}

.robotics-activity-grid {
    width: min(100%, 1180px);
    margin: 65px auto 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.robotics-activity-card {
    position: relative;
    min-height: 300px;
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 22px;
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}

.robotics-activity-card::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -80px;
    top: -80px;
    border-radius: 50%;
    background: var(--primary-soft);
    transition: transform 0.3s ease;
}

.robotics-activity-card:hover {
    transform: translateY(-7px);
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: var(--shadow-md);
}

.robotics-activity-card:hover::before {
    transform: scale(1.35);
}

.robotics-activity-top {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.robotics-activity-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 17px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.7rem;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
}

.robotics-activity-card h3 {
    position: relative;
    z-index: 2;
    margin-bottom: 12px;
    color: var(--dark);
    font-size: 1.65rem;
    letter-spacing: -0.04em;
}

.robotics-activity-card p {
    position: relative;
    z-index: 2;
    max-width: 560px;
    color: var(--text-light);
    line-height: 1.75;
}


/* =========================================================
   ROBOTIQUE — PROCESS
========================================================= */

.robotics-process {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 100px;
    padding: 120px max(40px, 7vw);
    background: var(--dark);
    color: var(--white);
}

.robotics-process-content {
    position: sticky;
    top: 100px;
    align-self: start;
}

.robotics-process-content .section-label {
    color: #60a5fa;
}

.robotics-process-content h2 {
    margin-bottom: 28px;
    color: var(--white);
    font-size: clamp(3rem, 5.5vw, 5.5rem);
    line-height: 0.94;
    letter-spacing: -0.06em;
}

.robotics-process-content h2 span {
    color: #60a5fa;
}

.robotics-process-content > p {
    max-width: 480px;
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.8;
}

.robotics-process-list {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.robotics-process-item {
    display: grid;
    grid-template-columns: 55px 1fr;
    gap: 25px;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.robotics-process-item > span {
    color: #60a5fa;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.robotics-process-item h3 {
    margin-bottom: 7px;
    color: var(--white);
    font-size: 1.4rem;
}

.robotics-process-item p {
    color: #94a3b8;
    line-height: 1.7;
}


/* =========================================================
   ROBOTIQUE — PHILOSOPHIE
========================================================= */

.robotics-philosophy {
    padding: 110px max(40px, 7vw);
    background: var(--light);
}

.robotics-philosophy-content {
    width: min(100%, 950px);
    margin-inline: auto;
    text-align: center;
}

.robotics-philosophy-content .section-label {
    margin-bottom: 20px;
}

.robotics-philosophy-content h2 {
    margin-bottom: 35px;
    color: var(--dark);
    font-size: clamp(3.2rem, 7vw, 6rem);
    line-height: 0.95;
    letter-spacing: -0.065em;
}

.robotics-philosophy-content h2 span {
    color: var(--primary);
}

.robotics-philosophy-content p {
    max-width: 720px;
    margin-inline: auto;
    color: var(--text-light);
    font-size: 1.08rem;
    line-height: 1.9;
}


/* =========================================================
   ROBOTIQUE — CTA
========================================================= */

.robotics-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 60px;
    padding: 110px max(40px, 7vw);
    background: var(--primary);
    color: var(--white);
}

.robotics-cta .section-label {
    color: #bfdbfe;
}

.robotics-cta h2 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 0.92;
    letter-spacing: -0.06em;
}

.robotics-cta h2 span {
    color: #dbeafe;
}

.robotics-cta-action {
    max-width: 450px;
}

.robotics-cta-action p {
    margin-bottom: 28px;
    color: #dbeafe;
    font-size: 1.05rem;
    line-height: 1.8;
}

.robotics-cta-action .button-primary {
    background: var(--white);
    color: var(--dark);
    box-shadow: none;
}

.robotics-cta-action .button-primary:hover {
    background: #eff6ff;
}


/* =========================================================
   ROBOTIQUE — RESPONSIVE 1050px
========================================================= */

@media (max-width: 1050px) {

    .robotics-page-hero {
        gap: 40px;
    }

    .robotics-intro-grid {
        gap: 50px;
    }

    .robotics-process {
        gap: 50px;
    }
}


/* =========================================================
   ROBOTIQUE — RESPONSIVE 800px
========================================================= */

@media (max-width: 800px) {

    .robotics-page-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 80px 30px;
        gap: 45px;
    }

    .robotics-page-hero-content {
        width: 100%;
    }

    .robotics-page-visual {
        min-height: 500px;
        padding: 40px 25px;
    }

    .robotics-intro-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .robotics-activity-grid {
        grid-template-columns: 1fr;
    }

    .robotics-process {
        grid-template-columns: 1fr;
        padding: 90px 30px;
        gap: 50px;
    }

    .robotics-process-content {
        position: static;
    }

    .robotics-cta {
        grid-template-columns: 1fr;
        padding: 85px 30px;
        gap: 45px;
    }
}


/* =========================================================
   ROBOTIQUE — RESPONSIVE 520px
========================================================= */

@media (max-width: 520px) {

    .robotics-page-hero {
        padding: 65px 22px;
    }

    .robotics-page-hero h1 {
        font-size: 3.2rem;
    }

    .robotics-page-hero p {
        font-size: 1rem;
    }

    .robotics-page-visual {
        min-height: 430px;
        padding: 25px 10px;
    }

    .robotics-page-visual::before {
        width: 380px;
        height: 380px;
    }

    .robotics-page-visual::after {
        width: 260px;
        height: 260px;
    }

    .robotics-big-card {
        min-height: 380px;
        padding: 25px;
        transform: none;
    }

    .robotics-big-card h2 {
        font-size: 2rem;
    }

    .robotics-big-icon {
        width: 65px;
        height: 65px;
        font-size: 2rem;
    }

    .robotics-activities {
        padding: 75px 22px;
    }

    .robotics-activity-grid {
        margin-top: 40px;
        gap: 16px;
    }

    .robotics-activity-card {
        min-height: 280px;
        padding: 25px;
        border-radius: 18px;
    }

    .robotics-activity-icon {
        width: 54px;
        height: 54px;
    }

    .robotics-activity-card h3 {
        font-size: 1.5rem;
    }

    .robotics-activity-card p {
        font-size: 0.93rem;
    }

    .robotics-process {
        padding: 75px 22px;
    }

    .robotics-process-content h2 {
        font-size: 3rem;
    }

    .robotics-process-item {
        grid-template-columns: 40px 1fr;
        gap: 15px;
    }

    .robotics-philosophy {
        padding: 75px 22px;
    }

    .robotics-philosophy-content h2 {
        font-size: 3.2rem;
    }

    .robotics-cta {
        padding: 75px 22px;
    }

    .robotics-cta h2 {
        font-size: 3.4rem;
    }
}
/* =========================================================
   PROJETS — HERO
========================================================= */

.projects-page-hero {
    position: relative;
    min-height: 570px;
    display: flex;
    align-items: center;
    padding: 100px 7vw;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(37, 99, 235, 0.16),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #f8fafc 0%,
            #ffffff 60%,
            #eff6ff 100%
        );
    border-bottom: 1px solid var(--border);
}

.projects-page-hero::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -210px;
    top: -180px;
    border-radius: 50%;
    border: 1px solid rgba(37, 99, 235, 0.13);
}

.projects-page-hero::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    right: 23%;
    bottom: 10%;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.projects-page-hero-content {
    position: relative;
    z-index: 2;
    width: min(100%, 1180px);
    margin-inline: auto;
}

.projects-page-hero h1 {
    max-width: 850px;
    margin-bottom: 28px;
    color: var(--dark);
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    line-height: 0.93;
    letter-spacing: -0.065em;
}

.projects-page-hero h1 span {
    color: var(--primary);
}

.projects-page-hero p {
    max-width: 650px;
    color: var(--text-light);
    font-size: 1.12rem;
    line-height: 1.8;
}

/* =========================================================
   PROJETS — INTRO
========================================================= */

.projects-intro {
    background: var(--white);
}

.projects-intro > .section-label {
    width: min(100%, 1180px);
    margin-inline: auto;
}

.projects-intro-grid {
    width: min(100%, 1180px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    padding-top: 10px;
}

.projects-intro-grid h2 {
    max-width: 650px;
    color: var(--dark);
    font-size: clamp(2.5rem, 5vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.projects-intro-grid h2 span {
    color: var(--primary);
}

.projects-intro-grid > div:last-child {
    padding-top: 8px;
}

.projects-intro-grid p {
    margin-bottom: 24px;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.9;
}

/* =========================================================
   PROJETS — SHOWCASE
========================================================= */

.projects-showcase {
    padding: 110px max(40px, 7vw);
    background: var(--light);
}

.projects-showcase .section-heading {
    width: min(100%, 1180px);
    margin-inline: auto;
}

.projects-showcase .section-heading h2 {
    font-size: clamp(2.8rem, 5vw, 4.8rem);
}

.projects-showcase .section-heading h2 span {
    color: var(--primary);
}

.projects-showcase-grid {
    width: min(100%, 1180px);
    margin: 65px auto 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.project-showcase-card {
    position: relative;
    min-height: 390px;
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 22px;
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}

.project-showcase-card::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -80px;
    top: -80px;
    border-radius: 50%;
    background: var(--primary-soft);
    transition: transform 0.3s ease;
}

.project-showcase-card:hover {
    transform: translateY(-7px);
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: var(--shadow-md);
}

.project-showcase-card:hover::before {
    transform: scale(1.35);
}

.project-showcase-number {
    position: relative;
    z-index: 2;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.project-showcase-icon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-left: auto;
    border-radius: 17px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.7rem;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
}

.project-showcase-content {
    position: relative;
    z-index: 2;
}

.project-category {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 12px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--light-2);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.project-showcase-content h3 {
    margin-bottom: 14px;
    color: var(--dark);
    font-size: 1.75rem;
    letter-spacing: -0.04em;
}

.project-showcase-content p {
    max-width: 560px;
    margin-bottom: 22px;
    color: var(--text-light);
    line-height: 1.75;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tech span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    background: var(--light-2);
    color: var(--text);
    font-size: 0.74rem;
    font-weight: 700;
}

/* =========================================================
   PROJETS — PROCESSUS
========================================================= */

.project-process {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 100px;
    padding: 120px max(40px, 7vw);
    background: var(--dark);
    color: var(--white);
}

.project-process-content {
    position: sticky;
    top: 100px;
    align-self: start;
}

.project-process-content .section-label {
    color: #60a5fa;
}

.project-process-content h2 {
    margin-bottom: 28px;
    color: var(--white);
    font-size: clamp(3rem, 5.5vw, 5.5rem);
    line-height: 0.94;
    letter-spacing: -0.06em;
}

.project-process-content h2 span {
    color: #60a5fa;
}

.project-process-content > p {
    max-width: 480px;
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.8;
}

.project-process-list {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.project-process-item {
    display: grid;
    grid-template-columns: 55px 1fr;
    gap: 25px;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.project-process-item > span {
    color: #60a5fa;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.project-process-item h3 {
    margin-bottom: 7px;
    color: var(--white);
    font-size: 1.4rem;
}

.project-process-item p {
    color: #94a3b8;
    line-height: 1.7;
}

/* =========================================================
   PROJETS — PHILOSOPHIE
========================================================= */

.projects-philosophy {
    padding: 110px max(40px, 7vw);
    background: var(--light);
}

.projects-philosophy-content {
    width: min(100%, 950px);
    margin-inline: auto;
    text-align: center;
}

.projects-philosophy-content h2 {
    margin-bottom: 35px;
    color: var(--dark);
    font-size: clamp(3.2rem, 7vw, 6rem);
    line-height: 0.95;
    letter-spacing: -0.065em;
}

.projects-philosophy-content h2 span {
    color: var(--primary);
}

.projects-philosophy-content p {
    max-width: 720px;
    margin-inline: auto;
    color: var(--text-light);
    font-size: 1.08rem;
    line-height: 1.9;
}

/* =========================================================
   PROJETS — CTA
========================================================= */

.projects-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 60px;
    padding: 110px max(40px, 7vw);
    background: var(--primary);
    color: var(--white);
}

.projects-cta .section-label {
    color: #bfdbfe;
}

.projects-cta h2 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 0.92;
    letter-spacing: -0.06em;
}

.projects-cta h2 span {
    color: #dbeafe;
}

.projects-cta-action {
    max-width: 450px;
}

.projects-cta-action p {
    margin-bottom: 28px;
    color: #dbeafe;
    font-size: 1.05rem;
    line-height: 1.8;
}

.projects-cta-action .button-primary {
    background: var(--white);
    color: var(--dark);
    box-shadow: none;
}

.projects-cta-action .button-primary:hover {
    background: #eff6ff;
}

/* =========================================================
   PROJETS — RESPONSIVE 1050px
========================================================= */

@media (max-width: 1050px) {
    .projects-intro-grid {
        gap: 50px;
    }

    .project-process {
        gap: 50px;
    }
}

/* =========================================================
   PROJETS — RESPONSIVE 800px
========================================================= */

@media (max-width: 800px) {
    .projects-page-hero {
        min-height: 480px;
        padding: 80px 30px;
    }

    .projects-intro-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .projects-showcase {
        padding: 90px 30px;
    }

    .projects-showcase-grid {
        grid-template-columns: 1fr;
        margin-top: 50px;
    }

    .project-showcase-card {
        min-height: 350px;
    }

    .project-process {
        grid-template-columns: 1fr;
        padding: 90px 30px;
        gap: 50px;
    }

    .project-process-content {
        position: static;
    }

    .projects-philosophy {
        padding: 90px 30px;
    }

    .projects-cta {
        grid-template-columns: 1fr;
        padding: 85px 30px;
        gap: 45px;
    }
}

/* =========================================================
   PROJETS — RESPONSIVE 520px
========================================================= */

@media (max-width: 520px) {
    .projects-page-hero {
        min-height: 430px;
        padding: 65px 22px;
    }

    .projects-page-hero h1 {
        font-size: 3.2rem;
    }

    .projects-page-hero p {
        font-size: 1rem;
    }

    .projects-intro-grid h2 {
        font-size: 2.5rem;
    }

    .projects-showcase {
        padding: 75px 22px;
    }

    .projects-showcase-grid {
        margin-top: 40px;
        gap: 16px;
    }

    .project-showcase-card {
        min-height: 350px;
        padding: 25px;
        border-radius: 18px;
    }

    .project-showcase-icon {
        width: 54px;
        height: 54px;
    }

    .project-showcase-content h3 {
        font-size: 1.5rem;
    }

    .project-showcase-content p {
        font-size: 0.93rem;
    }

    .project-process {
        padding: 75px 22px;
    }

    .project-process-content h2 {
        font-size: 3rem;
    }

    .project-process-item {
        grid-template-columns: 40px 1fr;
        gap: 15px;
    }

    .projects-philosophy {
        padding: 75px 22px;
    }

    .projects-philosophy-content h2 {
        font-size: 3.2rem;
    }

    .projects-cta {
        padding: 75px 22px;
    }

    .projects-cta h2 {
        font-size: 3.4rem;
    }
}

/* =========================================================
   RESSOURCES — HERO
========================================================= */

.resources-page-hero {
    position: relative;
    min-height: 470px;
    display: flex;
    align-items: center;
    padding: 90px 7vw;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 82% 18%,
            rgba(37, 99, 235, 0.15),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #f8fafc 0%,
            #ffffff 62%,
            #eff6ff 100%
        );
    border-bottom: 1px solid var(--border);
}

.resources-page-hero::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -90px;
    bottom: -120px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 50%;
}

.resources-page-hero::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: 100px;
    top: 80px;
    border: 1px solid rgba(37, 99, 235, 0.08);
    border-radius: 50%;
}

.resources-page-hero-content {
    position: relative;
    z-index: 2;
    width: min(850px, 100%);
    margin: 0 auto;
    text-align: center;
}

.resources-page-hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.resources-page-hero .eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--primary);
}

.resources-page-hero h1 {
    margin: 0;
    color: var(--dark);
    font-size: clamp(3.8rem, 7vw, 6.6rem);
    line-height: 0.95;
    letter-spacing: -0.055em;
    font-weight: 800;
}

.resources-page-hero h1 span {
    color: var(--primary);
}

.resources-page-hero p {
    max-width: 680px;
    margin: 32px auto 0;
    color: var(--text-light);
    font-size: 1.08rem;
    line-height: 1.8;
}


/* =========================================================
   RESSOURCES — INTRO
========================================================= */

.resources-intro {
    padding: 110px 7vw;
    background: var(--white);
}

.resources-intro > .section-label {
    margin-bottom: 55px;
}

.resources-intro-grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: start;
}

.resources-intro-grid h2 {
    margin: 0;
    color: var(--dark);
    font-size: clamp(3rem, 5vw, 4.7rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.resources-intro-grid h2 span {
    color: var(--primary);
}

.resources-intro-grid > div:last-child {
    padding-top: 8px;
}

.resources-intro-grid p {
    max-width: 540px;
    margin: 0 0 24px;
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.85;
}

.resources-intro-grid p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   RESSOURCES — LIBRARY
========================================================= */

.resources-library {
    padding: 110px 7vw;
    background: var(--light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.resources-library .section-heading {
    max-width: var(--container);
    margin: 0 auto;
}

.resources-library .section-heading h2 {
    margin: 12px 0 0;
    color: var(--dark);
    font-size: clamp(3rem, 5vw, 4.7rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.resources-library .section-heading h2 span {
    color: var(--primary);
}

.resources-grid {
    max-width: var(--container);
    margin: 60px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.resource-card {
    position: relative;
    min-height: 390px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.resource-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.resource-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow: var(--shadow-md);
}

.resource-card:hover::before {
    transform: scaleX(1);
}

.resource-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    color: var(--text-light);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.resource-card-top span:first-child {
    color: var(--primary);
}

.resource-icon {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary);
    background: var(--primary-soft);
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 14px;
    font-size: 1.65rem;
    font-weight: 800;
}

.resource-category {
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.resource-card h3 {
    margin: 0 0 14px;
    color: var(--dark);
    font-size: 1.55rem;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.resource-card p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.96rem;
    line-height: 1.7;
}

.resource-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: auto;
    padding: 8px 12px;
    color: var(--text-light);
    background: var(--light-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
}


/* =========================================================
   RESSOURCES — PLATEFORME
========================================================= */

.resources-platform {
    padding: 110px 7vw;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
    background: var(--dark);
}

.resources-platform-content {
    max-width: 600px;
    justify-self: end;
}

.resources-platform .section-label {
    color: #93c5fd;
}

.resources-platform-content h2 {
    margin: 15px 0 28px;
    color: var(--white);
    font-size: clamp(3rem, 5vw, 4.7rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.resources-platform-content h2 span {
    color: #60a5fa;
}

.resources-platform-content p {
    max-width: 530px;
    margin: 0;
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.85;
}

.resources-platform-list {
    width: min(520px, 100%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.resources-platform-list > div {
    min-height: 105px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
    padding: 22px;
    color: var(--white);
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 1rem;
    font-weight: 700;
    transition: background 0.25s ease;
}

.resources-platform-list > div:hover {
    background: rgba(255, 255, 255, 0.05);
}

.resources-platform-list span {
    color: #60a5fa;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}


/* =========================================================
   RESSOURCES — CTA
========================================================= */

.resources-cta {
    max-width: var(--container);
    margin: 0 auto;
    padding: 120px 40px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 70px;
    align-items: end;
}

.resources-cta .section-label {
    margin-bottom: 18px;
}

.resources-cta h2 {
    margin: 0;
    color: var(--dark);
    font-size: clamp(3.5rem, 6vw, 6rem);
    line-height: 0.9;
    letter-spacing: -0.055em;
}

.resources-cta h2 span {
    color: var(--primary);
}

.resources-cta-action {
    min-width: 280px;
    padding-bottom: 5px;
}

.resources-cta-action p {
    margin: 0 0 22px;
    color: var(--text-light);
    font-size: 0.98rem;
    line-height: 1.6;
}

.resources-cta-action .button-primary {
    white-space: nowrap;
}


/* =========================================================
   RESSOURCES — RESPONSIVE
========================================================= */

@media (max-width: 1050px) {
    .resources-intro-grid,
    .resources-platform {
        gap: 55px;
    }

    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .resources-platform {
        grid-template-columns: 1fr;
    }

    .resources-platform-content {
        justify-self: start;
    }

    .resources-platform-list {
        width: 100%;
        max-width: 620px;
    }
}

@media (max-width: 800px) {
    .resources-page-hero {
        min-height: 430px;
        padding: 80px 30px;
    }

    .resources-page-hero h1 {
        font-size: clamp(3.4rem, 10vw, 5rem);
    }

    .resources-intro {
        padding: 85px 30px;
    }

    .resources-intro-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .resources-intro-grid > div:last-child {
        padding-top: 0;
    }

    .resources-library {
        padding: 85px 30px;
    }

    .resources-grid {
        margin-top: 45px;
        gap: 18px;
    }

    .resource-card {
        min-height: 365px;
        padding: 27px;
    }

    .resources-platform {
        padding: 85px 30px;
    }

    .resources-cta {
        padding: 90px 30px;
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .resources-cta-action {
        min-width: 0;
    }
}

@media (max-width: 520px) {
    .resources-page-hero {
        min-height: 390px;
        padding: 65px 22px;
    }

    .resources-page-hero h1 {
        font-size: 3.15rem;
    }

    .resources-page-hero p {
        margin-top: 25px;
        font-size: 0.96rem;
    }

    .resources-intro {
        padding: 75px 22px;
    }

    .resources-intro-grid h2 {
        font-size: 2.55rem;
    }

    .resources-intro-grid p {
        font-size: 0.96rem;
    }

    .resources-library {
        padding: 75px 22px;
    }

    .resources-library .section-heading h2 {
        font-size: 2.75rem;
    }

    .resources-grid {
        grid-template-columns: 1fr;
        margin-top: 40px;
        gap: 16px;
    }

    .resource-card {
        min-height: 350px;
        padding: 25px;
        border-radius: 18px;
    }

    .resource-icon {
        width: 56px;
        height: 56px;
    }

    .resource-card h3 {
        font-size: 1.45rem;
    }

    .resources-platform {
        padding: 75px 22px;
    }

    .resources-platform-content h2 {
        font-size: 2.9rem;
    }

    .resources-platform-list {
        grid-template-columns: 1fr;
    }

    .resources-platform-list > div {
        min-height: 82px;
    }

    .resources-cta {
        padding: 75px 22px;
    }

    .resources-cta h2 {
        font-size: 3.45rem;
    }
}

/* =========================================================
   CONTACT — HERO
========================================================= */

.contact-page-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    padding: 100px 7vw;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 82% 22%,
            rgba(37, 99, 235, 0.16),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #f8fafc 0%,
            #ffffff 60%,
            #eff6ff 100%
        );
    border-bottom: 1px solid var(--border);
}

.contact-page-hero::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -150px;
    bottom: -210px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 50%;
}

.contact-page-hero::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: 70px;
    bottom: -150px;
    border: 1px solid rgba(37, 99, 235, 0.08);
    border-radius: 50%;
}

.contact-page-hero-content {
    position: relative;
    z-index: 2;
    width: min(100%, 1180px);
    margin: 0 auto;
}

.contact-page-hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.contact-page-hero .eyebrow::before {
    content: "";
    width: 34px;
    height: 2px;
    background: var(--primary);
}

.contact-page-hero h1 {
    max-width: 850px;
    margin: 0;
    color: var(--dark);
    font-size: clamp(4rem, 7vw, 6.7rem);
    line-height: 0.96;
    letter-spacing: -0.055em;
    font-weight: 800;
}

.contact-page-hero h1 span {
    color: var(--primary);
}

.contact-page-hero p {
    max-width: 690px;
    margin: 34px 0 0;
    color: var(--text-light);
    font-size: 1.08rem;
    line-height: 1.8;
}

/* =========================================================
   CONTACT — INTRO
========================================================= */

.contact-intro {
    background: var(--white);
}

.contact-intro-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 100px;
    align-items: start;
    margin-top: 55px;
}

.contact-intro-grid h2 {
    margin: 0;
    color: var(--dark);
    font-size: clamp(2.9rem, 5vw, 4.8rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.contact-intro-grid h2 span {
    color: var(--primary);
}

.contact-intro-grid > div:last-child {
    max-width: 650px;
}

.contact-intro-grid p {
    margin: 0 0 22px;
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.85;
}

.contact-intro-grid p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   CONTACT — DIRECT METHODS
========================================================= */

.contact-methods {
    padding: 110px 7vw;
    background: var(--light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.contact-methods-content {
    max-width: 1180px;
    margin: 0 auto;
}

.contact-methods-content .section-label {
    margin-bottom: 22px;
}

.contact-methods-content h2 {
    margin: 0;
    color: var(--dark);
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.contact-methods-content h2 span {
    color: var(--primary);
}

.contact-method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
}

.contact-method-card {
    position: relative;
    min-height: 390px;
    display: flex;
    flex-direction: column;
    padding: 30px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.contact-method-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.contact-method-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: var(--shadow-md);
}

.contact-method-card:hover::before {
    transform: scaleX(1);
}

.contact-method-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.contact-method-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0 22px;
    color: var(--primary);
    background: var(--primary-soft);
    border-radius: 14px;
    font-size: 1.65rem;
    font-weight: 700;
}

.contact-method-card h3 {
    margin: 0;
    color: var(--dark);
    font-size: 1.55rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.contact-method-card p {
    max-width: 330px;
    margin: 14px 0 0;
    color: var(--text-light);
    font-size: 0.96rem;
    line-height: 1.7;
}

.contact-method-card strong {
    margin-top: auto;
    padding-top: 25px;
    color: var(--primary);
    font-size: 0.92rem;
    line-height: 1.5;
}

/* =========================================================
   CONTACT — FORM
========================================================= */

.contact-form-section {
    background: var(--white);
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 100px;
    align-items: start;
}

.contact-form-intro h2 {
    margin: 20px 0 0;
    color: var(--dark);
    font-size: clamp(3rem, 5vw, 4.8rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.contact-form-intro > p {
    margin: 28px 0 30px;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.8;
}

.contact-form-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-form-note span {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: var(--primary-soft);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 800;
}

.contact-form {
    padding: 40px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 9px;
    color: var(--dark);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 17px;
    color: var(--dark);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    font: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input {
    min-height: 52px;
}

.form-group textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.6;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.contact-form .button {
    margin-top: 4px;
}

/* =========================================================
   CONTACT — CTA
========================================================= */

.contact-cta {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: end;
    padding: 100px 7vw;
    color: var(--white);
    background: var(--dark);
}

.contact-cta > div {
    max-width: 1180px;
}

.contact-cta .section-label {
    color: #93c5fd;
}

.contact-cta h2 {
    margin: 20px 0 0;
    color: var(--white);
    font-size: clamp(3.5rem, 6vw, 6rem);
    line-height: 0.94;
    letter-spacing: -0.055em;
}

.contact-cta h2 span {
    color: #60a5fa;
}

.contact-cta-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    min-width: 280px;
}

.contact-cta-action p {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.98rem;
    line-height: 1.6;
}

.contact-cta-action .button-light {
    color: var(--dark);
    background: var(--white);
    border-color: var(--white);
}

.contact-cta-action .button-light:hover {
    color: var(--dark);
    background: #dbeafe;
    border-color: #dbeafe;
}

/* =========================================================
   CONTACT — RESPONSIVE
========================================================= */

@media (max-width: 1050px) {
    .contact-page-hero {
        padding: 90px 5vw;
    }

    .contact-intro-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .contact-methods {
        padding: 95px 5vw;
    }

    .contact-method-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .contact-cta {
        padding: 90px 5vw;
    }
}

@media (max-width: 800px) {
    .contact-page-hero {
        min-height: 470px;
        padding: 80px 30px;
    }

    .contact-page-hero h1 {
        font-size: 4.8rem;
    }

    .contact-page-hero p {
        font-size: 1rem;
    }

    .contact-method-grid {
        grid-template-columns: 1fr;
    }

    .contact-method-card {
        min-height: 340px;
    }

    .contact-form {
        padding: 30px;
    }

    .contact-cta {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .contact-cta-action {
        min-width: 0;
    }
}

@media (max-width: 520px) {
    .contact-page-hero {
        min-height: 410px;
        padding: 65px 22px;
    }

    .contact-page-hero h1 {
        font-size: 3.25rem;
    }

    .contact-page-hero p {
        margin-top: 24px;
        font-size: 0.96rem;
    }

    .contact-intro {
        padding: 75px 22px;
    }

    .contact-intro-grid {
        margin-top: 40px;
        gap: 35px;
    }

    .contact-intro-grid h2 {
        font-size: 2.65rem;
    }

    .contact-intro-grid p {
        font-size: 0.96rem;
    }

    .contact-methods {
        padding: 75px 22px;
    }

    .contact-methods-content h2 {
        font-size: 2.9rem;
    }

    .contact-method-grid {
        margin-top: 40px;
        gap: 16px;
    }

    .contact-method-card {
        min-height: 330px;
        padding: 25px;
        border-radius: 18px;
    }

    .contact-method-icon {
        width: 56px;
        height: 56px;
        margin-top: 25px;
    }

    .contact-method-card h3 {
        font-size: 1.45rem;
    }

    .contact-form-section {
        padding: 75px 22px;
    }

    .contact-form-intro h2 {
        font-size: 3rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form {
        padding: 24px;
        border-radius: 18px;
    }

    .contact-form .button {
        width: 100%;
        justify-content: center;
    }

    .contact-cta {
        padding: 75px 22px;
        gap: 35px;
    }

    .contact-cta h2 {
        font-size: 3.45rem;
    }

    .contact-cta-action .button {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================================
   ESPACE ÉLÈVE — DASHBOARD
========================================================= */

.student-dashboard-hero {
    position: relative;
    padding: 95px 0 85px;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 20%, rgba(37, 99, 235, 0.14), transparent 28%),
        linear-gradient(135deg, #f8fafc 0%, #ffffff 62%, #eff6ff 100%);
    border-bottom: 1px solid var(--border);
}

.student-dashboard-hero::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -100px;
    top: -110px;
    border: 1px solid rgba(37, 99, 235, 0.10);
    border-radius: 50%;
}

.student-dashboard-hero .container {
    position: relative;
    z-index: 1;
}

.student-dashboard-hero .section-label {
    margin-bottom: 22px;
}

.student-dashboard-hero h1 {
    max-width: 800px;
    margin: 0;
    color: var(--dark);
    font-size: clamp(3rem, 6vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.student-dashboard-hero p:not(.section-label) {
    max-width: 680px;
    margin: 28px 0 0;
    color: var(--text-light);
    font-size: 1.12rem;
    line-height: 1.8;
}

.student-dashboard {
    padding: 90px 0 110px;
    background: var(--light);
}

.student-welcome-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 32px 36px;
    margin-bottom: 42px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.student-label {
    display: block;
    margin-bottom: 9px;
    color: var(--text-light);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.student-welcome-card h2 {
    margin: 0;
    color: var(--dark);
    font-size: 2rem;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.student-welcome-card p {
    margin: 8px 0 0;
    color: var(--text-light);
    font-size: 0.98rem;
}

.student-status {
    min-width: 120px;
    padding-left: 28px;
    border-left: 1px solid var(--border);
}

.student-status span {
    display: block;
    margin-bottom: 6px;
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.student-status strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #15803d;
    font-size: 0.95rem;
}

.student-status strong::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
}

.student-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.student-dashboard-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 285px;
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.student-dashboard-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.student-dashboard-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow: var(--shadow-md);
}

.student-dashboard-card:hover::before {
    transform: scaleX(1);
}

.dashboard-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 25px;
    background: var(--primary-soft);
    border-radius: 14px;
    font-size: 1.65rem;
}

.student-dashboard-card h3 {
    margin: 0 0 10px;
    color: var(--dark);
    font-size: 1.35rem;
    line-height: 1.25;
}

.student-dashboard-card p {
    max-width: 330px;
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.student-dashboard-card a {
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    padding-top: 25px;
    color: var(--primary);
    font-size: 0.92rem;
    font-weight: 800;
}

.student-dashboard-card a:hover {
    color: var(--primary-dark);
}

@media (max-width: 1050px) {
    .student-dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 800px) {
    .student-dashboard-hero {
        padding: 75px 0 70px;
    }

    .student-dashboard-hero h1 {
        font-size: 3.8rem;
    }

    .student-dashboard {
        padding: 70px 0 85px;
    }

    .student-welcome-card {
        align-items: flex-start;
        flex-direction: column;
        padding: 28px;
    }

    .student-status {
        width: 100%;
        padding: 18px 0 0;
        border-left: 0;
        border-top: 1px solid var(--border);
    }
}

@media (max-width: 520px) {
    .student-dashboard-hero {
        padding: 62px 22px 60px;
    }

    .student-dashboard-hero h1 {
        font-size: 3rem;
    }

    .student-dashboard-hero p:not(.section-label) {
        font-size: 1rem;
    }

    .student-dashboard {
        padding: 60px 22px 75px;
    }

    .student-welcome-card {
        padding: 24px;
        border-radius: 18px;
    }

    .student-welcome-card h2 {
        font-size: 1.65rem;
    }

    .student-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .student-dashboard-card {
        min-height: 265px;
        padding: 25px;
        border-radius: 18px;
    }
}


/* =========================================================
   AUTH — LOGIN & REGISTER
========================================================= */

.auth-section {
    padding: 90px 0 110px;
    background: var(--light);
}

.auth-container {
    width: min(100% - 40px, 480px);
    margin-inline: auto;
}

.auth-card {
    padding: 42px 38px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header .section-label {
    margin-bottom: 14px;
}

.auth-header h1 {
    margin: 0 0 12px;
    color: var(--dark);
    font-size: 2.2rem;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.auth-header p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.auth-form-group {
    margin-bottom: 20px;
}

.auth-form-group label {
    display: block;
    margin-bottom: 9px;
    color: var(--dark);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.auth-form-group input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    color: var(--dark);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    font: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form-group input::placeholder {
    color: #94a3b8;
}

.auth-form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.auth-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 26px;
    font-size: 0.85rem;
}

.auth-form-options label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    cursor: pointer;
}

.auth-form-options input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.auth-form-options a {
    color: var(--primary);
    font-weight: 700;
}

.auth-form-options a:hover {
    color: var(--primary-dark);
}

.auth-form .button {
    width: 100%;
    justify-content: center;
}

.auth-footer {
    margin-top: 28px;
    padding-top: 26px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 800;
}

.auth-footer a:hover {
    color: var(--primary-dark);
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
    justify-content: center;
}

.auth-back-link:hover {
    color: var(--primary);
}

@media (max-width: 520px) {
    .auth-section {
        padding: 65px 0 80px;
    }

    .auth-card {
        padding: 30px 24px;
        border-radius: 18px;
    }

    .auth-header h1 {
        font-size: 1.8rem;
    }

    .auth-form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}


.auth-form-group select {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    color: var(--dark);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    font: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

/* =========================================================
   404 PAGE
========================================================= */

.error-section {
    padding: 110px 0 120px;
    background: var(--light);
    text-align: center;
}

.error-content {
    width: min(100% - 40px, 700px);
    margin-inline: auto;
}

.error-code {
    margin-bottom: 20px;
    color: var(--primary);
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.08em;
}

.error-title {
    margin-bottom: 20px;
    color: var(--dark);
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.error-title span {
    color: var(--primary);
}

.error-text {
    max-width: 540px;
    margin: 0 auto 35px;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
}

.error-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

@media (max-width: 520px) {
    .error-section {
        padding: 75px 22px 90px;
    }

    .error-text {
        font-size: 0.95rem;
    }

    .error-actions {
        flex-direction: column;
    }

    .error-actions .button {
        width: 100%;
        justify-content: center;
    }
}
