/* Variables de couleurs et polices */
:root {
    --primary-color: #d4a373;
    --secondary-color: #333;
    --background-color: #f4f4f4;
    --text-color: #222;
    --text-light-color: #777;
    --accent-color: #000000;
    --btn-color: #d4a373;
    --white: #fff;
    --font-main: 'Arial', sans-serif;
    --font-secondary: 'Helvetica', sans-serif;
}

/* Reset général */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-family: var(--font-secondary);
}

p {
    margin-bottom: 1rem;
    color: var(--text-light-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-color);
}

/* Style de base du bouton */
.btn-reservation {
    display: inline-block;
    padding: 10px 25px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
    background-color: transparent;
    border: 2px solid #d4a373; /* Bordure initiale */
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: color 0.4s ease, background-color 0.4s ease;
}

/* Pseudo-élément pour la bordure animée, invisible par défaut */
.btn-reservation::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 50px;
    border: 2px solid #d4a373;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    transform: scale(0); /* Départ avec taille nulle */
    transform-origin: top right;
    transition: transform 0.4s ease;
    z-index: -1;
}

/* ============================================ */
/*               Navigation                     */
/* ============================================ */

header {
    background-color: var(--background-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

header .logo img {
    width: 150px;
}

header nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

header nav ul li a {
    color: var(--secondary-color);
    font-weight: bold;
    padding: 0.5rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: var(--primary-color);
}

/* Menu Burger */
.hamburger-menu {
    display: none;
    cursor: pointer;
}

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: 0.4s;
}

.hamburger-menu.open .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.open .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.open .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Menu mobile */
.nav-links.active {
    display: block;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: var(--background-color);
    text-align: center;
    padding: 1rem 0;
}

.nav-links.active li {
    display: block;
    margin: 1rem 0;
}

.btn-reservation {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    background-color: var(--btn-color);
    color: var(--white);
    border-radius: 25px;
}

/* ============================================ */
/*               Hero Section                   */
/* ============================================ */

.hero {
    height: 100vh;
    background-color: var(--secondary-color);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
    background: url('./assets/img/bg-accueil.jpg') no-repeat center center/cover;
}

.hero-content {
    z-index: 2;
    opacity: 0; /* Pour l'animation d'apparition */
    transform: translateY(100px);
    animation: slideInFromBottom 1s ease-out forwards;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: bold;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    color: var(--background-color);
}

.hero-background img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    z-index: 1;
}

.hero-content .btn-primary {
    background-color: var(--cta-color);
    color: var(--background-color);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.hero-content .btn-primary:hover {
    background-color: var(--accent-color);
}

/* Animation d'apparition des éléments */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    .hamburger-menu {
        display: block;
    }

    .nav-links {
        display: none; /* Cacher le menu sur mobile */
    }

    .nav-links.active {
        display: block;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--background-color);
        text-align: center;
        padding: 1rem 0;
    }

    .nav-links.active li {
        display: block;
        margin: 1rem 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
        color: var(--background-color);
    }
}


/* ============================================ */
/*               Services Section               */
/* ============================================ */

#services {
    padding: 4rem 0;
    background-color: var(--white);
}

#services h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
}

#services p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    color: var(--text-color);
}

.services-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.service-item {
    flex: 1 1 calc(33% - 1rem);
    background-color: var(--background-color);
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.service-item p {
    color: var(--text-light-color);
}

/* ============================================ */
/*               Tarifs Section                 */
/* ============================================ */

/* Section Tarifs */
.tarifs-section {
    position: relative;
    padding: 4rem 0;
    background: url('./assets/img/bg-tarif.jpg') no-repeat center center/cover; /* Image d'arrière-plan */
    color: #fff;
}

.tarifs-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Filtre sombre avec 50% d'opacité */
    z-index: 1;
}

.tarifs-section .container {
    position: relative;
    z-index: 2; /* Place le contenu au-dessus du filtre */
}

.tarifs-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
}

.tarifs-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #fff;
    margin: 0.5rem auto 0;
}

/* Grille des tarifs */
.tarifs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.tarif-col {
    text-align: left;
}

.tarif-col h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.tarif-col ul {
    list-style: none;
    padding: 0;
}

.tarif-col ul li {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Lignes de séparation transparentes */
    padding-bottom: 0.5rem;
}

.tarif-col ul li span {
    font-weight: bold;
}

/* ============================================ */
/*               Portfolio Section              */
/* ============================================ */

/* Section Portfolio */
#portfolio {
    padding: 4rem 0;
    background-color: #f4f4f4;
}

#portfolio h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Fixe 3 colonnes */
    grid-template-rows: repeat(2, 1fr);    /* Fixe 3 lignes */
    gap: 1.5rem; /* Espace entre les images */
}

.portfolio-item {
    position: relative;
    overflow: hidden;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease-in-out;
}

.portfolio-item:hover img {
    transform: scale(1.05); /* Zoom sur l'image au survol */
}

/* Limitation pour les petits écrans */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes pour les petits écrans */
        grid-template-rows: repeat(3, 1fr);    /* Toujours 3 lignes */
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr; /* 1 colonne pour les très petits écrans */
        grid-template-rows: repeat(9, 1fr); /* 9 images sur 9 lignes */
    }
}


/* ============================================ */
/*               Avis Clients Section           */
/* ============================================ */

#avis {
    padding: 4rem 0;
    background-color: var(--white);
}

#avis h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.avis-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.avis-item {
    max-width: 800px;
    background-color: var(--background-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.avis-item p {
    font-style: italic;
    color: var(--text-color);
}

.avis-item span {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
    color: var(--secondary-color);
}

/* ============================================ */
/*               Contact Section                */
/* ============================================ */

#contact {
    padding: 4rem 0;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

#contact h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form button {
    margin-top: 1rem;
    font-size: 1rem;
}

.contact-info p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.contact-info i {
    margin-right: 0.5rem;
}

/* ============================================ */
/*                   Footer                     */
/* ============================================ */

footer {
    padding: 1rem 0;
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
}

footer p {
    font-size: 0.9rem;
}

/* ============================================ */
/*              Responsive Design               */
/* ============================================ */

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }

    .services-grid {
        flex-direction: column;
        gap: 1.5rem;
    }

    .service-item {
        flex: 1 1 100%;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .avis-grid {
        gap: 1rem;
    }

    .tarifs-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .tarif-col {
        text-align: center;
    }

    .tarif-col ul li {
        justify-content: center;
    }

    .tarif-col ul li span {
        display: block;
        margin-top: 0.3rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    #services h2, #tarifs h2, #portfolio h2, #avis h2, #contact h2 {
        font-size: 2rem;
    }

    #tarifs th, #tarifs td {
        font-size: 1rem;
    }

    .tarifs-title {
        font-size: 2rem;
    }

    .tarif-col h3 {
        font-size: 1.5rem;
    }

    .tarif-col ul li {
        font-size: 1rem;
    }
}
