/* =========================================
   VARIABLES & RESET GLOBAL
   ========================================= */
:root {
    --primary-blue: #0b3bf4;
    --primary-blue-hover: #0829b3;
    --light-bg: #f4f7fb;
    --text-dark: #000000;
    --text-muted: #111111;
    --white: #ffffff;
    --dark-bg: #0829b3;
    --font-main: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--light-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

html { scroll-behavior: smooth; }

/* =========================================
   UTILITAIRES & TYPOGRAPHIE
   ========================================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 0;
}

.bg-light { background-color: var(--light-bg); }
.bg-blue { 
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-hover) 100%); 
    color: var(--white); 
}.bg-dark { background-color: var(--dark-bg); color: var(--white); }

h1, h2, h3 { line-height: 1.2; font-weight: 700; color: var(--text-dark); letter-spacing: -0.5px; }
h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.8rem; }

/* Forcer le blanc sur tous les conteneurs bleus/sombres */
.bg-blue, .bg-blue h1, .bg-blue h2, .bg-blue h3, .bg-blue p, .bg-blue .subtitle, .bg-blue span, .bg-blue strong,
.bg-dark, .bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark p, .bg-dark .subtitle, .bg-dark span, .bg-dark strong {
    color: var(--white) !important;
}

.subtitle { 
    text-align: center; 
    margin-bottom: 3rem; 
    color: var(--text-dark); 
    max-width: 800px; 
    margin-left: auto; 
    margin-right: auto;
    font-size: 1.15rem;
}
.center-btn { text-align: center; margin-top: 2.5rem; }

img { max-width: 100%; height: auto; display: block; }

/* =========================================
   BOUTONS MODERNES
   ========================================= */
.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: center;
}
.btn-primary { background-color: var(--primary-blue); color: var(--white) !important; border: 2px solid var(--primary-blue); box-shadow: 0 10px 20px rgba(11, 59, 244, 0.15); }
.btn-primary:hover { background-color: var(--primary-blue-hover); border-color: var(--primary-blue-hover); transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--primary-blue); color: var(--primary-blue) !important; background: transparent; }
.btn-outline:hover { background-color: var(--primary-blue); color: var(--white) !important; transform: translateY(-2px); }

