/* ============================================================
   ÉLISE & CISEAUX — style.css (Global)
   Site Vitrine Essentiel — Sud Web Project
   ============================================================ */

/* ── @font-face ──────────────────────────────────────────────
   Placer les .woff2 dans fonts/ (racine du projet)
   Sources :
   https://fonts.google.com/specimen/Cormorant+Garamond
   https://fonts.google.com/specimen/DM+Sans
   ─────────────────────────────────────────────────────────── */

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('../fonts/cormorant-garamond-v21-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('../fonts/cormorant-garamond-v21-latin-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('../fonts/cormorant-garamond-v21-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DM Sans';
    src: url('../fonts/dm-sans-v17-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DM Sans';
    src: url('../fonts/dm-sans-v17-latin-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --clr-terra: #C4714A;
    --clr-terra-dark: #A35A36;
    --clr-terra-light: #E8C4AD;
    --clr-sage: #7D9B80;
    --clr-sage-light: #C8DAC9;
    --clr-sand: #F5EDE3;
    --clr-sand-mid: #EAD9C8;
    --clr-dark: #2A2118;
    --clr-mid: #6B5744;
    --clr-white: #FDFAF7;

    --ff-display: 'Cormorant Garamond', 'Georgia', serif;
    --ff-body: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;

    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-md: 1.125rem;
    --fs-lg: 1.375rem;
    --fs-xl: 1.75rem;
    --fs-2xl: 2.25rem;
    --fs-3xl: 3rem;

    --sp-xs: 0.5rem;
    --sp-sm: 1rem;
    --sp-md: 1.5rem;
    --sp-lg: 2.5rem;
    --sp-xl: 4rem;
    --sp-2xl: 6rem;

    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-pill: 100px;
    --shadow-soft: 0 4px 20px rgba(42, 33, 24, 0.08);
    --shadow-mid: 0 6px 32px rgba(42, 33, 24, 0.13);
    --header-h: 68px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--ff-body);
    color: var(--clr-dark);
    background: var(--clr-white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ── Typographie ───────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
    font-family: var(--ff-display);
    font-weight: 400;
    line-height: 1.15;
}

p {
    font-size: var(--fs-base);
    color: var(--clr-mid);
    line-height: 1.7;
}

/* ── Utilitaires ───────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--sp-lg);
}

.section {
    padding: var(--sp-2xl) 0;
}

.section-label {
    display: block;
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--clr-terra);
    margin-bottom: var(--sp-sm);
}

.section-title {
    font-size: var(--fs-3xl);
    color: var(--clr-dark);
    margin-bottom: var(--sp-md);
}

.section-title em {
    font-style: italic;
    color: var(--clr-terra);
}

/* ── Boutons ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-xs);
    font-family: var(--ff-body);
    font-size: var(--fs-sm);
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 0.85em 2em;
    border-radius: var(--radius-pill);
    transition: background 220ms var(--ease-out),
        color 220ms var(--ease-out),
        transform 220ms var(--ease-out),
        box-shadow 220ms var(--ease-out);
}

.btn--primary {
    background: var(--clr-terra);
    color: var(--clr-white);
}

.btn--primary:hover {
    background: var(--clr-terra-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 113, 74, 0.3);
}

.btn--outline {
    border: 1.5px solid var(--clr-terra);
    color: var(--clr-terra);
}

.btn--outline:hover {
    background: var(--clr-terra);
    color: var(--clr-white);
    transform: translateY(-2px);
}

.btn--white {
    background: var(--clr-white);
    color: var(--clr-terra);
}

.btn--white:hover {
    background: var(--clr-sand);
    transform: translateY(-2px);
}

/* ── Animation simple au chargement ───────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-1 {
    animation: fadeUp 0.6s var(--ease-out) 0.1s both;
}

.fade-2 {
    animation: fadeUp 0.6s var(--ease-out) 0.25s both;
}

.fade-3 {
    animation: fadeUp 0.6s var(--ease-out) 0.4s both;
}

.fade-4 {
    animation: fadeUp 0.6s var(--ease-out) 0.55s both;
}

/* ── HEADER ────────────────────────────────────────────────── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    z-index: 900;
    /* Par défaut : fond blanc (toutes les pages sauf accueil) */
    background: rgba(253, 250, 247, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--clr-sand-mid);
    transition: background 350ms var(--ease-out),
        box-shadow 350ms var(--ease-out);
}

/* Mode hero : transparent au-dessus d'une photo pleine largeur */
/* Ajouter class="header header--hero" sur la page d'accueil */
.header--hero {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

/* Dès qu'on scroll sur la page hero → fond blanc */
.header--hero.is-scrolled {
    background: rgba(253, 250, 247, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--clr-sand-mid);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 var(--sp-lg);
    max-width: 1100px;
    margin: 0 auto;
}

/* Logo couleurs par défaut (fond blanc) */
.header__logo-name {
    font-family: var(--ff-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--clr-dark);
    letter-spacing: -0.01em;
    display: block;
    line-height: 1;
    transition: color 300ms;
}

.header__logo-tagline {
    font-size: var(--fs-xs);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--clr-terra);
    display: block;
    margin-top: 2px;
    transition: color 300ms;
}

/* Logo blanc sur hero transparent */
.header--hero:not(.is-scrolled) .header__logo-name {
    color: #fff;
}

.header--hero:not(.is-scrolled) .header__logo-tagline {
    color: var(--clr-terra-light);
}

.header__nav {
    display: flex;
    align-items: center;
    gap: var(--sp-lg);
}

.header__nav a {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--clr-mid);
    letter-spacing: 0.03em;
    transition: color 200ms;
    position: relative;
}

.header__nav a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--clr-terra);
    transition: width 280ms var(--ease-out);
}

