/* =========================================================================
   MARINE BEZIA ARCHITECTE - STYLESHEET
   ========================================================================= */

/* --- CSS VARIABLES (Warm & Modern Earthy Palette) --- */
:root {
    /* --- Light Theme (Default) --- */
    --primary: #9C6A5A;
    --primary-light: #B88574;
    --secondary: #2C3E35;
    --accent: #E8B983;
    --bg-color: #FDFBF7;
    --bg-light: #F4EBE1;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --nav-bg: rgba(253, 251, 247, 0.8);
    --card-bg: #ffffff;
    --border-color: rgba(0, 0, 0, 0.05);

    --border-radius: 12px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --logo-invert: 0;
}

[data-theme='dark'] {
    --primary: #B88574;
    /* Lighter terracotta for contrast */
    --primary-light: #9C6A5A;
    --secondary: #E8B983;
    /* Sand as secondary text color */
    --accent: #9C6A5A;
    --bg-color: #121815;
    /* Very deep forest black */
    --bg-light: #1A2520;
    /* Deep forest green */
    --text-dark: #E0E0E0;
    --text-light: #A0A0A0;
    --white: #121815;
    --nav-bg: rgba(18, 24, 21, 0.8);
    --card-bg: #1A2520;
    --border-color: rgba(255, 255, 255, 0.05);
    --glass-bg: rgba(26, 37, 32, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    --logo-invert: 1;
}

/* --- RESET & TYPOGRAPHY --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    color: var(--secondary);
    font-weight: 600;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-on-primary);
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(44, 62, 53, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* --- HEADER / NAVIGATION --- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

#main-header.scrolled {
    padding: 0.5rem 0;
}

.header-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    height: 50px;
    filter: invert(var(--logo-invert));
    transition: var(--transition), filter 0.3s ease;
}

#main-header.scrolled .nav-logo {
    height: 40px;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--text-dark);
    position: relative;
    text-transform: capitalize;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--secondary);
    border-radius: 3px;
    transition: var(--transition);
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
    animation: zoomBg 20s infinite alternate linear;
}

@keyframes zoomBg {
    from {
        transform: scale(1.05);
    }

    to {
        transform: scale(1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(44, 62, 53, 0.2), rgba(156, 106, 90, 0.3));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 2rem;
}

.hero-header-flex {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3rem !important;
    margin-bottom: 2rem !important;
}

.hero-logo {
    height: 220px !important;
    background: transparent !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.4)) invert(var(--logo-invert)) !important;
    transition: var(--transition), filter 0.3s ease !important;
}

.hero-logo:hover {
    transform: scale(1.05);
}

.hero-title {
    font-size: 4rem;
    color: var(--white);
    line-height: 1.1;
    text-align: left;
}

.hero-title span {
    font-size: 2rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- COMMON COMPONENTS --- */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title.left {
    text-align: left;
}

.divider {
    height: 3px;
    width: 80px;
    background-color: var(--primary);
    margin: 1rem auto;
}

.section-title.left .divider {
    margin: 1rem 0;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* --- PROJECTS SECTION --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
    display: block;
    /* Ensure visibility for filtering */
}

.project-card.hidden {
    display: none;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.project-img-wrapper {
    overflow: hidden;
    height: 250px;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    font-size: 1.4rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.project-budget {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-desc {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* --- ACCOMPAGNEMENT --- */
.accompagnement-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.quote {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-style: italic;
    color: var(--primary);
    border-left: 4px solid var(--accent);
    padding-left: 1.5rem;
    margin: 2rem 0;
}

.features-list {
    margin: 2rem 0;
}

.features-list li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-weight: bold;
}

.accompagnement-img img {
    border-radius: var(--border-radius);
    box-shadow: 20px 20px 0px var(--accent);
}

/* --- MATERIAUX BIOSOURCES --- */
.materiaux-content {
    text-align: center;
}

.lead-text {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    color: var(--secondary);
}

.materiaux-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.mat-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.mat-card:hover {
    transform: translateY(-5px);
    border-bottom: 4px solid var(--primary);
}

.mat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.mat-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* --- HONORAIRES --- */
.honoraires-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.check-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0 3rem 0;
}

.check-list li {
    position: relative;
    padding-left: 1.5rem;
}

.check-list li::before {
    content: '▪';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 1.5rem;
    line-height: 1;
}

.remuneration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.rem-card {
    background: var(--bg-color);
    padding: 1.5rem;
    border-left: 4px solid var(--primary);
    border-radius: 0 8px 8px 0;
}

.rem-card h4 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
}

/* --- CONTACT --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.contact-info {
    background: var(--secondary);
    color: var(--white);
    padding: 3rem;
}

.profil-card {
    text-align: center;
    margin-bottom: 2.5rem;
}

.profil-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem auto;
    border: 4px solid var(--accent);
}

.profil-card h3 {
    color: var(--white);
    margin-bottom: 0.2rem;
}

.profil-card .role {
    color: var(--accent);
    font-size: 0.9rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item .icon {
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 3rem;
}

.social-btn {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--accent);
    color: var(--secondary);
}

.contact-form-container {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    transition: var(--transition);
    background-color: var(--bg-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(156, 106, 90, 0.1);
}

/* --- FOOTER --- */
.main-footer {
    background: #1A2520;
    color: rgba(255, 255, 255, 0.7);
    text-align: left;
    padding: 2rem 0;
}

.footer-brand-flex {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-logo {
    height: 60px;
    filter: invert(var(--logo-invert));
}

.footer-brand-flex strong {
    font-size: 1.4rem;
    font-family: 'Playfair Display', serif;
}

.footer-bottom p {
    font-size: 0.9rem;
}

/* --- THEME TOGGLE --- */
.theme-toggle {
    background: var(--bg-light);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary);
    transition: var(--transition);
    border: 1px solid var(--glass-border);
}

.theme-toggle:hover {
    transform: rotate(30deg);
    background: var(--primary);
    color: var(--white);
}

/* --- PROJECT FILTERS --- */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* --- ANIMATIONS --- */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-up.reveal {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* --- UTILITIES --- */
.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 3rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

/* --- ARTICLE STYLES --- */
.article-header {
    padding: 10rem 0 5rem 0;
    background: var(--bg-light);
    text-align: center;
}

.article-content {
    max-width: 900px;
    margin: 4rem auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-hero-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
}

.article-section-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 1.2rem 0 1.5rem 0;
}

/* --- ARCHI ACTU PAGE --- */
.actu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.actu-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.actu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.actu-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.actu-card:hover .actu-card-img {
    transform: scale(1.04);
}

.actu-card-img-wrapper {
    overflow: hidden;
}

.actu-card-body {
    padding: 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.actu-tag {
    display: inline-block;
    background: var(--bg-light);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    margin-bottom: 0.8rem;
}

.actu-card-body h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    margin-top: 0;
    color: var(--secondary);
    line-height: 1.4;
}

.actu-card-body p {
    font-size: 0.95rem;
    color: var(--text-light);
    flex: 1;
    margin-bottom: 1.5rem;
}

.actu-card-meta {
    font-size: 0.82rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.actu-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.actu-card-link:hover {
    gap: 0.8rem;
    color: var(--secondary);
}

/* Article full page */
.article-tag {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.35rem 1rem;
    border-radius: 30px;
    margin-bottom: 1.2rem;
}

.article-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.article-img-small {
    width: 100%;
    max-width: 500px;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    box-shadow: var(--box-shadow);
}

.article-media-row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.article-content h3 {
    margin-top: 3rem;
    color: var(--primary);
}

.comparison-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

.comp-item {
    padding: 2rem;
    border-radius: var(--border-radius);
    background: var(--white);
    box-shadow: var(--box-shadow);
}

.comp-item.wood {
    border-top: 5px solid var(--accent);
}

.comp-item.concrete {
    border-top: 5px solid #999;
}

.comp-item h4 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .comparison-box {
        grid-template-columns: 1fr;
    }
}

/* --- SOCIAL SHARING --- */
.actu-card {
    position: relative;
}

.card-share-buttons {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 10;
}

.actu-card:hover .card-share-buttons {
    opacity: 1;
    transform: translateX(0);
}

.share-btn-mini {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.share-btn-mini:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

/* Article Page Share Section */
.article-share-section {
    margin: 4rem 0;
    padding: 3rem 2rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .article-share-section {
    background: rgba(255, 255, 255, 0.03);
}

.article-share-section h4 {
    margin-bottom: 2rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--secondary);
}

.share-buttons-flex {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.share-btn-large {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    background: var(--white);
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.share-btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.share-btn-large svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

@media (max-width: 600px) {
    .share-buttons-flex {
        gap: 0.8rem;
    }
    .share-btn-large span {
        display: none;
    }
    .share-btn-large {
        padding: 0.8rem;
    }
}

/* --- TABLES & COMPARISONS --- */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: 3rem 0;
}

.comp-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.comp-table th,
.comp-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.comp-table th {
    background: var(--secondary);
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

.comp-table tr:last-child td {
    border-bottom: none;
}

.comp-table tr:hover {
    background: var(--bg-color);
}

.badge-bio {
    background: #e1f5fe;
    color: #0288d1;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-trad {
    background: #f5f5f5;
    color: #757575;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* --- PROJECTS CAROUSEL --- */
.project-carousel {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    color: var(--secondary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.2rem;
}

.carousel-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--white);
    transform: scale(1.2);
}

/* --- INFORM ECOBAT --- */
.inform-ecobat-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.inform-logo {
    max-width: 180px;
    height: auto;
}

@media (max-width: 600px) {
    .inform-ecobat-header {
        flex-direction: column;
        text-align: center;
    }
}

/* --- ARCHI ACTU FILTERS --- */
.actu-filters-container {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.search-bar {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.search-bar input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-color);
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(118, 169, 115, 0.2);
}

.search-bar .search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

.actu-tags-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.tag-filter-btn {
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-color);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

[data-theme="dark"] .tag-filter-btn {
    border-color: rgba(255, 255, 255, 0.1);
}

.tag-filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.tag-filter-btn.active {
    background-color: var(--primary);
    color: var(--bg-light);
    border-color: var(--primary);
}

.actu-card.hidden {
    display: none !important;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {

    .accompagnement-wrapper,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .accompagnement-img {
        order: -1;
    }

    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }

    .hero-header-flex {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .hero-logo {
        height: 150px;
    }

    .hero-title span {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
    }

    .nav-list.active {
        right: 0;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .check-list {
        grid-template-columns: 1fr;
    }
}