/* ===== CSS Custom Properties ===== */
:root {
    --primary-color: #005D8A;
    --primary-dark: #004466;
    --secondary-color: #00A0E6;
    --accent-color: #FF6B35;
    --accent-hover: #e55a2b;
    --success-color: #10B981;
    --success-light: #D1FAE5;
    --warning-color: #F59E0B;
    --warning-light: #FEF3C7;
    --danger-color: #EF4444;
    --danger-light: #FEE2E2;
    --info-color: #3B82F6;
    --info-light: #DBEAFE;
    --lowprice-color: #10B981;
    --lowprice-gradient: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --standard-color: #3B82F6;
    --standard-gradient: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    --flex-color: #F59E0B;
    --flex-gradient: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    --dark-color: #1E293B;
    --text-color: #334155;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --light-bg: #F8FAFC;
    --white: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-hero: linear-gradient(135deg, #005D8A 0%, #0077B3 50%, #00A0E6 100%);
    --gradient-dark: linear-gradient(135deg, #1E293B 0%, #334155 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.625rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background: var(--white);
}
h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.2;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 6px;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 24px;
    text-decoration: none;
    z-index: 10000;
    border-radius: var(--radius-md);
    font-weight: 600;
}
.skip-link:focus { top: 6px; color: var(--white); outline: 3px solid var(--warning-color); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
*:focus-visible { outline: 3px solid var(--secondary-color); outline-offset: 2px; }

/* Header */
.site-header { background: var(--gradient-hero); box-shadow: var(--shadow-lg); position: sticky; top: 0; z-index: 1000; }
.navbar { padding: var(--space-md) 0; }
.navbar-brand { font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; color: var(--white) !important; display: flex; align-items: center; gap: var(--space-sm); text-decoration: none; }
.navbar-brand img { border-radius: var(--radius-sm); height: 40px; }
.navbar-nav .nav-link { color: rgba(255,255,255,0.9) !important; font-weight: 500; padding: var(--space-sm) var(--space-md) !important; border-radius: var(--radius-sm); transition: all var(--transition-fast); }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { background: rgba(255,255,255,0.2); color: var(--white) !important; }
.navbar-toggler { border: none; color: var(--white); }

/* Hero */
.hero { background: var(--gradient-hero); color: var(--white); padding: var(--space-3xl) 0 var(--space-4xl); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E") repeat; z-index: 0; }
.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); color: var(--white); margin-bottom: var(--space-lg); }
.hero .lead { font-size: clamp(1.1rem, 2.5vw, 1.35rem); opacity: 0.95; margin-bottom: var(--space-xl); max-width: 650px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-bottom: var(--space-xl); }
.hero-badge { display: inline-flex; align-items: center; gap: var(--space-xs); background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-full); font-size: 0.9rem; font-weight: 500; }
.hero-badge i { color: var(--warning-color); }

/* Breadcrumb */
.breadcrumb-section { background: var(--light-bg); padding: var(--space-md) 0; border-bottom: 1px solid var(--border-color); }
.breadcrumb { margin: 0; padding: 0; background: transparent; font-size: 0.9rem; }
.breadcrumb-item a { color: var(--primary-color); text-decoration: none; }
.breadcrumb-item.active { color: var(--text-muted); }

/* Section Headers */
.section-header { text-align: center; margin-bottom: var(--space-3xl); }
.section-header h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: var(--space-md); }
.section-header p { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.section-badge { display: inline-block; background: var(--info-light); color: var(--info-color); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-full); font-size: 0.85rem; font-weight: 600; margin-bottom: var(--space-md); text-transform: uppercase; letter-spacing: 0.5px; }

