/* ============================================
    VARIABLES GÉNÉRALES (utilisables partout)
============================================ */
:root {
    --font-main: 'Arial', sans-serif;
    --color-bg: #f8f9fa;
    --color-text: #333;
    --color-primary: #ABC789;
    --header-height: 25px;
    --navbar-height: 75px;
    /* pour le desktop */
    --container-max-width: 1200px;
    --spacing: 20px;
}

/* ============================================
    RESET DE BASE
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    overflow-x: hidden;
    margin-top: 0;
    padding-top: calc(35px + 75px);
    /* header + navbar */
}

body.preload main {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
}

body:not(.preload) main {
    opacity: 1;
    visibility: visible;
}

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ============================================
    STRUCTURE GLOBALE
============================================ */
main {
    position: relative;
    top: 0;
    /* Ajustement de décalage global */
    transition: opacity 0.4s ease-in-out;
    padding-top: 20px;
    width: 100%;
}

@media (max-width: 768px) {
    main {
        /* padding-top: calc(35px + 75px + 10px); header + navbar + petit espace */

        padding-top: calc(var(--header-height) + var(--navbar-height) + -15px);
    }
}

/* Containers génériques */
.container,
.navbar-container,
.header-top {
    max-width: var(--container-max-width);
    margin: 0 auto;
    width: 100%;
    padding: 0 var(--spacing);
}

/* ======= HEADER SERVICE CLIENT ======= */
.header-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 35px;
    background-color: var(--color-primary);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 20px;
    font-size: 14px;
    font-weight: bold;
    z-index: 1100;
    /* plus que navbar */
}

.header-top i {
    margin-right: 8px;
}

/* ======= NAVBAR PRINCIPALE ======= */
/* NAVBAR */
.navbar {
    margin-top: 0 !important;
    /* Supprime toute marge en haut */

    display: flex;
    align-items: center;
    /* === Navbar Fixe sous le Header === */
    position: fixed;
    top: 35px;
    /* exactement égal à header-top */
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    padding: 0 15px;
    padding-top: 5px !important;
    /* ou même 0 */
    padding-bottom: 5px !important;
    height: 75px;

}

