/* =========================================================
   MAISON DE LA LITERIE ALGÉRIE — Feuille de style
   ---------------------------------------------------------
   1. Variables (couleurs, typo, espacements)
   2. Base
   3. Boutons & liens
   4. Header & navigation
   5. Hero (accueil + pages)
   6. Sections de l'accueil
   7. Cartes produits & grilles
   8. Page produit
   9. Galerie sur mesure & lightbox
   10. Contact, footer, éléments flottants
   11. Animations
   12. Responsive
========================================================= */

/* ---------- 1. VARIABLES ---------- */
:root {
    /* Couleurs de la marque (logo) */
    --night: #1E1B52;        /* bleu nuit du logo */
    --midnight: #13113A;     /* bleu plus profond */
    --dawn: #F5A623;         /* orange du logo */
    --dawn-deep: #DE8E12;

    /* Thème clair */
    --bg: #F6F5FA;
    --surface: #FFFFFF;
    --surface-2: #EEEDF5;
    --ink: #22203D;
    --muted: #66647F;
    --line: rgba(30, 27, 82, 0.12);
    --heading: #1E1B52;
    --shadow: 0 24px 60px -28px rgba(30, 27, 82, 0.35);
    --shadow-sm: 0 10px 30px -18px rgba(30, 27, 82, 0.35);

    /* Typographie */
    --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

    /* Mise en page */
    --gutter: clamp(20px, 4vw, 48px);
    --max: 1280px;
    --header-h: 84px;
    --r-lg: 28px;
    --r-md: 18px;
    --r-sm: 10px;
    --ease: cubic-bezier(.22, .8, .2, 1);
    --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0F0D2A;
    --surface: #18163F;
    --surface-2: #211E52;
    --ink: #E9E8F5;
    --muted: #A5A3C3;
    --line: rgba(255, 255, 255, 0.10);
    --heading: #FFFFFF;
    --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.7);
    --shadow-sm: 0 10px 30px -18px rgba(0, 0, 0, 0.7);
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color .5s var(--ease), color .5s var(--ease);
}

body.menu-open { overflow: hidden; }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--heading);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.015em;
    font-variation-settings: "opsz" 120;
}

h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.55rem); line-height: 1.2; letter-spacing: 0; font-variation-settings: "opsz" 30; }

p { max-width: 68ch; }

:focus-visible {
    outline: 2px solid var(--dawn);
    outline-offset: 3px;
    border-radius: 6px;
}

::selection { background: var(--dawn); color: var(--night); }

.container {
    width: min(var(--max), 100% - 2 * var(--gutter));
    margin-inline: auto;
}

.section { padding-block: clamp(80px, 11vw, 150px); }

.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 99999;
    background: var(--dawn); color: var(--night); padding: 10px 18px; border-radius: 999px; font-weight: 700;
}
.skip-link:focus { top: 16px; }

/* Petite étiquette au-dessus d'un titre */
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: .92rem;
    font-weight: 600;
    color: var(--dawn-deep);
    margin-bottom: 18px;
}
.kicker::before {
    content: "";
    width: 28px; height: 2px;
    background: currentColor;
    border-radius: 2px;
}
:root[data-theme="dark"] .kicker { color: var(--dawn); }

.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); }

.section-head {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 24px 64px;
    align-items: end;
    margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head p { color: var(--muted); }
.section-head > .head-end { justify-self: end; }
@media (max-width: 900px) { .section-head > .head-end { justify-self: start; } }
.section-head--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }

