/* ============================================================
   INFOCIENS v2 — Front CSS
   Charte : doré (#FFD600), cyan (#46AEC2), bleu marine (#1A486E)
   ============================================================ */

:root {
    --primary: #46AEC2;
    --secondary: #1A486E;
    --accent: #FFD600;
    --light: #77E9FF;
    --dark: #2B8384;
    --white: #FFFFFF;
    --off-white: #F8FBFD;
    --gray: #6B7B8C;
    --text: #2C3E50;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 2px 8px rgba(26,72,110,0.06);
    --shadow-md: 0 8px 25px rgba(26,72,110,0.10);
    --shadow-lg: 0 15px 40px rgba(26,72,110,0.15);

    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--secondary); }

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

/* ============================================================
   HEADER STICKY
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
    padding: 8px 0;
}

.site-header.scrolled {
    background: rgba(26, 72, 110, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 4px 0;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.header-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-name {
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--accent);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    letter-spacing: 2px;
    transition: var(--transition);
}

.header-brand:hover .brand-name {
    text-shadow: 0 0 15px rgba(255, 214, 0, 0.5);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    color: var(--white);
    font-weight: 500;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(255, 214, 0, 0.15);
    color: var(--accent);
}

.nav-cta {
    background: var(--accent);
    color: var(--secondary);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-cta:hover {
    background: var(--white);
    color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 214, 0, 0.4);
}

.nav-phone {
    background: rgba(70, 174, 194, 0.25);
    border: 1px solid rgba(255, 214, 0, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.nav-phone:hover {
    background: var(--accent);
    color: var(--secondary);
}

/* Menu burger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================================
   MAIN & SECTIONS
   ============================================================ */
.site-main {
    margin-top: 0;
}

.section {
    padding: 90px 30px;
}

.section-dark {
    background: var(--secondary);
    color: var(--white);
}

.section-light {
    background: var(--off-white);
}

.section-primary {
    background: var(--primary);
    color: var(--white);
}

.container-narrow {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    background: rgba(255, 214, 0, 0.15);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.6rem;
    font-weight: 900;
    margin-bottom: 16px;
    color: inherit;
}

.section-dark .section-title,
.section-primary .section-title {
    color: var(--white);
}

.section-title .highlight {
    color: var(--accent);
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--gray);
    max-width: 720px;
    margin: 0 auto;
}

.section-dark .section-subtitle,
.section-primary .section-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 30px 90px;
    background: var(--secondary);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(70, 174, 194, 0.25) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 214, 0, 0.10) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(70, 174, 194, 0.2);
    border: 1px solid var(--primary);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero-badge i {
    color: var(--accent);
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-title .accent {
    color: var(--accent);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 36px;
    max-width: 540px;
    line-height: 1.65;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: var(--secondary);
}

.btn-primary:hover {
    background: var(--white);
    color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 214, 0, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--secondary);
    transform: translateY(-3px);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.08rem;
}

.hero-stats {
    display: flex;
    gap: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 6px;
    letter-spacing: 0.5px;
}

/* Illustration hero */
.hero-visual {
    position: relative;
    height: 480px;
}

.hero-visual-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    color: var(--secondary);
}

.hero-visual-card.card-1 {
    top: 20px;
    left: 0;
    width: 280px;
    animation: float 6s ease-in-out infinite;
}

.hero-visual-card.card-2 {
    bottom: 30px;
    right: 0;
    width: 300px;
    animation: float 6s ease-in-out infinite;
    animation-delay: -3s;
}

.hero-visual-card.card-3 {
    top: 45%;
    left: 35%;
    width: 240px;
    animation: float 6s ease-in-out infinite;
    animation-delay: -1.5s;
}

.visual-card-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 14px;
}

.visual-card-icon.accent {
    background: var(--accent);
    color: var(--secondary);
}

.visual-card-icon.secondary {
    background: var(--secondary);
    color: var(--accent);
}

.visual-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--secondary);
}

.visual-card-text {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.5;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    border: 1px solid #E8EEF3;
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(70, 174, 194, 0.15), rgba(70, 174, 194, 0.05));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 22px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--secondary);
    color: var(--accent);
    transform: scale(1.05) rotate(-3deg);
}

.service-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--secondary);
}

.service-description {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.65;
    margin-bottom: 20px;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.service-list li {
    font-size: 0.88rem;
    color: var(--text);
    padding: 6px 0 6px 26px;
    position: relative;
}

.service-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 6px;
    width: 18px;
    height: 18px;
    background: rgba(70, 174, 194, 0.15);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--accent);
    gap: 12px;
}

/* Section services sur fond primary */
.section-primary .service-card {
    background: rgba(255, 255, 255, 0.98);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-visual { height: 380px; }
    .hero-title { font-size: 2.8rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .section-title { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--secondary);
        flex-direction: column;
        padding: 90px 20px 30px;
        gap: 8px;
        transition: right 0.4s ease;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
    }
    .header-nav.open { right: 0; }
    .nav-link { width: 100%; text-align: left; padding: 14px 16px; }
    .nav-cta, .nav-phone { justify-content: flex-start; }

    .section { padding: 70px 20px; }
    .hero { padding: 110px 20px 70px; }
    .hero-title { font-size: 2.2rem; }
    .hero-description { font-size: 1rem; }
    .hero-stats { flex-wrap: wrap; gap: 24px; }
    .hero-stat-value { font-size: 1.6rem; }
    .hero-visual { height: 320px; }
    .hero-visual-card.card-1 { width: 220px; }
    .hero-visual-card.card-2 { width: 240px; }
    .hero-visual-card.card-3 { width: 200px; left: 20%; }

    .services-grid { grid-template-columns: 1fr; gap: 20px; }
    .section-title { font-size: 1.8rem; }
    .section-subtitle { font-size: 1rem; }

    .btn { padding: 12px 24px; font-size: 0.95rem; }
    .btn-lg { padding: 14px 28px; font-size: 1rem; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; }
}

