/* home.css - Styles spécifiques à la page d'accueil */

.hero { 
    padding: 160px 0 80px; 
    background: radial-gradient(circle at top right, var(--primary-light) 0%, var(--bg-alt) 60%);
    position: relative;
    overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; position: relative; z-index: 2; }
.trust-badge { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: var(--weight-medium); }
.trust-badge .stars { color: #f59e0b; font-size: 16px; }
.trust-badge a { color: var(--text-muted); text-decoration: none; }
.trust-badge a:hover { color: var(--primary-blue); }
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-visual::before {
    content: '';
    position: absolute;
    width: 380px; height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(12,113,195,0.12) 0%, rgba(12,113,195,0.04) 50%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    animation: heroGlowPulse 4s ease-in-out infinite;
}
@keyframes heroGlowPulse {
    0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}
.hero-img-placeholder {
    width: 100%; max-width: 400px; aspect-ratio: 1; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: var(--text-muted);
    border: 3px solid var(--surface);
    box-shadow: var(--shadow-soft);
    object-fit: cover;
    position: relative; z-index: 1;
    animation: heroImgFloat 6s ease-in-out infinite;
}
@keyframes heroImgFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.hero-img-placeholder.hero-img-raw {
    background: transparent; border-radius: 0; border: none; box-shadow: none;
    object-fit: contain; mix-blend-mode: multiply;
    max-width: 440px;
}
.hero-badge-sap {
    position: absolute; bottom: 8px; right: -10px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-dark));
    color: var(--surface);
    padding: 14px 22px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 8px 32px rgba(12,113,195,0.35), 0 0 0 1px rgba(255,255,255,0.1) inset;
    z-index: 2;
    animation: heroImgFloat 6s ease-in-out infinite;
    animation-delay: -3s;
}
.badge-price { display: block; font-size: 26px; font-weight: var(--weight-black); letter-spacing: -0.5px; }
.badge-label { font-size: 11px; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.5px; }

.why-us { padding: 80px 0; }
.why-us-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card { text-align: center; padding: 32px 24px; border-radius: var(--radius-lg); border: 1px solid var(--border-soft); transition: var(--transition); background: var(--surface); box-shadow: var(--shadow-subtle); }
.why-card:hover { box-shadow: var(--shadow-card); transform: translateY(-4px); }
.why-icon { font-size: 36px; display: block; margin-bottom: 8px; }
.why-value { display: block; font-size: 28px; font-weight: var(--weight-black); color: var(--primary-dark); }
.why-label { display: block; font-size: 14px; font-weight: var(--weight-medium); color: var(--primary-dark); margin-bottom: 8px; }
.why-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.sap-banner { padding: 80px 0; }
.sap-content { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.sap-badge { display: inline-block; background: var(--primary-blue); color: var(--surface); padding: 4px 14px; border-radius: var(--radius-pill); font-size: 12px; font-weight: var(--weight-bold); margin-bottom: 16px; }
.sap-subtitle { font-size: 18px; color: var(--primary-blue); font-weight: var(--weight-medium); margin-bottom: 14px; }
.sap-banner p { color: var(--text-muted); line-height: 1.7; }
.sap-steps { display: flex; flex-direction: column; gap: 20px; }
.sap-step { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); padding: 20px; border-radius: var(--radius-lg); box-shadow: var(--shadow-subtle); }
.step-number { flex-shrink: 0; width: 40px; height: 40px; background: var(--primary-blue); color: var(--surface); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: var(--weight-black); font-size: 18px; }
.sap-step strong { display: block; margin-bottom: 4px; color: var(--primary-dark); }
.sap-step p { font-size: 14px; color: var(--text-muted); margin: 0; }
.sap-cta-wrap { text-align: center; margin-top: 36px; }

/* ============================================================
   GRILLE DE SERVICES — Source de vérité partagée (home + /services)
   ⚠ Modifier ici = s'applique sur les deux pages automatiquement
   ============================================================ */
