
/* Encadré coordonnées calculateurs */
.contact-info-highlight {
    background: #fff;
    border-radius: 24px;
    max-width: 400px;
    margin: 2.5rem auto 2.5rem auto;
    box-shadow: 0 8px 24px var(--shadow);
    border: 1px solid rgba(0,0,0,0.06);
    padding: 2.5rem 2rem 2rem 2rem;
    text-align: center;
}
.contact-info-highlight h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.7rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    font-family: 'Inter','Segoe UI',Arial,sans-serif;
}
.contact-info-highlight h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    text-align: center;
    margin-top: 1.5rem;
}
.contact-info-highlight p {
    color: var(--text-light);
    margin-bottom: 0.5em;
    text-align: center;
}
/* Contact form harmonisé */
.contact-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 10px var(--shadow);
    margin-bottom: 2rem;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--text-dark);
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-light);
    color: var(--text-dark);
    box-sizing: border-box;
}
.form-group textarea {
    min-height: 150px;
    resize: vertical;
}
.submit-btn {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
    box-shadow: 0 2px 10px var(--shadow);
}
.submit-btn:hover {
    background-color: var(--primary-color);
}
.pagination {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2.5rem 0 1.5rem 0;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}
.pagination-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    list-style: none;
    gap: 0.7rem;
    padding: 0;
    margin: 0;
}
.pagination-list li {
    display: flex;
    align-items: center;
}
.pagination-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6em 1.2em;
    border-radius: 8px;
    background: var(--white);
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px var(--shadow);
    border: 1px solid rgba(30,58,138,0.08);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    min-width: 2.2em;
    text-align: center;
    user-select: none;
    cursor: pointer;
    font-size: 1.08em;
}
.pagination-list a.active,
.pagination-list a:focus,
.pagination-list a:hover {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 16px var(--shadow-md);
    outline: none;
}
.pagination-list .pagination-prev,
.pagination-list .pagination-next {
    font-weight: 700;
    color: var(--primary-dark);
    background: var(--bg-light);
    border: 1px solid rgba(30,58,138,0.06);
}
.pagination-list .pagination-prev.disabled,
.pagination-list .pagination-next.disabled {
    pointer-events: none;
    opacity: 0.5;
    background: #f3f3f3;
    color: #aaa;
    border: 1px solid #eee;
}
.pagination-list a.disabled {
    pointer-events: none;
    opacity: 0.5;
    background: #f3f3f3;
    color: #aaa;
    border: 1px solid #eee;
}
.pagination-ellipsis {
    display: inline-block;
    min-width: 1.5em;
    text-align: center;
    color: #bbb;
    font-size: 1.1em;
    padding: 0.7em 0.5em;
    user-select: none;
}
/* Pagination professionnelle et transversale */
.pagination {
    display: flex;
    justify-content: center;
    margin: 2.5rem 0 1.5rem 0;
    width: 100%;
}
.pagination-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}
.pagination-list li {
    display: inline;
}
.pagination-list a {
    display: inline-block;
    padding: 0.7em 1.3em;
    border-radius: 10px;
    background: var(--white);
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px var(--shadow);
    border: 1px solid rgba(30,58,138,0.08);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    min-width: 2.5em;
    text-align: center;
    user-select: none;
}
.pagination-list a.active,
.pagination-list a:hover,
.pagination-list .pagination-page.active {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 16px var(--shadow-md);
}
.pagination-list .pagination-prev,
.pagination-list .pagination-next {
    font-weight: 700;
    color: var(--primary-dark);
    background: var(--bg-light);
    border: 1px solid rgba(30,58,138,0.06);
}
.pagination-list .pagination-prev:hover,
.pagination-list .pagination-next:hover {
    background: var(--primary-color);
    color: var(--white);
}
.pagination-list a.disabled {
    pointer-events: none;
    opacity: 0.5;
    background: #f3f3f3;
    color: #aaa;
    border: 1px solid #eee;
}
/* Positionnement du menu déroulant */
.nav-menu .dropdown-menu {
    position: absolute;
    left: 0;
    top: 100%;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-radius: 0 0 8px 8px;
    z-index: 100;
    padding: 0.5em 0;
}
.nav-menu .dropdown .dropdown-menu {
    display: none;
}
.nav-menu .dropdown.open .dropdown-menu {
    display: block;
}
.nav-menu .dropdown-menu li {
    width: 100%;
}
.nav-menu .dropdown-menu a {
    display: block;
    padding: 0.7em 1.5em;
    color: var(--primary-color, #1E3A8A);
    text-decoration: none;
    background: none;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}
.nav-menu .dropdown-menu a:hover,
.nav-menu .dropdown-menu a:focus {
    background: var(--primary-light, #3B82F6);
    color: #fff;
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Palette neutre (bleu/gris) */
    --primary-color: #1E3A8A;
    --primary-dark: #172554;
    --primary-light: #3B82F6;
    --secondary-color: #334155;
    --secondary-dark: #1F2937;
    --secondary-light: #64748B;
    --primary-rgb: 30, 58, 138;
    --secondary-rgb: 51, 65, 85;

    --text-dark: #0F172A;
    --text-light: #475569;
    --text-muted: #64748B;
    --bg-light: #F1F5F9;
    --bg-gradient: linear-gradient(180deg, var(--white) 0%, var(--bg-light) 100%);
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-md: rgba(0, 0, 0, 0.12);
    --shadow-lg: rgba(0, 0, 0, 0.2);
    --shadow-xl: rgba(0, 0, 0, 0.3);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    --gradient-soft: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--secondary-rgb), 0.05) 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--bg-gradient);
    overflow-x: hidden;
}

