:root {
    --primary-color: #1a1a1a;
    --secondary-color: #f5f5f5;
    --accent-color: #2c2c2c;
    --text-color: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a, .logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary-color);
    text-decoration: none;
}

.logo-link img {
    height: 40px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.main-nav a {
    font-size: 14px;
    color: var(--text-color);
    text-transform: lowercase;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav .has-submenu {
    position: relative;
}

.main-nav .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 15px 0;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    z-index: 1001;
}

.main-nav .submenu li {
    margin: 0;
}

.main-nav .submenu li a {
    display: block;
    padding: 12px 20px;
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.main-nav .submenu li a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.main-nav .has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-actions .btn-primary {
    padding: 12px 24px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    font-size: 14px;
    text-transform: lowercase;
}

.header-actions .btn-primary:hover {
    background: var(--accent-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    background: var(--white);
    border-top: 1px solid var(--border-color);
    padding: 20px;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu .submenu {
    padding-left: 20px;
    margin-top: 10px;
}

.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        linear-gradient(to bottom, rgba(0,0,0,.55) 0%, rgba(0,0,0,.35) 60%, rgba(0,0,0,.6) 100%),
        url('/images/hero.jpg') center/cover no-repeat;
    margin-top: 80px;
    padding: 60px 20px;
    position: relative;
}

.hero-content h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 300;
    letter-spacing: -1px;
    margin-bottom: 30px;
    line-height: 1.2;
    text-transform: uppercase;
    color: #ffffff;
}

.hero-subtitle {
    max-width: 600px;
    margin: 30px auto 0;
    color: rgba(255,255,255,.75);
    font-size: 16px;
}

.btn-hero {
    display: inline-block;
    padding: 16px 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    font-size: 14px;
    text-transform: lowercase;
    margin-top: 20px;
}

.btn-hero:hover {
    background: var(--accent-color);
}

.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    font-size: 14px;
    text-transform: lowercase;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--accent-color);
}

.btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    font-size: 14px;
    text-transform: lowercase;
}

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

.btn-link {
    color: var(--primary-color);
    font-size: 14px;
    text-decoration: underline;
    text-transform: lowercase;
}

.btn-link:hover {
    opacity: 0.7;
}

section {
    padding: 80px 20px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 300;
    text-align: center;
    margin-bottom: 20px;
    text-transform: lowercase;
}

.section-subtitle {
    font-size: 20px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 15px;
    text-transform: lowercase;
}

.section-description {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
    color: var(--text-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin: 60px 0;
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 15px;
    text-transform: lowercase;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

.cta-center {
    text-align: center;
    margin-top: 60px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin: 60px 0;
}

.project-card {
    background: var(--white);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
}

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

.project-card-content {
    padding: 30px 20px;
}

.project-card h3 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 10px;
}

.project-card .project-meta {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.project-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.service-card {
    background: var(--secondary-color);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    background: var(--primary-color);
    color: var(--white);
}

.service-card h4 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 15px;
    text-transform: lowercase;
}

.service-card p {
    font-size: 14px;
    margin-bottom: 20px;
    color: var(--text-light);
}

.service-card:hover p {
    color: rgba(255, 255, 255, 0.8);
}

.service-card .card-link {
    font-size: 14px;
    text-decoration: underline;
}

.service-card:hover .card-link {
    color: var(--white);
}

.cta-section {
    background: var(--secondary-color);
    text-align: center;
    padding: 100px 20px;
}

.cta-section h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 300;
    margin-bottom: 15px;
    text-transform: lowercase;
}

.cta-section h3 {
    font-size: 20px;
    font-weight: 300;
    margin-bottom: 30px;
    color: var(--text-light);
    text-transform: lowercase;
}

.page-header {
    margin-top: 80px;
    padding: 80px 20px 40px;
    background: var(--secondary-color);
    text-align: center;
}

.page-header h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 300;
    margin-bottom: 15px;
    text-transform: lowercase;
}

.page-header p {
    color: var(--text-light);
    font-size: 18px;
}

.portfolio-filters {
    padding: 40px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: lowercase;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin: 60px 0;
}

.blog-card {
    background: var(--white);
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
}

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

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

.blog-card .blog-date {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.blog-card h3 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 15px;
}

.blog-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-card .read-more {
    font-size: 14px;
    text-decoration: underline;
    color: var(--primary-color);
}

.service-detail {
    padding: 80px 20px;
}

