
/* =========================================================
   SOUKBIKHIR — SANTÉ & RECRUTEMENT
   Homepage CSS
   ========================================================= */

:root {
    --primary: #08b6a5;
    --primary-dark: #079587;
    --blue: #0878e8;
    --navy: #071b36;
    --navy-2: #0b2749;
    --text: #14243b;
    --text-light: #64748b;
    --white: #ffffff;
    --light: #f5f8fb;
    --border: #e3eaf2;
    --green-soft: #e9faf6;
    --blue-soft: #edf5ff;

    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;

    --shadow-sm: 0 5px 20px rgba(7, 27, 54, .07);
    --shadow: 0 15px 45px rgba(7, 27, 54, .12);
    --shadow-lg: 0 25px 70px rgba(7, 27, 54, .20);

    --container: 1180px;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select {
    font-family: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {
    width: min(
        calc(100% - 40px),
        var(--container)
    );

    margin-inline: auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;

    background: linear-gradient(
        to bottom,
        rgba(2, 15, 32, .75),
        rgba(2, 15, 32, .15)
    );

    border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav-container {
    min-height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;
}


/* =========================================================
   LOGO
   ========================================================= */

.logo {
    display: flex;
    align-items: center;
    gap: 10px;

    color: var(--white);

    min-width: 205px;
}

.logo-icon {
    width: 43px;
    height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #08cbb7,
            #1479ef
        );

    font-size: 23px;

    box-shadow:
        0 8px 25px rgba(8,182,165,.25);
}

.logo strong {
    display: block;

    font-size: 21px;
    line-height: 1.1;
    letter-spacing: -.5px;
}

.logo span {
    display: block;

    font-size: 11px;

    color: rgba(255,255,255,.72);

    margin-top: 3px;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.main-nav {
    display: flex;
    align-items: center;
    gap: 27px;
}

.main-nav a {
    position: relative;

    color: rgba(255,255,255,.86);

    font-size: 14px;
    font-weight: 500;

    padding: 30px 0;

    transition: .25s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #4ee3d1;
}

.main-nav a.active::after {
    content: "";

    position: absolute;

    bottom: 18px;
    left: 0;

    width: 100%;
    height: 2px;

    border-radius: 5px;

    background: var(--primary);
}


/* =========================================================
   NAV ACTIONS
   ========================================================= */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language {
    background: transparent;
    border: 0;

    color: var(--white);

    font-size: 14px;

    padding: 10px;
}

.btn-login,
.btn-register {
    min-height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 18px;

    border-radius: 9px;

    font-size: 13px;
    font-weight: 600;

    transition: .25s ease;
}

.btn-login {
    border: 1px solid rgba(255,255,255,.65);
    color: var(--white);
}

.btn-login:hover {
    background: rgba(255,255,255,.12);
}

.btn-register {
    color: var(--white);

    background:
        linear-gradient(
            135deg,
            var(--blue),
            #1168cf
        );

    box-shadow:
        0 8px 22px rgba(8,120,232,.25);
}

.btn-register:hover {
    transform: translateY(-2px);
}


/* =========================================================
   MOBILE MENU
   ========================================================= */

.mobile-menu {
    display: none;

    width: 42px;
    height: 42px;

    border: 1px solid rgba(255,255,255,.25);
    border-radius: 9px;

    background: rgba(0,0,0,.2);

    color: white;

    font-size: 20px;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;

    min-height: 735px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background: var(--navy);
}


/* VIDEO */

.hero-video {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    z-index: 0;
}


/* DARK OVERLAY */

.hero-overlay {
    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(3,20,39,.94) 0%,
            rgba(3,20,39,.78) 37%,
            rgba(3,20,39,.42) 70%,
            rgba(3,20,39,.50) 100%
        );
}


/* subtle bottom fade */

.hero-overlay::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 180px;

    background:
        linear-gradient(
            to top,
            rgba(7,27,54,.45),
            transparent
        );
}


/* =========================================================
   HERO CONTENT
   ========================================================= */

.hero-content {
    position: relative;

    z-index: 5;

    padding-top: 85px;

    color: var(--white);
}

.hero-text {
    max-width: 650px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;

    padding: 8px 14px;

    margin-bottom: 20px;

    border: 1px solid rgba(41,219,199,.45);

    border-radius: 50px;

    background: rgba(8,182,165,.10);

    color: #62eadc;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .35px;
}

.hero h1 {
    font-size: clamp(
        42px,
        5vw,
        68px
    );

    line-height: 1.08;

    letter-spacing: -2.5px;

    font-weight: 800;

    margin-bottom: 22px;
}

.hero h1 span {
    color: #31d8c5;
}

.hero p {
    max-width: 620px;

    color: rgba(255,255,255,.87);

    font-size: 18px;

    line-height: 1.7;

    margin-bottom: 32px;
}


/* =========================================================
   HERO BUTTONS
   ========================================================= */

.hero-buttons {
    display: flex;
    align-items: center;

    gap: 14px;
}

.btn-primary,
.btn-outline {
    min-height: 57px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 15px;

    padding: 0 25px;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 700;

    transition: .3s ease;
}

.btn-primary {
    color: white;

    background:
        linear-gradient(
            135deg,
            #08c7b4,
            #069d91
        );

    box-shadow:
        0 12px 30px rgba(8,182,165,.25);
}

.btn-primary:hover {
    transform: translateY(-3px);

    box-shadow:
        0 17px 35px rgba(8,182,165,.35);
}

.btn-outline {
    color: white;

    border: 1px solid rgba(255,255,255,.55);

    background: rgba(255,255,255,.05);

    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255,255,255,.14);

    border-color: white;

    transform: translateY(-3px);
}


