/* ==========================================================================
   Emotions & Prestige – feuille de styles
   Sommaire : 1. Variables · 2. Base · 3. En-tête · 4. Accueil (hero, services,
   différence, valeurs, témoignages, contact) · 5. Pages légales · 6. Pied de page
   ========================================================================== */

/* 1. Variables
   ========================================================================== */
:root {
    --plum: #783e63;         /* violet principal */
    --orchid: #b365b2;       /* violet clair */
    --pink: #eeb6cd;         /* rose de l'en-tête */
    --blush: #f5eaea;        /* fond rose pâle */
    --brown: #4a3f3e;        /* brun des textes et boutons */
    --light: #f0f0f0;
    --text: #333;

    --font-sans: "Source Sans 3", system-ui, sans-serif;
    --font-serif: "Bodoni Moda", Georgia, serif;
    --font-script: "Great Vibes", cursive;

    --container: 1140px;
    --header-offset: 172px;  /* hauteur de l'en-tête fixe, réservée en haut de page */
}

/* 2. Base
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px; /* les ancres ne passent pas sous l'en-tête réduit */
}

body {
    margin: 0;
    padding-top: var(--header-offset);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, figure, blockquote {
    margin: 0;
}

h1, h2, h3, h4 {
    font-weight: 400;
    line-height: 1;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

.container {
    width: min(var(--container), 100% - 30px);
    margin-inline: auto;
}

.script {
    font-family: var(--font-script);
    font-size: 1.8em;
    font-weight: 400;
    color: var(--plum);
}

.section-title {
    padding: 30px 0 20px;
    font-size: 52px;
    text-align: center;
    color: var(--plum);
}

.button {
    display: inline-block;
    padding: 18px 40px;
    border-radius: 3px;
    font-size: 20px;
    line-height: 1;
    color: #fff;
    text-decoration: none;
    background: var(--brown);
    transition: background-color .3s;
}

.button:hover,
.button:focus-visible {
    background: var(--plum);
}

.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 10000;
}

.skip-link:focus {
    left: 0;
    top: 0;
    padding: .75em 1.5em;
    background: #fff;
    color: #0073aa;
}

/* Séparateur diagonal entre deux sections */
.shape {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    pointer-events: none;
}

.shape--top {
    top: -1px;
}

.shape--bottom {
    bottom: -1px;
    transform: rotate(180deg);
}

.section-shape {
    display: block;
    width: calc(100% + 1.3px);
    margin-left: -.65px;
    fill: var(--blush);
}

/* Apparition en glissant depuis la gauche (activée par main.js) */
.js .reveal {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity .9s ease, transform .9s ease;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* 3. En-tête
   ========================================================================== */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    background: var(--pink);
    transition: padding .3s ease, box-shadow .3s ease;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../img/bg-menu.webp") center / cover no-repeat;
    opacity: .48;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.site-header > * {
    position: relative;
}

.site-header__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.site-header__logo {
    width: 60px;
}

.site-header__name {
    padding: 2px 0 10px;
    font-family: var(--font-script);
    font-size: 28px;
    line-height: 1;
    color: var(--text);
}

.site-header__bar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.site-header__logo-small {
    display: none;
    padding: 0 0 7px;
}

.site-header__logo-small img {
    width: 40px;
}

/* État réduit, une fois la page défilée */
.is-scrolled .site-header {
    padding: 5px 0 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}

.is-scrolled .site-header__brand {
    display: none;
}

.is-scrolled .site-header__logo-small {
    display: block;
}

.lang-switcher {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 10px;
    padding: 2px 6px 6px 2px;
    background: var(--plum);
}

.lang-switcher a {
    font-size: 14px;
    line-height: 1.5;
    color: #fff;
    text-decoration: none;
    opacity: .75;
}

.lang-switcher a[aria-current],
.lang-switcher a:hover {
    opacity: 1;
}

.main-nav ul {
    display: flex;
    align-items: center;
    padding: 0;
    list-style: none;
}

.main-nav a {
    display: block;
    padding: 4px 15px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--brown);
    transition: color .2s;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: #fff;
}

.menu-toggle {
    display: none;
    padding: 6px;
    border: 0;
    background: none;
    color: var(--plum);
    cursor: pointer;
}

.menu-toggle .icon {
    width: 22px;
    height: 22px;
}

/* 4a. Hero
   ========================================================================== */
.hero {
    position: relative;
    padding: 60px 0;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
}

.hero__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 60%;
    padding: 10px;
}