/* ============================================================
   CATALOGUE / PRODUITS
   ============================================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.product-card {
    background: var(--white);
    border: 1px solid #E8EEF3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.product-thumb {
    position: relative;
    height: 200px;
    background: var(--off-white);
    overflow: hidden;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-thumb img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--accent);
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 50px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.product-body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.78rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 10px;
    line-height: 1.35;
    min-height: 48px;
}

.product-description {
    font-size: 0.88rem;
    color: var(--gray);
    line-height: 1.55;
    margin-bottom: 18px;
    flex: 1;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #EEF2F5;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--secondary);
}

.product-price small {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--gray);
}

.product-btn {
    background: var(--secondary);
    color: var(--white);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.product-btn:hover {
    background: var(--accent);
    color: var(--secondary);
    transform: translateX(3px);
}

.products-cta {
    text-align: center;
    margin-top: 50px;
}

/* ============================================================
   À PROPOS / CHIFFRES CLÉS
   ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content {
    color: var(--text);
}

.about-text {
    font-size: 1.05rem;
    color: var(--gray);
    line-height: 1.75;
    margin-bottom: 18px;
}

.about-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--secondary);
}

.about-features li i {
    width: 32px;
    height: 32px;
    background: rgba(255, 214, 0, 0.15);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.section-dark .about-text { color: rgba(255, 255, 255, 0.75); }
.section-dark .about-features li { color: var(--white); }

/* Chiffres clés */
.stats-grid-large {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.stat-block {
    background: rgba(70, 174, 194, 0.1);
    border: 1px solid rgba(255, 214, 0, 0.25);
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    text-align: center;
    transition: var(--transition);
}

.stat-block:hover {
    background: rgba(70, 174, 194, 0.2);
    border-color: var(--accent);
    transform: translateY(-4px);
}

.stat-block-value {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.stat-block-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.section-light .stat-block {
    background: var(--white);
    border-color: #E8EEF3;
}

.section-light .stat-block-value { color: var(--secondary); }
.section-light .stat-block-label { color: var(--gray); }

.section-light .stat-block:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

/* ============================================================
   PROCESSUS
   ============================================================ */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: repeating-linear-gradient(
        to right,
        rgba(255, 214, 0, 0.4) 0,
        rgba(255, 214, 0, 0.4) 8px,
        transparent 8px,
        transparent 16px
    );
    z-index: 1;
}

.process-step {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 10px;
}

.process-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--accent);
    color: var(--secondary);
    font-size: 1.8rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.process-step:hover .process-number {
    background: var(--accent);
    color: var(--secondary);
    transform: scale(1.1);
}

.process-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 8px;
}

.section-dark .process-title { color: var(--white); }

.process-text {
    font-size: 0.88rem;
    color: var(--gray);
    line-height: 1.6;
}

.section-dark .process-text { color: rgba(255, 255, 255, 0.7); }

/* ============================================================
   RÉALISATIONS
   ============================================================ */
.real-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.real-card {
    background: var(--white);
    border: 1px solid #E8EEF3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.real-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.real-thumb {
    height: 220px;
    background: var(--secondary);
    overflow: hidden;
    position: relative;
}

.real-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.real-card:hover .real-thumb img {
    transform: scale(1.06);
}

.real-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 72, 110, 0.85) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.real-card:hover .real-overlay { opacity: 1; }

.real-overlay-title {
    color: var(--white);
    font-weight: 800;
    font-size: 1.1rem;
}

.real-body {
    padding: 24px;
}

.real-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 10px;
}

.real-text {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 18px;
}

.real-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.88rem;
    transition: var(--transition);
}

.real-link:hover { color: var(--accent); gap: 12px; }

/* ============================================================
   TÉMOIGNAGES
   ============================================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.testimonial-card {
    background: var(--white);
    border: 1px solid #E8EEF3;
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: var(--transition);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 12px;
    right: 24px;
    font-size: 6rem;
    font-family: Georgia, serif;
    color: rgba(255, 214, 0, 0.3);
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.testimonial-stars {
    color: var(--accent);
    font-size: 0.95rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 22px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid #EEF2F5;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}

.testimonial-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--secondary);
}

.testimonial-role {
    font-size: 0.8rem;
    color: var(--gray);
}

/* ============================================================
   CTA FINALE
   ============================================================ */