.service-detail.alt {
    background: var(--secondary-color);
}

.service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.service-text h2 {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 20px;
    text-transform: lowercase;
}

.service-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.service-text ul {
    list-style: none;
    margin: 30px 0;
}

.service-text ul li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-light);
}

.service-text ul li:before {
    content: "—";
    position: absolute;
    left: 0;
}

.service-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    margin: 60px 0;
}

.contact-form-wrapper h2 {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 30px;
    text-transform: lowercase;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-info h2 {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 30px;
    text-transform: lowercase;
}

.info-block {
    margin-bottom: 30px;
}

.info-block h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
}

.info-block p,
.info-block a {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.8;
}

.info-block a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    color: var(--text-light);
    font-size: 14px;
}

.social-links a:hover {
    color: var(--primary-color);
}

.about-intro {
    padding: 80px 20px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 30px;
    text-transform: lowercase;
}

.about-content .lead {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.6;
}

.about-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.values-section {
    background: var(--secondary-color);
    padding: 80px 20px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin: 60px 0;
}

.value-card {
    text-align: center;
    padding: 30px 20px;
}

.value-card h3 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 15px;
    text-transform: lowercase;
}

.value-card p {
    color: var(--text-light);
    line-height: 1.8;
}

.expertise-section {
    padding: 80px 20px;
}

.expertise-content {
    max-width: 800px;
    margin: 0 auto;
}

.expertise-text h3 {
    font-size: 22px;
    font-weight: 400;
    margin: 30px 0 15px;
    text-transform: lowercase;
}

.expertise-text p {
    color: var(--text-light);
    line-height: 1.8;
}

.site-footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 20px 30px;
}

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

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

.footer-section h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
    text-transform: lowercase;
}

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

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-section .social-links {
    margin-top: 20px;
}

.footer-section .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: var(--transition);
}

.footer-section .social-links a:hover {
    background: var(--white);
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.footer-legal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.legal-links a:hover {
    color: var(--white);
}

.project-detail-section {
    padding: 80px 20px;
}

.project-detail-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.project-images img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.project-description h2,
.project-details h2 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 20px;
    text-transform: lowercase;
}

.project-description p {
    color: var(--text-light);
    line-height: 1.8;
}

.detail-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
}

.detail-item strong {
    font-weight: 500;
}

.detail-item span {
    color: var(--text-light);
}

.project-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.latest-articles {
    padding: 80px 20px;
    background: var(--secondary-color);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    margin: 40px 0;
}

.article-card {
    background: var(--white);
    overflow: hidden;
    transition: var(--transition);
}

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

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

.article-info {
    padding: 30px;
}