/* ---------- 3. BOUTONS & LIENS ---------- */
.btn {
    --btn-bg: var(--dawn);
    --btn-fg: var(--night);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .98rem;
    background: var(--btn-bg);
    color: var(--btn-fg);
    overflow: hidden;
    isolation: isolate;
    transition: transform .45s var(--ease), box-shadow .45s var(--ease), color .35s var(--ease);
    will-change: transform;
}
.btn::before {
    content: "";
    position: absolute; inset: 0;
    background: var(--night);
    border-radius: inherit;
    transform: translateY(101%);
    transition: transform .5s var(--ease);
    z-index: -1;
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: #fff; box-shadow: 0 16px 34px -14px rgba(245, 166, 35, .7); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform .45s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--ghost {
    --btn-bg: transparent;
    --btn-fg: var(--heading);
    box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--ghost::before { background: var(--heading); }
.btn--ghost:hover { color: var(--bg); box-shadow: inset 0 0 0 1.5px var(--heading); }

.btn--light { --btn-bg: transparent; --btn-fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45); }
.btn--light::before { background: #fff; }
.btn--light:hover { color: var(--night); box-shadow: inset 0 0 0 1.5px #fff; }

.btn--wa { --btn-bg: #25D366; --btn-fg: #0B3B1E; }

.link-line {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--heading);
    padding-bottom: 4px;
}
.link-line::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 2px; background: var(--dawn);
    transform: scaleX(.35); transform-origin: left;
    transition: transform .5s var(--ease);
}
.link-line:hover::after { transform: scaleX(1); }
.link-line svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.link-line:hover svg { transform: translateX(5px); }

/* ---------- 4. HEADER & NAVIGATION ---------- */
.progress {
    position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 10001;
    background: linear-gradient(90deg, var(--dawn), #FFD27A);
    transform: scaleX(0); transform-origin: left;
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 10000;
    height: var(--header-h);
    transition: transform .55s var(--ease), background-color .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.site-header.is-solid {
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 1px 0 var(--line);
    --header-h: 72px;
}
.site-header.is-hidden { transform: translateY(-100%); }
body.menu-open .site-header { transform: none; }

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo { display: block; flex-shrink: 0; position: relative; z-index: 2; }
.logo img { height: 50px; width: auto; transition: height .4s var(--ease); }
.site-header.is-solid .logo img { height: 42px; }
.logo .logo-light { display: none; }

/* Header transparent au-dessus d'un hero sombre */
.has-dark-hero .site-header:not(.is-solid) .logo .logo-dark { display: none; }
.has-dark-hero .site-header:not(.is-solid) .logo .logo-light { display: block; }
.has-dark-hero .site-header:not(.is-solid) { color: #fff; }
:root[data-theme="dark"] .logo .logo-dark { display: none; }
:root[data-theme="dark"] .logo .logo-light { display: block; }
body.menu-open .site-header { color: var(--ink); }
body.menu-open .logo .logo-dark { display: block !important; }
body.menu-open .logo .logo-light { display: none !important; }
:root[data-theme="dark"] body.menu-open .logo .logo-dark { display: none !important; }
:root[data-theme="dark"] body.menu-open .logo .logo-light { display: block !important; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 14px;
    font-size: .95rem;
    font-weight: 600;
    border-radius: 999px;
    transition: background-color .3s var(--ease);
}
.nav-link:hover, .nav-item:focus-within > .nav-link { background: color-mix(in srgb, currentColor 9%, transparent); }
.nav-link[aria-current="page"] { color: var(--dawn-deep); }
.has-dark-hero .site-header:not(.is-solid) .nav-link[aria-current="page"] { color: var(--dawn); }
.nav-link .chev { width: 12px; height: 12px; transition: transform .35s var(--ease); }
.nav-item:hover .chev, .nav-item:focus-within .chev { transform: rotate(180deg); }

.mega {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    width: 560px;
    display: grid;
    grid-template-columns: 1fr 210px;
    gap: 18px;
    padding: 18px;
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 12px) scale(.98);
    transform-origin: top center;
    transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s .45s;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-item:hover .mega, .nav-item:focus-within .mega {
    opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1);
    transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s;
}
.mega-links { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; align-content: start; }
.mega-links a {
    padding: 9px 12px; border-radius: var(--r-sm); font-size: .93rem; font-weight: 600;
    transition: background-color .25s, color .25s, transform .3s var(--ease);
}
.mega-links a:hover { background: var(--surface-2); color: var(--dawn-deep); transform: translateX(3px); }
:root[data-theme="dark"] .mega-links a:hover { color: var(--dawn); }
.mega-links a.mega-all { grid-column: 1 / -1; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); border-radius: 0; margin-bottom: 4px; }
.mega-card {
    position: relative; border-radius: var(--r-sm); overflow: hidden; min-height: 200px;
    display: flex; align-items: flex-end; padding: 16px; color: #fff; font-weight: 700;
}
.mega-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mega-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(19,17,58,.85)); }
.mega-card span { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; line-height: 1.15; }
.mega-card:hover img { transform: scale(1.08); }

.header-actions { display: flex; align-items: center; gap: 10px; position: relative; z-index: 2; }
.icon-btn {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 22%, transparent);
    transition: background-color .3s, transform .4s var(--ease);
}
.icon-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
.theme-toggle:active svg { transform: rotate(-40deg) scale(.8); }
.theme-toggle svg { transition: transform .5s var(--ease); }
.header-cta { min-height: 46px; padding: 0 22px; font-size: .92rem; }

.menu-toggle { display: none; }
.menu-toggle .bars { position: relative; width: 20px; height: 12px; }
.menu-toggle .bars span {
    position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px;
    transition: transform .45s var(--ease), opacity .3s, top .45s var(--ease);
}
.menu-toggle .bars span:nth-child(1) { top: 0; }
.menu-toggle .bars span:nth-child(2) { top: 10px; }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(2) { top: 5px; transform: rotate(-45deg); }