.cta-banner {
    background: var(--secondary);
    border: 1px solid var(--accent);
    border-radius: var(--radius-xl);
    padding: 60px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(70, 174, 194, 0.25) 0%, transparent 65%);
    border-radius: 50%;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.cta-title .accent {
    color: var(--accent);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.cta-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 640px;
    margin: 0 auto 32px;
    position: relative;
    z-index: 2;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-item {
    background: var(--white);
    border: 1px solid #E8EEF3;
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    gap: 16px;
    transition: var(--transition);
}

.contact-info-item:hover {
    border-color: var(--accent);
    transform: translateX(4px);
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background: rgba(70, 174, 194, 0.12);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.contact-info-title {
    font-size: 0.85rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-info-value {
    font-size: 0.98rem;
    color: var(--secondary);
    font-weight: 600;
}

.contact-info-value a { color: var(--secondary); }
.contact-info-value a:hover { color: var(--accent); }

.contact-form-card {
    background: var(--white);
    border: 1px solid #E8EEF3;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.form-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 0.92rem;
    color: var(--gray);
    margin-bottom: 28px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
}

.form-control,
.form-select,
textarea.form-control {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #D5DDE3;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(70, 174, 194, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 130px;
}

.form-control::placeholder { color: #A8B5C0; }

.form-submit {
    width: 100%;
    margin-top: 8px;
}

.form-hint {
    font-size: 0.82rem;
    color: var(--gray);
    margin-top: 12px;
    text-align: center;
}

/* Alertes formulaire */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    border: 1px solid;
}

.alert-danger {
    background: #FFF5F5;
    border-color: #DC3545;
    color: #8B0000;
}

.alert-success {
    background: #F0FFF4;
    border-color: #198754;
    color: #0F5132;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--secondary);
    color: rgba(255, 255, 255, 0.8);
    padding: 70px 30px 30px;
    border-top: 4px solid var(--accent);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col { min-width: 0; }

.footer-brand {
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 14px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(70, 174, 194, 0.15);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent);
    color: var(--secondary);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--accent);
}

.footer-list {
    list-style: none;
    padding: 0;
}

.footer-list li {
    margin-bottom: 11px;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-block;
}

.footer-list a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.footer-contact li i {
    color: var(--accent);
    width: 18px;
    margin-top: 4px;
    flex-shrink: 0;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.75);
}

.footer-contact a:hover { color: var(--accent); }

.footer-bottom {
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
}

.footer-legal {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
}

/* ============================================================
   ANIMATIONS AU SCROLL
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE — SUITE
   ============================================================ */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .real-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
    .process-grid::before { display: none; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .real-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; }
    .form-row-2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .cta-banner { padding: 40px 24px; }
    .cta-title { font-size: 1.6rem; }
    .contact-form-card { padding: 26px 22px; }
    .section-title { font-size: 1.6rem; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .stats-grid-large { grid-template-columns: 1fr; }
}

/* ============================================================
   CORRECTIONS MODULE 3
   ============================================================ */

/* Titres lisibles sur fond clair */
.section-light .section-title,
.section .section-title {
    color: var(--secondary);
}

.section-dark .section-title,
.section-primary .section-title {
    color: var(--white);
}

/* Le mot surligné en doré doit rester lisible sur fond clair */
.section-title .highlight {
    color: var(--primary);
    position: relative;
}

.section-light .section-title .highlight,
.section .section-title .highlight {
    color: var(--primary);
}

.section-dark .section-title .highlight,
.section-primary .section-title .highlight {
    color: var(--accent);
}

/* Boutons moins massifs */
.btn {
    padding: 11px 24px;
    font-size: 0.95rem;
}

.btn-lg {
    padding: 13px 28px;
    font-size: 1rem;
}

.btn-primary,
.btn-secondary,
.btn-outline {
    border-radius: var(--radius-sm);
}

/* Sous-titres aussi plus foncés sur fond clair */
.section-light .section-subtitle,
.section .section-subtitle {
    color: var(--gray);
}

/* Labels de section plus contrastés sur fond clair */
.section-light .section-label,
.section .section-label {
    background: rgba(26, 72, 110, 0.08);
    color: var(--secondary);
}

.section-dark .section-label,
.section-primary .section-label {
    background: rgba(255, 214, 0, 0.15);
    color: var(--accent);
}

/* Formulaires de contact : labels plus visibles */
.form-label {
    color: var(--secondary);
    font-weight: 700;
}

/* Options de select bien lisibles */
.form-select option {
    color: var(--text);
    background: var(--white);
}

/* ============================================================
   CORRECTION CHEVAUCHEMENT CARTES 3D HERO
   ============================================================ */

/* Conteneur principal plus haut pour bien espacer les cartes */
.hero-visual {
    position: relative;
    height: 520px;
    min-height: 520px;
}

/* Cartes : ordre et z-index explicites pour éviter les chevauchements */
.hero-visual-card.card-1 {
    top: 30px;
    left: 0;
    width: 260px;
    z-index: 3;
}

.hero-visual-card.card-2 {
    bottom: 40px;
    right: 10px;
    width: 280px;
    z-index: 4; /* IA toujours au premier plan */
}

.hero-visual-card.card-3 {
    top: 48%;
    left: 22%;
    width: 230px;
    z-index: 2;
}

/* Animation plus douce et décalée */
.hero-visual-card.card-1 { animation-delay: 0s; }
.hero-visual-card.card-2 { animation-delay: -2s; }
.hero-visual-card.card-3 { animation-delay: -4s; }

/* Petite ombre renforcée pour bien détacher les cartes du fond */
.hero-visual-card {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35),
                0 0 0 1px rgba(255, 214, 0, 0.15);
}

/* Responsive : sur mobile, disposer en colonne empilée */
@media (max-width: 1024px) {
    .hero-visual {
        height: 480px;
    }
    .hero-visual-card.card-1 { width: 240px; top: 20px; left: 0; }
    .hero-visual-card.card-2 { width: 260px; bottom: 20px; right: 0; }
    .hero-visual-card.card-3 { width: 220px; top: 50%; left: 25%; }
}

@media (max-width: 768px) {
    .hero-visual {
        height: 420px;
    }
    .hero-visual-card.card-1 { width: 200px; }
    .hero-visual-card.card-2 { width: 220px; }
    .hero-visual-card.card-3 { width: 190px; left: 30%; }
}

@media (max-width: 480px) {
    .hero-visual {
        height: 520px;
    }
    .hero-visual-card.card-1 { width: 170px; top: 10px; left: 0; }
    .hero-visual-card.card-2 { width: 190px; bottom: 10px; right: 0; }
    .hero-visual-card.card-3 { width: 170px; top: 42%; left: 15%; }
    .hero-visual-card { padding: 16px; }
    .visual-card-title { font-size: 0.95rem; }
    .visual-card-text { font-size: 0.78rem; }
    .visual-card-icon { width: 40px; height: 40px; font-size: 1rem; margin-bottom: 10px; }
}

/* ============================================================
   AJUSTEMENT FINAL — Position carte 3 (Applications)
   Centrée verticalement entre card-1 et card-2
   ============================================================ */

.hero-visual-card.card-3 {
    top: 38%;
    left: 24%;
    width: 240px;
    z-index: 2;
}

@media (max-width: 1024px) {
    .hero-visual-card.card-3 {
        top: 40%;
        left: 26%;
        width: 220px;
    }
}

@media (max-width: 768px) {
    .hero-visual-card.card-3 {
        top: 42%;
        left: 28%;
        width: 190px;
    }
}

@media (max-width: 480px) {
    .hero-visual-card.card-3 {
        top: 40%;
        left: 18%;
        width: 170px;
    }
}

