/* --- Variables et Bases --- */
:root {
    --gold: #b08d57;
    --white: #ffffff;
    --glass: rgba(0, 0, 0, 0.6); /* Fond sombre transparent pour la lisibilité */
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Arial', sans-serif;
    color: var(--white);
    overflow-x: hidden;
}

/* --- Slider d'arrière-plan --- */
.background-slider {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1; /* Derrière le texte */
}

.slide {
    position: absolute;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideAnimation 42s infinite; /* 40 secondes pour 7 images */
}

/* Liens vers vos images (remplacez par vos fichiers) */
.s1 { background-image: url('/images/Images de fond/image A.jpg'); animation-delay:0s; }
.s2 { background-image: url('/images/Images de fond/image B.jpg'); animation-delay: 6s; }
.s3 { background-image: url('/images/Images de fond/image C.jpg'); animation-delay: 12s; }
.s4 { background-image: url('/images/Images de fond/image D.jpg'); animation-delay: 18s; }
.s5 { background-image: url('/images/Images de fond/image E.jpg'); animation-delay: 24s; }
.s6 { background-image: url('/images/Images de fond/image F.jpg'); animation-delay: 30s; }
.s7 { background-image: url('/images/Images de fond/image G.jpg'); animation-delay: 36s; }


@keyframes slideAnimation {
0% { opacity: 0; }
    5% { opacity: 1; }   /* Apparition rapide (fondu) */
    14% { opacity: 1; }  /* Reste visible (1/7ème de 42s = 6s) */
    19% { opacity: 0; }  /* Disparition */
    100% { opacity: 0; }
}

/* --- Mise en page du contenu --- */
.overlay {
    min-height: 100vh;
    background: radial-gradient(circle, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

header {
    margin-top: 50px;
    padding: 20px;
}

/* .main-title {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 0;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
} */


.main-title {
    font-family: 'MedievalSharp', cursive; /* La police celtique */
    font-size: 8rem;                     /* Ajuste la taille selon tes besoins */
    color: #d4af37;                         /* Un bel or pour rappeler la joaillerie */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Pour qu'il ressorte bien sur le slider */
    letter-spacing: 2px;
    margin-bottom: 0;
    display: flex;
}

.subtitle {
    font-style: italic;
    letter-spacing: 2px;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 30px;
    margin: 40px 0;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
}

nav a:hover {
    color: var(--gold);
    border-bottom: 1px solid var(--gold);
}

.hero-content {
    background: var(--glass);
    padding: 40px;
    border-radius: 10px;
    max-width: 2000px;
    margin: 20px;
    backdrop-filter: blur(5px); /* Floute l'arrière-plan sous le texte */
}

h2 {
    color: var(--gold);
    font-family: 'Cinzel', serif;
}

footer {
    margin-top: auto;
    padding: 30px;
    font-size: 0.9rem;
    background: rgba(0,0,0,0.8);
    width: 100%;
}

/* Style de la galerie de bijoux */
.jewelry-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    gap: 20px;
    margin: 30px auto;
    max-width: 1200px;
}

.jewelry-card {
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.3); /* Bordure couleur or légère */
    border-radius: 4px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.jewelry-card:hover {
    transform: translateY(-5px);
    border-color: #d4af37; /* Or plus vif au survol */
}

.jewelry-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.jewelry-card:hover img {
    opacity: 1;
}

.card-label {
    padding: 10px;
    background: rgba(10, 10, 10, 0.8);
    font-family: 'Cinzel', serif;
    font-size: 0.8em;
    letter-spacing: 1px;
    color: #d4af37;
}

/* Zone des matériaux */
.materials-info {
    margin: 40px auto;
    padding: 15px;
    border-top: 1px solid rgba(212, 175, 55, 0.5);
    border-bottom: 1px solid rgba(212, 175, 55, 0.5);
    max-width: 1200px;
    background: rgba(0, 0, 0, 0.2);
}

.materials-info p {
    margin: 0;
    font-size: 1.1em;
    color: #fff;
}

.materials-info strong {
    color: #d4af37; /* Met en valeur les types d'or */
    font-weight: normal;
    text-transform: uppercase;
    font-size: 0.9em;
}

/* --- EFFET LOUPE AU SURVOL (HOVER ZOOM) --- */

/* 2. L'image normale */
.carousel-item img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    display: block;
    
    /* Le liseré doré */
    border: 2px solid #d4af37;
    box-sizing: border-box;
    
    /* Transition fluide pour le zoom (0.3 secondes) */
    transition: transform 0.3s ease-in-out;
    
    /* Origine du zoom au centre */
    transform-origin: center center; 
}


/* Fenêtre de vue */
.carousel-container {
    width: 100%; /* S'adapte à la largeur de votre page */
    max-width: 1200px; /* Optionnel : limite la largeur globale */
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

/* La piste qui contient tous les éléments */
.carousel-track {
    display: flex;
    width: max-content;
    animation: scrollInfiniment 90s linear infinite; /* 30s pour un mouvement doux */
}

/* Pause au survol pour pouvoir cliquer ou regarder */
.carousel-track:hover {
    animation-play-state: paused;
}

/* Chaque bloc (Image + Texte) */
/* 1. Le conteneur de l'image (le cadre de la loupe) */
.carousel-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 520px; /* Image (300) + Marges (5+5) */
    flex-shrink: 0;
    
    /* IMPORTANT : Masque le zoom qui dépasse */
    overflow: visible; 
    
    /* Optionnel : adoucit les bords du cadre */
    border-radius: 8px; 
    margin: 0 5px; /* L'écart entre les blocs */
}

.carousel-item img {
    width: 400px;  /* Ajustez ici la taille souhaitée */
    height: 400px; /* Carré parfait */
    object-fit: cover;
    border: 2px solid #d4af37; /* Le petit liseré doré */
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: block;
}

/* 4. On ajuste le texte pour qu'il ne soit pas masqué par l'overflow */
.card-label {
    padding: 10px;
    color: #d4af37;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    text-align: center;
    background: rgba(0, 0, 0, 0.8); /* Fond pour garantir la lisibilité */
    width: 100%;
    box-sizing: border-box;
    z-index: 2; /* Passe au-dessus de l'image zoomée */
}

/* 3. L'effet LOUPE au survol */
/* Quand on survole le bloc (.carousel-item), l'image (img) zoom */
.carousel-item:hover img {
    transform: scale(1.8); /* Zoom de 50%. Ajustez (ex: 1.8) pour plus de zoom */
    cursor: crosshair; /* Change le curseur pour un effet "précision" */
}


/* ANIMATION MAGIQUE */
@keyframes scrollInfiniment {
    0% {
        transform: translateX(0);
    }
    100% {
        /* On déplace exactement de la moitié de la piste (la série originale) */
        transform: translateX(-50%);
    }
}

/* Légende sous l'image */
#caption {
    color: #d4af37;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    margin-top: 15px;
    text-align: center;

}

/* Style de l'encadré Contact */
#email-box {
    display: none; /* Caché par défaut */
    margin-top: 15px;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.9); /* Fond blanc presque opaque */
    border: 2px solid var(--gold);
    border-radius: 8px;
    color: #000; /* Texte noir pour une lisibilité maximale sur fond blanc */
    font-family: 'Cinzel', serif;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.4s ease-in-out;
}

#email-box a {
    color: #d44c16; /* Couleur spécifique pour le lien mail (ex: orange foncé) */
    text-decoration: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
