/*
 * ═══════════════════════════════════════════════════════════════════
 *  Sqalli Events — Feuille de style principale
 *  css/style.css
 *  Analyse visuelle : Master Traiteur Casablanca
 *  Version : 2.0 — Production
 * ═══════════════════════════════════════════════════════════════════
 *
 *  TABLE DES MATIÈRES
 *  ──────────────────
 *  00. Variables & Reset
 *  01. Base & Typographie
 *  02. Utilitaires
 *  03. Boutons
 *  04. Header & Navigation
 *  05. Hero Section — Mosaïque collage
 *  06. Section À propos (piliers)
 *  07. Section Histoire (story)
 *  08. Section Services
 *  09. Galerie
 *  10. Section Avantages
 *  11. Section Contact
 *  12. WhatsApp FAB & Scroll Top
 *  13. Footer
 *  14. Animations
 *  15. Responsive 640px+
 *  16. Responsive 1024px+
 *  17. Responsive 1280px+
 *  18. Accessibilité & Print
 */


/* ─────────────────────────────────────────────────────────────────
   00. VARIABLES & RESET
   Extrait pixel par pixel des captures Master Traiteur
───────────────────────────────────────────────────────────────── */
:root {
    /* ── Palette principale ── */
    /* Fond global : blanc cassé chaud imperceptible */
    --color-cream:       #FAFAF8;
    /* Fond sections alternées : beige lait très léger */
    --color-warm:        #F5F0EB;
    /* Fond cartes piliers : beige saumon doux */
    --color-card-bg:     #F2E8DF;
    /* Cercle icône : beige légèrement plus profond */
    --color-icon-bg:     #EAD9CB;
    /* Titre hero et sections : noir chaud profond */
    --color-dark:        #1A1411;
    /* Texte corps : gris chaud moyen */
    --color-text:        #4A3D37;
    /* Texte secondaire / descriptions */
    --color-text-light:  #6E6560;
    /* Eyebrow uppercase : gris beige discret */
    --color-text-muted:  #9A9288;
    /* Accent cuivre doré — identique aux icônes des captures */
    --color-gold:        #C49068;
    /* Accent doré plus profond — hover, liens actifs */
    --color-gold-deep:   #A8784E;
    /* Accent clair pour arrière-plans */
    --color-gold-light:  #F0E0CF;
    /* Fond sombre footer */
    --color-footer-bg:   #1E1510;
    /* Blanc pur pour surfaces claires */
    --color-white:       #FFFFFF;
    /* Bordure subtile */
    --color-border:      #E8DDD4;
    /* Bordure très légère */
    --color-border-light:#F0E8E0;

    /* ── Typographie ── */
    /* Display serif : Marcellus — identique au titre "Mariages élégants" des captures */
    --font-display: 'Marcellus', 'Cormorant Garamond', Georgia, serif;
    /* Corps : DM Sans — propre, aéré, neutre */
    --font-body:    'DM Sans', 'Inter', system-ui, sans-serif;

    /* ── Échelle typographique (mobile-first) ── */
    /* Calibrée sur les tailles observées dans les captures à ~375px */
    --fs-2xs:  0.6875rem;  /* 11px — eyebrow uppercase */
    --fs-xs:   0.75rem;    /* 12px */
    --fs-sm:   0.875rem;   /* 14px — texte corps cartes */
    --fs-base: 1rem;       /* 16px */
    --fs-md:   1.125rem;   /* 18px */
    --fs-lg:   1.375rem;   /* 22px — titre cartes piliers */
    --fs-xl:   1.75rem;    /* 28px */
    --fs-2xl:  2.25rem;    /* 36px */
    --fs-3xl:  2.625rem;   /* 42px — titre hero mobile observé */
    --fs-4xl:  3.5rem;     /* 56px */
    --fs-hero: 4.25rem;    /* 68px — desktop */

    /* ── Espacements ── */
    /* Extraits des proportions visuelles des captures */
    --space-2xs:  0.25rem;  /*  4px */
    --space-xs:   0.5rem;   /*  8px */
    --space-sm:   0.75rem;  /* 12px */
    --space-md:   1rem;     /* 16px */
    --space-lg:   1.5rem;   /* 24px */
    --space-xl:   2.5rem;   /* 40px */
    --space-2xl:  4rem;     /* 64px */
    --space-3xl:  6rem;     /* 96px */

    /* ── Transitions ── */
    --transition-fast:   140ms ease;
    --transition-base:   260ms ease;
    --transition-slow:   420ms ease;
    --transition-spring: 360ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* ── Ombres ── */
    /* Les captures montrent des ombres très subtiles ou nulles */
    --shadow-xs:  0 1px 4px rgba(26, 20, 17, 0.05);
    --shadow-sm:  0 2px 10px rgba(26, 20, 17, 0.07);
    --shadow-md:  0 6px 24px rgba(26, 20, 17, 0.09);
    --shadow-lg:  0 16px 48px rgba(26, 20, 17, 0.12);
    /* Ombre photos mosaïque hero */
    --shadow-photo: 0 8px 32px rgba(26, 20, 17, 0.18);

    /* ── Géométrie ── */
    /* Les captures montrent des coins presque nuls sur les cartes */
    --radius-xs:   4px;
    --radius-sm:   6px;
    --radius-md:   10px;
    --radius-lg:   16px;
    --radius-xl:   24px;
    --radius-full: 9999px;

    /* ── Layout ── */
    --max-width:      1240px;
    --container-pad:  1.25rem;  /* 20px mobile — mesuré sur les captures */
    --header-h:       68px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    color: var(--color-text);
    background-color: var(--color-cream);
    line-height: 1.65;
    overflow-x: hidden;
}

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

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