.navbar-container {
    background-color: white;
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    /* Assure la même largeur que le header */
    margin: auto;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.navbar,
.navbar-container {
    box-shadow: none !important;
    border-bottom: none !important;
}

/* ======= LOGO ======= */
.navbar-brand {
    display: flex;
    align-items: center;
    /* Centre le logo verticalement */
    padding-top: 5px;
    /* Ajuste si besoin */
}

.navbar-brand img {
    width: 90px;
    height: auto;
    display: block;
    margin-top: 35px !important;
    margin-bottom: 0 !important;
}


/* ======= MENU NAVIGATION ======= */
.navbar-nav {
    display: flex;
    justify-content: center;
    flex-grow: 1;
    gap: 20px;
    align-items: center;
}

.navbar-nav .nav-item {
    list-style: none;
}

.navbar-nav .nav-link:hover {
    color: #5a5a5a;
}

/* Alignement des icônes */
.header-top a,
.navbar .d-flex a {
    font-size: 18px;
    color: black;
    text-decoration: none;
}

.header-top a:hover,
.navbar .d-flex a:hover {
    color: #5a5a5a;
}

/* ======= ICÔNES À DROITE ======= */
.navbar-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-icons a,
.header-icons a {
    font-size: 22px;
    color: black;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.navbar-icons a:hover,
.header-icons a:hover {
    color: #5a5a5a;
}

.navbar .collapse,
.navbar .d-flex {
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link {
    font-size: 16px;
    /* ou 18px selon ce que tu préfères */
    font-weight: bold;
    color: black;
    text-decoration: none;
    padding: 10px 15px;
    transition: color 0.3s ease-in-out;
}

@media (max-width: 1024px) {
    :root {
        --header-height: 35px;
        --navbar-height: 1px;
    }

    body,
    html {
        overflow-x: hidden;
        height: 100%;
    }

    main {
        padding-top: calc(var(--header-height) + var(--navbar-height)) !important;
    }

    .header-top {
        height: var(--header-height);
        padding: 0 20px;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        background-color: var(--color-primary);
        position: fixed;
        left: 0;
        width: 100%;
        z-index: 1100;
    }

    .navbar {
        height: var(--navbar-height);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 15px;
        width: 105%;
        position: fixed;
        top: 5px;
        /* ou même top: 25px si tu veux coller davantage */
        left: 0;
        background-color: #fff;
        z-index: 1000;
    }

    .navbar-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        height: var(--navbar-height);

    }

    .navbar-brand {
        display: flex;
        align-items: center;
    }

    .navbar-brand img {
        width: 60px;
        height: auto;
        display: block;
    }

    .d-flex.align-items-center {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .navbar-toggler {
        display: block !important;
        border: none;
        background: none;
        padding: 5px;
    }

    .navbar-toggler-icon {
        width: 30px;
        height: 30px;
    }

    .navbar-collapse {
        background: white;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        display: none;
    }

    .navbar-collapse.show {
        display: flex !important;
        flex-direction: column;
        align-items: center;
    }

    .navbar-nav {
        width: 100%;
        flex-direction: column;
    }

    .navbar-nav .nav-link {
        padding: 10px;
        width: 100%;
        text-align: center;
        font-weight: bold;
    }

    .wrapper {
        padding-top: calc(var(--header-height) + var(--navbar-height));
    }
}


/* MOBILE/TABLETTE : masqué par défaut */
@media (max-width: 991.98px) {
    .navbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 10px;
        /* Réduit l’espace horizontal total */
    }

    .navbar-brand {
        margin-right: auto;
    }

    .navbar-toggler {
        padding: 2px;
        margin-left: 0;
        margin-right: 0;
        /* empêche le débordement à droite */
        padding-right: 20px;
        /* éloigne les icônes de la bordure droite */
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
        z-index: 999;
    }

    .navbar-collapse:not(.show) {
        display: none;
    }

    .navbar-collapse.show {
        display: flex !important;
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .navbar-nav .nav-link {
        padding: 10px;
        font-weight: bold;
    }

    .d-flex.align-items-center {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 5px;
        /* Réduit l’espace entre icônes et burger */
        margin-right: 0;
        padding-right: 0px;
        /* éloigne les icônes de la bordure droite */
    }

    .navbar-brand img {
        width: 60px;
        height: auto;
        margin-left: -15px;
        /* Colle le logo à gauche */
        padding-left: 0;
    }

    .navbar-icons a {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .navbar-brand {
        margin-right: auto;
    }

    .navbar-toggler {
        display: block !important;
        border: none;
        background: none;
        padding: 5px;
    }

    .navbar-toggler-icon {
        width: 25px;
        height: 25px;
    }

    .navbar-collapse {
        background-color: white;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        display: none;
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
    }

    .navbar-collapse.show {
        display: flex !important;
    }

    .navbar-nav {
        width: 100%;
        flex-direction: column;
        text-align: center;
    }

    .navbar-nav .nav-link {
        padding: 10px;
        font-weight: bold;
    }

    .d-flex.align-items-center {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 0;
        /* Réduit l’espace entre icônes et burger */
        margin-right: 0;
        padding-right: 0px;
        /* éloigne les icônes de la bordure droite */
    }

    .navbar-brand img {
        width: 50px;
    }
}


/* ======= ESPACEMENT ET ALIGNEMENT du container du navbar ======= */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 5px 30px 10px 30px;
    /* padding-top réduit à 5px */
    margin-top: 0 !important;
    /* Supprime tout espace inutile */
    margin-bottom: 5px !important;
    /* Garde une marge en bas */
}

.container>*:first-child:not(.section-heading) {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/* ======= TITRE "ACCUEIL" ======= */
.section-heading {
    margin: 0 auto 40px auto;
    /* haut, droite, bas, gauche */
    max-width: 1200px;
    background-color: #ABC789;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    text-align: left;
    margin-top: 5px !important;
    /* plus près du haut */
    padding: 20px;
}

.section-heading h1 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0;
}


/* ======= BANNIÈRE ======= */
.banner {
    position: relative;
    width: 1100px;
    height: 373px;
    margin: 0 auto;
    background-color: #D9EDBF;
    overflow: hidden;
    padding: 20px;
    /* agrandit visuellement le fond vert */
    box-sizing: border-box;
    /* pour que le padding ne dépasse pas la taille totale */
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Playfair Display', serif;
    font-size: clamp(14px, 1.4vw, 20px);
    /* plus petit et fluide */
    color: #000;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
    width: 90%;
    /* laisse de la place au texte */
    white-space: normal;
    /* permet les retours à la ligne */
    padding: 0 10px;
    opacity: 0;
    animation: fadeInText 1s ease forwards;
    /* ... reste du code */
}

@keyframes fadeInText {
    to {
        opacity: 1;
    }
}


/* === SECTION PRÉSENTATION (image + texte + bouton) === */
.presentation-section {
    background-color: #D9EDBF;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 80px;
    padding: 30px;
    margin: 50px auto;
    max-width: 1100px;
}

.presentation-section img {
    height: auto;
    max-width: 100%;
    width: 400px;
    height: 210px;
}

.presentation-text {
    width: 400px;
    height: 210px;
    font-size: 16px;
    line-height: 1.5;
    background-color: #fbf8f0;
    padding: 50px 30px;
    /* HAUTEUR AUGMENTÉE ici : 70px en haut et bas */
    text-align: center;
    color: #000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.presentation-text p {
    font-weight: 500;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #000;
}

.presentation-text .btn {
    background-color: #5A8F5F;
    color: white;
    font-weight: bold;
    padding: 10px 1px;
    /* légèrement réduit */
    border: none;

    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

.presentation-text .btn:hover {
    background-color: #4A7F50;
}

/* === BOUTONS DE LIENS RAPIDES PROMO page Accueil=== */
.promo-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 colonnes fixes */
    gap: 30px;
    /* l'espace entre les card */
    max-width: 1100px;
    margin: 40px auto;
    padding: 10 15px;
}

.promo-section a {
    background-color: #e4f1da;
    padding: 20px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: background-color 0.3s ease;
}

.promo-section a:hover {
    background-color: #c7dfb8;
}



/* ======= BOUTON CTA ======= */
.btn-success {
    font-size: 18px;
    font-weight: bold;
    padding: 10px 20px;
    background-color: #6bb77b;
    border: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.btn-success:hover {
    background-color: #58a269;
    color: white;
}

/* ======= OFFRES CATÉGORIES ======= */
.offers-grid a {
    display: block;
    background-color: #e4f1da;
    margin: 10px auto;
    padding: 15px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: background-color 0.3s ease;
}

.offers-grid a:hover {
    background-color: #c7dfb8;
}


@media (max-width: 991px) {
    .responsive-spacing-bottom {
        margin-bottom: 80px !important;
        /* ou 50px ou ce que tu veux */
    }
}

@media (max-width: 768px) {
    .responsive-spacing-bottom {
        margin-bottom: 80px !important;
        /* ou 50px ou ce que tu veux */
    }
}

/* === RESPONSIVE HOMEPAGE / ACCUEIL === */

/* TABLETTE (entre 768px et 991px) */
@media (max-width: 991px) {
    .section-heading {
        padding: 15px 20px;
        font-size: 20px;
        margin-top: -65px !important;
        /* Forcé l'élimination d'espace entre le heading et la navbar*/
    }

    .banner {
        width: 100%;
        max-width: 750px;
        /* largeur maximum */
        margin: 0 auto;
        background-color: #D9EDBF;
        overflow: hidden;
        padding: 15px 20px;
        /* marge interne droite/gauche */
        box-sizing: border-box;
        width: 750px;
        /* Réduction taille image */
        height: 250px;
        /* Réduction taille image */
    }

    .banner-text h2 {
        font-size: 22px;
    }

    .presentation-section {
        display: flex;
        flex-direction: row;
        /* Toujours horizontal */
        justify-content: center;
        align-items: center;
        gap: 30px;
        padding: 20px;
        max-width: 1000px;
        margin: 40px auto;
        background-color: #D9EDBF;
        flex-wrap: wrap;
        /* au cas où vraiment très petit écran */
        width: 750px;
        /* Réduction taille image */
        height: 250px;
        /* Réduction taille image */
    }

    .presentation-section img {
        max-width: 400px;
        height: auto;
        display: block;
        object-fit: cover;
        width: 300px;
        /* Réduction taille image */
        height: 200px;
        /* Réduction taille image */
    }

    .presentation-text {
        max-width: 400px;
        background-color: #fbf8f0;
        padding: 35px 40px;
        text-align: center;
        font-size: 15px;
        color: #000;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        width: 300px;
        /* Réduction taille image */
        height: 200px;
        /* Important : permet au contenu de s’adapter */
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }


    .presentation-text p {
        font-weight: 500;
        font-size: 22px;
        line-height: 1.6;
        margin-bottom: 20px;
        color: #000;
    }

    .presentation-text p {
        font-weight: 500;
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 12px;
        color: #000;
        flex: 1;
    }

    .presentation-text .btn {
        background-color: #5A8F5F;
        color: white;
        font-weight: bold;
        padding: 10px 16px;
        border: none;
        border-radius: 6px;
        text-decoration: none;
        display: inline-block;
        text-align: center;
        transition: background-color 0.3s ease;
        font-size: 13px;
        margin-top: auto;
    }


    .presentation-text .btn:hover {
        background-color: #4A7F50;
    }

    .promo-section {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        justify-items: center;
        /* Centre les cartes dans chaque colonne */
        gap: 30px;
        padding: 0 15px;
    }

    .promo-section a {
        background-color: #e4f1da;
        padding: 10px;
        width: 90%;
        /* Réduit la largeur à l’intérieur de chaque colonne */
        max-width: 220px;
        /* Largeur maximale (ajustable selon ton design) */
        height: 50px;
        font-size: 14px;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        text-decoration: none;
        color: #333;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
        transition: background-color 0.3s ease;
    }

    .promo-section a:hover {
        background-color: #c7dfb8;
        margin-bottom: 40px;
        /* espace entre la fin du home et le footer */
    }

}

/* ✅ MOBILE (max 768px) */
@media (max-width: 768px) {
    .section-heading {
        padding: 10px 15px;
        font-size: 18px;
        margin-top: -75px !important;
        /* Forcé l'élimination d'espace entre le heading et la navbar*/
    }

    .banner {
        max-width: 100%;
        width: calc(100% - 40px);
        /* marge de 20px de chaque côté */
        margin: 0 auto;
        background-color: #D9EDBF;
        overflow: hidden;
        padding: 15px;
        box-sizing: border-box;
        height: 200px;
    }

    .banner-text h2 {
        font-size: 16px;
    }

    .presentation-section {
        display: flex;
        flex-direction: row;
        /* toujours horizontal */
        justify-content: center;
        align-items: center;
        gap: 20px;
        padding: 15px 20px;
        /* marge interne à gauche/droite */
        background-color: #D9EDBF;
        flex-wrap: nowrap;
        /* forcer à rester en ligne */
        height: auto;
        box-sizing: border-box;
        /* important pour que padding ne déborde pas */
        width: calc(100% - 40px);
        /* comme la bannière */
        margin: 30px auto;
        /* centré automatiquement */
    }

    .presentation-section img {
        width: 40%;
        max-width: 150px;
        height: auto;
        object-fit: cover;
        width: 250px;
        /* Réduction taille image */
        height: 155px;
        /* Réduction taille image */
        flex: 1 1 45%;
    }

    .presentation-text {
        width: 40%;
        max-width: 150px;
        background-color: #fbf8f0;
        padding: 20px 15px;
        font-size: 13px;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 200px;
        /* Réduction taille image */
        height: 155px;
        /* Important : permet au contenu de s’adapter */
        flex: 1 1 45%;
    }

    .presentation-text p {
        font-size: 11px;
        line-height: 1.4;
        margin-bottom: 10px;
        color: var(--color-text);
        flex: 1;
    }

    .presentation-text .btn {
        background-color: #5A8F5F;
        color: white;
        font-weight: bold;
        padding: 8px 10px;
        border-radius: 4px;
        font-size: 10px;
        text-decoration: none;
        display: inline-block;
        text-align: center;
        margin-top: auto;
        transition: background-color 0.3s ease;
    }

    .presentation-text .btn:hover {
        background-color: #4A7F50;
    }

    .promo-section {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        padding: 0 10px;
        justify-items: center;
    }

    .promo-section a {
        background-color: #e4f1da;
        padding: 4px 6px;
        font-size: 8px;
        font-weight: bold;
        text-align: center;
        width: 80%;
        max-width: 160px;
        height: 35px;
        line-height: 1.2;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
        text-decoration: none;
        color: var(--color-text);
        transition: background-color 0.3s ease;
    }

    .promo-section a:hover {
        background-color: #c7dfb8;
        margin-bottom: 40px;
        /* espace entre la fin du home et le footer */
    }
}



/* ======= Footer ======= */
footer {
    margin-top: auto;
    /* Pousse le footer en bas */
    width: 100%;
    background-color: #ABC789;
    /* Couleur du footer */
    padding: 5px 0 !important;
    /* Réduction de l’espace vertical */
    margin-bottom: 0 !important;
    /* Supprime tout espace sous le footer */
    text-align: center;
    position: relative;
    max-width: 1200px;
    /* Ajuste selon tes besoins */
    margin: auto;
    padding-bottom: 0 !important;
    margin-top: auto;
    /* Pousse le footer en bas */
    bottom: 0;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ======= Conteneur principal du footer ======= */
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* Alignement en haut */
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* ======= Colonne gauche (Informations) ======= */
.footer-column {
    flex: 1;
    text-align: left;
}

/* ======= Logo centré ======= */
.footer-logo {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
}

/* Taille du logo */
.footer-logo img {
    width: 90px;
    height: auto;
}

/* ======= Style des titres des colonnes ======= */
.footer-column h5 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Liste des liens */
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 5px;
    line-height: 0.8;
    /* Ajuste la hauteur de ligne */
}

.footer-column ul li a {
    text-decoration: none;
    color: black;
    font-size: 10px;
}

/* ======= Ajustement des icônes sociales et du texte Copyright ======= */
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    /* Alignement à droite */
    justify-content: flex-start;
    /* Positionner les éléments en haut */
}

/* ======= Icônes sociales ======= */
.footer-social {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2px;
    /* Réduction de l’espace entre les icônes */
    margin-bottom: -5px;
    /* Élimine l’espace entre icônes et texte Copyright */
}

/* Icônes des réseaux sociaux avec leurs couleurs originales */
.footer-social a i {
    font-size: 22px;
}

/* Couleurs des icônes */
.footer-social a .fa-instagram {
    color: #E1306C;
}

.footer-social a .fa-facebook {
    color: #1877F2;
}

.footer-social a .fa-pinterest {
    color: #BD081C;
}

/* ======= Texte Copyright ======= */
.footer-copyright {
    text-align: center !important;
    /* Centre le texte */
    width: 100%;
    /* Prend toute la largeur */
    font-size: 12px;
    /* Taille réduite */
    margin: 0 auto !important;
    /* Supprime tout espace inutile */
    display: flex !important;
    /* Utilisation de flexbox */
    justify-content: center !important;
    /* Centre le contenu horizontalement */
    align-items: center !important;
    /* Centre verticalement */
    padding: 5px 0 !important;
    /* Ajuste l’espace */
    margin-top: -8px;
    /* Réduction de l'espace entre les icônes et le texte */
    padding-top: 0;
    max-width: 1360px;
    color: black;
    margin-bottom: 0 !important;
    padding-bottom: 5px !important;
    /* Juste une petite marge pour éviter l’écrasement du texte */

}

/* === Responsive Footer === */

@media (max-width: 1024px) {
    footer {
        padding: 3px 0 !important;
        /* 🔽 encore plus compact */
        background-color: #ABC789;
        position: relative;
        margin-bottom: 0 !important;
    }

    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 10px !important;
        padding-bottom: 3px !important;
        text-align: left;
    }

    .footer-column {
        width: 100%;
        margin-bottom: 3px;
    }

    .footer-column h5 {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .footer-column ul li a {
        font-size: 9px;
        line-height: 1;
    }

    .footer-social {
        position: absolute;
        top: 3px;
        right: 10px;
        gap: 3px;
    }

    .footer-social a i {
        font-size: 16px;
    }

    .footer-logo img {
        width: 70px;
    }

    .footer-copyright {
        font-size: 10px;
        padding: 3px 0 !important;
        margin: 0 auto !important;
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 2px 0 !important;
        background-color: #ABC789;
    }

    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 8px !important;
        padding-bottom: 2px !important;
        text-align: left;
    }

    .footer-column h5 {
        font-size: 11px;
        margin-bottom: 3px;
    }

    .footer-column ul li a {
        font-size: 8px;
        line-height: 1;
    }

    .footer-social {
        top: 2px;
        right: 8px;
    }

    .footer-social a i {
        font-size: 14px;
    }

    .footer-logo img {
        width: 60px;
    }

    .footer-copyright {
        font-size: 9px;
        padding: 2px 0 !important;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 1px 0 !important;
        background-color: #ABC789;
    }

    .footer-container {
        padding: 0 6px !important;
        padding-bottom: 1px !important;
    }

    .footer-column h5 {
        font-size: 10px;
    }

    .footer-column ul li a {
        font-size: 7.5px;
    }

    .footer-social a i {
        font-size: 13px;
    }

    .footer-logo img {
        width: 55px;
    }

    .footer-copyright {
        font-size: 8px;
        padding: 1px 0 !important;
    }
}



/* Styles pour la page de connexion */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
    /* Centre verticalement */
}

.login-form {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 350px;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 20px;
}

.login-form .form-control {
    border-radius: 5px;
    height: 40px;
}

.login-form button {
    width: 100%;
    background-color: #17877b;
    border: none;
    padding: 10px;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    filter: brightness(100%);
    transition: filter 0.3s ease-in-out;
}

.login-form button:hover {
    filter: brightness(80%);
}

.login-form button:hover {
    background-color: #12695f;
}

.form-check-input:checked {
    background-color: #619C67;
    border-color: #619C67;
}

.form-check-label {
    font-size: 15px;
    color: #333;
}

.login-form .form-check {
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.login-form .form-check-label {
    font-weight: 500;
    color: #333;
}

.btn-myra-warning {
    background-color: #f3c85c;
    color: #333;
    font-weight: 600;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    text-align: center;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.btn-myra-warning:hover {
    background-color: #e2b846;
    color: #111;
}

@media (max-width: 991px) {
    #navbarNav .btn-outline-dark {
        font-size: 14px;
        padding: 5px 12px;
        border-radius: 6px;
    }
}

/* ======= STYLES POUR LA PAGE PROFIL ======= */
.profile-profil {
    max-width: 600px !important;
    margin: 50px auto !important;
    background: #ffffff !important;
    padding: 25px !important;
    border-radius: 10px !important;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1) !important;
    text-align: center !important;
    font-family: 'Arial', sans-serif !important;
}

/* Titre du profil */
.profile-profil h2 {
    color: #17877b;
    font-size: 24px;
    margin-bottom: 15px;
}

.mon-profil-titre {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #b5d9b3;
    border-radius: 30px;
    background-color: #e6f5e6;
    /* Vert pastel clair */
    color: #3a773a;
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 25px;
    transition: all 0.3s ease-in-out;
    text-align: center;
}

.mon-profil-titre:hover {
    background-color: #d0edd0;
    box-shadow: 0 0 10px rgba(130, 199, 130, 0.3);
}


/* Informations du profil */
.profile-profil p {
    font-size: 18px;
    margin: 8px 0;
    color: #333;
}

/* Bouton de déconnexion */
.profile-profil .btn-logout {
    background-color: #dc3545;
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
    font-size: 16px;
    transition: background-color 0.3s ease-in-out;
}

.profile-profil .btn-gold {
    background-color: rgb(238, 222, 171);
    color: #3c2f1c;
    border-color: #d2b48c;
}

.profile-profil .btn-gold:hover {
    background-color: rgb(224, 207, 157);
    color: #2c1f0f;
}

.btn-outline-primary {
    background-color: white;
    color: #2c1f0f;
    border-color: #ABC789;
}

.profile-profil .btn-outline-primary:hover {
    background-color: #ABC789;
    color: #2c1f0f;
}

.profile-actions {
    text-align: center;
    margin-top: 20px;
}


/* ESPONSIVE - TABLETTE (max 1024px) */
@media (max-width: 1024px) {
    .profile-profil {
        max-width: 90%;
        padding: 20px;
    }

    .profile-profil h2 {
        font-size: 22px;
    }

    .profile-profil p {
        font-size: 16px;
    }

    .profile-profil .btn-logout {
        font-size: 14px;
        padding: 10px 18px;
    }
}

/* RESPONSIVE - MOBILE (max 768px) */
@media (max-width: 768px) {
    .profile-profil {
        max-width: 90%;
        padding: 15px;
    }

    .profile-profil h2 {
        font-size: 20px;
    }

    .profile-profil p {
        font-size: 14px;
    }

    .profile-profil .btn-logout {
        font-size: 14px;
        padding: 8px 15px;
    }
}

/* RESPONSIVE - PETITS ÉCRANS (max 480px) */
@media (max-width: 480px) {
    .profile-profil {
        max-width: 95%;
        padding: 10px;
    }

    .profile-profil h2 {
        font-size: 18px;
    }

    .profile-profil p {
        font-size: 14px;
    }

    .profile-profil .btn-logout {
        font-size: 13px;
        padding: 6px 12px;
    }
}


/* ======= FORMULAIRES (Connexion & Inscription) ======= */
.form-.form-container.mt-5.pt-5 {
    min-height: 100vh;
    /* Assure que le formulaire prend toute la hauteur */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Centre verticalement */
    align-items: center;
    padding-bottom: 100px;
    /* Ajoute de l'espace en bas pour éviter le chevauchement */

}

.register-container {
    min-height: 100vh;
    padding-bottom: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-box {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 380px;
    margin-bottom: 80px;
    /* Ajoute de l’espace avant le footer */
}

.form-box h2 {
    text-align: center;
    margin-bottom: 15px;
}

.form-box .form-control {
    border-radius: 5px;
    height: 40px;
}

.form-box button,
.needs-validation button[type="submit"] {
    width: 100%;
    background-color: #4caf50;
    /* Vert doux et moderne */
    border: none;
    padding: 12px;
    color: white;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-box button:hover,
.needs-validation button[type="submit"]:hover {
    background-color: #3e8e41;
    /* Vert foncé au survol */
}


.alert-danger {
    background-color: #fff0f0;
    border: 1px solid #f8c4c4;
    color: #c0392b;
    padding: 12px 18px;
    border-radius: 8px;
    max-width: 600px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    box-shadow: 0px 2px 6px rgba(200, 0, 0, 0.05);
    font-size: 1rem;
}

.alert-error {
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    padding: 12px 20px;
    margin: 20px auto;
    max-width: 700px;
    border-radius: 10px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error i {
    color: #dc2626;
    font-size: 1.2rem;
}


/* === RESPONSIVE FORMULAIRES === */
@media (max-width: 768px) {
    .form-container {
        margin-top: 120px !important;
        /* Ajuste selon la hauteur de ta navbar */
        padding-top: 20px;
        /* Ajoute un léger espace intérieur */
    }


    .form-box {
        max-width: 320px;

    }
}

@media (max-width: 480px) {
    .form-box {
        max-width: 90%;
    }
}


/* === PAGE 404 - AJUSTEMENTS === */
.page-404 {
    text-align: center;
    padding: 80px 20px;
    /* Augmenter l’espace en haut */
    margin-bottom: 80px;
    /* Éloigne la page du footer */
}

.content-404 {
    max-width: 700px;
    /* Augmenter la largeur */
    margin: auto;
    background: #f8f8f8;
    padding: 60px 40px;
    /* Augmenter le padding */
    border-radius: 15px;
    /* Bords plus arrondis */
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.1);
    /* Ombre plus marquée */
}

/* === Centrage et animation de l’image d’erreur === */
.error-image {
    width: 100%;
    max-width: 350px;
    /* Ajuste la taille de l’image */
    margin-bottom: 30px;
}

/* === Texte et titre plus visibles === */
h1 {
    font-size: 36px;
    font-weight: bold;
    color: #5a5a5a;
    margin-bottom: 15px;
}

p {
    font-size: 20px;
    color: #777;
    margin-bottom: 20px;
}

/* === Bouton Retour à l'accueil === */
.btn-404 {
    display: inline-block;
    padding: 14px 24px;
    background-color: #ABC789;
    color: white;
    font-size: 18px;
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.3s ease-in-out;
}

.btn-404:hover {
    background-color: #8b9a6c;
}

/* === RESPONSIVE PAGE 404 === */
@media (max-width: 768px) {
    .content-404 {
        max-width: 90%;
        /* Largeur ajustée pour mobile */
        padding: 40px 20px;
    }

    h1 {
        font-size: 28px;
    }

    p {
        font-size: 16px;
    }

    .btn-404 {
        font-size: 16px;
        padding: 10px 18px;
    }
}

/* Personnalisation du header de la carte */
.card-header {
    background-color: #d1cab8 !important;
    /* Beige inspiré de l'image */
    color: #4a3c2f !important;
    /* Texte marron */
    font-weight: bold;
    text-align: center;
    font-size: 18px;
}

/* Centrer la liste dans la carte */
.card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centre horizontalement */
    justify-content: center;
    /* Centre verticalement */
    text-align: center;
}

/* Ajustement des liens */
.card-body ul {
    padding: 0;
    list-style: none;
    width: 100%;
}

.card-body ul li {
    padding: 5px 0;
    width: 100%;
}

.card-body ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centre le texte et l’icône */
    font-size: 16px;
    text-decoration: none;
    font-weight: 500;
    color: #4a3c2f;
    /* Marron inspiré de l’image */
}

.card-body ul li a:hover {
    color: #ad9276;
    /* Effet hover beige foncé */
}

/* === Responsive pour la page 404 === */

/* Ajustement sur Tablette (max 1024px) */
@media (max-width: 1024px) {
    .page-404 {
        text-align: center;
        padding: 20px;
    }

    .error-image {
        width: 80%;
        /* Réduction de l'image */
        max-width: 400px;
        margin: 0 auto;
    }

    .btn-404 {
        font-size: 16px;
        padding: 8px 15px;
    }

    .card {
        max-width: 80%;
        margin: 15px auto;
    }

    .card-body ul li a {
        font-size: 14px;
    }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
    .page-404 {
        padding: 10px;
    }

    .error-image {
        width: 90%;
        max-width: 350px;
    }

    .btn-404 {
        font-size: 14px;
        padding: 8px 12px;
    }

    .card {
        max-width: 90%;
    }

    .card-header {
        font-size: 16px;
    }

    .card-body ul {
        padding: 0;
        text-align: center;
    }

    .card-body ul li {
        padding: 3px 0;
    }

    .card-body ul li a {
        font-size: 14px;
    }
}

/* Très Petit Écran (max 480px) */
@media (max-width: 480px) {
    .page-404 {
        padding: 5px;
    }

    .error-image {
        width: 100%;
        max-width: 300px;
    }

    .btn-404 {
        font-size: 13px;
        padding: 6px 10px;
    }

    .card {
        max-width: 95%;
        margin: 10px auto;
    }

    .card-header {
        font-size: 14px;
        padding: 8px;
    }

    .card-body ul li a {
        font-size: 13px;
    }
}


.alert {
    max-width: 700px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 30px;
}

.product-card {
    text-align: center;
    padding: 10px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.btn-ajouter {
    margin-top: 10px;
    display: inline-block;
    background-color: #6bb77b;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
}

.btn-ajouter:hover {
    background-color: #58a269;
}

.badge.shadow {
    font-size: 12px;
    padding: 4px 7px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
}