:root {
    --primary: #2c3e50;
    --secondary: #e67e22;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --success: #27ae60;
    --mrh-primary: #003366;
    --mrh-secondary: #FF5733;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    padding-top: 80px;
    background-color: #fff;
    line-height: 1.6; /* Ajout */
}

.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
}

.hero-section {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('./HEROMRH.avif');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    margin-bottom: 60px;
    text-align: center;
}

.highlight {
    background-color: var(--secondary);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 25px;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.section-title {
    position: relative;
    margin-bottom: 40px;
    font-weight: 700;
}

.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin-top: 15px;
}

.offer-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
}

.offer-card:hover {
    transform: translateY(-10px);
}

.card-header {
    color: white;
    padding: 25px 20px;
    text-align: center;
}

.essential .card-header {
    background-color: #95a5a6;
}

.executive .card-header {
    background-color: #7f8c8d;
}

.premium .card-header {
    background-color: #34495e;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 15px 0;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

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

.feature-list i {
    color: var(--secondary);
    margin-right: 10px;
}

.btn-primary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    padding: 12px 30px;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #d35400;
    border-color: #d35400;
}

.btn-outline-primary {
    border-color: var(--secondary);
    color: var(--secondary);
    padding: 12px 30px;
    font-weight: 600;
}

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

.comparison-table th, .comparison-table td {
    text-align: center;
    vertical-align: middle;
}

.included {
    color: var(--success);
    font-size: 1.2rem;
}

.on-request {
    color: var(--secondary);
    font-size: 1.2rem;
}

.pack-card {
    border-left: 4px solid var(--secondary);
    padding: 20px;
    height: 100%;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.text-orange {
    color: var(--secondary) !important;
}

.why-us-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 10px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    height: 100%;
}

.why-us-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.why-us-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.cta-section {
    background-color: var(--primary);
    color: white;
    padding: 80px 0;
    text-align: center;
}