/* Tarif Cards */
.tarif-section { padding: var(--space-4xl) 0; background: var(--light-bg); }
.tarif-card { background: var(--white); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md); transition: all var(--transition-base); height: 100%; display: flex; flex-direction: column; position: relative; }
.tarif-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.tarif-card.featured { border: 3px solid var(--standard-color); transform: scale(1.02); }
.tarif-card.featured:hover { transform: scale(1.02) translateY(-8px); }
.tarif-badge { position: absolute; top: -1px; right: 20px; background: var(--accent-color); color: var(--white); padding: var(--space-sm) var(--space-md); border-radius: 0 0 var(--radius-md) var(--radius-md); font-size: 0.85rem; font-weight: 700; text-transform: uppercase; z-index: 10; }
.tarif-header { padding: var(--space-xl) var(--space-lg); text-align: center; color: var(--white); }
.tarif-header.lowprice { background: var(--lowprice-gradient); }
.tarif-header.standard { background: var(--standard-gradient); }
.tarif-header.flex { background: var(--flex-gradient); }
.tarif-icon { width: 60px; height: 60px; background: rgba(255,255,255,0.2); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-md); font-size: 1.75rem; }
.tarif-header h3 { color: var(--white); font-size: 1.5rem; margin-bottom: var(--space-xs); }
.tarif-subtitle { opacity: 0.9; font-size: 0.95rem; }
.tarif-body { padding: var(--space-xl) var(--space-lg); flex: 1; display: flex; flex-direction: column; }
.tarif-price { text-align: center; margin-bottom: var(--space-lg); padding-bottom: var(--space-lg); border-bottom: 1px solid var(--border-color); }
.tarif-price .price-label { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; margin-bottom: var(--space-xs); }
.tarif-price .price-value { font-family: var(--font-heading); font-size: 3rem; font-weight: 700; line-height: 1; }
.tarif-price .price-value .currency { font-size: 0.5em; vertical-align: super; }
.tarif-price .price-value .cents { font-size: 0.5em; vertical-align: super; }
.tarif-price .price-range { font-size: 0.9rem; color: var(--text-muted); margin-top: var(--space-xs); }
.tarif-price.lowprice .price-value { color: var(--lowprice-color); }
.tarif-price.standard .price-value { color: var(--standard-color); }
.tarif-price.flex .price-value { color: var(--flex-color); }

/* Feature List */
.feature-list { list-style: none; padding: 0; margin: 0 0 var(--space-xl); flex: 1; }
.feature-list li { display: flex; align-items: flex-start; gap: var(--space-sm); padding: var(--space-sm) 0; font-size: 0.95rem; border-bottom: 1px solid var(--border-color); }
.feature-list li:last-child { border-bottom: none; }
.feature-icon { width: 22px; height: 22px; min-width: 22px; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; margin-top: 2px; }
.feature-icon.success { background: var(--success-light); color: var(--success-color); }
.feature-icon.warning { background: var(--warning-light); color: var(--warning-color); }
.feature-icon.danger { background: var(--danger-light); color: var(--danger-color); }
.feature-icon.info { background: var(--info-light); color: var(--info-color); }

/* Ideal For */
.ideal-for { background: var(--light-bg); border-radius: var(--radius-md); padding: var(--space-md); margin-bottom: var(--space-lg); }
.ideal-for-title { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; margin-bottom: var(--space-sm); }
.ideal-for-text { font-size: 0.9rem; color: var(--dark-color); margin: 0; }
.tarif-cta { margin-top: auto; }