/* Animations globales */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation - Style institutionnel */
header {
    background: var(--white);
    box-shadow: 0 2px 12px var(--shadow);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.2s ease, background 0.2s ease;
}

header.scrolled {
    box-shadow: 0 4px 18px var(--shadow-md);
    background: var(--white);
}

.navbar {
    padding: 1rem 0;
    transition: padding 0.3s ease;
}

header.scrolled .navbar {
    padding: 0.85rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    transition: all 0.3s ease;
}

.logo h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.25s ease;
    border-radius: 2px;
}

.logo:hover h1::after {
    width: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 0;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.2s ease;
    border-radius: 2px;
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(var(--primary-rgb), 0.08);
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Hero Section - Sobre et institutionnelle */
.hero {
    background: var(--white);
    color: var(--text-dark);
    padding: 4.5rem 0 3.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 8px 30px var(--shadow);
    margin-top: 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--primary-color);
    opacity: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 2.6rem;
    margin-bottom: 1.2rem;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: none;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 1;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    text-shadow: none;
    color: var(--text-light);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.home-disclaimer {
    margin-top: 1.25rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.search-box {
    display: flex;
    max-width: 650px;
    margin: 0 auto;
    gap: 12px;
    background: var(--white);
    padding: 10px;
    border-radius: 14px;
    box-shadow: 0 8px 24px var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.search-box input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    background: var(--bg-light);
    transition: all 0.3s ease;
    outline: none;
}

.search-box input:focus {
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.14);
}

.search-box button {
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 22px rgba(var(--primary-rgb), 0.18);
    position: relative;
    overflow: hidden;
}

.search-box button::before {
    content: none;
}

.search-box button:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
    box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.22);
}


/* Main Content Sections */
main {
    padding: 3rem 0;
    position: relative;
}

section {
    margin-bottom: 3rem;
    animation: fadeIn 1s ease-out;
}

h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 800;
    position: relative;
    display: inline-block;
    width: 100%;
    letter-spacing: -0.5px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Introduction Section */
