/* ==========================================================================
   STYLE DÉDIÉ AUX RÉALISATIONS - Mediatone
   ========================================================================== */

:root {
    --color-dark-bg: #0a0a0a;
    --color-light-bg: #f9f9f7; /* Blanc cassé / Crème */
    --color-dark-text: #1a1a1a;
    --color-light-text: #e0e0e0;
    --color-accent: #007bff;
    --color-border-dark: #222;
    --color-border-light: #e5e5e0;
}

/* --- En-tête de la page --- */
.realisations-hero {
    text-align: center;
    padding: 100px 20px 60px 20px;
    background-color: var(--color-dark-bg);
    color: #fff;
    border-bottom: 1px solid var(--color-border-dark);
}

.realisations-hero h1 {
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    font-family: var(--font-title, 'Quicksand', sans-serif); /* Application de Quicksand */
    color: var(--color-accent); /* Passage en bleu */
}

.realisations-hero p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: #aaa;
    line-height: 1.6;
}

/* --- Section globale de projet --- */
.project-section {
    padding: 100px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid transparent;
}

/* --- Thèmes alternés --- */
/* Mode sombre avec effet de texture tissu acoustique */
.project-section.theme-dark {
    background-color: var(--color-dark-bg);
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    color: var(--color-light-text);
    border-bottom-color: var(--color-border-dark);
}

/* Mode blanc cassé */
.project-section.theme-light {
    background-color: var(--color-light-bg);
    color: var(--color-dark-text);
    border-bottom-color: var(--color-border-light);
}

/* --- Conteneur Grid/Flex --- */
.project-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

/* Alternance asymétrique (gauche / droite) */
.project-section:nth-child(even) .project-container {
    grid-template-columns: 1.2fr 1fr;
}

.project-section:nth-child(even) .project-content {
    order: 2; /* Envoie le texte à droite */
}

.project-section:nth-child(even) .project-gallery {
    order: 1; /* Envoie le carrousel à gauche */
}

/* --- Contenu texte --- */
.project-content h2 {
    font-size: 2.2rem;
    margin-top: 0;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: var(--font-sans, sans-serif);
    position: relative;
}

.theme-dark .project-content h2 { 
    color: #fff; 
}

.theme-light .project-content h2 { 
    color: #000; 
}

.project-content h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
    margin-top: 15px;
}

.project-description {
    font-size: 1.05rem;
    line-height: 1.8;
    white-space: pre-line;
}

/* Coupure du texte pour harmoniser avec la hauteur du carrousel */
.project-description-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 6; /* Limite l'affichage à 6 lignes */
    line-clamp: 6; /* Propriété standard pour la compatibilité future */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 25px;
}

.theme-dark .project-description { 
    color: #ccc; 
}

.theme-light .project-description { 
    color: #444; 
}

/* --- Style du bouton "Lire la suite" --- */
.btn-lire-suite {
    display: inline-block;
    padding: 12px 25px;
    background-color: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.btn-lire-suite:hover {
    background-color: var(--color-accent);
    color: var(--color-dark-bg);
}

.theme-light .btn-lire-suite:hover {
    color: #fff;
}

/* --- Carrousel (Galerie) --- */
.project-gallery {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    background-color: #000;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

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

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

/* Commandes de navigation du carrousel */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease, transform 0.2s ease;
}

.carousel-nav:hover {
    background: var(--color-accent);
    transform: translateY(-50%) scale(1.05);
}

.carousel-nav.prev { 
    left: 15px; 
}

.carousel-nav.next { 
    right: 15px; 
}

/* Indicateurs (dots) */
.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.3s ease, width 0.3s ease, border-radius 0.3s ease;
}

.dot.active {
    background: var(--color-accent);
    width: 25px;
    border-radius: 10px;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .project-container, 
    .project-section:nth-child(even) .project-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .project-section:nth-child(even) .project-content { 
        order: 1; 
    }
    
    .project-section:nth-child(even) .project-gallery { 
        order: 2; 
    }
    
    .realisations-hero h1 { 
        font-size: 2.3rem; 
    }
}