/* ============================================================
   AJUSTEMENT FINAL — Hiérarchie z-index
   Ordre : IA (devant) > Applications > Sites Web (derrière)
   ============================================================ */

.hero-visual-card.card-1 {
    top: 30px;
    left: 0;
    width: 260px;
    z-index: 1;  /* Sites Web — derrière */
}

.hero-visual-card.card-2 {
    bottom: 40px;
    right: 10px;
    width: 280px;
    z-index: 3;  /* IA — devant */
}

.hero-visual-card.card-3 {
    top: 38%;
    left: 24%;
    width: 240px;
    z-index: 2;  /* Applications — entre les deux */
}

/* Responsive : conserver la même hiérarchie */
@media (max-width: 1024px) {
    .hero-visual-card.card-1 { z-index: 1; }
    .hero-visual-card.card-2 { z-index: 3; }
    .hero-visual-card.card-3 { z-index: 2; }
}

/* ============================================================
   CORRECTION COULEUR DORÉ — Moins dominant dans le corps
   Réservé aux titres, boutons principaux et accents clés
   ============================================================ */

/* Labels de section : cyan sur fond clair, doré UNIQUEMENT sur fond sombre */
.section-light .section-label,
.section .section-label {
    background: rgba(70, 174, 194, 0.12);
    color: var(--secondary);
}

.section-dark .section-label,
.section-primary .section-label {
    background: rgba(255, 214, 0, 0.15);
    color: var(--accent);
}

/* Numéros de processus : cyan au lieu de doré sur fond clair */
.section-light .process-number {
    background: var(--white);
    border-color: var(--primary);
    color: var(--primary);
}

.section-light .process-step:hover .process-number {
    background: var(--primary);
    color: var(--white);
}

/* Sur fond sombre, garder le doré */
.section-dark .process-number {
    border-color: var(--accent);
    color: var(--secondary);
}

.section-dark .process-step:hover .process-number {
    background: var(--accent);
    color: var(--secondary);
}

/* Chiffres clés sur fond clair : cyan foncé au lieu de doré */
.section-light .stat-block-value {
    color: var(--primary);
}

/* Badges produits : cyan au lieu de doré */
.product-badge {
    background: var(--primary);
    color: var(--white);
}

/* Stats hero : rester en doré (fond sombre) — OK */
/* Statistiques sur fond blanc : cyan */
.stat-block {
    background: var(--white);
    border-color: #E8EEF3;
}

/* Bordures dorées → bordures cyan subtiles sur les cartes claires */
.product-card:hover,
.real-card:hover,
.service-card:hover,
.testimonial-card:hover,
.contact-info-item:hover {
    border-color: var(--primary);
}

/* Boutons : le doré reste uniquement sur .btn-primary */
.btn-primary {
    background: var(--accent);
    color: var(--secondary);
}

.btn-primary:hover {
    background: var(--secondary);
    color: var(--accent);
}

/* Bouton outline sur fond clair : bordure cyan */
.section-light .btn-outline,
.section .btn-outline {
    border-color: var(--primary);
    color: var(--primary);
}

.section-light .btn-outline:hover,
.section .btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* Soulignement des titres de section : cyan sur fond clair */
.section-light .section-title::after,
.section .section-title::after {
    background: var(--primary);
}

.section-dark .section-title::after,
.section-primary .section-title::after {
    background: var(--accent);
}

/* Footer : garder le doré uniquement sur le logo */
.footer-brand { color: var(--accent); }

/* ============================================================
   CORRECTION ESPACEMENTS MOBILE
   Réduire les vides pour accéder plus vite aux sections
   ============================================================ */

@media (max-width: 768px) {

    /* Hero : hauteur réduite au minimum */
    .hero {
        min-height: auto;
        padding: 100px 20px 40px;
    }

    .hero-container {
        gap: 30px;
    }

    /* Retirer le hero-visual sur mobile (les cartes flottantes sont trop lourdes) */
    .hero-visual {
        display: none;
    }

    /* Hero stats plus compacts */
    .hero-stats {
        padding-top: 20px;
        gap: 20px;
    }

    .hero-stat-value {
        font-size: 1.5rem;
    }

    .hero-stat-label {
        font-size: 0.78rem;
    }

    /* Titre hero plus compact */
    .hero-title {
        font-size: 1.9rem;
        margin-bottom: 16px;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
        margin-bottom: 16px;
    }

    .hero-cta {
        margin-bottom: 24px;
        gap: 10px;
    }

    /* Sections : padding vertical réduit */
    .section {
        padding: 50px 20px;
    }

    /* En-têtes de section : marges réduites */
    .section-header {
        margin-bottom: 32px;
    }

    .section-label {
        font-size: 0.75rem;
        padding: 5px 12px;
        margin-bottom: 12px;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .section-subtitle {
        font-size: 0.92rem;
    }

    /* Process : pas de grands vides entre les étapes */
    .process-grid {
        gap: 24px;
    }

    .process-step {
        padding: 0;
    }

    .process-number {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
        margin-bottom: 12px;
    }

    /* Cards : marges réduites */
    .service-card,
    .product-card,
    .real-card,
    .testimonial-card {
        padding: 22px 18px;
    }

    .service-title,
    .real-title {
        font-size: 1.1rem;
    }

    .service-description,
    .real-text,
    .testimonial-text {
        font-size: 0.87rem;
    }

    /* Espacement produits */
    .products-grid {
        gap: 16px;
    }

    .products-cta {
        margin-top: 28px;
    }

    /* Stats blocks */
    .stats-grid-large {
        gap: 14px;
    }

    .stat-block {
        padding: 22px 16px;
    }

    .stat-block-value {
        font-size: 2.2rem;
    }

    .stat-block-label {
        font-size: 0.82rem;
    }

    /* À propos */
    .about-grid {
        gap: 28px;
    }

    .about-text {
        font-size: 0.95rem;
    }

    .about-features {
        gap: 10px;
        margin: 20px 0;
    }

    .about-features li {
        font-size: 0.88rem;
    }

    /* CTA banner */
    .cta-banner {
        padding: 32px 20px;
    }

    .cta-title {
        font-size: 1.4rem;
    }

    .cta-text {
        font-size: 0.95rem;
        margin-bottom: 22px;
    }

    /* Contact */
    .contact-form-card {
        padding: 22px 18px;
    }

    .form-title {
        font-size: 1.2rem;
    }

    .form-subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }

    /* Footer */
    .site-footer {
        padding: 50px 20px 24px;
    }

    .footer-grid {
        gap: 28px;
        margin-bottom: 32px;
    }

    .footer-brand {
        font-size: 1.5rem;
    }
}