.intro-section {
    background: var(--white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 8px 24px var(--shadow);
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}

.intro-section::before {
    content: none;
}

.intro-section p {
    font-size: 1.15rem;
    color: var(--text-light);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* PMMP Portal CTA (reusable) */
.portal-cta {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 24px var(--shadow);
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.portal-cta h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.portal-cta p {
    color: var(--text-light);
    margin: 0;
    max-width: 700px;
}

.portal-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.mini-note {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.75rem;
}

.category-anchor {
    scroll-margin-top: 120px;
}

/* Article Blocks (reusable) */
.article {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 24px var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.article p {
    text-align: justify;
    -webkit-text-align-last: left;
    text-align-last: left;
}

.article-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.article h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 800;
}

/* Categories Grid - Ultra moderne */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.category-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 8px 24px var(--shadow);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.category-card::before {
    content: none;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px var(--shadow-md);
    border-color: rgba(0, 0, 0, 0.12);
}

.category-card > * {
    position: relative;
    z-index: 1;
}

.category-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    filter: none;
}

.category-card:hover .category-icon {
    transform: scale(1.05);
}

.category-card h3 {
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.category-card:hover h3 {
    transform: none;
}

.category-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 12px;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    font-weight: 600;
    box-shadow: 0 8px 22px rgba(var(--primary-rgb), 0.18);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn::before {
    content: none;
}

.btn:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
    box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.22);
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.btn-small {
    display: inline-block;
    padding: 0.6rem 1.3rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.18);
    font-weight: 600;
}

.btn-small:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.22);
}

/* Recent Tenders - Moderne avec micro-animations */
.tender-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tender-item {
    background: var(--white);
    padding: 2rem;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 8px 24px var(--shadow);
    border-radius: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.tender-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: var(--primary-color);
    transition: height 0.25s ease;
}

.tender-item:hover::before {
    height: 100%;
}

.tender-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px var(--shadow-md);
    border-color: rgba(0, 0, 0, 0.12);
}

.tender-date {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(var(--primary-rgb), 0.08);
    border-radius: 20px;
}

.tender-item h3 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.tender-item:hover h3 {
    color: var(--primary-color);
}

.tender-item p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.tender-category {
    display: inline-block;
    background: var(--bg-light);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.tender-category:hover {
    background: var(--white);
    transform: translateY(-1px);
}

/* Info Section */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.info-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 24px var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.info-card::before {
    content: none;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px var(--shadow-md);
    border-color: rgba(0, 0, 0, 0.12);
}

.info-card > * {
    position: relative;
    z-index: 1;
}

.info-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
}

/* Calculateurs Highlight Section - Sobre */
.calculateurs-highlight {
    background: var(--white);
    padding: 4rem 0;
    margin: 2rem 0 1.25rem;
    border-radius: 32px;
    box-shadow: 0 12px 30px var(--shadow-md);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Moins d'espace autour des pubs in-feed entre sections */
.ad-container.ad-infeed {
    margin: 1.25rem auto;
}

.calculateurs-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--primary-color);
}

.highlight-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.highlight-icon {
    display: none;
}

.highlight-text {
    flex: 1;
    color: var(--text-dark);
}

.highlight-text h2 {
    color: var(--text-dark);
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    text-align: left;
    font-weight: 900;
    text-shadow: none;
    letter-spacing: -0.5px;
}

.highlight-text h2::after {
    background: var(--primary-color);
    left: 0;
    transform: translateX(0);
}

.highlight-text p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 1;
    line-height: 1.7;
    text-shadow: none;
    color: var(--text-light);
}

.highlight-text .btn {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.22);
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

.highlight-text .btn::before {
    background: var(--gradient-primary);
}

.highlight-text .btn:hover {
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Footer - Moderne et épuré */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: var(--white);
    padding: 4rem 0 1.5rem;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.5rem;
    }
    .footer-col {
        text-align: center;
    }
    .footer-col h4 {
        display: inline-block;
        margin: 0 auto 1.5rem auto;
        padding-bottom: 0.8rem;
        border-bottom: 3px solid var(--primary-color);
    }
    .footer-col h4::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    .footer-col h4 {
        display: inline-block;
        font-size: 1rem;
        margin: 0 auto 1rem auto;
        padding-bottom: 0.6rem;
        border-bottom: 3px solid var(--primary-color);
    }
    .footer-col h4::after {
        display: none;
    }
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
    transition: transform 0.3s ease;
}

