body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Playfair Display", sans-serif;
    background-color: #FFFDF7;
    user-select: none;
}

header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    top: 0; /* Fixe l'en-tête en haut */
    width: 100%;
    background-color: #f5e9d6;
    z-index: 1000; /* Assure que l'en-tête reste au-dessus des autres éléments */
    font-size: 1.3em;
}
.nav-logo {
    width: auto;
    height: 8em;
    padding-bottom: 1rem;
    padding-top: 1rem;
}
nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #0E3A65;
    font-weight: bold;
}


main {
    margin-top: 20em;
    display: flex;
    flex-direction: column;
    align-items: center;
}
h2{
    font-size: 3em;
    color: #0E3A65;
    border-bottom: #0E3A65 3px solid;
    padding-bottom: 0.4em;
    margin-bottom: 1em;
}
h3{
    font-size: 1.5em;
    color: #0E3A65;
    margin-bottom: 0.5em;
}
.titleText {
    text-align: center;
    border-top: #0E3A65 3px solid;
    border-bottom: #0E3A65 3px solid;
    margin-bottom: 3em;
    padding: 1em;
    font-size: 4em;
}
.firstSection {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 2em;
}
/* mes services section */
.textcontainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}
.services-list {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 100%;
    gap: 3em;
}
.services-list-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
}
.services-list-wrapper.left {
    flex-direction: row;
    align-self: flex-start;
}
.services-list-wrapper.right {
    flex-direction: row-reverse;
    align-self: flex-end;
}
.services-list .left img{
    mask-image: linear-gradient(to left, black 0%, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, black 0%, black 70%, transparent 100%);
}
.services-list .right img{
    mask-image: linear-gradient(to right, black 0%, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 0%, black 70%, transparent 100%);
}
.services-list img {
    width: 70%;
    height: 25em;
    display: block;
    aspect-ratio: 1;
    object-fit: cover;
    padding: 0;
    flex-shrink: 0;
    mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
}
.services-list-text {
    padding: 2em;
}

.textcontainer h1{
    font-size: 3em;
    color: #0E3A65;
    border-bottom: #0E3A65 3px solid;
    padding-bottom: 0.4em;
}
.textcontainer h2{
    font-size: 2em;
    color: #0E3A65;
    margin-top: 1em;
}
.textcontainer p{
    font-size: 1.2em;
    margin-top: 0.5em;
    text-align: justify;
    line-height: 1.5em;
    width: 90%;
    max-width: 40em;
}
.reveal { /* animation d'apparition au scroll */
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms cubic-bezier(.2,.9,.2,1), transform 600ms cubic-bezier(.2,.9,.2,1);
    will-change: opacity, transform;
}
/* classes utilitaires pour décalages d'apparition */
.reveal.delay-1 { transition-delay: 120ms; }
.reveal.delay-2 { transition-delay: 240ms; }
.reveal.delay-3 { transition-delay: 360ms; }

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* pour les contenus qui doivent rester dans la hauteur image */
.reveal.stay-in-height {
    overflow: hidden;
}

.exempleSection {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    padding-bottom: 3em;
    gap: 2em;
}
.exempleSection .textcontainer p{
    width: 60%;
    font-size: 1.2em;
    align-items: center;
    text-align: center;
}

/* Page exemple.html */
.img-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-bottom: 3em;
    padding-top: 3em;
}
.img-container img {
    max-width: 30em;
    height: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.img-container p {
    max-width: 30em; /* même largeur que l'image */
    text-align: center;
    margin: 1em auto 0; /* centre le texte et ajoute un espacement */
    font-size: 1.2em;
    color: #0E3A65;
}

/* Styles pour le slideshow */
.slideshow-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px; /* ajuste la largeur max */
    margin: 0 auto;
    overflow: hidden;
    min-height: 400px; /* hauteur minimale */
    display: flex;
    align-items: center;
}

.slide {
    display: none; /* cache toutes les slides par défaut */
    width: 100%;
}

.slide.active {
    display: block; /* affiche seulement la slide active */
}