/* Très petits écrans (≤ 480px) */
@media (max-width: 480px) {

    .hero {
        padding: 90px 16px 30px;
    }

    .hero-title {
        font-size: 1.6rem;
        line-height: 1.15;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .section {
        padding: 40px 16px;
    }

    .section-header {
        margin-bottom: 24px;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .service-card,
    .product-card,
    .real-card,
    .testimonial-card {
        padding: 18px 16px;
    }

    .stat-block-value {
        font-size: 1.9rem;
    }

    .cta-banner {
        padding: 26px 16px;
    }

    .cta-title {
        font-size: 1.25rem;
    }

    .contact-form-card {
        padding: 20px 16px;
    }

    .site-footer {
        padding: 40px 16px 20px;
    }
}

/* ============================================================
   CORRECTION TITRES SUR FOND SOMBRE
   Titre blanc + partie "highlight" dorée
   ============================================================ */

.section-dark .section-title,
.section-primary .section-title {
    color: var(--white) !important;
}

.section-dark .section-title .highlight,
.section-primary .section-title .highlight {
    color: var(--accent) !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

/* S'assurer que "À propos d'INFOCIENS" (label) est bien doré */
.section-dark .section-label,
.section-primary .section-label {
    color: var(--accent) !important;
    background: rgba(255, 214, 0, 0.15) !important;
}

/* ============================================================
   CORRECTION STATS SUR FOND SOMBRE (À propos)
   Fond sombre translucide, valeur dorée, label blanc
   ============================================================ */

.section-dark .stats-grid-large .stat-block {
    background: rgba(70, 174, 194, 0.12) !important;
    border: 1px solid rgba(255, 214, 0, 0.35) !important;
    color: var(--white);
}

.section-dark .stats-grid-large .stat-block:hover {
    background: rgba(70, 174, 194, 0.22) !important;
    border-color: var(--accent) !important;
    transform: translateY(-4px);
}

.section-dark .stats-grid-large .stat-block-value {
    color: var(--accent) !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.35);
}

.section-dark .stats-grid-large .stat-block-label {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Sur fond clair, garder le style normal */
.section-light .stats-grid-large .stat-block {
    background: var(--white);
    border: 1px solid #E8EEF3;
}

.section-light .stats-grid-large .stat-block-value {
    color: var(--primary);
}

.section-light .stats-grid-large .stat-block-label {
    color: var(--gray);
}

/* ============================================================
   CORRECTION BOUTONS — Fond transparent, bordure dorée
   Survol : fond doré, texte bleu marine
   ============================================================ */

/* Bouton principal — style outline doré */
.btn-primary {
    background: transparent !important;
    color: var(--accent) !important;
    border: 2px solid var(--accent) !important;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--accent) !important;
    color: var(--secondary) !important;
    border-color: var(--accent) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 214, 0, 0.45);
}

/* Sur fond clair : bouton primary en bleu marine plein (contraste) */
.section-light .btn-primary,
.section:not(.section-dark):not(.section-primary) .btn-primary {
    background: var(--secondary) !important;
    color: var(--white) !important;
    border: 2px solid var(--secondary) !important;
}

.section-light .btn-primary:hover,
.section:not(.section-dark):not(.section-primary) .btn-primary:hover {
    background: var(--accent) !important;
    color: var(--secondary) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 10px 30px rgba(255, 214, 0, 0.45);
}

/* Bouton outline doré sur fond sombre */
.btn-outline {
    background: transparent !important;
    color: var(--accent) !important;
    border: 2px solid var(--accent) !important;
}

.btn-outline:hover {
    background: var(--accent) !important;
    color: var(--secondary) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 214, 0, 0.45);
}

/* CTA finale (bandeau bleu marine) : bouton bordé doré */
.cta-banner .btn-primary {
    background: transparent !important;
    color: var(--accent) !important;
    border: 2px solid var(--accent) !important;
}

.cta-banner .btn-primary:hover {
    background: var(--accent) !important;
    color: var(--secondary) !important;
    box-shadow: 0 10px 30px rgba(255, 214, 0, 0.5);
}

/* Formulaire contact (fond blanc) : bouton bleu marine plein */
.contact-form-card .btn-primary {
    background: var(--secondary) !important;
    color: var(--white) !important;
    border: 2px solid var(--secondary) !important;
}

.contact-form-card .btn-primary:hover {
    background: var(--accent) !important;
    color: var(--secondary) !important;
    border-color: var(--accent) !important;
}

/* Header : bouton Connexion reste plein doré (petit, ok) */
.header-nav .nav-cta {
    background: var(--accent) !important;
    color: var(--secondary) !important;
    border: 2px solid var(--accent) !important;
}

.header-nav .nav-cta:hover {
    background: var(--white) !important;
    color: var(--secondary) !important;
    border-color: var(--white) !important;
}

/* ============================================================
   CORRECTION — Titre À propos entièrement blanc
   ============================================================ */

#apropos .section-title,
#apropos .section-title .highlight {
    color: var(--white) !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.35);
}

/* ============================================================
   CORRECTION FINALE HEADER — Boutons Connexion + Téléphone
   Compacts, centrés verticalement, bien espacés
   ============================================================ */

/* Container du header : alignement vertical parfait */
.site-header .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    padding: 6px 30px;
    gap: 20px;
}