.footer-col ul li:hover {
    transform: translateX(5px);
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-col a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-col a:hover::before {
    left: -15px;
    opacity: 1;
}

.footer-col a:hover {
    color: var(--white);
    text-shadow: 0 0 10px var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        position: absolute;
        left: 0;
        top: 24px;
        z-index: 1001;
    }
    .logo {
        margin-left: 40px;
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 100vw;
        text-align: center;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
        padding: 2rem 0;
        border-bottom: 3px solid var(--primary-color);
        z-index: 1000;
        display: flex;
    }
    .nav-menu.active {
        left: 0;
        display: flex;
    }
    .hero {
        padding: 4rem 0 3rem;
    }
    .hero h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    .search-box {
        flex-direction: column;
        padding: 6px;
        gap: 8px;
    }
    .search-box button {
        padding: 0.9rem 2rem;
    }
    .category-grid,
    .info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .ad-infeed {
        float: none;
        margin: 2rem auto;
    }
    .ad-sticky {
        position: static;
        margin: 2rem 0;
    }
    .highlight-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 0 1.5rem;
    }
    .highlight-text h2 {
        text-align: center;
        font-size: 2rem;
    }
    .highlight-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .highlight-icon {
        font-size: 4rem;
    }
    h2 {
        font-size: 2rem;
    }
    .intro-section {
        padding: 2rem 1.5rem;
    }
    .tender-item {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.3rem;
    }

    .hero h2 {
        font-size: 1.7rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Maintenir la justification du texte en mobile */
    .text-justify,
    #actus-desc {
        text-align: justify;
        text-justify: inter-word;
        hyphens: auto;
    }

    /* FORCER la justification des articles en mobile */
    .article {
        padding: 0.75rem 0.5rem !important;
    }

    .article p {
        text-align: justify !important;
    }

    h2 {
        font-size: 1.7rem;
    }

    .category-card,
    .info-card {
        padding: 2rem 1.5rem;
    }

    .calculateurs-highlight {
        border-radius: 20px;
        margin: 3rem 0;
    }

    .highlight-text h2 {
        font-size: 1.7rem;
    }

    .highlight-text p {
        font-size: 1rem;
    }

    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Scroll reveal animations */
@media (prefers-reduced-motion: no-preference) {
    .category-card,
    .tender-item,
    .info-card {
        opacity: 0;
        transform: translateY(30px);
        animation: fadeIn 0.8s ease-out forwards;
    }

    .category-card:nth-child(1) { animation-delay: 0.1s; }
    .category-card:nth-child(2) { animation-delay: 0.2s; }
    .category-card:nth-child(3) { animation-delay: 0.3s; }
    .category-card:nth-child(4) { animation-delay: 0.4s; }
    .category-card:nth-child(5) { animation-delay: 0.5s; }
    .category-card:nth-child(6) { animation-delay: 0.6s; }

    .tender-item:nth-child(1) { animation-delay: 0.1s; }
    .tender-item:nth-child(2) { animation-delay: 0.2s; }
    .tender-item:nth-child(3) { animation-delay: 0.3s; }
    .tender-item:nth-child(4) { animation-delay: 0.4s; }

    .info-card:nth-child(1) { animation-delay: 0.1s; }
    .info-card:nth-child(2) { animation-delay: 0.2s; }
    .info-card:nth-child(3) { animation-delay: 0.3s; }
}