ul, ol {
    list-style: none;
}

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

svg {
    flex-shrink: 0;
}


/* ─────────────────────────────────────────────────────────────────
   01. BASE & TYPOGRAPHIE
   Hiérarchie extraite des captures : Marcellus + DM Sans
───────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;          /* Serif régulier — les captures montrent du regular, pas du bold */
    line-height: 1.1;
    color: var(--color-dark);
    letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg);  }

p {
    font-size: var(--fs-sm);
    line-height: 1.72;
    color: var(--color-text-light);
    font-weight: 300;
}

strong {
    font-weight: 500;
    color: var(--color-text);
}

em {
    font-style: italic;
    color: var(--color-gold-deep);
}

address {
    font-style: normal;
}


/* ─────────────────────────────────────────────────────────────────
   02. UTILITAIRES
───────────────────────────────────────────────────────────────── */

/* Conteneur centré */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

/* Sections */
section {
    padding-block: var(--space-xl);
}

/* ── Eyebrow — texte au-dessus des titres ── */
/* Style identique à "TRAITEUR CASA / LE MEILLEUR POUR VOUS" dans les captures */
.section-eyebrow {
    display: block;
    font-family: var(--font-body);
    font-size: var(--fs-2xs);
    font-weight: 500;
    letter-spacing: 0.28em;          /* Espacement très large — mesuré sur les captures */
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

/* Titre de section */
.section-title {
    font-size: var(--fs-xl);
    color: var(--color-dark);
    margin-bottom: var(--space-lg);
    line-height: 1.12;
}

.section-title em {
    display: block;
    font-style: italic;
    color: var(--color-gold-deep);
}

/* Trait décoratif fin */
.divider {
    width: 32px;
    height: 1px;
    background: var(--color-gold);
    margin-block: var(--space-lg);
    opacity: 0.7;
}

/* Texte masqué accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* Fonds alternés */
.bg-warm { background-color: var(--color-warm); }
.bg-dark  { background-color: var(--color-footer-bg); color: var(--color-cream); }

/* Textes utilitaires */
.text-accent { color: var(--color-gold-deep); }
.text-center { text-align: center; }


/* ─────────────────────────────────────────────────────────────────
   03. BOUTONS
   Style cuivre doré cohérent avec la palette des captures
───────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    font-family: var(--font-body);
    font-size: var(--fs-2xs);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition:
        background-color var(--transition-base),
        color var(--transition-base),
        border-color var(--transition-base),
        box-shadow var(--transition-base),
        transform var(--transition-spring);
    white-space: nowrap;
    position: relative;
}

.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Bouton primaire cuivre doré */
.btn--primary {
    background-color: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-white);
}

.btn--primary:hover {
    background-color: var(--color-gold-deep);
    border-color: var(--color-gold-deep);
    box-shadow: 0 8px 28px rgba(168, 120, 78, 0.32);
}

/* Bouton contour clair (sur fond sombre) */
.btn--outline {
    background-color: transparent;
    border-color: rgba(250, 246, 242, 0.6);
    color: var(--color-cream);
}

