/* Reset CSS Essentiel */
@font-face {
    font-family: 'Nunito';
    src: url('./../fonts/Nunito-VariableFont_wght.ttf') format('truetype')
}

@font-face {
    font-family: 'Playfair Display';
    src: url('./../fonts/PlayfairDisplay-VariableFont_wght.ttf') format('truetype')
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    color: #053f5f;
    height: 100%;
    font-family: 'Nunito', Arial, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Nunito', sans-serif;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
    border: none;
    outline: none;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

.svg-wave {
    width: 100%;
    height: 50px;
}

/* Header */
.header-container {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 1rem;
}

.dropdown-plus-menu {
    display: none;
}

.arrow-bottom {
    height: 0;
    width: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #333;
}

.dropdown-plus-menu.active {
    display: flex;
    flex-direction: column;
}

.logo-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    line-height: 1.2;
}

.logo-container h2 {
    color: #053f5f;
    font-size: 22px;
}

.logo-container h3 {
    color: #b8cfda;
    font-size: 16px;
}

.telephone-header-button {
    display: none;
}

.plus-item {
    position: relative;
}

.dropdown-plus-menu {
    position: absolute;
    top: 100%; /* aligne le menu sous l'élément 'Plus' */
    left: 0;
    width: 250px;
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.dropdown-plus-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-plus-menu ul {
    padding: 10px 0;
}

.dropdown-plus-menu ul li a {
    display: block;
    padding: 10px 15px;
}

.arrow {
    height: 0;
    width: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #333;
    display: inline-block;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.arrow.active {
    transform: rotate(180deg);
}

/* Burger menu */
.menu {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.navbar-normal-width {
    display: none;
}

.navbar-normal-width li {
    font-size: 18px;
    font-weight: 700;
}

.burger-wave {
    width: 100%;
    height: 100%;
}

.dropdown-menu {
    position: absolute;
    top: 110%;
    width: 20rem;
    background-color: #ffffff;
    height: 30rem;
    right: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: visibility 0s linear 0.3s, opacity 0.3s ease, transform 0.3s ease;
    z-index: 5;
    display: flex;
    overflow-y: auto;
    flex-direction: column;
}

.dropdown-menu.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-nav {
    flex: 1;
    padding: 1rem 1rem 1rem 0;
    background-color: #fff;
}

.dropdown-nav ul {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dropdown-nav ul li a {
    padding-left: 20px;
    font-size: 17px;
    font-weight: 700;
}

.dropdown-menu-background {
    background-color: #f6f4f3;
}

.dropdown-buttons-container {
    padding: 1rem;
}

.dropdown-buttons-container a {
    display: flex;
    font-size: 14px;
    font-weight: 700;
    gap: 12px;
    align-items: center;
    border-radius: 5px;
    padding: 0.8rem;
    background-color: #ffec2d;
}

.dropdown-buttons-container a img {
    width: 15px;
    height: 15px;
}

.burger-wave-container {
    width: 33%;
    height: 100px;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 0;
}

.burger-menu-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffec2d;
    padding: 0.7rem;
    border-radius: 50%;
}

.burger-menu {
    cursor: pointer;
    display: inline-block;
}

.burger-menu > svg {
    transition: all 0.5s ease; /* Transition pour l'animation */
    width: auto;
    overflow: visible !important; /* Forcer le débordement visible */
}

.burger-menu.active > svg {
    transform: translateX(-4px)
}

.burger-menu > svg .rect {
    transition: all 0.5s ease; /* Transition pour chaque rectangle */
    transform-origin: 50% 50%; /* Origine de transformation au centre */
    opacity: 1; /* Opacité par défaut */
}

.burger-menu.active > svg .rect {
    transform: translateY(0) rotate(0); /* Réinitialiser les transformations */
}

.burger-menu.active svg > .rect1 {
    transform: translateY(4px) rotate(45deg); /* Monte la ligne du haut et la fait pivoter */
    transform-origin: center;
}

.burger-menu.active svg > .rect2 {
    transform: translateY(-5px) rotate(-45deg); /* Descend la ligne du bas et la fait pivoter */
    transform-origin: center;
}

.burger-menu.active .rect0 {
    opacity: 0; /* Cache la ligne du milieu */
}


.burger-menu.active > svg .rect0 {
    opacity: 0; /* Disparition de la ligne du milieu */
    transform: translateY(10%); /* Déplacement vers le haut pour masquer */
}


/* MAIN */
.purple-warning {
    text-align: center;
    margin: 2rem 1rem;
    line-height: 1.6;
    background-color: #faedfc;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-size: 14px;
}

.blue-warning {
    text-align: center;
    margin: 2rem 1rem;
    line-height: 1.6;
    background-color: #b8cfda;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-size: 14px;
}

/* Presentation */
.presentation-container, .about-me {
    background-color: #EDF3F6;
}

.presentation-container h1 {
    font-size: 7vw;
    text-align: center;
    padding: 20px 0;
    font-weight: 800;
}

.presentation-container .portrait {
    margin: 20px auto;
    width: 250px;
    height: 270px;
    border-radius: 5px;
}

.presentation-container .portrait-about-me {

    right: 0 !important;
    left: unset;
    top: -200px !important;
    border-radius: 10px 0 0 10px;

}

.psychology-explanation {
    padding: 30px;
    text-align: justify;
}

/* Article */
.article-title {
    text-align: center;
    margin: 50px 0;
}

/* Take appointment */
.take-appointment {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.take-appointment h2 {
    font-size: 28px;
    padding: 35px 10px;
    font-weight: 800;
}

.take-appointment p {
    padding: 0 20px 0 10px;
}

.phone-illustration-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 300px;
    margin: 0 auto 30px auto;
    overflow: hidden;
}

.phone-illustration-blob {
    position: absolute;
    top: 0;
    left: 0;
    width: 95%;
    height: 100%;
    z-index: 1;
}

.phone-illustration-container .telephone-illustration {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 38%;
    height: auto;
    border-radius: 20px;
    z-index: 2;
}

.take-appointment-button {
    display: flex;
    font-size: 14px;
    font-weight: 700;
    gap: 12px;
    align-items: center;
    border-radius: 5px;
    padding: 0.8rem;
    background-color: #ffec2d;
    width: fit-content;
    margin: auto;
}

.take-appointment-button img {
    width: 15px;
    height: 15px;
}

/* FOOTER */

.days {
    font-weight: 800;
}

.hourly {
    font-weight: 600;
}

.disable-bold {
    font-weight: normal;
}

.footer-title {
    width: fit-content;
    border-bottom: 3px solid #ffec2d;
    color: #a4bbc6;
    margin: 20px 0;
}

.information {
    display: flex;
    justify-content: start;
    align-items: center;
    margin: 20px 0;
    gap: 10px;
}

.footer-icon {
    height: 25px;
    width: 25px;
}

.footer-container {
    font-size: 17px;
    background-color: #002748;
    padding: 1rem;
    color: #ffffff;
}

.footer-container span {
    font-size: 17px;
}

.planning {
    display: flex;
    justify-content: space-between;
}

.hourly-container {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
}

.map-container {
    width: 80%;
    height: 300px;
    border-radius: 5px;
    overflow: hidden;
    margin: 50px auto 0 auto;
}

.map-container iframe {
    width: 100%;
    height: 100%;
}


/* ANNUAIRE */
.annuaire-title {
    margin: 30px auto;
    text-align: center;
}

.annuaire-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem 0;
    justify-content: center;
}

.annuaire-item {
    background: #fbfafa;
    border: 2px solid #b8cfda;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(220, 220, 180, 0.08);
    padding: 1.5rem 1.2rem;
    min-width: 270px;
    max-width: 370px;
    flex: 1 1 300px;
    margin-bottom: 1rem;
    transition: box-shadow 0.2s;
}

.annuaire-item:hover {
    box-shadow: 0 4px 16px rgba(219, 221, 130, 0.18);
}

.annuaire-item h3 {
    margin-bottom: 0.7rem;
    color: #053f5f;
    font-size: 1.2rem;
}

.annuaire-info {
    display: flex;
    align-items: center;
    gap: 0.6em;
    margin-bottom: 0.3em;
    font-size: 1rem;
    color: #053f5f;
}

.annuaire-info a {
    color: #053f5f;
    text-decoration: underline;
    word-break: break-all;
}

.annuaire-icon {
    width: 20px;
    height: 20px;
    fill: #b8cfda;
}

/* LAST FOOTER */
.last-footer-container {
    background-color: #b8cfda;
    padding: 20px 0 40px 0;
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    align-items: center;
    gap: 10%;
}

.last-footer-container a {
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    position: relative;
}

.last-footer-container a:hover::after {
    width: 100%;
}

.last-footer-container a {
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    position: relative;
    padding: 10px 2px;
    color: #053f5f;
    z-index: 1;
    width: fit-content;
}

.last-footer-container a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 30%;
    background: #dbdd82;
    z-index: -1;
    transform: rotate(-1deg) translateY(-2px);
    transition: height 0.3s ease, transform 0.3s ease;
}

.last-footer-container a:hover::after {
    height: calc(30% + 5px);
    transform: rotate(-1deg) translateY(-8px);
}

.footer-container {
    display: flex;
    flex-direction: column;
}

.footer-container .access {
    display: flex;
    flex-direction: column;
}

.access__container {
    display: flex;
}

.access__group {
    display: flex;
    flex-direction: column;
}

.access__group {
    padding: 1rem;
    border-radius: 0.25rem;
}

/* Optionnel : ajuster les titres et listes */
.access__title {
    font-family: 'Nunito', serif;
    margin: 10px 0;
}

.access__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.access__icon {
    width: 25px;
}

.access__item {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 5px;
}

/* WHY CONSULT */
.consult-reasons {
    display: block;
    width: 100%;
    padding-left: 10px;
}

.symptom-list {
    list-style: inside;
    padding: 10px 0 0 10px;
}

.page-title {
    font-size: 7vw;
    width: fit-content;
    margin: auto;
    font-weight: 800;
}

.words-cloud {
    width: 80%;
    margin: 50px auto;
}


/* Psychoanalysis */
.psychoanalysis-freud-container {
    background-color: #EDF3F6;
}

.freud-container {
    display: flex;
}

.freud-illustration-container {
    width: 60%;
    margin: 50px auto;
}

.freud-illustration {
    width: 100%;
    border-radius: 5px;
}

.freud-container p {
    width: 45%;
    padding: 0 20px;
}

.psychoanalysis-illustration {
    width: 50%;
    margin: auto;
}

.freud-illustration-container span {
    font-size: 14px;
    font-style: italic;
    text-align: center;
    width: 100%;
    display: inline-block;
}

.psychoanalysis-list {
    list-style: inside;
    margin: 30px 10px;
}

.psychoanalysis-list li {
    margin-bottom: 10px;
}

/* ABOUT ME */
/*.about-me-text {*/
/*    padding: 20px 4rem 60px 4rem;*/
/*}*/

.about-me {
    padding-top: 50px;
}

.about-me img {
    width: 60%;
    margin: auto;
    border-radius: 10px;
}

.about-me-text h1 {
    padding: 30px;
}

.about-me-text p {
    padding: 20px 4rem 60px 4rem;
}

/* END OF MINIMAL DEVICE WIDTH */

/* TABLETS */
@media (min-width: 640px) {
    body {
        font-size: 18px;
    }

    /* HEADER */
    .header-container, .footer-container {
        padding: 2rem 4rem;
    }

    .telephone-header-button {
        display: block;
    }

    .burger-wave-container {
        width: 55%;
        height: 150px;
    }

    .purple-warning {
        margin: 2rem 4rem;
    }

    .svg-wave {
        height: 100px;
    }

    /* FOOTER */
    .footer-container {
        flex-direction: row;
    }

    .last-footer-container {
        flex-direction: row;
        justify-content: center;
    }

    /* Presentation container */
    .presentation-container h1 {
        font-size: 7vw;
        font-weight: 800;
        text-align: center;
        padding: 30px 0;
        line-height: 1.3;
    }

    .presentation-container .portrait {
        width: 50%;
        height: auto;
        margin: auto;
        border-radius: 15px;
    }

    /* Appointment */
    .take-appointment h2 {
        font-size: 35px;
    }

    /*  Psychoanalysis */
    .freud-illustration-container {
        width: 40%;
    }

    .psychoanalysis-illustration {
        width: 35%;
    }

    /* why consult */
    .words-cloud {
        width: 60%;
    }

    /* about me*/
    .about-me img {
        width: 45%;
    }
}

/* Small laptops */
@media (min-width: 1024px) {
    .consult-reasons {
        padding-left: 50px;
    }

    .symptom-list {
        padding: 50px 0 0 50px;
    }

    /* General */
    body {
        line-height: 2;
    }

    .svg-wave {
        height: 200px;
    }

    /* Header */
    .header-container, .footer-container {
        padding: 2rem 1rem;
    }

    .menu {
        padding-left: 1rem !important;
    }

    .logo-container h2 {
        font-size: 27px;
    }

    .logo-container h3 {
        font-size: 20px;
    }

    .menu {
        flex: 1;
        padding-left: 3rem;
        justify-content: space-between;
    }

    .burger-menu-container {
        display: none;
    }

    .dropdown-menu {
        display: none;
    }

    .navbar-normal-width {
        display: flex;
        justify-content: center;
        gap: 30px;
    }

    .dropdown-buttons-container a {
        font-size: 18px;
    }

    .dropdown-buttons-container a img {
        width: 20px;
        height: 20px;
    }

    /* Presentation container */
    .purple-warning {
        margin: 2rem 4rem 6rem 4rem;
        font-size: 16px;
    }

    .presentation-container {
        position: relative;
    }

    .presentation-container h1 {
        text-align: center;
        font-size: 7.5vw;
        width: 100%;
        margin-bottom: 50px;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3),
        0px 0px 5px rgba(192, 192, 180, 0.5);
    }

    .presentation-container .portrait {
        width: 35%;
        margin: auto;
        height: auto;
    }

    .presentation-container .portrait-about-me {
        right: 0 !important;
        left: unset;
        top: -200px !important;
        border-radius: 10px 0 0 10px;

    }

    .presentation-container p {
        padding: 10% 50px 110px 50px;
    }

    /* Appointment */
    .take-appointment p {
        padding: 0 4rem;
    }

    .take-appointment-button {
        font-size: 18px;
        margin: 60px auto;
    }

    .take-appointment-button img {
        width: 20px;
        height: 20px;
    }

    /*  Psychoanalysis */
    .psychoanalysis-illustration {
        width: 27%;
    }

    .freud-container {
        position: relative;
    }

    .freud-container .freud-illustration-container {
        width: 30%;
        margin: auto;
        border-radius: 10px;
    }


    .page-title {
        font-size: 5vw;
    }

    .psychology-explanation, .about-me-text h1 {
        padding: 20px 4rem;
    }

    .psychoanalysis-freud-container .first-p {
        padding: 4rem 4rem 0 4rem !important;
    }

    /* Footer */
    .footer-container {
        display: flex;
        justify-content: space-between;
    }

    .hourly, .localisation, .contact {
        flex: 1;
    }

    .footer-title {
        margin: 20px auto;
    }

    /* why consult */
    .words-cloud {
        width: 45%;
    }

    /* about me */
    .about-me-container {
        display: flex;
        flex-direction: row-reverse;
    }

    .about-me-container .about-me-text, .about-me-container img {
        width: 50%;
    }

    .about-me img {
        width: 35%;
    }
}


/* FIXME hotfix to avoid navbar wrap */
@media (min-width: 1123px) {
    .header-container, .footer-container {
        padding: 2rem 4rem;
    }

    .menu {
        padding-left: 3rem !important;
    }
}

/* SVG FIX */

.svg-container-wave-up {
    margin-bottom: -3px;
}

.svg-container-wave-down {
    margin-top: -3px;
}
