/* ================================================ */
/* ============. PHOTOBOX SHOWCASE .=============== */
/* ================================================ */

.photobox-showcase {
    padding: 40px 24px;
    background: white;
}

.photobox-showcase-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.photobox-gallery {
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 20px;
    height: 600px;
}

.photobox-main-image {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.photobox-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photobox-main-image:hover img {
    transform: scale(1.05);
}

.photobox-secondary-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: 200px;
}

.secondary-image {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.secondary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.photobox-showcase-title {
    font-size: clamp(2.5rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 32px;
    line-height: 1.2;
}

.photobox-showcase-description {
    font-size: 20px;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 48px;
}

.photobox-advantages {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.advantage-number {
    background: linear-gradient(135deg, var(--warm-green), var(--green));
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 16px;
}

.advantage-content h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--blue);
    margin-bottom: 8px;
}

.advantage-content p {
    color: var(--text-color);
    line-height: 1.5;
    font-size: 16px;
}

/* ============================================== */
/* ============. PHOTOBOX STYLES .=============== */
/* ============================================== */

.photobox-styles {
    padding: 60px 24px;
    background: var(--off-white);
}

.photobox-styles-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.photobox-styles-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 24px;
}

.photobox-styles-subtitle {
    font-size: 18px;
    color: var(--text-color);
    line-height: 1.6;
}

.photobox-toggle-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.photobox-comparison {
    margin-top: 40px;
}

.photobox-image-container {
    position: relative;
    max-width: 700px;
    margin: 0 auto 40px;
    height: 750px;
}

.photobox-image-container .box-image-alu,
.photobox-image-container .box-image-bois {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.photobox-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 20px;
}

.photobox-style-details {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.style-alu-details,
.style-bois-details {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: left;
    position: absolute;
    width: 100%;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.style-bois-details {
    opacity: 0;
    transform: translateY(10px);
}

.toggle:checked ~ .photobox-comparison .style-alu-details {
    opacity: 0;
    transform: translateY(10px);
}

.toggle:checked ~ .photobox-comparison .style-bois-details {
    opacity: 1;
    transform: translateY(0);
}

.photobox-style-details h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 16px;
}

.photobox-style-details p {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 24px;
}

.style-features {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.style-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-color);
    font-size: 16px;
}

.style-features li::before {
    content: "✓";
    color: var(--warm-green);
    font-weight: bold;
    font-size: 18px;
}

.madein-photobox {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.madein-photobox img {
    transition: transform 0.3s ease;
}

.madein-photobox img:hover {
    transform: scale(1.1);
}

/* ============================================== */
/* ============. PHOTOBOX FEATURES .============= */
/* ============================================== */

.photobox-features {
    padding: 120px 24px;
    background: white;
}

.photobox-features-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.photobox-features-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 24px;
}

.photobox-features-subtitle {
    font-size: 18px;
    color: var(--text-color);
    line-height: 1.6;
}

.photobox-features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.feature-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.feature-visual {
    height: 250px;
    overflow: hidden;
}

.feature-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-visual img {
    transform: scale(1.1);
}

.feature-content {
    padding: 32px;
}

.feature-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 16px;
}

.feature-content p {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
}

.feature-note {
    font-size: 14px !important;
    color: #888 !important;
    font-style: italic;
    margin-top: 12px;
    border-top: 1px solid #eee;
    padding-top: 12px;
}

/* ================================================ */
/* ============. PHOTOBOX GALLERY .=============== */
/* ================================================ */

.photobox-gallery-section {
    padding: 120px 24px;
    background: var(--off-white);
}

.photobox-gallery-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.photobox-gallery-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 24px;
}

.photobox-gallery-subtitle {
    font-size: 18px;
    color: var(--text-color);
    line-height: 1.6;
}

.photobox-gallery-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 24px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay p {
    margin: 0;
    font-weight: 600;
    font-size: 16px;
}



/* ============================================== */
/* ============. PHOTOBOX STYLES FIX .=========== */
/* ============================================== */

/* Fix pour la section toggle styles sur page PhotoBox */
.photobox-styles .photobox-style-details {
    min-height: 250px;
}

.photobox-styles .style-alu-details,
.photobox-styles .style-bois-details {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    display: block;
    margin-bottom: 0;
}

.photobox-styles .style-bois-details {
    display: none;
}

.photobox-styles .toggle:checked ~ .photobox-comparison .style-alu-details {
    display: none;
}

.photobox-styles .toggle:checked ~ .photobox-comparison .style-bois-details {
    display: block;
}

/* Ajustement pour les logos Made in */
.photobox-styles .madein-photobox {
    margin-top: 40px;
}