.btn--outline:hover {
    background-color: rgba(250, 246, 242, 0.12);
    border-color: rgba(250, 246, 242, 0.9);
}

/* Bouton contour sombre (sur fond clair) */
.btn--outline-dark {
    background-color: transparent;
    border-color: var(--color-dark);
    color: var(--color-dark);
}

.btn--outline-dark:hover {
    background-color: var(--color-dark);
    color: var(--color-cream);
}

/* Taille petite */
.btn--sm {
    padding: 0.65rem 1.4rem;
    font-size: var(--fs-2xs);
}

/* Pleine largeur */
.btn--full { width: 100%; }

/* État loading */
.btn__loader {
    display: none;
    width: 15px;
    height: 15px;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.65s linear infinite;
}

.btn.is-loading .btn__text   { opacity: 0; }
.btn.is-loading .btn__loader { display: block; }


/* ─────────────────────────────────────────────────────────────────
   04. HEADER & NAVIGATION
───────────────────────────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    height: var(--header-h);
    transition:
        background-color var(--transition-base),
        box-shadow var(--transition-base);
}

/* Header transparent sur le hero */
.site-header.is-transparent {
    background-color: transparent;
}

/* Header après scroll */
.site-header.is-scrolled {
    background-color: rgba(250, 250, 248, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--color-border-light), var(--shadow-xs);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    height: 100%;
    padding-inline: var(--container-pad);
    max-width: var(--max-width);
    margin-inline: auto;
}

/* ── Logo ── */
/* Style inspiré du logo Master Traiteur : nom serif + trait cuivré */
.header__logo,
.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.logo__mark svg {
    transition: transform var(--transition-base);
}

.header__logo:hover .logo__mark svg {
    transform: rotate(18deg) scale(1.05);
}

.logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo__name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-dark);
    letter-spacing: 0.02em;
    transition: color var(--transition-base);
}

.logo__sub {
    font-family: var(--font-body);
    font-size: var(--fs-2xs);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-top: 1px;
}

/* Logo blanc sur hero transparent */
.site-header.is-transparent .logo__name { color: var(--color-cream); }
.site-header.is-transparent .logo__sub  { color: var(--color-gold); }

/* ── Navigation desktop (masquée mobile) ── */
.header__nav {
    display: none;
    flex: 1;
    justify-content: center;
}

.nav__list {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
}

.nav__link {
    font-family: var(--font-body);
    font-size: var(--fs-2xs);
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text);
    padding-block: 0.25rem;
    position: relative;
    transition: color var(--transition-base);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-gold);
    transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link.is-active { color: var(--color-gold-deep); }

.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }

/* Liens blancs sur hero */
.site-header.is-transparent .nav__link { color: rgba(250, 250, 248, 0.80); }
.site-header.is-transparent .nav__link:hover { color: var(--color-cream); }

/* ── Actions header droite ── */
.header__actions {
    display: none;
    align-items: center;
    gap: var(--space-md);
    flex-shrink: 0;
}

.header__phone {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--fs-xs);
    font-weight: 400;
    color: var(--color-text-light);
    transition: color var(--transition-base);
}

.header__phone:hover { color: var(--color-gold-deep); }

.site-header.is-transparent .header__phone { color: rgba(250, 250, 248, 0.65); }

/* ── Burger mobile ── */
.header__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    margin-left: auto;
    padding: 5px;
    cursor: pointer;
}

.burger__line {
    display: block;
    width: 100%;
    height: 1.5px;
    background-color: var(--color-dark);
    transition:
        transform var(--transition-base),
        opacity var(--transition-base),
        background-color var(--transition-base);
    transform-origin: center;
}

.site-header.is-transparent .burger__line { background-color: var(--color-cream); }

.header__burger[aria-expanded="true"] .burger__line:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.header__burger[aria-expanded="true"] .burger__line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.header__burger[aria-expanded="true"] .burger__line:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Menu mobile drawer ── */
.header__nav.is-open {
    display: flex;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--color-cream);
    z-index: 800;
    animation: slideInNav var(--transition-base) ease;
}

.header__nav.is-open .nav__list {
    flex-direction: column;
    gap: var(--space-xl);
    text-align: center;
}

.header__nav.is-open .nav__link {
    font-family: var(--font-display);
    font-size: var(--fs-xl);
    letter-spacing: 0;
    text-transform: none;
    color: var(--color-dark);
}