/* =========================================================
   VIDEO BUTTON
   ========================================================= */

.video-button {
    position: absolute;

    right: 25px;
    top: 45%;

    display: flex;
    align-items: center;

    gap: 13px;

    border: 0;

    background: transparent;

    color: white;

    text-align: left;
}

.video-button .play {
    width: 56px;
    height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #10c7b6;

    box-shadow:
        0 0 0 10px rgba(16,199,182,.15);

    font-size: 17px;

    padding-left: 3px;

    transition: .3s ease;
}

.video-button:hover .play {
    transform: scale(1.08);
}

.video-button strong {
    display: block;

    font-size: 14px;
}

.video-button small {
    display: block;

    color: rgba(255,255,255,.65);

    font-size: 11px;

    margin-top: 2px;
}


/* =========================================================
   SEARCH BOX
   ========================================================= */

.search-wrapper {
    position: absolute;

    z-index: 10;

    left: 50%;
    bottom: -5px;

    width: min(
        calc(100% - 40px),
        1040px
    );

    transform: translateX(-50%);
}

.search-box {
    display: grid;

    grid-template-columns:
        1.25fr
        1fr
        .9fr
        155px;

    gap: 10px;

    padding: 10px;

    border-radius: 16px;

    background: rgba(255,255,255,.98);

    box-shadow:
        0 18px 55px rgba(3,20,39,.25);
}

.search-field {
    min-height: 56px;

    display: flex;
    align-items: center;

    gap: 11px;

    padding: 0 16px;

    border: 1px solid var(--border);

    border-radius: 9px;

    background: white;
}

.search-field span {
    color: var(--primary);

    font-size: 22px;

    line-height: 1;
}

.search-field input,
.search-field select {
    width: 100%;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--text);

    font-size: 13px;
}

.search-field select {
    cursor: pointer;
}

.search-field input::placeholder {
    color: #718096;
}

.search-button {
    border: 0;

    border-radius: 9px;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    font-size: 14px;
    font-weight: 700;

    transition: .25s ease;
}

.search-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(8,182,165,.25);
}


/* =========================================================
   POPULAR SEARCH
   ========================================================= */

.popular-searches {
    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    padding: 13px 18px;

    border-radius: 0 0 15px 15px;

    background: white;

    box-shadow:
        0 18px 55px rgba(3,20,39,.10);

    color: var(--text-light);

    font-size: 11px;
}

.popular-searches strong {
    color: var(--text);

    margin-right: 5px;
}

.popular-searches a {
    padding: 6px 12px;

    border-radius: 50px;

    background: #f1f5f9;

    color: #526174;

    transition: .2s ease;
}

.popular-searches a:hover {
    background: var(--green-soft);

    color: var(--primary-dark);
}


/* =========================================================
   STATS
   ========================================================= */

.stats {
    position: relative;

    z-index: 15;

    padding: 0 0 65px;
}

.stats-grid {
    min-height: 115px;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    align-items: center;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #071d3a,
            #0d3159
        );

    box-shadow:
        0 20px 50px rgba(7,27,54,.20);
}

.stat {
    min-height: 75px;

    display: flex;
    align-items: center;

    gap: 15px;

    padding: 10px 30px;

    border-right:
        1px solid rgba(255,255,255,.13);
}

.stat:last-child {
    border-right: 0;
}

.stat-icon {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #42ddcb;

    background:
        rgba(8,182,165,.15);

    font-size: 21px;
}

.stat strong {
    display: block;

    color: white;

    font-size: 25px;

    line-height: 1.1;
}

.stat span {
    display: block;

    color: rgba(255,255,255,.65);

    font-size: 11px;

    margin-top: 5px;
}


/* =========================================================
   CATEGORIES
   ========================================================= */

.categories {
    padding: 45px 0 80px;

    background: white;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 28px;
}

.section-label {
    display: block;

    color: var(--primary-dark);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1px;

    margin-bottom: 6px;
}