.btn-white { 
    background-color: var(--white) !important; 
    color: var(--primary-blue) !important; 
    font-weight: 700 !important; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border: 2px solid var(--white);
}
.btn-white:hover { 
    background-color: #f8f9fa !important; 
    color: var(--primary-blue-hover) !important;
    transform: translateY(-3px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.btn-sm { padding: 0.6rem 1.4rem; font-size: 0.95rem; }

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.site-header {
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--white);
}
.nav-container { padding: 1rem 0; display: flex; justify-content: space-between; align-items: center; }
.desktop-nav a { text-decoration: none; color: var(--text-dark); margin-left: 1.8rem; font-weight: 500; transition: color 0.3s; }
.desktop-nav a:hover { color: var(--primary-blue); }
.desktop-nav a.btn-primary { color: var(--white) !important; }

@media (max-width: 767px) { .desktop-nav { display: none; } }

/* =========================================
   HERO SECTIONS
   ========================================= */
.hero {
    padding: 2rem 0 2rem;
    text-align: center;
    background: linear-gradient(135deg, #0b3bf4 0%, #061c7a 100%);
    color: var(--white);
    position: relative;
    z-index: 1;
}

.project-hero {
    padding: 5rem 0 7rem;
    text-align: center;
    background: linear-gradient(135deg, #0b3bf4 0%, #061c7a 100%);
    color: var(--white);
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
    position: relative;
    z-index: 1;
    margin-bottom: -110px;
}

.hero h1, .project-hero h1 {
    font-size: 3.8rem;
    font-weight: 700;
    color: var(--white) !important;
    max-width: 1000px;
    margin: 0 auto 1.5rem auto;
    letter-spacing: -1.5px;
}

.hero h1 span { color: #ffffff !important; text-shadow: 0 0 20px rgba(255,255,255,0.4); display: block; margin-top: 5px; }

.hero p.hero-subtitle, .project-hero .subtitle {
    color: var(--white) !important;
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    opacity: 0.95;
}

.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.google-rating { margin-top: 2rem; font-size: 1rem; color: var(--white) !important; }

/* Badges Métadonnées (Portfolio) */
.project-meta {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.meta-badge {
  background: rgba(255, 255, 255, 0.15) !important; 
    color: var(--white) !important; 
    font-weight: 600; 
    padding: 12px 24px; 
    border-radius: 50px; 
    font-size: 0.95rem; 
    border: 1px solid rgba(255, 255, 255, 0.3); 
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

/* Images Flottantes & Mockups */
.project-image-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
}
.project-image-container img {
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0,0,10,0.15);
    border: 8px solid var(--white);
    background: var(--white);
    transition: transform 0.5s ease;
}
.project-image-container img:hover { transform: translateY(-8px); }

.image-caption {
    text-align: center;
    font-size: 1rem;
    color: var(--text-dark);
    margin-top: 1rem;
    padding: 0 1rem;
    font-weight: 500;
}

/* =========================================
   CARTES CONTENU & GRILLES (2x2 ET 3x3)
   ========================================= */
.content-card {
    background: var(--white);
    border-radius: 30px;
    padding: 4rem;
    box-shadow: 0 15px 50px rgba(0,0,0,0.03);
    margin-top: 4rem;
    border: 1px solid #edf2f7;
}

.grid-3 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.grid-2, .features-grid-modern { display: grid; grid-template-columns: 1fr; gap: 2rem; }

@media (min-width: 992px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-2, .features-grid-modern { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
}

.card, .feature-card-modern {
    background: var(--white);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    transition: all 0.4s ease;
}

.card:hover, .feature-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(11, 59, 244, 0.08);
    border-color: rgba(11, 59, 244, 0.2);
}

.card p, .feature-card-modern p { color: var(--text-dark); font-size: 1.05rem; }

.step-number {
    background: var(--primary-blue); color: var(--white) !important;
    width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
    border-radius: 16px; font-weight: bold; margin-bottom: 1.5rem; font-size: 1.3rem;
}

.icon-wrapper {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: transparent;
    display: inline-block;
    line-height: 1;
}

/* =========================================
   BANNIÈRES & TRUST BANNER
   ========================================= */
.trust-banner { padding: 4rem 0; text-align: center; }
.client-logos {
    display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 3rem; margin-top: 4rem;
}
.client-logos img {
    max-height: 100px; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.95;
}

.cta-banner-modern {
    background: linear-gradient(135deg, #0b3bf4 0%, #061c7a 100%);
    border-radius: 30px;
    padding: 4rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5rem 0;
    box-shadow: 0 20px 40px rgba(11, 59, 244, 0.2);
}
.cta-banner-modern h2 { color: var(--white) !important; text-align: left; margin: 0; font-size: 2.5rem; max-width: 650px; }

.btn-modern {
    background: var(--white) !important;
    color: var(--primary-blue) !important;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 700 !important;
    font-size: 1.15rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: inline-block;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.btn-modern:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }

.stat-banner { border-radius: 30px; padding: 4rem; }

/* =========================================
   BENEFITS & TARIFS MODERNES
   ========================================= */
.benefits-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 2rem; }
@media (min-width: 768px) { .benefits-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }

.benefits-list { list-style: none; }
.benefits-list li { margin-bottom: 1.5rem; display: flex; align-items: flex-start; gap: 15px; }
.benefits-list li p { font-size: 1.05rem; color: var(--text-dark); margin: 0; }

.pricing-card-modern {
    background: var(--white);
    border-radius: 24px;
    border: 1px solid #edf2f7;
    padding: 3.5rem 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.4s ease;
}
.pricing-card-modern:hover { transform: translateY(-8px); box-shadow: 0 25px 50px rgba(0,0,0,0.08); border-color: rgba(11, 59, 244, 0.3); }
.pricing-card-modern.popular { border: 2px solid var(--primary-blue); box-shadow: 0 20px 40px rgba(11, 59, 244, 0.12); }

.popular-badge {
    position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
    background: var(--primary-blue); color: var(--white) !important; padding: 6px 20px; border-radius: 50px; font-size: 0.85rem; font-weight: 600;
}

.price-modern { font-size: 3.5rem; font-weight: 700; color: var(--text-dark); line-height: 1; margin-bottom: 0.5rem; }
.price-modern span { font-size: 1.1rem; color: var(--text-dark); font-weight: 500; }
.sub-price-modern { font-size: 0.9rem; color: var(--primary-blue); font-weight: 600; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid #edf2f7; }

.pricing-features-modern { list-style: none; margin-bottom: 2.5rem; flex-grow: 1; }
.pricing-features-modern li { margin-bottom: 1.2rem; font-size: 1rem; color: var(--text-dark); display: flex; gap: 12px; }

/* =========================================
   PORTFOLIO SLIDER & SECTION AVIS FULL-WIDTH SANS ARRONDIS
   ========================================= */
.portfolio-slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1.5rem; padding-bottom: 2rem; }
.portfolio-card { flex: 0 0 85%; scroll-snap-align: center; background: var(--white); border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.04); border: 1px solid #edf2f7; }
.portfolio-card a { text-decoration: none; color: inherit; }
.portfolio-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: brightness(0.95); /* Casse le blanc pur sans dénaturer les couleurs */
}.portfolio-info { padding: 1.5rem; text-align: center; }
.portfolio-info p { color: var(--primary-blue); font-weight: 600; }

@media (min-width: 768px) { .portfolio-card { flex: 0 0 calc(33.333% - 1rem); } }

/* Section Full-Width sans arrondis (Fond Bleu Pur) */
.section-full-width-blue {
    width: 100%;
    background-color: var(--primary-blue) !important;
    padding: 5rem 0;
    margin: 4rem 0;
    border-radius: 0 !important;
}

.reviews-header-rating { text-align: center; font-size: 1.2rem; margin-bottom: 3rem; color: var(--white) !important; }
.reviews-grid { gap: 2rem; }

/* Correction : Cartes d'avis bleues sur fond bleu avec texte blanc super lisible */
.review-card-blue { 
    background: rgba(255, 255, 255, 0.12) !important; 
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 2.5rem; 
    border-radius: 20px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.review-card-blue .review-text { font-style: italic; color: var(--white) !important; margin: 1rem 0; font-size: 1.05rem; line-height: 1.7; opacity: 1 !important; }
.review-card-blue .review-author strong { display: block; color: var(--white) !important; font-size: 1.1rem; }
.review-card-blue .review-author span { font-size: 0.9rem; color: rgba(255, 255, 255, 0.9) !important; }

/* =========================================
   TAGS SEO & FAQ
   ========================================= */
.seo-tags-container { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 3rem; }

.seo-tag-white { 
    background: rgba(255, 255, 255, 0.15) !important; 
    color: var(--white) !important; 
    font-weight: 600; 
    padding: 12px 24px; 
    border-radius: 50px; 
    font-size: 0.95rem; 
    border: 1px solid rgba(255, 255, 255, 0.3); 
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}


.faq-accordion { max-width: 800px; margin: 0 auto; padding-top:2rem; }
.faq-item { background: var(--white); border-radius: 16px; margin-bottom: 1rem; border: 1px solid #edf2f7; }
.faq-item summary { padding: 1.5rem 2rem; font-weight: 600; cursor: pointer; list-style: none; position: relative; font-size: 1.1rem; color: var(--text-dark); }
.faq-item summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--primary-blue); }
.faq-item[open] summary::after { content: '−'; }
.faq-answer { padding: 0 2rem 1.5rem 2rem; color: var(--text-dark); }

/* =========================================
   SECTION CONTACT INTERACTIVE
   ========================================= */
.contact-card-wrapper { background: var(--white); border-radius: 30px; box-shadow: 0 20px 50px rgba(0,0,0,0.05); overflow: hidden; border: 1px solid #edf2f7; }
.contact-link-card { display: flex; align-items: center; gap: 15px; padding: 1.2rem 1.5rem; background: var(--light-bg); border-radius: 16px; text-decoration: none; color: var(--text-dark); transition: all 0.3s ease; }
.contact-link-card:hover { border-color: var(--primary-blue); background: var(--white); box-shadow: 0 10px 25px rgba(11, 59, 244, 0.1); transform: translateX(8px); }
.contact-link-card .text strong { display: block; font-size: 1.1rem; color: var(--primary-blue); }

.site-footer { text-align: center; padding: 0rem 0; font-size: 0.9rem; }

@media (max-width: 768px) {
    .hero h1, .project-hero h1 { font-size: 2.6rem; }
    .content-card { padding: 2.5rem 1.5rem; }
    .cta-banner-modern { flex-direction: column; text-align: center; gap: 2rem; padding: 3rem 1.5rem; }
    .cta-banner-modern h2 { text-align: center; font-size: 2rem; }
    .project-hero { padding-bottom: 5rem; margin-bottom: -60px; }
}
/* =========================================
   FORCE LA COULEUR BLANCHE DANS LES FONDS SOMBRES / BLEUS
   ========================================= */
.bg-dark, 
.bg-dark *,
.bg-blue,
.bg-blue * {
    color: var(--white) !important;
}

/* S'assure que les liens ne reprennent pas la couleur bleue au survol */
.bg-dark a:not(.btn):hover,
.bg-blue a:not(.btn):hover {
    color: var(--white) !important;
    opacity: 0.8;
}