.header__nav a:hover,
.header__nav a.active {
    color: var(--clr-dark);
}

.header__nav a:hover::after,
.header__nav a.active::after {
    width: 100%;
}

/* Nav blanc sur hero transparent */
.header--hero:not(.is-scrolled) .header__nav a {
    color: rgba(255, 255, 255, 0.88);
}

.header--hero:not(.is-scrolled) .header__nav a::after {
    background: #fff;
}

.header--hero:not(.is-scrolled) .header__nav a:hover {
    color: #fff;
}

/* Burger */
.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 26px;
    padding: 4px 0;
}

.header__burger span {
    display: block;
    height: 1.5px;
    background: var(--clr-dark);
    border-radius: 2px;
    transition: all 280ms var(--ease-out);
    transform-origin: center;
}

/* Burger blanc sur hero transparent */
.header--hero:not(.is-scrolled) .header__burger span {
    background: #fff;
}

/* Mobile nav */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--clr-sand);
    z-index: 800;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms var(--ease-out);
}

.mobile-nav.is-open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav a {
    font-family: var(--ff-display);
    font-size: 1.6rem;
    color: var(--clr-dark);
    transition: color 200ms;
}

.mobile-nav a:hover {
    color: var(--clr-terra);
}

.mobile-nav .btn {
    font-size: var(--fs-sm);
    padding: 0.7em 1.8em;
    margin-top: 0;
}

/* ── FOOTER ────────────────────────────────────────────────── */
.footer {
    background: var(--clr-dark);
    color: rgba(255, 255, 255, 0.75);
    /* texte courant : blanc à 75% */
    padding: var(--sp-xl) 0 var(--sp-lg);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--sp-xl);
    margin-bottom: var(--sp-lg);
}

.footer__brand-name {
    font-family: var(--ff-display);
    font-size: var(--fs-xl);
    color: #fff;
    margin-bottom: var(--sp-sm);
}

.footer__brand-desc {
    font-size: var(--fs-sm);
    line-height: 1.7;
    max-width: 280px;
    color: rgba(255, 255, 255, 0.65);
}

.footer__col-title {
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--clr-terra-light);
    margin-bottom: var(--sp-md);
}

.footer__col ul {
    display: flex;
    flex-direction: column;
    gap: var(--sp-xs);
}

.footer__col a {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.75);
    transition: color 200ms;
}

.footer__col a:hover {
    color: #fff;
}

.footer__col address {
    font-style: normal;
    font-size: var(--fs-sm);
    line-height: 2;
    color: rgba(255, 255, 255, 0.75);
}

.footer__col address a {
    color: rgba(255, 255, 255, 0.75);
}

.footer__col address a:hover {
    color: #fff;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: var(--sp-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.45);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {

    .header__nav,
    .header__cta {
        display: none;
    }

    .header__burger {
        display: flex;
    }

    .mobile-nav {
        display: flex;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--sp-lg);
    }

    .footer__bottom {
        flex-direction: column;
        gap: var(--sp-xs);
        text-align: center;
    }

    .container {
        padding: 0 var(--sp-md);
    }

    .section {
        padding: var(--sp-xl) 0;
    }
}