/* Styles personnalisés */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Montserrat:wght@300;400;500&display=swap');
:root {
    --color-mousse: #7A9E7E;
    --color-beige: #F5F1E3;
    --color-brun: #5C4033;
    --color-blanc: #FAF8F4;
    --color-foret: #4A6F5A;
}

body {
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
}


/* Animations */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-in-out;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out;
}


/* Styles de la section hero */

#accueil {
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}


/* Styles des cartes */

.card {
    transition: all 0.3s ease;
    transform-origin: center;
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}


/* Styles des boutons */

.btn-primary {
    background-color: var(--color-mousse);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background-color: var(--color-foret);
    transform: translateY(-2px);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.btn-primary:hover::after {
    width: 200%;
    height: 200%;
}


/* Styles du menu mobile */

@media (max-width: 768px) {
    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-beige);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .mobile-menu.active {
        transform: translateX(0);
    }
}


/* Styles des sections */

section {
    padding: 4rem 0;
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--color-beige), var(--color-blanc));
    opacity: 0.1;
    z-index: -1;
}


/* Styles des icônes */

.icon {
    width: 2rem;
    height: 2rem;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.icon:hover {
    transform: scale(1.1);
}


/* Styles des transitions */

.transition-all {
    transition: all 0.3s ease;
}


/* Styles des overlays */

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
}


/* Styles des formulaires */

input,
textarea {
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(122, 158, 126, 0.2);
}


/* Styles des images */

img {
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}


/* Styles des listes */

ul li {
    transition: transform 0.3s ease;
}

ul li:hover {
    transform: translateX(5px);
}


/* Styles des titres */

h2 {
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 50px;
    height: 3px;
    background-color: var(--color-mousse);
    transform: translateX(-50%);
}


/* Styles des cartes de services */

.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}


/* Styles des animations au scroll */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}