/* ==========================================================================
   1. VARIABLES ET BASE
   ========================================================================== */
:root {
    --navy: #003366;
    --navy-dark: #0a1128;
    --navy-light: #004d99;
    --gray-dark: #1e293b;
    --gray-medium: #64748b;
    --gray-light: #f1f5f9;
    --white: #ffffff;
}

.tplp-style {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--gray-dark);
    background: var(--white);
    margin: 0;
    padding: 0;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 25px; }

/* ==========================================================================
   2. FIL D'INFOS (FLASH ACTU)
   ========================================================================== */
.news-ticker-wrapper { 
    background: var(--navy-dark); 
    color: white; 
    height: 45px; 
    display: flex; 
    align-items: center; 
    overflow: hidden; 
    position: relative; 
    z-index: 100; 
}

.ticker-label { 
    position: relative;
    z-index: 10;
    background: var(--navy); 
    padding: 0 25px; 
    height: 100%; 
    display: flex; 
    align-items: center; 
    font-weight: 800; 
    font-size: 11px; 
    letter-spacing: 1.5px; 
    box-shadow: 10px 0 20px rgba(0, 0, 0, 0.4); 
}

.ticker-content { flex: 1; overflow: hidden; position: relative; z-index: 1; }

/* ==========================================================================
   FIX DÉFILEMENT FIL INFO (TICKER)
   ========================================================================== */
.ticker-track { 
    display: flex !important; 
    white-space: nowrap; 
    /* L'animation doit être liée au nom ci-dessous */
    animation: ticker-scroll 60s linear infinite; 
    width: max-content;
}

/* IMPORTANT : Ce bloc doit être présent pour que ça bouge */
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-track:hover {
    animation-play-state: paused; /* S'arrête au survol pour lecture */
}

.ticker-item { color: #cbd5e1; text-decoration: none; padding: 0 45px; font-size: 13px; }

.ticker-track:hover { animation-play-state: paused; }

@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ==========================================================================
   3. SECTION HERO
   ========================================================================== */
.hero-v3 {
    position: relative;
    padding: 140px 0 160px 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(10, 17, 40, 0.92), rgba(10, 17, 40, 0.8));
    z-index: 1;
}

.hero-inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }

.hero-badge {
    border: 1px solid rgba(255,255,255,0.25);
    color: white; padding: 8px 20px; border-radius: 100px;
    font-size: 12px; font-weight: 600; display: inline-block;
    margin-bottom: 30px; background: rgba(255,255,255,0.05);
}

