/**
 * 4xPro — CSS public
 * Design indépendant de Silva (backoffice)
 */

/* ===========================
   Variables
   =========================== */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary: #0891b2;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --success: #10b981;
    --dark: #0f172a;
    --dark-soft: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --white: #ffffff;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-family-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

/* ===========================
   Base
   =========================== */

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

body {
    font-family: var(--font-family);
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ===========================
   Navbar
   =========================== */

#mainNav {
    padding: 1rem 0;
    transition: var(--transition);
    background: transparent;
}

#mainNav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.brand-4x {
    color: var(--primary);
    font-weight: 800;
}

.brand-pro {
    color: var(--dark);
    font-weight: 700;
}

.brand-dot {
    color: var(--gray);
    font-weight: 500;
}

#mainNav.scrolled .brand-4x {
    color: var(--primary);
}

#mainNav .nav-link {
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
}

#mainNav .nav-link:hover {
    color: var(--primary);
}

.btn-nav-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-weight: 600;
    padding: calc(0.5rem - 2px) 1.5rem;
    transition: var(--transition);
}

.btn-nav-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-1px);
}

/* ===========================
   Feature pages (processus, produits, etc.)
   =========================== */

.hero-badge-feature {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.85rem 2.5rem;
    border-radius: 50px;
    letter-spacing: 0.02em;
}

.feature-hero-visual {
    width: 200px;
    height: 200px;
    border-radius: 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.25);
}

.feature-hero-icon i {
    font-size: 5rem;
    color: var(--white);
}

.btn-cta {
    background: var(--primary);
    color: var(--white) !important;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    transition: var(--transition);
}

.btn-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

/* ===========================
   Hero
   =========================== */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--light) 0%, #dbeafe 50%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    background: var(--white);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dark);
    box-shadow: var(--shadow);
}

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

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-hero-primary {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.85rem 2.5rem;
    transition: var(--transition);
}

.btn-hero-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
}

.btn-hero-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.85rem 2.5rem;
    transition: var(--transition);
}

.btn-hero-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* ===========================
   Hero Visual (cycle 4 modules)
   =========================== */

.hero-visual {
    width: 340px;
    height: 340px;
}

.hero-cycle {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: 1fr auto 1fr;
    gap: 0.75rem;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-items: center;
}

.hero-cycle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    width: 120px;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.hero-cycle-item:hover {
    transform: scale(1.08);
}

.hero-cycle-item i {
    font-size: 1.8rem;
}

.hero-cycle-item span {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--dark);
}

.hero-cycle-processus i { color: var(--primary); }
.hero-cycle-produits i { color: var(--success); }
.hero-cycle-problemes i { color: var(--accent); }
.hero-cycle-projets i { color: var(--secondary); }

.hero-cycle-arrow {
    color: var(--primary-light);
    font-size: 2rem;
}

.hero-cycle-arrow-animated {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0 -0.4rem;
}

.hero-cycle-arrow-up .hero-cycle-arrow-animated,
.hero-cycle-arrow-up,
.hero-cycle-arrow-down {
    flex-direction: column;
    margin: -0.3rem 0;
    gap: 0;
}

.hero-cycle-arrow-animated span {
    opacity: 0.2;
    animation: chevronPulse 1.5s ease-in-out infinite;
    line-height: 1;
}

.hero-cycle-arrow-animated .chevron-1 {
    animation-delay: 0s;
}

.hero-cycle-arrow-animated .chevron-2 {
    animation-delay: 0.3s;
}

.hero-cycle-arrow-animated .chevron-3 {
    animation-delay: 0.6s;
}

@keyframes chevronPulse {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.8; }
}

.hero-cycle-center-cell {
    font-size: 1.2rem;
    background: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    white-space: nowrap;
}

/* ===========================
   Sections (common)
   =========================== */

.section {
    padding: 5rem 0;
}

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

.section-problem {
    background: linear-gradient(135deg, #4a1520 0%, #2d1117 60%, #1a0a0a 100%);
    color: var(--white);
}

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

.section-gradient {
    background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

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

.section-dark .section-subtitle {
    color: #94a3b8;
}

/* ===========================
   Pricing
   =========================== */

/* Toggle mensuel/annuel */
.pricing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.pricing-toggle-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
}

.pricing-toggle-label.active {
    color: var(--dark);
}

.pricing-switch {
    position: relative;
    width: 50px;
    height: 28px;
    cursor: pointer;
}

.pricing-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.pricing-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gray-light);
    border-radius: 28px;
    transition: var(--transition);
}

