/* ============================================================
   TAPIS NDHIF — styles.css (global)
   Charte : Bleu Vif #054998 · Azur #2B7EBF · Azur Pastel #90BDDE · Orange #A48C68
   Polices : Montserrat (titres) + DM Sans (corps)
   ============================================================ */

/* ── RESET & VARIABLES ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, input, textarea, select, button {
    font-family: 'DM Sans', sans-serif;
}

/* Preserve Font Awesome icon rendering */
.fa, .fas, .far, .fal, .fab,
.fa-solid, .fa-regular, .fa-brands,
[class^="fa-"], [class*=" fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

:root {
    --bleu-vif:    #054998;
    --azur:        #2B7EBF;
    --azur-pastel: #90BDDE;
    --orange:      #A48C68;
    --blanc:       #ffffff;
    --gris:        #f4f8fc;
    --texte:       #0f1e30;
    --texte-doux:  #5a7080;
    --radius:      20px;

    --shadow-sm:   0 2px 12px rgba(5,73,152,.07);
    --shadow-md:   0 6px 28px rgba(5,73,152,.11);
    --shadow-lg:   0 20px 60px rgba(5,73,152,.16);
    --transition:  all .3s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
    background: var(--blanc);
    color: var(--texte);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6,
.font-title {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.15;
    color: var(--texte);
}

/* ── CONTAINER ── */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ── SECTION HELPERS ── */
.section { padding: 96px 0; }

.section-tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: .75rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--azur); margin-bottom: 14px;
}
.section-tag::before {
    content: '';
    width: 24px; height: 2px;
    background: var(--orange); border-radius: 999px;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--texte);
    line-height: 1.15;
    margin-bottom: 14px;
}
.section-title em { font-style: normal; color: var(--azur); }

.section-sub {
    font-size: 1.05rem;
    color: var(--texte-doux);
    line-height: 1.75;
    max-width: 560px;
}

/* ── BUTTONS ── */
.btn {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; font-size: .88rem; letter-spacing: .01em;
    padding: 13px 26px; border-radius: 13px;
    border: none; cursor: pointer; text-decoration: none;
    transition: transform .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-3px); }

.btn-primary {
    background: linear-gradient(135deg, var(--bleu-vif), var(--azur));
    color: #fff;
    box-shadow: 0 6px 24px rgba(5,73,152,.35);
}
.btn-primary:hover { box-shadow: 0 12px 36px rgba(5,73,152,.5); }

.btn-white {
    background: #fff; color: var(--bleu-vif);
    box-shadow: 0 6px 24px rgba(5,73,152,.25);
}
.btn-white:hover { box-shadow: 0 12px 36px rgba(5,73,152,.38); }

.btn-ghost {
    background: rgba(255,255,255,.13); color: #fff;
    border: 1.5px solid rgba(255,255,255,.38);
}
.btn-ghost:hover { background: rgba(255,255,255,.24); }

.btn-orange {
    background: var(--orange); color: #fff;
    box-shadow: 0 6px 24px rgba(164,140,104,.4);
}

.btn-outline {
    background: transparent; color: var(--bleu-vif);
    border: 2px solid var(--azur-pastel);
}
.btn-outline:hover { background: var(--bleu-vif); color: #fff; border-color: var(--bleu-vif); }

/* ── HEADER ── */
header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(5,73,152,.08);
    transition: box-shadow .3s;
}
header.scrolled { box-shadow: 0 4px 30px rgba(5,73,152,.12); }

.navbar {
    max-width: 1280px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 32px; height: 72px;
}
.logo img { height: 48px; border-radius: 8px; }

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600; font-size: .85rem; letter-spacing: .01em;
    color: var(--texte); padding: 8px 15px; border-radius: 10px;
    transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--gris); color: var(--azur); }