/* ===== NOUVEAUX SÉLECTEURS (Activités & Synergie) ===== */
.page-header {
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.9)), url('https://images.unsplash.com/photo-1557804506-669a67965ba0?ixlib=rb-4.0.3&auto=format&fit=crop&w=1974&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0 80px;
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

.activite-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.activite-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.activite-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.activite-header {
    padding: 25px 20px 15px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.activite-header h2 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.activite-header .sous-titre {
    color: #7f8c8d;
    font-weight: 500;
}

.activite-body {
    padding: 20px;
    flex: 1;
}

.activite-body p {
    color: #555;
    margin-bottom: 15px;
}

.activite-body ul {
    list-style: none;
    padding: 0;
}

.activite-body li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.activite-body li i {
    color: var(--secondary);
    width: 20px;
}

.activite-footer {
    padding: 0 20px 25px;
}

.badge-pole {
    display: inline-block;
    background: var(--secondary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.synergie-section {
    background-color: #f8f9fa;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    margin: 80px 0;
}

.synergie-section h2 {
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.synergie-section p {
    font-size: 1.2rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* ===== STYLES SPÉCIFIQUES AU BLOG (nouveaux + fusion) ===== */
.blog-hero {
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.9)), url('./HEROMRH.avif');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 50px 0;
    text-align: left;
    margin-bottom: 40px;
}

.blog-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.blog-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.card-blog-featured {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.card-blog-featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.text-mrh-primary {
    color: var(--mrh-primary);
}

.bg-mrh-secondary {
    background-color: var(--mrh-secondary);
}

/* Fusion des styles .blog-card (carrousel + grille) */
.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    margin-bottom: 30px;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 20px;
}

.blog-card-date {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.blog-card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
}

.blog-card-excerpt {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.blog-card-link {
    color: var(--mrh-primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.blog-card-link:hover {
    text-decoration: underline;
    color: var(--secondary);
}

/* Badges catégories */
.badge-category {
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
}

.badge-paie {
    background-color: #007bff;
    color: white;
}

.badge-droit {
    background-color: var(--mrh-secondary);
    color: white;
}

.badge-recrutement {
    background-color: #28a745;
    color: white;
}

.badge-management {
    background-color: #17a2b8;
    color: white;
}

/* Sidebar */
.blog-sidebar {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.blog-sidebar h4 {
    color: var(--mrh-primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary);
}

.sidebar-list {
    list-style: none;
    padding: 0;
}

.sidebar-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

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

.sidebar-list a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.sidebar-list a:hover {
    color: var(--secondary);
}

.sidebar-list .article-title {
    flex: 1;
    margin-right: 10px;
}

.popular-item {
    position: relative;
}

.popular-item:before {
    content: "🔥";
    position: absolute;
    left: -25px;
    top: 12px;
    font-size: 0.9em;
}

/* Newsletter */
.newsletter-box {
    background: linear-gradient(135deg, var(--mrh-primary) 0%, #004080 100%);
    color: white;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
}

.newsletter-box h4 {
    margin-bottom: 15px;
}

.newsletter-box p {
    margin-bottom: 20px;
}

.newsletter-box .form-control {
    margin-bottom: 15px;
}

/* Pagination */
.pagination .page-link {
    color: var(--mrh-primary);
}

.pagination .page-item.active .page-link {
    background-color: var(--mrh-primary);
    border-color: var(--mrh-primary);
}

/* Auteur et temps de lecture */
.author-info {
    display: flex;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.author-details h5 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.author-details p {
    margin-bottom: 0;
    color: #6c757d;
    font-size: 0.85rem;
}

.reading-time {
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 0.85rem;
}

.reading-time i {
    margin-right: 5px;
}

.filter-active {
    background-color: var(--secondary) !important;
    color: white !important;
}

/* Bannière */
.banner-wrapper {
    width: 100%;
    height: 445px;
    overflow: hidden;
    position: relative;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Bandeau publicitaire (blog) */
#bandeau-publicitaire-blog a {
    display: block !important;
    width: 100% !important;
    aspect-ratio: 3 / 4 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    position: relative !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
}

#bandeau-publicitaire-blog img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

#bandeau-publicitaire-blog span[style*="position: absolute"]:first-of-type {
    font-size: clamp(0.6rem, 4vw, 0.9rem) !important;
    padding: 3px 8px !important;
    top: 8px !important;
    left: 8px !important;
}

#bandeau-publicitaire-blog span[style*="position: absolute"]:nth-of-type(2) {
    font-size: clamp(0.45rem, 2.5vw, 0.65rem) !important;
    padding: 2px 8px !important;
    top: 38px !important;
    left: 8px !important;
}

#bandeau-publicitaire-blog div[style*="position: absolute"] span {
    font-size: clamp(0.7rem, 6vw, 0.9rem) !important;
    padding: 5px 10px !important;
    border-radius: 30px !important;
}

/* ===== SECTION BLOG (carrousel existant) ===== */
.blog-container {
    overflow: hidden;
    padding: 20px 0;
}

.blog-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
}

.blog-card-wrapper {
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
}

.blog-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.blog-nav-btn {
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    pointer-events: auto;
    z-index: 10;
}

.blog-nav-btn:hover {
    background: #007bff;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

/* ===== MODAL, TEAM, TESTIMONIALS, COOKIE, ETC. ===== */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    background-color: var(--primary);
    color: white;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.modal-footer {
    border-top: 1px solid #eee;
}

.selected-offer {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--secondary);
}

.offer-details {
    margin-bottom: 5px;
}

.pack-option {
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s;
}

.pack-option:hover {
    border-color: var(--secondary);
    background-color: #fff9f5;
}

.pack-option.selected {
    border-color: var(--secondary);
    background-color: #fff3e9;
}

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

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-total {
    font-weight: bold;
    border-top: 2px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
    font-size: 1.2rem;
}

.team-member {
    text-align: center;
    margin-bottom: 30px;
}

.team-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 5px solid #f8f9fa;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.testimonials-container {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 25px;
    margin: 0 15px;
    width: 350px;
    flex: 0 0 auto;
    background-color: white;
}

.testimonial-text {
    position: relative;
    padding: 20px 0;
    font-style: italic;
}

.testimonial-text:before {
    content: "\201C";
    font-size: 60px;
    color: #e67e22;
    opacity: 0.2;
    position: absolute;
    top: -10px;
    left: -10px;
    font-family: Arial;
}

.testimonial-author {
    margin-top: 20px;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.testimonial-nav button {
    background: var(--secondary);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 15px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--secondary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.rdv-button {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999;
    background-color: #00a2ff;
    color: white;
    border-radius: 50px;
    padding: 12px 25px;
    box-shadow: 0 4px 15px rgba(0, 162, 255, 0.3);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.rdv-button:hover {
    background-color: #0088cc;
    transform: translateY(-3px);
    color: white;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 40px 0 20px;
}

footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

footer a:hover {
    color: var(--secondary);
}

/* ===== BANNIÈRE DE CONSENTEMENT COOKIES ===== */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    padding: 1.5rem;
    border-top: 2px solid var(--color-accent, #e07b39);
    font-family: var(--font-primary, 'Inter', sans-serif);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-gray-800, #1e293b);
    flex: 1 1 300px;
    line-height: 1.6;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.cookie-btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    min-width: 140px;
}

.cookie-btn-accept {
    background-color: var(--color-accent, #e07b39);
    color: white;
    border-color: var(--color-accent, #e07b39);
}
.cookie-btn-accept:hover {
    background-color: var(--color-accent-hover, #c96a2d);
    border-color: var(--color-accent-hover, #c96a2d);
    transform: translateY(-2px);
}

.cookie-btn-refuse,
.cookie-btn-continue {
    background-color: transparent;
    color: var(--color-primary, #1e3a5f);
    border-color: var(--color-gray-400, #94a3b8);
}
.cookie-btn-refuse:hover,
.cookie-btn-continue:hover {
    background-color: var(--color-gray-200, #e2e8f0);
    border-color: var(--color-gray-600, #475569);
    transform: translateY(-2px);
}

.cookie-manage-link {
    text-align: center;
    margin: 1rem 0;
}
#manage-cookies {
    color: var(--color-accent, #e07b39);
    text-decoration: underline;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
}
#manage-cookies:hover {
    color: var(--color-accent-hover, #572d14);
}

.footer-links a#manage-cookies {
    color: inherit;
    text-decoration: none;
}
.footer-links a#manage-cookies:hover {
    color: inherit;
    opacity: 0.8;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 992px) {
    .blog-card-wrapper {
        flex: 0 0 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .display-4 {
        font-size: 2.2rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .highlight {
        font-size: 1.5rem;
        padding: 8px 20px;
    }
    
    .testimonial-card {
        width: 300px;
    }
    
    .rdv-button {
        bottom: 90px;
        left: 15px;
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .synergie-section {
        padding: 40px 20px;
    }

    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .cookie-buttons {
        justify-content: center;
    }
    .cookie-btn {
        width: 100%;
        max-width: 250px;
    }

    /* Nouveaux styles blog pour mobile */
    .banner-wrapper {
        height: 180px;
    }
    .blog-hero {
        padding: 60px 0;
    }
    .blog-hero h1 {
        font-size: 2.2rem;
    }
    .blog-hero p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .testimonial-card {
        width: 280px;
        margin: 0 10px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    #bandeau-publicitaire-blog span[style*="position: absolute"]:first-of-type {
        font-size: 0.5rem !important;
        padding: 2px 6px !important;
        top: 4px !important;
        left: 4px !important;
    }
    #bandeau-publicitaire-blog span[style*="position: absolute"]:nth-of-type(2) {
        font-size: 0.45rem !important;
        top: 28px !important;
        left: 4px !important;
    }
    #bandeau-publicitaire-blog div[style*="position: absolute"] span {
        font-size: 0.6rem !important;
        padding: 4px 8px !important;
    }
}