/* =========================================================
   ESTGN — PAGE À PROPOS
   Design technologique moderne
========================================================= */

:root {
    --estgn-blue: #2563eb;
    --estgn-blue-dark: #1d4ed8;
    --estgn-blue-light: #eff6ff;
    --estgn-dark: #07111f;
    --estgn-dark-soft: #0d1b2a;
    --estgn-text: #172033;
    --estgn-muted: #64748b;
    --estgn-border: #e2e8f0;
    --estgn-white: #ffffff;
    --estgn-radius: 18px;
    --estgn-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--estgn-text);
    background: #ffffff;
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
}

/* =========================================================
   HEADER
========================================================= */

.estgn-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.estgn-header-container {
    width: min(1400px, 94%);
    min-height: 82px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

/* =========================================================
   LOGO
========================================================= */

.estgn-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.estgn-logo img {
    width: auto;
    height: 58px;
    object-fit: contain;
}

/* =========================================================
   NAVIGATION
========================================================= */

.estgn-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
}

.estgn-navigation a {
    position: relative;
    padding: 10px 14px;

    font-size: 14px;
    font-weight: 600;
    color: #475569;

    transition:
        color 0.3s ease,
        background 0.3s ease;
}

.estgn-navigation a::after {
    content: "";

    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 3px;

    height: 2px;
    border-radius: 10px;

    background: var(--estgn-blue);

    transform: scaleX(0);
    transform-origin: center;

    transition: transform 0.3s ease;
}

.estgn-navigation a:hover {
    color: var(--estgn-blue);
}

.estgn-navigation a:hover::after,
.estgn-navigation a.active::after {
    transform: scaleX(1);
}

.estgn-navigation a.active {
    color: var(--estgn-blue);
}

/* =========================================================
   HEADER ACTIONS
========================================================= */

.estgn-header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.estgn-lms-button,
.estgn-login-button,
.estgn-apply-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 42px;
    padding: 0 15px;

    border-radius: 9px;

    font-size: 13px;
    font-weight: 700;

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        color 0.3s ease,
        box-shadow 0.3s ease;
}

.estgn-lms-button {
    color: var(--estgn-blue);
    background: var(--estgn-blue-light);
}

.estgn-lms-button:hover {
    background: #dbeafe;
    transform: translateY(-2px);
}

.estgn-login-button {
    color: #334155;
    border: 1px solid var(--estgn-border);
    background: #ffffff;
}

.estgn-login-button:hover {
    color: var(--estgn-blue);
    border-color: #bfdbfe;
    transform: translateY(-2px);
}

.estgn-apply-button {
    color: white;
    background: var(--estgn-blue);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.20);
}

.estgn-apply-button:hover {
    background: var(--estgn-blue-dark);
    transform: translateY(-2px);
}

/* =========================================================
   MENU MOBILE
========================================================= */

.estgn-menu-button {
    display: none;

    width: 44px;
    height: 44px;

    border: 1px solid var(--estgn-border);
    border-radius: 10px;

    background: #ffffff;

    cursor: pointer;

    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.estgn-menu-button span {
    display: block;
    width: 21px;
    height: 2px;
    background: var(--estgn-dark);
    border-radius: 10px;
}

/* =========================================================
   HERO À PROPOS
========================================================= */

.estgn-about-hero {
    position: relative;
    overflow: hidden;

    min-height: 510px;

    display: flex;
    align-items: center;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(37, 99, 235, 0.18),
            transparent 32%
        ),
        radial-gradient(
            circle at 10% 90%,
            rgba(59, 130, 246, 0.10),
            transparent 28%
        ),
        var(--estgn-dark);

    color: white;
}

.estgn-about-hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        );

    background-size: 55px 55px;

    pointer-events: none;
}

.estgn-about-hero-container {
    position: relative;
    z-index: 2;

    width: min(1200px, 92%);
    margin: 0 auto;

    padding: 100px 0;
}

.estgn-about-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 22px;

    color: #93c5fd;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.estgn-about-hero-label::before {
    content: "";

    width: 35px;
    height: 2px;

    background: #3b82f6;
    border-radius: 20px;
}

.estgn-about-hero h1 {
    max-width: 850px;

    font-family: "Montserrat", sans-serif;

    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.estgn-about-hero h1 span {
    display: block;
    color: #60a5fa;
}

.estgn-about-hero-description {
    max-width: 720px;

    margin-top: 28px;

    color: #cbd5e1;

    font-size: 17px;
    line-height: 1.8;
}

/* =========================================================
   BOUTONS HERO
========================================================= */

.estgn-about-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 34px;
}

