/* =========================================================
   ANVI – Custom CSS
   Améliorations visuelles : Accueil, Qui sommes-nous,
   Produits, Contact
   ========================================================= */

/* ---------------------------------------------------------
   1. VARIABLES & RESET GLOBAL
--------------------------------------------------------- */
:root {
    --anvi-gold:    #f7b401;
    --anvi-dark:    #080b1a;
    --anvi-navy:    #0f1535;
    --anvi-brown:   #90744f;
    --anvi-light:   #f8f9fc;
    --anvi-shadow:  0 8px 30px rgba(8, 11, 26, 0.12);
    --anvi-shadow-hover: 0 16px 48px rgba(8, 11, 26, 0.22);
    --anvi-radius:  10px;
    --anvi-trans:   all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Typographie globale */
body {
    font-smoothing: antialiased;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: 0.02em;
}

/* ---------------------------------------------------------
   2. TITRES DE SECTION
--------------------------------------------------------- */
.section-title h6 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--anvi-gold);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h6::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--anvi-gold);
    margin: 6px auto 0;
}

.section-title h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.01em;
}

.section-title--light h6 {
    color: var(--anvi-gold);
}

/* Pas de barre décorative dans les sections parallax (hauteur contrainte) */
.section-title--light h6::after {
    display: none;
}

/* h2 parallax : couleur garantie blanche, taille raisonnable */
.section-title--light h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    color: #fff;
    margin-top: 8px;
}

/* ---------------------------------------------------------
   3. PAGE HEADER (bannières communes)
--------------------------------------------------------- */
.page-header-area {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.page-header-area::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(8, 11, 26, 0.68) 0%,
        rgba(15, 21, 53, 0.50) 100%);
    z-index: 1;
}

.page-header-area .container {
    position: relative;
    z-index: 2;
}

.page-header-content h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
    margin-bottom: 12px;
}

.page-header-content p {
    font-size: clamp(1rem, 2.5vw, 1.3rem) !important;
    color: var(--anvi-gold) !important;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

/* ---------------------------------------------------------
   4. ACCUEIL – BLOCS DE FONCTIONNALITÉS (icon-box)
--------------------------------------------------------- */
.feature-area-wrapper {
    padding: 80px 0;
    background: var(--anvi-light);
}

.icon-box-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 32px 24px;
    background: #fff;
    border-radius: var(--anvi-radius);
    box-shadow: var(--anvi-shadow);
    transition: var(--anvi-trans);
    height: 100%;
    border-bottom: 3px solid transparent;
}

.icon-box-item:hover {
    box-shadow: var(--anvi-shadow-hover);
    transform: translateY(-6px);
    border-bottom-color: var(--anvi-gold);
}

.icon-box__icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(247, 180, 1, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: var(--anvi-trans);
}

.icon-box-item:hover .icon-box__icon {
    background: var(--anvi-gold);
}

.icon-box__icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: var(--anvi-trans);
}

.icon-box-item:hover .icon-box__icon img {
    filter: brightness(0) invert(1);
}

.icon-box__info h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--anvi-dark);
    margin-bottom: 8px;
    letter-spacing: 0.03em;
}

.icon-box__info p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* ---------------------------------------------------------
   5. ACCUEIL – COMPTEURS (fun-fact)
--------------------------------------------------------- */
.fun-fact-area {
    padding: 80px 0;
    position: relative;
}

.fun-fact-area::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(8, 11, 26, 0.70);
}

.fun-fact-area .container {
    position: relative;
    z-index: 1;
}

.counter-item {
    padding: 20px;
}

.counter-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--anvi-gold);
    line-height: 1;
    margin-bottom: 10px;
}

.counter-txt {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
}

/* ---------------------------------------------------------
   6. ACCUEIL – SERVICES (service-item)
--------------------------------------------------------- */
.service-area-wrapper {
    margin-top: 0;
}

.service-area-top {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
    min-height: 360px !important;
    box-sizing: border-box;
}

.service-content-area {
    padding: 60px 0;
    background: #fff;
}

.service-item {
    background: #fff;
    border-radius: var(--anvi-radius);
    box-shadow: var(--anvi-shadow);
    overflow: hidden;
    transition: var(--anvi-trans);
    margin-top: 30px;
    height: calc(100% - 30px);
}

.service-item:hover {
    box-shadow: var(--anvi-shadow-hover);
    transform: translateY(-6px);
}

.service-thumb {
    position: relative;
    overflow: hidden;
    margin: 0;
}

.service-thumb img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-item:hover .service-thumb img {
    transform: scale(1.06);
}

.service-txt {
    background: linear-gradient(to top, rgba(8,11,26,0.85), transparent);
}

.service-content {
    padding: 20px 22px 24px;
}

.service-content-inner h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--anvi-dark);
    line-height: 1.5;
    margin-bottom: 8px;
}

.service-content-inner p {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* ---------------------------------------------------------
   7. ACCUEIL – BLOGUER (présentation principale)
--------------------------------------------------------- */
.about-area-wrapper {
    padding: 60px 0;
}

.bloguer-titre-wrap {
    margin-bottom: 36px;
    text-align: center;
}

.bloguer-titre {
    font-size: clamp(1.8rem, 4vw, 2.8rem) !important;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--anvi-dark);
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
}