/* Overlay mobile */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(26, 20, 17, 0.35);
    z-index: 700;
    backdrop-filter: blur(2px);
}

.nav-overlay.is-visible {
    display: block;
    animation: fadeIn var(--transition-base) ease;
}


/* ─────────────────────────────────────────────────────────────────
   05. HERO SECTION
   Reproduction fidèle du collage mosaïque des captures
───────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-dark);
    padding-top: var(--header-h);
    padding-bottom: var(--space-xl);
}

/* Fond photo */
.hero__bg {
    position: absolute;
    inset: 0;
    background-image: url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center 20%;
    z-index: 0;
    transform: scale(1.04);
    transition: transform 8s ease;
}

.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        170deg,
        rgba(26, 20, 17, 0.68) 0%,
        rgba(26, 20, 17, 0.45) 50%,
        rgba(26, 20, 17, 0.62) 100%
    );
}

/* ── Mosaïque collage — style exact des captures ── */
/* 4 photos disposées en coins autour du titre central */
.hero__mosaic {
    display: none;           /* Masquée mobile (non visible dans la capture mobile) */
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero__mosaic-item {
    position: absolute;
    overflow: hidden;
    border-radius: var(--radius-xs);
    box-shadow: var(--shadow-photo);
}

.hero__mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Positions extraites pixel par pixel des captures ── */
/* Photo haut-gauche : femme portait */
.hero__mosaic-item--1 {
    top: 14%;
    left: 4%;
    width: 20%;
    aspect-ratio: 3/4;
    opacity: 0.92;
}

/* Photo bas-gauche : petite photo carré */
.hero__mosaic-item--2 {
    bottom: 16%;
    left: 3%;
    width: 12%;
    aspect-ratio: 2/3;
    opacity: 0.80;
}

/* Photo haut-droite : table décorée */
.hero__mosaic-item--3 {
    top: 14%;
    right: 4%;
    width: 22%;
    aspect-ratio: 4/3;
    opacity: 0.90;
}

/* ── Contenu central ── */
.hero__content {
    position: relative;
    z-index: 4;
    text-align: center;
    padding-inline: var(--container-pad);
    max-width: 640px;
    animation: fadeInUp 0.9s ease both;
}

/* Ornement SVG au-dessus du titre */
.hero__eyebrow {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-md);
}

/* Titre hero */
/* Taille et style reproduit des captures : "Mariages élégants" */
.hero__title {
    font-family: var(--font-display);
    font-size: var(--fs-3xl);
    font-weight: 400;
    color: var(--color-cream);
    line-height: 1.05;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.hero__title em {
    color: var(--color-gold);
    font-style: italic;
    display: block;
}

/* Hero bottom gradient */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(250, 250, 248, 0.6), transparent);
    z-index: 3;
    pointer-events: none;
}
.hero__subtitle {
    font-family: var(--font-body);
    font-size: var(--fs-2xs);
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(250, 250, 248, 0.65);
    margin-bottom: var(--space-xl);
}

.hero__cta-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
}

/* ── Image vedette centrée au-dessus du titre hero ── */
.hero__featured-img {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: var(--space-md);
}

.hero__featured-img img {
    width: 100%;
    max-width: 220px;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow:
        0 12px 40px rgba(26, 20, 17, 0.42),
        0 0 0 2px rgba(250, 246, 242, 0.18);
    display: block;
    transition:
        transform var(--transition-slow),
        box-shadow var(--transition-slow);
}

.hero__featured-img img:hover {
    transform: scale(1.025);
    box-shadow:
        0 20px 56px rgba(26, 20, 17, 0.52),
        0 0 0 2px rgba(214, 166, 128, 0.40);
}

/* ── Section descriptive sous le hero ── */
/* "Traiteur Casa / LE MEILLEUR POUR VOUS / Traiteur de mariages à Casablanca..." */
.hero__intro {
    padding: var(--space-xl) var(--container-pad) var(--space-lg);
    text-align: center;
    background-color: var(--color-white);
}

.hero__intro-eyebrow {
    font-family: var(--font-display);
    font-size: var(--fs-xl);         /* "Traiteur Casa" — grand, serif */
    font-weight: 400;
    color: var(--color-dark);
    margin-bottom: var(--space-xs);
    line-height: 1.15;
}

