/* Style global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Garamond, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #333;
}

/* En-tête et Bannière */
header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 2rem;
}

.banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-family: Monotype Corsiva, sans-serif;
	font-size: 1.5rem;
    font-weight: bold;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.main-nav a:hover {
    color: #3498db;
}


/* Zone de contenu principal */
main {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Grille de la page d'accueil */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding-bottom: 1rem;
}

.product-card img {
    width: 100%;
    object-fit: cover;
}

.product-card h3 {
    margin-top: 0.8rem;
    font-size: 1.1rem;
}

/* Page produit */
.panoramic-container {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.panoramic-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-description h1 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.product-description p {
    line-height: 1.6;
    font-size: 1.05rem;
}

	
/* Pied de page */
footer {
    background-color: #ecf0f1;
    border-top: 1px solid #ddd;
    padding: 2rem;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-field {
    flex: 1;
    min-width: 200px;
}

.footer-field h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.footer-field p {
    font-size: 0.9rem;
    color: #666;
}
/* Style du Slider */
.slider-container {
    max-width: 1110px;
    width: 100%;
    margin: 0 auto 2.5rem auto;
}

.slider {    
	position: relative;
    width: 100%;
    height: auto;
	aspect-ratio: 1110 / 340; /* Remplace height par aspect-ratio */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slides {    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Boutons précédent / suivant */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    font-size: 1.5rem;
    padding: 0.8rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
    user-select: none;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev { left: 15px; }
.next { right: 15px; }

/* Puces de navigation */
.dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active, .dot:hover {
    background-color: white;
}
}