/* Logo : pas de marge superflue */
.site-header .header-brand {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.site-header .brand-name {
    font-size: 1.7rem;
    line-height: 1;
    margin: 0;
    padding: 0;
}

/* Navigation : alignement vertical parfait */
.site-header .header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    height: 100%;
}

/* Tous les liens du menu : hauteur cohérente, alignés */
.site-header .header-nav .nav-link {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 14px;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1;
    border-radius: 6px;
    margin: 0;
    white-space: nowrap;
}

/* Bouton CONNEXION — compact, bien séparé */
.site-header .header-nav .nav-cta {
    height: 36px;
    padding: 0 16px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-left: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1;
    border-radius: 6px;
    border: 2px solid var(--accent);
    background: var(--accent);
    color: var(--secondary);
    box-sizing: border-box;
}

.site-header .header-nav .nav-cta i {
    font-size: 0.8rem;
    line-height: 1;
}

.site-header .header-nav .nav-cta:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--secondary);
    transform: translateY(-1px);
}

/* Bouton TÉLÉPHONE — compact, sans marge superflue */
.site-header .header-nav .nav-phone {
    height: 36px;
    padding: 0 14px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1;
    border-radius: 6px;
    border: 2px solid rgba(255, 214, 0, 0.5);
    background: transparent;
    color: var(--white);
    box-sizing: border-box;
    white-space: nowrap;
}

.site-header .header-nav .nav-phone i {
    font-size: 0.75rem;
    color: var(--accent);
    line-height: 1;
}

.site-header .header-nav .nav-phone:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--secondary);
}

.site-header .header-nav .nav-phone:hover i {
    color: var(--secondary);
}

/* Au scroll : ajustement hauteur */
.site-header.scrolled .header-container {
    min-height: 54px;
    padding: 4px 30px;
}

.site-header.scrolled .brand-name {
    font-size: 1.6rem;
}

/* ============================================================
   MOBILE : menu déroulant compact mais lisible
   ============================================================ */
@media (max-width: 768px) {
    .site-header .header-container {
        padding: 8px 20px;
        min-height: 60px;
    }

    .site-header .header-nav {
        padding: 80px 16px 24px;
    }

    .site-header .header-nav .nav-link,
    .site-header .header-nav .nav-cta,
    .site-header .header-nav .nav-phone {
        height: auto;
        min-height: 44px;
        padding: 12px 16px;
        font-size: 0.95rem;
        margin: 0 0 4px 0;
        width: 100%;
        justify-content: flex-start;
        border-radius: 8px;
    }

    .site-header .header-nav .nav-cta,
    .site-header .header-nav .nav-phone {
        border-width: 1px;
    }
}

/* ============================================================
   AJUSTEMENT FINAL — Enlever bord jaune au survol
   Réduire la présence du doré
   ============================================================ */

/* Bordures au survol → cyan, plus de doré */
.service-card:hover,
.product-card:hover,
.real-card:hover,
.testimonial-card:hover,
.contact-info-item:hover {
    border-color: var(--primary) !important;
}

/* Supprimer la barre dorée en haut des cards services */
.service-card::before {
    background: var(--primary) !important;
}

/* Enlever le liseré doré sur les cartes 3D (hero-visual-card) — obsolète maintenant */
.hero-visual-card {
    border-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35) !important;
}

/* Titres de section : mot surligné en cyan sur fond clair */
.section-title .highlight,
.section-light .section-title .highlight {
    color: var(--primary) !important;
}

/* Titres de section : mot surligné en blanc sur fond sombre */
.section-dark .section-title .highlight,
.section-primary .section-title .highlight {
    color: var(--white) !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* Label de section : cyan uniforme */
.section-label {
    background: rgba(70, 174, 194, 0.12) !important;
    color: var(--secondary) !important;
}

.section-dark .section-label,
.section-primary .section-label {
    background: rgba(255, 255, 255, 0.12) !important;
    color: var(--white) !important;
}

/* Bordures de cartes au repos : gris clair neutre */
.service-card,
.product-card,
.real-card,
.testimonial-card,
.contact-form-card,
.contact-info-item {
    border-color: #E8EEF3 !important;
}

/* ============================================================
   HERO PROJETS — Cartes 3D projets réels
   ============================================================ */

.hero-projects {
    position: relative;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.projects-badge-float {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(70, 174, 194, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    z-index: 5;
}

.projects-badge-float i {
    color: var(--white);
}

.projects-grid-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    width: 100%;
    max-width: 520px;
    position: relative;
}

/* Cartes projets */
.project-card-hero {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.35s ease;
    position: relative;
    cursor: pointer;
}

.project-card-hero:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    background: rgba(255, 255, 255, 0.08);
}

/* Décalages diagonaux pour effet flottant */
.project-card-1 { transform: translateY(-15px); }
.project-card-1:hover { transform: translateY(-21px); }

.project-card-2 { transform: translateY(15px); }
.project-card-2:hover { transform: translateY(9px); }

.project-card-3 { transform: translateY(-15px); }
.project-card-3:hover { transform: translateY(-21px); }

.project-card-4 { transform: translateY(15px); }
.project-card-4:hover { transform: translateY(9px); }

/* Image / placeholder */
.project-thumb-hero {
    position: relative;
    height: 140px;
    overflow: hidden;
    background: var(--secondary);
}

.project-thumb-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card-hero:hover .project-thumb-hero img {
    transform: scale(1.08);
}

.project-placeholder-hero {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 2.5rem;
    background: linear-gradient(135deg, rgba(70, 174, 194, 0.3), rgba(26, 72, 110, 0.6));
}

/* Badge (En ligne, Sur commande, etc.) */
.project-badge-hero {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--white);
    background: rgba(26, 72, 110, 0.9);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.project-badge-hero.badge-green  { background: rgba(25, 135, 84, 0.95); }
.project-badge-hero.badge-orange { background: rgba(220, 120, 30, 0.95); }
.project-badge-hero.badge-blue   { background: rgba(70, 174, 194, 0.95); }
.project-badge-hero.badge-gold   { background: rgba(255, 214, 0, 0.95); color: var(--secondary); }
.project-badge-hero.badge-gray   { background: rgba(108, 117, 125, 0.95); }

/* Icône lien en haut à droite */
.project-link-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.project-card-hero:hover .project-link-icon {
    background: var(--primary);
    transform: rotate(-8deg) scale(1.1);
}

.project-link-icon.project-private {
    background: rgba(0, 0, 0, 0.4);
}

.project-card-hero:hover .project-link-icon.project-private {
    background: rgba(255, 214, 0, 0.9);
    color: var(--secondary);
}

/* Corps de la carte */
.project-body-hero {
    padding: 12px 14px 14px;
}

.project-title-hero {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--white);
    margin: 0 0 2px 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.project-subtitle-hero {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    line-height: 1.3;
}

/* Message si aucun projet */
.projects-empty-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    gap: 12px;
    text-align: center;
    padding: 40px;
}

