/* ===================================
   CSS AUDIT & SÉCURITÉ - COHÉRENT AVEC SITES-WEB.CSS
   =================================== */

/* ===================================
   VARIABLES CSS (IDENTIQUES)
   =================================== */
:root {
    --primary: #3b82f6;
    --primary-dark: #1d4ed8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --accent: #06b6d4;
    --purple: #8b5cf6;
    
    --text-main: #e2e8f0;
    --text-light: #cbd5e1;
    --text-white: #ffffff;
    
    --dark: #0f172a;
    --dark-light: #1e293b;
    --border: rgba(255, 255, 255, 0.1);
    
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-medium: 0 10px 40px rgba(0, 0, 0, 0.2);
    --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.3);
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 1rem;
    --border-radius-large: 1.5rem;
}

/* Uniformisation - toutes les sections avec la même couleur sombre */
section {
    background: rgba(15, 23, 42, 0.7) !important;
}

.problems-section,
.services-section,
.methodology-section,
.results-section,
.content-section,
.contact-section {
    background: rgba(15, 23, 42, 0.7) !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--purple));
    border-radius: 2px;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-label {
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ===================================
   HERO SECTION (IDENTIQUE)
   =================================== */
.hero-corporate {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 4rem 0;
}

.hero-content-corporate {
    max-width: 1000px;
    padding: 2rem 1rem;
}

.hero-corporate h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 3rem;
    margin-top: 2rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-lead {
    font-size: clamp(1.4rem, 2.8vw, 1.8rem);
    max-width: 800px;
    margin: 0 auto 3rem auto;
    line-height: 1.6;
    position: relative;
    background: none !important;
    background-size: initial !important;
    background-position: initial !important;
    animation: none !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    color: var(--text-light);
}

@keyframes textFlash {
    0% { background-position: -100% 0; }
    50% { background-position: 100% 0; }
    100% { background-position: 100% 0; }
}

.hero-cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ===================================
   BOUTONS (IDENTIQUES)
   =================================== */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* ===================================
   PROBLEMS SECTION (STYLE PROBLEMS)
   =================================== */
.problems-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.problems-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.problem-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    border: 1px solid var(--border);
    transition: var(--transition-smooth);
    text-align: center;
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px;
}

.problem-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
    border-color: rgba(59, 130, 246, 0.3);
}

.problem-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--danger);
}

.problem-icon svg {
    width: 2rem;
    height: 2rem;
}

.problem-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.problem-card p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.problem-cost {
    margin-top: auto;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 0.5rem;
    border: 1px solid rgba(239, 68, 68, 0.2);
    font-size: 0.9rem;
}

.problem-cost strong {
    color: #fca5a5;
    font-weight: 600;
}

/* ===================================
   SERVICES SECTION (STYLE SERVICES)
   =================================== */
.services-section {
    background: rgba(15, 23, 42, 0.5);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.services-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.services-grid-2x2 .service-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    border-radius: var(--border-radius-large);
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.15);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Listes à puces avec style cohérent */
.service-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.6;
}

.service-features li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.service-adapted {
    background: rgba(16, 185, 129, 0.1);
    padding: 1rem;
    border-radius: 0.75rem;
    border-left: 4px solid var(--success);
    margin-top: auto;
}

.service-adapted strong {
    color: var(--success);
    font-weight: 600;
}

/* ===================================
   METHODOLOGY SECTION (STYLE METHODOLOGY)
   =================================== */
.methodology-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.methodology-steps {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    padding: 2rem 1rem;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    border-radius: var(--border-radius-large);
    border: 1px solid var(--border);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
}

.step-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.15);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.step-content p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1rem;
}

/* ===================================
   RESULTS SECTION (STYLE RESULTS)
   =================================== */
.results-section {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(6, 182, 212, 0.03) 100%);
}

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

.result-item {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
}

.result-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.result-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--success);
}

.result-icon svg {
    width: 2.5rem;
    height: 2.5rem;
}

.result-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.result-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===================================
   CONTENT SECTION (STYLE SAAS)
   =================================== */
.content-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.content-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.audit-explanation {
    position: relative;
    z-index: 2;
    margin-top: 3rem;
}

.audit-definition {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-radius: var(--border-radius-large);
    padding: 2.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(10px);
    text-align: center;
}

.definition-highlight {
    color: var(--text-light);
    font-size: 1.125rem;
    line-height: 1.7;
}

.definition-highlight strong {
    color: var(--text-white);
    font-weight: 600;
}

/* ===================================
   CONTACT SECTION (STYLE CONTACT)
   =================================== */
.contact-corporate {
    background: var(--dark-light);
}

.contact-corporate .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-corporate .section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: white;
}

.contact-corporate .section-description {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-description-icon {
    display: inline;
    margin-right: 8px;
    color: #10b981;
}

.contact-content {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 4rem 0;
    background: var(--dark);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border);
}

.contact-card {
    background: var(--dark-light);
    padding: 2.5rem 2rem;
    border-right: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 200px;
    justify-content: center;
}

.contact-card:last-child {
    border-right: none;
}

.contact-card:hover {
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.15);
    z-index: 2;
    position: relative;
}

.contact-card.priority {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    transform: scale(1.05);
    border: 2px solid var(--primary-dark);
}

.contact-card-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.contact-card a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

.contact-link-primary {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
    display: inline-block;
}

.contact-link-primary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.contact-card span {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-card p {
    color: var(--text-main);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* ===================================
   RESPONSIVE DESIGN (IDENTIQUE)
   =================================== */

/* Tablet */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .services-grid,
    .services-grid-2x2,
    .results-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .methodology-steps {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .section-header h2 {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }
    
    .section-header p {
        font-size: 1.125rem;
    }
    
    /* Hero */
    .hero-corporate {
        min-height: 80vh;
        padding: 2rem 1rem;
    }
    
    .hero-content-corporate {
        padding: 1rem;
        max-width: 100%;
    }
    
    .hero-corporate h1 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 1.5rem;
        margin-top: 4rem;
        line-height: 1.2;
    }
    
    .hero-lead {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        line-height: 1.5;
        max-width: 100%;
    }
    
    .hero-cta-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* Grids */
    .problems-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1.5rem;
    }
    
    .services-grid,
    .services-grid-2x2,
    .results-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Cards */
    .problem-card,
    .service-card,
    .result-item {
        padding: 1.5rem;
    }
    
    .step-item {
        padding: 2rem 1.5rem;
    }
    
    .methodology-steps {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    /* Contact */
    .contact-methods {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-card {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 2rem 1.5rem;
        min-height: 180px;
    }
    
    .contact-card:nth-child(odd) {
        border-right: 1px solid var(--border);
    }
    
    .contact-card:nth-child(n+3) {
        border-bottom: none;
    }
    
    .contact-card.priority {
        transform: none;
    }
    
    .contact-card.priority:hover {
        transform: translateY(-5px);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .section-header h2::after {
        width: 60px;
        height: 2px;
    }
    
    .problem-card,
    .service-card,
    .result-item,
    .step-item {
        padding: 1.25rem;
    }
    
    .audit-definition {
        padding: 2rem 1.5rem;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .contact-card {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 2rem 1rem;
        min-height: 160px;
    }
    
    .contact-card:last-child {
        border-bottom: none;
    }
}