/* ==========================================================================
   1. BASES & RESET
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "Times New Roman", Times, serif;
    background-color: #fff;
    color: #000;
    line-height: 1.4;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

a { text-decoration: none !important; color: inherit; transition: 0.3s ease; }

/* ==========================================================================
   2. HEADER FIXE (COMMUN)
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 4%;
}

.logo-link h1, .back-link {
    font-size: 0.9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 400;
}

.lang-selector-text { font-size: 0.7rem; letter-spacing: 2px; }
.lang-selector-text a { opacity: 0.4; }
.lang-selector-text a.active { opacity: 1; font-weight: bold; }

/* ==========================================================================
   3. INDEX : IMAGE PLEIN ÉCRAN & MENU CENTRÉ
   ========================================================================== */
.home-fullscreen {
    height: 100vh;
    width: 100vw;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('img/background-joaillerie.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
}

/* On force le texte en blanc sur l'index pour la lisibilité */
.home-fullscreen .main-header, 
.home-fullscreen .central-menu a { color: #fff; }

.hero-nav {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.central-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.central-menu a {
    font-size: 1.2rem;
    letter-spacing: 6px;
    text-transform: uppercase;
}

.central-menu a:hover { color: #000 !important; }

/* ==========================================================================
   4. CATALOG : NOIR, 2 COLONNES, TITRE SUR PHOTO
   ========================================================================== */
.page-catalog { background-color: #ffffff !important; color: #000000 !important; }
.page-catalog .main-header { color: #000000; }

.catalog-main-title {
    text-align: left;
    padding: 10px 1%;
    font-size: 1.0rem;
    letter-spacing: 5px;
    margin-bottom: 10px;
    text-transform: lowercase;
    opacity: 0.8;
}

.catalog-container {
    padding: 120px 3% 60px;
    max-width: 1600px;
    margin: 0 auto;
}

.year-title {
    text-align: center;
    font-size: 1.4rem;
    letter-spacing: 10px;
    margin-bottom: 30px;
    text-transform: uppercase;
    opacity: 0.8;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 30px;
}

/* POSITIONNEMENT DU TITRE SUR LA PHOTO */
.image-wrapper {
    position: relative; /* Référence pour le titre */
    width: 100%;
    margin-bottom: 20px;
}

.image-wrapper img { width: 100%; height: auto; display: block; }

.item-title {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 5px;
    text-transform: lowercase;
    color: #ffffff;
}

/* DESCRIPTIONS RESSERRÉES ET PETITES */
.item-description { text-align: center; letter-spacing: 1px; }

.item-type { 
    font-size: 0.6rem; color: #444; 
    text-transform: uppercase; letter-spacing: 2px; 
    margin-bottom: 5px; 
}

.price-line { font-size: 0.75rem; color: #444; margin: 1px 0; }
.price-line .prc { color: #444; }

.item-footer { 
    font-size: 0.6rem; color: #bbb;
    letter-spacing: 1px; 
    border-top: 1px solid #bbb; 
    padding-top: 8px; margin-top: 10px;
    display: inline-block;
}

/* ==========================================================================
   5. CONTACT : CENTRÉ & BLANC
   ========================================================================== */
.page-contact { background-color: #fff !important; color: #000 !important; }

.contact-container {
    height: 100vh;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 35vh !important;
    margin-bottom: 0;
    display: block; 
    text-align: center;
    flex : 1;
}

.contact-name {
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-item { font-size: 0.9rem; letter-spacing: 1px; color: #000; transition: color 0.3s ease; }
.contact-item a:hover { color: #01a4ef !important; cursor: pointer; }
.sub-label { font-size: 0.6rem; opacity: 0.5; text-transform: uppercase; display: block; color: #000;}

/* ==========================================================================
   6. MENTIONS LEGALES
   ========================================================================== */
.footer-legal {
    position: static;
    bottom: 20px;
    width: 100%;
    text-align: center;
    padding: 40px 0 20px;
    text-align: center;
    width: 100%;
}

.legal-link {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000 !important;
    opacity: 0.4;
    text-decoration: none;
    padding: 10px;
    transition: opacity 0.3s;
}

.legal-link:hover {
    opacity: 1;
    color: #01a4ef !important;
}

.legal-wrapper {
    max-width: 800px;
    margin: 160px auto 100px;
    padding: 0 40px;
    font-family: 'Times New Roman', serif;
}

.legal-main-title {
    text-transform: lowercase;
    letter-spacing: 6px;
    font-weight: 300;
    font-size: 1.8rem;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 20px;
}

.legal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.legal-section h2 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    font-weight: 400;
}

.legal-section p {
    font-size: 0.9rem;
    line-height: 1.8;
    opacity: 0.7;
    margin: 0;
}

/* ==========================================================================
   7. RESPONSIVE MOBILE
   ========================================================================== */
@media screen and (max-width: 800px) {
    /* Force la grille sur une seule colonne */
    .catalog-grid { 
        grid-template-columns: 1fr !important; 
        gap: 50px; 
        padding: 0 10px;
    }

    /* Ajustement du container pour le vide en haut sur mobile */
    .catalog-container {
        padding: 100px 5% 40px;
    }

    /* Réduire la taille des titres pour mobile */
    .year-title {
        font-size: 1.1rem;
        letter-spacing: 6px;
    }

    .item-title {
        font-size: 0.85rem;
        letter-spacing: 3px;
        width: 95%;
    }

    .header-nav { padding: 20px 5%; }
    
    .legal-wrapper { margin-top: 100px; padding: 0 25px; }
    .legal-main-title { font-size: 1.4rem; }
    
    /* Menu central de l'index sur mobile */
    .central-menu a {
        font-size: 1rem;
        letter-spacing: 4px;
    }
}
