@import url('https://fonts.googleapis.com/css2?family=Sora:wght@100;200;300;400;500;600;700;800&display=swap');

/* ==========================================================================
   Variables globales (Thème Dark & Glassmorphism)
   ========================================================================== */
:root {
    --primary-white: #ffffff;
    --primary-light: #3b82f6;
    --accent: #22d3ee;
    --accent-light: #67e8f9;

    --dark-bg: #20376b;
    --surface: rgba(255,255,255,0.03);
    --surface-hover: rgba(255,255,255,0.05);

    --border: rgba(255,255,255,0.08);
    --border-strong: rgba(255,255,255,0.12);

    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    --shadow-card: 0 25px 60px rgba(0,0,0,0.35);
    
    --radius-md: 15px;
    --radius-lg: 25px;
    --radius-pill: 999px;

    --transition: 0.35s ease;
    --font-family: 'Sora', sans-serif;
}

/* ==========================================================================
   Base & Typographie
   ========================================================================== */
.web-service {
    font-family: var(--font-family);
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--dark-bg);
    overflow-x: hidden;
}

.web-service h1, .web-service h2, .web-service h3, .web-service h4 {
    color: var(--text-primary);
    margin-top: 0;
    line-height: 1.2;
}

.web-service p {
    color: var(--text-secondary);
}

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

/* ==========================================================================
   Boutons & Badges
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    color: var(--primary-white);
    font-weight: 600;
    transition: var(--transition);
    background: linear-gradient(135deg, var(--accent), var(--primary-light));
    box-shadow: 0 0 25px rgba(34,211,238,0.3);
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 40px rgba(34,211,238,0.45);
}

.btn-ghost {
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(15px);
    box-shadow: none;
}

.btn-ghost:hover {
    background: rgba(0,255,255,0.05);
    border-color: rgba(34,211,238,0.4);
    color: var(--accent-light);
    box-shadow: 0 0 20px rgba(34,211,238,0.2);
}



.pill {
    display: inline-block;
    padding: 8px 18px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    color: var(--accent-light);
    border-radius: var(--radius-pill);
    margin-bottom: 16px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.web-hero {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #0F2957 50%, var(--primary-light) 100%);
    position: relative;
}

.web-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.web-hero-copy h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--primary-white), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.web-hero-copy p {
    font-size: 1.125rem;
    margin-bottom: 32px;
    color: var(--text-secondary);
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-highlights {
    display: flex;
    gap: 32px;
    border-top: 1px solid var(--border);
    padding-top: 32px;
}

.highlight {
    display: flex;
    flex-direction: column;
}

.highlight .label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.highlight .value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Hero Card (Glassmorphism) */
.web-hero-card {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px);
    overflow: hidden;
}

.card-top {
    padding: 32px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
}

.card-top h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.gain-list {
    padding: 32px;
    display: grid;
    gap: 24px;
}

.gain-item {
    display: flex;
    flex-direction: column;
}

.gain-title {
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 4px;
}

.gain-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Système d'onglets (Tabs CSS-only)
   ========================================================================== */
.web-tabs {
    padding: 80px 0;
    background: var(--dark-bg);
}

.tabs input[type="radio"] {
    display: none;
}

.tab-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 70px;
}

.tab-controls label {
    padding: 16px 32px;
    border-radius: 60px;
    border: 1px solid var(--border);
    background: var(--surface);
    backdrop-filter: blur(15px);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.tab-controls label:hover {
    transform: translateY(-4px);
    border-color: rgba(34,211,238,0.4);
    background: rgba(0,255,255,0.05);
    color: var(--accent-light);
    box-shadow: 0 0 20px rgba(34,211,238,0.2), 0 0 45px rgba(34,211,238,0.12);
}

/* Activation des onglets */
#tab-platform:checked ~ .tab-controls label[for="tab-platform"],
#tab-process:checked ~ .tab-controls label[for="tab-process"],
#tab-commerce:checked ~ .tab-controls label[for="tab-commerce"] {
    background: linear-gradient(135deg, rgba(6,182,212,0.95), rgba(59,130,246,0.95));
    border-color: rgba(103,232,249,0.45);
    color: var(--primary-white);
    box-shadow: 0 0 30px rgba(34,211,238,0.4), 0 0 60px rgba(34,211,238,0.2);
}

#tab-platform:checked ~ .tab-controls label[for="tab-platform"]:hover,
#tab-process:checked ~ .tab-controls label[for="tab-process"]:hover,
#tab-commerce:checked ~ .tab-controls label[for="tab-commerce"]:hover {
    transform: translateY(-4px);
}

.tab-panels {
    position: relative;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

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

#tab-platform:checked ~ .tab-panels .panel-platform,
#tab-process:checked ~ .tab-panels .panel-process,
#tab-commerce:checked ~ .tab-panels .panel-commerce {
    display: block;
}

/* ==========================================================================
   Contenu des onglets (Panels)
   ========================================================================== */
.panel-header {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 64px auto;
}

.panel-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-white), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.panel-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.panel-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}

.panel-block h3 {
    font-size: 1.8rem;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--accent-light);
}

/* Blocs & Cartes en Glassmorphism */
.accent-block, .info-card, .panel-block-center {
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(18px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.accent-block {
    padding: 32px;
}

.accent-block h3 {
    border-bottom: none;
}

/* Grille de cartes info */
.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.info-card {
    padding: 24px;
    border-radius: var(--radius-md);
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34,211,238,0.4);
    box-shadow: 0 0 25px rgba(34,211,238,0.2);
}

.info-card h4 {
    font-size: 1.125rem;
    margin-bottom: 12px;
    color: var(--accent);
}

.info-card p {
    font-size: 0.875rem;
    margin: 0;
    color: var(--text-secondary);
}

/* Listes */
.checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
}

.checklist li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.deliverable {
    background: rgba(255,255,255,0.02);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-strong);
}

.deliverable p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-primary);
}

/* Étapes ordonnées */
.steps {
    list-style-type: decimal;
    padding-left: 20px;
}

.steps li {
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

.panel-row-center {
    display: flex;
    justify-content: center;
}

.panel-block-center {
    width: 100%;
    max-width: 700px;
    padding: 40px;
}

/* ==========================================================================
   Responsive (Mobile)
   ========================================================================== */
@media (max-width: 992px) {
    .web-hero-grid, 
    .panel-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-highlights {
        flex-direction: column;
        gap: 16px;
    }

    .web-hero-copy h1 {
        font-size: 2.8rem;
    }

    .panel-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .web-hero-copy h1 {
        font-size: 2.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .tab-controls label {
        width: 100%;
        text-align: center;
    }
}