@import url('./variable.css');
@import url('./custom.css');
@import url('./media.css');
@import url('./project.css');
@import url('./about.css');
@import url('./contact.css');

/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */
#menu-toggle {
    display: none;
}

header {
    position: sticky;
    top: 0;
    z-index: 200;
    padding: 14px 0;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);

    nav {
        max-width: var(--max-width);
        margin: 0 auto;
        padding: 0 20px;

        .menu {
            display: flex;
            justify-content: center;
            align-items: center;
            list-style: none;
            gap: 8px;

            li a {
                font-family: 'DMSerifText-Regular';
                font-size: 1.05em;
                color: var(--dark-color);
                text-decoration: none;
                padding: 7px 20px;
                border-radius: 50px;
                border: 1px solid transparent;
                transition: all 0.25s ease;
                display: block;

                &:hover {
                    background: rgba(255, 255, 255, 0.65);
                    border-color: rgba(255, 255, 255, 0.85);
                    transform: translateY(-1px);
                    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
                }

                &.active {
                    background: rgba(0, 123, 255, 0.12);
                    border-color: rgba(0, 123, 255, 0.3);
                    color: var(--primary-color);
                    font-weight: bold;
                }
            }
        }
    }
}

/* ══════════════════════════════════════════
   CONTAINER
══════════════════════════════════════════ */
.container {
    margin: 0 auto;
    max-width: var(--max-width);
    padding: 0 20px;
}

/* ══════════════════════════════════════════
   HOME HERO
══════════════════════════════════════════ */
@keyframes floating-border {
    0%   { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50%  { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.about {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    min-height: calc(100vh - 70px);
    padding: 40px 20px;
    animation: fadeInUp 0.7s ease both;

    .about__img {
        flex-shrink: 0;

        img {
            width: 260px;
            height: 260px;
            object-fit: cover;
            border-radius: 50%;
            animation: floating-border 8s ease-in-out infinite;
            box-shadow: 0 20px 60px rgba(0, 123, 255, 0.2),
                        0 0 0 6px rgba(255, 255, 255, 0.65);
            border: 3px solid rgba(255, 255, 255, 0.8);
        }
    }

    .about__items {
        max-width: 520px;

        .about__items-role {
            display: inline-block;
            font-family: 'Montserrat', sans-serif;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 2.5px;
            text-transform: uppercase;
            color: var(--primary-color);
            background: rgba(0, 123, 255, 0.1);
            border: 1px solid rgba(0, 123, 255, 0.25);
            padding: 5px 16px;
            border-radius: 50px;
            margin-bottom: 20px;
        }

        .about__items-title {
            font-family: 'DMSerifText-Regular';
            font-size: 52px;
            font-weight: 800;
            line-height: 1.1;
            color: var(--dark-color);
            text-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
            margin-bottom: 18px;
        }

        .about__items-descr {
            font-family: 'Montserrat', sans-serif;
            font-size: 16px;
            font-weight: 400;
            line-height: 1.75;
            color: var(--text-muted);
            margin-bottom: 36px;
        }

        .about__items-cta {
            display: flex;
            gap: 16px;
            flex-wrap: wrap;
            margin-top: 8px;
            margin-bottom: 36px;
        }

        .about__items-social {
            display: flex;
            gap: 12px;
            align-items: center;

            a {
                display: flex;
                align-items: center;
                justify-content: center;
                width: 44px;
                height: 44px;
                border-radius: 50%;
                background: rgba(255, 255, 255, 0.55);
                border: 1px solid rgba(255, 255, 255, 0.75);
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
                transition: all 0.25s ease;

                &:hover {
                    background: rgba(255, 255, 255, 0.9);
                    transform: translateY(-3px);
                    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
                }

                img {
                    width: 22px;
                    height: 22px;
                }
            }
        }
    }
}

/* ══════════════════════════════════════════
   CTA BUTTONS
══════════════════════════════════════════ */
.btn-cta {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 50px;
    transition: all 0.25s ease;
    display: inline-block;
    letter-spacing: 0.3px;
}

.btn-cta--primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.35);
    border: none;

    &:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 28px rgba(0, 123, 255, 0.45);
    }
}