.pricing-slider::before {
    content: '';
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: var(--white);
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.pricing-switch input:checked + .pricing-slider {
    background: var(--primary);
}

.pricing-switch input:checked + .pricing-slider::before {
    transform: translateX(22px);
}

.pricing-badge-annual {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
    background: var(--success);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
}

/* Cards */
.pricing-card {
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card-featured {
    border-color: var(--primary);
    position: relative;
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.15);
}

.pricing-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 1.25rem;
    border-radius: 50px;
    white-space: nowrap;
}

.pricing-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.25rem;
    min-height: 2rem;
}

.pricing-description {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: .5rem;
    min-height: 1.5rem;
}

.pricing-price {
    margin-bottom: .5rem;
    min-height: 3rem;
}

.pricing-price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.4rem;
}

.pricing-price-right {
    margin-left: auto;
}

.pricing-striked {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray);
    text-decoration: line-through;
}

.pricing-extra {
    font-size: 1rem;
    font-weight: 600;
    color: #dc2626;
}

.pricing-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
}

.pricing-period {
    font-size: 0.95rem;
    color: var(--gray);
    margin-left: 0.25rem;
}

/* Slider */
.pricing-slider-container {
    margin-bottom: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--light);
    border: 1px solid var(--gray);
    border-radius: var(--radius);
}

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

.pricing-range {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--gray-light);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}

.pricing-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
    transition: var(--transition);
}

.pricing-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.pricing-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
}

.pricing-slider-info {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

/* Info block (carte gratuit, en face du slider) */
.pricing-info-block {
    margin-bottom: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--light);
    border: 1px solid var(--gray);
    border-radius: var(--radius);
}

.pricing-info-block .pricing-info-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    display: block;
}

.pricing-info-block .pricing-info-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.pricing-info-block i {
    font-size: 1.4rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.pricing-info-block p {
    margin-bottom: 0;
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.6;
}

/* Features list */
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-feature-disabled {
    color: var(--gray) !important;
    opacity: 0.5;
}

/* Buttons */
.btn-pricing-primary {
    margin-top: auto;
    display: block;
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem;
    transition: var(--transition);
    text-align: center;
}

.btn-pricing-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-pricing-outline {
    margin-top: auto;
    display: block;
    width: 100%;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem;
    transition: var(--transition);
    text-align: center;
}

.btn-pricing-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.pricing-hint {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* Discount cards */
.discount-card {
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    transition: var(--transition);
}

.discount-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.discount-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.discount-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray);
}

/* ===========================
   Section Problème
   =========================== */

.problem-card {
    background: var(--dark-soft);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
}

.problem-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
}

.problem-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.4rem;
    color: var(--accent);
}

.problem-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.problem-card p {
    color: #94a3b8;
    margin-bottom: 0;
    font-size: 0.95rem;
    text-align: justify;
}

/* ===========================
   Section Cycle (fil narratif)
   =========================== */

.cycle-text {
    font-size: 1.15rem;
    color: var(--gray);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.cycle-text strong {
    color: var(--dark);
}

.cycle-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
}

.cycle-step {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.cycle-step:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.cycle-step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

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

.cycle-step p {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0;
}

.cycle-arrow {
    position: absolute;
    top: 50%;
    right: -1.25rem;
    transform: translateY(-50%);
    color: var(--primary-light);
    font-size: 1.5rem;
    z-index: 1;
}

.cycle-step:last-child .cycle-arrow {
    display: none;
}

a.cycle-step {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

a.cycle-step h4,
a.cycle-step p,
a.cycle-step div {
    pointer-events: none;
}

/* ===========================
   Encart ISO (sous le cycle)
   =========================== */

.cycle-iso-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    max-width: 750px;
    text-align: center;
}

.cycle-iso-card i {
    font-size: 2.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.cycle-iso-card p {
    margin-bottom: 0;
    font-size: 0.92rem;
    color: var(--gray);
    line-height: 1.6;
}

.cycle-iso-card p strong {
    color: var(--dark);
}

/* ===========================
   Section Features
   =========================== */

.feature-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
}

.feature-card h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0;
}

/* ===========================
   Section Agent IA
   =========================== */

