* {
    font-family: 'Manrope', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --main-color: #5aa772;
    --sec-color: #E7D0C5;
    --third-color: #E6F7E6;
    --fourth-color: #05561f;
}

html,body {
    width: 100%;
    height: 100%;
    overflow-x: hidden; 
}

/***** Header *****/

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.1);
    background-color: #FFFFF0;
}

header .logo {
    width: 220px;
    padding: 2px 0;
}

header ul {
    display: flex;
    align-items: space-between;
    gap: 40px;
    list-style-type: none;
}

header li a {
    text-decoration: none;
    color: var(--main-color);
    font-weight: 600;
    font-size: 17px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 40px 5px 20px;
}

/***** Présentation *****/

.carres {
    display: flex;
    height: 750px;
}

.hey {
    padding: 50px;
}

.carres article {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50%;
    color: var(--main-color);
    background: var(--third-color);
}

.carres article h1 {
    font-size: 4.5em;
    margin-bottom: .5em;
    text-align: center;
}

.carres article h2 {
    font-size: 1.8em;
    text-align: center;
    margin-bottom: 2em;
}

.carres article button {
    background-color: var(--main-color);
    font-size: 1.3em;
    font-weight: 700;
    color:white;
    padding: 20px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
}

.carres article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/***** Profil & Tarifs *****/

.profil, .tarifs {
    height: 750px;
    background-color: var(--main-color);
}

.profil h2, .tarifs h2 {
    font-family: "Meow Script", cursive;
    color: var(--third-color);
    font-size: 5em;
    font-weight: 100;
    text-align: center;
    padding-top: 60px;
}

.parcours {
    display: flex;
    gap: 50px;
    justify-content: center;
}

.parcours li {
    list-style-type: none;
}

.petit-carre {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--third-color);
    height: 330px;
    width: 350px;
    border-radius: 30px;
    padding: 30px;
    color: var(--main-color);
    text-align: center;
    margin-top: 75px;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.petit-carre.visible {
    animation: slideUp 0.8s forwards;
}

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

.petit-carre h3 {
    font-size: 1.5em;
    align-self: center;
}

.petit-carre p {
    flex-grow: 1; /* Permet au texte de prendre tout l'espace disponible */
    display: flex;
    font-size: 1.15em;
    align-items: center;
    justify-content: center;
}

/***** La thérapie *****/

.carres2 {
    display: flex;
    height: 750px;
}

.carres2 article {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50%;
    color: var(--main-color);
    background-color: var(--third-color);
}

.carres2 article h1 {
    font-size: 4.5em;
    margin-bottom: .5em;
}

.carres2 article h2 {
    font-size: 2em;
    font-weight: 400;
    text-align: left;
    padding: 80px 125px;
    margin-bottom: 2em;
}

.therapie {
    background-color: var(--sec-color);
}

/***** Contact *****/

.contact {
    background-color: var(--third-color);
    padding: 50px 40px;
    display: flex;
    justify-content: space-around;
}

.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--main-color);
}

.contact-container h2 {
    margin-bottom: 20px;
}

@media (min-width: 1110px) {
    .contact-container h2 {
        font-size: 2.15vw;
    }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 550px;
    margin: 0 auto;
    padding: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border: 1px solid var(--main-color);
    border-radius: 5px;
    font-size: 16px;
    color: #34a859;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #72957d;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
}

.contact-form textarea {
    height: 150px;
    resize: none;
}