.estgn-about-primary,
.estgn-about-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 50px;
    padding: 0 22px;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 700;

    transition: 0.3s ease;
}

.estgn-about-primary {
    color: white;
    background: var(--estgn-blue);
}

.estgn-about-primary:hover {
    background: #3b82f6;
    transform: translateY(-2px);
}

.estgn-about-secondary {
    color: white;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.05);
}

.estgn-about-secondary:hover {
    background: rgba(255,255,255,0.10);
}

/* =========================================================
   SECTION GÉNÉRALE
========================================================= */

.estgn-about-section {
    width: min(1200px, 92%);
    margin: 0 auto;
    padding: 100px 0;
}

.estgn-section-label {
    display: inline-block;

    margin-bottom: 14px;

    color: var(--estgn-blue);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.estgn-section-heading {
    max-width: 760px;
    margin-bottom: 55px;
}

.estgn-section-heading h2 {
    font-family: "Montserrat", sans-serif;

    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.15;
    font-weight: 800;

    color: var(--estgn-dark);

    letter-spacing: -0.03em;
}

.estgn-section-heading h2 span {
    color: var(--estgn-blue);
}

.estgn-section-heading p {
    margin-top: 18px;

    color: var(--estgn-muted);

    font-size: 16px;
    line-height: 1.8;
}

/* =========================================================
   PRÉSENTATION DE L'ÉCOLE
========================================================= */

.estgn-school-introduction {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 70px;

    align-items: center;
}

.estgn-school-content h2 {
    font-family: "Montserrat", sans-serif;

    font-size: clamp(30px, 4vw, 45px);
    line-height: 1.15;

    color: var(--estgn-dark);
}

.estgn-school-content h2 span {
    color: var(--estgn-blue);
}

.estgn-school-content p {
    margin-top: 20px;

    color: var(--estgn-muted);

    font-size: 16px;
    line-height: 1.85;
}

.estgn-school-image {
    position: relative;

    min-height: 420px;

    border-radius: 24px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #0f172a,
            #172554
        );

    box-shadow: var(--estgn-shadow);
}

.estgn-school-image::before {
    content: "";

    position: absolute;
    width: 300px;
    height: 300px;

    border: 1px solid rgba(96, 165, 250, 0.25);
    border-radius: 50%;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);
}

.estgn-school-image::after {
    content: "";

    position: absolute;
    width: 190px;
    height: 190px;

    border: 1px solid rgba(96, 165, 250, 0.20);
    border-radius: 50%;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);
}

.estgn-school-image-content {
    position: absolute;
    inset: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    z-index: 2;
}

.estgn-school-image-content i {
    width: 90px;
    height: 90px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 25px;

    border-radius: 24px;

    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(96, 165, 250, 0.25);

    color: #60a5fa;

    font-size: 38px;
}

.estgn-school-image-content strong {
    font-family: "Montserrat", sans-serif;

    font-size: 22px;
    color: white;
}

.estgn-school-image-content span {
    margin-top: 6px;

    color: #94a3b8;

    font-size: 12px;
    letter-spacing: 0.15em;
}

/* =========================================================
   MISSION / VISION / VALEURS
========================================================= */

.estgn-values {
    background: #f8fafc;
}

.estgn-values-container {
    width: min(1200px, 92%);
    margin: 0 auto;

    padding: 100px 0;
}

.estgn-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.estgn-value-card {
    padding: 35px;

    border: 1px solid var(--estgn-border);
    border-radius: var(--estgn-radius);

    background: white;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.estgn-value-card:hover {
    transform: translateY(-7px);

    border-color: #bfdbfe;

    box-shadow: var(--estgn-shadow);
}

.estgn-value-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 24px;

    border-radius: 14px;

    color: var(--estgn-blue);
    background: var(--estgn-blue-light);

    font-size: 22px;
}

.estgn-value-card h3 {
    margin-bottom: 12px;

    font-family: "Montserrat", sans-serif;

    font-size: 20px;
    font-weight: 800;

    color: var(--estgn-dark);
}

.estgn-value-card p {
    color: var(--estgn-muted);

    font-size: 14px;
    line-height: 1.8;
}

/* =========================================================
   APPROCHE PÉDAGOGIQUE
========================================================= */

