:root {
    --primary: #062938;
    --secondary: #A14523;
    --light: #FBF0EB;
    --dark: #062938;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background: var(--light);
    color: var(--dark);
}

h1,
h2,
h3 {
    font-family: "Calisto MT", serif;
}

.secondary-text {
    font-family: Verdana, sans-serif;
    color: #555;
}

header {
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    margin-left: 1.5rem;
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
}

.hero {
    padding: 5rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.hero h2 {
    font-family: Verdana, sans-serif;
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    background: white;
    color: var(--primary);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition-duration: 0.4s;
}

.btn:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.6);
}

.section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: auto;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 2rem;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-top: 2rem;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border-top: 4px solid var(--secondary);
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.6);
    transition: transform 0.2s;
    cursor: pointer;
}

.card.visible:hover {
    transform: translateY(-10px);
}

/* Cards zoom */
.card {
    transform: scale(0.9);
    opacity: 0;
}

.card.visible {
    transform: scale(1);
    opacity: 1;
    transition: all 1s ease;
}

footer {
    text-align: center;
    padding: 2rem;
    background: var(--primary);
    color: white;
}

/* Burger menu */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger span {
    height: 3px;
    width: 25px;
    background: var(--dark);
    margin: 4px 0;
    display: block;
}

/* Titles bigger */
h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

/* Team images animation */
#team img {
    opacity: 0;
    transition: all 2s ease;
}

#team img.left {
    transform: translateX(-15vw);
}

#team img.right {
    transform: translateX(15vw);
}


#team img.visible {
    opacity: 1;
    transform: translateX(0);
}

#team .person {
    height: 500px;
}

/* Bouton RDV flottant (header) */
.rdv-header {
    display: none;
    margin-left: 20px;
    padding: 8px 14px;
    background: var(--secondary);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition-duration: 0.4s
}

.rdv-header.show {
    display: inline-block;
}

.rdv-header:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.6)
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.0);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}

.modal.active {
    opacity: 1;
    background: rgba(0, 0, 0, 0.6);
    pointer-events: auto;
}

.modal.active {
    display: flex;
}

.modal-content {
    width: 90%;
    max-width: 600px;
    padding: 2rem;
    border-radius: 12px;
    color: white;
    background: var(--primary);
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: all 0.4s ease;
}

.modal.active .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-content form {
    margin-top: 10px;
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 5px;
    border: none;
    border-radius: 6px;
}

.modal-content button {
    margin: 20px auto;
    display: block;
}

.close {
    cursor: pointer;
    float: right;
    font-size: 20px;
}



@media(max-width:768px) {
    #team .person {
        height: 300px;
    }   

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero h2 {
        font-size: 0.5rem;
    }

    .btn {
        padding: 0.4rem 0.75rem;
    }

    .rdv-header {
        display: none !important;
    }
    .section {
        padding-top:1rem;
        padding-bottom:1rem;
    }

    nav {
        position: absolute;
        top: 70px;
        right: 0;
        background: white;
        flex-direction: column;
        width: 200px;
        display: none;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        padding: 1rem;
    }

    nav a {
        margin: 10px 0;
    }

    nav.active {
        display: flex;
    }

    .burger {
        display: flex;
    }
}