.ia-section {
    background: linear-gradient(135deg, var(--dark) 0%, #1a1a2e 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

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

.ia-text {
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.ia-argument {
    text-align: center;
    padding: 2rem 1.5rem;
}

.ia-argument-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(96, 165, 250, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--primary-light);
}

.ia-argument h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.ia-argument p {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 0;
}

/* ===========================
   Section Comment ça marche
   =========================== */

.step-card {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    color: var(--primary);
    font-weight: 800;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.step-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0;
}

/* ===========================
   Section CTA finale
   =========================== */

.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 5rem 0;
}

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

.cta-hint {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
}

.btn-cta-white {
    background: var(--white);
    color: var(--primary);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.15rem;
    padding: 0.85rem 2.5rem;
    transition: var(--transition);
}

.btn-cta-white:hover {
    background: var(--light);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ===========================
   Footer
   =========================== */

.site-footer {
    background: var(--dark);
    color: #cbd5e1;
    padding: 4rem 0 2rem;
}

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

.site-footer .brand-4x {
    color: var(--primary-light);
}

.site-footer .brand-pro {
    color: var(--white);
}

.site-footer .brand-dot {
    color: #94a3b8;
}

.site-footer .text-muted {
    color: #cbd5e1 !important;
}

.footer-heading {
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.footer-copyright {
    font-size: 0.85rem;
    color: #64748b;
}

.footer-copyright a {
    color: #94a3b8;
}

.footer-copyright a:hover {
    color: var(--white);
}

/* ===========================
   Legal pages (mentions, cgu, privacy)
   =========================== */

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-light);
}

.legal-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content p,
.legal-content li {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

.legal-content ul {
    padding-left: 1.5rem;
}

.legal-content a {
    color: var(--primary);
}

.legal-content .info-box {
    background: var(--light);
    border-left: 4px solid var(--primary);
    padding: 1rem 1.25rem;
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}

.legal-content .info-box p {
    margin: 0;
    color: var(--dark);
}

.legal-content table {
    width: 100%;
    font-size: 0.9rem;
    margin: 1rem 0;
}

.legal-content table th {
    background: var(--light);
    font-weight: 600;
    color: var(--dark);
}

.legal-content table th,
.legal-content table td {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--gray-light);
    vertical-align: top;
}

/* ===========================
   Contact card
   =========================== */

.contact-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-light);
}

.contact-card .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.35rem;
}

.contact-card .form-control,
.contact-card .form-select {
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.contact-card .form-control:focus,
.contact-card .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ===========================
   Auth pages (login / register)
   =========================== */

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--dark) 0%, #1a1a2e 50%, var(--dark) 100%);
}

.auth-container {
    width: 100%;
    max-width: 460px;
    margin: auto;
    padding: 1rem;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-title h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.auth-title p {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0;
}

.auth-card .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.2rem;
}

.auth-card .mb-3 {
    margin-bottom: 0.75rem !important;
}

.auth-card .form-control {
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.auth-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.auth-card .btn-primary {
    background: var(--primary);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.75rem;
    transition: var(--transition);
    width: 100%;
}

.auth-card .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

.auth-card .form-check-label {
    font-size: 0.85rem;
    color: var(--gray);
}

.auth-card .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.auth-card a {
    color: var(--primary);
    font-weight: 600;
}

.auth-card a:hover {
    color: var(--primary-dark);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--gray);
}

/* ===========================
   Launch banner (page Tarifs)
   =========================== */

.launch-banner {
    position: relative;
    background: linear-gradient(135deg, #1e3a5f 0%, #1d4ed8 50%, #1e3a5f 100%);
    border-radius: 16px;
    padding: 1.25rem 2rem;
    overflow: hidden;
    margin-bottom: 0;
    box-shadow:
        0 15px 50px rgba(37, 99, 235, 0.25),
        0 0 60px rgba(37, 99, 235, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.launch-banner-glow {
    position: absolute;
    top: -80%;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.3) 0%, rgba(37, 99, 235, 0.1) 40%, transparent 70%);
    pointer-events: none;
    animation: launchPulse 4s ease-in-out infinite;
}

@keyframes launchPulse {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.2); }
}

.launch-banner-particles span {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    animation: launchFloat 6s ease-in-out infinite;
}