.estgn-pedagogy {
    width: min(1200px, 92%);
    margin: 0 auto;

    padding: 100px 0;
}

.estgn-pedagogy-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;

    gap: 70px;

    align-items: center;
}

.estgn-pedagogy-content h2 {
    font-family: "Montserrat", sans-serif;

    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.15;

    color: var(--estgn-dark);
}

.estgn-pedagogy-content h2 span {
    color: var(--estgn-blue);
}

.estgn-pedagogy-content p {
    margin-top: 20px;

    color: var(--estgn-muted);

    line-height: 1.85;
}

.estgn-pedagogy-list {
    display: grid;
    gap: 15px;
}

.estgn-pedagogy-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;

    padding: 22px;

    border: 1px solid var(--estgn-border);
    border-radius: 14px;

    background: white;

    transition: 0.3s ease;
}

.estgn-pedagogy-item:hover {
    border-color: #bfdbfe;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    transform: translateX(5px);
}

.estgn-pedagogy-item-icon {
    flex-shrink: 0;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    color: var(--estgn-blue);
    background: var(--estgn-blue-light);
}

.estgn-pedagogy-item h3 {
    margin-bottom: 5px;

    font-size: 16px;
    font-weight: 800;

    color: var(--estgn-dark);
}

.estgn-pedagogy-item p {
    margin: 0;

    color: var(--estgn-muted);

    font-size: 13px;
    line-height: 1.7;
}

/* =========================================================
   CHIFFRES CLÉS
========================================================= */

.estgn-about-statistics {
    position: relative;

    padding: 75px 0;

    background: var(--estgn-dark);

    color: white;

    overflow: hidden;
}

.estgn-about-statistics::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.025) 1px,
            transparent 1px
        );

    background-size: 50px 50px;
}

.estgn-statistics-container {
    position: relative;
    z-index: 2;

    width: min(1200px, 92%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.estgn-about-stat {
    text-align: center;
}

.estgn-about-stat strong {
    display: block;

    font-family: "Montserrat", sans-serif;

    font-size: clamp(36px, 5vw, 58px);
    line-height: 1;

    color: #60a5fa;
}

.estgn-about-stat span {
    display: block;

    margin-top: 12px;

    color: #cbd5e1;

    font-size: 13px;
    font-weight: 600;
}

/* =========================================================
   TECHNOLOGIES
========================================================= */

.estgn-technologies {
    width: min(1200px, 92%);
    margin: 0 auto;

    padding: 100px 0;
}

.estgn-technologies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.estgn-technology-card {
    display: flex;
    align-items: center;
    gap: 18px;

    padding: 25px;

    border: 1px solid var(--estgn-border);
    border-radius: 14px;

    background: white;

    transition: 0.3s ease;
}

.estgn-technology-card:hover {
    transform: translateY(-5px);

    border-color: #bfdbfe;

    box-shadow: var(--estgn-shadow);
}

.estgn-technology-icon {
    width: 52px;
    height: 52px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: var(--estgn-blue-light);
    color: var(--estgn-blue);

    font-size: 21px;
}

.estgn-technology-card h3 {
    font-size: 15px;
    font-weight: 800;

    color: var(--estgn-dark);
}

.estgn-technology-card p {
    margin-top: 3px;

    color: var(--estgn-muted);

    font-size: 12px;
}

/* =========================================================
   CTA
========================================================= */

.estgn-about-cta {
    width: min(1200px, 92%);
    margin: 0 auto 100px;

    padding: 60px;

    position: relative;
    overflow: hidden;

    border-radius: 24px;

    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(96,165,250,0.25),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #0f172a,
            #172554
        );

    color: white;
}

.estgn-about-cta-content {
    position: relative;
    z-index: 2;

    max-width: 750px;
}

.estgn-about-cta h2 {
    font-family: "Montserrat", sans-serif;

    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
    font-weight: 800;
}

.estgn-about-cta h2 span {
    color: #60a5fa;
}

.estgn-about-cta p {
    margin-top: 18px;

    color: #cbd5e1;

    font-size: 15px;
    line-height: 1.8;
}

.estgn-about-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-top: 28px;

    padding: 14px 22px;

    border-radius: 10px;

    background: var(--estgn-blue);
    color: white;

    font-size: 14px;
    font-weight: 700;

    transition: 0.3s ease;
}

.estgn-about-cta-button:hover {
    background: #3b82f6;
    transform: translateY(-2px);
}