/* Menu mobile plein écran */
.mobile-menu {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--bg);
    padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
    overflow-y: auto;
    clip-path: circle(0% at calc(100% - 46px) 42px);
    visibility: hidden;
    transition: clip-path .8s var(--ease-in-out), visibility 0s .8s;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 46px) 42px); visibility: visible; transition: clip-path .8s var(--ease-in-out), visibility 0s; }
.m-group { border-bottom: 1px solid var(--line); }
.m-group > a, .m-group > button {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 18px 0; font-family: var(--font-display); font-size: 1.75rem; color: var(--heading); text-align: left;
}
.m-group > button svg { width: 22px; height: 22px; transition: transform .4s var(--ease); }
.m-group > button[aria-expanded="true"] svg { transform: rotate(45deg); }
.m-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.m-sub > div { overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.m-sub.is-open { grid-template-rows: 1fr; }
.m-sub a { padding: 8px 0; color: var(--muted); font-weight: 600; }
.m-sub > div > a:last-child { margin-bottom: 18px; }
.m-actions { display: grid; gap: 12px; margin-top: 32px; }
.mobile-menu .m-group, .mobile-menu .m-actions { opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.mobile-menu.is-open .m-group, .mobile-menu.is-open .m-actions { opacity: 1; transform: none; }
.mobile-menu.is-open > *:nth-child(1) { transition-delay: .18s; }
.mobile-menu.is-open > *:nth-child(2) { transition-delay: .23s; }
.mobile-menu.is-open > *:nth-child(3) { transition-delay: .28s; }
.mobile-menu.is-open > *:nth-child(4) { transition-delay: .33s; }
.mobile-menu.is-open > *:nth-child(5) { transition-delay: .38s; }
.mobile-menu.is-open > *:nth-child(6) { transition-delay: .43s; }
.mobile-menu.is-open > *:nth-child(7) { transition-delay: .48s; }
.mobile-menu.is-open > *:nth-child(8) { transition-delay: .53s; }

/* ---------- 5. HERO ---------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    color: #fff;
    overflow: hidden;
    background: var(--midnight);
    padding-bottom: clamp(56px, 9vh, 110px);
}
.hero-media { position: absolute; inset: -6% 0 0 0; }
.hero-media img {
    width: 100%; height: 100%; object-fit: cover;
    animation: kenburns 22s var(--ease-in-out) infinite alternate;
}
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(100deg, rgba(19,17,58,.92) 0%, rgba(19,17,58,.7) 42%, rgba(19,17,58,.15) 100%),
        linear-gradient(0deg, rgba(19,17,58,.7) 0%, transparent 45%);
}
/* lueur « lever du jour » */
.hero-glow {
    position: absolute; z-index: 1; pointer-events: none;
    width: 70vmax; height: 70vmax; left: -25vmax; bottom: -45vmax;
    background: radial-gradient(circle, rgba(245,166,35,.42) 0%, rgba(245,166,35,.12) 35%, transparent 65%);
    animation: sunrise 3.2s var(--ease) .4s both, breathe 9s ease-in-out 3.6s infinite;
}
.hero-content { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
.hero h1 { color: #fff; font-size: clamp(3rem, 8vw, 7rem); line-height: .98; letter-spacing: -0.03em; font-weight: 300; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; }
.hero-text { margin-top: 28px; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: rgba(255,255,255,.82); max-width: 46ch; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero .kicker { color: var(--dawn); }

.since {
    display: grid; place-items: center; text-align: center;
    width: 168px; height: 168px; border-radius: 50%;
    position: relative;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
}
.since strong { font-family: var(--font-display); font-weight: 300; font-size: 3rem; line-height: 1; display: block; }
.since small { font-size: .82rem; color: rgba(255,255,255,.75); }
.since svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.since text { fill: rgba(255,255,255,.7); font-size: 9.4px; letter-spacing: 2.6px; font-family: var(--font-body); font-weight: 600; }

.scroll-hint {
    position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%);
    width: 26px; height: 42px; border-radius: 20px; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5);
}
.scroll-hint::after {
    content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
    background: var(--dawn); border-radius: 4px; animation: wheel 1.8s var(--ease) infinite;
}

/* Hero des pages intérieures */
.page-hero {
    position: relative;
    min-height: clamp(440px, 68vh, 640px);
    display: flex; align-items: flex-end;
    color: #fff; overflow: hidden;
    background: var(--night);
    padding: calc(var(--header-h) + 60px) 0 clamp(48px, 7vw, 84px);
}
.page-hero-media { position: absolute; inset: -8% 0 0 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 24s var(--ease-in-out) infinite alternate; }
.page-hero::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(95deg, rgba(19,17,58,.92) 0%, rgba(19,17,58,.66) 50%, rgba(19,17,58,.2) 100%);
}
.page-hero .hero-glow { width: 60vmax; height: 60vmax; bottom: -42vmax; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-weight: 300; }
.page-hero p { margin-top: 18px; color: rgba(255,255,255,.82); font-size: clamp(1.02rem, 1.4vw, 1.18rem); max-width: 54ch; }
.page-hero .kicker { color: var(--dawn); }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: rgba(255,255,255,.7); margin-bottom: 26px; }
.crumbs a { transition: color .3s; }
.crumbs a:hover { color: var(--dawn); }
.crumbs li { list-style: none; display: inline-flex; gap: 8px; align-items: center; }
.crumbs li + li::before { content: "/"; opacity: .5; }

/* ---------- 6. SECTIONS DE L'ACCUEIL ---------- */
/* Bande défilante */
.marquee {
    background: var(--night);
    color: #fff;
    overflow: hidden;
    padding: 22px 0;
    border-block: 1px solid rgba(255,255,255,.06);
}
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
    display: inline-flex; align-items: center; gap: 36px; padding-right: 36px;
    font-family: var(--font-display); font-weight: 300; font-size: clamp(1.5rem, 3vw, 2.4rem); white-space: nowrap;
}
.marquee-track span::after {
    content: ""; width: 26px; height: 14px; flex-shrink: 0;
    background: var(--dawn);
    -webkit-mask: url("images/bed-mark.svg") center / contain no-repeat;
            mask: url("images/bed-mark.svg") center / contain no-repeat;
}

