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

:root {
    /* ── Palette V2 — vert forêt + or ambré ── */
    --forest:  #0D2B1A;
    --green:   #1A4D2E;
    --green2:  #2D6A4F;
    --green3:  #52B788;
    --amber:   #D4A017;
    --amber2:  #F0C040;

    --primary-color: #1A4D2E;
    --primary-dark: #0D2B1A;
    --primary-light: #2D6A4F;
    --secondary-color: #52B788;
    --accent-orange: #D4A017;
    --accent-purple: #8B5CF6;
    --text-dark: #0D1F12;
    --text-medium: #4A6652;
    --text-light: #6B8472;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F4F7F4;
    --bg-tertiary: #EBF0EC;
    --border-color: #C8DDD0;
    --border-light: #DCEAE0;

    --font-serif: 'DM Serif Display', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    
    --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, #D4A017 0%, #B8860B 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, #F0C040 0%, #D4A017 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, #F0C040 0%, #D4A017 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: #1A4D2E;
    font-weight: 600;
    text-decoration: underline;
}

.alert-popup-content a:hover {
    color: #0D2B1A;
}

@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;
}

/* Header Search Bar */
.header-search-container {
    position: relative;
    width: 280px;
    margin-right: 1rem;
}

.header-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search-icon {
    position: absolute;
    left: 14px;
    color: var(--text-light);
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}

.header-search-input {
    width: 100%;
    padding: 10px 40px 10px 40px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 14px;
    background: var(--bg-secondary);
    transition: var(--transition-fast);
    color: var(--text-dark);
}

.header-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(26, 77, 46, 0.1);
}

.header-search-input::placeholder {
    color: var(--text-light);
}

.header-search-clear {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.header-search-clear:hover {
    color: var(--text-dark);
}

.header-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    border: 1px solid var(--border-light);
}

.header-search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-fast);
    gap: 12px;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--bg-secondary);
}

.search-result-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}

.search-result-icon.bar { background: linear-gradient(135deg, #2D6A4F, #0D2B1A); }
.search-result-icon.bat { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.search-result-icon.ind { background: linear-gradient(135deg, #D4A017, #B8860B); }
.search-result-icon.tra { background: linear-gradient(135deg, #52B788, #2D6A4F); }
.search-result-icon.res { background: linear-gradient(135deg, #ef4444, #dc2626); }
.search-result-icon.agri { background: linear-gradient(135deg, #22c55e, #16a34a); }

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-code {
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-color);
}

.search-result-title {
    font-size: 13px;
    color: var(--text-medium);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
}

.search-loading {
    padding: 20px;
    text-align: center;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .header-search-container {
        display: none;
    }
}

.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, #EBF0EC 0%, #D1E8D9 100%);
    border-radius: 6px;
    border: 1px solid #C8DDD0;
    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, #2D6A4F 0%, #1A4D2E 100%);
    color: white;
}

.btn-espace-pro:hover {
    background: linear-gradient(135deg, #1A4D2E 0%, #0D2B1A 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, #0D2B1A 0%, #0D2B1A 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: #D4A017;
    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(45, 106, 79, 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: #F0C040;
    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, #0D2B1A 0%, #2D6A4F 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, #0D2B1A 0%, #2D6A4F 100%);
    color: white;
}

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

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

.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: #0D2B1A;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.p6-section-block h2 i {
    color: #2D6A4F;
}

.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 #2D6A4F;
}

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

.p6-change-icon {
    width: 32px;
    height: 32px;
    background: #2D6A4F;
    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: #2D6A4F;
    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, #0D2B1A 0%, #2D6A4F 100%);
    color: white;
}

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

.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: #2D6A4F;
    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: #2D6A4F;
}

.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: #2D6A4F;
    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 #D4A017;
}

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

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

.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: #B8860B;
    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, #EBF0EC 0%, #D1E8D9 100%);
    border-left: 4px solid #2D6A4F;
}

.p6-sidebar-card.faq h3 {
    color: #0D2B1A;
}

.p6-sidebar-card.faq h3 i {
    color: #2D6A4F;
}

.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: #0D2B1A;
    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: #2D6A4F;
}

.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 #52B788;
}

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

.p6-sidebar-card.sectors h3 i {
    color: #52B788;
}

.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: #52B788;
    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: #0D2B1A;
    margin-bottom: 1rem;
}

.p6-fullwidth-card h2 i {
    color: #2D6A4F;
}

@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, #0D2B1A 0%, #2D6A4F 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: #0D2B1A;
    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: #2D6A4F;
}

.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(26, 77, 46, 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, #EBF0EC 0%, #D1E8D9 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), #0D2B1A);
    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(26, 77, 46, 0.3);
}

.secteur-header {
    background: linear-gradient(135deg, #0D2B1A 0%, #0D2B1A 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(26, 77, 46, 0.1);
}

.verifiee-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-medium);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
}

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

.verifiee-toggle.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.fiches-count {
    display: inline-flex;
    align-items: center;
    padding: 0 0.5rem;
    color: var(--text-medium);
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
}

.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;
    }
}