/* ============================================ */
/* =========. PHOTOBOX RESPONSIVE .=========== */
/* ============================================ */

@media (max-width: 968px) {
    .photobox-showcase-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .photobox-gallery {
        order: -1;
        height: 400px;
    }
    
    .photobox-secondary-images {
        height: 120px;
    }
    
    .photobox-image-container {
        height: 400px;
        margin-bottom: 40px;
    }
    
    .photobox-style-details {
        position: relative;
    }
    
    .style-alu-details,
    .style-bois-details {
        position: relative;
        margin-bottom: 24px;
    }
    
    .style-bois-details {
        opacity: 1;
        transform: translateY(0);
        display: none;
    }
    
    .toggle:checked ~ .photobox-comparison .style-alu-details {
        display: none;
    }
    
    .toggle:checked ~ .photobox-comparison .style-bois-details {
        display: block;
    }
    
    .madein-photobox {
        margin-top: 40px;
        gap: 24px;
    }
    
    .madein-photobox img {
        width: 80px;
        height: auto;
    }
}

@media (max-width: 768px) {
    .photobox-features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .photobox-gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 16px;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .photobox-advantages {
        gap: 20px;
    }
    
    .advantage-item {
        gap: 16px;
    }
    
    .advantage-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* ============================================== */
/* ============. POURQUOI NOUS COMPONENT .====== */
/* ============================================== */

.pourquoi {
    padding: 80px 24px;
    background: var(--warm-green);
}

.pourquoi h2 {
    margin-bottom: 16px;
}

.pourquoi h3 {
    margin-bottom: 30px;
}

.pourquoi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.pourquoi-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ============================================== */
/* ============. POLAROID CARDS .================ */
/* ============================================== */

.polaroid-card {
    background: white;
    border-radius: 8px;
    padding: 16px 16px 12px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: rotate(-2deg);
    transition: all 0.3s ease;
    margin-bottom: 24px;
    width: 240px;
    height: 280px;
    display: flex;
    flex-direction: column;
}

.polaroid-card:nth-child(2n) {
    transform: rotate(2deg);
}

.polaroid-card:nth-child(3n) {
    transform: rotate(-1deg);
}

.polaroid-card:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.polaroid-image {
    flex: 1;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 12px;
}

.polaroid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.polaroid-card:hover .polaroid-image img {
    transform: scale(1.1);
}

.polaroid-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 24px;
    padding: 0 4px;
}

.polaroid-icon {
    font-size: 18px;
    opacity: 0.7;
}

.polaroid-footer .svg {
    opacity: 0.8;
}

/* ============================================== */
/* ============. POURQUOI TEXT .================= */
/* ============================================== */

.pourquoi-item h4 {
    margin: 16px 0 12px 0;
    font-size: 20px;
}

.pourquoi-item p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 16px;
    max-width: 300px;
}

/* ============================================== */
/* ============. POURQUOI RESPONSIVE .=========== */
/* ============================================== */

@media (max-width: 768px) {
    .pourquoi {
        padding: 60px 24px;
    }
    
    .pourquoi-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .polaroid-card {
        width: 200px;
        height: 240px;
        padding: 12px 12px 8px 12px;
    }
    
    .pourquoi-item h4 {
        font-size: 18px;
    }
    
    .pourquoi-item p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .polaroid-card {
        width: 180px;
        height: 220px;
    }
    
    .pourquoi h3 {
        margin-bottom: 40px;
    }
}

/* ========================================================================== */
/* ============. FABRICATION SECTION .====================================== */
/* ========================================================================== */

.fabrication-section {
    margin: 60px 0 0;
    text-align: center;
    padding: 60px 24px;
    width: 100%;
}

.fabrication-full-width {
    margin-left: -24px;
    margin-right: -24px;
    width: calc(100% + 48px);
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    padding-left: 24px;
    padding-right: 24px;
}

.fabrication-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.fabrication-description {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.fabrication-benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.fabrication-section .benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border-left: 4px solid var(--warm-green);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.fabrication-section .benefit-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.fabrication-section .benefit-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.fabrication-section .benefit-item span:last-child {
    font-size: 16px;
    font-weight: 500;
    color: white;
}

@media (max-width: 1024px) {
    .fabrication-benefits {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .fabrication-section {
        padding: 40px 20px;
    }
    
    .fabrication-title {
        font-size: 24px;
    }
    
    .fabrication-description {
        font-size: 16px;
    }
    
    .fabrication-benefits {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .fabrication-section .benefit-item {
        padding: 16px 20px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .fabrication-benefits {
        grid-template-columns: 1fr;
    }
}