/* Engagements + chiffres */
.assurances { padding-block: clamp(70px, 9vw, 120px); }
.assurances-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.assurance { padding: 40px 36px 8px 0; position: relative; }
.assurance + .assurance { padding-left: 36px; border-left: 1px solid var(--line); }
.assurance-num {
    font-family: var(--font-display); font-weight: 300;
    font-size: clamp(3.2rem, 6vw, 5rem); line-height: 1; color: var(--heading);
    display: flex; align-items: baseline; gap: 6px; margin-bottom: 18px;
}
.assurance-num small { font-size: .35em; font-family: var(--font-body); font-weight: 700; color: var(--dawn-deep); }
:root[data-theme="dark"] .assurance-num small { color: var(--dawn); }
.assurance h3 { margin-bottom: 8px; }
.assurance p { color: var(--muted); }

/* Bento des catégories */
.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: clamp(200px, 22vw, 290px);
    gap: 18px;
}
.tile {
    position: relative; overflow: hidden; border-radius: var(--r-lg);
    color: #fff; display: flex; align-items: flex-end;
    padding: clamp(20px, 2.4vw, 32px);
    background: var(--night);
    isolation: isolate;
}
.tile:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.tile:nth-child(2) { grid-column: span 3; }
.tile:nth-child(3) { grid-column: span 3; }
.tile:nth-child(4) { grid-column: span 3; }
.tile:nth-child(5) { grid-column: span 3; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(19,17,58,0) 30%, rgba(19,17,58,.88)); transition: opacity .5s; }
.tile:hover img { transform: scale(1.07); }
.tile-body { width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; }
.tile h3 { color: #fff; font-size: clamp(1.6rem, 2.8vw, 2.5rem); font-weight: 300; }
.tile p { color: rgba(255,255,255,.78); font-size: .95rem; margin-top: 6px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .5s var(--ease); }
.tile:hover p, .tile:focus-visible p { max-height: 80px; opacity: 1; }
.tile-arrow {
    flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%;
    display: grid; place-items: center; background: #fff; color: var(--night);
    transform: rotate(-45deg); transition: transform .55s var(--ease), background-color .3s;
}
.tile-arrow svg { width: 20px; height: 20px; }
.tile:hover .tile-arrow { transform: rotate(0); background: var(--dawn); }

/* Carrousel de produits */
.rail-wrap { position: relative; }
.rail {
    display: grid; grid-auto-flow: column; grid-auto-columns: clamp(270px, 30vw, 380px);
    gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 6px calc((100vw - 100%) / 2) 30px;
    margin-inline: calc((100vw - 100%) / -2);
    scroll-padding-inline: calc((100vw - 100%) / 2);
    scrollbar-width: none; cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging a { pointer-events: none; }
.rail > * { scroll-snap-align: start; }
.rail-controls { display: flex; gap: 10px; justify-self: end; }
.rail-controls button { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--heading); transition: background-color .3s, color .3s, transform .3s var(--ease); }
.rail-controls button:hover { background: var(--heading); color: var(--bg); }
.rail-controls button:active { transform: scale(.92); }
.rail-controls svg { width: 20px; height: 20px; }
.rail-bar { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; margin-top: 8px; }
.rail-bar span { display: block; height: 100%; width: 30%; background: var(--dawn); transform-origin: left; transition: transform .2s linear; }

/* Bloc expertise */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.split-media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; }
.split-media img { width: 100%; height: 118%; object-fit: cover; }
.split-badge {
    position: absolute; left: 22px; bottom: 22px; z-index: 2;
    background: var(--surface); color: var(--ink); border-radius: var(--r-md); padding: 18px 22px;
    display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow);
}
.split-badge b { font-family: var(--font-display); font-weight: 400; font-size: 2rem; color: var(--heading); line-height: 1; }
.split-badge span { font-size: .9rem; color: var(--muted); line-height: 1.35; }
.split-content > p { color: var(--muted); margin-top: 22px; }

