/********* COULEURS *******************/
/**************************************/

html {
    scroll-behavior: smooth;
}

body {
    --primary-color: #3b0066;
    --primary-color-hover: #2a0049;
    --primary-color-light: #5c1f8a;
    --secondary-color: #f0e6f7;
    --secondary-color-hover: #e0d0ed;
    --text-color: #1a1a1a;
}

.bg-dark {
    background-color: var(--primary-color);
    color: #FFF;
}
.bg-dark h2,
.bg-dark h3 {
    color: #fff;
}

h1, h2, h3 {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    color: var(--primary-color);
}

.text-2 {
    font-size: calc(1.375rem + 0.95vw);
}

.text-3 {
    font-size: calc(1.35rem + 0.65vw);
}

.text-4 {
    font-size: calc(1.3rem + 0.35vw);
}

.bg-dark h1,
.bg-dark h2,
.bg-dark h3 {
    color: #fff;
}

.bg-dark .tarif-card h3,
.bg-dark .tarif-card__title {
    color: var(--primary-color);
}

/********* COMMUNS ********************/
/**************************************/
a.button--secondary {
    color: var(--primary-color);
    background-color: var(--secondary-color);
}

.button--rdv {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--primary-color) !important;
    background-color: #fff !important;
    border: 2px solid #fff;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.button--rdv:hover {
    color: #fff !important;
    background-color: transparent !important;
}

/********* NAVBAR *********************/
/**************************************/
.navbar {
    position: fixed;
    top: 0;
    padding: 1rem;
    width: 100%;
    color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(59, 0, 102, 0.1);
    z-index: 1030;
}
.navbar__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.navbar .logo {
    flex-shrink: 0;
    text-align: left;
    position: static;
    left: auto;
    transform: none;
}
.navbar .logo img {
    max-height: 100px;
    width: auto;
}
.navbar__nav {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 1rem;
}
.navbar #menu {
    margin-left: 0;
}
.navbar #menu .menu.principal>li a {
    color: var(--primary-color);
}
.navbar #menu .menu.principal>li a:hover {
    color: var(--primary-color-light);
}
.navbar #menu .menu.principal>li {
    margin: 0 15px;
}
.navbar .button--rdv {
    margin-top: 0;
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
    color: #fff !important;
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color);
}
.navbar .button--rdv:hover {
    color: #fff !important;
    background-color: var(--primary-color-hover) !important;
    border-color: var(--primary-color-hover);
}

.navbar #menu .menu__rdv {
    display: none;
}
.navbar #menu .menu__fb {
    display: none;
}

a.display-menu span, a.display-menu span:before, a.display-menu span:after {
    background-color: var(--primary-color);
}

@media only screen and (max-width: 1024px) {
    .navbar__nav {
        gap: 0.5rem;
    }
    .navbar #menu {
        background-color: #fff;
    }
    .navbar #menu li {
        margin: 10px 0 !important;
    }
    .navbar .logo img {
        max-height: 75px;
    }
    /* Burger à droite */
    a.display-menu {
        left: auto;
        right: 20px;
    }
    /* Tiroir du menu qui s'ouvre depuis la droite */
    .navbar #menu {
        left: auto;
        right: -100%;
        transition: right 0.3s linear;
    }
    .navbar #menu.show {
        left: auto;
        right: 0;
    }
    /* Bouton RDV : masqué dans la barre, affiché dans le tiroir du menu */
    .navbar__rdv {
        display: none;
    }
    .navbar__fb {
        display: none;
    }
    .navbar #menu .menu__rdv {
        display: inline-block;
        margin-top: 1.5rem;
    }
    .navbar #menu .menu__fb {
        display: inline-block;
        margin-top: 1.5rem;
    }
}

/********* HERO ************************/
/**************************************/
.hero {
    margin-top: 115px;
}

.hero__row {
    align-items: flex-start;
}

.hero__image {
    width: 100%;
}

.hero__image img {
    border-radius: 4px;
    display: block;
    width: 100%;
    height: 360px;
    object-fit: cover;
    object-position: center 78%;
}

.hero__text h1 {
    margin-bottom: 0.75rem;
}

.hero__tagline {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 1.25rem;
    line-height: 1.4;
}

main > section#hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/********* SECTIONS ********************/
/**************************************/
main > section:not(#hero) {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}

.section__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
}

.section__col-image {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
}

.section__col-text {
    flex: 1 1 100%;
}

.section__row--reverse .section__col-image {
    order: 2;
}

.section__row--reverse .section__col-text {
    order: 1;
}

.section__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.section__image--small {
    max-width: 100%;
}

.section__col-map {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
}

.section__map {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    border-radius: 4px;
    overflow: hidden;
}

.section__map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