.nav-links a.active { background: var(--bleu-vif); color: #fff; }

.nav-cta {
    background: linear-gradient(135deg, var(--bleu-vif), var(--azur)) !important;
    color: #fff !important;
}
.nav-cta:hover { opacity: .9; transform: none !important; }

.mobile-menu-btn {
    display: none; background: none; border: none;
    font-size: 1.4rem; color: var(--bleu-vif); cursor: pointer;
}

/* ── PAGE HERO BANNER (pages internes) ── */
.page-hero {
    margin-top: 72px;
    position: relative; overflow: hidden;
    min-height: 380px;
    display: flex; align-items: center;
    background: linear-gradient(135deg, var(--bleu-vif) 0%, var(--azur) 60%, var(--azur-pastel) 100%);
}
.page-hero-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.page-hero-shapes span {
    position: absolute; border-radius: 50%;
    background: rgba(255,255,255,.06);
    animation: floatBubble 8s ease-in-out infinite;
}
.page-hero-shapes span:nth-child(1) { width: 380px; height: 380px; top: -120px; right: -80px; }
.page-hero-shapes span:nth-child(2) { width: 200px; height: 200px; bottom: -60px; left: 10%; animation-delay: 2s; }
.page-hero-shapes span:nth-child(3) { width: 120px; height: 120px; top: 40px; left: 40%; animation-delay: 4s; background: rgba(164,140,104,.18); }
.page-hero-shapes span:nth-child(4) { width: 60px; height: 60px; bottom: 30px; right: 20%; animation-delay: 1s; }

.page-hero-content {
    position: relative; z-index: 2;
    max-width: 1280px; margin: 0 auto;
    padding: 80px 32px;
    display: flex; flex-direction: column; gap: 18px;
}
.page-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.18); color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: .78rem; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    padding: 6px 16px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.3);
    width: fit-content;
    animation: fadeSlideDown .6s ease both;
}
.page-hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.4rem);
    color: #fff; line-height: 1.1;
    animation: fadeSlideDown .7s .1s ease both;
}
.page-hero-content h1 em { font-style: normal; color: var(--orange); }
.page-hero-content p {
    font-size: 1.1rem; color: rgba(255,255,255,.88);
    max-width: 540px; line-height: 1.75;
    animation: fadeSlideDown .7s .2s ease both;
}
.page-hero-cta {
    display: flex; gap: 14px; flex-wrap: wrap;
    animation: fadeSlideDown .7s .3s ease both;
}

/* ── STATS BAND ── */
.stats-band { background: var(--gris); border-bottom: 1px solid rgba(5,73,152,.07); }
.stats-inner {
    max-width: 1280px; margin: 0 auto; padding: 0 32px;
    display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat-item {
    padding: 34px 20px; text-align: center;
    border-right: 1px solid rgba(5,73,152,.1);
    opacity: 0; transform: translateY(20px);
    transition: opacity .6s, transform .6s;
}
.stat-item:last-child { border-right: none; }
.stat-item.visible { opacity: 1; transform: translateY(0); }
.stat-num {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800; font-size: 2rem; color: var(--bleu-vif);
}
.stat-label { font-size: .85rem; color: var(--texte-doux); font-weight: 500; margin-top: 5px; }

/* ── CARDS ── */
.card-base {
    background: #fff; border-radius: 24px;
    border: 1.5px solid rgba(5,73,152,.09);
    box-shadow: var(--shadow-sm);
    transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s;
    overflow: hidden;
    opacity: 0; transform: translateY(32px);
}
.card-base.visible { opacity: 1; transform: translateY(0); }
.card-base:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }

.card-img { height: 210px; position: relative; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card-base:hover .card-img img { transform: scale(1.07); }
.card-img-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(5,73,152,.5) 0%, transparent 55%);
}
.card-img-icon {
    position: absolute; bottom: 16px; left: 18px;
    width: 50px; height: 50px; border-radius: 14px;
    background: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: var(--bleu-vif);
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.card-body { padding: 26px 28px 30px; }
.card-body h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; font-size: 1.15rem; color: var(--texte); margin-bottom: 10px;
}
.card-body p { font-size: .92rem; color: var(--texte-doux); line-height: 1.7; margin-bottom: 20px; }

/* Check list */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--texte); }
.check-list li .icon {
    width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--bleu-vif), var(--azur));
    display: flex; align-items: center; justify-content: center;
    font-size: .6rem; color: #fff; margin-top: 1px;
}

