/* ═══════════════════════════════════════════════════════
   Claims Master — Styles de la page d'accueil (Modern Redesign)
   Fichier : public/css/home.css
═══════════════════════════════════════════════════════ */

/* Import Outfit for a very modern, geometric sans-serif look */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-main: #ffffff;
    --bg-secondary: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    
    /* Brand Colors */
    --brand-blue: #213685;
    --brand-blue-transparent: rgba(33, 54, 133, 0.15);
    --brand-green: #7aaa25;
    --brand-green-transparent: rgba(122, 170, 37, 0.15);

    /* Vercel-like sleek gradients adapted to brand */
    --gradient-primary: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-green) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(33, 54, 133, 0.4) 0%, rgba(122, 170, 37, 0.4) 100%);
    
    --border-glass: rgba(255, 255, 255, 0.2);
    --bg-glass: rgba(255, 255, 255, 0.85); /* Slightly less transparent for white bg */
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.08);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
}

/* ── HERO SECTION (Next-Gen Aesthetic) ── */
.hero-modern {
    position: relative;
    padding: 160px 5% 100px; /* Generous top padding to clear fixed nav */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--bg-main);
}

/* Background Image Overlay */
.hero-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(33, 54, 133, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    z-index: 1;
}

/* Base content layer */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-radius: 100px;
    background: var(--bg-glass);
    border: 1px solid rgba(33, 54, 133, 0.1);
    box-shadow: var(--shadow-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-blue);
    margin-bottom: 30px;
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-modern h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: #ffffff; /* White text for dark overlay */
    animation: fadeUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-modern h1 span {
    background: linear-gradient(135deg, #60a5fa 0%, var(--brand-green) 100%);
    -webkit-background-clip: text;
    background-clip: text; /* Fix lint */
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-modern p {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: rgba(255, 255, 255, 0.85); /* Lighter text for the description */
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.6;
    font-weight: 400;
    animation: fadeUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern Buttons */
.btn-modern-primary {
    padding: 16px 36px;
    border-radius: 100px;
    background: var(--brand-blue);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
    box-shadow: 0 10px 20px -5px rgba(33, 54, 133, 0.4);
}

.btn-modern-primary i {
    transition: transform 0.3s;
}

.btn-modern-primary:hover {
    background: #172766; /* darker blue */
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(33, 54, 133, 0.5);
}

.btn-modern-primary:hover i {
    transform: translateX(4px);
}

.btn-modern-outline {
    padding: 16px 36px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05); /* Ghost style for dark bg */
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-modern-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

/* ── FLOATING STATS ── */
.stats-floating-container {
    max-width: 1200px;
    margin: -60px auto 80px;
    position: relative;
    z-index: 10;
    padding: 0 5%;
}

.stats-glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(33, 54, 133, 0.05); /* brand blue tint */
    border-radius: 32px;
    padding: 40px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    box-shadow: var(--shadow-soft);
    animation: fadeUp 1s ease-out 0.8s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.stat-modern {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.stat-modern .num {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.stat-modern .label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── GLOBAL SECTION STYLES ── */
.section-modern {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-modern-bg {
    background-color: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-inline: auto;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(33, 54, 133, 0.1); /* brand blue */
    color: var(--brand-blue);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.1;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── SINGLE ROW SERVICES GRID ── */
.services-grid-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 60px;
    padding: 10px;
}

.service-card-compact {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px 24px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.service-card-compact:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: rgba(33, 54, 133, 0.15);
}

.service-icon-compact {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.service-card-compact:hover .service-icon-compact {
    transform: scale(1.1) rotate(5deg);
}

.service-card-compact h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-main);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.service-card-compact p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1; /* Pushes the link to the bottom */
}

.service-link-compact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: gap 0.3s;
    margin-top: auto;
}

.service-link-compact:hover {
    gap: 10px;
}

@media (max-width: 1200px) {
    .services-grid-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .services-grid-row {
        grid-template-columns: 1fr;
    }
}

/* ── PROCESS TIMELINE ── */
.process-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    position: relative;
    margin-top: 60px;
}

/* Connecting line */
.process-container::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(33, 54, 133, 0.2), transparent);
    z-index: 0;
}

.process-step {
    flex: 1;
    min-width: 220px;
    text-align: center;
    position: relative;
    z-index: 1;
    background: var(--bg-main);
    padding: 20px;
    border-radius: 24px;
    transition: transform 0.3s;
}

.process-step:hover {
    transform: translateY(-5px);
}

.step-icon-modern {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--brand-blue);
    margin: 0 auto 24px;
    position: relative;
    transition: all 0.3s ease;
}