.bloguer-titre::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--anvi-gold);
    border-radius: 2px;
}

.bloguer-thumb {
    margin: 0;
    border-radius: var(--anvi-radius);
    overflow: hidden;
    box-shadow: var(--anvi-shadow-hover);
}

.bloguer-thumb img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--anvi-radius);
    transition: transform 0.5s ease;
}

.bloguer-thumb:hover img {
    transform: scale(1.03);
}

.bloguer-text-col {
    padding-top: 10px;
}

.bloguer-intro p,
.bloguer-body p {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.9;
    text-align: justify;
}

.bloguer-intro {
    padding-left: 16px;
    border-left: 3px solid var(--anvi-gold);
}

.bloguer-body {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e8e8e8;
}

@media (max-width: 767px) {
    .bloguer-img-col { margin-bottom: 24px; }
    .bloguer-intro { border-left: none; padding-left: 0; }
}

/* ---------------------------------------------------------
   8. ÉQUIPE (team-mem-item)
--------------------------------------------------------- */
.team-page-area-wrapper {
    padding: 80px 0;
}

.team-mem-item {
    background: #fff;
    border-radius: var(--anvi-radius);
    box-shadow: var(--anvi-shadow);
    overflow: hidden;
    transition: var(--anvi-trans);
    margin-top: 30px;
}

.team-mem-item:hover {
    box-shadow: var(--anvi-shadow-hover);
    transform: translateY(-6px);
}

.member-pic {
    margin: 0;
    overflow: hidden;
}

.member-pic img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-mem-item:hover .member-pic img {
    transform: scale(1.06);
}

.member-info {
    padding: 18px 20px 20px;
    text-align: center;
    border-top: 3px solid var(--anvi-gold);
}

.member-info h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--anvi-dark);
    margin-bottom: 4px;
}

.member-info .designation {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--anvi-gold);
}

.member-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(247,180,1,0.12);
    color: var(--anvi-gold);
    font-size: 1.1rem;
    margin: 0 4px;
    transition: var(--anvi-trans);
}

.member-social-icons a:hover {
    background: var(--anvi-gold);
    color: #fff;
    transform: translateY(-3px);
}

/* ---------------------------------------------------------
   9. PRODUITS – CARTES (blog-item)
--------------------------------------------------------- */
.blog-page-content-area {
    padding: 70px 0 90px;
    background: var(--anvi-light);
}

.page-header-content h2 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--anvi-dark);
    margin-bottom: 0;
}

.blog-item {
    background: #fff;
    border-radius: var(--anvi-radius);
    box-shadow: var(--anvi-shadow);
    overflow: hidden;
    transition: var(--anvi-trans);
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 30px);
}

.blog-item:hover {
    box-shadow: var(--anvi-shadow-hover);
    transform: translateY(-8px);
}

.blog-thumb {
    overflow: hidden !important;
    height: 240px !important;
    max-height: 240px !important;
    background: #f0f0f0;
    flex-shrink: 0;
}

.blog-thumb img {
    width: 100% !important;
    height: 240px !important;
    object-fit: cover !important;
    transition: transform 0.5s ease !important;
}

.blog-item:hover .blog-thumb img {
    transform: scale(1.07) !important;
}

.blog-content {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-content .h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--anvi-dark);
    margin-bottom: 8px;
    line-height: 1.4;
    transition: color 0.25s;
}

.blog-content .h5 a {
    color: inherit;
    text-decoration: none;
}

.blog-item:hover .blog-content .h5 a {
    color: var(--anvi-gold);
}

.blog-content > p {
    font-size: 0.82rem;
    color: #888;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
}

/* Bouton "Plus de détail" */
.pricing_btn {
    margin-top: auto;
    padding-top: 14px;
}

.pricing_btn .btn.btn-link {
    border: 2px solid var(--anvi-brown) !important;
    background: transparent !important;
    color: var(--anvi-brown) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    padding: 10px 28px !important;
    height: auto !important;
    line-height: 1.4 !important;
    transition: var(--anvi-trans) !important;
    display: inline-block !important;
}

.pricing_btn .btn.btn-link:hover {
    background: var(--anvi-brown) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(144, 116, 79, 0.35) !important;
}

.pricing_btn .btn.btn-link::before {
    display: none !important;
}

/* Meta produit */
.blog-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.blog-meta a {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #999;
    background: #f5f5f5;
    padding: 3px 10px;
    border-radius: 20px;
    transition: var(--anvi-trans);
    text-decoration: none;
}

.blog-meta a:hover {
    background: var(--anvi-gold);
    color: #fff;
}

/* Pagination */
.pagination-wrap {
    margin-top: 48px;
    text-align: center;
}

.pagination {
    display: inline-flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 6px;
    background: #fff;
    color: var(--anvi-dark);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    transition: var(--anvi-trans);
}

