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

:root {
    --primary-color: #2563EB;
    --primary-dark: #1E40AF;
    --primary-light: #3B82F6;
    --secondary-color: #0EA5E9;
    --accent-orange: #F97316;
    --accent-purple: #8B5CF6;
    --text-dark: #0F172A;
    --text-medium: #475569;
    --text-light: #64748B;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #E2E8F0;
    --border-color: #CBD5E1;
    --border-light: #E2E8F0;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-alert-tab {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 0 10px 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 3px 3px 12px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.floating-alert-tab:hover {
    width: 50px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.floating-alert-tab i {
    color: white;
    font-size: 1.4rem;
    animation: alertPulse 2s ease-in-out infinite;
}

@keyframes alertPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.floating-alert-popup {
    position: fixed;
    left: 55px;
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    width: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-alert-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
}

.alert-popup-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 12px 12px 0 0;
    color: #7c2d12;
    font-weight: 700;
    font-size: 0.95rem;
}

.alert-popup-header i {
    color: #dc2626;
    font-size: 1.1rem;
}

.alert-popup-close {
    margin-left: auto;
    background: none;
    border: none;
    color: #7c2d12;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.alert-popup-close:hover {
    opacity: 1;
}

.alert-popup-content {
    padding: 16px;
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.alert-popup-content a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: underline;
}

.alert-popup-content a:hover {
    color: #1d4ed8;
}

@media (max-width: 768px) {
    .floating-alert-tab {
        top: auto;
        bottom: 80px;
        width: 40px;
        height: 40px;
    }
    
    .floating-alert-popup {
        left: 10px;
        right: 10px;
        top: auto;
        bottom: 130px;
        width: auto;
        transform: scale(0.9);
    }
    
    .floating-alert-popup.active {
        transform: scale(1);
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-secondary);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.navbar {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-light);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    max-width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    flex: 1;
    justify-content: space-between;
    align-items: center;
    margin-left: 2rem;
}

.nav-main {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.nav-user {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.welcome-message {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    padding: 0.35rem 0.65rem;
    background: linear-gradient(135deg, #EBF4FF 0%, #E0F2FE 100%);
    border-radius: 6px;
    border: 1px solid #DBEAFE;
    white-space: nowrap;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.welcome-message i {
    color: var(--primary-color);
    font-size: 1rem;
}

.nav-links a {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-base);
}

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

/* Navigation simple buttons */
.btn-nav-simple {
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    background: #f1f5f9;
    color: var(--text-dark) !important;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.btn-nav-simple:hover {
    background: #e2e8f0;
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-espace-pro {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.btn-espace-pro:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
}

.btn-hamburger {
    background: #f1f5f9;
    color: #475569;
    padding: 0.5rem 0.75rem;
}

.btn-hamburger:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.nav-user .nav-dropdown .nav-dropdown-content {
    left: auto;
    right: 0;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1000;
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.nav-dropdown:hover .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-content a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-dark) !important;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.nav-dropdown-content a:hover {
    background: #f1f5f9;
    color: var(--primary-color) !important;
}

.nav-dropdown-content a i {
    width: 18px;
    text-align: center;
    color: #64748b;
}

.nav-dropdown-content a:hover i {
    color: var(--primary-color);
}

.panier-link {
    position: relative;
}

.panier-badge-dropdown {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.panier-badge-dropdown.has-items {
    display: flex;
}

.dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0.5rem 0;
}

.dropdown-logout {
    color: #dc2626 !important;
}

.dropdown-logout:hover {
    background: #fef2f2 !important;
}

.dropdown-logout i {
    color: #dc2626 !important;
}

.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 100%);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.8) 0%, rgba(30, 64, 175, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-content {
    text-align: center;
    color: white;
    z-index: 10;
    padding: 2rem;
    max-width: 800px;
}

.slide-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.slide-content p {
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.slide-overlay-dark {
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.9) 0%, rgba(30, 58, 95, 0.85) 100%);
}

.slide-content-cta {
    max-width: 900px;
}

.slide-content-cta h1 {
    font-size: 3rem;
    color: #60a5fa;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.slide-content-cta .slide-subtitle {
    font-size: 1.4rem;
    color: white;
    opacity: 0.95;
    margin-bottom: 2.5rem;
}

/* P6 Slide Styles */
.slide-overlay-p6 {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.92) 0%, rgba(59, 130, 246, 0.85) 100%);
}

.slide-content-p6 {
    max-width: 900px;
    text-align: center;
    padding-bottom: 2rem;
}

.p6-badge {
    display: inline-block;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.slide-content-p6 h1 {
    font-size: 2.2rem;
    color: white;
    margin-bottom: 0.3rem;
}

.p6-intro {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.p6-highlights {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.p6-stat {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.6rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    min-width: 100px;
}

.p6-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fbbf24;
    line-height: 1.1;
}

.p6-label {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 2px;
}

.p6-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.p6-points li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.95);
}

.p6-points li i {
    color: #22c55e;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .slide-content-p6 h1 {
        font-size: 1.8rem;
    }
    
    .p6-highlights {
        gap: 1rem;
    }
    
    .p6-stat {
        padding: 0.8rem 1rem;
        min-width: 100px;
    }
    
    .p6-number {
        font-size: 1.5rem;
    }
    
    .p6-points li {
        font-size: 0.85rem;
    }
}