.hero__intro-sub {
    font-size: var(--fs-2xs);
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

.hero__intro-text {
    font-size: var(--fs-sm);
    line-height: 1.75;
    color: var(--color-text-light);
    max-width: 380px;
    margin-inline: auto;
    font-weight: 300;
}


/* ─────────────────────────────────────────────────────────────────
   06. SECTION À PROPOS — Piliers
   Style exact reproduit depuis les captures image 2
───────────────────────────────────────────────────────────────── */
.about {
    background-color: var(--color-white);
    padding-block: var(--space-xl);
}

.about__intro {
    text-align: center;
    max-width: 580px;
    margin-inline: auto;
    margin-bottom: var(--space-xl);
}

.about__lead {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    line-height: 1.78;
    font-weight: 300;
    margin-top: var(--space-sm);
}

/* ── Grille piliers ── */
/* Les captures montrent les cartes en colonne sur mobile */
.about__pillars {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

/* ── Carte pilier ── */
/* Reproduit exactement : fond beige, icône dans cercle, titre serif, texte gris, flèche */
.pillar {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    background: var(--color-card-bg);    /* #F2E8DF — extrait des captures */
    border-radius: var(--radius-md);
    transition:
        box-shadow var(--transition-base),
        transform var(--transition-base);
    position: relative;
    border: none;                        /* Pas de bordure visible dans les captures */
}

.pillar:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

/* Cercle icône */
/* Les captures montrent un cercle beige plus soutenu avec icône cuivrée */
.pillar__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    background-color: var(--color-icon-bg);  /* #EAD9CB */
    border-radius: 50%;
    margin-bottom: var(--space-lg);
    flex-shrink: 0;
}

/* Titre de carte */
/* "Créez votre pack mariage" : serif ~20px dans les captures */
.pillar__title {
    font-family: var(--font-display);
    font-size: 1.125rem;         /* ~18px — mesuré sur les captures */
    font-weight: 400;
    color: var(--color-dark);
    margin-bottom: var(--space-xs);
    line-height: 1.25;
}

/* Texte descriptif carte */
/* "Personnalisez chaque détail pour un jour J qui vous ressemble." */
.pillar__text {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    font-weight: 300;
}

/* Flèche "→" cuivrée */
/* Les captures montrent une simple flèche → sans cercle sur certaines cartes */
.pillar__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--color-gold);
    border-radius: 50%;
    color: var(--color-gold);
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: auto;
    transition:
        background-color var(--transition-base),
        color var(--transition-base),
        transform var(--transition-spring);
}

.pillar__link:hover {
    background-color: var(--color-gold);
    color: var(--color-white);
    transform: scale(1.08);
}


/* ─────────────────────────────────────────────────────────────────
   07. SECTION HISTOIRE (STORY)
───────────────────────────────────────────────────────────────── */
.story {
    background-color: var(--color-warm);
    padding-block: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.story__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-items: center;
}

/* Images imbriquées */
.story__images {
    position: relative;
    padding-bottom: var(--space-lg);
}

.story__img-main {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.story__img-main img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.story__img-main:hover img { transform: scale(1.03); }

.story__img-secondary {
    display: none;
    position: absolute;
    bottom: -0.5rem;
    right: -1rem;
    width: 42%;
    z-index: 2;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--color-cream);
}

.story__img-secondary img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

/* Contenu textuel */
.story__text {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: var(--space-md);
    font-weight: 300;
}

/* Watermark décoratif */
.story__watermark {
    position: absolute;
    bottom: -1rem;
    left: -1rem;
    right: -1rem;
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(3rem, 12vw, 9rem);
    font-weight: 400;
    color: transparent;
    -webkit-text-stroke: 1px rgba(168, 120, 78, 0.12);
    letter-spacing: 0.1em;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    line-height: 1;
}


/* ─────────────────────────────────────────────────────────────────
   08. SECTION SERVICES
───────────────────────────────────────────────────────────────── */
.services {
    background-color: var(--color-cream);
    padding-block: var(--space-xl);
}

.services__header {
    max-width: 520px;
    margin-bottom: var(--space-lg);
}

.services__intro {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    line-height: 1.8;
    margin-top: var(--space-xs);
    font-weight: 300;
}

/* Liste accordéon services */
.services__list {
    display: flex;
    flex-direction: column;
}

.service-item {
    border-top: 1px solid var(--color-border);
    transition: background-color var(--transition-base);
}

.service-item:last-child {
    border-bottom: 1px solid var(--color-border);
}