.pagination li a:hover,
.pagination li.active a {
    background: var(--anvi-gold);
    color: #fff;
    border-color: var(--anvi-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(247, 180, 1, 0.4);
}

.pagination li.prev a,
.pagination li.next a {
    width: auto;
    padding: 0 18px;
    gap: 6px;
}

/* ---------------------------------------------------------
   10. PRODUITS – SECTION TEXTE (no-vitrine fallback)
--------------------------------------------------------- */
.blog-content-wrapper .card {
    border-radius: 6px !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(52, 115, 242, 0.3) !important;
}

.blog-content-wrapper p {
    font-size: 1rem;
    color: #444;
    line-height: 1.85;
}

/* ---------------------------------------------------------
   11. CONTACT – FORMULAIRE
--------------------------------------------------------- */
.contact-page-area-wrapper {
    padding: 70px 0 90px;
    background: var(--anvi-light);
}

.contact-content-wrap {
    background: #fff;
    border-radius: var(--anvi-radius);
    box-shadow: var(--anvi-shadow);
    padding: 50px 40px;
}

.contact-form-area h3,
.contact-information h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--anvi-dark);
    margin-bottom: 28px;
    position: relative;
    padding-bottom: 14px;
    letter-spacing: 0.03em;
}

.contact-form-area h3::after,
.contact-information h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--anvi-gold);
    border-radius: 2px;
}

.single-input-item {
    margin-bottom: 20px;
}

.single-input-item label {
    display: block;
}

.single-input-item input[type="text"],
.single-input-item input[type="email"] {
    width: 100%;
    height: 52px;
    padding: 0 18px;
    border: 1px solid #e0e4ec;
    border-radius: 6px;
    background: #f9fafc;
    font-size: 0.9rem;
    color: var(--anvi-dark);
    transition: var(--anvi-trans);
    outline: none;
    box-sizing: border-box;
}

.single-input-item input[type="text"]:focus,
.single-input-item input[type="email"]:focus {
    border-color: var(--anvi-gold);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(247, 180, 1, 0.15);
}

.single-input-item textarea {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid #e0e4ec;
    border-radius: 6px;
    background: #f9fafc;
    font-size: 0.9rem;
    color: var(--anvi-dark);
    transition: var(--anvi-trans);
    outline: none;
    resize: vertical;
    min-height: 140px;
    box-sizing: border-box;
}

.single-input-item textarea:focus {
    border-color: var(--anvi-gold);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(247, 180, 1, 0.15);
}

/* Placeholder */
.single-input-item input::placeholder,
.single-input-item textarea::placeholder {
    color: #aab0bc;
    font-size: 0.875rem;
}

/* Bouton envoi */
.btn-outline {
    display: inline-block;
    padding: 14px 40px;
    border: 2px solid var(--anvi-gold);
    border-radius: 6px;
    background: transparent;
    color: var(--anvi-dark);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--anvi-trans);
}

.btn-outline:hover {
    background: var(--anvi-gold);
    color: #fff;
    box-shadow: 0 8px 24px rgba(247, 180, 1, 0.4);
    transform: translateY(-2px);
}

.btn-outline:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ---------------------------------------------------------
   12. CONTACT – INFO SIDEBAR
--------------------------------------------------------- */
.contact-information {
    height: 100%;
}

.contact-info-con {
    background: var(--anvi-navy);
    border-radius: var(--anvi-radius);
    padding: 36px 30px 32px;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.contact-info-con::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(247, 180, 1, 0.08);
}

.contact-info-con h3 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 24px;
    padding-bottom: 14px;
    letter-spacing: 0.04em;
}

.contact-info-con h3::after {
    background: var(--anvi-gold);
}

.contact-info-con address {
    font-style: normal;
    line-height: 2;
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
}

.contact-info-con address p {
    color: rgba(255,255,255,0.75) !important;
    margin: 0;
}

.contact-info-con .member-social-icons {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ---------------------------------------------------------
   13. ESPACEMENTS UTILITAIRES
--------------------------------------------------------- */
.mt-40 {
    margin-top: 40px;
}

.sm-top,
.sm-top-wt {
    margin-top: 60px;
}

/* ---------------------------------------------------------
   14. RESPONSIVE
--------------------------------------------------------- */
@media (max-width: 991px) {
    .contact-content-wrap {
        padding: 36px 24px;
    }

    .about-content {
        padding-right: 0;
        margin-bottom: 36px;
    }

    .contact-info-con {
        margin-top: 36px;
    }

    .icon-box-item {
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .page-header-area {
        min-height: 220px;
    }

    .contact-content-wrap {
        padding: 28px 18px;
    }

    .blog-thumb,
    .blog-thumb img {
        height: 200px !important;
    }

    .feature-area-wrapper,
    .about-area-wrapper,
    .service-content-area,
    .contact-page-area-wrapper,
    .blog-page-content-area,
    .team-page-area-wrapper {
        padding: 50px 0;
    }

    .fun-fact-area {
        padding: 50px 0;
    }

    .pricing_btn .btn.btn-link {
        padding: 10px 20px !important;
    }
}

@media (max-width: 575px) {
    .page-header-content h2 {
        font-size: 1.5rem;
    }

    .pagination li a {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    .single-input-item input[type="text"],
    .single-input-item input[type="email"] {
        height: 46px;
    }
}