.btn-p6-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 0.8rem;
    padding: 10px 22px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
    transition: all 0.3s ease;
}

.btn-p6-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.btn-froid-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 0.8rem;
    padding: 10px 22px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

.btn-froid-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

/* Hide search box on P6 slide */
.slide-p6.active ~ .search-box-hero,
.slide-cta.active ~ .search-box-hero {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* P6 CEE Page Styles */
.p6-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 4rem 0;
    text-align: center;
    color: white;
}

.p6-hero-badge {
    display: inline-block;
    background: #22c55e;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.p6-hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.p6-hero-subtitle {
    font-size: 2rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.p6-hero-desc {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    opacity: 0.9;
}

.p6-stats-section {
    background: #f8fafc;
    padding: 3rem 0;
    margin-top: -2rem;
}

.p6-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.p6-stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.p6-stat-card:hover {
    transform: translateY(-5px);
}

.p6-stat-card.highlight {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
}

.p6-stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #3b82f6;
}

.p6-stat-card.highlight .p6-stat-icon {
    color: #fbbf24;
}

.p6-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.p6-stat-label {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.3rem;
}

.p6-stat-detail {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

.p6-content-section {
    padding: 4rem 0;
}

.p6-content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 968px) {
    .p6-content-grid {
        grid-template-columns: 1fr;
    }
}

.p6-section-block {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.p6-section-block h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.p6-section-block h2 i {
    color: #3b82f6;
}

.p6-comparison-table {
    overflow-x: auto;
}

.p6-comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.p6-comparison-table th,
.p6-comparison-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.p6-comparison-table th {
    background: #f1f5f9;
    font-weight: 600;
    color: #475569;
}

.p6-comparison-table .positive {
    color: #16a34a;
    font-weight: 600;
}

.p6-changes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.p6-change-card {
    background: #f8fafc;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    border-left: 4px solid #3b82f6;
}

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

.p6-change-icon {
    width: 32px;
    height: 32px;
    background: #3b82f6;
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.p6-change-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.p6-change-card ul {
    margin: 0;
    padding-left: 1.1rem;
}

.p6-change-card li {
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.4;
}

.p6-sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.p6-sector-card {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.p6-sector-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.p6-sector-card i {
    font-size: 2rem;
    color: #3b82f6;
    margin-bottom: 0.8rem;
}

.p6-sector-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.p6-sector-card p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

.p6-fiches-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.p6-fiches-list li {
    padding: 10px 15px;
    background: #f1f5f9;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.p6-programs-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.p6-program-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f0fdf4;
    border-radius: 8px;
    border-left: 3px solid #22c55e;
}

.p6-program-item i {
    color: #22c55e;
}

.p6-sidebar-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.p6-sidebar-card.highlight {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
}

.p6-sidebar-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #1e3a8a;
}

.p6-sidebar-card.highlight h3 {
    color: white;
}

.p6-sidebar-detail {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.5rem;
}

.p6-sidebar-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 1rem;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.p6-sidebar-link:hover {
    text-decoration: underline;
}

.p6-sidebar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
    padding: 12px 20px;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.p6-sidebar-btn:hover {
    background: rgba(255,255,255,0.3);
}

.p6-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
}

.p6-timeline li {
    display: flex;
    flex-direction: column;
    padding: 10px 0 10px 20px;
    border-left: 2px solid #e2e8f0;
    position: relative;
}

.p6-timeline li::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 14px;
    width: 10px;
    height: 10px;
    background: #e2e8f0;
    border-radius: 50%;
}

.p6-timeline li.active::before {
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

.p6-timeline-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: #3b82f6;
}

.p6-timeline-event {
    font-size: 0.9rem;
    color: #475569;
}

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

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

