@import url('header.css'); /* Charge ton header/footer */
@import url('footer.css'); /* Charge ton header/footer */


/* ========================================================
   HERO
   ======================================================== */
.hero {
    position: relative;
    height: 100vh; /* ← indispensable */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================================
   HERO SLIDESHOW
   ======================================================== */
.hero-slideshow {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%; /* ← déjà là normalement */
    overflow: hidden;
}

.slide {
    position: absolute;
    top: -5%; left: -5%;
    width: 110%;
    height: 110%; /* ← vérifie que c'est bien 110% et pas 100% */
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    animation: subtleZoom 20s ease-in-out infinite alternate;
}

.slide.active {
    opacity: 1;
}

@keyframes subtleZoom {
    0%   { transform: scale(1); }
    100% { transform: scale(1.03); }
}

.overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom,
        rgba(10, 76, 86, 0.2) 0%,
        rgba(10, 76, 86, 0.5) 100%);
}

.hero h1 {
    position: relative;
    color: #faf3E0;
    font-size: 6rem;
    font-weight: 300;
    text-align: center;
    letter-spacing: 8px;
    opacity: 0;
    animation: fadeIn 1.5s ease forwards 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}


.info-section {
    background: linear-gradient(135deg, #D9A441 0%, #f4c467 100%);
    padding: 120px 12%;
    color: #0a4c56;
}

.info-section h2 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 50px;
    display: inline-block;
    position: relative;
}

.info-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px; left: 0;
    width: 120px; height: 4px;
    background: linear-gradient(90deg, #0a4c56, #0d5f6d);
}

.info-section ul {
    list-style: none;
    border-left: 3px solid #0a4c56;
    padding-left: 40px;
    margin-top: 60px;
    display: flex; flex-direction: column; gap: 50px;
}

.info-section li {
    position: relative; padding-left: 10px;
    transition: transform 0.3s ease;
}

.info-section li:hover { transform: translateX(10px); }

.info-section li::before {
    content: '';
    position: absolute;
    left: -50px; top: 8px;
    width: 20px; height: 20px;
    background: linear-gradient(135deg, #0a4c56, #0d5f6d);
    border-radius: 50%;
}

.info-section li h3 { color: #0a4c56; font-size: 1.6rem; margin-bottom: 12px; }
.info-section li p  { font-size: 1.1rem; line-height: 1.8; color: rgba(10,76,86,0.85); }

/* CAVE */
.carte-container {
    background: #faf3E0;
    padding: 120px 10%;
}

.categorie { margin-bottom: 100px; }

.categorie-titre {
    font-size: 2.8rem;
    font-weight: 600;
    color: #0a4c56;
    margin-bottom: 50px;
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
}

.categorie-titre::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, #D9A441, transparent);
}

.grille {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.vin {
    background: #fff;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.vin::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(217, 164, 65, 0.1), transparent);
    transition: left 0.6s ease;
}

.vin:hover::before { left: 100%; }

.vin:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(217, 164, 65, 0.3);
    border-color: #D9A441;
}

.infos-vin { display: flex; flex-direction: column; gap: 6px; }

.nom-vin {
    font-weight: 600; font-size: 1.1rem; color: #0a4c56;
    transition: color 0.3s ease;
}

.vin:hover .nom-vin { color: #D9A441; }

.region-vin { font-size: 0.9rem; color: #888; font-style: italic; }
.contenance-vin { font-size: 0.85rem; color: #aaa; }

.prix-vin {
    font-weight: 700; font-size: 1.3rem; color: #D9A441;
    margin-top: 5px;
}

@media (max-width: 900px) {
    header { padding: 20px 30px; }
    .carte-container { padding: 80px 5%; }
    .grille { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .hero h1 { font-size: 2.5rem; }
    header { flex-direction: column; gap: 15px; }
    nav ul { flex-wrap: wrap; justify-content: center; }
    .grille { grid-template-columns: 1fr; }
}

/* ========================================================
   FOOTER
   ======================================================== */
footer {
    background-color: #0a4c56;
    color: #faf3E0;
    padding: 80px 10% 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto 60px;
}

.footer-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #D9A441;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 50%; height: 2px;
    background: linear-gradient(90deg, #D9A441, transparent);
}

.footer-section p,
.footer-section a {
    font-size: 0.95rem;
    line-height: 2;
    color: #faf3E0;
    text-decoration: none;
    font-weight: 300;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.footer-section a:hover { opacity: 1; color: #D9A441; }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(250, 243, 224, 0.2);
    font-size: 0.9rem;
    font-weight: 300;
    opacity: 0.7;
}