.steps { list-style: none; margin: 36px 0 34px; counter-reset: step; display: grid; gap: 4px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li::before {
    content: counter(step);
    width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--surface-2); color: var(--heading); font-weight: 700;
    transition: background-color .4s, color .4s, transform .5s var(--ease);
}
.steps li:hover::before { background: var(--dawn); color: var(--night); transform: scale(1.1); }
.steps strong { display: block; color: var(--heading); font-size: 1.05rem; }
.steps span { color: var(--muted); font-size: .96rem; }

/* Bande magasins */
.band {
    position: relative; overflow: hidden;
    background: var(--night); color: #fff;
    border-radius: clamp(24px, 4vw, 44px);
    padding: clamp(48px, 8vw, 100px);
    display: grid; grid-template-columns: 1.3fr auto; gap: 40px; align-items: center;
    isolation: isolate;
}
.band::before {
    content: ""; position: absolute; z-index: -1;
    width: 640px; height: 640px; right: -180px; top: -260px; border-radius: 50%;
    background: radial-gradient(circle, rgba(245,166,35,.5), transparent 62%);
    animation: drift 12s ease-in-out infinite alternate;
}
.band::after {
    content: ""; position: absolute; z-index: -1; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(90deg, transparent, #000 70%);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%);
}
.band h2 { color: #fff; font-weight: 300; }
.band p { color: rgba(255,255,255,.78); margin-top: 16px; }
.band .kicker { color: var(--dawn); }
.band-actions { display: grid; gap: 12px; }

/* ---------- 7. CARTES PRODUITS & GRILLES ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(18px, 2vw, 28px); }

.card {
    position: relative;
    display: flex; flex-direction: column;
    background: var(--surface);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: 0 0 0 1px var(--line);
    transition: box-shadow .5s var(--ease), transform .6s var(--ease);
    transform-style: preserve-3d;
    --mx: 50%; --my: 50%;
}
.card::before {
    content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(245,166,35,.16), transparent 45%);
    opacity: 0; transition: opacity .4s;
}
.card:hover::before { opacity: 1; }
.card:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--dawn) 55%, transparent), var(--shadow); }
.card-media { position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card-media img { transform: scale(1.06); }
.card-tag {
    position: absolute; top: 16px; left: 16px; z-index: 2;
    padding: 6px 14px; border-radius: 999px; font-size: .78rem; font-weight: 700;
    background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--heading);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.card-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.card-body p { color: var(--muted); font-size: .96rem; }
.card-foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; }
.card-cta {
    display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .93rem; color: var(--heading);
}
.card-cta svg { width: 16px; height: 16px; transition: transform .45s var(--ease); }
.card:hover .card-cta svg { transform: translateX(5px); }
.card-wa { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .93rem; color: #128C4A; }
:root[data-theme="dark"] .card-wa { color: #4ADE80; }
.card-wa svg { width: 18px; height: 18px; }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 4; } /* toute la carte est cliquable */

/* Image manquante → visuel d'attente */
img.is-missing { object-fit: contain !important; background: var(--surface-2); padding: 12%; }

/* ---------- 8. PAGE PRODUIT ---------- */
.pd { padding-block: clamp(56px, 7vw, 100px); }
.pd-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
.pd-gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.pd-stage {
    position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-lg); overflow: hidden;
    background: var(--surface-2); cursor: zoom-in;
}
.pd-stage > img, .pd-stage > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease), transform .9s var(--ease); }
.pd-stage > .is-leaving { opacity: 0; transform: scale(1.04); }
.pd-stage > .is-entering { opacity: 0; transform: scale(.98); }
.pd-zoom {
    position: absolute; right: 16px; bottom: 16px; z-index: 2;
    width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
    background: var(--surface); color: var(--heading); box-shadow: var(--shadow-sm);
    transition: transform .4s var(--ease);
}
.pd-zoom:hover { transform: scale(1.1); }
.pd-zoom svg { width: 20px; height: 20px; }
.pd-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.pd-thumbs button {
    position: relative; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden;
    box-shadow: inset 0 0 0 0 var(--dawn); opacity: .62;
    transition: opacity .35s, transform .4s var(--ease);
}
.pd-thumbs button::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .35s; }
.pd-thumbs button:hover { opacity: 1; transform: translateY(-3px); }
.pd-thumbs button.is-active { opacity: 1; }
.pd-thumbs button.is-active::after { box-shadow: inset 0 0 0 3px var(--dawn); }
.pd-thumbs img, .pd-thumbs video { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; z-index: 1; background: rgba(19,17,58,.25); }
.pd-thumbs .play svg { width: 26px; height: 26px; }

