* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

html {
    scroll-behavior: smooth;
    min-width: 320px;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f8f8;
    color: #333;
    line-height: 1.6;
}

/* Header épuré */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    width: 80px;
    height: auto;
}
  
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
}
  
.logo a {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}
  
.logo a span {
    color: #8739fa;
}
  
.menu {
    display: flex;
    justify-content: center;
    align-items: center;
}
  
.menu a {
    display: block;
    padding: 0.5rem 2rem;
    font-size: 18px;
    font-weight: 400;
    transition: 0.2s all ease-in-out;
    color: black;
    font-family: 'Roboto', sans-serif;

}
  
.menu:hover a {
    opacity: 0.4;
}
  
.menu a:hover {
    opacity: 1;
    color: black;
}
  
.menu-icon {
    display: none;
}
  
#menu-toggle {
    display: none;
}
  
#menu-toggle:checked ~ .menu {
    transform: scale(1, 1);
}

/* Page des cuvées */
.cuvees-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.hero-content{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.hero-section {
    position: relative;
    text-align: center;
    padding: 8rem 1rem;
    margin-bottom: 4rem;
    overflow: hidden;
}

.hero-section h1 {
    font-weight: 400;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c2c2c;
    padding: 10px 20px; /* Espacement autour du texte */
    border-radius: 5px; /* Bords arrondis pour un effet plus doux */
    width: fit-content;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit:cover;
    z-index: -1;
}

/* Carte cuvée */
.cuvee-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin: 4rem 0;
    padding: 2rem;
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.bottle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    width: 600px;
}

.bottle-container img {
    max-height: 400px;
    width: auto;
    transition: transform 0.3s ease;
}

.cuvee-details {
    padding: 1rem;
}

.cuvee-details h2 {
    font-weight: 400;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #3a3a3a;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.spec-item h3 {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spec-item ul {
    list-style: none;
    padding-left: 0;
}

.spec-item li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
}

.cuvee-label {
    max-width: 150px;
    height: auto;
    margin-top: 2rem;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#last{
    margin-bottom: 0;
}

.credit {
    text-align: end;
    padding: 1.5rem;
}

.credit a{
    color: black;
    text-decoration: underline;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 1rem;
    border-top: 1px solid #eee;
}

.footer a {
    color: black;
}

.footer-logo {
    width: 80px;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.social-link {
    margin-top: 8px; 
}

.flex{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.social{
    width: 50px;
    height: 50px;
}

.social2{
    width: 60px;
}

/* Media querries */
@media (max-width: 1224px) {

    .cuvees-main {
        padding: 0;
    }

    .hero-section{
        margin-bottom: -2rem;
    }

    .cuvee-card {
        padding: 1.5rem;
        margin: 2rem 0;
    }

    .cuvee-details h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
        text-align: center;
        padding: 0;
    }

    .bottle-container img {
        height:auto;
    }

    /* Création d'une grille 2x2 pour les spécifications */
    .specs-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Deux colonnes */
        grid-template-rows: repeat(2, 1fr); /* Deux lignes */
        gap: 1rem;
        text-align: center;
        padding: 1rem;
        background: #f9f9f9;
        border-radius: 8px;
    }

    .spec-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 1rem;
        background: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        border-radius: 6px;
    }

    .spec-item2 {
        display: flex;
        flex-direction: column;
       justify-content: center;
    }

    .spec-item h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .spec-item ul {
        padding: 0;
    }

    .spec-item li {
        font-size: 0.9rem;
    }

    /* Ajustement de l'étiquette */
    .cuvee-label {
        max-width: 150px;
        margin: 0 auto;
    }
}

@media (max-width: 1080px) {
    .cuvee-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .bottle-container {
        width: 100%;
        padding: 1rem;
    }

    .bottle-container img {
        max-height: 300px;
    }

    .cuvee-details {
        padding: 0;
    }

    .cuvee-details h2 {
        font-size: 1.6rem;
    }

    .specs-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
    }

    .cuvee-label {
        max-width: 120px;
    }
}

@media only screen and (max-width: 768px) {
    .menu {
        color: #333;
        flex-direction: column;
        background-color:white;
        opacity: 0.9;
        align-items: center;
        position: absolute;
        top: 100px;
        left: 0;
        width: 100%;
        z-index: 1;
        transform: scale(1, 0);
        transform-origin: top;
        transition: transform 0.3s ease-in-out;
        box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    }
    
    .menu a {
        margin-left: 12px;
    }
    
    .menu li {
        margin-bottom: 10px;
    }
    
    .menu-icon {
        display: block;
        color: black;
        font-size: 28px;
        cursor: pointer;
    }

    .hero-section h1 {
        font-size: 2rem;
        background: rgba(255, 255, 255, 0.7);
    }
    
    .hero-section {
        padding: 4rem 1rem;
    }
}

@media (max-width: 600px) {
    .specs-grid {
        display: flex;
        flex-direction: column;
    }

    .bottle-container {
        width: auto;
    }

    .bottle-container img {
        max-height: 150px;
    }
}