.hero-title {
    color: #ffffff !important;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800; line-height: 1.1; margin-bottom: 25px;
    letter-spacing: -1.5px; text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-lead {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.25rem; line-height: 1.6;
    max-width: 750px; margin: 0 auto 50px auto;
}

.hero-btns { display: flex; gap: 20px; justify-content: center; margin-bottom: 80px; }

.btn { padding: 18px 36px; border-radius: 100px; font-weight: 800; text-decoration: none; transition: 0.3s; font-size: 14px; display: inline-block; }

.btn-main { background: var(--navy) !important; color: white !important; border: 2px solid var(--navy); }
.btn-main:hover { background: var(--navy-light) !important; transform: translateY(-2px); }

.btn-ghost { border: 2px solid rgba(255,255,255,0.4); color: white !important; backdrop-filter: blur(10px); background: transparent !important; }
.btn-ghost:hover { background: white !important; color: var(--navy) !important; }

/* ==========================================================================
   4. LOGOS RÉASSURANCE (TRANSPARENTS)
   ========================================================================== */
.hero-trust-logos {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-item-logo { display: flex; flex-direction: column; align-items: center; width: 200px; }

.trust-logo-card {
    background: transparent !important; /* SUPPRIME LE BLANC FORCE */
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.trust-logo-card img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: none !important;
    background: transparent !important;
}

.trust-item-logo span {
    font-size: 10px; color: #ffffff;
    text-transform: uppercase; letter-spacing: 1px;
    font-weight: 700; text-align: center;
    line-height: 1.4; display: block; min-height: 30px;
}

/* ==========================================================================
   5. SECTION STATISTIQUES (PILL BLANCHE)
   ========================================================================== */
.trust-bar { position: relative; z-index: 20; margin-top: -65px; padding: 0 15px; }

.bar-container {
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 51, 102, 0.08);
    border: 1px solid rgba(0, 51, 102, 0.05);
    max-width: 1100px !important;
    padding: 40px 20px !important;
}

.stats-grid { display: flex !important; flex-direction: row !important; justify-content: space-around; align-items: center; }

.stat-item { display: flex; align-items: center; gap: 20px; flex: 1; padding: 0 25px; border-right: 1px solid var(--gray-light); }
.stat-item:last-child { border-right: none; }

.stat-icon {
    width: 48px; height: 48px; color: var(--navy);
    background: #f8fafc; border-radius: 14px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.stat-icon svg { width: 24px; height: 24px; }

.stat-txt strong { display: block; font-size: 28px; color: var(--navy); font-weight: 800; line-height: 1.2; letter-spacing: -0.5px; }
.stat-txt span { display: block; font-size: 12px; color: var(--gray-medium); text-transform: uppercase; font-weight: 700; margin-top: 3px; }

/* ==========================================================================
   6. SECTION SERVICES (GRID 4 COL)
   ========================================================================== */
.services-v3 { padding: 120px 0; background-color: var(--white); }

.grid-v3 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; margin-top: 50px; }

.card-v3 {
    background: #ffffff; padding: 30px 20px; border-radius: 20px;
    border: 1px solid #f1f5f9; text-align: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex; flex-direction: column; height: 100%;
}

.card-v3:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0, 51, 102, 0.08); border-color: var(--navy); }

.card-icon-wrapper {
    width: 100%; height: 140px; margin-bottom: 25px;
    background: #f8fafc; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}

.card-icon-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }

.card-v3 h3 { font-size: 1.3rem; font-weight: 800; color: var(--navy); margin-bottom: 15px; }

.card-v3 p { font-size: 0.95rem; line-height: 1.5; color: var(--gray-medium); margin-bottom: 20px; }

.card-link { margin-top: auto; font-size: 12px; font-weight: 700; color: var(--navy); text-decoration: none; text-transform: uppercase; }

/* ==========================================================================
   7. SECTION WHY US
   ========================================================================== */
.why-us { padding: 120px 0; background-color: #ffffff; }

.why-inner { display: flex !important; flex-direction: row !important; align-items: center; gap: 80px; }

.why-text { flex: 1.2; }
.why-image { flex: 0.8; position: relative; }

.why-item { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 40px; }

.why-item-icon {
    width: 24px; height: 24px; background: var(--navy);
    color: white; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; flex-shrink: 0; margin-top: 6px;
}

.why-item-icon svg { width: 12px; height: 12px; }

.why-item-txt h4 { font-size: 1.4rem; font-weight: 800; color: var(--navy); margin-bottom: 8px; }

.why-image-container { position: relative; width: 100%; }
.why-image-container img { width: 100%; border-radius: 30px; box-shadow: 0 30px 60px rgba(0, 51, 102, 0.15); }

.experience-badge {
    position: absolute; bottom: -20px; left: -40px;
    background: white; padding: 25px 35px; border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.15);
    text-align: center; border: 1px solid #f1f5f9; min-width: 180px; z-index: 5;
}

.experience-badge strong { display: block; font-size: 36px; color: var(--navy); font-weight: 900; }

/* ==========================================================================
   8. RESPONSIVE MOBILE
   ========================================================================== */
@media (max-width: 1024px) {
    .why-inner { flex-direction: column !important; gap: 60px; }
    .grid-v3 { grid-template-columns: repeat(2, 1fr); }
    .hero-trust-logos { flex-wrap: wrap; gap: 20px; }
    .stats-grid { flex-direction: column !important; gap: 30px; }
    .stat-item { border-right: none; border-bottom: 1px solid var(--gray-light); padding-bottom: 25px; width: 100%; justify-content: center; }
}