/* Card link */
.card-link {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .85rem;
    color: var(--bleu-vif); padding: 10px 20px; border-radius: 10px;
    border: 2px solid var(--azur-pastel);
    transition: background .2s, color .2s, border-color .2s;
}
.card-link:hover { background: var(--bleu-vif); color: #fff; border-color: var(--bleu-vif); }

/* ── PROCESS STEPS ── */
.steps-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 24px; margin-top: 56px; position: relative;
}
.steps-grid::before {
    content: ''; position: absolute;
    top: 44px; left: calc(12.5% + 10px); right: calc(12.5% + 10px);
    height: 2px;
    background: linear-gradient(90deg, var(--azur-pastel), var(--azur), var(--azur-pastel));
}
.step-card {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: 16px; padding: 0 12px;
    opacity: 0; transform: translateY(28px);
    transition: opacity .6s, transform .6s;
}
.step-card.visible { opacity: 1; transform: translateY(0); }
.step-bubble {
    width: 88px; height: 88px; border-radius: 50%; z-index: 1;
    display: flex; align-items: center; justify-content: center;
    background: #fff; border: 3px solid var(--azur-pastel);
    font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.6rem;
    color: var(--bleu-vif); box-shadow: var(--shadow-md);
    transition: background .3s, border-color .3s, color .3s;
}
.step-card:hover .step-bubble { background: var(--bleu-vif); border-color: var(--bleu-vif); color: #fff; }
.step-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(135deg, var(--bleu-vif), var(--azur));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: #fff;
}
.step-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; font-size: 1rem; color: var(--texte);
}
.step-card p { font-size: .88rem; color: var(--texte-doux); line-height: 1.65; }

/* ── WHY US FEATURES ── */
.why-feat {
    display: flex; gap: 18px; align-items: flex-start;
    padding: 20px 22px; border-radius: 16px;
    border: 1.5px solid rgba(5,73,152,.09);
    background: var(--gris);
    opacity: 0; transform: translateX(20px);
    transition: opacity .5s, transform .5s, border-color .3s, box-shadow .3s;
}
.why-feat.visible { opacity: 1; transform: translateX(0); }
.why-feat:hover { border-color: var(--azur-pastel); box-shadow: var(--shadow-md); transform: translateY(-2px) !important; }
.why-feat .feat-icon {
    width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--bleu-vif), var(--azur));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: #fff;
}
.why-feat h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; font-size: 1rem; color: var(--texte); margin-bottom: 5px;
}
.why-feat p { font-size: .9rem; color: var(--texte-doux); line-height: 1.6; }

/* ── CTA CARD ── */
.cta-card {
    background: linear-gradient(145deg, var(--bleu-vif) 0%, #073d80 50%, var(--azur) 100%);
    border-radius: 32px; padding: 72px 64px;
    display: flex; align-items: center; justify-content: space-between; gap: 48px;
    position: relative; overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.cta-card::before {
    content: ''; position: absolute; width: 480px; height: 480px; border-radius: 50%;
    background: rgba(255,255,255,.05); top: -200px; right: -150px;
}
.cta-card::after {
    content: ''; position: absolute; width: 200px; height: 200px; border-radius: 50%;
    background: rgba(164,140,104,.12); bottom: -60px; left: 30%;
}
.cta-grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 30s linear infinite;
}
.cta-left { position: relative; z-index: 1; }
.cta-left h2 {
    font-family: 'Montserrat', sans-serif; font-weight: 900;
    font-size: clamp(1.8rem, 3vw, 2.6rem); color: #fff; margin-bottom: 12px;
}
.cta-left p { color: rgba(255,255,255,.75); font-size: 1rem; line-height: 1.7; }
.cta-right { display: flex; flex-direction: column; gap: 14px; flex-shrink: 0; position: relative; z-index: 1; }
.cta-right .btn { min-width: 240px; justify-content: center; }

/* ── ZONE CARD ── */
.zone-card {
    background: linear-gradient(135deg, var(--bleu-vif) 0%, var(--azur) 100%);
    border-radius: 32px; padding: 60px;
    display: flex; align-items: center; gap: 56px;
    box-shadow: var(--shadow-lg);
    position: relative; overflow: hidden;
}
.zone-card::before {
    content: ''; position: absolute; width: 440px; height: 440px; border-radius: 50%;
    background: rgba(255,255,255,.05); top: -180px; right: -100px;
}
.zone-icon-wrap {
    width: 96px; height: 96px; border-radius: 24px; flex-shrink: 0;
    background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.4rem; color: #fff; position: relative; z-index: 1;
}
.zone-text { position: relative; z-index: 1; }
.zone-text h3 {
    font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.75rem;
    color: #fff; margin-bottom: 12px;
}
.zone-text p { color: rgba(255,255,255,.78); font-size: 1rem; line-height: 1.7; margin-bottom: 24px; }
.zone-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.zone-tag {
    background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
    color: #fff; border-radius: 999px; font-size: .82rem; font-weight: 600;
    padding: 6px 16px; display: inline-flex; align-items: center; gap: 6px;
}

/* ── TESTIMONIALS ── */
.testimonials-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px; margin-top: 56px;
}
.testi-card {
    background: #fff; border-radius: 20px; padding: 28px;
    border: 1.5px solid rgba(5,73,152,.08);
    box-shadow: var(--shadow-sm);
    transition: transform .3s, box-shadow .3s;
    opacity: 0; transform: translateY(24px);
}
.testi-card.visible { opacity: 1; transform: translateY(0); }
.testi-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.testi-stars { color: #f59e0b; font-size: .9rem; margin-bottom: 14px; letter-spacing: 2px; }
.testi-text { font-size: .95rem; color: var(--texte-doux); line-height: 1.75; font-style: italic; margin-bottom: 20px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--bleu-vif), var(--azur));
    display: flex; align-items: center; justify-content: center;
    font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1rem; color: #fff;
}
.testi-name { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .9rem; color: var(--texte); }
.testi-loc { font-size: .8rem; color: var(--texte-doux); }

