/* L'Étage Studio : base, header, footer. Les sections de page sont construites dans Elementor. */
:root {
	--le-ink: #1d1d1f; --le-paper: #faf8f5; --le-sand: #efe8df; --le-wood: #94623c;
	--le-muted: #6e6e73; --le-line: #e3ddd5; --le-white: #fff;
	--le-ease: cubic-bezier(.16, 1, .3, 1);
}
html { scroll-behavior: smooth; }
body { background: var(--le-paper); color: var(--le-ink); font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.site-main, .page-content { max-width: none; }

/* Logo */
.le-logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--le-ink); position: relative; }
.le-logo__svg { display: block; line-height: 0; }
.le-logo__svg svg { height: 42px; width: auto; display: block; }
.le-logo__svg--light { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; }
.le-logo__svg--dark { transition: opacity .35s; }
.le-logo--footer .le-logo__svg svg { height: 64px; }
@media (max-width: 860px) { .le-logo__svg svg { height: 34px; } }

/* Header transparent sur la vidéo d'accueil (style rooom), opaque au scroll */
.home .le-header { position: fixed; left: 0; right: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.home .le-header:not(.is-scrolled):not(.is-open) .le-logo__svg--light { opacity: 1; }
.home .le-header:not(.is-scrolled):not(.is-open) .le-logo__svg--dark { opacity: 0; }
.home .le-header:not(.is-scrolled):not(.is-open) .le-nav__list a { color: rgba(255,255,255,.85); }
.home .le-header:not(.is-scrolled):not(.is-open) .le-nav__list a:hover { color: #fff; }
.home .le-header:not(.is-scrolled):not(.is-open) .le-header__cta { background: #fff; color: var(--le-ink); }
.home .le-header:not(.is-scrolled):not(.is-open) .le-burger span { background: #fff; }
.home .le-header.is-scrolled, .home .le-header.is-open { background: rgba(250, 248, 245, .82); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); }
@media (min-width: 861px) { .home .le-header:not(.is-scrolled) .le-nav { background: transparent; } }

/* Header */
.le-header { position: sticky; top: 0; z-index: 100; background: rgba(250, 248, 245, .78); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.le-header.is-scrolled { border-bottom-color: var(--le-line); }
.admin-bar .le-header { top: 32px; }
.le-header__inner { max-width: 1200px; margin: 0 auto; height: 64px; padding: 0 24px; display: flex; align-items: center; gap: 32px; }
.le-nav { margin-left: auto; }
.le-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.le-nav__list a { text-decoration: none; font-size: 14px; color: var(--le-muted); transition: color .2s; }
.le-nav__list a:hover, .le-nav__list .current-menu-item a { color: var(--le-ink); }
.le-header__cta { text-decoration: none; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; color: var(--le-white); background: var(--le-ink); padding: 9px 20px; border-radius: 999px; transition: background .2s; }
.le-header__cta:hover { background: #3a3a3c; color: var(--le-white); }
.le-burger { display: none; margin-left: 4px; width: 40px; height: 40px; border: 0; background: transparent; padding: 0; position: relative; cursor: pointer; }
.le-burger span { position: absolute; left: 11px; right: 11px; height: 1.6px; background: var(--le-ink); transition: transform .35s var(--le-ease); }
.le-burger span:first-child { top: 16px; } .le-burger span:last-child { top: 23px; }

@media (max-width: 860px) {
	.le-header__inner { gap: 12px; height: 60px; padding: 0 16px; }
	.le-header__cta { margin-left: auto; padding: 8px 16px; }
	.le-burger { display: block; }
	.le-nav { position: absolute; top: 100%; left: 0; right: 0; margin: 0; background: rgba(250, 248, 245, .97); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-bottom: 1px solid var(--le-line); max-height: 0; overflow: hidden; transition: max-height .45s var(--le-ease); }
	.le-nav__list { flex-direction: column; gap: 0; padding: 8px 16px 20px; }
	.le-nav__list a { display: block; padding: 14px 4px; font-size: 22px; font-family: "Inter Tight", sans-serif; font-weight: 600; letter-spacing: -0.02em; color: var(--le-ink); border-bottom: 1px solid var(--le-line); }
	.le-header.is-open .le-nav { max-height: 360px; }
	.le-header.is-open .le-burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
	.le-header.is-open .le-burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
}
@media (max-width: 782px) { .admin-bar .le-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .le-header { top: 0; } }

/* Footer */
.le-footer { background: var(--le-white); border-top: 1px solid var(--le-line); color: var(--le-ink); font-size: 14px; }
.le-footer__inner { max-width: 1200px; margin: 0 auto; padding: 72px 24px 56px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.le-footer__pitch { color: var(--le-muted); line-height: 1.6; margin: 20px 0 24px; max-width: 320px; }
.le-footer__infos { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.le-footer__infos li { display: flex; align-items: center; gap: 10px; }
.le-footer__infos svg { width: 18px; height: 18px; flex: none; }
.le-footer__infos a, .le-footer__col a { text-decoration: none; }
.le-footer__infos a:hover, .le-footer__col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.le-footer__title { font-weight: 600; margin: 0 0 16px; }
.le-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.le-footer__col li a { color: var(--le-ink); }
.le-footer__small { color: var(--le-muted); line-height: 1.6; margin: 0 0 18px; }
.le-footer__btn { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; display: inline-block; background: var(--le-ink); color: var(--le-white) !important; border-radius: 999px; padding: 12px 22px; font-weight: 500; text-decoration: none !important; }
.le-footer__btn:hover { background: #3a3a3c; }
.le-footer__bottom { max-width: 1200px; margin: 0 auto; padding: 20px 24px 28px; display: flex; gap: 24px; align-items: center; border-top: 1px solid var(--le-line); color: var(--le-muted); font-size: 13px; }
.le-footer__bottom a { color: var(--le-muted); text-decoration: none; }
.le-footer__bottom a:hover { color: var(--le-ink); }
.le-footer__top { color: var(--le-ink) !important; font-weight: 500; margin-right: auto; }
@media (max-width: 960px) { .le-footer__inner { grid-template-columns: 1fr 1fr; } .le-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .le-footer__inner { grid-template-columns: 1fr; padding: 56px 20px 40px; gap: 32px; } .le-footer__bottom { flex-wrap: wrap; gap: 10px 20px; padding: 20px; } .le-footer__top { width: 100%; } }

/* Hero : image plein cadre avec dégradé, texte centré en bas (style tuile) */
.le-tile-media img { transition: transform 1.2s var(--le-ease); }
.le-tile:hover .le-tile-media img { transform: scale(1.03); }

/* Révélation douce au scroll (le contenu reste visible sans JS) */
.js .le-reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--le-ease), transform .9s var(--le-ease); }
.js .le-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .le-reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Mélange de polices : un mot en serif italique dans les titres (balise <em>) */
.elementor h1 em, .elementor h2 em, .elementor h3 em { font-style: normal; color: inherit; opacity: .55; }

/* Formulaire de devis */
.le-form { display: grid; gap: 18px; font-family: "Inter", sans-serif; }
.le-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .le-form__row { grid-template-columns: 1fr; } }
.le-field { display: grid; gap: 8px; margin: 0; border: 0; padding: 0; min-width: 0; }
.le-field > span, .le-field legend { font-size: 13px; font-weight: 500; color: var(--le-ink); padding: 0; }
.le-field input, .le-field select, .le-field textarea { width: 100%; font: inherit; font-size: 15px; color: var(--le-ink); background: var(--le-paper); border: 1px solid var(--le-line); border-radius: 12px; padding: 13px 14px; transition: border-color .2s, box-shadow .2s, background .2s; -webkit-appearance: none; appearance: none; }
.le-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%231d1d1f' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.le-field input:focus, .le-field select:focus, .le-field textarea:focus { outline: none; border-color: var(--le-ink); background: #fff; box-shadow: 0 0 0 3px rgba(29, 29, 31, .08); }
.le-field textarea { resize: vertical; min-height: 130px; }
.le-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.le-chips legend { margin-bottom: 8px; width: 100%; }
.le-chip { cursor: pointer; }
.le-chip input { position: absolute; opacity: 0; pointer-events: none; }
.le-chip span { display: inline-block; font-size: 14px; padding: 9px 16px; border: 1px solid var(--le-line); border-radius: 999px; background: var(--le-paper); transition: all .2s; }
.le-chip input:checked + span { background: var(--le-ink); border-color: var(--le-ink); color: #fff; }
.le-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(148, 98, 60, .35); }
.le-form__submit { justify-self: start; font: inherit; font-size: 15px; font-weight: 500; color: #fff; background: var(--le-ink); border: 0; border-radius: 999px; padding: 15px 30px; cursor: pointer; transition: background .2s, transform .2s; }
.le-form__submit:hover { background: #3a3a3c; transform: translateY(-1px); }
.le-form__legal { font-size: 12px; color: var(--le-muted); margin: 0; }
.le-form__error { margin: 0; padding: 12px 14px; border-radius: 12px; background: #fbeee8; color: #8a3b1c; font-size: 14px; }
.le-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.le-form__done { padding: 24px 0; }
.le-form__done-title { font-family: "Inter Tight", sans-serif; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 8px; color: var(--le-ink); }
.le-form__done p { color: var(--le-muted); }

/* Vidéo de fond : remplit la tuile */
.le-hero-video video, video.le-cover { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ================= Animations façon Apple (assets/letage-motion.js) =================
   Rien n'est masqué sans la classe html.le-motion (posée en tête par JS). */
.le-motion .lm-tile__media { will-change: transform; transform: scale(1.14); transform-origin: 50% 50%; }
.le-motion .lm-tile:not(.lm-hero) { clip-path: inset(calc((1 - var(--lm-open, 1)) * 5%) calc((1 - var(--lm-open, 1)) * 5%) round calc(8px + (1 - var(--lm-open, 1)) * 36px)); }
.le-motion .e-grid-base > .lm-tile { transform: perspective(1200px) rotateX(var(--lm-rx, 0deg)) rotateY(var(--lm-ry, 0deg)); transition: transform .6s var(--le-ease); }
.le-motion .e-grid-base > .lm-tile:hover .lm-tile__media { filter: brightness(1.06); }
.le-motion .lm-tile__media { transition: filter .6s var(--le-ease); }

/* Hero : la vidéo s'assombrit en douceur quand on défile */
.le-motion .lm-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: #000; opacity: calc(var(--lm-p, 0) * .55); }
.le-motion .lm-hero > :last-child { will-change: transform, opacity; }
.lm-word-o { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.le-motion .lm-word { display: inline-block; transform: translate3d(0, 105%, 0) rotate(4deg); transform-origin: 0 100%; opacity: 0; transition: transform 1.1s var(--le-ease), opacity .8s var(--le-ease); }
.le-motion .lm-hero.is-in .lm-word { transform: none; opacity: 1; }
.le-motion .lm-fade { opacity: 0; transform: translate3d(0, 18px, 0); filter: blur(6px); transition: opacity 1s var(--le-ease), transform 1s var(--le-ease), filter 1s var(--le-ease); }
.le-motion .lm-hero.is-in .lm-fade { opacity: 1; transform: none; filter: none; }

/* Révélations */
.le-motion .lm-r { transition-delay: var(--lm-d, 0s); }
.le-motion .lm-r--up { opacity: 0; transform: translate3d(0, 28px, 0); filter: blur(4px); transition-property: opacity, transform, filter; transition-duration: 1s; transition-timing-function: var(--le-ease); }
.le-motion .lm-r--title { opacity: 0; transform: translate3d(0, 44px, 0) scale(.985); filter: blur(8px); transition-property: opacity, transform, filter; transition-duration: 1.2s; transition-timing-function: var(--le-ease); }
.le-motion .lm-r--img { opacity: 0; transform: scale(1.06); clip-path: inset(12% 0 0 0); transition-property: opacity, transform, clip-path; transition-duration: 1.3s; transition-timing-function: var(--le-ease); }
.le-motion .lm-r--frame { clip-path: inset(14% 0 0 0 round 8px); transition: clip-path 1.3s var(--le-ease) var(--lm-d, 0s); }
.le-motion .lm-r--frame > img { transform: scale(1.14); transition: transform 1.8s var(--le-ease) var(--lm-d, 0s); }
.le-motion .lm-r--frame.is-in { clip-path: inset(0 0 0 0 round 8px); }
.le-motion .lm-r--frame.is-in > img { transform: scale(1); }
.le-motion .lm-r--tile { opacity: 0; translate: 0 60px; transition: opacity 1.1s var(--le-ease) var(--lm-d, 0s), translate 1.2s var(--le-ease) var(--lm-d, 0s), transform .6s var(--le-ease); }
.le-motion .lm-r.is-in { opacity: 1; transform: none; filter: none; clip-path: inset(0 0 0 0); translate: 0 0; }
.le-motion .lm-r--tile.is-in { transform: perspective(1200px) rotateX(var(--lm-rx, 0deg)) rotateY(var(--lm-ry, 0deg)); }

/* Texte qui s'allume mot à mot */
.lm-glow-o { display: inline; }
.le-motion .lm-glow { opacity: .18; transition: opacity .5s ease; }
.le-motion .lm-glow.is-lit { opacity: 1; }

/* Boutons : réaction au survol */
a[class*="le-btn"], .e-button-base { transition: transform .45s var(--le-ease), background-color .3s, color .3s, box-shadow .45s var(--le-ease) !important; }
a[class*="le-btn"]:hover, .e-button-base:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 10px 30px -12px rgba(0,0,0,.35); }

@media (prefers-reduced-motion: reduce) {
	.le-motion .lm-r, .le-motion .lm-word, .le-motion .lm-fade, .le-motion .lm-glow { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; translate: none !important; }
	.le-motion .lm-tile__media { transform: none !important; }
}