.pd-info h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.pd-intro { font-size: 1.12rem; color: var(--muted); margin-top: 16px; }
.pd-block { margin-top: 38px; padding-top: 30px; border-top: 1px solid var(--line); }
.pd-block > h3 { font-family: var(--font-body); font-size: .95rem; font-weight: 700; color: var(--heading); margin-bottom: 14px; letter-spacing: 0; }
.pd-block > p { color: var(--muted); }

.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.spec { background: var(--surface); border-radius: var(--r-md); padding: 20px; box-shadow: 0 0 0 1px var(--line); transition: transform .45s var(--ease), box-shadow .45s; }
.spec:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }
.spec-label { font-size: .82rem; color: var(--muted); font-weight: 600; }
.spec strong { display: block; color: var(--heading); font-size: 1rem; line-height: 1.35; margin: 4px 0 14px; font-weight: 700; }
.spec-meter { display: flex; align-items: center; gap: 12px; }
.meter { flex: 1; height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.meter span { display: block; height: 100%; width: calc(var(--v) * 20%); border-radius: 6px; background: linear-gradient(90deg, var(--dawn), #FFC961); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) .2s; }
.is-in .meter span, .meter.is-in span { transform: scaleX(1); }
.spec-value { font-weight: 700; font-size: .9rem; color: var(--heading); white-space: nowrap; }
.spec--full { grid-column: 1 / -1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span {
    padding: 8px 15px; border-radius: 999px; font-size: .88rem; font-weight: 600;
    background: var(--surface-2); color: var(--heading);
    transition: background-color .3s, color .3s, transform .35s var(--ease);
}
.chips span:hover { background: var(--dawn); color: var(--night); transform: translateY(-2px); }
.chips .swatch { display: inline-flex; align-items: center; gap: 8px; }
.chips .swatch i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); background: var(--c, conic-gradient(#F5A623, #1E1B52, #C9B79C, #F5A623)); }

.pd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.pd-note { display: flex; gap: 10px; align-items: center; margin-top: 18px; font-size: .9rem; color: var(--muted); }
.pd-note svg { width: 18px; height: 18px; color: var(--dawn-deep); flex-shrink: 0; }

.advice { background: var(--surface); border-block: 1px solid var(--line); }
.advice-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 90px); }
.advice-grid p { color: var(--muted); }
.advice-grid p + p { margin-top: 16px; }

/* Bloc expertise des pages intérieures */
.expertise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.expertise-grid > div > p { color: var(--muted); margin-top: 18px; }
.expertise-grid .link-line { margin-top: 26px; }
.expertise-box { background: var(--night); color: rgba(255,255,255,.82); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); position: relative; overflow: hidden; }
.expertise-box::after { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; bottom: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(245,166,35,.45), transparent 65%); }
.expertise-box h3 { color: #fff; margin-bottom: 12px; }

/* ---------- 9. GALERIE SUR MESURE & LIGHTBOX ---------- */
.creations { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px; align-items: start; }
.creation { border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.creation button { display: block; width: 100%; position: relative; overflow: hidden; cursor: zoom-in; }
.creation img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.creation img { aspect-ratio: 4 / 3.6; object-fit: cover; }
.creation button:hover img { transform: scale(1.06); }
.creation-body { padding: 22px 24px 26px; }
.creation-body p { color: var(--muted); font-size: .95rem; margin-top: 8px; }
.creation-tag { font-size: .8rem; font-weight: 700; color: var(--dawn-deep); }
.gallery-cta { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 32px; border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.gallery-cta p { color: var(--muted); max-width: 60ch; }

.lightbox {
    position: fixed; inset: 0; z-index: 20000;
    display: grid; place-items: center;
    background: rgba(13, 11, 38, .94);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    opacity: 0; visibility: hidden;
    transition: opacity .45s var(--ease), visibility 0s .45s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .45s var(--ease), visibility 0s; }
.lightbox figure { max-width: min(92vw, 1400px); max-height: 84vh; transform: scale(.94); transition: transform .6s var(--ease); }
.lightbox.is-open figure { transform: scale(1); }
.lightbox img, .lightbox video { max-width: 100%; max-height: 84vh; border-radius: var(--r-md); object-fit: contain; }
.lightbox figcaption { color: rgba(255,255,255,.75); text-align: center; margin-top: 14px; font-size: .92rem; }
.lb-btn { position: absolute; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.1); transition: background-color .3s, transform .3s var(--ease); }
.lb-btn:hover { background: var(--dawn); color: var(--night); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: .9rem; font-weight: 600; }

/* ---------- 10. CONTACT, FOOTER, FLOTTANTS ---------- */
.contact-cta { text-align: center; position: relative; overflow: hidden; }
.contact-cta h2 { font-size: clamp(2.4rem, 6vw, 4.8rem); font-weight: 300; max-width: 16ch; margin-inline: auto; }
.contact-cta p { color: var(--muted); margin: 22px auto 0; }
.contact-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 38px; }
.contact-phone { display: inline-block; margin-top: 30px; font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); color: var(--heading); }
.contact-phone:hover { color: var(--dawn-deep); }

.site-footer { background: var(--midnight); color: rgba(255,255,255,.72); padding: clamp(64px, 8vw, 100px) 0 30px; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand img { height: 56px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 32ch; }
.site-footer h4 { font-family: var(--font-body); font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: 16px; letter-spacing: 0; }
.footer-col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-col a { position: relative; transition: color .3s; }
.footer-col a:hover { color: var(--dawn); }
.footer-big {
    font-family: var(--font-display); font-weight: 300; color: rgba(255,255,255,.06);
    font-size: clamp(3.4rem, 13vw, 12rem); line-height: .9; letter-spacing: -0.04em; white-space: nowrap;
    margin-top: 60px; user-select: none; pointer-events: none;
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 20px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); transition: background-color .3s, color .3s, transform .4s var(--ease); }
.socials a:hover { background: var(--dawn); color: var(--night); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }

.fab-wa {
    position: fixed; right: 22px; bottom: 22px; z-index: 9000;
    width: 60px; height: 60px; border-radius: 50%;
    display: grid; place-items: center;
    background: #25D366; color: #fff;
    box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .7);
    transition: transform .45s var(--ease);
}
.fab-wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25D366; z-index: -1; animation: pulse 2.6s ease-out infinite; }
.fab-wa:hover { transform: scale(1.08) rotate(-6deg); }
.fab-wa svg { width: 30px; height: 30px; }
.fab-wa .tip {
    position: absolute; right: 74px; white-space: nowrap; background: var(--surface); color: var(--ink);
    padding: 8px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; box-shadow: var(--shadow-sm);
    opacity: 0; transform: translateX(8px); transition: opacity .35s, transform .45s var(--ease); pointer-events: none;
}
.fab-wa:hover .tip { opacity: 1; transform: none; }