.services-section {
    padding: 80px 0;
    background:
        radial-gradient(ellipse 60% 50% at 8% 20%, rgba(12, 113, 195, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 50% 60% at 90% 85%, rgba(102, 24, 208, 0.05) 0%, transparent 50%),
        var(--bg-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    counter-reset: card-num;
}

.service-card {
    counter-increment: card-num;
    --mx: -400px;
    --my: -400px;
    --accent-solid: var(--primary-blue);
    --accent-glow: rgba(12, 113, 195, 0.14);
    --accent-border: rgba(12, 113, 195, 0.55);
    --accent-shadow: rgba(12, 113, 195, 0.12);

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 32px 28px 28px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(12, 113, 195, 0.1);
    border-radius: 20px;
    box-shadow: 0 2px 16px rgba(12, 113, 195, 0.06), 0 1px 4px rgba(0,0,0,0.04);
    text-decoration: none;
    color: var(--text-dark);
    overflow: hidden;
    position: relative;
    transition:
        border-color 0.35s ease,
        box-shadow 0.4s ease,
        transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: glassCardIn 0.65s ease both;
}

/* Accents colorés uniques par service */
.service-card:nth-child(1) { animation-delay: 0s;    --accent-solid: #0C71C3; --accent-glow: rgba(12,113,195,0.15); --accent-border: rgba(12,113,195,0.5); --accent-shadow: rgba(12,113,195,0.12); }
.service-card:nth-child(2) { animation-delay: .08s; --accent-solid: #059669; --accent-glow: rgba(5,150,105,0.14);  --accent-border: rgba(5,150,105,0.5);  --accent-shadow: rgba(5,150,105,0.12);  }
.service-card:nth-child(3) { animation-delay: .16s; --accent-solid: #7C3AED; --accent-glow: rgba(124,58,237,0.14); --accent-border: rgba(124,58,237,0.5); --accent-shadow: rgba(124,58,237,0.12); }
.service-card:nth-child(4) { animation-delay: .24s; --accent-solid: #B45309; --accent-glow: rgba(180,83,9,0.13);   --accent-border: rgba(180,83,9,0.45);  --accent-shadow: rgba(180,83,9,0.1);   }
.service-card:nth-child(5) { animation-delay: .32s; --accent-solid: #BE185D; --accent-glow: rgba(190,24,93,0.13);  --accent-border: rgba(190,24,93,0.45); --accent-shadow: rgba(190,24,93,0.1);  }
.service-card:nth-child(6) { animation-delay: .40s; --accent-solid: #0369A1; --accent-glow: rgba(3,105,161,0.14);  --accent-border: rgba(3,105,161,0.5);  --accent-shadow: rgba(3,105,161,0.12); }

@keyframes glassCardIn {
    from { opacity: 0; transform: translateY(28px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Watermark numérique 01–06 (CSS counter) */
.service-card::before {
    content: counter(card-num, decimal-leading-zero);
    position: absolute;
    top: -14px;
    right: 14px;
    font-size: 88px;
    font-weight: 900;
    color: rgba(6, 59, 109, 0.055);
    line-height: 1;
    pointer-events: none;
    z-index: 0;
    letter-spacing: -4px;
    font-family: inherit;
    user-select: none;
}

/* Spotlight curseur (JS met à jour --mx/--my sur la grille) */
.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        380px circle at var(--mx) var(--my),
        var(--accent-glow),
        transparent 68%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
    border-radius: 20px;
}

/* Hover : glow multi-couche + lift */
.service-card:hover {
    border-color: var(--accent-border);
    box-shadow:
        0 0 0 3px var(--accent-glow),
        0 0 0 1px var(--accent-border),
        0 16px 48px var(--accent-shadow),
        0 4px 16px rgba(0,0,0,0.06);
    transform: translateY(-9px) scale(1.015);
}

.service-card:hover::after { opacity: 1; }

/* Contenu au-dessus du spotlight layer */
.service-card > * { position: relative; z-index: 1; }

/* Icône */
.service-icon {
    width: 66px;
    height: 66px;
    background: transparent;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    margin-bottom: 18px;
    transition:
        background 0.35s ease,
        border-color 0.35s ease,
        transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.35s ease;
}

.service-card:hover .service-icon {
    background: transparent;
    border-color: transparent;
    transform: scale(1.1) rotate(-4deg);
    box-shadow: none;
}

.service-card h3 {
    color: var(--primary-dark);
    font-size: 19px;
    font-weight: var(--weight-extra);
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 20px;
}

.service-arrow {
    color: var(--accent-solid);
    font-size: 12px;
    font-weight: var(--weight-bold);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
    opacity: 0.8;
}

.service-card:hover .service-arrow {
    gap: 14px;
    opacity: 1;
}

.pricing-preview { padding: 80px 0; }
.pricing-card { max-width: 520px; margin: 0 auto; background: var(--primary-light); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-soft); }
.pricing-header { background: var(--primary-blue); color: var(--surface); padding: 30px; text-align: center; }
.pricing-header .section-title { color: var(--surface); padding-bottom: 0; margin-bottom: 4px; }
.pricing-header .section-title::after { display: none; }
.pricing-label { font-size: 14px; opacity: 0.9; }
.pricing-body { padding: 30px; text-align: center; }
.pricing-amount { margin-bottom: 24px; }
.price-gross { font-size: 22px; color: var(--text-muted); text-decoration: line-through; display: block; }
.price-net { font-size: 48px; font-weight: var(--weight-black); color: var(--primary-dark); display: block; line-height: 1.1; }
.price-note { font-size: 14px; color: var(--text-muted); }
.pricing-includes { list-style: none; padding: 0; text-align: left; margin-bottom: 24px; }
.pricing-includes li { padding: 8px 0; font-size: 15px; color: var(--primary-dark); border-bottom: 1px solid var(--border-soft); }
.pricing-includes li:last-child { border-bottom: none; }

.process-section { padding: 80px 0; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.process-step { text-align: center; padding: 30px; }
.process-number { display: inline-flex; width: 56px; height: 56px; background: var(--primary-blue); color: var(--surface); border-radius: 50%; align-items: center; justify-content: center; font-size: 24px; font-weight: var(--weight-black); margin-bottom: 16px; }
.process-step h3 { font-size: 18px; font-weight: var(--weight-bold); margin-bottom: 8px; color: var(--primary-dark); }
.process-step p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

.reviews { padding: 80px 0; }

.faq-section { padding: 80px 0; }

.final-cta { padding: 80px 0; }
.final-cta-buttons { display: flex; gap: 16px; justify-content: center; }

@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-ctas { justify-content: center; }
    .trust-badge { justify-content: center; }
    .hero-visual { margin-top: 24px; }
    .hero-img-placeholder { max-width: 280px; }
    .hero-visual::before { width: 260px; height: 260px; }
    .hero-badge-sap { right: 0; }
    .why-us-grid { grid-template-columns: repeat(2, 1fr); }
    .sap-content { grid-template-columns: 1fr; gap: 32px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .hero { padding: 120px 0 80px; }
    .hero-badge-sap { bottom: 10px; right: auto; left: 50%; transform: translateX(-50%); animation: none; }
    .hero-img-placeholder { animation: none; }
    .hero-visual::before { width: 220px; height: 220px; }
    .services-section, .why-us, .process-section, .reviews, .faq-section { padding: 50px 0; }
    .guarantees-section { padding: 50px 0; }
    .why-us-grid { grid-template-columns: 1fr; gap: 16px; }
    .services-grid { grid-template-columns: 1fr; gap: 20px; }
    .process-grid { grid-template-columns: 1fr; }
    .service-card { padding: 32px 24px; }
    .why-card { padding: 24px 20px; }
    .final-cta { padding: 50px 20px; margin: 0; border-radius: 0; }
    .sap-banner { padding: 50px 0; }
    .pricing-preview { padding: 50px 0; }
    .pricing-body { padding: 24px; }
}
