:root {
    --green: #245c43;
    --dark: #173d2d;
    --cream: #f5f3eb;
    --light-green: #eaf1ec;
    --text: #1c2720;
    --muted: #5d685f;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--text);
    font-family: "Manrope", Arial, sans-serif;
}


/* =========================
   NAVBAR
========================= */

.navbar {
    background: rgba(245, 243, 235, 0.96) !important;
    border-bottom: 1px solid rgba(23, 61, 45, 0.1);
    backdrop-filter: blur(8px);
}

.navbar-brand {
    color: var(--dark) !important;
    font-weight: 800 !important;
    font-size: 1.35rem;

    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand img {
    object-fit: contain;
}

.nav-link {
    color: #405047 !important;
    font-weight: 600;
    margin-left: 8px;
    transition: 0.2s ease;
}

.nav-link:hover {
    color: var(--green) !important;
}

.navbar-toggler {
    border-color: rgba(23, 61, 45, 0.2);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.15rem rgba(36, 92, 67, 0.15);
}


/* =========================
   BOUTONS SANEFISH
========================= */

/* Bouton principal */

.btn.btn-success {
    background-color: #173d2d !important;
    background: #173d2d !important;

    border: 1px solid #173d2d !important;
    color: #ffffff !important;

    border-radius: 12px;
    font-weight: 800;

    padding: 12px 24px;

    box-shadow: 0 8px 22px rgba(23, 61, 45, 0.22);

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.btn.btn-success:hover {
    background-color: #245c43 !important;
    background: #245c43 !important;

    border-color: #245c43 !important;
    color: #ffffff !important;

    transform: translateY(-2px);

    box-shadow: 0 12px 28px rgba(23, 61, 45, 0.28);
}

.btn.btn-success:focus {
    background-color: #173d2d !important;
    background: #173d2d !important;

    border-color: #173d2d !important;
    color: #ffffff !important;

    box-shadow: 0 0 0 0.2rem rgba(36, 92, 67, 0.18);
}

.btn.btn-success:active {
    background-color: #173d2d !important;
    background: #173d2d !important;

    border-color: #173d2d !important;
    color: #ffffff !important;

    transform: translateY(0);

    box-shadow: 0 5px 12px rgba(23, 61, 45, 0.18);
}


/* =========================
   BOUTON QUESTIONNAIRE NAVBAR
========================= */

.navbar .btn.btn-success {
    background-color: #173d2d !important;
    background: #173d2d !important;

    border-color: #173d2d !important;
    color: #ffffff !important;

    border-radius: 12px;

    padding: 11px 22px;

    box-shadow: 0 7px 18px rgba(23, 61, 45, 0.18);
}

.navbar .btn.btn-success:hover {
    background-color: #245c43 !important;
    background: #245c43 !important;

    border-color: #245c43 !important;
    color: #ffffff !important;
}


/* =========================
   BOUTONS HERO
========================= */

.hero .btn-success,
.hero .btn-outline-dark {
    min-height: 54px;
    border-radius: 12px;
}

.hero .btn-success {
    background-color: #173d2d !important;
    background: #173d2d !important;

    border-color: #173d2d !important;
    color: #ffffff !important;

    padding-left: 27px;
    padding-right: 27px;
}

.hero .btn-success:hover {
    background-color: #245c43 !important;
    background: #245c43 !important;

    border-color: #245c43 !important;
    color: #ffffff !important;
}

.hero .btn + .btn {
    margin-left: 10px;
}

.btn-lg {
    min-height: 54px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* =========================
   BOUTON SECONDAIRE
========================= */

.btn.btn-outline-dark {
    background-color: #ffffff !important;
    background: #ffffff !important;

    color: #173d2d !important;

    border: 1px solid rgba(23, 61, 45, 0.25) !important;

    border-radius: 12px;
    font-weight: 800;

    padding: 12px 24px;

    box-shadow: 0 6px 18px rgba(23, 61, 45, 0.08);

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.btn.btn-outline-dark:hover {
    background-color: #eaf1ec !important;
    background: #eaf1ec !important;

    border-color: #245c43 !important;
    color: #173d2d !important;

    transform: translateY(-2px);

    box-shadow: 0 10px 22px rgba(23, 61, 45, 0.13);
}

.btn.btn-outline-dark:focus {
    background-color: #ffffff !important;
    background: #ffffff !important;

    color: #173d2d !important;

    box-shadow: 0 0 0 0.2rem rgba(36, 92, 67, 0.12);
}


/* =========================
   HERO
========================= */

.hero {
    padding: 100px 0 85px;
    background: var(--cream);
}

.hero .badge {
    display: inline-block;

    padding: 9px 15px;

    border-radius: 50px;

    background: #e2ece6 !important;
    color: var(--green) !important;

    font-size: 0.85rem;
    font-weight: 800;
}

.hero h1 {
    color: var(--dark);

    font-size: clamp(2.7rem, 6vw, 5rem);
    line-height: 1.02;
    letter-spacing: -2px;

    font-weight: 800;
    max-width: 850px;
}

.hero p {
    max-width: 680px;

    font-size: 1.1rem;
    line-height: 1.7;

    color: var(--muted);

    margin-top: 24px;
}

.hero img {
    max-height: 390px;
    width: auto;
    object-fit: contain;
}


/* =========================
   SECTIONS
========================= */

section {
    scroll-margin-top: 90px;
}

section.py-5 {
    padding-top: 90px !important;
    padding-bottom: 90px !important;
}

.bg-light {
    background: #eef2ee !important;
}

h2 {
    color: var(--dark);
    font-weight: 800;
    letter-spacing: -0.7px;
}

h5 {
    color: var(--dark);
    font-weight: 800;
}

p {
    line-height: 1.7;
}


/* =========================
   CARTES
========================= */

.card {
    border: 1px solid rgba(23, 61, 45, 0.08);
    border-radius: 20px;

    background: #ffffff;

    box-shadow: 0 18px 55px rgba(23, 61, 45, 0.07);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;

    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 22px 60px rgba(23, 61, 45, 0.11);
}

.card-body {
    padding: 30px 24px;
}

.card p {
    color: var(--muted);
    font-size: 0.95rem;
}


/* =========================
   VISION
========================= */

#vision + br + br + section .text-center p {
    color: var(--muted);
}

#vision + br + br + section .card-body {
    min-height: 210px;
}

#vision + br + br + section .card-body > :first-child {
    font-size: 2rem;

    display: block;

    margin-bottom: 12px;
}


/* =========================
   POURQUOI SANEFISH
========================= */

#pourquoi {
    background: #eaf1ec !important;
}