/* ── FOOTER ── */
footer { background: #0b1b2e; color: rgba(255,255,255,.7); }
.footer-grid {
    max-width: 1280px; margin: 0 auto;
    padding: 72px 32px 40px;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px;
}
.footer-logo {
    font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.45rem;
    color: #fff; display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.footer-logo-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.footer-col p, .footer-col a {
    font-size: .88rem; line-height: 1.9; color: rgba(255,255,255,.6);
    display: flex; align-items: flex-start; gap: 10px; margin-bottom: 6px;
}
.footer-col a { text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--azur-pastel); }
.footer-col h4 {
    font-family: 'Montserrat', sans-serif; font-weight: 700;
    font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
    color: #fff; margin-bottom: 20px;
}
.social-links { display: flex; gap: 10px; margin-top: 20px; }
.social-links a {
    width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
    background: rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.65); font-size: .95rem;
    transition: background .2s, color .2s;
}
.social-links a:hover { background: var(--azur); color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.07);
    max-width: 1280px; margin: 0 auto;
    padding: 24px 32px; text-align: center;
    font-size: .82rem; color: rgba(255,255,255,.35);
}

/* ── FLOATING WHATSAPP ── */
.float-wa {
    position: fixed; bottom: 28px; right: 28px; z-index: 999;
    width: 62px; height: 62px; border-radius: 50%;
    background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; text-decoration: none;
    box-shadow: 0 6px 28px rgba(37,211,102,.5);
    animation: waPulse 2.5s infinite;
}
@keyframes waPulse {
    0%,100% { box-shadow: 0 6px 28px rgba(37,211,102,.5); }
    50%      { box-shadow: 0 6px 44px rgba(37,211,102,.75); }
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatBubble {
    0%,100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-18px) scale(1.03); }
}
@keyframes gridMove {
    from { background-position: 0 0; }
    to   { background-position: 60px 60px; }
}
@keyframes orbFloat {
    0%,100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-25px) scale(1.05); }
}
@keyframes blink {
    0%,100% { opacity: 1; }
    50%      { opacity: .4; }
}

/* ── SHARED JS OBSERVER TARGET ── */
.anim { opacity: 0; transform: translateY(28px); transition: opacity .6s, transform .6s; }
.anim.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .stats-inner { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: none; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid::before { display: none; }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cta-card { flex-direction: column; padding: 56px 40px; }
    .cta-right .btn { min-width: auto; width: 100%; }
    .zone-card { flex-direction: column; gap: 32px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column;
        position: absolute; top: 72px; left: 0; right: 0;
        background: #fff; padding: 20px 32px 28px;
        border-bottom: 1px solid rgba(5,73,152,.1);
        box-shadow: 0 8px 30px rgba(5,73,152,.1);
        gap: 6px;
    }
    .mobile-menu-btn { display: block; }
    .container { padding: 0 20px; }
    .section { padding: 64px 0; }
    .stats-inner { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .zone-card { padding: 36px 24px; }
    .cta-card { padding: 48px 28px; }
    .page-hero-content { padding: 60px 20px; }
}