.p6-links-list a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.9rem;
}

.p6-links-list a:hover {
    text-decoration: underline;
}

/* P6 Sidebar - À Retenir */
.p6-sidebar-card.remember {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left: 4px solid #f59e0b;
}

.p6-sidebar-card.remember h3 {
    color: #92400e;
}

.p6-sidebar-card.remember h3 i {
    color: #f59e0b;
}

.p6-remember-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.p6-remember-list li {
    padding: 0.6rem 0;
    border-bottom: 1px dashed rgba(146, 64, 14, 0.2);
    font-size: 0.9rem;
    color: #78350f;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.p6-remember-list li i {
    color: #d97706;
    margin-top: 2px;
    flex-shrink: 0;
}

.p6-remember-list li:last-child {
    border-bottom: none;
}

.p6-remember-list li strong {
    color: #92400e;
    font-size: 1.1rem;
}

/* P6 Sidebar - FAQ */
.p6-sidebar-card.faq {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid #3b82f6;
}

.p6-sidebar-card.faq h3 {
    color: #1e40af;
}

.p6-sidebar-card.faq h3 i {
    color: #3b82f6;
}

.p6-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.p6-faq-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.p6-faq-item summary {
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    color: #1e40af;
    list-style: none;
    position: relative;
    padding-right: 2rem;
}

.p6-faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    font-weight: 400;
    color: #3b82f6;
}

.p6-faq-item[open] summary::after {
    content: '−';
}

.p6-faq-item summary::-webkit-details-marker {
    display: none;
}

.p6-faq-item summary:focus {
    outline: none;
}

.p6-faq-item p {
    padding: 0 1rem 0.75rem;
    margin: 0;
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.5;
}

/* P6 Sidebar - Secteurs Ciblés */
.p6-sidebar-card.sectors {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-left: 4px solid #10b981;
}

.p6-sidebar-card.sectors h3 {
    color: #065f46;
}

.p6-sidebar-card.sectors h3 i {
    color: #10b981;
}

.p6-sectors-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.p6-sector-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    background: white;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #065f46;
}

.p6-sector-mini i {
    color: #10b981;
    font-size: 1rem;
}

/* P6 Fullwidth Section */
.p6-fullwidth-section {
    padding: 3rem 0;
    background: #f8fafc;
}

.p6-fullwidth-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.p6-fullwidth-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.p6-fullwidth-card h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.p6-fullwidth-card h2 i {
    color: #3b82f6;
}

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

/* P6 FAQ Section (bas de page) */
.p6-faq-section {
    padding: 3rem 0 4rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.p6-faq-section h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 2rem;
    text-align: center;
}

.p6-faq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .p6-faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .p6-faq-grid {
        grid-template-columns: 1fr;
    }
}

.p6-faq-item-large {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.p6-faq-item-large summary {
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e3a8a;
    list-style: none;
    position: relative;
    padding-right: 2.5rem;
}

.p6-faq-item-large summary::after {
    content: '+';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    font-weight: 400;
    color: #3b82f6;
}

.p6-faq-item-large[open] summary::after {
    content: '−';
}

.p6-faq-item-large summary::-webkit-details-marker {
    display: none;
}

.p6-faq-item-large summary:focus {
    outline: none;
}

.p6-faq-item-large p {
    padding: 0 1.25rem 1rem;
    margin: 0;
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
}

.btn-cta-slide {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
    transition: all 0.3s ease;
}

.btn-cta-slide:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.5);
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.btn-cta-slide i {
    font-size: 1.3rem;
}

.cta-box-hero {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 25;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.btn-cta-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(34, 197, 94, 0.45);
    transition: all 0.3s ease;
    animation: pulse-cta 2s infinite;
}

@keyframes pulse-cta {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.btn-cta-hero:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(34, 197, 94, 0.6);
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    animation: none;
}

.btn-cta-hero > i:first-child {
    font-size: 1.4rem;
    background: rgba(255,255,255,0.2);
    padding: 10px;
    border-radius: 50%;
}

.btn-cta-hero .cta-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-cta-hero .cta-text strong {
    font-size: 1.1rem;
    font-weight: 700;
}

.btn-cta-hero .cta-text small {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-top: 2px;
}

.btn-cta-hero > i:last-child {
    font-size: 1.2rem;
    opacity: 0.8;
}

.btn-cta-simple {
    padding: 12px 24px;
    gap: 10px;
}

.btn-cta-simple span {
    font-size: 1rem;
    font-weight: 600;
}

