/* Styles Généraux */
body {
    font-family: "Gabriela", Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    color: #333;
}
h1, h2, h3, h4, h5, h6 {
    font-family: "Atma", serif;
}
h2 {
    font-weight: 600;
}
h3, h4, h5, h6 {
    font-weight: 500;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}
p.chapo {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 0 4em;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Header */
header {
    
    background-color: transparent;
    color: #FFF;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}
.scrolled header {
    background: #FFF;
    color: #666;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}
main {
    margin-top: -92px;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}
.logo a {display: flex; flex-direction: row;  align-items: center; gap: 1rem; font-family: "Atma", serif; text-decoration: none; color: #FFF;transition: color 0.3s ease;}
.scrolled .logo a {color: #000;}
.logo a:hover {color: #FFCE00;}
.logo a img {display: block;}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav ul li {
    margin-left: 20px;
}

.main-nav ul li a {
    color: #FFF;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    font-weight: bold;
    font-family: "Gabriela", serif;
}
.scrolled .main-nav ul li a {color: #000;}

.main-nav ul li a:hover {
    color: #FFCE00;
}

.hamburger-menu {
    display: none; /* Masqué par défaut sur les grands écrans */
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    height: 20px;
    width: 25px;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    transition: all 0.3s ease;
}

/* Menu Hamburger actif */
.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Section d'Accroche (Hero) */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('./balloon.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.hero-section h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn-cta {
    background: #007bff;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: background 0.3s ease;
}

.btn-cta:hover {
    background: #0056b3;
}
.button-list {
    display: flex;
    flex-direction: row;
    gap: 1em;
    justify-content: center;
}

/* Section présentation */
.presentation-section {
    h1 {
        text-align: center;
    }
    p:nth-child(even) {
        padding-left: 2em;
    }
    padding-bottom: 4em;
    p:first-child {
        margin-top: 0;
    }
    .photo img {
        width: 70%;
        margin: auto;
        display: block;
        margin-top: 1rem;
        box-shadow: 9px 10px 0px 0px #FFCE00;
        border-radius: .5rem;
    }
}
.grid2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 580px));
    gap: 30px;
    justify-content: center;
}
/* Section Fonctionnalités */
.features-section, .testimonials-section, .contact-section {
    padding: 80px 0;
    text-align: center;
}

.features-section {
    background: #FFCE00;
}

.features-section h2, .testimonials-section h2, .contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-shadow: 0 2px 1px rgba(0,0,0,0.2);
}

.features-section h2, .contact-section h2 {
    color: #FFF;
}


.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 580px));
    gap: 30px;
    justify-content: center;
}

.feature-item {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.feature-item p {
    text-align: left;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #007bff;
}

/* Section Témoignages */
.testimonials-section {
    background: #fff;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-item {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.testimonial-item p {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-item cite {
    font-weight: bold;
    color: #555;
}

/* Section Contact */
.contact-section {
    background: #FFCE00;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box; /* Important pour que le padding n'augmente pas la largeur */
}

.form-group textarea {
    resize: vertical;
}

.btn-submit {
    background: #28a745;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    background: #218838;
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-nav {
        display: none; /* Masque la navigation principale */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px; /* Ajustez si votre header a une hauteur différente */
        left: 0;
        background: #444;
        text-align: center;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    }

    .main-nav.active {
        display: flex; /* Affiche la navigation quand le menu hamburger est actif */
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .main-nav ul li {
        margin: 0;
        border-bottom: 1px solid #555;
    }

    .main-nav ul li:last-child {
        border-bottom: none;
    }

    .main-nav ul li a {
        display: block;
        padding: 15px 0;
    }

    .hamburger-menu {
        display: flex; /* Affiche le menu hamburger */
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .feature-grid, .testimonial-grid {
        grid-template-columns: 1fr; /* Une seule colonne sur petits écrans */
    }
}