/* =====================================================

LA GOUSSE D'AIL - PAGE TRUFFINETTE

Styles spécifiques boutique La Truffinette

===================================================== */

/* STRUCTURE PAGE */

.page-wrapper {
    padding-top: 56px;
}

/* HERO BOUTIQUE */

.shop-hero {
    min-height: 60vh;
    background:
        linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.6)),
        url('../images/truffinette.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 80px 20px;
}

.shop-hero-title {
    font-family: var(--font-serif);
    font-size: 72px;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.shop-hero-tagline {
    font-size: 22px;
    font-weight: 300;
}

/* INTRO */

.shop-intro {
    padding: 100px 40px 60px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.shop-intro h2 {
    font-family: var(--font-serif);
    font-size: 42px;
    color: #E53E3E;
    margin-bottom: 24px;
}

.shop-intro p {
    font-size: 18px;
    line-height: 1.8;
    color: #4A4A4A;
}

/* SECTION PRODUITS */

.products-section {
    position: relative;
    padding: 80px 40px 100px;
    background: #F7FAFC;
    overflow: hidden;
}

.products-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background-image: url('../logo-truffinette.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.04;
    pointer-events: none;
}

.products-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 0 10px;
}

.product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.4s ease;
}

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

.product-image-simple {
    width: 100%;
    max-width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.product-image-simple img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.08));
    transition: transform 0.4s ease;
}

.product-item:hover .product-image-simple img {
    transform: scale(1.1);
}

.product-item h3 {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 6px;
    line-height: 1.3;
}

.product-item p {
    font-size: 12px;
    color: var(--color-text-light);
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-item .price {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-primary);
    font-family: var(--font-serif);
}

/* MODAL PRODUIT */

.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.product-modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 1100px;
    width: 100%;
    display: grid;
    grid-template-columns: 45% 55%;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
    animation: modalSlideIn 0.4s ease;
    position: relative;
}

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

.modal-image-side {
    background: #F7FAFC;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
}

.modal-image-side img {
    width: 100%;
    max-width: 400px;
    height: auto;
}

.modal-text-side {
    padding: 60px 50px;
}

.modal-text-side h2 {
    font-family: var(--font-serif);
    font-size: 36px;
    color: var(--color-text);
    margin-bottom: 16px;
}

.modal-price {
    font-size: 28px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 30px;
    display: block;
}

.modal-text-side p {
    font-size: 16px;
    line-height: 1.8;
    color: #4A4A4A;
    margin-bottom: 30px;
}

.modal-details {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text-light);
    background: #F7FAFC;
    padding: 20px;
    border-radius: 8px;
}

.modal-close {
    position: fixed;
    top: 40px;
    right: 50px;
    color: white;
    font-size: 48px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10002;
    line-height: 1;
    font-weight: 300;
    transition: all 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg);
    color: var(--color-primary);
}

/* SECTION VISITE */

.visit-section {
    padding: 100px 40px 120px;
    text-align: center;
    background: white;
}

.visit-section h2 {
    font-family: var(--font-serif);
    font-size: 42px;
    color: var(--color-text);
    margin-bottom: 24px;
}

.visit-section p {
    font-size: 18px;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.visit-btn {
    display: inline-block;
    padding: 16px 45px;
    border: 2px solid #333;
    background: transparent;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.visit-btn:hover {
    background: #333;
    color: #fff;
    transform: translateY(-2px);
}

/* RESPONSIVE */

/* Petits téléphones (320px - 480px) */

@media (max-width: 480px) {
    .products-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 15px;
        padding: 0 5px;
    }

    .product-image-simple {
        max-width: 140px;
        height: 140px;
        margin-bottom: 12px;
    }

    .product-item h3 {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .product-item p {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .product-item .price {
        font-size: 18px;
    }

    .shop-hero-title {
        font-size: 36px;
    }

    .shop-hero-tagline {
        font-size: 16px;
    }

    .shop-intro {
        padding: 60px 20px 40px;
    }

    .shop-intro h2 {
        font-size: 28px;
    }

    .shop-intro p {
        font-size: 16px;
    }
}

/* Téléphones moyens (481px - 768px) */

@media (min-width: 481px) and (max-width: 768px) {
    .products-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
        padding: 0 10px;
    }

    .product-image-simple {
        max-width: 160px;
        height: 160px;
        margin-bottom: 15px;
    }

    .product-item h3 {
        font-size: 15px;
    }

    .product-item p {
        font-size: 12px;
    }

    .product-item .price {
        font-size: 19px;
    }

    .shop-hero-title {
        font-size: 48px;
    }

    .shop-hero-tagline {
        font-size: 18px;
    }
}

/* Tablettes (769px - 1024px) */

@media (min-width: 769px) and (max-width: 1024px) {
    .products-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 50px 30px;
    }

    .product-image-simple {
        max-width: 170px;
        height: 170px;
    }

    .product-item h3 {
        font-size: 18px;
    }

    .product-item p {
        font-size: 13px;
    }
}

/* Desktop (1025px et plus) */

@media (min-width: 1025px) {
    .products-row {
        grid-template-columns: repeat(4, 1fr);
        gap: 60px 40px;
    }

    .product-image-simple {
        max-width: 200px;
        height: 200px;
        margin-bottom: 20px;
    }

    .product-item h3 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .product-item p {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .product-item .price {
        font-size: 22px;
    }
}

/* Modal responsive - MODIFICATIONS ICI POUR RÉDUIRE LA TAILLE ET VOIR LA CROIX */

@media (max-width: 768px) {
    .product-modal {
        padding: 20px;
    }

    .modal-content {
        grid-template-columns: 1fr;
        max-height: 80vh;
        overflow-y: auto;
        margin-top: 50px;
    }

    .modal-image-side {
        padding: 30px 20px;
    }

    .modal-image-side img {
        max-width: 260px;
    }

    .modal-text-side {
        padding: 30px 25px;
    }

    .modal-text-side h2 {
        font-size: 24px;
    }

    .modal-price {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .modal-text-side p {
        font-size: 15px;
        line-height: 1.7;
    }

    .modal-details {
        font-size: 13px;
        padding: 16px;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        font-size: 42px;
    }
}

/* Très petits écrans pour la modal */

@media (max-width: 480px) {
    .modal-content {
        margin-top: 55px;
        max-height: 78vh;
    }

    .modal-text-side {
        padding: 25px 20px;
    }

    .modal-text-side h2 {
        font-size: 22px;
    }

    .modal-price {
        font-size: 20px;
        margin-bottom: 18px;
    }

    .modal-text-side p {
        font-size: 14px;
    }

    .modal-close {
        top: 12px;
        right: 12px;
        font-size: 38px;
    }
}