.service-item:hover { background-color: var(--color-warm); }

.service-item__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: var(--space-lg);
    gap: var(--space-lg);
    cursor: pointer;
}

.service-item__left {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--space-xs);
}

.service-item__title {
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    font-weight: 400;
    color: var(--color-dark);
    transition: color var(--transition-base);
}

.service-item:hover .service-item__title { color: var(--color-gold-deep); }

.service-item__sub {
    font-size: var(--fs-xs);
    color: var(--color-text-light);
    font-style: italic;
    font-weight: 300;
}

.service-item__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--color-gold);
    border-radius: 50%;
    color: var(--color-gold);
    font-size: 1rem;
    flex-shrink: 0;
    text-decoration: none;
    transition:
        background-color var(--transition-base),
        color var(--transition-base),
        transform var(--transition-spring);
}

.service-item:hover .service-item__arrow {
    background-color: var(--color-gold);
    color: var(--color-white);
    transform: translateX(3px);
}


/* ─────────────────────────────────────────────────────────────────
   09. GALERIE
───────────────────────────────────────────────────────────────── */
.gallery {
    background-color: var(--color-warm);
    padding-block: var(--space-xl);
}

.gallery__header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

/* Masonry CSS */
.gallery__grid {
    column-count: 1;
    column-gap: var(--space-sm);
}

.gallery__item {
    break-inside: avoid;
    margin-bottom: var(--space-sm);
    overflow: hidden;
    border-radius: var(--radius-xs);
    position: relative;
    cursor: pointer;
}

.gallery__item img {
    width: 100%;
    height: auto;
    min-height: 220px;
    object-fit: cover;
    transition: transform 0.7s ease;
    display: block;
}

.gallery__item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 20, 17, 0.5), transparent 55%);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 1;
}

.gallery__item:hover img    { transform: scale(1.05); }
.gallery__item:hover::before { opacity: 1; }


/* ─────────────────────────────────────────────────────────────────
   10. SECTION AVANTAGES
───────────────────────────────────────────────────────────────── */
.why-us {
    background-color: var(--color-cream);
    padding-block: var(--space-xl);
}

.why-us__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.why-us__lead {
    font-size: var(--fs-sm);
    line-height: 1.8;
    margin-top: var(--space-sm);
    color: var(--color-text-light);
    font-weight: 300;
}

.why-us__features {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.feature {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    transition: background-color var(--transition-base);
}

.feature:hover { background-color: var(--color-warm); }

/* Numéro décoratif — style discret, taille grande, opaque */
.feature__number {
    font-family: var(--font-display);
    font-size: var(--fs-2xl);
    color: var(--color-gold);
    opacity: 0.3;
    line-height: 1;
    flex-shrink: 0;
    min-width: 2.5rem;
    transition: opacity var(--transition-base);
}

.feature:hover .feature__number { opacity: 1; }

.feature__title {
    font-family: var(--font-display);
    font-size: var(--fs-md);
    font-weight: 400;
    margin-bottom: 0.35rem;
    color: var(--color-dark);
}

.feature__text {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    line-height: 1.72;
    font-weight: 300;
}


/* ─────────────────────────────────────────────────────────────────
   11. SECTION CONTACT
───────────────────────────────────────────────────────────────── */
.contact {
    padding: 0;
}

.contact__inner {
    display: grid;
    grid-template-columns: 1fr;
    min-height: auto;
}

/* Image gauche (desktop) */
.contact__image {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: none;
}

.contact__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.contact__image:hover img { transform: scale(1.03); }

.contact__image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent, rgba(250, 250, 248, 0.15));
}

/* Zone formulaire */
.contact__form-wrap {
    background-color: var(--color-cream);
    padding: var(--space-xl) var(--container-pad);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Formulaire */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    max-width: 520px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

/* Honeypot */
.form-group--hidden {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
    height: 0;
    overflow: hidden;
}

/* Label */
.form-label {
    font-size: var(--fs-2xs);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text);
}

.form-label span { color: var(--color-gold); }

/* Input */
.form-input {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: 300;
    color: var(--color-text);
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.875rem 1rem;
    transition:
        border-color var(--transition-base),
        box-shadow var(--transition-base);
    outline: none;
    width: 100%;
    appearance: none;
}

.form-input::placeholder { color: rgba(110, 101, 96, 0.4); }