.slide img {
    width: 30em;
    height: auto;
    max-height: 50em;
    margin: 0 auto;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* ombre comme dans .img-container */
    border-radius: 10px; /* léger arrondi pour cohérence */
}

.slide-text {
    text-align: center;
    margin-top: 10px;
    font-size: 1em;
    color: #0E3A65; /* couleur du texte principal */
    font-family: "Quicksand", sans-serif; /* police secondaire du site */
    line-height: 1.4;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #f5e9d6; /* fond beige comme les boutons du site */
    color: #0E3A65; /* texte bleu */
    border: #0E3A65 2px solid; /* bordure bleue comme les autres éléments */
    border-radius: 10px; /* arrondi comme les boutons */
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease; /* transition fluide */
}

.prev:hover, .next:hover {
    background-color: #0E3A65; /* inversion au survol */
    color: #f5e9d6;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.dots {
    text-align: center;
    margin-top: 10px;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #f5e9d6; /* fond beige */
    border: 1px solid #0E3A65; /* bordure bleue */
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease; /* transition fluide */
}

.dot.active {
    background-color: #0E3A65; /* bleu actif */
    border-color: #0E3A65;
}

.dot:hover {
    background-color: #0E3A65; /* effet au survol */
}




/* Styles pour le footer */
footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #f5e9d6;
    width: 100%;
}
footer nav {
    display: flex;
    flex-direction: column;
    gap: 1em;
}
.footer-logo {
    width: auto;
    height: 10em;
    padding-bottom: 2rem;
    padding-top: 2rem;
}
.footer-partner {
    width: auto;
    height: 4em;
}
.footer-social img {
    width: auto;
    height: 3em;
}
.footer-icon-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5em;
}








/* Styles pour la page contact.html */
.form-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-bottom: 5em;
}
form {
    display: flex;
    flex-direction: column;
    width: 80%;
    max-width: 40em;
    gap: 1em;
}
form a{
    color: #0E3A65;
    text-decoration: underline;
}
form input {
    min-height: 2em;
}
form #comment {
    height: 15em;
}
form textarea#comment {
    padding: 0.6em;
    resize: vertical;
    text-align: left;
    vertical-align: top;
    overflow: auto;
}
form .button {
    width: 10em;
    align-self: center;
    margin-top: 2em;
    border-radius: 10px;
    background-color: #f5e9d6;
    color: black;
    border: #0E3A65 2px solid;
    padding: 0.6em 1.2em;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
}
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.8em;
}

.checkbox-container input[type="checkbox"] {
    width: 1.2em;
    height: 1.2em;
    cursor: pointer;
}
/* Styles pour la page merci.html */
.thank-you-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    min-height: 50em;
}
.thank-you-container a {
    text-decoration: none;
    background-color: #f5e9d6;
    color: black;
    border-radius: 20px;
    padding: 0.8em 1.5em;
    border: #0E3A65 2px solid;
    align-self: center;
}
.thank-you-container img {
    width: auto;
    height: 10em;
    margin-bottom: 1em;
}




/* Mentions legales page */
.legal-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 70%;
    margin: auto;
    padding-bottom: 2em;
    line-height: 1.1em;
    font-size: 1.3em;;
}
.legal-container em {
    font-style: italic;
    font-size: 1em;
}
.legal-container h1 {
    font-size: 1.9em;
    color: #0E3A65;
    border-bottom: #0E3A65 3px solid;
    padding-bottom: 0.4em;
}
.legal-container p {
    max-width: 60em;
    text-align: justify;
}
.legal-container h2 {
    font-weight: bold;
    font-size: 1.3em;
    color: #0E3A65;
    border-bottom: #0E3A65 2px solid;
    display: block;
    width: fit-content;
    padding-bottom: 0.2em;
    margin-left: 0;
}




/* Page tarifs */

.tarifs-title{
    text-align: center;
    margin-bottom: 3em;
    border-top: black 3px solid;
    border-bottom: black 3px solid;
    padding-bottom: 2em;
    padding-top: 2em;
    font-size: 2.5em;
    color:#0E3A65;
}

