:root {
    --primary: #5b2c6f;
    --secondary: #ff6b35;
    --dark: #1a1a1a;
    --light: #f8f9fa;
    --white: #ffffff;
    --success: #28a745;
    --danger: #dc3545;
    --pastel-bg: #f5f3f7;
    --gradient: linear-gradient(135deg, #5b2c6f 0%, #9b59b6 100%);
}

/* Legal page styles */
.legal-page {
    padding: 120px 0 60px 0;
    min-height: calc(100vh - 300px);
    background: linear-gradient(
        135deg,
        rgba(91, 44, 111, 0.02) 0%,
        rgba(255, 107, 53, 0.02) 100%
    );
}

.legal-page .container {
    max-width: 900px;
    background: var(--white);
    padding: 3rem 4rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(91, 44, 111, 0.08);
    border: 1px solid rgba(91, 44, 111, 0.05);
}

.legal-page h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 3rem;
    line-height: 1.2;
    text-align: center;
    position: relative;
}

.legal-page h1::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--secondary) 100%
    );
    border-radius: 2px;
}

.legal-page h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin: 3rem 0 1.5rem 0;
    padding: 1rem 1.5rem;
    background: linear-gradient(
        135deg,
        rgba(91, 44, 111, 0.05) 0%,
        rgba(255, 107, 53, 0.05) 100%
    );
    border-left: 4px solid var(--secondary);
    border-radius: 8px;
}

.legal-page p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #333;
    font-size: 1rem;
}

.legal-page p strong {
    color: var(--primary);
    font-weight: 600;
}

.legal-page a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.legal-page a:hover {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
}

.legal-page small {
    color: #666;
    font-style: italic;
    display: block;
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(91, 44, 111, 0.1);
}