.launch-banner-particles span:nth-child(1) { top: 15%; left: 5%; animation-delay: 0s; animation-duration: 5s; }
.launch-banner-particles span:nth-child(2) { top: 25%; left: 92%; animation-delay: 1.2s; animation-duration: 7s; width: 5px; height: 5px; }
.launch-banner-particles span:nth-child(3) { top: 70%; left: 10%; animation-delay: 2.4s; animation-duration: 6s; }
.launch-banner-particles span:nth-child(4) { top: 80%; left: 80%; animation-delay: 0.6s; animation-duration: 8s; width: 4px; height: 4px; }
.launch-banner-particles span:nth-child(5) { top: 40%; left: 3%; animation-delay: 3.2s; animation-duration: 5.5s; width: 2px; height: 2px; }
.launch-banner-particles span:nth-child(6) { top: 10%; left: 60%; animation-delay: 1.8s; animation-duration: 6.5s; }
.launch-banner-particles span:nth-child(7) { top: 60%; left: 95%; animation-delay: 2.8s; animation-duration: 7.5s; width: 4px; height: 4px; }
.launch-banner-particles span:nth-child(8) { top: 85%; left: 40%; animation-delay: 0.4s; animation-duration: 5s; width: 2px; height: 2px; }

@keyframes launchFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.2; }
    50% { transform: translateY(-12px) scale(1.4); opacity: 0.7; }
}

.launch-banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.launch-banner-text {
    color: #ffffff;
    font-size: 1.05rem;
    line-height: 1.8;
}

.launch-banner-text strong {
    color: #bae6fd;
}

.launch-banner-deadline {
    display: inline-block;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 50px;
    padding: 0.2rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fbbf24;
    margin-left: 0.75rem;
    backdrop-filter: blur(6px);
}

@media (max-width: 768px) {
    .launch-banner {
        padding: 1rem 1.25rem;
    }

    .launch-banner-text {
        font-size: 0.92rem;
    }

    .launch-banner-deadline {
        display: block;
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

.table-tarifs {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table-tarifs thead th {
    background: var(--dark);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.85rem 1rem;
    text-align: center;
    border: none;
}

.table-tarifs tbody td {
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.92rem;
    color: var(--dark);
    border-bottom: 1px solid var(--gray-light);
}

.table-tarifs tbody tr:last-child td {
    border-bottom: none;
}

.table-tarifs tbody tr:hover {
    background: rgba(37, 99, 235, 0.04);
}

.launch-banner-tagline {
    text-align: center;
    font-size: 0.95rem;
    color: var(--gray);
    font-style: italic;
    margin-top: 0.5rem;
    margin-bottom: 3rem;
}

/* ===========================
   Module cards (page Modules)
   =========================== */

.module-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    height: 100%;
    border: 2px solid transparent;
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
    color: inherit;
}

.module-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.module-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.module-card p {
    font-size: 0.92rem;
    color: var(--gray);
    margin-bottom: 0;
}

.module-card-processus .module-card-icon { background: rgba(37, 99, 235, 0.1); color: var(--primary); }
.module-card-produits .module-card-icon { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.module-card-problemes .module-card-icon { background: rgba(245, 158, 11, 0.1); color: var(--accent); }
.module-card-projets .module-card-icon { background: rgba(8, 145, 178, 0.1); color: var(--secondary); }
.module-card-pestel .module-card-icon { background: rgba(37, 99, 235, 0.1); color: var(--primary); }
.module-card-swot .module-card-icon { background: rgba(245, 158, 11, 0.1); color: var(--accent); }
.module-card-ged .module-card-icon { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.module-card-kpi .module-card-icon { background: rgba(8, 145, 178, 0.1); color: var(--secondary); }

.module-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-top: 2rem;
}

.module-badge-ok {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.module-badge-dev {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.module-badge-soon {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
}

.module-card-processus:hover { border-color: var(--primary); }
.module-card-produits:hover { border-color: var(--success); }
.module-card-problemes:hover { border-color: var(--accent); }
.module-card-projets:hover { border-color: var(--secondary); }
.module-card-pestel:hover { border-color: var(--primary); }
.module-card-swot:hover { border-color: var(--accent); }
.module-card-ged:hover { border-color: var(--success); }
.module-card-kpi:hover { border-color: var(--secondary); }

/* ===========================
   Back to top
   =========================== */

#backToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        padding: 7rem 0 3rem;
        min-height: auto;
    }

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

    .cycle-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .cycle-arrow {
        display: none !important;
    }

    #mainNav {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .cycle-steps {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 3.5rem 0;
    }
}
