/* ===== VARIABLES CSS POUR THÈMES ===== */
:root[data-theme="dark"] {
    --bg-primary: #0a1f2e;
    --bg-secondary: #1a3d4f;
    --bg-card: #162937;
    --bg-dark: #0d1b2a;
    --accent-blue: #2d5f7f;
    --accent-green: #2d5f3f;
    --light-blue: #4a8fb8;
    --light-green: #4a8f6f;
    --text-primary: #e8f0f5;
    --text-secondary: #b0c4d0;
    --border-color: #2d4f5f;
    --shadow: rgba(0, 0, 0, 0.3);
    --overlay: rgba(0, 0, 0, 0.5);
}

:root[data-theme="light"] {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-dark: #e9ecef;
    --accent-blue: #2d5f7f;
    --accent-green: #2d5f3f;
    --light-blue: #3a7fa8;
    --light-green: #3a7f5f;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --border-color: #dee2e6;
    --shadow: rgba(0, 0, 0, 0.1);
    --overlay: rgba(255, 255, 255, 0.7);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== NAVIGATION AVEC LOGO ===== */
.navbar {
    background: var(--bg-primary);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--border-color);
    box-shadow: 0 2px 10px var(--shadow);
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

/* Logo FH Entreprise dans Navigation */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    cursor: pointer;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.4s ease, filter 0.5s ease, mix-blend-mode 0.5s ease;
    border-radius: 6px;
}

/* Mode sombre : les zones noires/sombres du logo deviennent transparentes → fusion parfaite */
:root[data-theme="dark"] .logo-img {
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 10px rgba(74, 143, 184, 0.55)) brightness(1.15);
}

/* Mode clair : les zones blanches du logo deviennent transparentes → fusion naturelle */
:root[data-theme="light"] .logo-img {
    mix-blend-mode: multiply;
    filter: drop-shadow(0 2px 8px rgba(45, 95, 127, 0.3)) brightness(0.97);
}

.logo-img:hover {
    transform: scale(1.07);
}

:root[data-theme="dark"] .logo-img:hover {
    filter: drop-shadow(0 0 16px rgba(74, 143, 184, 0.8)) brightness(1.25);
}

:root[data-theme="light"] .logo-img:hover {
    filter: drop-shadow(0 4px 12px rgba(45, 95, 127, 0.45)) brightness(0.95);
}

.brand-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.brand-text {
    color: var(--light-blue);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1;
}

.brand-tagline {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 1px;
    font-style: italic;
}

/* Menu Navigation */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-menu li a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem;
}

.nav-menu li a:hover {
    color: var(--light-blue);
}

/* Controls (Langue + Thème) */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Switch Langue */
.lang-switch {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-card);
    padding: 0.3rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.lang-btn.active {
    background: var(--accent-blue);
    color: white;
}

.lang-btn:hover:not(.active) {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Switch Thème */
.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    transform: scale(1.05);
}

.sun-icon, .moon-icon {
    font-size: 1.2rem;
    transition: opacity 0.3s;
}

:root[data-theme="dark"] .sun-icon {
    opacity: 0.3;
}

:root[data-theme="dark"] .moon-icon {
    opacity: 1;
}

:root[data-theme="light"] .sun-icon {
    opacity: 1;
}

:root[data-theme="light"] .moon-icon {
    opacity: 0.3;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: 0.3s;
}

/* ===== HERO AVEC SLIDER ===== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-top: 70px;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 0;
    transition: opacity 1.2s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide.prev {
    opacity: 0;
    z-index: 1;
}

.slide-caption {
    position: absolute;
    bottom: 60px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    border-left: 2px solid var(--light-blue);
}

.hero-dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.2) 45%,
        rgba(0, 0, 0, 0.08) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 4;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    animation: titleFadeIn 1.5s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: white;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8);
    animation: subtitleFadeIn 1.5s ease-out 0.3s backwards;
}

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

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

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 2.5rem;
    line-height: 1;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(4px);
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow-prev {
    left: 24px;
}

.slider-arrow-next {
    right: 24px;
}

@media (max-width: 480px) {
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.8rem;
    }
    .slider-arrow-prev { left: 10px; }
    .slider-arrow-next { right: 10px; }
}

.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 5;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.indicator.active {
    background: var(--light-blue);
    border-color: var(--light-blue);
    transform: scale(1.3);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--light-blue));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 143, 184, 0.5);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--accent-blue);
    margin-top: 1.5rem;
}

.btn-secondary:hover {
    background: var(--accent-blue);
    color: white;
    transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
section {
    padding: 5rem 0;
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--light-blue);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
    margin: 1rem auto;
    border-radius: 2px;
}

/* ===== ABOUT SECTION ===== */
.about {
    background: var(--bg-secondary);
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-actions {
    text-align: center;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--light-green);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-secondary);
}

/* ===== SERVICES ===== */
.services {
    background: var(--bg-primary);
}

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

.service-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 5px 20px var(--shadow);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--light-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== PROJECTS ===== */
.projects {
    background: var(--bg-secondary);
}

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

.project-card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow);
}

.project-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    color: var(--light-blue);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--accent-green);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-tag:hover {
    background: var(--accent-blue);
    padding-right: 120px;
}

.tag-hover-text {
    position: absolute;
    right: 10px;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateX(-10px);
}

.project-tag:hover .tag-hover-text {
    opacity: 1;
    transform: translateX(0);
}

/* ===== PARTNERS AVEC LOGOS ===== */
.partners {
    background: var(--bg-primary);
}

.partners-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

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

.partner-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s;
}

.partner-card:hover {
    border-color: var(--accent-green);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow);
}

.partner-logo-container {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 1.1rem;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.4s ease, background 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}