.section-heading h2 {
    font-size: 32px;

    line-height: 1.2;

    letter-spacing: -.8px;
}

.section-heading p {
    color: var(--text-light);

    font-size: 14px;

    margin-top: 6px;
}

.section-heading > a {
    color: var(--primary-dark);

    font-size: 13px;
    font-weight: 700;
}

.category-grid {
    display: grid;

    grid-template-columns:
        repeat(8, 1fr);

    gap: 12px;
}

.category-card {
    min-height: 145px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 15px 8px;

    text-align: center;

    border: 1px solid var(--border);

    border-radius: 14px;

    background: white;

    box-shadow:
        0 5px 20px rgba(7,27,54,.03);

    transition: .3s ease;
}

.category-card:hover {
    transform: translateY(-6px);

    border-color: rgba(8,182,165,.25);

    box-shadow:
        0 15px 35px rgba(7,27,54,.10);
}

.category-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 10px;

    border-radius: 13px;

    background: #f4f8fb;

    font-size: 23px;
}

.category-card h3 {
    font-size: 12px;

    line-height: 1.35;

    margin-bottom: 5px;
}

.category-card span {
    color: var(--text-light);

    font-size: 10px;
}


/* =========================================================
   DUAL CTA
   ========================================================= */

.dual-cta {
    padding: 0 0 85px;

    background: white;
}

.dual-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 20px;
}

.cta-card {
    min-height: 340px;

    position: relative;

    overflow: hidden;

    display: flex;

    border-radius: 22px;

    padding: 38px;

    box-shadow:
        var(--shadow-sm);
}

.cta-card.candidate {
    background:
        linear-gradient(
            135deg,
            #e9faf7,
            #f6fffd
        );
}

.cta-card.employer {
    background:
        linear-gradient(
            135deg,
            #edf5ff,
            #f8fbff
        );
}

.cta-content {
    position: relative;

    z-index: 2;

    max-width: 65%;
}

.cta-card h2 {
    font-size: 28px;

    line-height: 1.2;

    margin-bottom: 12px;

    letter-spacing: -.6px;
}

.candidate h2 {
    color: #008d7d;
}

.employer h2 {
    color: #0873d8;
}

.cta-card p {
    color: #596a7d;

    font-size: 13px;

    line-height: 1.65;

    margin-bottom: 16px;
}

.cta-card ul {
    list-style: none;

    display: grid;

    gap: 6px;

    margin-bottom: 22px;
}

.cta-card li {
    color: #42536a;

    font-size: 12px;
}

.cta-card li::first-letter {
    color: var(--primary);
}

.cta-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 43px;

    padding: 0 17px;

    border-radius: 8px;

    color: white;

    font-size: 12px;
    font-weight: 700;

    transition: .25s ease;
}

.cta-button.green {
    background: #079d8e;
}

.cta-button.blue {
    background: #0877df;
}

.cta-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(7,27,54,.12);
}

.cta-image {
    position: absolute;

    right: 18px;
    bottom: -20px;

    width: 180px;
    height: 240px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 135px;

    opacity: .9;
}


/* =========================================================
   URGENT RECRUITMENT
   ========================================================= */

.urgent {
    padding: 65px 0;

    background:
        linear-gradient(
            135deg,
            #071b36,
            #0d3860
        );
}

.urgent-content {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;

    color: white;
}

.urgent-content > div {
    max-width: 720px;
}

.urgent-content span {
    color: #4ee2d1;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1px;
}

.urgent-content h2 {
    font-size: 32px;

    line-height: 1.2;

    margin: 8px 0 10px;

    letter-spacing: -.8px;
}

.urgent-content p {
    color: rgba(255,255,255,.70);

    font-size: 14px;
}

.btn-white {
    flex: 0 0 auto;

    min-height: 50px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 22px;

    border-radius: 9px;

    background: white;

    color: var(--navy);

    font-size: 13px;
    font-weight: 700;

    transition: .25s ease;
}

.btn-white:hover {
    transform: translateY(-3px);

    box-shadow:
        0 12px 30px rgba(0,0,0,.20);
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    background: #041427;

    color: white;

    padding-top: 60px;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        1.7fr
        1fr
        1fr
        1fr;

    gap: 50px;

    padding-bottom: 50px;
}

.footer-logo {
    font-size: 23px;

    font-weight: 800;

    margin-bottom: 3px;
}

.footer-grid > div:first-child > p:first-of-type {
    color: #31cfc0;

    font-size: 11px;

    margin-bottom: 15px;
}

.footer-grid > div:first-child > p:last-child {
    max-width: 340px;

    color: rgba(255,255,255,.52);

    font-size: 12px;

    line-height: 1.7;
}

.footer-grid h4 {
    font-size: 13px;

    margin-bottom: 17px;
}