.btn-cta-simple > i:first-child {
    font-size: 1.1rem;
    padding: 8px;
}

.search-box-hero {
    transition: opacity 0.5s ease;
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: 650px;
    width: 90%;
    z-index: 25;
}

.search-box-hero i {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.25rem;
    z-index: 2;
}

.search-box-hero input {
    width: 100%;
    padding: 1.25rem 1.5rem 1.25rem 4rem;
    font-size: 1.05rem;
    border: none;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-xl);
    outline: none;
    background: white;
    transition: var(--transition-base);
}

.search-box-hero input:focus {
    box-shadow: var(--shadow-xl), 0 0 0 4px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.slider-nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 20;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-base);
}

.slider-dot.active {
    background: white;
    width: 32px;
    border-radius: 6px;
}

.search-results {
    max-width: 650px;
    margin: 1.5rem auto 0;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: none;
    max-height: 450px;
    overflow-y: auto;
    border: 1px solid var(--border-light);
}

.results-container {
    padding: 1.25rem;
}

.result-secteur {
    margin-bottom: 1.75rem;
}

.result-secteur h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-light);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition-base);
    border: 1px solid transparent;
}

.result-item:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    transform: translateX(4px);
}

.result-code {
    font-weight: 800;
    color: var(--primary-color);
    min-width: 130px;
}

.result-titre {
    flex: 1;
    font-weight: 500;
}

.result-statut {
    font-size: 0.8rem;
    padding: 0.35rem 0.85rem;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.secteurs-section {
    padding: 5rem 0;
}

.secteurs-section h2 {
    text-align: center;
    font-size: 2.75rem;
    margin-bottom: 3.5rem;
    color: var(--text-dark);
    font-weight: 900;
}

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

.secteur-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    border: 2px solid transparent;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.secteur-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: var(--transition-base);
}

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

.secteur-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--border-light);
}

.secteur-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.75rem;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.75rem;
    color: white;
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
}

.secteur-card:hover .secteur-icon {
    transform: scale(1.1) rotate(5deg);
}

.secteur-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    font-weight: 800;
}

.secteur-card p {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.badge {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    background: var(--bg-tertiary);
    color: var(--text-medium);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 700;
}

.about-section {
    background: white;
    padding: 5rem 0;
}

.about-section h2 {
    text-align: center;
    font-size: 2.75rem;
    margin-bottom: 2rem;
    font-weight: 900;
}

.about-intro {
    max-width: 900px;
    margin: 0 auto 3.5rem;
    text-align: center;
}

.about-intro .lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-medium);
    font-weight: 500;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.about-card {
    text-align: center;
    padding: 2.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    border: 2px solid transparent;
}

.about-card:hover {
    background: white;
    border-color: var(--border-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.about-card i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
}

.about-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.about-card p {
    color: var(--text-light);
    line-height: 1.7;
}

.about-cta {
    text-align: center;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    padding: 3.5rem 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.about-cta h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 900;
    color: var(--text-dark);
}

.about-cta p {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), #1D4ED8);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.05rem;
    transition: var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.3);
}

.secteur-header {
    background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 100%);
    color: white;
    padding: 3.5rem 0;
    position: relative;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    margin-bottom: 1.25rem;
    opacity: 0.9;
    transition: var(--transition-base);
    font-weight: 600;
}

.back-link:hover {
    opacity: 1;
    transform: translateX(-4px);
}

.secteur-header h1 {
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
    font-weight: 900;
}

.secteur-description {
    font-size: 1.35rem;
    opacity: 0.95;
    margin-bottom: 1.75rem;
    font-weight: 500;
}

.secteur-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
}

.stat i {
    font-size: 1.35rem;
}

.fiches-section {
    padding: 3.5rem 0;
}

.categories-filter {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-medium);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-base);
    font-size: 0.95rem;
}

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

.category-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.filter-bar {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-bar input,
.filter-bar select {
    flex: 1;
    min-width: 220px;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-base);
    background: white;
    font-weight: 500;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.fiches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}

@media (max-width: 1200px) {
    .fiches-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.fiche-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.fiche-card .fiche-fields {
    flex: 1;
}

.fiche-card .fiche-result {
    margin-top: auto;
}

.fiche-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
    border-color: var(--border-light);
}

.fiche-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.fiche-header h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: 800;
}

.fiche-statut {
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 700;
}

.statut-active {
    background: #DBEAFE;
    color: #1E40AF;
}

.statut-bonus {
    background: #FEF3C7;
    color: #92400E;
}

.fiche-titre {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.4;
}