.pricing-table{
    max-width: 100em;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-size: 1.2em;
    }
    table {
        width: 100%;
        border-collapse: collapse;
    }
    th, td {
        padding: 15px;
        text-align: left;
        border-bottom: 1px solid #e0e0e0;
        }
    th {
        background-color: #f5e9d6;
        color: black;
        font-weight: 600;
        }
    tr:nth-child(even) {
        background-color: #f2f9ff;
    }
    .highlight {
        font-weight: bold;
        color: #0E3A65;
}
.smallnote {
    width: 70%;
    text-align: justify;
}
.pricepage-info {
    width: 70%;
    font-size: 1.3em;
    text-align: justify;
}
.pricepage-info h3 {
    font-size: 1.5em;
    color: #0E3A65;
    border-bottom: #0E3A65 3px solid;
}

.lastpara{
    padding-bottom: 2em;
}


/* Breakpoints pour mobile */
@media (max-width: 1100px) {
    header {
        position: static;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
        height: auto;
    }

    .nav-logo {
        height: 9rem; 
        width: auto;
        margin: 0.2rem 0;
    }

    nav {
        margin-top: 0.5rem;
        display: flex;
        flex-direction: row; /* liens empilés sous le logo */
        gap: 0.4rem;
        align-items: center;
    }

    nav a {
        margin: 0;
        padding: 0.35rem 0.6rem;
        font-size: 1rem;
        display: block;
        text-align: center;
    }

    /* ajuster l'espace réservé au main en dessous de l'en-tête fixe */
    main {
        margin-top: 12rem; /* réduire par rapport à 20em pour mobile */
    }
      .firstSection {
        flex-direction: column; /* image et texte en colonne */
        align-items: center;
        padding: 0;
    }
    .firstSection .imgContainer {
        padding: 0;
    }

    .firstSection .textcontainer {
        align-items: center; 
        text-align: center;
    }
    .services-list {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .services-list img {
        width: 100%;
        height: 20em;
        mask-image: none !important;
        -webkit-mask-image: none !important;
    }
    .services-list-wrapper.left, .services-list-wrapper.right {
        align-self: center;
        flex-direction: column;
        mask-image: none;
        -webkit-mask-image: none;
    }
     

    .img-container img {
        max-width: 90%; /* utilise 90% de la largeur disponible */
        height: auto;
        margin: 0 auto; /* centre l'image */
    }
    
    .slide img {
        width: 90%; 
        max-width: 20em;
        height: auto;
        margin: 0 auto;
    }
    
    .slide-text {
        font-size: 0.9em; 
        margin-top: 8px;
    }

    
    .footer-icon-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2em;
    }
    .footer-social img {
        height: 2em;
    }
    .footer-partner{
        height: 2em;
    }

    /* reduction generale des textes */
        .titleText {
        font-size: 2em; /* réduit de 4em */
        margin-bottom: 2em;
        padding: 0.5em;
    }
    
    h2 {
        font-size: 1.5em; /* réduit de 3em */
        margin-bottom: 0.8em;
        padding-bottom: 0.3em;
    }
    
    .textcontainer h1 {
        font-size: 1.8em; /* réduit de 3em */
        padding-bottom: 0.3em;
    }
    
    .textcontainer h2 {
        font-size: 1.2em; /* réduit de 2em */
        margin-top: 0.8em;
    }
    
    .textcontainer p {
        font-size: 1em; /* réduit de 1.2em */
        margin-top: 0.4em;
        width: 95%;
    }
    .img-container p {
        font-size: 1em; /* réduit de 1.2em */
        margin-top: 0.4em;
        width: 95%;
    }
    
    .legal-container h1 {
        font-size: 1.5em; /* réduit de 1.9em */
    }
    
    .tarifs-title {
        font-size: 1.8em; /* réduit de 2.5em */
        margin-bottom: 2em;
        padding-bottom: 1em;
        padding-top: 1em;
    }
    
    .pricepage-info h3 {
        font-size: 1.2em; /* réduit de 1.5em */
    }
}