.article-date {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-info h3 {
    font-size: 20px;
    font-weight: 400;
    margin: 15px 0;
    text-transform: lowercase;
}

.article-info p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.article-category {
    display: inline-block;
    padding: 5px 15px;
    background: var(--secondary-color);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-message {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.loading,
.no-results,
.error {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.error {
    color: #721c24;
}

@media (max-width: 768px) {
    .main-nav,
    .header-actions {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .mobile-menu.active {
        display: block;
    }

    .hero {
        min-height: 60vh;
        margin-top: 70px;
    }

    .service-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-legal {
        flex-direction: column;
        text-align: center;
    }

    .projects-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 15px 20px;
    }

    section {
        padding: 60px 20px;
    }

    .features-grid,
    .services-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   PAGES SPÉCIFIQUES — CSS CONSOLIDÉ (extrait des balises
   <style> inline de chaque page HTML)
   ========================================================== */

/* ----------------------------------------------------------
   Décalage header fixe commun aux pages internes
   ---------------------------------------------------------- */
.portfolio-page,
.blog-page,
.services-page,
.service-detail-page,
.portfolio-detail-page {
    padding-top: 80px;
}

/* ----------------------------------------------------------
   En-tête de listing (portfolio & blog)
   ---------------------------------------------------------- */
.portfolio-intro,
.blog-intro {
    padding: 30px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.portfolio-intro h1,
.blog-intro h1 {
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: 700;
}

.portfolio-intro p,
.blog-intro p {
    font-size: 16px;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

/* ----------------------------------------------------------
   Barre de filtres (portfolio & blog) — style onglet
   ---------------------------------------------------------- */
.filter-section {
    padding: 20px 0;
    border-bottom: 2px solid var(--secondary-color);
}

.filter-buttons {
    display: flex;
    gap: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
}

.filter-buttons::-webkit-scrollbar { height: 3px; }
.filter-buttons::-webkit-scrollbar-track { background: transparent; }
.filter-buttons::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

/* Surcharge du .filter-btn générique dans le contexte .filter-section */
.filter-section .filter-btn {
    padding: 12px 18px;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
    white-space: nowrap;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

.filter-section .filter-btn:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: transparent;
}

.filter-section .filter-btn.active {
    color: var(--white);
    background: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* ----------------------------------------------------------
   Page Portfolio — grille et cartes
   ---------------------------------------------------------- */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 80px 0;
}

.portfolio-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: row;
    min-height: 350px;
}

.portfolio-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.portfolio-card.layout-right-left  { flex-direction: row-reverse; }
.portfolio-card.layout-top-bottom  { flex-direction: column; }
.portfolio-card.layout-bottom-top  { flex-direction: column-reverse; }
.portfolio-card.layout-side-by-side { flex-direction: row; align-items: stretch; }

.portfolio-image {
    width: 40%;
    height: auto;
    min-height: 350px;
    background: linear-gradient(135deg, #e8e8e8, #d0d0d0);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #999;
    flex-shrink: 0;
}

.portfolio-card.layout-top-bottom .portfolio-image,
.portfolio-card.layout-bottom-top .portfolio-image,
.portfolio-card.layout-side-by-side .portfolio-image { width: 100%; }

.portfolio-card.layout-top-bottom .portfolio-image,
.portfolio-card.layout-bottom-top .portfolio-image {
    height: 250px;
    min-height: 250px;
}

.portfolio-card.layout-side-by-side .portfolio-image {
    width: 30%;
    height: auto;
    min-height: 350px;
}

.portfolio-image img { width: 100%; height: 100%; object-fit: cover; }

.portfolio-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    width: 60%;
}

.portfolio-card.layout-top-bottom .portfolio-content,
.portfolio-card.layout-bottom-top .portfolio-content { width: 100%; }

.portfolio-card.layout-side-by-side .portfolio-content {
    width: 70%;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
}

.portfolio-category {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    width: fit-content;
}

.portfolio-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 600;
}

.portfolio-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.6;
    font-size: 14px;
}

.portfolio-meta {
    display: flex;
    gap: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.portfolio-meta-item { display: flex; flex-direction: column; }

.portfolio-meta-label {
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 10px;
}

.portfolio-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.portfolio-link:hover { border-bottom-color: var(--primary-color); }

/* ----------------------------------------------------------
   Page Blog — cartes overlay
   ---------------------------------------------------------- */
.blog-page .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    padding: 80px 0;
}

.blog-page .blog-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    height: 400px;
    min-height: 400px;
}

.blog-page .blog-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.blog-page .blog-card:hover .blog-image { transform: scale(1.05); }

.blog-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #e8e8e8, #d0d0d0);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: #999;
    transition: var(--transition);
    z-index: 1;
}

.blog-image::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    z-index: 2;
}

.blog-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    z-index: 3;
    color: var(--white);
}

.blog-category {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    width: fit-content;
    backdrop-filter: blur(4px);
}

.blog-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--white);
}

.blog-excerpt {
    color: rgba(255,255,255,0.95);
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.6;
    font-size: 14px;
}

.blog-meta {
    display: flex;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 12px;
    color: rgba(255,255,255,0.95);
    margin-bottom: 20px;
}

.blog-meta-item { display: flex; flex-direction: column; }

.blog-meta-label {
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    margin-bottom: 3px;
    font-size: 10px;
}

.blog-link {
    display: inline-block;
    color: var(--white);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.blog-link:hover { border-bottom-color: var(--white); }

/* ----------------------------------------------------------
   Page Services
   ---------------------------------------------------------- */
.services-page .services-intro {
    padding: 15px 0;
    text-align: center;
    margin-bottom: 10px;
}

.services-page .services-intro h1 {
    font-size: 36px;
    margin-bottom: 5px;
    font-weight: 700;
}

.services-page .services-intro h2 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 400;
    color: var(--text-light);
}

.services-page .services-intro p {
    font-size: 14px;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 15px;
    line-height: 1.6;
}

.services-page .services-intro a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 13px;
    border-bottom: 2px solid var(--primary-color);
    transition: var(--transition);
}

.services-page .services-intro a:hover { opacity: 0.7; }