.fiche-description {
    color: var(--text-light);
    margin-bottom: 1.75rem;
    line-height: 1.75;
}

.fiche-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.6rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-light);
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.detail-item i {
    color: var(--primary-color);
    font-size: 1rem;
    margin-top: 0.15rem;
}

.detail-item div {
    flex: 1;
}

.detail-item strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.detail-item span {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.4;
}

.btn-calculer-fiche {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    margin-top: auto;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.btn-calculer-fiche:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: var(--primary-dark);
}

.footer-modern {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 4rem 0 0;
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
    padding-right: 2rem;
}

.footer-logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    max-width: 280px;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.footer-section a:hover {
    color: #60a5fa;
    padding-left: 5px;
}

.footer-section a i {
    font-size: 0.8rem;
    width: 16px;
    opacity: 0.7;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: #60a5fa;
}

.footer-bottom-links span {
    color: rgba(255,255,255,0.3);
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-brand {
        grid-column: span 2;
        padding-right: 0;
        text-align: center;
    }
    
    .footer-tagline {
        max-width: 100%;
    }
    
    .footer-logo-img {
        margin: 0 auto 1rem;
    }
}

@media (max-width: 576px) {
    .footer-modern {
        padding: 3rem 0 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-section a {
        justify-content: center;
    }
    
    .footer-section a:hover {
        padding-left: 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

.calculateur-header {
    background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 100%);
    color: white;
    padding: 2.5rem 0;
}

.calculateur-section {
    padding: 3.5rem 0;
}

.calculateur-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3.5rem;
}

.form-panel,
.resultat-panel {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-light);
}

.form-panel h3,
.resultat-panel h3 {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
    font-weight: 800;
    font-size: 1.35rem;
}

.form-intro {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.65rem;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition-base);
    background: white;
    font-weight: 500;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.btn-calculer {
    width: 100%;
    padding: 1.25rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
}

.btn-calculer:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--primary-dark);
}

.resultat-principal {
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
    border-radius: var(--radius-lg);
    margin-bottom: 2.5rem;
    border: 2px solid rgba(37, 99, 235, 0.2);
}

.kwh-value {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
}

.kwh-unite {
    font-size: 1.35rem;
    color: var(--text-medium);
    margin-top: 0.75rem;
    font-weight: 600;
}

.montant-item {
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.montant-value {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--primary-color);
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .navbar .container {
        padding: 0.5rem 1rem;
    }
    
    .logo-img {
        height: 45px;
    }
    
    .welcome-message {
        display: none;
    }
    
    .nav-links {
        gap: 0.4rem;
    }
    
    .nav-links a {
        font-size: 0.8rem;
    }
    
    .btn-profil,
    .btn-projets,
    .btn-materiels,
    .btn-actualites,
    .btn-admin,
    .btn-logout {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
        min-width: auto;
        height: 32px;
        gap: 0.25rem;
    }
    
    .btn-profil i,
    .btn-projets i,
    .btn-materiels i,
    .btn-actualites i,
    .btn-admin i,
    .btn-logout i {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 520px;
    }
    
    .slide-content {
        padding: 1rem;
        padding-bottom: 0;
        margin-bottom: 80px;
    }
    
    .slide-content h1 {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }

    .slide-content p {
        font-size: 0.9rem;
        margin-bottom: 0;
    }
    
    .search-box-hero {
        bottom: 4.5rem;
        width: 92%;
        max-width: 500px;
    }
    
    .search-box-hero input {
        padding: 1rem 1rem 1rem 3rem;
        font-size: 0.9rem;
    }
    
    .search-box-hero i {
        left: 1rem;
        font-size: 1rem;
    }
    
    .slider-nav {
        bottom: 1.5rem;
    }
    
    .slider-dot {
        width: 8px;
        height: 8px;
    }
    
    .slider-dot.active {
        width: 24px;
    }

    .secteurs-section h2,
    .about-section h2 {
        font-size: 2rem;
    }

    .secteur-header h1 {
        font-size: 2.25rem;
    }

    .nav-links {
        gap: 1.25rem;
    }

    .filter-bar {
        flex-direction: column;
    }

    .calculateur-grid {
        grid-template-columns: 1fr;
    }

    .kwh-value {
        font-size: 3rem;
    }
    
    .secteurs-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-filter {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 560px;
    }
    
    .slide-content {
        padding: 0.75rem;
        padding-bottom: 0;
        margin-bottom: 90px;
    }
    
    .slide-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .slide-content p {
        font-size: 0.8rem;
        margin-bottom: 0;
        line-height: 1.4;
    }
    
    .search-box-hero {
        bottom: 4rem;
        width: 94%;
    }
    
    .search-box-hero input {
        padding: 0.9rem 0.9rem 0.9rem 2.75rem;
        font-size: 0.85rem;
    }
    
    .slider-nav {
        bottom: 1.2rem;
    }
}