.footer-grid a {
    display: block;

    color: rgba(255,255,255,.55);

    font-size: 12px;

    margin-bottom: 10px;

    transition: .2s ease;
}

.footer-grid a:hover {
    color: #42ddcb;

    transform: translateX(3px);
}

.footer-bottom {
    padding: 18px 20px;

    border-top:
        1px solid rgba(255,255,255,.08);

    color: rgba(255,255,255,.38);

    font-size: 11px;

    text-align: center;
}


/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.hero-text {
    animation:
        fadeUp .8s ease both;
}

.search-wrapper {
    animation:
        fadeUp .9s .2s ease both;
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .main-nav {
        gap: 15px;
    }

    .main-nav a {
        font-size: 12px;
    }

    .logo {
        min-width: auto;
    }

    .category-grid {
        grid-template-columns:
            repeat(4, 1fr);
    }

    .search-box {
        grid-template-columns:
            1fr 1fr;

        padding: 12px;
    }

    .search-button {
        min-height: 54px;
    }

    .search-wrapper {
        bottom: -100px;
    }

    .hero {
        min-height: 820px;
    }

    .stats {
        padding-top: 105px;
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 760px) {

    .container {
        width: min(
            calc(100% - 28px),
            var(--container)
        );
    }


    /* HEADER */

    .nav-container {
        min-height: 70px;
    }

    .main-nav,
    .nav-actions {
        display: none;
    }

    .mobile-menu {
        display: flex;

        align-items: center;
        justify-content: center;
    }


    /* HERO */

    .hero {
        min-height: 820px;

        align-items: flex-start;
    }

    .hero-content {
        padding-top: 125px;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-badge {
        font-size: 9px;

        padding: 7px 10px;
    }

    .hero h1 {
        font-size: 39px;

        letter-spacing: -1.6px;

        line-height: 1.08;
    }

    .hero p {
        font-size: 15px;

        line-height: 1.6;
    }


    /* HERO BUTTONS */

    .hero-buttons {
        flex-direction: column;

        align-items: stretch;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
    }


    /* VIDEO BUTTON */

    .video-button {
        display: none;
    }


    /* SEARCH */

    .search-wrapper {
        bottom: -250px;

        width: calc(100% - 28px);
    }

    .search-box {
        grid-template-columns: 1fr;

        padding: 10px;
    }

    .search-field {
        min-height: 52px;
    }

    .search-button {
        min-height: 52px;
    }

    .popular-searches {
        display: none;
    }


    /* STATS */

    .stats {
        padding-top: 270px;

        padding-bottom: 45px;
    }

    .stats-grid {
        grid-template-columns:
            repeat(2, 1fr);

        border-radius: 16px;
    }

    .stat {
        padding: 20px 15px;

        min-height: 100px;

        border-right:
            1px solid rgba(255,255,255,.12);

        border-bottom:
            1px solid rgba(255,255,255,.12);
    }

    .stat:nth-child(2) {
        border-right: 0;
    }

    .stat:nth-child(3),
    .stat:nth-child(4) {
        border-bottom: 0;
    }

    .stat:nth-child(4) {
        border-right: 0;
    }

    .stat strong {
        font-size: 20px;
    }

    .stat span {
        font-size: 9px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;

        flex-basis: 40px;

        font-size: 17px;
    }


    /* CATEGORIES */

    .categories {
        padding-top: 30px;

        padding-bottom: 50px;
    }

    .section-heading {
        align-items: flex-start;

        flex-direction: column;

        gap: 10px;
    }

    .section-heading h2 {
        font-size: 27px;
    }

    .category-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 10px;
    }

    .category-card {
        min-height: 135px;
    }


    /* CTA */

    .dual-cta {
        padding-bottom: 55px;
    }

    .dual-grid {
        grid-template-columns: 1fr;
    }

    .cta-card {
        min-height: 370px;

        padding: 28px 23px;
    }

    .cta-content {
        max-width: 72%;
    }

    .cta-card h2 {
        font-size: 24px;
    }

    .cta-image {
        width: 130px;

        right: -5px;

        font-size: 95px;
    }


    /* URGENT */

    .urgent {
        padding: 50px 0;
    }

    .urgent-content {
        flex-direction: column;

        align-items: flex-start;

        gap: 25px;
    }

    .urgent-content h2 {
        font-size: 26px;
    }

    .btn-white {
        width: 100%;
    }


    /* FOOTER */

    .footer-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 35px 25px;
    }

    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .hero h1 {
        font-size: 34px;
    }

    .hero-content {
        padding-top: 115px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat {
        border-right: 0 !important;
        border-bottom:
            1px solid rgba(255,255,255,.12) !important;
    }

    .stat:last-child {
        border-bottom: 0 !important;
    }

    .category-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cta-content {
        max-width: 100%;
    }

    .cta-image {
        opacity: .12;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

}