.form-input:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(196, 144, 104, 0.12);
}

.form-input.is-error { border-color: #b5352a; }

.form-textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.65;
}

.form-error {
    font-size: var(--fs-xs);
    color: #b5352a;
    min-height: 1.1em;
}

.form-actions { margin-top: var(--space-xs); }

/* Feedback messages */
.form-feedback {
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
}

.form-feedback__success {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    color: var(--color-dark);
    background-color: var(--color-gold-light);
    border: 1px solid var(--color-gold);
    padding: var(--space-lg);
    border-radius: var(--radius-sm);
    line-height: 1.6;
}

.form-feedback__error {
    color: #b5352a;
    background-color: rgba(181, 53, 42, 0.05);
    border: 1px solid rgba(181, 53, 42, 0.2);
    padding: var(--space-lg);
    border-radius: var(--radius-sm);
}


/* ─────────────────────────────────────────────────────────────────
   12. WHATSAPP FAB & SCROLL TOP
───────────────────────────────────────────────────────────────── */

/* WhatsApp FAB */
.whatsapp-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.25rem;
    z-index: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #25D366;
    color: white;
    padding: 0.75rem 1.2rem 0.75rem 0.85rem;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.38);
    text-decoration: none;
    transition:
        transform var(--transition-spring),
        box-shadow var(--transition-base);
}

.whatsapp-fab:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 26px rgba(37, 211, 102, 0.48);
}

.whatsapp-fab__label {
    font-size: var(--fs-sm);
    font-weight: 500;
    white-space: nowrap;
}

/* Bouton retour en haut */
.scroll-top {
    position: fixed;
    bottom: 5rem;
    right: 1.25rem;
    z-index: 800;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-dark);
    color: var(--color-cream);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition:
        background-color var(--transition-base),
        transform var(--transition-spring),
        opacity var(--transition-base);
    opacity: 0;
    border: none;
}

.scroll-top:not([hidden]) { opacity: 1; }

.scroll-top:hover {
    background-color: var(--color-gold-deep);
    transform: translateY(-2px);
}


/* ─────────────────────────────────────────────────────────────────
   13. FOOTER
───────────────────────────────────────────────────────────────── */
.site-footer {
    background-color: var(--color-footer-bg);  /* #1E1510 — plus profond que --color-dark */
    color: var(--color-warm);
}

/* Bande signature */
.footer__hero {
    padding-block: var(--space-xl);
    border-bottom: 1px solid rgba(196, 144, 104, 0.12);
}

.footer__hero-text {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.75rem);
    color: var(--color-cream);
    line-height: 1.3;
    text-align: center;
    font-weight: 400;
}

.footer__hero-text em {
    color: var(--color-gold);
    font-style: italic;
    display: block;
}

/* Corps footer */
.footer__body { padding-block: var(--space-xl); }

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

.footer__col--brand .footer__logo { margin-bottom: var(--space-lg); }
.footer__col--brand .logo__name   { color: var(--color-cream); }

.footer__tagline {
    font-size: var(--fs-sm);
    color: rgba(250, 250, 248, 0.48);
    line-height: 1.72;
    margin-bottom: var(--space-lg);
    font-weight: 300;
}

.footer__col-title {
    font-family: var(--font-body);
    font-size: var(--fs-2xs);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: var(--space-lg);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer__link {
    font-size: var(--fs-sm);
    color: rgba(250, 250, 248, 0.5);
    font-weight: 300;
    transition: color var(--transition-base);
}

.footer__link:hover { color: var(--color-gold); }

.footer__address p {
    font-size: var(--fs-sm);
    color: rgba(250, 250, 248, 0.5);
    margin-bottom: 0.5rem;
    font-weight: 300;
}

/* Réseaux sociaux */
.footer__social {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(196, 144, 104, 0.25);
    border-radius: 50%;
    color: rgba(250, 250, 248, 0.5);
    transition:
        border-color var(--transition-base),
        color var(--transition-base),
        background-color var(--transition-base);
}

.social-link:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
    background-color: rgba(196, 144, 104, 0.08);
}

/* Bas de footer */
.footer__bottom {
    border-top: 1px solid rgba(196, 144, 104, 0.08);
    padding-block: var(--space-md);
}

.footer__bottom .container {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    align-items: center;
    text-align: center;
}

.footer__copy {
    font-size: var(--fs-xs);
    color: rgba(250, 250, 248, 0.28);
    font-weight: 300;
}

