/* ==========================================================================
   FIX SCROLL - Override Odoo default overflow:hidden
   ========================================================================== */
html,
body {
    overflow: visible !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100% !important;
}

#wrapwrap {
    overflow: visible !important;
    min-height: 100vh !important;
}

.loader-wrap {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden !important;
}

.loader-wrap.fade-out,
.loader-wrap[style*="display: none"] {
    pointer-events: none !important;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.page-wrapper {
    overflow: visible !important;
    position: relative !important;
}

main {
    overflow: visible !important;
}

body.loaded {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* ==========================================================================
   SCROLL TO TOP BUTTON - CORRECTION CLICK
   ========================================================================== */
.scroll-to-top {
    position: fixed !important;
    right: 30px !important;
    bottom: 30px !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--gifall-base);
    border: 2px solid var(--gifall-base);
    color: #ffffff;
    font-size: 20px;
    line-height: 56px;
    text-align: center;
    cursor: pointer !important;
    display: none;
    z-index: 999999 !important;
    transition: all 200ms linear;
    text-decoration: none;
}

.scroll-to-top:hover {
    background-color: var(--gifall-black);
    border-color: var(--gifall-black);
    color: #ffffff;
}

.scroll-to-top i::before {
    transform: rotate(180deg);
    display: inline-block;
}

/* ==========================================================================
   STICKY HEADER - CORRECTION VISIBILITÉ
   ========================================================================== */
.stricky-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000 !important;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-120%);
    transition: transform 500ms ease, visibility 500ms ease, opacity 500ms ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.stricky-header.stricky-fixed {
    transform: translateY(0) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ==========================================================================
   WOW ANIMATIONS
   ========================================================================== */
/*.wow:not(.animated) {
  visibility: visible !important;
  opacity: 1 !important;
}*/

/* ==========================================================================
   COUNTERS / ODOMETER
   ========================================================================== */
.odometer {
    visibility: visible !important;
    opacity: 1 !important;
}

.nav-style1.owl-carousel .owl-nav button.owl-next, .nav-style1.owl-carousel .owl-nav button.owl-prev {
    display: inline-block;
    /*margin: 0;*/
}


/* FIX RAPIDE - Espacement entre les blocs */
.about-two__content-text5 .right-content p {
    font-size: 16px !important;
    line-height: 22px !important;
    word-wrap: break-word !important;
}

/* Mobile */
/*
@media (max-width: 768px) {
    .about-two__content-text5 {
        flex-direction: column !important;
    }

    .about-two__content-text5 .right-content {
        max-width: 100% !important;
        width: 100% !important;
    }
}*/

/* FIX RAPIDE - Padding top 90  */
.counter-one.style3 {
    padding: 90px 0px 82px;
}

.testimonial-three {
    padding: 90px 0px 120px;
}


/**/


/**/

.logo-box-one a img {
    height: 80px;
}

.logo-box a img {
    height: 100px;
}

/**/
.footer-one__top {
    border-bottom: 1px solid rgba(255, 217, 0, 0.3);
}

.footer-one__bottom .bottom-inner {
    border-top: 1px solid rgba(255, 217, 0, 0.3);
}

.footer-one__single-address-box li {
    border-bottom: 1px solid rgba(255, 217, 0, 0.3);
}

.footer-one__single-post-box li {
    border-bottom: 1px solid rgba(255, 217, 0, 0.3);
}

/*FIX HIDE IN MOBILE ONLY*/
@media (max-width: 767px) {
    .main-slider-one .owl-dots {
        display: none !important;
    }
}


/**/

.about-two__content-text5 .left-content {
    padding-right: 25px;
}

.shop-page__single-img .text {
    width: 90px;
}

/**/

/**/

.sidebar__latest-post-list li .img-box {
    width: 80px;
    height: 100Px;
}

.sidebar__donation-box .text-box {
    background: transparent;
}

.contact-two__from-btn .thm-btn::before {
    display: block;
}

.about-two__content-text2-single .icon-box span::before {
    font-size: 65px;
}

/*.counter-one__single-top .img-box {
  width: 84px;
  height: 80px;
}*/

.about-two__content-text2-single .icon-box .shape2 {
    left: 10px;
    bottom: 5px;
}

.counter-one__single-top .img-box img {
    width: 84px;
    height: 80px;
}

.team-one--about {
    padding-top: 40px;
}

/**/

/* Statuts section "Nos Réalisations" page accueil */
.case-statut {
    font-weight: 700;
    font-size: 12px !important;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 25px;
    vertical-align: middle;
    margin-right: 6px;
}

.case-one__single-img .text-box {
    background: transparent !important;
    color: inherit;
    bottom: -26px;
    left: 10px;
}

/* ── Barre de filtres ── */
.realisations-filter {
    margin-bottom: 40px;
}

.realisations-filter__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.realisations-filter__list li {
    padding: 10px 24px;
    border: 2px solid #ddd;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
    color: #444;
}

.realisations-filter__list li:hover,
.realisations-filter__list li.active {
    background: var(--gifall-base, #e8a020);
    border-color: var(--gifall-base, #e8a020);
    color: #fff;
}

/* ── Carte réalisation ── */
.realisation-card {
    margin-bottom: 30px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.realisation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.14);
}

/* ── Badges secteur ── */
.realisation-card__badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btp-badge {
    background: #fff3e0;
    color: #e65100;
}

.agriculture-badge {
    background: #e8f5e9;
    color: #2e7d32;
}

.transport-badge {
    background: #e3f2fd;
    color: #1565c0;
}

.commerce-badge {
    background: #f3e5f5;
    color: #6a1b9a;
}

/* ── Corps de la carte ── */
.realisation-card__content {
    padding: 20px;
}

.realisation-card__body h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.realisation-card__body h4 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.realisation-card__body h4 a:hover {
    color: var(--gifall-base, #e8a020);
}

.realisation-card__lieu {
    font-size: 13px;
    color: #888;
    margin-bottom: 10px;
}

.realisation-card__lieu .icon-location1 {
    margin-right: 4px;
    color: var(--gifall-base, #e8a020);
}

.realisation-card__desc {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* ── Badges statut ── */
.shop-page__single-img .text {
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 25px;
}

.statut-livre {
    background: #2e7d32 !important;
    color: #fff !important;
}

.statut-en-cours {
    background: #e65100 !important;
    color: #fff !important;
}

.statut-actif {
    background: #1565c0 !important;
    color: #fff !important;
}

/* ── CTA bas de page ── */
.realisations-cta {
    margin-top: 50px;
    padding: 40px;
    background: #f5f4ec;
    /*border-radius: 10px;*/
}

.realisations-cta p {
    margin-bottom: 20px;
    /*color: #333;*/

    font-size: 34px;
    line-height: 42px;
    font-weight: 400;
}


/* ============================================
Images des réalisations — Dimensions fixes
============================================ */

/* Conteneur de l'image */
.shop-page__single-img {
    width: 370px; /* Largeur fixe */
    height: 260px; /* Hauteur fixe */
    background: #f5f5f5; /* Fond de secours */
}

/* Image elle-même */
.realisation-card__img {
    height: 100%;
    object-fit: cover; /* ← Clé : recadre sans déformer */
    object-position: center; /* Centre l'image dans le cadre */
    display: block;
}

/* ============================================
   HOMEPAGE — Dimensions Images Réalisations
   Section: case-one.style3
   ============================================ */

/* Conteneur de l'image */
.case-one.style3 .case-one__single-img {
    width: 370px;
    height: 285px;
}

/* Inner container (overflow hidden pour le cropping) */
.case-one.style3 .case-one__single-img .inner {
    width: 370px;
    height: 285px;
}

/* Image elle-même */
.case-one.style3 .case-one__single-img .inner img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ← Recadre sans déformer */
    object-position: center; /* ← Centre l'image */
    display: block;
}

/* Badge catégorie — MÊME STYLE QUE PAGE LISTE */
.events-details-page__top-img .text-box {
    width: auto;
    background: transparent;
    border-radius: inherit;
}

/* ============================================
   PAGE DÉTAIL RÉALISATION — Image Principale
   Dimensions: 1170 × 625px
   ============================================ */

.events-details-page__top-img {
    width: 1170px;
    height: 625px;
}

.events-details-page__top-img img.achievement-detail__main-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recadre sans déformer */
    object-position: center; /* Centre l'image */
    display: block;
    overflow: hidden;
}

/**/
.main-header-two__bottom-left-text::before {
    bottom: -21px;
}

/**/

/**/
.oe_login_form, .oe_signup_form, .oe_reset_password_form {
    max-width: 380px;
}

/**/

/**/
/* Validation erreurs — Nice Select */
#contact-form .nice-select.error {
    border-color: red !important;
}

select.error + .nice-select {
    border: 1px solid #dc3545 !important; /* Couleur rouge (style Bootstrap) */
}

/**/

/* ============================================
   SECTION ÉQUIPE DIRIGEANTE — Dimensions fixes (370x395)
   Basé sur la logique de .case-one.style3
   ============================================ */

/* Conteneur principal de l'image */
.team-one--about .team-one__single-img {
    width: 370px;
    height: 395px;
    margin: 0 auto; /* Centre le bloc dans sa colonne */
}

/* Inner container (gestion du cropping) */
.team-one--about .team-one__single-img .inner {
    width: 100%;
    height: 100%;
    overflow: hidden; /* Coupe proprement ce qui dépasse */
}

/* Image elle-même */
.team-one--about .team-one__single-img .inner img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ← Clé : recadre sans déformer */
    object-position: center 20%; /* ← Centre l'image, mais remonte légèrement (20%) pour privilégier le visage sur les photos portrait */
    display: block;
}