.process-step:hover .step-icon-modern {
    border-color: rgba(33, 54, 133, 0.2);
    box-shadow: 0 15px 30px rgba(33, 54, 133, 0.15);
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 28px;
    height: 28px;
    background: var(--text-main);
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
}

.process-step h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.process-step p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .process-container::after { display: none; }
}

/* ── SECURITY APPLE-STYLE ── */
.security-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    background: var(--text-main); /* Dark theme for security section */
    border-radius: 40px;
    padding: 80px;
    color: #fff;
    margin-top: 40px;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.2);
    overflow: hidden;
    position: relative;
}

.security-showcase::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 100%;
    height: 150%;
    background: radial-gradient(circle, rgba(33, 54, 133, 0.4) 0%, rgba(15, 23, 42, 0) 70%); /* subtle brand blue */
}

.security-text {
    position: relative;
    z-index: 2;
}

.security-text h2 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.security-text p {
    font-size: 18px;
    color: #94a3b8;
    margin-bottom: 40px;
    line-height: 1.7;
}

.security-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.security-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.security-item i {
    font-size: 24px;
    color: var(--brand-blue); /* brand blue */
    margin-top: 4px;
}

.security-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.security-item p {
    font-size: 15px;
    color: #cbd5e1;
    margin-bottom: 0;
}

.security-visual {
    position: relative;
    z-index: 2;
}

.glass-card-dark {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
}

/* Floating elements over the dark card */
.security-badge-float {
    position: absolute;
    background: rgba(122, 170, 37, 0.15); /* Brand Green */
    border: 1px solid rgba(122, 170, 37, 0.3);
    color: var(--brand-green);
    padding: 12px 24px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    animation: float 6s infinite ease-in-out;
}

.float-1 { top: -20px; right: -20px; }
.float-2 { bottom: -20px; left: -20px; animation-delay: -3s; }

@media (max-width: 992px) {
    .security-showcase { grid-template-columns: 1fr; padding: 50px 30px; gap: 50px; }
}

/* ── MODERN CTA BTTOM ── */
.cta-modern {
    margin: 100px auto;
    max-width: 1200px;
    background: linear-gradient(135deg, rgba(33, 54, 133, 0.05) 0%, rgba(122, 170, 37, 0.05) 100%);
    border-radius: 40px;
    padding: 80px 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(33, 54, 133, 0.1);
}

.cta-modern::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(122, 170, 37, 0.1) 0%, transparent 70%); /* Brand green glow */
}

.cta-modern h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 2;
}

.cta-modern p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 2;
}

/* Utility to ensure nav z-index is respected */
header, nav {
    z-index: 1000 !important;
}

/* ══════════ SECONDARY PAGES CSS ══════════ */

/* ── PAGE HERO ── */
.page-hero {
    padding: 140px 20px 80px;
    background: #0f172a; /* Dark background matching the new identity */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(33, 54, 133, 0.2), transparent 50%),
                radial-gradient(circle at bottom left, rgba(122, 170, 37, 0.1), transparent 50%);
    pointer-events: none;
}

.page-hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.page-hero h1 span {
    background: linear-gradient(135deg, #60a5fa 0%, var(--brand-green) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.page-hero .carousel-tag {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 24px;
}

.page-hero p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto;
}

/* ── GENERIC GRIDS (Used in subpages) ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.service-card {
    background: #fff;
    border-radius: 24px;
    padding: 32px 24px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 24px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-main);
}

.service-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    flex-grow: 1;
}

/* ── SECURITY GRID ── */
.security-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    align-items: center;
}

.security-image {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.security-image img {
    width: 100%;
    height: auto;
    display: block;
}

.badge-overlay {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
}

.security-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-row {
    display: flex;
    gap: 20px;
}

.feature-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.feature-row h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-main);
}

.feature-row p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .security-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .badge-overlay {
        bottom: 20px;
        right: 20px;
    }
}

/* ── STEPS GRID ── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.step {
    padding: 30px;
    background: #fff;
    border-radius: 24px;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 20px;
}

.step h4 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-main);
}

.step p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}