.hero__title {
    font-family: var(--font-serif);
    font-size: 60px;
    font-weight: 500;
    color: #000;
}

.hero__tagline {
    font-size: 70%;
}

.hero__subtitle {
    font-size: 30px;
    line-height: 34px;
    color: var(--orchid);
}

.hero__lead {
    font-size: 18px;
    line-height: 24px;
    color: var(--brown);
}

.hero__content .button {
    align-self: flex-start;
    margin-top: 25px;
}

.hero__media {
    width: 40%;
    padding: 10px;
}

.hero__media img {
    width: 95%;
    margin-left: auto;
}

.hero .section-shape {
    height: 225px;
}

/* 4b. Services
   ========================================================================== */
.services {
    padding: 30px 0 60px;
    background: var(--blush);
}

.services .section-title {
    padding-top: 0;
}

.service-group {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 30px 0;
}

.service-group:first-of-type {
    padding-top: 60px;
}

.service-group--reverse {
    flex-direction: row-reverse;
}

.service-group > * {
    flex: 1 1 0;
}

.slideshow {
    position: relative;
    min-height: 300px;
    overflow: hidden;
}

.slideshow__slide {
    position: absolute;
    inset: 0;
    background: center / cover no-repeat;
    opacity: 0;
    transition: opacity .5s ease;
}

.slideshow__slide.is-active {
    opacity: 1;
}

.service-group__content {
    padding: 10px;
}

.service-group__title {
    font-size: 26px;
    font-weight: 500;
}

.service__title {
    padding-top: 12px;
    font-size: 28px;
    color: var(--brown);
}

.service__text {
    padding-top: 5px;
    line-height: 20px;
}

/* 4c. Ce qui nous distingue
   ========================================================================== */
.apart {
    position: relative;
    padding: 100px 0 60px;
    background: var(--plum);
}

.apart::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../img/bg-experience.jpg") center / cover no-repeat;
    opacity: .85;
}

.apart__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.apart__intro {
    width: 50%;
    padding: 30px;
    font-size: 20px;
    line-height: 28px;
    text-align: center;
    color: var(--brown);
    background: #fff;
}

.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    width: 70%;
    padding: 20px;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px 10px;
    text-align: center;
    background: rgba(255, 255, 255, .91);
}

.feature__icon {
    width: 70px;
    height: 70px;
    color: var(--plum);
}

.feature__title {
    margin-bottom: -10px; /* 5px d'écart avec la description, malgré le gap de 15px */
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--plum);
}

.feature__text {
    font-size: 18px;
    line-height: 24px;
}

.divider {
    width: 100px;
    margin: 2px auto;
    border: 0;
    border-top: 5px solid var(--plum);
}

.section-title--light {
    padding-top: 10px;
    color: var(--light);
}

/* 4d. Valeurs
   ========================================================================== */
.values {
    padding: 0 0 60px;
}

.values__subtitle {
    font-size: 24px;
    line-height: 1;
    text-align: center;
    color: var(--plum);
}

.values__inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.values__portrait {
    flex: 0 0 35%;
    padding-top: 30px;
    font-style: italic;
    line-height: 1.4;
    text-align: center;
}

.values__portrait img {
    width: 320px;
    margin: 0 auto 8px;
    border-radius: 50%;
}

.values__name {
    display: block;
    font-size: 48px;
    font-style: normal;
    line-height: 1.2;
}

