/**
 * Johanna Clamaron Consulting
 * Design fidèle à la maquette Figma "Accueil"
 *
 * PALETTE FIGMA:
 * - Beige clair:   #e8e5d6
 * - Bordeaux nav:  #4a1418
 * - Texte sombre:  #3e2a2c
 * - Gris texte:    #393536
 * - Kaki/vert:     #657763
 * - Rouge/saumon:  #b6464a
 * - Magenta:       #80194e
 * - Orange:        #d98546
 * - Corail:        #cc8a6e
 * - Vert feuille:  #536550
 * - Vert clair:    #7a8e75
 * - Brun:          #a15235
 * - Vert kaki bg:  #76806d (hero)
 */

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #3e2a2c;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul { list-style: none; }

/* =============================================
   HEADER
   ============================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    overflow: hidden;
}

.header__wave {
    display: none;
    position: absolute;
}

.header__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    position: relative;
    transition: padding 0.3s ease;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 40px;
    padding: 8px 0;
}

.header__logo img {
    height: 64px;
    width: auto;
    transition: height 0.3s ease;
}

.header__page-info {
    display: none;
}

.header__page-label {
    display: none;
}

.header__nav-logo {
    display: none;
}

.header__nav {
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    margin-left: 48px;
    max-width: 900px;
}

.header__menu {
    display: flex;
    align-items: stretch;
    width: 100%;
    justify-content: space-between;
    margin: 0;
    padding: 0;
}

.header__menu li {
    display: flex;
    align-items: stretch;
    text-align: center;
}

.header__menu a {
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #4a1418;
    line-height: 1.3;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    padding: 0 14px;
}

.header__menu a:hover {
    color: #b6464a;
    background-color: rgba(182, 70, 74, 0.08);
}

.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    background: none;
    border: none;
}

.header__burger span {
    width: 24px;
    height: 2px;
    background: #4a1418;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    position: relative;
}

.footer__main {
    background: #fff;
    padding: 36px 40px 80px;
}

.footer__container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding: 0 24px;
}

.footer__brand-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer__social {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #b6464a;
    border-radius: 50%;
    transition: opacity 0.2s;
}

.footer__social a:hover {
    opacity: 0.8;
}

.footer__brand-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 400;
    color: #b6464a;
    margin-bottom: 6px;
}

.footer__contact p {
    font-size: 16px;
    color: #2a1a1c;
    margin-bottom: 5px;
}

.footer__contact a {
    color: #2a1a1c;
    transition: opacity 0.2s;
}

.footer__contact a:hover {
    opacity: 0.7;
}

.footer__contact .footer__address {
    font-size: 16px;
    color: #3e2a2c;
    margin-top: 4px;
}

.footer__contact .footer__address a {
    color: #3e2a2c;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer__contact .footer__address a:hover {
    color: #571632;
}

.footer__address a:hover {
    opacity: 0.7;
}

.footer__map-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.footer__map-links a {
    font-size: 14px;
    color: #e8e5d6;
    text-decoration: none;
    border-bottom: 1px solid rgba(232, 229, 214, 0.4);
    padding-bottom: 1px;
    transition: opacity 0.2s ease;
}

.footer__map-links a:hover {
    opacity: 0.7;
}

.footer__map-links span {
    color: rgba(232, 229, 214, 0.5);
}

.footer__legal-col {
    text-align: center;
}

.footer__legal {
    font-size: 16px;
    color: #2a1a1c;
    margin-bottom: 5px;
}

.footer__legal a {
    color: #3e2a2c;
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer__legal a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.footer__credits {
    font-size: 16px;
    color: #444;
    margin-top: 8px;
}

.footer__certif {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer__certif-text {
    font-size: 16px;
    color: #2a1a1c;
    line-height: 1.5;
    max-width: 260px;
}

.footer__qualiopi {
    width: 80px;
    height: auto;
}

/* =============================================
   HEADER SCROLLED
   ============================================= */
.header--scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.header--scrolled .header__container {
    transition: padding 0.3s ease;
}

.header--scrolled .header__logo {
    padding: 6px 0;
}

.header--scrolled .header__logo img {
    height: 44px;
    transition: height 0.3s ease;
}

/* =============================================
   SCROLL REVEAL ANIMATIONS
   ============================================= */
.sr-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.sr-visible {
    opacity: 1;
    transform: translateY(0);
}

.spacer {
    height: 80px;
    background: #e8e5d6;
}

/* =============================================
   HERO IMAGE WRAPPER (global)
   ============================================= */
[class$="-hero__image-wrapper"],
.hero__image-wrapper {
    width: 100%;
    max-height: 50vh;
    overflow: hidden;
}

[class$="-hero__image-wrapper"] img,
.hero__image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
    .header { overflow: visible; }
    .header__burger { display: flex; }
    .header__container { padding: 8px 24px; }
    .header__logo { padding: 0; }
    .header__logo img { height: 48px; }

    .header__page-info {
        display: flex;
        flex-direction: column;
        flex: 1;
        gap: 2px;
    }

    .header__page-brand {
        font-family: 'Cormorant Garamond', Georgia, serif;
        font-size: 16px;
        font-weight: 400;
        color: #b6464a;
    }

    /* Accueil : pas de label, brand plus grand */
    .header__page-info:not(:has(.header__page-label)) .header__page-brand {
        font-size: 26px;
    }

    .header__page-label {
        display: block;
        font-size: 14px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #4a1418;
    }

    /* Logo mobile dans nav — caché en desktop */
    .header__nav-logo { display: none; }

    /* Menu mobile ouvert */
    .header__nav {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: #f9f8f5;
        z-index: 99;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        margin-left: 0;
        max-width: none;
        overflow-y: auto;
    }

    .header__nav--open {
        opacity: 1;
        visibility: visible;
    }

    .header__nav-logo {
        display: block;
        width: 60px;
        height: auto;
        opacity: 0.8;
    }

    .header__menu {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        margin: 0;
        padding: 0;
        width: 260px;
    }

    .header__menu li {
        display: block;
        text-align: center;
        border-bottom: 1px solid rgba(62, 42, 44, 0.1);
    }

    .header__menu li:first-child {
        border-top: 1px solid rgba(62, 42, 44, 0.1);
    }

    .header__menu a {
        display: block;
        font-size: 16px;
        letter-spacing: 0.1em;
        padding: 16px 20px;
        height: auto;
        text-align: center;
    }

    /* Burger animé (croix) */
    .header__burger--active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
        transition: transform 0.3s ease;
    }

    .header__burger--active span:nth-child(2) {
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    .header__burger--active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
        transition: transform 0.3s ease;
    }

    .header__burger span {
        transition: transform 0.3s ease, opacity 0.2s ease;
    }

    .header__burger--active {
        z-index: 100;
    }

    /* Pas de changement de taille au scroll en mobile */
    .header--scrolled .header__logo {
        padding: 0;
    }

    .header--scrolled .header__logo img {
        height: 48px;
    }

    .footer__main {
        padding: 32px 20px 60px;
    }

    .footer__container {
        flex-direction: column;
        text-align: center;
        gap: 32px;
        padding: 0;
    }

    .footer__brand-row {
        flex-direction: column;
        justify-content: center;
        gap: 12px;
    }

    .footer__social {
        flex-direction: row;
        justify-content: center;
    }

    .footer__brand-name {
        font-size: 24px;
    }

    .footer__certif {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .footer__certif-text {
        max-width: 100%;
    }
}