.partner-logo-container:hover {
    transform: scale(1.08);
}

.partner-logo-img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: filter 0.5s ease, transform 0.4s ease;
}

/* ===== MODE CLAIR : contour transparent + ombre portée ===== */
:root[data-theme="light"] .partner-logo-container {
    background: transparent;
    border: 1.5px solid transparent;
    outline: 1.5px solid rgba(45, 95, 127, 0.0);
    box-shadow: 0 2px 14px rgba(45, 95, 127, 0.14);
    transition: transform 0.4s ease, box-shadow 0.4s ease, outline-color 0.4s ease;
}

:root[data-theme="light"] .partner-logo-container:hover {
    outline-color: rgba(45, 95, 127, 0.28);
    box-shadow: 0 6px 24px rgba(45, 95, 127, 0.26);
}

:root[data-theme="light"] .partner-logo-img {
    mix-blend-mode: multiply;
    filter: drop-shadow(0 2px 5px rgba(45, 95, 127, 0.2));
}

:root[data-theme="light"] .partner-logo-container:hover .partner-logo-img {
    filter: drop-shadow(0 4px 12px rgba(45, 95, 127, 0.38)) brightness(0.96) saturate(1.1);
}

/* ===== MODE SOMBRE : contour transparent + ombre lumineuse + fond blanc fusionné ===== */
:root[data-theme="dark"] .partner-logo-container {
    background: radial-gradient(ellipse 85% 60% at 50% 100%, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.18) 50%, transparent 75%);
    border: 1.5px solid transparent;
    outline: 1.5px solid rgba(74, 143, 184, 0.0);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
    transition: transform 0.4s ease, box-shadow 0.4s ease, outline-color 0.4s ease, background 0.5s ease;
}

:root[data-theme="dark"] .partner-logo-container:hover {
    background: radial-gradient(ellipse 95% 70% at 50% 100%, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.28) 55%, transparent 78%);
    outline-color: rgba(74, 143, 184, 0.45);
    box-shadow: 0 0 22px rgba(74, 143, 184, 0.32), 0 4px 20px rgba(0, 0, 0, 0.5);
}

:root[data-theme="dark"] .partner-logo-img {
    mix-blend-mode: multiply;
    filter: brightness(1.05) contrast(1.08);
}

:root[data-theme="dark"] .partner-logo-container:hover .partner-logo-img {
    filter: brightness(1.08) contrast(1.12) saturate(1.1);
}

.partner-card h4 {
    color: var(--light-green);
    font-size: 1.1rem;
    line-height: 1.4;
}

/* ===== CONTACT ===== */
.contact {
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    color: var(--light-blue);
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item .icon {
    font-size: 1.5rem;
    color: var(--light-blue);
}

.contact-item p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, background 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.contact-form textarea {
    resize: vertical;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--light-blue);
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-secondary);
}

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

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

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--light-blue);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border-radius: 5px;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--accent-blue);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* ===== BOUTON RETOUR EN HAUT ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--light-blue));
    color: white;
    font-size: 1.6rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--light-blue), var(--accent-green));
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .nav-controls {
        order: 3;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-primary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .brand-text {
        font-size: 1.1rem;
    }
    
    .brand-tagline {
        font-size: 0.7rem;
    }
    
    .logo-img {
        height: 40px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .slider-indicators {
        bottom: 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .services-grid,
    .projects-grid,
    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-brand {
        gap: 0.5rem;
    }
}

/* ===== PAGES PROJETS ===== */
.project-hero {
    height: 55vh;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-top: 70px;
}
.project-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.1) 100%);
}
.project-hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 3rem;
    color: white;
}
.project-hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}
.project-hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}
.project-badge {
    display: inline-block;
    background: var(--accent-blue);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

/* Corps de la page projet */
.project-body {
    padding: 3rem 0 4rem;
    background: var(--bg-primary);
}

/* Carte détails */
.project-details-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
}
.project-details-card h2 {
    color: var(--light-blue);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.2rem;
}
.detail-item {
    text-align: center;
    padding: 1.2rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.detail-item strong {
    color: var(--light-blue);
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.detail-item span {
    color: var(--text-secondary);
    font-size: 0.97rem;
    line-height: 1.5;
}

/* Description */
.project-description h2 {
    color: var(--light-blue);
    margin-bottom: 1.5rem;
}
.project-description p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.9;
    text-align: justify;
    margin-bottom: 1.5rem;
}

/* Sous-projets (pour page 1+3) */
.sub-projects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}
.sub-project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--accent-green);
    border-radius: 10px;
    padding: 1.5rem;
}
.sub-project-card h3 {
    color: var(--light-green);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.sub-project-card p {
    color: var(--text-secondary);
    font-size: 0.97rem;
    line-height: 1.7;
    text-align: justify;
}

/* Liste services */
.services-list {
    list-style: none;
    margin: 1rem 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.6rem;
}
.services-list li {
    color: var(--text-secondary);
    padding: 0.6rem 1rem;
    background: var(--bg-card);
    border-radius: 6px;
    border-left: 3px solid var(--accent-green);
    font-size: 0.97rem;
    line-height: 1.5;
}
.services-list li::before {
    content: '✓ ';
    color: var(--light-green);
    font-weight: 700;
}

/* Navigation prev/next */
.project-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}
.project-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 0.95rem;
}
.project-nav-btn:hover {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}
.project-nav-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
}

@media (max-width: 768px) {
    .project-hero-content h1 { font-size: 2rem; }
    .sub-projects { grid-template-columns: 1fr; }
    .project-nav { justify-content: center; }
    .project-nav-btn { font-size: 0.85rem; padding: 0.7rem 1rem; }
}