section h2 {
    margin-bottom: 1rem;
}

section p + p {
    margin-top: 1rem;
}

.section__header {
    margin-bottom: 3rem;
}

.section__lead {
    max-width: 700px;
    margin: 1rem auto 0;
    line-height: 1.6;
    opacity: 0.95;
}

.section__list {
    margin: 1rem 0 0;
    padding-left: 1.25rem;
    line-height: 1.7;
}

.section__list li + li {
    margin-top: 0.5rem;
}

.section__list--check {
    list-style: none;
    padding-left: 0;
}

.section__list--check li {
    position: relative;
    padding-left: 1.75rem;
}

.section__list--check li::before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--primary-color);
}

.bg-dark .section__list--check li::before {
    color: #fff;
}

.tarifs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.tarif-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
    color: var(--text-color);
}

.tarif-card__image img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.tarif-card__body {
    padding: 1.75rem;
}

.tarif-card__title {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    font-size: 1.625rem;
    color: var(--primary-color);
    margin: 0 0 0.75rem;
    line-height: 1.35;
}

.tarif-card__price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 1.25rem;
}

.tarif-card__list {
    margin: 0;
    padding-left: 1.25rem;
    line-height: 1.7;
}

.tarif-card__list li + li {
    margin-top: 0.45rem;
}

.tarif-card--full {
    grid-column: 1 / -1;
}

.tarif-card__body p + p,
.tarif-card__body .section__list {
    margin-top: 1rem;
}

.tarif-card__body .section__list {
    margin-bottom: 0;
}

#ramonage a {
    color: #fff;
    text-decoration: underline;
}

.section-rdv__text {
    max-width: 600px;
    margin: 1rem auto 0;
    line-height: 1.6;
}

@media only screen and (min-width: 768px) {
    .section__row {
        flex-wrap: nowrap;
        gap: 4rem;
    }

    .section__col-image {
        flex: 0 0 42%;
        max-width: 440px;
        justify-content: flex-start;
    }

    .hero__image.section__col-image {
        flex: 0 0 50%;
        max-width: 560px;
    }

    .hero__image img {
        height: 520px;
        object-position: center 75%;
    }

    .section__col-text {
        flex: 1 1 0;
        min-width: 0;
    }

    .section__col-map {
        flex: 1 1 0;
        min-width: 0;
    }

    .section__map {
        padding-bottom: 0;
        height: 450px;
    }

    .tarifs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .tarif-card--full {
        flex-direction: row;
        align-items: stretch;
    }

    .tarif-card--full .tarif-card__image {
        flex: 0 0 38%;
        max-width: 420px;
    }

    .tarif-card--full .tarif-card__image img {
        height: 100%;
        min-height: 300px;
    }

    .tarif-card--full .tarif-card__body {
        flex: 1;
    }

    .section__row--reverse .section__col-image {
        order: 2;
        justify-content: flex-end;
    }

    .section__row--reverse .section__col-text {
        order: 1;
    }
}

@media only screen and (max-width: 767px) {
    .section__row {
        gap: 2rem;
    }

    .section__row--reverse .section__col-image,
    .section__row--reverse .section__col-text {
        order: unset;
    }

    .section__image--small {
        max-width: 320px;
    }
}

/********* CONTACT ********************/
/**************************************/
.contact-form {
    max-width: 720px;
    margin: 0 auto;
}

.contact-form form.contact {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.contact-form .form-group.text {
    flex: 0 0 calc((100% - 1rem) / 2);
    max-width: calc((100% - 1rem) / 2);
    box-sizing: border-box;
    margin-bottom: 0;
}

.contact-form .form-group.textarea,
.contact-form .checkbox,
.contact-form .btn {
    flex: 0 0 100%;
    max-width: 100%;
}

@media only screen and (max-width: 767px) {
    .contact-form .form-group.text {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/********* FOOTER *********************/
/**************************************/
footer .close-1 {
    padding: 1.75rem 1rem;
}

footer .close-1 a {
    text-decoration: none;
}

footer .close-1 a h4,
footer .close-1 h4 {
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.02em;
}

footer .close-1 a:hover h4 {
    color: var(--secondary-color);
}

footer div#open{
    background-color: var(--primary-color);
    color: #FFF;
}
footer div#open h2,
footer div#open h3,
footer div#open a{
    color: #FFF;
}

footer h2 {
    margin: 20px 0;
}

/********* MEDIA QUERIES ***************/
/**************************************/


/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
  
/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 10% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
}
  
/* The Close Button */
.close, 
.close2 {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
  
.close:hover,
.close:focus,
.close2:hover,
.close2:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

input[type="checkbox"] {
    margin: .3em 10px 0 0 !important;
}
input[type="submit"] {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    border: var(--primary-color) !important;
}