.footer__copy strong { color: rgba(250, 250, 248, 0.5); }

.footer__legal { display: flex; gap: var(--space-lg); }

.footer__legal-link {
    font-size: var(--fs-xs);
    color: rgba(250, 250, 248, 0.25);
    transition: color var(--transition-base);
    font-weight: 300;
}

.footer__legal-link:hover { color: var(--color-gold); }


/* ─────────────────────────────────────────────────────────────────
   14. ANIMATIONS
───────────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideInNav {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Classes reveal (IntersectionObserver) */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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


/* ─────────────────────────────────────────────────────────────────
   15. RESPONSIVE — 640px+
───────────────────────────────────────────────────────────────── */
@media (min-width: 640px) {

    :root {
        --container-pad: 1.5rem;
    }

    /* Boutons hero côte à côte */
    .hero__cta-group {
        flex-direction: row;
        justify-content: center;
    }

    /* Image vedette hero : légèrement plus large */
    .hero__featured-img img {
        max-width: 300px;
    }

    /* 2 piliers par ligne */
    .about__pillars {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Gallery 2 colonnes */
    .gallery__grid { column-count: 2; }

    /* Formulaire 2 colonnes */
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer 2 colonnes */
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ─────────────────────────────────────────────────────────────────
   16. RESPONSIVE — DESKTOP 1024px+
───────────────────────────────────────────────────────────────── */
@media (min-width: 1024px) {

    :root {
        --header-h: 76px;
        --container-pad: 2rem;
    }

    /* Typographie desktop */
    h1 { font-size: var(--fs-4xl); }
    h2 { font-size: var(--fs-3xl); }
    h3 { font-size: var(--fs-xl);  }

    /* Header */
    .header__nav     { display: flex; }
    .header__actions { display: flex; }
    .header__burger  { display: none; }

    /* Hero */
    .hero__title  { font-size: var(--fs-hero); }
    .hero__mosaic { display: block; }

    /* Image vedette hero : taille desktop */
    .hero__featured-img img {
        max-width: 400px;
    }

    /* 4 piliers sur 1 ligne */
    .about__pillars { grid-template-columns: repeat(4, 1fr); }

    /* Story 2 colonnes */
    .story__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }

    .story__img-main img      { height: 500px; }
    .story__img-secondary     { display: block; }

    /* Services : layout 2 col, header NOT sticky to avoid gap */
    .services .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
        align-items: start;
    }

    .services__header {
        position: sticky;
        top: calc(var(--header-h) + 1.5rem);
        margin-bottom: 0;
    }

    /* Galerie 3 colonnes */
    .gallery__grid { column-count: 3; }

    /* Avantages 2 colonnes */
    .why-us__grid {
        grid-template-columns: 2fr 3fr;
        gap: var(--space-2xl);
        align-items: start;
    }

    .why-us__content {
        position: sticky;
        top: calc(var(--header-h) + 1.5rem);
    }

    /* Contact 2 colonnes */
    .contact__inner {
        grid-template-columns: 1fr 1fr;
        min-height: 680px;
    }

    .contact__image { display: block; }

    .contact__form-wrap {
        padding: var(--space-2xl) var(--space-xl);
    }

    /* Footer 4 colonnes */
    .footer__grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
        gap: var(--space-xl);
    }

    .footer__bottom .container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}


/* ─────────────────────────────────────────────────────────────────
   17. RESPONSIVE — LARGE 1280px+
───────────────────────────────────────────────────────────────── */
@media (min-width: 1280px) {

    :root { --container-pad: 2.5rem; }

    .hero__title { font-size: 5.25rem; }

    section { padding-block: var(--space-2xl); }

    .about,
    .story,
    .services,
    .gallery,
    .why-us {
        padding-block: var(--space-2xl);
    }
}


/* ─────────────────────────────────────────────────────────────────
   18. ACCESSIBILITÉ & PRINT
───────────────────────────────────────────────────────────────── */

/* Focus visible */
:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero__bg { transform: none !important; }

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

/* Print */
@media print {

    .site-header,
    .whatsapp-fab,
    .scroll-top,
    .hero__mosaic,
    .story__watermark,
    .nav-overlay {
        display: none !important;
    }

    body {
        background: white;
        color: #1A1411;
    }

    .hero { min-height: auto; padding: 2rem; }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.7em;
        color: #666;
    }
}