/* Responsive pour legal page */
@media (max-width: 768px) {
    .legal-page .container {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    .legal-page h1 {
        font-size: 2.2rem;
    }

    .legal-page h2 {
        font-size: 1.4rem;
        padding: 0.8rem 1rem;
    }
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Compensation pour le header fixe */
}

body {
    font-family:
        "Outfit",
        -apple-system,
        sans-serif;
    line-height: 1.7;
    color: var(--dark);
    background: var(--white);
    font-weight: 400;
    font-size: 16px;
    overflow-x: hidden; /* Évite le débordement horizontal */
    width: 100%;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

/* Barre de progression du scroll */
.progress-container {
    width: 100%;
    height: 4px;
    background: var(--white);
    position: fixed;
    top: 0;
    z-index: 1001;
}

.progress-bar {
    height: 4px;
    background: var(--secondary);
    width: 0%;
}

/* Header */
header {
    background: var(--white);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 4px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 1;
    min-width: 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    line-height: 1;
}

.logo-tagline {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--secondary);
    margin-top: 2px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: none; /* Hidden on mobile by default */
    gap: 2rem;
}

@media (min-width: 768px) and (max-width: 1100px) {
    .nav-links {
        display: none !important; /* Cache le menu sur écrans moyens */
    }

    .mobile-menu-toggle {
        display: block !important;
    }
}

@media (min-width: 1101px) and (max-width: 1300px) {
    .nav-links {
        display: flex;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        gap: 1.25rem; /* Réduction de l'espacement */
        font-size: 0.95rem; /* Taille plus petite */
    }

    .nav-links a {
        font-size: 0.95rem;
    }
}

@media (min-width: 1301px) {
    .nav-links {
        display: flex;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Correction menu paysage mobile et tablette */
@media (max-width: 1200px) and (orientation: landscape) {
    nav {
        padding: 0.75rem 0;
    }

    .nav-links {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: block !important;
    }

    .nav-cta {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    .logo-container {
        flex-shrink: 0;
    }
}

.nav-links a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu-toggle i {
    color: var(--dark);
}

.nav-cta {
    background: var(--secondary);
    color: var(--white);
    padding: 10px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    display: inline-block;
}

.nav-cta:hover {
    background: #e55a2b;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    header {
        padding: 0.75rem 0 !important;
    }
    nav {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 0.4rem !important;
        flex-wrap: nowrap !important;
    }
    .logo-container {
        flex: 0 1 auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding-right: 0 !important;
        margin-bottom: 0.35rem !important; /* petit espace entre baseline et CTA */
    }
    .logo {
        font-size: 1.7rem !important;
    }
    .logo-tagline {
        font-size: 0.7rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }
    .nav-right {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.5rem !important;
        flex: 0 0 auto !important;
        margin-left: 0 !important;
        justify-content: flex-start !important;
    }
    .nav-cta {
        order: -1;
        padding: 10px 18px !important;
        font-size: 0.95rem !important;
        text-align: center !important;
        line-height: 1.2 !important;
        display: inline-block !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        border-radius: 8px !important;
    }
    .mobile-menu-toggle {
        display: flex !important;
        flex-shrink: 0 !important;
        padding: 6px !important;
    }

    .hero {
        padding: 60px 0 60px;
        margin-top: 0;
    }
    .hero h1 {
        padding-left: 16px;
        padding-right: 16px;
        font-size: clamp(2rem, 7vw, 2.8rem);
        line-height: 1.2;
        margin-bottom: 1.5rem;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    .hero-subtitle {
        padding-left: 16px;
        padding-right: 16px;
        margin-bottom: 2rem;
        font-size: clamp(1.1rem, 4vw, 1.3rem);
    }
}

/* Hero Section */
.hero {
    padding: 140px 0 100px;
    background-color: var(--white);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.1rem, 5.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 2rem;
    color: var(--primary);
    letter-spacing: -0.02em;
    word-break: normal;
    hyphens: none;
    overflow-wrap: normal;
    white-space: normal;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #495057;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-experts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.expert-card {
    background: rgba(91, 44, 111, 0.05);
    border: 1px solid rgba(91, 44, 111, 0.12);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
}

.expert-name {
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.expert-role {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.4;
}

.hero-equation {
    margin-bottom: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    font-size: 1.1rem;
}

.hero-animation-wrapper {
    display: none; /* Temporarily disable for redesign */
}

.cta-button {
    background: var(--secondary);
    color: var(--white);
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    border: 2px solid transparent;
    white-space: nowrap; /* Empêche le retour à la ligne */
}

.cta-badge {
    display: inline-block;
    margin-bottom: 0.75rem;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(220, 53, 69, 0.12);
    color: #c82333;
    font-weight: 800;
    font-size: 0.9rem;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.cta-arrow {
    display: inline-block;
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.cta-button:hover .cta-arrow {
    transform: translateX(4px);
}

.cta-button:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

/* Social Proof Section */
.social-proof {
    /* MODIFIÉ : Espacement ajusté */
    padding: 0 0 60px;
    background: var(--white);
}

.proof-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.proof-container span {
    font-weight: 600;
    color: #6c757d;
    font-size: 1rem;
    text-align: center;
}

.proof-container img {
    height: 35px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}
.proof-container img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Bandeau des chiffres clés */
.key-metrics {
    padding: 80px 0;
    background-color: var(--white);
}
.metrics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
}
@media (min-width: 576px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 992px) {
    .metrics-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.metric-item .icon {
    color: var(--primary);
    margin-bottom: 1rem;
}
.metric-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}
.metric-description {
    font-size: 1rem;
    color: #495057;
    max-width: 220px;
    margin: 0 auto;
}

/* Sections générales */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 5rem;
}

.section-header h2 {
    font-size: clamp(2.2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--primary);
}

.section-header p {
    font-size: 1.15rem;
    color: #6c757d;
}

/* Problem/Solution Section */
.problem-solution {
    padding-top: 100px;
    background: var(--light);
}
.two-columns {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.column {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.column h3 {
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-weight: 700;
}

.pain-points {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    text-align: left;
}

.pain-points li {
    background: var(--light);
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    align-items: start;
    gap: 1rem;
    font-size: 1.05rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.pain-points li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.pain-icon-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    flex-shrink: 0;
}

.pain-icon-group .danger-icon {
    color: var(--danger);
    margin-top: 5px;
}

.pain-illustration {
    margin-top: 3px;
    transition: transform 0.3s ease;
}

.pain-points li:hover .pain-illustration {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .problem-solution .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .pain-points {
        grid-template-columns: 1fr;
        padding: 0;
        width: 100%;
    }
    .pain-points li {
        padding: 1.5rem;
        margin: 0;
        width: 100%;
    }
    .column {
        max-width: 100%;
    }
}

/* Méthode 3T Premium Styling */
.method-3t-header {
    text-align: center;
    margin-bottom: 3rem;
}

.method-experience {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
    opacity: 0.85;
    letter-spacing: 0.3px;
    font-family: "Outfit", sans-serif;
}

.method-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(
        135deg,
        rgba(91, 44, 111, 0.1) 0%,
        rgba(255, 107, 53, 0.1) 100%
    );
    border-radius: 50px;
    border: 2px solid rgba(91, 44, 111, 0.3);
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.method-logo {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    flex-shrink: 0;
}

.method-badge-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.method-copyright {
    color: var(--primary);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.method-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0;
    line-height: 1.3;
    white-space: normal; /* Permet le retour à la ligne sur mobile */
}

.highlight-stat {
    color: var(--secondary);
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(255, 107, 53, 0.3);
}

.method-subtitle {
    font-size: 1rem;
    color: #6c757d;
    font-style: italic;
    margin-bottom: 0;
    opacity: 0.85;
    margin-top: 0.25rem;
}

.method-3t-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

@media (min-width: 768px) {
    .method-3t-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        align-items: stretch;
    }
}

.method-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid transparent;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.method-card:hover {
    transform: translateY(-5px);
    border-color: rgba(91, 44, 111, 0.3);
    box-shadow: 0 15px 40px rgba(91, 44, 111, 0.15);
}

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

.method-card.animate {
    transform: translateY(0);
    opacity: 1;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-content .pillar-name {
    min-height: 2.5rem;
}

.card-content .pillar-subtitle {
    min-height: 2rem;
}

.card-content .pillar-description {
    flex: 1;
    min-height: 80px;
}

.card-content .pillar-stat {
    margin-top: auto;
}

.card-content p:last-child {
    height: 3rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
}

.pillar-icon {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.card-badge {
    background: var(--gradient);
    color: white;
    font-weight: 800;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(91, 44, 111, 0.3);
}

.pillar-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.pillar-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.pillar-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.pillar-stat {
    background: rgba(91, 44, 111, 0.1);
    padding: 1.25rem 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
}

.method-cta {
    text-align: center;
    margin-top: 3rem;
}

.method-cta-button {
    background: var(--gradient);
    color: white;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(91, 44, 111, 0.3);
    border: 2px solid transparent;
    white-space: nowrap;
}

.method-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(91, 44, 111, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.step {
    display: flex;
    gap: 2rem;
    align-items: start;
    text-align: left;
    margin-bottom: 3rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}
.step:last-child {
    margin-bottom: 0;
}

.step-number {
    background: var(--gradient);
    color: white;
    min-width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.step-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: 700;
}

.step-content p {
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Offers Section */
.offers {
    background: var(--light);
}

.offers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 4rem;
}
@media (min-width: 768px) {
    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1100px) {
    .offers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.offer-support-note {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(
        135deg,
        rgba(91, 44, 111, 0.08),
        rgba(255, 107, 53, 0.12)
    );
    border: 1px solid rgba(91, 44, 111, 0.18);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    box-shadow: 0 10px 30px rgba(91, 44, 111, 0.14);
    animation: supportGlow 6s ease-in-out infinite;
    flex-wrap: wrap;
}

.offer-support-note .support-icon {
    width: 84px;
    min-height: 84px;
    border-radius: 14px;
    background: #fefefe;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
    color: var(--primary);
    border: 1px solid rgba(91, 44, 111, 0.1);
    position: relative;
}

.offer-support-note .support-icon img {
    width: 36px;
    height: 36px;
    display: block;
}

.offer-support-note .support-icon-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.offer-support-note .support-icon[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translate(-50%, 8px);
    background: linear-gradient(
        135deg,
        rgba(91, 44, 111, 0.95),
        rgba(255, 107, 53, 0.92)
    );
    color: var(--white);
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(91, 44, 111, 0.16);
    opacity: 0;
    pointer-events: none;
    white-space: normal;
    max-width: 220px;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.3;
    transition:
        opacity 0.2s ease,
        transform 0.25s ease;
    z-index: 2;
}

.offer-support-note .support-icon[data-tooltip]::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) scale(0.85);
    border-width: 8px;
    border-style: solid;
    border-color: rgba(91, 44, 111, 0.9) transparent transparent transparent;
    opacity: 0;
    transition:
        opacity 0.2s ease,
        transform 0.25s ease;
    z-index: 1;
}

.offer-support-note .support-icon:hover::after,
.offer-support-note .support-icon:hover::before {
    opacity: 1;
    transform: translate(-50%, 0);
}

@keyframes supportGlow {
    0%,
    100% {
        box-shadow: 0 10px 30px rgba(91, 44, 111, 0.12);
        border-color: rgba(91, 44, 111, 0.18);
    }
    50% {
        box-shadow: 0 16px 34px rgba(91, 44, 111, 0.2);
        border-color: rgba(255, 107, 53, 0.35);
    }
}

.offer-support-note .support-text {
    color: var(--dark);
    font-size: 1rem;
    line-height: 1.5;
    flex: 1 1 240px;
}

.offer-support-note .support-text strong {
    display: inline-block;
    margin-right: 0.35rem;
}

.ai-quote {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--primary);
    background: rgba(91, 44, 111, 0.05);
    color: #343a40;
    font-style: italic;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.ai-quote a {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
}

.ai-quote a:hover {
    text-decoration: underline;
}

.ai-quote::before {
    content: "“";
    position: absolute;
    top: -8px;
    left: 10px;
    font-size: 2.5rem;
    color: rgba(91, 44, 111, 0.15);
    line-height: 1;
}

@media (max-width: 768px) {
    .offer-support-note {
        flex-direction: column;
        align-items: flex-start;
    }
    .offer-support-note .support-icon {
        width: 56px;
        min-height: 56px;
    }
}

.offer-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    border: 1px solid #e9ecef;
}

.offer-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.offer-card.featured {
    border: 2px solid var(--secondary);
}

.offer-badge {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: white;
    padding: 8px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.offer-content {
    flex-grow: 1;
}

.offer-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 700;
}

.offer-price {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.offer-duration {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

.offer-features {
    list-style: none;
    margin-bottom: 2.5rem;
    text-align: left;
}

.offer-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: start;
    gap: 0.75rem;
    color: #495057;
    font-size: 1.05rem;
}

.offer-features .icon {
    color: var(--success);
    margin-top: 5px;
    flex-shrink: 0;
}

.offer-cta {
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    display: inline-block;
    margin-top: auto;
}

.offer-cta:hover {
    background: var(--dark);
    border-color: var(--dark);
}

.offer-card.featured .offer-cta {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.offer-card.featured .offer-cta:hover {
    background: #e55a2b;
    border-color: #e55a2b;
}

/* Contact Section */
#contact {
    background: var(--primary);
    color: var(--white);
}

.contact-wrapper {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-wrapper h2 {
    font-size: clamp(2.2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--white);
}

.contact-wrapper p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
}

.guarantee {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2.5rem;
    margin-bottom: 3rem;
    border-radius: 12px;
    text-align: center;
}

.guarantee .guarantee-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.guarantee p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--white);
    margin: 0;
}
.guarantee strong {
    color: var(--white);
    font-weight: 700;
}

/* Insights Section */
.insights {
    padding: 4rem 0;
    background: var(--light);
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.insight-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(91, 44, 111, 0.1);
    height: fit-content;
}

.insight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(91, 44, 111, 0.15);
}

.insight-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.insight-date {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 600;
    white-space: nowrap;
}

.insight-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.insight-tag {
    background: rgba(91, 44, 111, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.insight-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.insight-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.insight-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.insight-cta:hover {
    color: var(--secondary);
    transform: translateX(4px);
}

.insight-cta .icon {
    width: 16px;
    height: 16px;
}

.insights-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #666;
}

.insights-loading .icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
    color: var(--primary);
}

.rotating {
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.insights-cta {
    text-align: center;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid rgba(91, 44, 111, 0.1);
}

.insights-cta p {
    margin-bottom: 1rem;
    color: #666;
    font-size: 1.1rem;
}

.linkedin-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #0077b5;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.linkedin-cta:hover {
    background: #005885;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 119, 181, 0.3);
}

.linkedin-cta .icon {
    width: 24px;
    height: 24px;
}

/* Responsive pour Insights */
@media (max-width: 768px) {
    .insights-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }

    .insight-card {
        padding: 1.5rem;
    }

    .insight-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .insight-title {
        font-size: 1.1rem;
    }

    .linkedin-cta {
        font-size: 1rem;
        padding: 0.875rem 1.5rem;
    }
}

/* Footer */
footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 5rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    margin-bottom: 0;
    line-height: 1;
}

.footer-tagline {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--secondary);
    margin-top: 2px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1.05rem;
}
.footer-links a:hover {
    color: var(--white);
}

.footer-social a {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0.75rem;
    transition: color 0.3s ease;
}
.footer-social a:hover {
    color: var(--secondary);
}

.copyright {
    font-size: 1rem;
    margin-top: 2rem;
    opacity: 0.8;
}

@media (max-width: 767px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #e9ecef;
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease-in-out;
    }

    .nav-links.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        font-size: 1.2rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    /* Corrections globales mobile pour éviter décalage */
    * {
        box-sizing: border-box;
    }

    html,
    body {
        width: 100% !important;
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Correction bouton CTA mobile */
    .cta-button {
        font-size: 0.95rem !important;
        padding: 12px 20px !important;
        text-align: center;
        word-break: keep-all;
        overflow-wrap: normal;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        white-space: nowrap !important;
        max-width: calc(100vw - 40px);
        box-sizing: border-box;
    }

    .cta-arrow {
        margin-left: 2px !important;
        flex-shrink: 0;
    }

    .container {
        width: 100% !important;
        max-width: 100vw !important;
        padding: 0 16px !important;
        margin: 0 auto !important;
        box-sizing: border-box;
    }
    .hero-container-wrapper {
        padding: 3rem 0;
    }
    .hero-animation-wrapper {
        display: none; /* Cache l'animation sur mobile pour la performance */
    }
    .offer-card.featured {
        transform: scale(1);
    }
    .offer-card.featured:hover {
        transform: translateY(-8px);
    }
    .offers-grid {
        grid-template-columns: 1fr;
    }
    .offer-card {
        max-width: 400px;
        margin: 0 auto;
    }

    /* Footer mobile optimizations */
    footer {
        padding: 3rem 0 2rem; /* Réduction du padding vertical */
    }

    .footer-content {
        gap: 1.5rem; /* Réduction de l'espacement */
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem; /* Liens empilés verticalement */
        align-items: center;
    }

    .footer-links a {
        font-size: 1rem; /* Taille de police plus petite */
        padding: 0.5rem 1rem; /* Ajout de padding pour améliorer la zone tactile */
    }

    .footer-logo {
        font-size: 1.5rem; /* Logo plus petit sur mobile */
    }

    .footer-tagline {
        font-size: 0.6rem;
        margin-top: 4px;
    }

    .copyright {
        font-size: 0.9rem;
        margin-top: 1.5rem;
        line-height: 1.4; /* Améliore la lisibilité */
    }

    .footer-social {
        margin-top: 0.5rem;
    }

    .footer-social a {
        margin: 0 1rem; /* Plus d'espace entre les icônes sociales */
        display: inline-block;
        padding: 0.5rem; /* Zone tactile plus large */
    }

    /* Optimisations bloc 3T mobile */
    .method-3t-header {
        margin-bottom: 2rem; /* Respiration après le header */
        padding: 0 1.5rem; /* Plus de padding latéral */
    }

    .method-badge {
        flex-direction: column; /* Stack verticalement sur mobile */
        align-items: center;
        text-align: center;
        gap: 0.75rem; /* Espacement vertical */
        padding: 1.25rem 1rem; /* Padding adapté */
        margin-bottom: 1.5rem; /* Espace après le badge */
        max-width: 100%;
        background: rgba(91, 44, 111, 0.04); /* Fond subtil pour délimiter */
        border-radius: 12px;
        border: 1px solid rgba(91, 44, 111, 0.1);
        margin-left: auto;
        margin-right: auto;
    }

    .method-logo {
        width: 32px !important; /* Plus petit sur mobile */
        height: 32px !important;
        flex-shrink: 0;
    }

    .method-badge-text {
        text-align: center; /* Centré sur mobile */
        flex: none; /* Pas de flex sur mobile */
    }

    .method-copyright {
        font-size: 0.65rem; /* Plus petit sur mobile */
        display: block;
        margin-bottom: 0.1rem;
        font-weight: 600;
    }

    .method-experience {
        font-size: 0.7rem; /* Lisible sur mobile */
        line-height: 1.3;
        opacity: 0.85;
        max-width: 280px; /* Limite la largeur pour meilleure lecture */
        text-align: center;
    }

    .method-title {
        font-size: 1.25rem !important; /* Force plus petit sur mobile */
        line-height: 1.3; /* Un peu plus d'espace entre les lignes */
        margin-top: 0;
        padding: 0 1rem; /* Réduction du padding */
        text-align: center;
        margin-bottom: 1rem; /* Plus d'espace après le titre */
        white-space: normal !important; /* Permet le retour à la ligne */
        word-wrap: break-word; /* Casse les mots si nécessaire */
    }

    .highlight-stat {
        display: block; /* Force le retour à la ligne */
        margin-top: 0.5rem; /* Plus d'espace avant le stat */
        font-size: 1.1rem; /* Taille adaptée mobile */
        padding: 0 1rem; /* Alignement avec le titre */
        word-wrap: break-word; /* Casse les mots si nécessaire */
    }

    .method-3t-cards {
        gap: 1.5rem; /* Espacement entre les cartes */
        margin: 3rem 0; /* Plus d'espace avant/après les cartes */
        padding: 0 1.5rem; /* Même padding que le reste */
    }

    .method-card {
        padding: 1.5rem; /* Réduction du padding */
        margin: 0; /* Suppression des marges externes */
    }

    .method-card h4 {
        font-size: 1.1rem; /* Titres plus petits */
    }

    .method-card p {
        font-size: 0.9rem; /* Texte plus petit */
        line-height: 1.4;
    }

    .method-cta {
        padding: 0 1rem;
        margin-top: 2rem;
    }

    .method-cta-button {
        font-size: 0.95rem !important; /* Bouton plus petit */
        padding: 0.875rem 1.5rem !important;
        width: 100%; /* Bouton pleine largeur sur mobile */
        text-align: center;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        white-space: nowrap !important;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s ease-out forwards;
}

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

/* Breadcrumb Navigation */
.breadcrumb-nav {
    background: var(--light);
    border-bottom: 1px solid #e9ecef;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.breadcrumb {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--secondary);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    margin: 0 0.5rem;
    color: #6c757d;
}

@media (max-width: 768px) {
    .breadcrumb-nav {
        padding: 0.25rem 0;
        font-size: 0.8rem;
    }
}

/* FAQ Section */
.faq-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.faq-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(
            circle at 20% 50%,
            rgba(91, 44, 111, 0.03) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 20%,
            rgba(255, 107, 53, 0.03) 0%,
            transparent 50%
        );
    pointer-events: none;
}

.faq-grid {
    max-width: 1000px;
    margin: 4rem auto 0;
    position: relative;
    z-index: 1;
}

.faq-item {
    background: var(--white);
    border: none;
    border-radius: 24px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.faq-item:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 40px rgba(91, 44, 111, 0.15),
        0 0 0 1px rgba(91, 44, 111, 0.1);
}

.faq-item.active {
    box-shadow:
        0 20px 40px rgba(91, 44, 111, 0.2),
        0 0 0 2px rgba(91, 44, 111, 0.15);
}

.faq-button {
    width: 100%;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    transition: all 0.3s ease;
    position: relative;
    font-family: "Outfit", sans-serif;
}

.faq-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(91, 44, 111, 0.02),
        rgba(255, 107, 53, 0.02)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 24px 24px 0 0;
}

.faq-button:hover::before {
    opacity: 1;
}

.faq-button[aria-expanded="true"] {
    background: linear-gradient(
        135deg,
        rgba(91, 44, 111, 0.05),
        rgba(255, 107, 53, 0.03)
    );
    border-bottom: 2px solid rgba(91, 44, 111, 0.1);
}

.faq-button span {
    flex: 1;
    margin-right: 1.5rem;
    line-height: 1.4;
    position: relative;
    z-index: 2;
}

.faq-visual {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        rgba(91, 44, 111, 0.08),
        rgba(255, 107, 53, 0.08)
    );
    border-radius: 14px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.faq-visual svg {
    transition: all 0.3s ease;
}

.faq-button[aria-expanded="true"] .faq-visual {
    background: linear-gradient(
        135deg,
        rgba(91, 44, 111, 0.15),
        rgba(255, 107, 53, 0.15)
    );
    transform: scale(1.05);
}

.faq-button[aria-expanded="true"] .faq-visual svg {
    transform: scale(1.1);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(
        135deg,
        rgba(248, 249, 250, 0.5),
        rgba(233, 236, 239, 0.3)
    );
}

.faq-answer.open {
    max-height: 600px;
    padding: 1rem 2rem 2rem;
}

.faq-answer p {
    margin: 0 0 1rem;
    color: #495057;
    line-height: 1.6;
    font-size: 0.95rem;
    font-weight: 400;
    font-family: "Outfit", sans-serif;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer strong {
    color: var(--primary);
    font-weight: 600;
    font-family: "Outfit", sans-serif;
}

/* Animation d'entrée */
.faq-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.faq-item:nth-child(1) {
    animation-delay: 0.1s;
}
.faq-item:nth-child(2) {
    animation-delay: 0.2s;
}
.faq-item:nth-child(3) {
    animation-delay: 0.3s;
}
.faq-item:nth-child(4) {
    animation-delay: 0.4s;
}

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

@media (max-width: 768px) {
    .faq-section {
        padding: 4rem 0;
    }

    .faq-grid {
        margin: 3rem auto 0;
    }

    .faq-button {
        padding: 1.25rem 1rem;
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .faq-button span {
        margin-right: 0.75rem;
        line-height: 1.4;
        word-wrap: break-word;
    }

    .faq-visual {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        flex-shrink: 0;
    }

    .faq-answer.open {
        padding: 1rem 1rem 1.25rem;
        max-height: 800px;
    }

    .faq-answer p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    .faq-item {
        border-radius: 16px;
        margin-bottom: 1rem;
    }

    .faq-button {
        padding: 1rem 0.75rem;
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .faq-button span {
        margin-right: 0.5rem;
    }

    .faq-visual {
        width: 28px;
        height: 28px;
    }

    .faq-answer.open {
        padding: 1.2rem 1.2rem 1.5rem;
    }
}

/* Tech Stack Section (Refonte) */
.tech-stack {
    padding: 2rem 0 2rem;
    background: var(--white);
    position: relative;
}

.stack-title {
    text-align: center;
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.8;
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    justify-items: center;
    align-items: center;
    gap: 3.5rem 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.stack-item {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6;
    filter: grayscale(100%);
    height: 70px;
    width: 100%;
    position: relative;
}

.stack-item:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1) translateY(-2px);
}

.stack-item::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    transform: translate(-50%, 8px);
    background: linear-gradient(
        135deg,
        rgba(91, 44, 111, 0.95),
        rgba(255, 107, 53, 0.92)
    );
    color: var(--white);
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(91, 44, 111, 0.16);
    opacity: 0;
    pointer-events: none;
    white-space: normal;
    max-width: 230px;
    text-align: center;
    font-size: 0.82rem;
    line-height: 1.35;
    transition:
        opacity 0.2s ease,
        transform 0.25s ease;
    z-index: 2;
}

.stack-item::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    border-width: 8px;
    border-style: solid;
    border-color: rgba(91, 44, 111, 0.9) transparent transparent transparent;
    opacity: 0;
    transition:
        opacity 0.2s ease,
        transform 0.25s ease;
    z-index: 1;
}

.stack-item:hover::after,
.stack-item:hover::before {
    opacity: 1;
    transform: translate(-50%, 0);
}

.stack-logo {
    max-height: 60px;
    max-width: 160px;
    object-fit: contain;
    width: auto;
    height: auto;
    display: block;
}

/* Logo Google plus grand car c'est un carré */
.stack-item[data-tool="Google"] .stack-logo {
    max-height: 80px !important;
    max-width: 80px !important;
    min-height: 80px;
    min-width: 80px;
}

@media (max-width: 768px) {
    .tech-stack {
        padding: 2.5rem 0;
    }
    .stack-grid {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 2.5rem 1.5rem;
        padding: 0 1rem;
    }
    .stack-item {
        height: 60px;
    }
    .stack-item::after {
        bottom: calc(100% + 12px);
        font-size: 0.78rem;
        padding: 0.55rem 0.7rem;
        max-width: 200px;
    }
    .stack-logo {
        max-height: 50px;
        max-width: 100%;
    }
}

/* Calculateur ROI (Design Premium) */
.roi-calculator-wrapper {
    margin-top: 4rem;
    padding: 0 1rem;
}

.roi-calculator {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(91, 44, 111, 0.1);
    border: 1px solid rgba(91, 44, 111, 0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.roi-calculator::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.roi-calculator h4 {
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.roi-subtitle {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.input-group {
    margin-bottom: 2rem;
    text-align: left;
}

.role-toggle {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    background: #f6f1fa;
    padding: 0.4rem;
    border-radius: 12px;
    border: 1px solid rgba(91, 44, 111, 0.08);
}

.role-pill {
    border: none;
    background: transparent;
    color: var(--primary);
    font-weight: 700;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: "Outfit", sans-serif;
}

.role-pill:hover {
    background: rgba(91, 44, 111, 0.08);
}

.role-pill.active {
    background: linear-gradient(
        135deg,
        rgba(91, 44, 111, 0.12),
        rgba(255, 107, 53, 0.14)
    );
    border: 1px solid rgba(91, 44, 111, 0.18);
    box-shadow: 0 6px 16px rgba(91, 44, 111, 0.12);
    color: var(--dark);
}

.input-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.input-group input[type="number"] {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1.1rem;
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    color: var(--dark);
    transition: all 0.3s ease;
    background: #fcfcfc;
}

.input-group input[type="number"]:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(91, 44, 111, 0.1);
    background: white;
}

.input-group input[type="range"] {
    width: 100%;
    margin-top: 0.5rem;
    height: 6px;
    background: #e9ecef;
    border-radius: 5px;
    appearance: none;
    outline: none;
}

.input-group input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
    transition: transform 0.2s;
}

.input-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.input-group output {
    display: block;
    text-align: right;
    font-weight: 700;
    color: var(--primary);
    margin-top: 0.5rem;
}

.inline-field {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.inline-field .unit {
    background: rgba(91, 44, 111, 0.08);
    color: var(--primary);
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
}

.input-hint {
    display: block;
    margin-top: 0.4rem;
    color: #6c757d;
    font-size: 0.85rem;
}

.roi-result {
    background: linear-gradient(135deg, #fff5f5 0%, #fff0f0 100%);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid rgba(220, 53, 69, 0.1);
}

/* Sections par rôle */
.roi-role-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.roi-role-section:hover {
    border-color: rgba(91, 44, 111, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.roi-role-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.roi-role-icon {
    font-size: 1.5rem;
}

.roi-role-title {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    flex: 1;
}

.roi-role-rate {
    background: rgba(91, 44, 111, 0.1);
    color: var(--primary);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.roi-role-inputs {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.input-group-inline {
    flex: 1;
    min-width: 120px;
}

.input-group-inline label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.4rem;
}

.input-group-inline input[type="number"] {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: "Outfit", sans-serif;
    background: white;
    transition: all 0.2s ease;
}

.input-group-inline input[type="number"]:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(91, 44, 111, 0.1);
}

.input-group-inline input[type="range"] {
    width: 100%;
    height: 6px;
    background: #dee2e6;
    border-radius: 5px;
    appearance: none;
    outline: none;
    margin-top: 0.25rem;
}

.input-group-inline input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.input-group-inline output {
    display: block;
    text-align: right;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.roi-role-result {
    margin-top: 1rem;
    text-align: right;
}

.roi-role-amount {
    font-size: 1.4rem;
    font-weight: 800;
    color: #dc3545;
}

/* Total global */
.roi-total {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    padding: 1.75rem;
    border-radius: 16px;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(220, 53, 69, 0.2);
    text-align: center;
}

.roi-total-label {
    display: block;
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.roi-total-amount {
    display: block;
    font-size: 2.75rem;
    font-weight: 900;
    color: #dc3545;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(220, 53, 69, 0.15);
}

.roi-total small {
    font-size: 0.85rem;
    color: #888;
    display: block;
}

@media (max-width: 480px) {
    .roi-role-inputs {
        flex-direction: column;
        gap: 1rem;
    }

    .input-group-inline {
        width: 100%;
    }

    .roi-role-header {
        flex-wrap: wrap;
    }

    .roi-total-amount {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .roi-calculator {
        padding: 1.75rem;
    }
    .roi-calculator h4 {
        font-size: 1.4rem;
    }
    .roi-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
}

.roi-label {
    display: block;
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.roi-amount {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    color: #dc3545;
    line-height: 1;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 10px rgba(220, 53, 69, 0.1);
}

.roi-result small {
    font-size: 0.85rem;
    color: #888;
    display: block;
}

.roi-cta {
    display: block;
    background: #dc3545;
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.roi-cta:hover {
    background: #c82333;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

/* Comparatif Avant/Après (Design Refondu) */
.before-after-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
}

.comparison-wrapper {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    margin-top: 4rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.comparison-card {
    flex: 1;
    background: var(--white);
    padding: 3rem 2.5rem;
    transition: all 0.3s ease;
}

.comparison-card.before {
    border-radius: 24px 0 0 24px;
    border: 1px solid #e9ecef;
    background: #fffcfc;
    border-right: none;
}

.comparison-card.after {
    border-radius: 0 24px 24px 0;
    border: 3px solid rgba(40, 167, 69, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    box-shadow:
        0 20px 60px rgba(40, 167, 69, 0.2),
        0 0 0 1px rgba(40, 167, 69, 0.1) inset;
    z-index: 2;
    transform: scale(1.08);
    position: relative;
}

.comparison-card.after::before {
    content: "✨ Résultat";
    position: absolute;
    top: -12px;
    right: 24px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.comparison-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f1f3f5;
}

.comparison-card.after .comparison-header {
    border-bottom-color: rgba(40, 167, 69, 0.1);
}

.status-icon {
    font-size: 1.8rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.comparison-header h3 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--dark);
    font-weight: 800;
}

.comparison-card.after h3 {
    color: var(--success);
}

.comparison-list {
    list-style: none;
}

.comparison-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    color: #495057;
    line-height: 1.5;
}

.icon-bad {
    color: #dc3545;
    background: transparent;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.icon-good {
    color: #28a745;
    background: transparent;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.comparison-arrow {
    display: none;
}

@media (max-width: 992px) {
    .comparison-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
        padding: 0 1rem;
    }

    .comparison-card.before,
    .comparison-card.after {
        width: 100%;
        border-radius: 16px;
        transform: none !important;
    }

    .comparison-card.before {
        border: 1px solid #e9ecef;
    }

    .comparison-card.after {
        border: 3px solid rgba(40, 167, 69, 0.3);
        box-shadow: 0 12px 30px rgba(40, 167, 69, 0.2);
    }

    .comparison-card.after::before {
        top: -10px;
        right: 16px;
        font-size: 0.7rem;
        padding: 0.35rem 0.85rem;
    }

    .comparison-arrow {
        display: none;
    }
}
