/* --- ÉTAT INITIAL : PORTFOLIO (Par défaut) --- */
#style-portal {
    background-color: var(--bg-color);
    border: 5px solid var(--tech-brown);
    box-shadow: 15px 15px var(--tech-brown);
    border-radius: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 60px 40px;
}

/* --- ÉTAT FINAL : SITE LE FAB --- */
#style-portal.state-site {
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-radius: 30px;
}

/* Transformations des titres et cadres */
#style-portal.state-site .tech-title {
    border-bottom: none;
    font-family: 'Inter', sans-serif;
    color: #000;
    letter-spacing: 2px;
}

#style-portal.state-site .tech-frame {
    border: 1px solid #f0f0f0;
    background: #ffffff;
    box-shadow: none;
}

#style-portal.state-site .status-tag {
    background: #000;
}

/* --- ÉLÉMENTS DE LA PAGE --- */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.main-logo { width: 100%; max-width: 250px; }

/* --- ENCADREMENT ET STYLISATION DES PRODUITS (STYLE BOUTIQUE) --- */

.clothes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Légèrement élargi pour valoriser l'image */
    gap: 30px;
    margin-top: 30px;
}

.cloth-card {
    background: #ffffff;
    padding: 0; /* On gère les marges proprement */
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Conteneur de l'image pour gérer le zoom et l'overlay */
.cloth-img-wrapper {
    position: relative;
    width: 100%;
    background-color: #fafafa; /* Léger fond gris pour détacher le vêtement blanc */
    overflow: hidden;
    aspect-ratio: 1 / 1; /* Assure un rendu carré parfait pour tes produits */
    display: flex;
    justify-content: center;
    align-items: center;
}

.cloth-img-wrapper img {
    width: 90%; /* Garde une marge interne autour du produit */
    height: auto;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Effet de fondu noir transparent au survol */
.cloth-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Voile sombre très léger */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.view-tag {
    background: #ffffff;
    color: #000000;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 900;
    padding: 12px 24px;
    letter-spacing: 1px;
    border: 1px solid #000000;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

/* Zone d'infos sous l'image (alignée à gauche comme sur tes screens) */
.cloth-info {
    padding: 15px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Inter', sans-serif;
    background: transparent;
}

.cloth-name {
    font-size: 0.9rem;
    font-weight: 400;
    color: #000000;
}

.cloth-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #000000;
}

/* --- INTERACTION AU SURVOL --- */

.cloth-card:hover {
    border-color: #000000; /* La bordure externe devient noire nette */
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.cloth-card:hover .cloth-img-wrapper img {
    transform: scale(1.05); /* Zoom discret sur le t-shirt/la banane */
}

.cloth-card:hover .cloth-overlay {
    opacity: 1;
}

.cloth-card:hover .view-tag {
    transform: translateY(0);
}

/* Adaptation automatique quand le style général devient blanc */
#style-portal.state-site .cloth-card {
    border: 1px solid #eaeaea;
}

/* Bouton style Boutique */
.shop-btn-clean {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 15px 40px;
    text-decoration: none;
    font-weight: 900;
    margin-top: 30px;
    transition: 0.3s;
}

.shop-btn-clean:hover { background: #333; }

.contact-box-final { text-align: center; margin-top: 50px; }