/* ============================================
   AUTHENTICATION PAGES
   ============================================ */

.auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    padding: 40px;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    color: #2563EB;
    font-size: 28px;
    margin-bottom: 10px;
}

.auth-header h1 i {
    margin-right: 10px;
}

.auth-header p {
    color: #64748B;
    font-size: 16px;
}

.auth-form {
    margin-top: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-weight: 600;
    font-size: 14px;
}

.form-group label i {
    margin-right: 8px;
    color: #2563EB;
}

.form-group .required {
    color: #EF4444;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: #64748B;
    font-size: 13px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.checkbox-group label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

.auth-form .btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2563EB, #1E40AF);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.auth-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.auth-form .btn-primary i {
    margin-right: 8px;
}

.forgot-password-link {
    text-align: right;
    margin: -0.5rem 0 0.5rem 0;
}

.forgot-password-link a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.forgot-password-link a:hover {
    color: #3b82f6;
}

.forgot-password-link a i {
    margin-right: 0.25rem;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #E2E8F0;
}

.auth-footer p {
    color: #64748B;
    font-size: 15px;
}

.auth-footer a {
    color: #2563EB;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   FLASH MESSAGES
   ============================================ */

.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.flash-message {
    background: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.flash-message i {
    font-size: 20px;
}

.flash-success {
    border-left: 4px solid #10B981;
    color: #065F46;
}

.flash-success i {
    color: #10B981;
}

.flash-error {
    border-left: 4px solid #EF4444;
    color: #991B1B;
}

.flash-error i {
    color: #EF4444;
}

.flash-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #94A3B8;
    font-size: 18px;
    margin-left: auto;
    padding: 4px;
    transition: color 0.2s;
}

.flash-close:hover {
    color: #475569;
}

/* ============================================
   NAVBAR AUTHENTICATION
   ============================================ */

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 14px;
}

.btn-profil,
.btn-projets,
.btn-actualites,
.btn-admin,
.btn-logout {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: white !important;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    height: 38px;
    min-width: fit-content;
    white-space: nowrap;
    box-sizing: border-box;
}

.btn-profil i,
.btn-projets i,
.btn-actualites i,
.btn-admin i,
.btn-logout i {
    font-size: 0.95rem;
}

.btn-actualites {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
}

.btn-actualites:hover {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.4);
}