.contact-form button {
    background-color: var(--main-color);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.contact-form button:hover {
    opacity: 0.9;
}

.map {
    display: flex;
    justify-content: center;
}

.map iframe {
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/***** FAQ *****/

.faq {
    background-color: var(--third-color);
    padding: 80px 40px;
    color: var(--main-color);
}

.faq h2 {
    font-family: "Meow Script", cursive;
    color: var(--main-color);
    font-size: 5em;
    font-weight: 100;
    text-align: center;
    margin-bottom: 60px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: white;
    margin-bottom: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question h3 {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--main-color);
    margin: 0;
    flex: 1;
    padding-right: 20px;
}

.faq-icon {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--main-color);
    transition: transform 0.3s ease;
    min-width: 30px;
    text-align: center;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #f8f9fa;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 30px 25px 30px;
    margin: 0;
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
}

.faq-answer strong {
    color: var(--main-color);
    font-weight: 600;
}

/***** Footer *****/

footer {
    background-color: var(--fourth-color);
    color: white;
    padding: 40px 20px 20px;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.footer-section h3 {
    color: var(--third-color);
    font-size: 1.6em;
    font-weight: 100;
    margin-bottom: 15px;
    font-family: "Meow Script", cursive;
}

.footer-section h4 {
    color: var(--third-color);
    font-size: 1.2em;
    margin-bottom: 15px;
}

.footer-section p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.footer-section ul li:before {
    content: "•";
    color: var(--main-color);
    position: absolute;
    left: 0;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #ccc;
}

.footer-bottom a {
    color: var(--third-color);
    text-decoration: none;
}

/***** Responsive *****/

@media (max-width: 1110px) {
    
/***** Header *****/

header {
    margin-bottom: 40px;
}

nav {
    justify-content: center;
}

nav ul {
    display: none;
}

    /***** Présentation *****/

.carres {
    flex-direction: column-reverse;
}

.carres article {
    width: 100%;
}

.carres article h1 {
    font-size: 3em;
}

.carres article h2 {
    font-size: 1.5em;
}

    /***** Profil & Tarifs *****/

.profil, .tarifs {
    height: fit-content;
    padding-bottom: 60px;
}

.profil h2, .tarifs h2 {
    padding-bottom: 30px;
}

.parcours {
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.petit-carre {
    margin-top: 30px;
}

    /***** La thérapie *****/

.carres2 {
    flex-direction: column-reverse;
    height: fit-content;
}

.carres2 article {
    width: 100%;
}

.carres2 article h1 {
    font-size: 2.5em;
    padding-top: 30px;
}

.carres2 article h2 {
    font-size: 1.3em;
    padding: 30px;
    text-align: justify;
}

    /***** Contact *****/

.contact {
    flex-direction: column;
    max-width: 100%;
}

@media (max-width: 768px) {
    .contact {
        padding: 10px;
    }
}

.contact-form {
    width: 100%;
}

.contact-form {
    width: 100%;
}

.map {
    padding-left: 30px;
    padding-right: 30px;
}

    /***** FAQ *****/

.faq {
    padding: 60px 20px;
}

.faq h2 {
    font-size: 3.5em;
    margin-bottom: 40px;
}

.faq-question {
    padding: 20px 25px;
}

.faq-question h3 {
    font-size: 1.1em;
    padding-right: 15px;
}

.faq-answer p {
    padding: 0 25px 20px 25px;
    font-size: 1em;
}

}

@media (max-width: 768px) {
    .faq {
        padding: 40px 15px;
    }
    
    .faq h2 {
        font-size: 2.5em;
        margin-bottom: 30px;
    }
    
    .faq-question {
        padding: 15px 20px;
    }
    
    .faq-question h3 {
        font-size: 1em;
        padding-right: 10px;
    }
    
    .faq-answer p {
        padding: 0 20px 15px 20px;
        font-size: 0.95em;
    }
    
    /***** Footer *****/
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-section h3 {
        font-size: 1.3em;
    }
    
    .footer-section h4 {
        font-size: 1.1em;
    }
}

.form-message {
    padding: 10px;
    border-radius: 5px;
    display: none;
    text-align: center;
    font-weight: 600;
}

.form-message.success {
    display: block;
    background-color: var(--third-color);
    color: var(--fourth-color);
}

.form-message.error {
    display: block;
    background-color: #ffebee;
    color: #c62828;
}