.btn-cta--secondary {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.75);
    color: var(--dark-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);

    &:hover {
        background: rgba(255, 255, 255, 0.8);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }
}

/* ══════════════════════════════════════════
   SHARED SECTION TITLE
══════════════════════════════════════════ */
.section-title {
    font-family: 'DMSerifText-Regular';
    font-size: 38px;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.section-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 48px;
}

/* Ajustements communs : largeur, contraste et actions cohérentes. */
body { background: #edf3f7; animation: none; }
:root { --text-muted: #4d5965; --max-width: 1160px; }
.container { width: min(100%, var(--max-width)); }
header { background: rgba(255,255,255,.93); border-bottom: 1px solid #d5dee6; box-shadow: none; }
header nav { position: relative; min-height: 42px; }
.language-switch {
    position: absolute;
    top: 50%;
    right: 20px;
    display: flex;
    gap: 3px;
    padding: 3px;
    transform: translateY(-50%);
    border: 1px solid #c9d4df;
    border-radius: 22px;
    background: #fff;
}
.language-switch button {
    min-width: 35px;
    min-height: 32px;
    padding: 0 7px;
    border: 0;
    border-radius: 18px;
    background: transparent;
    color: #394959;
    cursor: pointer;
    font: 700 11px 'Montserrat', sans-serif;
}
.language-switch button[aria-pressed='true'] { background: #0a62c4; color: #fff; }
.language-switch button:hover:not([aria-pressed='true']),
.language-switch button:focus-visible { background: #e8f3ff; color: #084e9d; outline: 2px solid #0a62c4; outline-offset: 1px; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 0; cursor: pointer; }
.menu-toggle img { display: block; width: 32px; height: 32px; }
.about { gap: 48px; min-height: calc(100vh - 100px); padding: 42px 0; }
.about .about__items { width: 100%; min-width: 0; max-width: 690px; }
.about .about__items .about__items-title { font-size: clamp(32px, 4vw, 50px); overflow-wrap: anywhere; }
.about__items-subtitle { color: #145c9d; font-weight: 700; margin-bottom: 16px; }
.about .about__items .about__items-descr { color: #424d58; margin-bottom: 22px; }
.about .about__items .about__items-cta { gap: 10px; margin-bottom: 22px; }
.btn-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 19px; border: 1px solid transparent; box-shadow: none; }
.btn-cta--primary { background: #0a62c4; box-shadow: none; }
.btn-cta--secondary { background: #fff; border-color: #b9c7d4; box-shadow: none; }
.home-tech { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-bottom: 20px; }
.home-tech li { border: 1px solid #b9cfe4; border-radius: 20px; padding: 5px 12px; color: #194f7b; background: #f6faff; font-size: 12px; font-weight: 700; }
.about__education { display: inline-block; color: #154f86; font-weight: 700; background: #e8f3fc; border: 1px solid #c3dbee; border-radius: 12px; padding: 9px 14px; margin-bottom: 20px; }
.about__section { padding: 42px 0 18px; gap: 38px; }
.about__items-text { color: #424d58; }
.about__items-download { margin-top: 12px; }
.about__items-download a { color: white; }
.skills__section { padding: 34px 0 52px; }
.skills__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.skills__card--wide { grid-column: 1 / -1; }
.skills__card { background: rgba(255,255,255,.78); border: 1px solid #c9d4df; box-shadow: none; }
.section-title { text-shadow: none; }
@media (max-width: 900px) { .menu-toggle { display: block; margin: 4px 0 4px 10px; } #menu-toggle { width: auto; height: auto; } .about { padding: 36px 0; } .skills__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .about { padding: 26px 0; } .about .about__items .about__items-cta { justify-content: center; } .btn-cta { width: 100%; } .home-tech { justify-content: center; } }