.to-top {
    position: fixed; right: 30px; bottom: 96px; z-index: 9000;
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
    background: var(--surface); color: var(--heading); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm);
    opacity: 0; visibility: hidden; transform: translateY(14px);
    transition: opacity .4s, transform .5s var(--ease), visibility 0s .4s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .4s, transform .5s var(--ease), visibility 0s; }
.to-top svg { width: 18px; height: 18px; }
.to-top:hover { background: var(--dawn); color: var(--night); }

/* Écran de chargement */
.loader {
    position: fixed; inset: 0; z-index: 30000;
    display: grid; place-items: center;
    background: var(--night);
    transition: clip-path 1s var(--ease-in-out);
    clip-path: inset(0 0 0 0);
}
.loader.is-done { clip-path: inset(0 0 100% 0); }
.loader-mark { width: 120px; }
.loader-mark rect { fill: var(--dawn); transform-box: fill-box; transform-origin: bottom; animation: rise .7s var(--ease) both; }
.loader-mark rect:nth-child(2) { animation-delay: .08s; }
.loader-mark rect:nth-child(3) { animation-delay: .16s; }
.loader-mark rect:nth-child(4) { animation-delay: .24s; }
.loader-mark rect:nth-child(5) { animation-delay: .32s; }
.loader-mark rect:nth-child(6) { animation-delay: .40s; }
.loader-bar { width: 140px; height: 2px; margin: 26px auto 0; background: rgba(255,255,255,.15); border-radius: 2px; overflow: hidden; }
.loader-bar span { display: block; height: 100%; background: var(--dawn); animation: load 1.1s var(--ease) forwards; transform-origin: left; }
html.no-loader .loader { display: none; }