/* Loading Animation pour contenu dynamique */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(var(--primary-rgb), 0.25);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth scrolling pour ancres */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Optimisation performance - GPU acceleration */
.category-card,
.tender-item,
.btn,
.nav-menu a,
.search-box button,
.ad-placeholder {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Marche-Cadre result styling */
.prixref-design .result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(16,24,40,0.04);
    margin-bottom: 10px;
    border: 1px solid rgba(15,23,42,0.04);
}
.prixref-design .result-item .result-label {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.96rem;
}
.prixref-design .result-item .result-value {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1.04rem;
    text-align: right;
    min-width: 140px;
}
.prixref-design .result-item .result-info {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.88rem;
}
.prixref-design .plafond-block {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.prixref-design .plafond-block .plafond {
    flex: 1 1 240px;
    background: linear-gradient(180deg, rgba(16,24,40,0.02), rgba(255,255,255,0));
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(15,23,42,0.03);
}
.badge-success { background:#e6f4ea; color:#165f2c; padding:4px 8px; border-radius:999px; font-weight:700; }
.badge-danger { background:#fff1f2; color:#9b1c1c; padding:4px 8px; border-radius:999px; font-weight:700; }

/* Small responsive tweaks */
@media (max-width:720px) {
    .prixref-design .result-item { flex-direction: column; align-items: flex-start; }
    .prixref-design .result-item .result-value { min-width: auto; margin-top:6px; }
    .prixref-design .plafond-block .plafond { flex: 1 1 100%; }
}

/* Calculator result - unified styles */
.calc-result {
    background: var(--white);
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.06);
    margin-top: 12px;
    color: var(--text-dark);
    font-family: Roboto, 'Segoe UI', Arial, sans-serif;
}
.calc-summary {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.calc-summary-item {
    min-width: 180px;
}
.calc-label {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}
.calc-value {
    font-size: 1.08em;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--text-dark);
}
.calc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.calc-badge {
    font-size: 0.95rem;
    color: #555;
}
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
}
.badge-success {
    background: #e9f7ee;
    color: #197d19;
    border: 1px solid rgba(25,125,25,0.08);
}
.badge-danger {
    background: #fff3f3;
    color: #a94442;
    border: 1px solid rgba(169,68,66,0.08);
}
.result-warning {
    margin-top: 10px;
    padding: 12px;
    background: #fff7f7;
    border-left: 4px solid #d9534f;
    border-radius: 6px;
    color: #a94442;
    font-weight: 600;
}
.result-info {
    color: #555;
    font-size: 0.95rem;
}
.calc-separator {
    border-top: 1px solid rgba(15,23,42,0.06);
    margin-top: 12px;
    padding-top: 12px;
}

/* Harmonisation des encadrés accueil */
.calculateurs-highlight,
.actus-highlight,
.contact-highlight,
.hero {
    border-radius: 24px !important;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 8px 24px var(--shadow);
    border: 1px solid rgba(0,0,0,0.06);
}

.actus-highlight,
.contact-highlight {
    padding: 4rem 0;
}

.hero {
    padding: 4rem 0 3.5rem 0;
}

/* ========== UTILITÉ CLASSES - Réduction des styles inline ========== */

/* Alignement et texte */
.text-center {
    text-align: center;
}

.text-justify {
    text-align: justify;
}

.text-left {
    text-align: left;
}

/* Titres réutilisables */
.heading-primary {
    color: var(--primary-color);
    font-weight: 900;
    font-family: 'Inter','Segoe UI',Arial,sans-serif;
    letter-spacing: -1px;
}

.heading-primary.h1-style {
    font-size: 2.3rem;
    margin-bottom: 1.2rem;
}

.heading-primary.h2-style {
    font-size: 2rem;
    margin-bottom: 0.7rem;
}

.heading-secondary {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 800;
    margin: 2.2rem 0 1.1rem 0;
    font-family: 'Inter','Segoe UI',Arial,sans-serif;
}

/* Cards et sections */
.section-card {
    background: #fff;
    border-radius: 24px;
    max-width: 900px;
    margin: 3rem auto 2.5rem auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.06);
    padding: 3.5rem 2rem 3rem 2rem;
}

.contact-box {
    margin: 0 auto;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background: #f8f9fa;
    padding: 2rem 1.2rem;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Paragraphes et contenu */
.paragraph-primary {
    text-align: justify;
    max-width: 700px;
    margin: 0 auto 2em auto;
    font-size: 1.15rem;
    color: var(--text-light);
    font-family: 'Inter','Segoe UI',Arial,sans-serif;
    line-height: 1.8;
}

.paragraph-secondary {
    text-align: justify;
    max-width: 700px;
    margin: 0 auto 2em auto;
    font-size: 1.08rem;
    color: var(--text-light);
    font-family: 'Inter','Segoe UI',Arial,sans-serif;
    line-height: 1.7;
}

/* Listes stylisées */
.list-styled {
    list-style: square inside;
    margin: 0 auto 2em auto;
    padding: 0;
    max-width: 700px;
    text-align: justify;
    font-size: 1.08rem;
    color: var(--text-light);
    font-family: 'Inter','Segoe UI',Arial,sans-serif;
    line-height: 1.7;
}

.list-styled li {
    margin-bottom: 0.8em;
}

/* Conteneur flexible */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}