/* Buttons */
.btn { font-family: var(--font-body); font-weight: 600; padding: var(--space-md) var(--space-lg); border-radius: var(--radius-md); border: none; transition: all var(--transition-fast); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm); cursor: pointer; }
.btn-lowprice { background: var(--lowprice-gradient); color: var(--white); box-shadow: 0 4px 14px rgba(16,185,129,0.3); }
.btn-lowprice:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(16,185,129,0.4); color: var(--white); }
.btn-standard { background: var(--standard-gradient); color: var(--white); box-shadow: 0 4px 14px rgba(59,130,246,0.3); }
.btn-standard:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(59,130,246,0.4); color: var(--white); }
.btn-flex { background: var(--flex-gradient); color: var(--white); box-shadow: 0 4px 14px rgba(245,158,11,0.3); }
.btn-flex:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245,158,11,0.4); color: var(--white); }
.btn-primary { background: linear-gradient(135deg, var(--accent-color) 0%, #FF8A65 100%); color: var(--white); box-shadow: var(--shadow-md); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--white); }
.btn-outline { background: transparent; border: 2px solid var(--primary-color); color: var(--primary-color); }
.btn-outline:hover { background: var(--primary-color); color: var(--white); }
.btn-lg { padding: var(--space-md) var(--space-xl); font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn.loading { pointer-events: none; opacity: 0.8; }

/* Comparison Table */
.comparison-section { padding: var(--space-4xl) 0; background: var(--white); }
.comparison-table-wrapper { background: var(--white); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.comparison-table { width: 100%; border-collapse: collapse; margin: 0; }
.comparison-table th { padding: var(--space-lg); text-align: center; font-weight: 700; color: var(--white); font-size: 1.1rem; }
.comparison-table th:first-child { text-align: left; background: var(--gradient-dark); width: 35%; }
.comparison-table th.lowprice { background: var(--lowprice-gradient); }
.comparison-table th.standard { background: var(--standard-gradient); }
.comparison-table th.flex { background: var(--flex-gradient); }
.comparison-table td { padding: var(--space-md) var(--space-lg); text-align: center; border-bottom: 1px solid var(--border-color); vertical-align: middle; }
.comparison-table td:first-child { text-align: left; font-weight: 500; color: var(--dark-color); }
.comparison-table tbody tr:hover { background: var(--light-bg); }
.comparison-table tr.category-row td { background: var(--light-bg); font-weight: 700; color: var(--primary-color); font-size: 0.9rem; text-transform: uppercase; padding: var(--space-sm) var(--space-lg); }
.table-check { color: var(--success-color); font-size: 1.25rem; }
.table-cross { color: var(--danger-color); font-size: 1.25rem; }
.table-text { font-size: 0.9rem; color: var(--text-color); }
.table-highlight { font-weight: 600; color: var(--dark-color); }
.price-cell { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; }
.price-cell.lowprice { color: var(--lowprice-color); }
.price-cell.standard { color: var(--standard-color); }
.price-cell.flex { color: var(--flex-color); }

/* Price Matrix */
.price-matrix-section { padding: var(--space-4xl) 0; background: var(--light-bg); }
.price-matrix-card { background: var(--white); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md); }
.price-matrix-header { background: var(--gradient-primary); color: var(--white); padding: var(--space-lg); text-align: center; }
.price-matrix-header h3 { color: var(--white); margin: 0; font-size: 1.25rem; }
.price-matrix-table { width: 100%; border-collapse: collapse; }
.price-matrix-table th, .price-matrix-table td { padding: var(--space-md); text-align: center; border-bottom: 1px solid var(--border-color); }
.price-matrix-table th { background: var(--light-bg); font-weight: 600; color: var(--dark-color); font-size: 0.9rem; }
.price-matrix-table th:first-child, .price-matrix-table td:first-child { text-align: left; font-weight: 600; }

/* Decision Cards */
.decision-section { padding: var(--space-4xl) 0; background: var(--white); }
.decision-card { background: var(--white); border-radius: var(--radius-xl); padding: var(--space-xl); box-shadow: var(--shadow-md); height: 100%; border-left: 4px solid transparent; transition: all var(--transition-base); }
.decision-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.decision-card.lowprice { border-left-color: var(--lowprice-color); }
.decision-card.standard { border-left-color: var(--standard-color); }
.decision-card.flex { border-left-color: var(--flex-color); }
.decision-icon { width: 50px; height: 50px; border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: var(--space-md); }
.decision-card.lowprice .decision-icon { background: var(--success-light); color: var(--lowprice-color); }
.decision-card.standard .decision-icon { background: var(--info-light); color: var(--standard-color); }
.decision-card.flex .decision-icon { background: var(--warning-light); color: var(--flex-color); }
.decision-card h4 { font-size: 1.25rem; margin-bottom: var(--space-sm); }
.decision-card .subtitle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: var(--space-md); }
.decision-criteria { list-style: none; padding: 0; margin: 0; }
.decision-criteria li { display: flex; align-items: flex-start; gap: var(--space-sm); padding: var(--space-xs) 0; font-size: 0.9rem; }
.decision-criteria li i { color: var(--success-color); margin-top: 3px; }

/* Insider Section */
.insider-section { padding: var(--space-4xl) 0; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: var(--white); }
.insider-section .section-header h2 { color: var(--white); }
.insider-section .section-header p { color: rgba(255,255,255,0.9); }
.insider-card { background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border-radius: var(--radius-xl); padding: var(--space-xl); height: 100%; border: 1px solid rgba(255,255,255,0.2); }
.insider-card h4 { color: var(--warning-color); margin-bottom: var(--space-md); display: flex; align-items: center; gap: var(--space-sm); }
.insider-card p { color: rgba(255,255,255,0.95); margin-bottom: var(--space-sm); font-size: 0.95rem; }
.insider-card strong { color: var(--white); }

/* FAQ */
.faq-section { padding: var(--space-4xl) 0; background: var(--light-bg); }
.accordion-item { border: none; margin-bottom: var(--space-md); border-radius: var(--radius-lg) !important; overflow: hidden; box-shadow: var(--shadow-sm); }
.accordion-button { padding: var(--space-lg); font-weight: 600; color: var(--dark-color); background: var(--white); }
.accordion-button:not(.collapsed) { background: var(--gradient-primary); color: var(--white); box-shadow: none; }
.accordion-button:focus { box-shadow: none; }
.accordion-button:not(.collapsed)::after { filter: brightness(0) invert(1); }
.accordion-body { padding: var(--space-lg); background: var(--white); line-height: 1.7; }

/* CTA Section */
.cta-section { padding: var(--space-4xl) 0; background: var(--gradient-hero); color: var(--white); text-align: center; }
.cta-section h2 { color: var(--white); font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: var(--space-md); }
.cta-section p { font-size: 1.1rem; opacity: 0.95; margin-bottom: var(--space-xl); max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-md); }
.cta-section .btn-primary { background: var(--white); color: var(--primary-color); }
.cta-section .btn-primary:hover { background: var(--warning-color); color: var(--dark-color); }
.cta-section .btn-outline { border-color: var(--white); color: var(--white); }
.cta-section .btn-outline:hover { background: var(--white); color: var(--primary-color); }

/* Footer */
.site-footer { background: var(--gradient-dark); color: var(--white); padding: var(--space-3xl) 0 var(--space-lg); }
.footer-brand { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-md); }
.footer-brand img { height: 40px; border-radius: var(--radius-sm); }
.footer-brand span { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; }
.footer-text { color: rgba(255,255,255,0.7); font-size: 0.9rem; max-width: 300px; }
.footer-title { font-family: var(--font-heading); font-weight: 600; color: var(--warning-color); margin-bottom: var(--space-md); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: var(--space-sm); }
.footer-links a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: var(--space-2xl); padding-top: var(--space-lg); display: flex; flex-wrap: wrap; justify-content: space-between; font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.footer-legal a { color: rgba(255,255,255,0.6); text-decoration: none; margin-left: var(--space-md); }

