/* =============================================================================
   LAMIA PROJECTS - STYLE FRONTEND V7
   CSS structuré, moderne et responsive
   ============================================================================= */

:root {
    --primary-color: #1e3a8a;
    --primary-light: #3b82f6;
    --primary-dark: #1e40af;
    --accent-color: #f97316;
    --accent-light: #fb923c;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --transition: all 0.3s ease;
}

/* ============================================================================
   RÉINITIALISATION & BASE
   ============================================================================ */

.lamia-projects-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

* {
    box-sizing: border-box;
}

/* ============================================================================
   GRILLE PRINCIPALE
   ============================================================================ */

.lamia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* ============================================================================
   CARTES PROJET
   ============================================================================ */

.lamia-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    background: var(--bg-white);
    height: 360px;
}

.lamia-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.lamia-card-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    /*background: linear-gradient(135deg, var(--primary-color), var(--primary-light));*/
}

.lamia-card-image img {
    width: 100%;
    min-height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.lamia-card:hover .lamia-card-image img {
    transform: scale(1.05);
}

.lamia-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, 
        rgba(30, 58, 138, 0.95) 0%, 
        rgba(30, 58, 138, 0.7) 50%, 
        transparent 100%);
    padding: 30px 20px 20px;
    color: var(--bg-white);
    transition: var(--transition);
}

.lamia-card:hover .lamia-card-overlay {
    background: linear-gradient(to top, 
        rgba(30, 58, 138, 1) 0%, 
        rgba(30, 58, 138, 0.8) 50%, 
        rgba(30, 58, 138, 0.2) 100%);
}

.lamia-card-overlay h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
	color: #f9fafb;
}

.lamia-card-overlay p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
}

/* ============================================================================
   MODAL & OVERLAY
   ============================================================================ */

.lamia-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    background: var(--bg-light);
    overflow-y: scroll;
    overflow-x: hidden;
    padding: 20px 0;
}

.lamia-modal.active {
    display: block;
}

.lamia-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    z-index: 1;
}

.lamia-modal.active .lamia-modal-overlay {
    display: block;
}

.lamia-modal-content {
    position: relative;
    max-width: 1100px;
    margin: 40px auto;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    z-index: 2;
    width: 90%;
    animation: slideUp 0.4s ease;
}

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

.lamia-close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
    color: var(--bg-white);
    font-size: 28px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.lamia-close:hover {
    background: var(--accent-light);
    
}

/* ============================================================================
   EN-TÊTE DU MODAL
   ============================================================================ */

.lamia-header {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--bg-white);
}

.lamia-header-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.lamia-header-info h2 {
    margin: 0 0 12px 0;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

.lamia-subtitle {
    margin: 0 0 20px 0;
    font-size: 16px;
    opacity: 0.95;
    line-height: 1.5;
}

.lamia-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .lamia-header {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }
    
    .lamia-header-img {
        height: 240px;
    }
    
    .lamia-header-info h2 {
        font-size: 24px;
    }
}

/* ============================================================================
   DESCRIPTION
   ============================================================================ */

.lamia-description {
    padding: 30px 40px;
    background: var(--bg-white);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
}

/* ============================================================================
   COMPARATEUR AVANT/APRÈS
   ============================================================================ */

.lamia-comparison {
    padding: 40px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.lamia-comparison h3 {
    margin: 0 0 25px 0;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
}

.comparison-slider {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    user-select: none;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    min-height: 400px;
    display: flex;
    align-items: stretch;
}

@media (max-width: 768px) {
    .comparison-slider {
       max-height: 250px;
		        min-height: auto;
    }
	.comparison-before,
	.comparison-after{
		height: auto !important;
	}
}

.comparison-before,
.comparison-after {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: white;
    flex: 1;
}

.comparison-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    clip-path: inset(0 0 0 50%);
}

.comparison-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
    cursor: col-resize;
    transform: translateX(-50%);
    z-index: 5;
    transition: var(--transition);
}

.comparison-handle:hover {
    width: 6px;
    background: var(--accent-light);
}

.handle-label {
    position: absolute;
    top: 15px;
    padding: 6px 12px;
    background: var(--accent-color);
    color: var(--bg-white);
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    z-index: 10;
}

.handle-label:first-of-type {
    left: -70px;
}

.handle-label:last-of-type {
    right: -70px;
}

.handle-slider {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.handle-slider::before,
.handle-slider::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.handle-slider::before {
    border-width: 6px 8px 6px 0;
    border-color: transparent var(--bg-white) transparent transparent;
    margin-right: 4px;
}

.handle-slider::after {
    border-width: 6px 0 6px 8px;
    border-color: transparent transparent transparent var(--bg-white);
    margin-left: 4px;
}

/* ============================================================================
   SECTIONS (AVANT, TRAVAUX, APRÈS, BÉNÉFICES)
   ============================================================================ */

.lamia-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0;
    border-bottom: 1px solid var(--border-color);
}

.lamia-section {
    padding: 40px;
    background: var(--bg-white);
    border-right: 1px solid var(--border-color);
}

.lamia-section:last-child {
    border-right: none;
}

.lamia-section h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.lamia-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lamia-list li {
    padding: 10px 0 10px 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
    position: relative;
    padding-left: 20px;
}

.lamia-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.lamia-list li strong {
    color: var(--text-dark);
    font-weight: 600;
}

.lamia-list li em {
    color: var(--primary-light);
    font-style: italic;
}

.lamia-list li u {
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
    text-decoration-thickness: 2px;
}

.benefits-section {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.05), rgba(249, 115, 22, 0.1));
}

.benefits-section h3 {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .lamia-sections {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .lamia-section {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .lamia-section:last-child {
        border-bottom: none;
    }
}

/* ============================================================================
   GALERIE PHOTOS
   ============================================================================ */

.lamia-gallery {
    padding: 40px;
    background: var(--bg-light);
}

.lamia-gallery h3 {
    margin: 0 0 25px 0;
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 1;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-item:hover {
    box-shadow: var(--shadow-lg);
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    filter: brightness(0.9);
}

/* LIGHTBOX */
.lamia-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lamia-lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10001;
}

.lightbox-close:hover {
    color: var(--accent-color);
    transform: scale(1.2);
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
    .lamia-projects-container {
        padding: 20px 15px;
    }
    
    .lamia-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .lamia-modal-content {
        width: 95%;
        margin: 20px auto;
        border-radius: var(--radius-md);
    }
    
    .lamia-header {
        padding: 25px 20px;
        gap: 20px;
    }
    
    .lamia-header-img {
        height: 200px;
    }
    
    .lamia-section,
    .lamia-comparison,
    .lamia-gallery,
    .lamia-description {
        padding: 25px 20px;
    }
    
    .lamia-card-overlay h3 {
        font-size: 18px;
    }
    
    .handle-label {
        font-size: 11px;
    }
    
    .handle-label:first-of-type {
        left: -60px;
    }
    
    .handle-label:last-of-type {
        right: -60px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
}