.btn-projets {
    background: linear-gradient(135deg, #7C3AED 0%, #A855F7 100%);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.btn-projets:hover {
    background: linear-gradient(135deg, #6D28D9 0%, #8B5CF6 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.btn-materiels {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: white !important;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    height: 38px;
    min-width: fit-content;
    white-space: nowrap;
    box-sizing: border-box;
}

.btn-materiels i {
    font-size: 0.95rem;
}

.btn-materiels:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}

.btn-profil {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    box-shadow: 0 2px 8px rgba(8, 145, 178, 0.3);
}

.btn-profil:hover {
    background: linear-gradient(135deg, #0e7490 0%, #0891b2 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.4);
}

.btn-logout {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.btn-logout:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.btn-admin {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.btn-admin:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

/* ============================================
   NEWS TICKER - BANDEAU ACTUALITÉS
   ============================================ */

.news-ticker-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    padding: 0;
    overflow: hidden;
    position: relative;
}

.news-ticker-wrapper {
    display: flex;
    align-items: stretch;
    max-width: 100%;
}

.news-ticker-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: #f59e0b;
    color: white;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 2;
    box-shadow: 4px 0 12px rgba(0,0,0,0.2);
}

.news-ticker-label i {
    font-size: 0.9rem;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.news-ticker-container {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.news-ticker-container::before,
.news-ticker-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 1;
    pointer-events: none;
}

.news-ticker-container::before {
    left: 0;
    background: linear-gradient(to right, #1e3a8a, transparent);
}

.news-ticker-container::after {
    right: 0;
    background: linear-gradient(to left, #1e40af, transparent);
}

.news-ticker-content {
    display: flex;
    align-items: center;
    animation: ticker-scroll 40s linear infinite;
    padding: 0.75rem 0;
}

.news-ticker-content:hover {
    animation-play-state: paused;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 2rem;
    white-space: nowrap;
    text-decoration: none;
    color: white;
    transition: all 0.2s ease;
    border-right: 1px solid rgba(255,255,255,0.15);
}

.ticker-item:hover {
    background: rgba(255,255,255,0.1);
}

.ticker-source {
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    flex-shrink: 0;
}

.ticker-title {
    font-size: 0.9rem;
    font-weight: 500;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticker-type {
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.ticker-type-arrete {
    background: #fef3c7;
    color: #b45309;
}

.ticker-type-decret {
    background: #fee2e2;
    color: #dc2626;
}

.news-ticker-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
    border-left: 1px solid rgba(255,255,255,0.1);
}

.news-ticker-cta:hover {
    background: rgba(255,255,255,0.2);
}

.news-ticker-cta i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.news-ticker-cta:hover i {
    transform: translateX(4px);
}

/* ============================================
   ILLUSTRATIONS SECTION
   ============================================ */
.illustrations-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.illustrations-section h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.illustrations-section h2 i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.illustrations-section .section-subtitle {
    text-align: center;
    color: var(--text-medium);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.illustrations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.illustration-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.illustration-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.illustration-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.illustration-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.illustration-card:hover .illustration-image img {
    transform: scale(1.08);
}

.illustration-content {
    padding: 1.5rem;
}

.illustration-content h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.illustration-content h3 i {
    color: var(--primary-color);
}

.illustration-content p {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .illustrations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .illustrations-section {
        padding: 3rem 1rem;
    }
    
    .illustrations-section h2 {
        font-size: 1.6rem;
    }
    
    .illustrations-grid {
        grid-template-columns: 1fr;
    }
    
    .illustration-image {
        height: 180px;
    }
}

/* P6 VISUAL COMPARISON INFOGRAPHIC */
.p6-visual-comparison {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: var(--radius-lg);
    margin-top: 1rem;
}

.comparison-bar-group {
    display: grid;
    grid-template-columns: 140px 1fr 60px;
    align-items: center;
    gap: 1rem;
}

.comparison-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.comparison-bars {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bar-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bar-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-medium);
    width: 24px;
}

.bar {
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.75rem;
    transition: width 0.8s ease;
}

.bar-p5 {
    background: linear-gradient(90deg, #94a3b8 0%, #64748b 100%);
}

.bar-p6 {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}

.bar-value {
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.comparison-evolution {
    font-size: 1.1rem;
    font-weight: 700;
    color: #10b981;
    background: #d1fae5;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .comparison-bar-group {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .comparison-evolution {
        justify-self: start;
    }
}

/* CALCULATEUR FROID INTRO WITH IMAGE */
.intro-with-image {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.intro-image {
    flex: 0 0 280px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.intro-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.intro-text {
    flex: 1;
}

.intro-steps-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.intro-steps-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.intro-steps-list li i {
    color: #10b981;
    margin-top: 3px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .intro-with-image {
        flex-direction: column;
    }
    
    .intro-image {
        flex: none;
        width: 100%;
    }
    
    .intro-image img {
        height: 160px;
    }
}

/* CALCULATEUR FROID STEPS VISUAL */
.steps-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: var(--radius-lg);
    flex-wrap: wrap;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    min-width: 100px;
    transition: all var(--transition-base);
}

.step-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.step-item.highlight {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.step-item.highlight .step-icon,
.step-item.highlight .step-number,
.step-item.highlight .step-text {
    color: white;
}

.step-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

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

.step-number {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
}

.step-arrow {
    color: var(--primary-color);
    font-size: 1rem;
    opacity: 0.5;
}

@media (max-width: 600px) {
    .steps-visual {
        gap: 0.75rem;
    }
    
    .step-item {
        min-width: 80px;
        padding: 0.75rem;
    }
    
    .step-icon {
        font-size: 1.2rem;
    }
    
    .step-arrow {
        display: none;
    }
}

@media (max-width: 768px) {
    .news-ticker-label {
        padding: 0.75rem 1rem;
        font-size: 0.65rem;
    }
    
    .news-ticker-label span {
        display: none;
    }
    
    .ticker-title {
        max-width: 200px;
        font-size: 0.8rem;
    }
    
    .news-ticker-cta {
        padding: 0.75rem 1rem;
        font-size: 0.75rem;
    }
    
    .news-ticker-cta span {
        display: none;
    }
}

/* ============================================
   RESPONSIVE AUTHENTICATION
   ============================================ */

/* ============================================
   QUICK ACTIONS SECTION (Index)
   ============================================ */

.quick-actions-section {
    padding: 2rem 0;
    background: #f8fafc;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.quick-action-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.quick-action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.quick-action-p6 {
    border-left: 4px solid #3b82f6;
}

.quick-action-p6:hover {
    border-left-color: #1d4ed8;
}

.quick-action-froid {
    border-left: 4px solid #06b6d4;
}

.quick-action-froid:hover {
    border-left-color: #0891b2;
}

.quick-action-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.quick-action-p6 .quick-action-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.quick-action-froid .quick-action-icon {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
}

.quick-action-content {
    flex: 1;
}

.quick-action-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    background: #3b82f6;
    color: white;
    margin-bottom: 0.5rem;
}

.quick-action-badge.badge-froid {
    background: #06b6d4;
}

.quick-action-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.3rem 0;
}

.quick-action-content p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

.quick-action-arrow {
    color: #94a3b8;
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.quick-action-card:hover .quick-action-arrow {
    transform: translateX(4px);
    color: #3b82f6;
}

/* Sidebar Quick Links (Actualites) */
.sidebar-quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-quick-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.sidebar-link-p6 {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.sidebar-link-p6:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    transform: translateX(4px);
}

.sidebar-link-froid {
    background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
    color: #0891b2;
    border: 1px solid #a5f3fc;
}

.sidebar-link-froid:hover {
    background: linear-gradient(135deg, #cffafe 0%, #a5f3fc 100%);
    transform: translateX(4px);
}

.sidebar-quick-link i {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-action-card {
        padding: 1.25rem;
    }
    
    .quick-action-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* ============================================
   MOBILE MENU STYLES
   ============================================ */

.mobile-menu-toggle {
    display: none;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    color: white;
    font-size: 1.25rem;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.mobile-menu-close {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ef4444;
    border: none;
    color: white;
    font-size: 1.1rem;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1002;
}

.mobile-menu-close:hover {
    background: #dc2626;
    transform: rotate(90deg);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
}

.mobile-icon {
    display: none;
}

@media (max-width: 768px) {
    .auth-card {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .flash-messages {
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    .welcome-message {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-menu-close {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-icon {
        display: inline;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 5rem 1.25rem 2rem;
        gap: 0.75rem;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        margin-left: 0;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-main,
    .nav-user {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .nav-main {
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .nav-user .welcome-message {
        display: flex;
        margin-bottom: 0.5rem;
    }
    
    .nav-links a,
    .nav-links .btn-profil,
    .nav-links .btn-projets,
    .nav-links .btn-materiels,
    .nav-links .btn-actualites,
    .nav-links .btn-admin,
    .nav-links .btn-logout {
        font-size: 0.95rem !important;
        padding: 0.875rem 1rem !important;
        border-radius: 10px !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.75rem !important;
        transition: all 0.2s ease !important;
        width: 100% !important;
        min-width: unset !important;
        justify-content: flex-start !important;
        box-sizing: border-box !important;
        background: #f8fafc !important;
        color: #334155 !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: none !important;
    }
    
    .nav-links .btn-actualites {
        background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%) !important;
        color: white !important;
        border: none !important;
    }
    
    .nav-links .btn-projets {
        background: linear-gradient(135deg, #7C3AED 0%, #A855F7 100%) !important;
        color: white !important;
        border: none !important;
    }
    
    .nav-links .btn-materiels {
        background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
        color: white !important;
        border: none !important;
    }
    
    .nav-links .btn-admin {
        background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%) !important;
        color: white !important;
        border: none !important;
    }
    
    .nav-links .btn-profil {
        background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%) !important;
        color: white !important;
        border: none !important;
    }
    
    .nav-links .btn-logout {
        background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%) !important;
        color: white !important;
        border: none !important;
    }
    
    .nav-links a:hover {
        background: #e2e8f0 !important;
        transform: translateX(5px);
    }
    
    .nav-links .btn-actualites:hover,
    .nav-links .btn-projets:hover,
    .nav-links .btn-materiels:hover,
    .nav-links .btn-admin:hover,
    .nav-links .btn-profil:hover,
    .nav-links .btn-logout:hover {
        opacity: 0.9;
        transform: translateX(5px);
    }
    
    .mobile-menu-overlay.active {
        display: block;
    }
    
    .logo-img {
        height: 50px;
    }
    
    .navbar .container {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 40px;
    }
    
    .nav-links {
        width: 100%;
        right: -100%;
    }
    
    .mobile-menu-toggle {
        padding: 0.5rem 0.7rem;
        font-size: 1.1rem;
    }
}