.values__quote {
    display: flex;
    gap: 20px;
    padding: 10px;
}

.values__quote-icon {
    flex: none;
    width: 50px;
    height: 50px;
    color: var(--orchid);
}

.values__quote p {
    padding: 30px;
    font-size: 18px;
    font-style: italic;
}

/* 4e. Témoignages
   ========================================================================== */
.testimonials {
    padding: 60px 0;
    background: var(--light);
}

.testimonials .section-title {
    padding-top: 0;
}

.carousel {
    padding-top: 10px; /* place pour l'effet de survol des cartes */
    overflow: hidden;
    touch-action: pan-y;
}

.carousel__track {
    display: flex;
    align-items: flex-start;
    transition: transform .5s ease;
}

.carousel__item {
    flex: 0 0 100%;
    padding: 40px;
    border: 2px solid #ededed;
    border-radius: 5px;
    font-style: italic;
    text-align: center;
    background: #fff;
    transition: transform .3s ease;
    user-select: none;
}

.carousel__item:hover {
    transform: translateY(-8px);
}

.carousel__item cite {
    font-style: italic;
}

.carousel__dots {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.carousel__dots button {
    width: 10px;
    height: 10px;
    margin: 5px 7px;
    padding: 0;
    border: 0;
    border-radius: 30px;
    background: #d6d6d6;
    cursor: pointer;
    transition: background-color .2s;
}

.carousel__dots button[aria-current],
.carousel__dots button:hover {
    background: #869791;
}

/* 4f. Contact
   ========================================================================== */
.contact {
    padding: 60px 0;
    background: var(--brown);
}

.section-title--white {
    padding-top: 0;
    font-weight: 300;
    color: #fff;
}

.contact__subtitle {
    font-size: 24px;
    line-height: 1;
    text-align: center;
    color: var(--pink);
}

.contact__inner {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 20px;
}

.contact__inner > * {
    flex: 1 1 0;
}

.contact-form {
    max-width: 510px;
}

.field {
    display: block;
    margin-bottom: 14px;
    color: var(--light);
}

.field span {
    display: block;
    margin-bottom: 4px;
}

.field input,
.field textarea {
    width: 100%;
    padding: 20px;
    border: 0;
    border-radius: 3px;
    font: inherit;
    color: #000;
    background: #fff;
}

.field textarea {
    resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible {
    outline: 3px solid var(--pink);
}

.field input[aria-invalid="true"] {
    outline: 3px solid #e57373;
}

.contact-form__trap {
    position: absolute;
    left: -9999px;
}

.contact-form__submit {
    padding: 10px 50px;
    border: 0;
    border-radius: 5px;
    font: inherit;
    color: #fff;
    background: var(--pink);
    cursor: pointer;
    transition: background-color .3s;
}

.contact-form__submit:hover,
.contact-form__submit:focus-visible {
    background: #131313;
}

.contact-form__submit:disabled {
    opacity: .6;
    cursor: wait;
}

.contact-form__status:empty {
    display: none;
}

.contact-form__status {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 3px;
    color: #fff;
}

.contact-form__status[data-state="success"] {
    background: #3f7a4f;
}

.contact-form__status[data-state="error"] {
    background: #a33b3b;
}

.contact__heading {
    padding-top: 2px;
    font-size: 28px;
    font-weight: 500;
    color: var(--light);
}

.contact__heading--spaced {
    padding-top: 40px;
}

.icon-list {
    margin-top: 20px;
    padding: 0;
    list-style: none;
}

.icon-list li,
.icon-list a {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
}

.icon-list li + li {
    margin-top: 20px;
}

.icon-list a:hover {
    color: var(--pink);
}

.icon-list .icon {
    flex: none;
    width: 30px;
    height: 30px;
    color: #e2e2e2;
}

/* 5. Pages légales
   ========================================================================== */
.legal {
    padding: 30px 0 60px;
    font-size: 18px;
}

.legal .section-title {
    padding-top: 0;
}

.legal h2 {
    padding: 25px 0 10px;
    font-size: 26px;
    font-weight: 500;
    color: var(--brown);
}

.legal p + p,
.legal ul + p,
.legal p + ul {
    margin-top: 10px;
}

.legal a {
    color: var(--plum);
}

/* 6. Pied de page
   ========================================================================== */
.site-footer {
    background: #000;
}

.site-footer__inner {
    display: flex;
    align-items: center;
    padding: 30px 10px;
}

.site-footer__inner > * {
    flex: 1 1 0;
}

.site-footer__logo img {
    width: 80px;
}

.site-footer__links {
    padding: 0;
    list-style: none;
}

.site-footer__links li + li {
    margin-top: 6px;
}

.site-footer__links a {
    color: var(--light);
    text-decoration: none;
    transition: color .3s;
}

.site-footer__links a:hover {
    color: var(--orchid);
}

.site-footer__copyright {
    padding: 10px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    color: #fff;
    background: var(--plum);
}

.site-footer__copyright a {
    color: #fff;
}

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 90;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    background: #000;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}

.back-to-top .icon {
    width: 16px;
    height: 16px;
}

.is-scrolled .back-to-top {
    opacity: 1;
    visibility: visible;
}

/* Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
        width: 90%;
    }

    .apart__intro {
        width: 80%;
    }
}

@media (max-width: 767px) {
    :root {
        --header-offset: 150px;
    }

    .section-title {
        font-size: 30px;
    }

    /* En-tête : menu repliable */
    .site-header__logo {
        width: 40px;
    }

    .site-header__bar {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        width: 100%;
        background: #fff;
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
    }

    .main-nav li:not(:last-child) {
        border-bottom: 1px solid #c4c4c4;
    }

    .main-nav a {
        padding: 15px;
    }

    .main-nav a:hover,
    .main-nav a:focus-visible {
        color: var(--plum);
    }

    .is-scrolled .site-header__bar {
        gap: 10px;
    }

    /* Hero */
    .hero {
        padding: 15px 0;
    }

    .hero__inner,
    .service-group,
    .service-group--reverse,
    .values__inner,
    .contact__inner,
    .site-footer__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__content,
    .hero__media {
        width: 100%;
        text-align: center;
    }

    .hero__title {
        font-size: 36px;
    }

    .hero__subtitle {
        font-size: 24px;
    }

    .hero__lead {
        font-size: 16px;
    }

    .hero__content .button {
        align-self: center;
        margin: 0 0 10px;
    }

    .hero__media img {
        width: 100%;
    }

    /* Services */
    .services {
        padding: 15px 0;
    }

    .service-group,
    .service-group:first-of-type {
        gap: 0;
        padding: 0 0 30px;
    }

    .service-group > * {
        flex: none;
    }

    .service-group__title {
        padding: 5px 0 8px;
        font-size: 20px;
    }

    .service__title {
        padding-top: 20px;
        font-size: 22px;
    }

    .service__text {
        line-height: 24px;
    }

    /* Différence */
    .apart__intro {
        padding: 20px;
        font-size: 18px;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
    }

    .feature__title {
        font-size: 20px;
    }

    /* Valeurs */
    .values {
        padding: 15px 0;
    }

    .values__subtitle {
        font-size: 22px;
    }

    .values__quote p {
        padding: 0;
    }

    /* Contact */
    .contact__subtitle {
        font-size: 22px;
    }

    .section-title--white {
        font-size: 36px;
    }

    .contact__inner {
        gap: 40px;
        padding: 20px 0;
    }

    .contact-form {
        max-width: none;
    }

    /* Pied de page */
    .site-footer__inner {
        gap: 20px;
        text-align: center;
    }

    .site-footer__logo img {
        margin: 0 auto;
    }

    .legal .section-title {
        font-size: 36px;
    }
}
