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

@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;

    /* ── Typo fluide (clamp) : plus de retours à la ligne disgracieux
       ni de titres surdimensionnés sur mobile ───────────────── */
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-md: clamp(1rem, 0.94rem + 0.28vw, 1.125rem);
    --fs-lg: clamp(1.125rem, 1.03rem + 0.45vw, 1.375rem);
    --fs-xl: clamp(1.35rem, 1.18rem + 0.8vw, 1.75rem);
    --fs-2xl: clamp(1.6rem, 1.28rem + 1.5vw, 2.25rem);
    --fs-3xl: clamp(2rem, 1.4rem + 2.8vw, 3rem);

    --sp-xs: 0.5rem;
    --sp-sm: 1rem;
    --sp-md: 1.5rem;
    --sp-lg: 2.5rem;
    --sp-xl: 4rem;
    --sp-2xl: clamp(3rem, 2.2rem + 3.5vw, 6rem);

    /* Padding conteneur 100% fluide — supprime le "saut" à 768px */
    --container-pad: clamp(1rem, 3vw + 0.5rem, 2.5rem);

    --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);

    /* Zone tactile minimale accessible */
    --tap-min: 44px;
}

/* ── 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;
    width: 100%;
}

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

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    -webkit-tap-highlight-color: transparent;
}

/* ── Typographie ───────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
    font-family: var(--ff-display);
    font-weight: 400;
    line-height: 1.15;
    text-wrap: balance;
    /* évite les veuves/orphelines sur les titres */
}

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

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

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

/* Ancres : compense le header fixe pour tout lien direct (#services, #avis…) */
section[id] {
    scroll-margin-top: calc(var(--header-h) + 12px);
}

.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;
    justify-content: 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;
    min-height: var(--tap-min);
    /* zone tactile ≥ 44px */
    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);
}

.btn--outline-light {
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: var(--clr-white);
}

.btn--outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.55);
}

/* ── 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;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ── HEADER ────────────────────────────────────────────────── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    z-index: 900;
    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);
}

.header--hero {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.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(--container-pad);
    max-width: 1100px;
    margin: 0 auto;
}

.header__logo {
    min-height: var(--tap-min);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.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;
}

.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;
    padding: 0.5rem 0;
    /* confort de survol/clic */
}

.header__nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    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%;
}

.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 — zone tactile 44×44px réelle, traits visuels inchangés (26px) */
.header__burger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: var(--tap-min);
    height: var(--tap-min);
    flex-shrink: 0;
}

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

.header--hero:not(.is-scrolled) .header__burger span {
    background: #fff;
}

.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: clamp(1.35rem, 1.1rem + 1.2vw, 1.6rem);
    color: var(--clr-dark);
    transition: color 200ms;
    padding: 0.4rem 1rem;
    /* confort tactile */
}

.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);
    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;
    display: inline-block;
    padding: 0.3rem 0;
    /* confort tactile mobile */
}

.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);
    display: inline-block;
    padding: 0.15rem 0;
}

.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;
    flex-wrap: wrap;
    gap: var(--sp-xs);
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.45);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer__grid>div:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {

    .header__nav,
    .header__cta {
        display: none;
    }

    .header__burger {
        display: flex;
    }

    .mobile-nav {
        display: flex;
    }
}

@media (max-width: 600px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--sp-lg);
    }

    .footer__grid>div:first-child {
        grid-column: auto;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }

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