/* Transition entre les pages */
.page-veil { position: fixed; inset: 0; z-index: 29999; background: var(--night); transform: translateY(100%); pointer-events: none; transition: transform .6s var(--ease-in-out); }
.page-veil.is-active { transform: translateY(0); }

/* ---------- 11. ANIMATIONS ---------- */
[data-reveal] { opacity: 0; transition: opacity 1s var(--ease), transform 1.1s var(--ease), clip-path 1.2s var(--ease-in-out); transition-delay: var(--d, 0s); }
[data-reveal="up"] { transform: translateY(46px); }
[data-reveal="left"] { transform: translateX(-46px); }
[data-reveal="right"] { transform: translateX(46px); }
[data-reveal="zoom"] { transform: scale(.92); }
[data-reveal="fade"] { transform: none; }
[data-reveal].is-in { opacity: 1; transform: none; }

/* Révélation « drap qui se retire » sur les images */
[data-reveal="curtain"] { opacity: 1; clip-path: inset(0 0 100% 0 round var(--r-lg)); }
[data-reveal="curtain"] img { transform: scale(1.25); transition: transform 1.8s var(--ease); }
[data-reveal="curtain"].is-in { clip-path: inset(0 0 0 0 round var(--r-lg)); }
[data-reveal="curtain"].is-in img { transform: scale(1); }
.tile[data-reveal="curtain"].is-in img { transition: transform 1.4s var(--ease); }

/* Titres mot par mot */
.split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-words .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 55ms + var(--d, 0s)); }
.split-words.is-in .w > span { transform: none; }

.hero h1 .line > span { transform: translateY(110%); animation: lineUp 1.2s var(--ease) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero-anim { opacity: 0; animation: fadeUp 1.1s var(--ease) both; }
html:not(.no-loader) .hero h1 .line > span { animation-delay: 1.15s; }
html:not(.no-loader) .hero h1 .line:nth-child(2) > span { animation-delay: 1.27s; }
.hero-anim { animation-delay: calc(.35s + var(--d, 0s)); }
html:not(.no-loader) .hero-anim { animation-delay: calc(1.5s + var(--d, 0s)); }

@keyframes kenburns { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.16) translate3d(-1.5%, -1.5%, 0); } }
@keyframes sunrise { from { opacity: 0; transform: translateY(30%); } to { opacity: 1; transform: none; } }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .65; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes drift { to { transform: translate(-120px, 80px); } }
@keyframes pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes rise { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
@keyframes load { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes lineUp { from { transform: translateY(110%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
    html { scroll-behavior: auto; }
    [data-reveal], [data-reveal="curtain"] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
    .split-words .w > span { transform: none !important; }
    .loader { display: none; }
}

/* ---------- 12. RESPONSIVE ---------- */
@media (max-width: 1180px) {
    .main-nav, .header-cta { display: none; }
    .menu-toggle { display: grid; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    :root { --header-h: 72px; }
    .logo img { height: 42px; }
    .section-head, .split, .advice-grid, .expertise-grid, .pd-grid { grid-template-columns: 1fr; }
    .hero-grid { grid-template-columns: 1fr; }
    .since { width: 128px; height: 128px; }
    .since strong { font-size: 2.2rem; }
    .assurances-grid { grid-template-columns: 1fr; }
    .assurance, .assurance + .assurance { padding: 30px 0; border-left: 0; border-bottom: 1px solid var(--line); }
    .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; }
    .tile:nth-child(n) { grid-column: span 1; grid-row: span 1; }
    .tile:nth-child(1) { grid-column: span 2; grid-row: span 1; }
    .tile p { max-height: 80px; opacity: 1; }
    .band { grid-template-columns: 1fr; }
    .pd-gallery { position: static; }
    .split-media { aspect-ratio: 4 / 3.5; }
}

@media (max-width: 600px) {
    .bento { grid-template-columns: 1fr; grid-auto-rows: 260px; }
    .tile:nth-child(1) { grid-column: span 1; }
    .specs { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-buttons .btn, .pd-actions .btn, .contact-buttons .btn { width: 100%; }
    .since { display: none; }
    .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
    .lb-prev { left: 18px; } .lb-next { right: 18px; }
    .fab-wa { width: 54px; height: 54px; right: 16px; bottom: 16px; }
    .to-top { right: 21px; bottom: 82px; }
    .m-sub > div { grid-template-columns: 1fr; }
}

/* Laisse l'écran de chargement se retirer avant d'animer le titre */
html:not(.no-loader) .page-hero h1 { --d: 1.1s; }