/* Back to Top */
.back-to-top { position: fixed; bottom: var(--space-xl); right: var(--space-xl); background: var(--accent-color); color: var(--white); border: none; border-radius: var(--radius-full); width: 56px; height: 56px; display: none; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); z-index: 1000; cursor: pointer; font-size: 1.25rem; }
.back-to-top:hover { background: var(--accent-hover); transform: translateY(-4px); }
.back-to-top.visible { display: flex; }

/* Responsive */
@media (max-width: 991px) {
    .tarif-card.featured { transform: scale(1); }
    .tarif-card.featured:hover { transform: translateY(-8px); }
    .comparison-table { font-size: 0.9rem; }
}
@media (max-width: 767px) {
    .hero { padding: var(--space-2xl) 0 var(--space-3xl); }
    .hero h1 { font-size: 2rem; }
    .tarif-section, .comparison-section, .price-matrix-section, .decision-section, .insider-section, .faq-section, .cta-section { padding: var(--space-2xl) 0; }
    .comparison-table-wrapper { overflow-x: auto; }
    .comparison-table { min-width: 600px; font-size: 0.85rem; }
    .comparison-table td:first-child { position: sticky; left: 0; background: var(--white); z-index: 5; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .cta-buttons .btn { width: 100%; max-width: 300px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .back-to-top { width: 48px; height: 48px; bottom: var(--space-md); right: var(--space-md); }
}
@media (max-width: 375px) {
    .hero h1 { font-size: 1.75rem; }
    .tarif-price .price-value { font-size: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}