.projects-empty-hero i {
    font-size: 3rem;
}

/* ============================================================
   RESPONSIVE — HERO PROJETS
   ============================================================ */
@media (max-width: 1024px) {
    .hero-projects {
        height: 460px;
    }
    .projects-grid-hero {
        max-width: 480px;
        gap: 14px;
    }
    .project-thumb-hero {
        height: 120px;
    }
}

@media (max-width: 768px) {
    .hero-projects {
        height: auto;
        padding: 20px 0;
        display: none;
    }
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

/* ============================================================
   AJUSTEMENT HERO — Espacement titre / cartes 3D
   ============================================================ */

/* Plus d'espace entre le contenu gauche et les cartes à droite */
.hero-container {
    gap: 80px;
}

/* Padding interne du hero plus généreux */
.hero {
    padding: 140px 30px 100px;
}

/* Badge flottant "Nos réalisations" : plus d'espace en dessous */
.projects-badge-float {
    top: -10px;
}

/* Container des projets : plus d'espace interne */
.hero-projects {
    padding: 60px 0 40px;
}

/* Sur tablette */
@media (max-width: 1024px) {
    .hero-container { gap: 50px; }
    .hero { padding: 120px 25px 80px; }
    .hero-projects { padding: 50px 0 30px; }
}

/* Sur mobile : espacement minime (le hero-visual est caché) */
@media (max-width: 768px) {
    .hero { padding: 100px 20px 50px; }
}

/* ============================================================
   CORRECTION — Espacement entre les cartes hero (2x2)
   ============================================================ */

.projects-grid-hero {
    gap: 26px 22px;
}

/* Réduire le décalage vertical pour éviter le contact au survol */
.project-card-1,
.project-card-3 {
    transform: translateY(-8px);
}
.project-card-1:hover,
.project-card-3:hover {
    transform: translateY(-12px);
}

.project-card-2,
.project-card-4 {
    transform: translateY(8px);
}
.project-card-2:hover,
.project-card-4:hover {
    transform: translateY(4px);
}

/* ============================================================
   FIX NAVBAR — Toujours bleu sur pages internes
   (sauf sur la home où il devient bleu au scroll)
   ============================================================ */

/* Pages internes : header toujours bleu */
body.page-commande .site-header,
body.page-catalogue .site-header,
body.page-formation .site-header,
body.page-formations .site-header,
body.page-panier .site-header,
body.page-produit .site-header,
body.page-login .site-header,
body.page-register .site-header,
body.page-admin .site-header,
body.page-auth .site-header,
body.page-error .site-header {
    background: var(--secondary) !important;
    padding: 4px 0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

body.page-commande .site-header .header-container,
body.page-catalogue .site-header .header-container,
body.page-formation .site-header .header-container,
body.page-formations .site-header .header-container,
body.page-panier .site-header .header-container,
body.page-produit .site-header .header-container {
    min-height: 54px !important;
}

/* ============================================================
   Bordures dorées uniformes (pas de bordure gauche épaisse)
   ============================================================ */

/* Cartes produits / services / formations */
.product-card,
.service-card,
.real-card,
.testimonial-card,
.form-card,
.contact-form-card,
.contact-info-item,
.cta-banner {
    border: 1px solid #FFD600 !important;
    border-left-width: 1px !important;
    border-right-width: 1px !important;
    border-top-width: 1px !important;
    border-bottom-width: 1px !important;
}

/* Bandeau d'info */
.admin-info-banner,
.checkout-card,
.cart-item {
    border: 1px solid #FFD600 !important;
}

/* Alertes gardent leurs couleurs sémantiques */
.alert-danger { border: 1px solid #DC3545 !important; }
.alert-success { border: 1px solid #198754 !important; }

/* Suppression des bordures gauches épaisses */
.product-card::before,
.service-card::before {
    display: none !important;
}

/* Cards avec bordure interne (ex: bloc "info" dans form) */
div[style*="border-left: 4px"],
div[style*="border-left:4px"] {
    border-left: 1px solid #FFD600 !important;
}

/* Survol : bordure cyan (cohérence avec les autres cards) */
.product-card:hover,
.service-card:hover,
.real-card:hover,
.testimonial-card:hover {
    border-color: #46AEC2 !important;
}

/* Section header : bordure dorée fine */
.section-title::after,
.form-card-title::after,
.checkout-card-title::after,
.details-title::after {
    background: #FFD600 !important;
}

/* ============================================================
   BOUTONS — Fond bleu marine + texte doré + bordure dorée
   (inverse du style actuel)
   ============================================================ */

/* Bouton primaire (ex : "Demander un devis", "Commander") */
.btn-primary,
.section-light .btn-primary,
.section:not(.section-dark):not(.section-primary) .btn-primary,
.contact-form-card .btn-primary,
.product-btn-buy,
.cta-banner .btn-primary {
    background: #1A486E !important;
    color: #FFD600 !important;
    border: 1px solid #FFD600 !important;
    font-weight: 700 !important;
}

.btn-primary:hover,
.section-light .btn-primary:hover,
.contact-form-card .btn-primary:hover,
.product-btn-buy:hover,
.cta-banner .btn-primary:hover {
    background: #FFD600 !important;
    color: #1A486E !important;
    border-color: #FFD600 !important;
    box-shadow: 0 8px 25px rgba(255, 214, 0, 0.35) !important;
    transform: translateY(-2px);
}

.btn-primary i,
.product-btn-buy i,
.cta-banner .btn-primary i {
    color: #FFD600 !important;
}

.btn-primary:hover i,
.product-btn-buy:hover i,
.cta-banner .btn-primary:hover i {
    color: #1A486E !important;
}

/* Bouton secondaire (outline) : bordure dorée, texte doré sur fond bleu marine transparent */
.btn-secondary {
    background: #1A486E !important;
    color: #FFD600 !important;
    border: 1px solid #FFD600 !important;
    font-weight: 600 !important;
}

.btn-secondary:hover {
    background: #FFD600 !important;
    color: #1A486E !important;
    border-color: #FFD600 !important;
}

.btn-secondary i {
    color: #FFD600 !important;
}

.btn-secondary:hover i {
    color: #1A486E !important;
}

/* Bouton outline : doré sur fond bleu marine */
.btn-outline {
    background: transparent !important;
    color: #FFD600 !important;
    border: 1px solid #FFD600 !important;
}

.btn-outline:hover {
    background: #FFD600 !important;
    color: #1A486E !important;
}

/* Boutons admin (dans /admin/*) : garder bleu marine + texte doré */
.admin-body .btn-primary,
.admin-body .admin-toolbar .btn-primary,
.admin-body .form-actions .btn-primary {
    background: #1A486E !important;
    color: #FFD600 !important;
    border: 1px solid #FFD600 !important;
}

.admin-body .btn-primary:hover {
    background: #FFD600 !important;
    color: #1A486E !important;
}

.admin-body .btn-primary i {
    color: #FFD600 !important;
}

.admin-body .btn-primary:hover i {
    color: #1A486E !important;
}

/* ============================================================
   FIX MOBILE MENU — Scrollable + max-height
   ============================================================ */
@media (max-width: 768px) {
    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 100vw;
        height: 100vh;
        height: 100dvh; /* Dynamic viewport height pour mobile */
        background: var(--secondary);
        flex-direction: column;
        align-items: stretch;
        padding: 70px 16px 30px 16px;
        gap: 4px;
        transition: right 0.35s ease;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        z-index: 998;
    }

    .header-nav.open { right: 0; }

    /* Chaque lien bien cliquable */
    .header-nav .nav-link,
    .header-nav .nav-cta,
    .header-nav .nav-phone {
        width: 100%;
        padding: 14px 16px !important;
        font-size: 1rem !important;
        justify-content: flex-start !important;
        border-radius: 8px !important;
        margin: 0 !important;
        min-height: 48px;
        flex-shrink: 0;
    }

    /* CTA bien distincts */
    .header-nav .nav-cta {
        background: #FFD600 !important;
        color: #1A486E !important;
        font-weight: 800 !important;
        margin-top: 12px !important;
    }

    .header-nav .nav-phone {
        background: transparent !important;
        border: 1px solid #FFD600 !important;
        color: #FFD600 !important;
        margin-top: 8px !important;
    }

    /* Icône panier dans le menu mobile */
    .header-nav .nav-cart {
        background: rgba(255, 214, 0, 0.1) !important;
        border: 1px solid rgba(255, 214, 0, 0.3) !important;
    }

    /* Padding bas pour pas que le dernier item soit coupé */
    .header-nav::after {
        content: '';
        display: block;
        height: 30px;
        flex-shrink: 0;
    }

    /* Empêcher le scroll du body quand menu ouvert */
    body.menu-open {
        overflow: hidden;
    }

    /* Le bouton burger reste bien visible */
    .menu-toggle {
        z-index: 1000;
        position: relative;
    }
}

/* Petits écrans très hauts */
@media (max-width: 480px) {
    .header-nav {
        padding-top: 60px;
    }
    .header-nav .nav-link,
    .header-nav .nav-cta,
    .header-nav .nav-phone {
        padding: 12px 14px !important;
        font-size: 0.95rem !important;
        min-height: 44px;
    }
}

/* ============================================================
   HERO DYNAMIQUE — Utilise les variables CSS du CMS
   ============================================================ */
.hero-title {
    font-size: var(--hero-title-size, 3.8rem) !important;
    color: var(--hero-title-color, #FFFFFF) !important;
}

.hero-title .accent {
    color: var(--hero-title-accent-color, #FFD600) !important;
}

.hero-description {
    font-size: var(--hero-desc-size, 1.15rem) !important;
    color: var(--hero-desc-color, rgba(255,255,255,0.85)) !important;
}

.hero-badge {
    background: var(--hero-badge-bg, rgba(70,174,194,0.2)) !important;
    color: var(--hero-badge-color, #77E9FF) !important;
}

.hero-stat-value {
    color: var(--hero-stat-color, #FFD600) !important;
    font-size: var(--hero-stat-size, 2rem) !important;
}

/* ============================================================
   FIX — Espacement cards (contenu trop collé)
   ============================================================ */

/* Cards info détail formation */
.product-details .form-card,
.form-card .product-description-content,
.details-title + .form-card {
    padding: 24px 28px !important;
}

/* Description formation */
.product-details-layout .form-card {
    padding: 28px 32px !important;
}

/* Cartes quiz sur formation */
.product-details .form-card > div {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* Cards quiz (page /quiz/{id}) */
#quiz-form .form-card {
    padding: 24px 28px !important;
}

/* Cards résultat */
.catalog-layout .form-card {
    padding: 24px 28px !important;
}

/* Description détaillée */
.product-description-content {
    padding: 0 !important;
    line-height: 1.8 !important;
}

/* Titre détail */
.details-title {
    padding-left: 28px !important;
    margin-bottom: 16px !important;
}