.services-page .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0;
    padding: 5px 0;
}

.services-page .service-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-right: none;
    border-bottom: none;
    padding: 25px;
    transition: var(--transition);
    display: block;
    text-decoration: none;
    color: inherit;
}

.services-page .service-card:nth-child(3n) {
    border-right: 1px solid var(--border-color);
}

.services-page .service-card:nth-last-child(-n+3) {
    border-bottom: 1px solid var(--border-color);
}

.services-page .service-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.service-icon {
    font-size: 36px;
    margin-bottom: 12px;
    display: block;
}

.services-page .service-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
}

.services-page .service-card p {
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.5;
    font-size: 13px;
}

.service-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}

.services-page .service-card:hover .service-link {
    border-bottom-color: var(--primary-color);
}

.service-types {
    padding: 20px 0;
    background: var(--secondary-color);
}

.service-types h2 {
    font-size: 36px;
    margin-bottom: 60px;
    font-weight: 600;
}

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

.type-card {
    background: var(--white);
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.type-card:hover { border-color: var(--primary-color); }

.type-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.type-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* CTA inversé (fond sombre) sur la page Services */
.services-page .cta-section {
    background: var(--primary-color);
    color: var(--white);
    padding: 80px 0;
    margin-top: 20px;
}

.services-page .cta-section h2 { font-size: 36px; margin-bottom: 20px; }
.services-page .cta-section p  { font-size: 18px; margin-bottom: 30px; opacity: 0.9; }

.services-page .cta-section .btn-primary {
    background: var(--white);
    color: var(--primary-color);
    padding: 14px 40px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.services-page .cta-section .btn-primary:hover { background: var(--secondary-color); }

/* ----------------------------------------------------------
   Page Détail service
   ---------------------------------------------------------- */
.service-hero {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}

.service-hero h1 { font-size: 48px; margin-bottom: 20px; font-weight: 700; }
.service-hero p  { font-size: 18px; color: var(--text-light); max-width: 800px; }

.service-intro {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.service-intro-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.service-intro-text h2 { font-size: 36px; margin-bottom: 20px; font-weight: 600; }
.service-intro-text p  { color: var(--text-light); margin-bottom: 20px; line-height: 1.8; font-size: 16px; }

.service-intro-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #e8e8e8, #d0d0d0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 96px;
    border-radius: 4px;
}

.service-features {
    padding: 80px 0;
    background: var(--secondary-color);
}

.service-features h2 { font-size: 36px; margin-bottom: 60px; font-weight: 600; }

.feature-box {
    background: var(--white);
    padding: 40px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-box:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.feature-icon { font-size: 48px; margin-bottom: 20px; display: block; }
.feature-box h3 { font-size: 20px; margin-bottom: 15px; font-weight: 600; }
.feature-box p  { color: var(--text-light); line-height: 1.7; font-size: 14px; }

.service-process { padding: 80px 0; }

.service-process h2 {
    font-size: 36px;
    margin-bottom: 60px;
    text-align: center;
    font-weight: 600;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.process-step {
    background: var(--white);
    border: 2px solid var(--border-color);
    padding: 40px;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.process-step:hover { border-color: var(--primary-color); }

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 24px;
    margin: 0 auto 20px;
}

.process-step h3 { font-size: 18px; margin-bottom: 15px; font-weight: 600; }
.process-step p  { color: var(--text-light); font-size: 14px; line-height: 1.6; }

.process-connector { display: none; }

@media (min-width: 768px) {
    .process-connector {
        display: block;
        position: absolute;
        top: 50%; right: -30px;
        width: 30px; height: 2px;
        background: var(--border-color);
    }
    .process-step:last-child .process-connector { display: none; }
}

.service-gallery {
    padding: 80px 0;
    background: var(--secondary-color);
}

.service-gallery h2 { font-size: 36px; margin-bottom: 60px; font-weight: 600; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.gallery-item {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #d0d0d0, #b0b0b0);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    transition: var(--transition);
}

.gallery-item:hover { transform: scale(1.05); }
.gallery-item img   { width: 100%; height: 100%; object-fit: cover; }

.cta-service { padding: 80px 0; }
.cta-service h2 { font-size: 36px; margin-bottom: 20px; }
.cta-service p  { font-size: 18px; color: var(--text-light); margin-bottom: 30px; }

.btn-contact {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 14px 40px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: none;
}

.btn-contact:hover { background: #0a0a0a; }

.services-nav {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.services-nav h3 { font-size: 18px; margin-bottom: 20px; font-weight: 600; }

.services-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.services-links a {
    display: block;
    padding: 15px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    text-align: center;
}

.services-links a:hover,
.services-links a.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .service-intro-content { grid-template-columns: 1fr; gap: 40px; }
    .service-intro-text h2  { font-size: 28px; }
    .service-hero h1         { font-size: 36px; }
}

/* ----------------------------------------------------------
   Page Détail portfolio
   ---------------------------------------------------------- */
.project-hero {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}

.project-hero h1 { font-size: 48px; margin-bottom: 20px; font-weight: 700; }

.project-hero .project-category {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.project-intro {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.intro-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.intro-text p { color: var(--text-light); margin-bottom: 20px; line-height: 1.8; font-size: 16px; }

.intro-meta {
    background: var(--secondary-color);
    padding: 30px;
    border: 1px solid var(--border-color);
}

.meta-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.meta-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.meta-label {
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    font-size: 11px;
    margin-bottom: 8px;
    display: block;
}

.meta-value { font-size: 16px; color: var(--text-color); }

.project-gallery { padding: 80px 0; }
.project-gallery h2 { font-size: 36px; margin-bottom: 40px; font-weight: 600; }

.project-gallery .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    margin-bottom: 60px;
}

.project-gallery .gallery-item { height: 300px; }

.project-description {
    padding: 80px 0;
    background: var(--secondary-color);
}

.project-description h2 { font-size: 36px; margin-bottom: 30px; font-weight: 600; }

.description-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.description-text p { color: var(--text-light); margin-bottom: 20px; line-height: 1.8; }

.description-highlights {
    background: var(--white);
    padding: 40px;
    border: 1px solid var(--border-color);
}

.highlight-item { margin-bottom: 20px; }
.highlight-item:last-child { margin-bottom: 0; }

.highlight-title {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
}

.highlight-value { font-size: 18px; color: var(--text-color); }

.project-features { padding: 80px 0; }
.project-features h2 { font-size: 36px; margin-bottom: 40px; font-weight: 600; }

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    background: var(--white);
    padding: 30px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.feature-item h3 { font-size: 18px; margin-bottom: 10px; font-weight: 600; }
.feature-item p  { color: var(--text-light); font-size: 14px; line-height: 1.6; }

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

.cta-project h2 { font-size: 36px; margin-bottom: 20px; }
.cta-project p  { font-size: 18px; margin-bottom: 30px; opacity: 0.9; }

.btn-cta {
    display: inline-block;
    background: var(--white);
    color: var(--primary-color);
    padding: 14px 40px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: none;
}

.btn-cta:hover { background: var(--secondary-color); }

.projects-nav {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.projects-nav h3 { font-size: 18px; margin-bottom: 20px; font-weight: 600; }

.projects-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.projects-links a {
    display: block;
    padding: 15px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    text-align: center;
    font-size: 14px;
}

.projects-links a:hover,
.projects-links a.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .intro-grid         { grid-template-columns: 1fr; gap: 40px; }
    .description-content { grid-template-columns: 1fr; gap: 40px; }
    .project-hero h1    { font-size: 36px; }
}

/* ----------------------------------------------------------
   Page Article de blog
   ---------------------------------------------------------- */
.article-content {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
}

.article-header { margin-bottom: 40px; }

.article-date {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.article-title {
    font-size: 42px;
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1.2;
}

.article-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin: 40px 0;
}

.article-body { line-height: 1.8; color: var(--text-color); }
.article-body h3 { font-size: 24px; font-weight: 400; margin: 40px 0 20px; }
.article-body p  { margin-bottom: 20px; }

.article-body ul {
    margin: 20px 0;
    padding-left: 40px;
}

.article-body ul li { margin-bottom: 10px; color: var(--text-light); }

.article-actions {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ----------------------------------------------------------
   Pages légales (mentions légales & politique de confidentialité)
   ---------------------------------------------------------- */
.legal-content {
    padding: 80px 20px;
}

.legal-body {
    max-width: 900px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.legal-section:last-of-type {
    border-bottom: none;
}

.legal-section h2 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 20px;
    text-transform: lowercase;
    color: var(--primary-color);
}

.legal-section h3 {
    font-size: 18px;
    font-weight: 500;
    margin: 25px 0 12px;
    text-transform: lowercase;
}

.legal-section p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 15px;
}

.legal-section ul {
    list-style: none;
    margin: 15px 0 20px;
    padding: 0;
}

.legal-section ul li {
    padding: 8px 0 8px 20px;
    position: relative;
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
    border-bottom: 1px solid var(--secondary-color);
}

.legal-section ul li:last-child {
    border-bottom: none;
}

.legal-section ul li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--text-light);
}

.legal-section a {
    color: var(--primary-color);
    text-decoration: underline;
}

.legal-section a:hover { opacity: 0.7; }

.legal-update {
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
    margin: 40px 0 30px;
}

.legal-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* =============================================
   PORTFOLIO DETAIL — hero + méta + contenu
   ============================================= */

.project-hero {
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    background-size: cover;
    background-position: center;
}

.project-hero h1 {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin-top: 12px;
    line-height: 1.2;
}

.project-category-badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-meta-section { padding: 40px 0 0; }

.project-meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 32px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 160px;
}

.meta-icon { font-size: 22px; }

.meta-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 2px;
}

.meta-value {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
}

.project-summary { padding: 40px 0; }

.project-summary-text {
    font-size: 18px;
    line-height: 1.75;
    color: var(--text-light);
    max-width: 800px;
}

.project-content-section { padding: 0 0 60px; }

.project-rich-content {
    font-size: 16px;
    line-height: 1.85;
    color: var(--text-color);
    max-width: 860px;
}

.project-rich-content h1,
.project-rich-content h2 { font-size: 26px; font-weight: 700; margin: 40px 0 16px; color: var(--primary-color); }
.project-rich-content h3 { font-size: 20px; font-weight: 600; margin: 32px 0 12px; }
.project-rich-content p { margin-bottom: 18px; }
.project-rich-content ul,
.project-rich-content ol { padding-left: 24px; margin-bottom: 18px; }
.project-rich-content li { margin-bottom: 6px; }
.project-rich-content img { max-width: 100%; border-radius: 6px; margin: 24px 0; display: block; }
.project-rich-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 12px 20px;
    background: var(--secondary-color);
    margin: 24px 0;
    font-style: italic;
    color: var(--text-light);
}

/* =============================================
   CAROUSEL GALERIE
   ============================================= */

.project-gallery-section {
    background: #f8f8f8;
    padding: 60px 0 50px;
    margin: 20px 0;
}

.section-heading {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 32px;
    letter-spacing: 1px;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    overflow: hidden;
}

.carousel-track-container {
    flex: 1;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
    min-width: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
}

.carousel-slide.active { display: flex; }

.carousel-img-wrap {
    width: 100%;
    max-height: 560px;
    overflow: hidden;
    cursor: zoom-in;
}

.carousel-img-wrap img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.carousel-img-wrap:hover img { transform: scale(1.02); }

.carousel-caption {
    padding: 16px 24px;
    text-align: center;
    background: white;
    width: 100%;
}

.carousel-caption strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.carousel-caption span {
    font-size: 13px;
    color: var(--text-light);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.55);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, opacity 0.2s;
}

.carousel-btn:hover { background: rgba(0,0,0,0.8); }
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 0 20px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    padding: 0;
}

.carousel-dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

/* ── Lightbox ── */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox-inner {
    position: relative;
    max-width: 92vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.lightbox-inner img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 24px;
    background: rgba(255,255,255,0.15);
    color: white;
    border: none;
    font-size: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    color: white;
    border: none;
    font-size: 22px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-caption {
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    text-align: center;
    max-width: 600px;
    padding: 0 20px;
}

/* ── Autres projets ── */

.projects-nav {
    padding: 50px 0;
    border-top: 1px solid var(--border-color);
}

.projects-nav h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.projects-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.other-project-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    color: var(--text-color);
    width: 200px;
    transition: opacity 0.2s;
}

.other-project-card:hover { opacity: 0.75; }

.other-project-card img {
    width: 200px;
    height: 130px;
    object-fit: cover;
    border-radius: 4px;
}

.other-project-placeholder {
    width: 200px;
    height: 130px;
    background: var(--secondary-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
}

.other-project-card span {
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .project-hero h1 { font-size: 28px; }
    .carousel-img-wrap img { height: 280px; }
    .carousel-btn { width: 36px; height: 36px; font-size: 16px; }
    .project-meta-grid { gap: 16px; }
    .meta-item { min-width: 130px; }
}
