@font-face {
    font-family: 'Dosis Regular';
    src: url('fonts/Dosis-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Dosis Medium';
    src: url('fonts/Dosis-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'NT Wagner';
    src: url('fonts/NT Wagner.otf') format('opentype');
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Dosis Regular', Arial, sans-serif;
    margin: 0;
    padding: 0;
    padding-top: 80px;
    background-color: #637832;
    color: #333;
    width: 100%;
    overflow-x: hidden;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #637832;
    color: white;
    padding: 0;
    text-align: center;
    font-family: 'Dosis Regular', Arial, sans-serif;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

main {
    padding: 2rem;
    font-family: 'Dosis Regular', Arial, sans-serif;
    max-width: 100%;
}

nav a {
    color: #ffffff;
    margin: 0 1rem;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav a:hover {
    background-color: #ffffff;
    color: #637832;
}

nav a.active {
    background-color: #ffffff;
    color: #637832;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo img {
    height: 110px;
    width: auto;
    display: block;
}

.site-title {
    font-family: 'NT Wagner', sans-serif;
    font-size: 1.8rem;
    color: white;
}

/* Menu hamburger - caché par défaut sur desktop */
.menu-toggle {
    display: none;
}

.hero {
    position: relative;
    min-height: 100vh;
    background-image: url('images/fond_index.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1rem;
}

.hero img, main img {
    max-width: 100%;
    height: auto;
    margin-top: 1rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.hero-overlay {
    background: rgba(255, 255, 255, 0.9);
    padding: 2.5rem 3rem;
    animation: slideIn 1.5s ease-out;
    border-radius: 1rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    height: auto;
    color: #637832;
    font-family: 'Dosis Medium', Arial, sans-serif;
    font-size: 1.5rem;
}

@keyframes slideIn {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: 3rem;
    margin: 0;
    color: #333;
    font-family: 'Dosis Medium', Arial, sans-serif;
}

form input, form textarea {
    width: 100%;
    padding: 0.5rem;
    margin: 0.5rem 0;
}

button {
    background-color: #637832;
    color: white;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'NT Wagner', Arial, sans-serif;
}

button:hover {
    background-color: #637832;
}

footer {
    background-color: #637832;
    color: white;
    text-align: center;
    padding: 1rem;
    width: 100%;
}

/* Bouton Appeler - caché par défaut sur desktop */
.fixed-contact-button {
    display: none;
}

/* Barre de navigation fixe en bas - cachée par défaut sur desktop */
.mobile-bottom-bar {
    display: none;
}

/* ============================================
   MEDIA QUERIES POUR MOBILE
   ============================================ */

/* Tablettes et petits écrans (max 768px) */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    header {
        height: auto;
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 1rem;
    }

    .logo img {
        height: 50px;
    }

    h1 {
        font-size: 1.1rem;
    }

    /* Bouton hamburger */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 2rem;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1002;
    }

    /* Navigation mobile */
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: #637832;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding-top: 80px;
        transition: right 0.3s ease;
        box-shadow: -2px 0 5px rgba(0,0,0,0.3);
    }

    nav.active {
        right: 0;
    }

    nav a {
        margin: 0;
        padding: 1.2rem 1.5rem;
        font-size: 1.1rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: left;
    }

    nav a:hover,
    nav a.active {
        background-color: rgba(255,255,255,0.2);
        color: white;
    }

    main {
        padding: 1rem;
    }

    .hero {
        background-attachment: scroll;
        padding: 2rem 0.5rem;
        min-height: auto;
    }

    .hero-overlay {
        padding: 1.5rem;
        font-size: 1.2rem;   /* taille du texte*/
        margin: 0.5rem;
        width: calc(100% - 1rem);
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    /* Afficher le bouton Appeler sur mobile */
    .fixed-contact-button {
        display: block;
        position: fixed;
        bottom: 15px;
        right: 15px;
        background-color: #637832;
        color: white;
        padding: 12px 20px;
        border-radius: 50px;
        text-decoration: none;
        box-shadow: 0 4px 6px rgba(0,0,0,0.3);
        font-family: 'Dosis Medium', Arial, sans-serif;
        font-size: 0.9rem;
        z-index: 1001;
        transition: all 0.3s ease;
    }

    .fixed-contact-button:hover {
        background-color: #4f5f28;
    }

    /* Barre de navigation fixe en bas pour mobile */
    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        border-top: 2px solid #637832;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
        z-index: 1002;
        justify-content: space-around;
        padding: 10px 0;
    }

    .mobile-bottom-bar a {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #637832;
        font-size: 0.75rem;
        font-family: 'Dosis Medium', Arial, sans-serif;
        padding: 5px 10px;
        flex: 1;
        transition: background-color 0.3s ease;
    }

    .mobile-bottom-bar a:hover {
        background-color: #f0f0f0;
    }

    .mobile-bottom-bar a svg {
        width: 28px;
        height: 28px;
        margin-bottom: 3px;
        fill: #637832;
    }

    /* Ajouter du padding en bas du body pour ne pas cacher le contenu */
    body {
        padding-bottom: 70px;
    }

    footer {
        margin-bottom: 60px;
    }
}

/* Smartphones (max 480px) */
@media (max-width: 480px) {
    body {
        padding-top: 60px;
    }

    .logo img {
        height: 45px;
    }

    h1 {
        font-size: 1rem;
    }

    .menu-toggle {
        font-size: 1.8rem;
    }

    nav {
        width: 80%;
    }

    nav a {
        padding: 1rem 1.2rem;
        font-size: 1rem;
    }

    .hero {
        padding: 1.5rem 0.25rem;
    }

    .hero-overlay {
        padding: 1rem;
        font-size: 1.2rem;   /* taille du texte*/
        margin: 0.25rem;
        width: calc(100% - 0.5rem);
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero h2 {
        font-size: 1.3rem;
    }

    .fixed-contact-button {
        bottom: 10px;
        right: 10px;
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    footer {
        font-size: 0.9rem;
        padding: 0.8rem;
        margin-bottom: 60px;
    }

    body {
        padding-bottom: 70px;
    }
}