/* =========================================================
   FOOTER
========================================================= */

.estgn-footer {
    background: var(--estgn-dark);
    color: white;
}

/* =========================================================
   RESPONSIVE — TABLETTE
========================================================= */

@media (max-width: 1100px) {

    .estgn-header-container {
        gap: 15px;
    }

    .estgn-navigation {
        gap: 0;
    }

    .estgn-navigation a {
        padding: 9px 9px;
        font-size: 13px;
    }

    .estgn-header-actions {
        gap: 5px;
    }

    .estgn-lms-button,
    .estgn-login-button,
    .estgn-apply-button {
        padding: 0 10px;
        font-size: 12px;
    }

    .estgn-school-introduction,
    .estgn-pedagogy-grid {
        gap: 45px;
    }

    .estgn-technologies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 850px) {

    .estgn-header-container {
        min-height: 72px;
    }

    .estgn-logo img {
        height: 50px;
    }

    .estgn-navigation {
        display: none;

        position: absolute;

        top: 72px;
        left: 0;
        right: 0;

        padding: 18px;

        flex-direction: column;
        align-items: stretch;

        background: white;

        border-bottom: 1px solid var(--estgn-border);

        box-shadow: 0 20px 30px rgba(15, 23, 42, 0.08);
    }

    .estgn-navigation.active {
        display: flex;
    }

    .estgn-navigation a {
        padding: 13px 15px;

        border-radius: 8px;
    }

    .estgn-navigation a:hover,
    .estgn-navigation a.active {
        background: var(--estgn-blue-light);
    }

    .estgn-navigation a::after {
        display: none;
    }

    .estgn-header-actions {
        display: none;
    }

    .estgn-menu-button {
        display: flex;
    }

    .estgn-about-hero {
        min-height: auto;
    }

    .estgn-about-hero-container {
        padding: 80px 0;
    }

    .estgn-about-hero-description {
        font-size: 15px;
    }

    .estgn-school-introduction,
    .estgn-pedagogy-grid {
        grid-template-columns: 1fr;
    }

    .estgn-school-image {
        min-height: 350px;
    }

    .estgn-values-grid {
        grid-template-columns: 1fr;
    }

    .estgn-statistics-container {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 45px;
    }

    .estgn-about-cta {
        padding: 45px 30px;
    }
}

/* =========================================================
   RESPONSIVE — PETIT MOBILE
========================================================= */

@media (max-width: 550px) {

    .estgn-header-container {
        width: 90%;
    }

    .estgn-logo img {
        height: 45px;
    }

    .estgn-about-hero-container {
        padding: 65px 0;
    }

    .estgn-about-hero h1 {
        font-size: 40px;
    }

    .estgn-about-hero-description {
        font-size: 14px;
    }

    .estgn-about-hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .estgn-about-primary,
    .estgn-about-secondary {
        width: 100%;
    }

    .estgn-about-section,
    .estgn-values-container,
    .estgn-pedagogy,
    .estgn-technologies {
        padding: 70px 0;
    }

    .estgn-section-heading {
        margin-bottom: 38px;
    }

    .estgn-section-heading h2 {
        font-size: 31px;
    }

    .estgn-school-image {
        min-height: 300px;
    }

    .estgn-value-card {
        padding: 27px;
    }

    .estgn-statistics-container {
        grid-template-columns: 1fr 1fr;
        gap: 35px 15px;
    }

    .estgn-about-stat strong {
        font-size: 38px;
    }

    .estgn-about-stat span {
        font-size: 11px;
    }

    .estgn-technologies-grid {
        grid-template-columns: 1fr;
    }

    .estgn-about-cta {
        margin-bottom: 70px;
        padding: 38px 25px;
        border-radius: 18px;
    }

    .estgn-about-cta h2 {
        font-size: 30px;
    }
}

/* =========================================================
   ACCESSIBILITÉ
========================================================= */

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 3px;
}

/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes estgnFadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.estgn-about-hero-container {
    animation: estgnFadeUp 0.8s ease both;
}

.estgn-value-card,
.estgn-technology-card,
.estgn-pedagogy-item {
    animation: estgnFadeUp 0.7s ease both;
}

/* =========================================================
   PRÉVENTION DU DÉBORDEMENT
========================================================= */

.estgn-about-hero,
.estgn-values,
.estgn-about-statistics,
.estgn-about-cta {
    max-width: 100%;
    overflow: hidden;
}