@media (max-width: 768px) {
    .grid-v3 { grid-template-columns: 1fr; }
    .hero-btns { flex-direction: column; }
    .hero-title { font-size: 2.2rem; }
    .experience-badge { left: 20px; bottom: 20px; }
}

/* --- SECTION CLIENTS SLIDER --- */
/* --- SECTION CLIENTS --- */
.clients-v2 {
    padding: 100px 0;
    background: #ffffff;
    width: 100%;
}

.clients-title {
    text-align: center !important;
    font-size: 2.2rem !important;
    color: var(--navy) !important;
    font-weight: 800 !important;
    margin-bottom: 60px !important;
    display: block !important;
}

/* La fenêtre qui limite la vue au conteneur de 1200px */
.slider-window {
    width: 100%;
    overflow: hidden; /* Coupe ce qui dépasse des 1200px */
    position: relative;
    padding: 20px 0;
    /* Effet de fondu sur les côtés */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-track {
    display: flex !important;
    align-items: center;
    width: max-content; /* Important pour que Flexbox ne compresse pas les logos */
    animation: slide-infinite 40s linear infinite;
}

.logo-card {
    flex-shrink: 0; /* INTERDIT à Flexbox de réduire la largeur du logo */
    width: 220px;   /* Largeur fixe de la zone de chaque logo */
    display: flex;
    justify-content: center;
    padding: 0 30px;
}

.logo-card img {
    height: 60px !important; /* On fixe la hauteur */
    width: auto !important;   /* La largeur s'ajustera toute seule SANS s'écraser */
    max-width: 160px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s ease;
}

.logo-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Animation fluide */
@keyframes slide-infinite {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.33%); } /* On recule d'un tiers (puisqu'on a triplé les logos) */
}

/* Pause au survol */
.slider-window:hover .logo-track {
    animation-play-state: paused;
}

/* Responsive */
@media (max-width: 768px) {
    .logo-card { width: 150px; padding: 0 15px; }
    .logo-card img { height: 40px !important; }
}

/* --- SECTION BÉNÉFICES --- */
/* --- SECTION BÉNÉFICES (FIX 3 COLONNES) --- */
.p-benefits-section {
    padding: 100px 0;
    background-color: #fcfdfe; /* Fond clair homogène */
    border-top: 1px solid #f1f5f9;
}

.p-benefits-flex {
    display: flex !important;
    flex-direction: row !important; /* Force le titre à gauche et les cartes à droite */
    align-items: flex-start;
    gap: 60px;
}

/* Bloc Titre à gauche */
.p-benefits-left {
    flex: 0 0 300px; /* Largeur fixe pour le titre */
}

.p-benefits-main-title {
    font-size: 2.2rem !important;
    color: var(--navy) !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-align: left !important;
}

/* Grille des 3 Cartes à droite */
.p-benefits-right {
    flex: 1;
}

.p-benefits-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* FORCE LES 3 COLONNES */
    gap: 25px;
}

.p-benefit-card {
    background: #ffffff;
    padding: 40px 25px;
    border-radius: 20px;
    border: 1px solid #eef2f6;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.05);
    text-align: center;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Nettoyage de l'icône (supprime la barre grise) */
.p-benefit-icon {
    width: 60px;
    height: 60px;
    background: #f1f5f9 !important; /* Petit rond gris clair propre */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto !important;
    font-size: 28px;
    flex-shrink: 0;
}

.p-benefit-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--navy);
}

.p-benefit-card h3 {
    color: var(--navy) !important;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.3;
}

.p-benefit-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--gray-medium);
}

/* Badge SÉCURISÉ */
.p-benefit-card::after {
    content: "SÉCURISÉ";
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 8px;
    font-weight: 900;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .p-benefits-flex { flex-direction: column !important; }
    .p-benefits-left { flex: 1; text-align: center; margin: 0 auto; }
    .p-benefits-main-title { text-align: center !important; }
    .p-benefits-grid { grid-template-columns: 1fr !important; } /* 1 colonne sur mobile */
}