.fiches-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: 2rem;
}

.fiches-empty-state i {
    font-size: 3rem;
    color: var(--primary-color, #4a6cf7);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.fiches-empty-state h3 {
    font-size: 1.5rem;
    color: var(--text-dark, #1a1a2e);
    margin-bottom: 0.5rem;
}

.fiches-empty-state p {
    color: var(--text-muted, #6b7280);
    font-size: 1rem;
}

.btn-reset-filtres {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.85rem 1.75rem;
    background: var(--primary-color, #4a6cf7);
    border: 2px solid var(--primary-color, #4a6cf7);
    border-radius: var(--radius-md);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-reset-filtres:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.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(--text-dark);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.35;
    flex: 1;
    min-width: 0;
}

.fiche-header h3 .fiche-code {
    color: var(--primary-color);
    font-size: 0.85em;
    font-weight: 800;
    display: block;
    letter-spacing: 0.03em;
    margin-bottom: 0.15em;
}

.fiche-code-badge {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.fiche-code-label {
    display: inline-block;
    font-size: 0.55em;
    font-weight: 700;
    letter-spacing: 0.06em;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 4px;
    padding: 0.1em 0.55em;
    vertical-align: middle;
    margin-right: 0.4em;
    line-height: 1.6;
}

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

.statut-active {
    background: #D1E8D9;
    color: #0D2B1A;
}

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

.statut-abrogee {
    background: #FEE2E2;
    color: #991B1B;
}

.fiche-abrogee {
    border: 2px solid #FECACA !important;
    opacity: 0.85;
    position: relative;
}

.fiche-abrogee .fiche-titre {
    text-decoration: line-through;
    text-decoration-color: #DC2626;
    text-decoration-thickness: 2px;
}

.abrogee-banner {
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    color: #991B1B;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 10px 10px 0 0;
    margin: -1.5rem -1.5rem 1rem -1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.abrogee-banner i {
    color: #DC2626;
}

.abrogee-arrete {
    font-weight: 500;
    font-size: 0.8rem;
    margin-left: auto;
    color: #B91C1C;
}

.abrogee-warning-box {
    background: linear-gradient(135deg, #FEF2F2, #FEE2E2);
    border: 2px solid #FECACA;
    border-left: 5px solid #DC2626;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.abrogee-warning-box h3 {
    color: #991B1B;
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.abrogee-warning-box p {
    color: #7F1D1D;
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.abrogee-warning-box .abrogee-motif {
    font-style: italic;
    color: #991B1B;
    margin-top: 0.5rem;
}

.verification-warning-box {
    background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
    border: 2px solid #FDE68A;
    border-left: 5px solid #D97706;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.verification-warning-box h3 {
    color: #92400E;
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}

.verification-warning-box p {
    color: #78350F;
    margin: 0.25rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.verification-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
    color: #92400E;
    border: 1px solid #FDE68A;
    border-left: 3px solid #D97706;
    border-radius: 8px;
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.verification-badge i {
    color: #D97706;
}

.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);
}

.fiche-code-link,
.fiche-titre-link {
    text-decoration: none;
    color: inherit;
}

.fiche-code-link:hover h3 {
    color: var(--primary-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.fiche-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    flex-wrap: wrap;
}

.btn-detail-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;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

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

.btn-calculer-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.btn-calculer-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.fiche-detail-container {
    max-width: 800px;
    margin: 0 auto;
}

.fiche-card-large {
    padding: 2rem;
}

.fiche-card-large .fiche-titre {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.fiche-card-large .fiche-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.fiche-card-large .fiche-details {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.btn-calculer-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    width: 100%;
    justify-content: center;
}

.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-social {
    margin-top: 1rem;
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    transform: translateY(-3px);
    background: #0077b5;
}

.footer-social a:nth-child(2):hover {
    background: #1877F2;
}

.footer-social a:nth-child(3):hover {
    background: #d44638;
}

.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: #D4A017;
    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: #D4A017;
}

.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, #0D2B1A 0%, #0D2B1A 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(26, 77, 46, 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, #EBF0EC, #D1E8D9);
    border-radius: var(--radius-lg);
    margin-bottom: 2.5rem;
    border: 2px solid rgba(26, 77, 46, 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, #0D2B1A 0%, #2D6A4F 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: #1A4D2E;
    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: #1A4D2E;
}

.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: #1A4D2E;
    box-shadow: 0 0 0 3px rgba(26, 77, 46, 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, #1A4D2E, #0D2B1A);
    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(26, 77, 46, 0.3);
}

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

.phone-input-group {
    display: flex;
    gap: 8px;
}

.indicatif-select {
    width: 105px;
    min-width: 105px;
    max-width: 105px;
    flex-shrink: 0;
    padding: 12px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
}

.indicatif-select:focus {
    outline: none;
    border-color: #2D6A4F;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.phone-input-group input[type="tel"] {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
}

.phone-input-group input[type="tel"]:focus {
    outline: none;
    border-color: #2D6A4F;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.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: #2D6A4F;
}

.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: #1A4D2E;
    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 #52B788;
    color: #065F46;
}

.flash-success i {
    color: #52B788;
}

.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, #0D2B1A 0%, #2D6A4F 100%);
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
}

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

.btn-projets {
    background: linear-gradient(135deg, #1A4D2E 0%, #2D6A4F 100%);
    box-shadow: 0 2px 8px rgba(13, 43, 26, 0.3);
}

.btn-projets:hover {
    background: linear-gradient(135deg, #0D2B1A 0%, #1A4D2E 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 43, 26, 0.4);
}

.btn-materiels {
    background: linear-gradient(135deg, #2D6A4F 0%, #52B788 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%, #2D6A4F 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}

.btn-profil {
    background: linear-gradient(135deg, #2D6A4F 0%, #52B788 100%);
    box-shadow: 0 2px 8px rgba(45, 106, 79, 0.3);
}

.btn-profil:hover {
    background: linear-gradient(135deg, #1A4D2E 0%, #2D6A4F 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 106, 79, 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, #D4A017 0%, #F0C040 100%);
    color: #0D2B1A;
    box-shadow: 0 2px 8px rgba(212, 160, 23, 0.3);
}

.btn-admin:hover {
    background: linear-gradient(135deg, #B8860B 0%, #D4A017 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 160, 23, 0.4);
}

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

.news-ticker-section {
    background: linear-gradient(135deg, #0D2B1A 0%, #0D2B1A 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: #D4A017;
    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, #0D2B1A, transparent);
}

.news-ticker-container::after {
    right: 0;
    background: linear-gradient(to left, #0D2B1A, 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, #2D6A4F 0%, #1A4D2E 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: #52B788;
    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: #52B788;
    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, #EBF0EC 0%, #D1E8D9 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, #2D6A4F 0%, #1A4D2E 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 #2D6A4F;
}

.quick-action-p6:hover {
    border-left-color: #0D2B1A;
}

.quick-action-froid {
    border-left: 4px solid #52B788;
}

.quick-action-froid:hover {
    border-left-color: #2D6A4F;
}

.quick-action-rgt {
    border-left: 4px solid #2D6A4F;
}

.quick-action-rgt:hover {
    border-left-color: #1A4D2E;
}

.quick-action-rgt .quick-action-icon {
    background: linear-gradient(135deg, #1A4D2E 0%, #2D6A4F 100%);
    color: white;
}

.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, #2D6A4F 0%, #0D2B1A 100%);
    color: white;
}

.quick-action-froid .quick-action-icon {
    background: linear-gradient(135deg, #52B788 0%, #2D6A4F 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: #2D6A4F;
    color: white;
    margin-bottom: 0.5rem;
}

.quick-action-badge.badge-froid {
    background: #52B788;
}

.quick-action-badge.badge-rgt {
    background: linear-gradient(135deg, #D4A017, #B8860B);
}

.quick-action-ia {
    border-left: 4px solid #D4A017;
}

.quick-action-ia:hover {
    border-left-color: #B8860B;
}

.quick-action-ia .quick-action-icon {
    background: linear-gradient(135deg, #D4A017 0%, #F0C040 100%);
    color: #0D2B1A;
}

.quick-action-badge.badge-ia {
    background: linear-gradient(135deg, #D4A017, #F0C040);
    color: #0D2B1A;
}

/* ===== Bannière Audit IA (page d'accueil) ===== */
.audit-ia-feature {
    padding: 2.5rem 0;
    background: #f8fafc;
}

.audit-ia-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 2.5rem 3rem;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #2D6A4F;
    box-shadow: 0 10px 35px rgba(30, 64, 175, 0.10);
}

.audit-ia-card::before {
    content: "";
    position: absolute;
    top: -45%;
    right: -8%;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(45, 106, 79, 0.10) 0%, rgba(45, 106, 79, 0) 70%);
    pointer-events: none;
}

.audit-ia-content {
    position: relative;
    flex: 1;
    z-index: 1;
}

.audit-ia-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
    color: #0D2B1A;
    background: #EBF0EC;
    border: 1px solid #C8DDD0;
    margin-bottom: 1rem;
}

.audit-ia-content h2 {
    color: #0D1F12;
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 0.6rem 0;
}

.audit-ia-sub {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 640px;
    margin: 0 0 1.5rem 0;
}

.audit-ia-steps {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.75rem;
}

.audit-ia-step {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.95rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 600;
}

.audit-ia-step i {
    color: #2D6A4F;
    font-size: 1rem;
}

.audit-ia-arrow {
    color: #cbd5e1;
    font-size: 0.85rem;
}

.audit-ia-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.9rem;
    border-radius: 12px;
    font-size: 1.02rem;
    font-weight: 700;
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(135deg, #2D6A4F 0%, #0D2B1A 100%);
    box-shadow: 0 8px 20px rgba(26, 77, 46, 0.30);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.audit-ia-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(26, 77, 46, 0.38);
}

.audit-ia-visual {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: linear-gradient(135deg, #2D6A4F 0%, #0D2B1A 100%);
    box-shadow: 0 12px 30px rgba(26, 77, 46, 0.30);
}

.audit-ia-visual i {
    font-size: 4rem;
    color: #ffffff;
    animation: auditIaPulse 3s ease-in-out infinite;
}

@keyframes auditIaPulse {
    0%, 100% { transform: scale(1); opacity: 0.92; }
    50% { transform: scale(1.07); opacity: 1; }
}

@media (max-width: 768px) {
    .audit-ia-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }
    .audit-ia-content h2 { font-size: 1.5rem; }
    .audit-ia-steps { justify-content: center; }
    .audit-ia-arrow { display: none; }
    .audit-ia-visual { width: 110px; height: 110px; order: -1; }
    .audit-ia-visual i { font-size: 3rem; }
    .quick-actions-grid { grid-template-columns: 1fr; }
}

.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: #2D6A4F;
}

/* 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, #EBF0EC 0%, #D1E8D9 100%);
    color: #0D2B1A;
    border: 1px solid #C8DDD0;
}

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

.sidebar-link-froid {
    background: linear-gradient(135deg, #EBF0EC 0%, #D1E8D9 100%);
    color: #2D6A4F;
    border: 1px solid #C8DDD0;
}

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

.sidebar-link-rgt {
    background: linear-gradient(135deg, #FBF5E3 0%, #F5E9C5 100%);
    color: #B8860B;
    border: 1px solid #E8D48A;
}

.sidebar-link-rgt:hover {
    background: linear-gradient(135deg, #F5E9C5 0%, #F0C040 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: 4.5rem 1.25rem 2rem;
        gap: 0.5rem;
        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.5rem;
        width: 100%;
    }
    
    .nav-main {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }
    
    .nav-user .welcome-message {
        display: flex;
        justify-content: center;
        margin-bottom: 0.75rem;
        font-size: 0.9rem;
        order: -1;
    }
    
    .nav-dropdown-btn {
        display: none !important;
    }
    
    .nav-dropdown {
        position: static;
    }
    
    .nav-dropdown-content {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .dropdown-divider {
        margin: 0.25rem 0 !important;
    }
    
    .nav-links a,
    .nav-links .dropdown-logout {
        font-size: 0.95rem !important;
        padding: 0.75rem 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 .dropdown-logout {
        background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%) !important;
        color: white !important;
        border: none !important;
        margin-top: 0.5rem;
    }
    
    .nav-links a:hover {
        background: #e2e8f0 !important;
        transform: translateX(5px);
    }
    
    .nav-links .dropdown-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;
    }
}

/* ============================================================
   V2 GLOBAL REDESIGN — vert forêt + or ambré (tout le site)
   Appliqué après les règles legacy → priorité par ordre source.
   La page d'accueil (body.home-v2) garde ses overrides plus
   spécifiques (navbar transparente sur le hero, etc.).
   ============================================================ */

/* ── Typographie globale ── */
body {
    font-family: var(--font-sans);
}
h1, h2,
.secteur-header h1,
.hero h1,
.section-title {
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* ── NAVBAR (toutes les pages sauf accueil qui override) ── */
.navbar {
    background: linear-gradient(135deg, #0D2B1A 0%, #1A4D2E 100%);
    box-shadow: 0 2px 16px rgba(13, 43, 26, 0.28);
    border-bottom: 1px solid rgba(212, 160, 23, 0.18);
    z-index: 1000;
}
.navbar .logo-img {
    filter: brightness(0) invert(1);
}
.navbar .nav-user > a {
    color: #fff;
    font-weight: 600;
    transition: color 0.2s ease;
}
.navbar .nav-user > a:hover {
    color: var(--amber2);
}
.navbar .mobile-menu-toggle,
.navbar .mobile-menu-toggle i {
    color: #fff;
}
.navbar .header-search-input {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
}
.navbar .header-search-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}
.navbar .header-search-input:focus {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(212, 160, 23, 0.5);
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15);
}
.navbar .header-search-icon {
    color: rgba(255, 255, 255, 0.55);
}
.navbar .welcome-message {
    color: #fff;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
}
.navbar .welcome-message i {
    color: var(--amber2);
}
.navbar .nav-dropdown-btn,
.navbar .btn-hamburger {
    color: #fff;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
}
.navbar .btn-espace-pro {
    color: var(--amber2);
    background: rgba(212, 160, 23, 0.15);
    border: 1px solid rgba(212, 160, 23, 0.35);
}
.navbar .nav-dropdown-btn:hover,
.navbar .btn-hamburger:hover,
.navbar .btn-espace-pro:hover {
    background: rgba(212, 160, 23, 0.22);
    border-color: rgba(212, 160, 23, 0.55);
    color: #fff;
}

/* ── SECTEUR / FICHE HEADER ── */
.secteur-header {
    background: linear-gradient(135deg, #0D2B1A 0%, #1A4D2E 100%);
    overflow: hidden;
}
.secteur-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 50%, rgba(82, 183, 136, 0.14) 0%, transparent 58%);
    pointer-events: none;
}
.secteur-header .container { position: relative; z-index: 1; }
.secteur-header h1 {
    font-family: var(--font-serif);
    font-weight: 400;
}
.back-link:hover { color: var(--amber2); }

/* ── FOOTER ── */
.footer-modern {
    background: linear-gradient(135deg, #0D2B1A 0%, #102e1d 100%);
    border-top: 2px solid transparent;
    border-image: linear-gradient(to right, transparent, var(--amber), transparent) 1;
}
.footer-section h4 {
    color: var(--amber);
    letter-spacing: 0.12em;
}
.footer-section a:hover { color: var(--amber2); }
.footer-social a:hover {
    background: var(--amber);
    color: var(--forest);
    border-color: var(--amber);
}

/* ── BOUTONS PARTAGÉS ── */
.btn-primary {
    background: linear-gradient(135deg, var(--green), var(--green2));
    box-shadow: 0 6px 18px rgba(13, 43, 26, 0.25);
}
.btn-primary:hover {
    box-shadow: 0 10px 26px rgba(13, 43, 26, 0.32);
}

/* ── CALCULATEUR : bloc résultat sur fond vert forêt ── */
.resultat-panel {
    border-top: 3px solid var(--amber);
}

/* ====================================================================================
   ASSISTANT IA CEE — Widget flottant + Page dédiée
   ==================================================================================== */

/* Typing indicator (partagé) */
.ai-typing { display: inline-flex; gap: 4px; align-items: center; padding: 2px 0; }
.ai-typing span {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--green3);
    animation: aiTyping 1.2s infinite ease-in-out;
}
.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes aiTyping {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-5px); opacity: 1; }
}

/* Curseur clignotant pendant le streaming (effet « machine à écrire ») */
.ai-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 1px;
    vertical-align: text-bottom;
    background: var(--green3, #2D6A4F);
    animation: aiCursorBlink 1s steps(2, start) infinite;
}
@keyframes aiCursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.ai-fiche-link {
    display: inline-block;
    background: linear-gradient(135deg, #2D6A4F 0%, #1A4D2E 100%);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.85em;
    padding: 1px 8px;
    border-radius: var(--radius-full);
    text-decoration: none !important;
    margin: 0 1px;
    transition: var(--transition-fast);
}
.ai-fiche-link:hover { background: linear-gradient(135deg, var(--amber) 0%, #B8860B 100%); }

/* ── Widget flottant ── */
.ai-widget { position: fixed; bottom: 24px; right: 24px; z-index: 9997; }

.ai-widget-bubble {
    width: 60px; height: 60px; border-radius: 50%;
    border: none; cursor: pointer;
    background: linear-gradient(135deg, var(--green2) 0%, var(--forest) 100%);
    color: #fff; font-size: 1.5rem;
    box-shadow: 0 8px 24px rgba(13, 43, 26, 0.35);
    display: flex; align-items: center; justify-content: center;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.ai-widget-bubble:hover { transform: scale(1.08); box-shadow: 0 12px 30px rgba(13, 43, 26, 0.45); }
.ai-widget-bubble.active { background: linear-gradient(135deg, var(--amber) 0%, #B8860B 100%); }

.ai-widget-panel {
    position: absolute; bottom: 76px; right: 0;
    width: 380px; max-width: calc(100vw - 32px);
    height: 540px; max-height: calc(100vh - 140px);
    background: #fff; border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    display: flex; flex-direction: column; overflow: hidden;
    opacity: 0; visibility: hidden; transform: translateY(20px) scale(0.96);
    transition: all var(--transition-base);
    border: 1px solid var(--border-light);
}
.ai-widget-panel.active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.ai-widget-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--green2) 0%, var(--forest) 100%);
    color: #fff;
}
.ai-widget-title { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 0.98rem; }
.ai-widget-title i { color: var(--amber2); }
.ai-widget-actions { display: flex; align-items: center; gap: 6px; }
.ai-widget-expand, .ai-widget-close {
    background: rgba(255, 255, 255, 0.15); border: none; color: #fff;
    width: 30px; height: 30px; border-radius: 8px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; font-size: 0.85rem; transition: background var(--transition-fast);
}
.ai-widget-expand:hover, .ai-widget-close:hover { background: rgba(255, 255, 255, 0.3); }

.ai-widget-messages {
    flex: 1; overflow-y: auto; padding: 16px;
    display: flex; flex-direction: column; gap: 12px;
    background: var(--bg-secondary);
}

.ai-msg {
    max-width: 88%; padding: 10px 14px; border-radius: 14px;
    font-size: 0.9rem; line-height: 1.5; word-wrap: break-word;
}
.ai-msg-user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--green2) 0%, var(--green) 100%);
    color: #fff; border-bottom-right-radius: 4px;
}
.ai-msg-assistant {
    align-self: flex-start; background: #fff; color: var(--text-dark);
    border: 1px solid var(--border-light); border-bottom-left-radius: 4px;
}
.ai-msg-error {
    align-self: flex-start; background: #FEF2F2; color: #991B1B;
    border: 1px solid #FECACA; border-bottom-left-radius: 4px;
}
.ai-msg-assistant p, .ai-msg-assistant ul, .ai-msg-assistant ol { margin: 0 0 8px 0; }
.ai-msg-assistant p:last-child, .ai-msg-assistant ul:last-child, .ai-msg-assistant ol:last-child { margin-bottom: 0; }
.ai-msg-assistant ul, .ai-msg-assistant ol { padding-left: 20px; }
.ai-msg-assistant li { margin-bottom: 3px; }
.ai-msg-assistant h3, .ai-msg-assistant h4, .ai-msg-assistant h5, .ai-msg-assistant h6 {
    margin: 6px 0 4px 0; font-family: var(--font-sans); font-weight: 700; font-size: 0.95rem;
}
.ai-msg-assistant code {
    background: var(--bg-tertiary); padding: 1px 5px; border-radius: 4px; font-size: 0.85em;
}

.ai-widget-input {
    display: flex; align-items: flex-end; gap: 8px; padding: 12px;
    border-top: 1px solid var(--border-light); background: #fff;
}
.ai-widget-input textarea {
    flex: 1; resize: none; border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md); padding: 9px 12px;
    font-family: var(--font-sans); font-size: 0.9rem; line-height: 1.4;
    max-height: 120px; outline: none; transition: border-color var(--transition-fast);
}
.ai-widget-input textarea:focus { border-color: var(--green3); }
.ai-widget-input button {
    width: 40px; height: 40px; flex-shrink: 0; border: none; border-radius: 50%;
    background: linear-gradient(135deg, var(--green2) 0%, var(--forest) 100%);
    color: #fff; cursor: pointer; font-size: 0.95rem;
    display: flex; align-items: center; justify-content: center;
    transition: transform var(--transition-fast);
}
.ai-widget-input button:hover { transform: scale(1.08); }
.ai-widget-input button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.ai-widget-input button.ai-stop { background: linear-gradient(135deg, #e23b3b 0%, #b81d1d 100%); }

@media (max-width: 768px) {
    .ai-widget { bottom: 16px; right: 16px; }
    .ai-widget-panel { height: calc(100vh - 120px); bottom: 72px; }
}

/* ── Page dédiée Assistant IA ── */
.assistant-page {
    display: flex; gap: 0;
    height: calc(100vh - 104px);
    max-width: 1400px; margin: 0 auto;
    background: #fff; border: 1px solid var(--border-light);
    border-radius: var(--radius-lg); overflow: hidden;
    margin-top: 1.5rem; margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.assistant-sidebar {
    width: 280px; flex-shrink: 0; background: var(--bg-secondary);
    border-right: 1px solid var(--border-light);
    display: flex; flex-direction: column; padding: 16px;
}
.assistant-new-btn {
    width: 100%; padding: 12px; border: none; border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--green2) 0%, var(--forest) 100%);
    color: #fff; font-weight: 700; font-size: 0.92rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: transform var(--transition-fast); margin-bottom: 16px;
}
.assistant-new-btn:hover { transform: translateY(-1px); }
.assistant-conv-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.assistant-conv-empty { color: var(--text-light); font-size: 0.85rem; text-align: center; padding: 20px 8px; }
.assistant-conv-item {
    display: flex; align-items: center; gap: 8px; padding: 10px 12px;
    border-radius: var(--radius-md); cursor: pointer; background: transparent;
    transition: background var(--transition-fast); border: 1px solid transparent;
}
.assistant-conv-item:hover { background: var(--bg-tertiary); }
.assistant-conv-item.active { background: #fff; border-color: var(--border-color); box-shadow: var(--shadow-sm); }
.assistant-conv-title {
    flex: 1; font-size: 0.86rem; color: var(--text-dark); font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.assistant-conv-del,
.assistant-conv-regen,
.assistant-conv-rename {
    background: none; border: none; color: var(--text-light); cursor: pointer;
    opacity: 0; transition: opacity var(--transition-fast), color var(--transition-fast);
    padding: 4px; font-size: 0.8rem;
}
.assistant-conv-item:hover .assistant-conv-del,
.assistant-conv-item:hover .assistant-conv-regen,
.assistant-conv-item:hover .assistant-conv-rename { opacity: 1; }
.assistant-conv-del:hover { color: #dc2626; }
.assistant-conv-regen:hover { color: var(--primary-color, #2563eb); }
.assistant-conv-regen.loading { opacity: 1; color: var(--primary-color, #2563eb); cursor: default; }
.assistant-conv-rename:hover { color: var(--primary-color, #2563eb); }
.assistant-conv-rename-input {
    flex: 1; min-width: 0; font-size: 0.86rem; font-weight: 600;
    color: var(--text-dark); font-family: inherit;
    padding: 4px 8px; border: 1px solid var(--primary-color, #2563eb);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: none;
}
.assistant-conv-item.renaming { cursor: default; background: var(--bg-tertiary); }
.assistant-conv-item.renaming .assistant-conv-del,
.assistant-conv-item.renaming .assistant-conv-rename { opacity: 0; pointer-events: none; }

.assistant-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.assistant-header {
    display: flex; align-items: center; gap: 12px; padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}
.assistant-sidebar-toggle {
    display: none; background: var(--bg-tertiary); border: none; cursor: pointer;
    width: 38px; height: 38px; border-radius: 8px; color: var(--text-dark);
}
.assistant-header-title { display: flex; align-items: center; gap: 12px; }
.assistant-header-title > i {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--green2) 0%, var(--forest) 100%);
    color: var(--amber2); display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.assistant-header-title h1 { font-family: var(--font-serif); font-size: 1.35rem; color: var(--forest); margin: 0; }
.assistant-header-title p { font-size: 0.82rem; color: var(--text-light); margin: 0; }

.assistant-messages {
    flex: 1; overflow-y: auto; padding: 24px;
    display: flex; flex-direction: column; gap: 18px; background: var(--bg-secondary);
}

.assistant-welcome { margin: auto; text-align: center; max-width: 560px; padding: 20px; }
.assistant-welcome-icon {
    width: 72px; height: 72px; margin: 0 auto 18px;
    background: linear-gradient(135deg, var(--green2) 0%, var(--forest) 100%);
    border-radius: 20px; display: flex; align-items: center; justify-content: center;
    color: var(--amber2); font-size: 1.8rem;
}
.assistant-welcome h2 { font-family: var(--font-serif); color: var(--forest); font-size: 1.6rem; margin-bottom: 8px; }
.assistant-welcome p { color: var(--text-medium); margin-bottom: 22px; }
.assistant-suggestions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.assistant-suggestion {
    background: #fff; border: 1px solid var(--border-color); border-radius: var(--radius-md);
    padding: 12px 14px; text-align: left; cursor: pointer; font-size: 0.86rem;
    color: var(--text-dark); font-weight: 600; transition: all var(--transition-fast);
}
.assistant-suggestion:hover { border-color: var(--green3); background: var(--bg-tertiary); transform: translateY(-1px); }

.assistant-msg { display: flex; gap: 12px; max-width: 820px; }
.assistant-msg-user { flex-direction: row-reverse; align-self: flex-end; }
.assistant-msg-avatar {
    width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.9rem;
}
.assistant-msg-assistant .assistant-msg-avatar { background: linear-gradient(135deg, var(--green2) 0%, var(--forest) 100%); color: var(--amber2); }
.assistant-msg-user .assistant-msg-avatar { background: var(--amber); }
.assistant-msg-error .assistant-msg-avatar { background: #dc2626; }
.assistant-msg-bubble {
    padding: 12px 16px; border-radius: 14px; font-size: 0.95rem; line-height: 1.6;
    background: #fff; border: 1px solid var(--border-light); color: var(--text-dark);
}
.assistant-msg-user .assistant-msg-bubble {
    background: linear-gradient(135deg, var(--green2) 0%, var(--green) 100%); color: #fff; border: none;
}
.assistant-msg-error .assistant-msg-bubble { background: #FEF2F2; color: #991B1B; border-color: #FECACA; }
.assistant-msg-bubble p, .assistant-msg-bubble ul, .assistant-msg-bubble ol { margin: 0 0 10px 0; }
.assistant-msg-bubble p:last-child, .assistant-msg-bubble ul:last-child, .assistant-msg-bubble ol:last-child { margin-bottom: 0; }
.assistant-msg-bubble ul, .assistant-msg-bubble ol { padding-left: 22px; }
.assistant-msg-bubble li { margin-bottom: 4px; }
.assistant-msg-bubble h3, .assistant-msg-bubble h4, .assistant-msg-bubble h5 {
    margin: 8px 0 5px 0; font-weight: 700; font-size: 1rem; font-family: var(--font-sans);
}
.assistant-msg-bubble code { background: var(--bg-tertiary); padding: 1px 6px; border-radius: 5px; font-size: 0.88em; }

.assistant-input {
    display: flex; align-items: flex-end; gap: 10px; padding: 16px 20px 8px;
    border-top: 1px solid var(--border-light); background: #fff;
}
.assistant-input textarea {
    flex: 1; resize: none; border: 1.5px solid var(--border-color); border-radius: var(--radius-md);
    padding: 12px 16px; font-family: var(--font-sans); font-size: 0.95rem; line-height: 1.5;
    max-height: 160px; outline: none; transition: border-color var(--transition-fast);
}
.assistant-input textarea:focus { border-color: var(--green3); }
.assistant-input button {
    width: 46px; height: 46px; flex-shrink: 0; border: none; border-radius: 50%;
    background: linear-gradient(135deg, var(--green2) 0%, var(--forest) 100%);
    color: #fff; cursor: pointer; font-size: 1rem;
    display: flex; align-items: center; justify-content: center; transition: transform var(--transition-fast);
}
.assistant-input button:hover { transform: scale(1.08); }
.assistant-input button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.assistant-input button.ai-stop { background: linear-gradient(135deg, #e23b3b 0%, #b81d1d 100%); }
.assistant-disclaimer { font-size: 0.72rem; color: var(--text-light); text-align: center; padding: 0 20px 14px; margin: 0; }

@media (max-width: 768px) {
    .assistant-page { height: calc(100vh - 80px); margin: 0; border-radius: 0; border-left: none; border-right: none; }
    .assistant-sidebar {
        position: absolute; left: 0; top: 0; bottom: 0; z-index: 20;
        transform: translateX(-100%); transition: transform var(--transition-base);
    }
    .assistant-sidebar.open { transform: translateX(0); box-shadow: var(--shadow-xl); }
    .assistant-sidebar-toggle { display: flex; align-items: center; justify-content: center; }
    .assistant-suggestions { grid-template-columns: 1fr; }
    .assistant-msg { max-width: 100%; }
}
