* {
    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;
}

section{
    background-image: url("/assets/images/vignes/IMG_9304.webp");
    background-size: cover;
    background-position: center right 35%;
    overflow: hidden;
}

/* Header épuré */
.header {
    font-family: 'Roboto', sans-serif;

    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);
}

/* Section Intro */
.intro-section {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
    align-items: center;
    padding: 2rem 0;
}

.text-block {
    padding: 2rem;
}

.section-title {
    font-weight: 400;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #222;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.image-block {
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
}

/* Section Texte */
.text-section {
    background: #f9f9f9;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.text-content {
    line-height: 1.8;
    color: #444;
}

.text-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.link{
    color: black;
    text-decoration: underline;
}

.pdf{
    width: 100%;
    height: 490px;
}

/* Galerie */
.gallery-section {
    background: #fff;
}

.grid-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 4px;
    transition: transform 0.3s ease;
    aspect-ratio: 4/3;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}


/* Responsive */

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .image-block {
        height: 300px;
        order: -1;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* 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;
}

/* Responsive */
@media (max-width: 768px) {
    
    .top {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .photo img {
        height: 200px;
    }
}

/* responsive */

@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;
    }
}