#pourquoi h2 {
    font-size: clamp(2rem, 4vw, 3rem);

    margin-bottom: 25px;
}

#pourquoi p {
    color: #526058;

    margin-bottom: 18px;
}

#pourquoi img {
    border-radius: 22px;

    box-shadow:
        0 18px 55px rgba(23, 61, 45, 0.12) !important;
}


/* =========================
   AVANCEMENT DU PROJET
========================= */

#projet + br + br + section .card {
    height: 100%;
}

#projet + br + br + section .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-height: 150px;

    color: var(--muted);

    font-weight: 600;
}

#projet + br + br + section .card h2 {
    color: var(--green);

    font-size: 2.5rem;

    margin-bottom: 10px;
}


/* =========================
   ABOUT
========================= */

#about + br + br + section {
    background: #eaf1ec !important;
}

#about + br + br + section img {
    border-radius: 22px;

    box-shadow:
        0 18px 55px rgba(23, 61, 45, 0.12) !important;
}

#about + br + br + section h2 {
    font-size: clamp(2rem, 4vw, 3rem);

    margin-bottom: 20px;
}

#about + br + br + section p {
    color: #526058;
}


/* =========================
   FOOTER
========================= */

footer.bg-dark {
    background: var(--dark) !important;

    padding: 55px 0 !important;
}

footer h3 {
    font-weight: 800;

    font-size: 1.8rem;
}

footer p {
    color: rgba(255, 255, 255, 0.75);

    margin: 12px auto 24px;
}


/* =========================
   BOUTON FOOTER
========================= */

footer .btn.btn-success {
    background-color: #ffffff !important;
    background: #ffffff !important;

    color: var(--dark) !important;

    border: 1px solid #ffffff !important;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.12);
}

footer .btn.btn-success:hover {
    background-color: var(--cream) !important;
    background: var(--cream) !important;

    border-color: var(--cream) !important;
    color: var(--dark) !important;

    transform: translateY(-2px);

    box-shadow:
        0 12px 25px rgba(0, 0, 0, 0.16);
}


/* =========================
   RESPONSIVE TABLETTE
========================= */

@media (max-width: 991px) {

    .hero {
        padding: 75px 0 60px;

        text-align: center;
    }

    .hero h1 {
        margin-left: auto;
        margin-right: auto;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero .btn {
        margin-bottom: 10px;
    }

    .hero img {
        margin-top: 45px;

        max-height: 280px;
    }

    .nav-link {
        margin-left: 0;

        padding: 10px 0;
    }

    .navbar .btn.btn-success {
        margin-top: 10px;
        display: inline-block;
    }
}


/* =========================
   RESPONSIVE MOBILE
========================= */

@media (max-width: 575px) {

    .hero {
        padding: 60px 0 50px;
    }

    .hero h1 {
        font-size: 2.7rem;

        letter-spacing: -1.5px;
    }

    .hero p {
        font-size: 1rem;
    }

    section.py-5 {
        padding-top: 65px !important;
        padding-bottom: 65px !important;
    }

    .card-body {
        padding: 25px 20px;
    }

    footer {
        padding: 45px 0 !important;
    }


    /* Boutons du hero */

    .hero .btn {
        width: 100%;

        margin-left: 0 !important;
        margin-bottom: 10px;
    }

    .hero .btn:last-child {
        margin-bottom: 0;
    }


    /* Bouton navbar */

    .navbar .btn.btn-success {
        width: auto;
    }
}