/**
 * editorial.css — style « Éditorial » des pages publiques (accueil, agences, galerie,
 * fiche d'un bien). Ivoire, encre, laiton ; titres en Cormorant Garamond, texte en
 * Manrope (chargés par chaque page, pas d'@import).
 * Conception : docs/superpowers/specs/2026-10-24-vitrine-galerie-accueil-design.md §3.
 */
:root {
    --ivoire: #F4F1EA;
    --ivoire-2: #EDE8DD;
    --encre: #1B1A17;
    --encre-2: #2B2924;
    --laiton: #8A6D43;
    --sable: #D9D1C1;
    --gris-texte: #5D584F;
    --gris-doux: #7B766C;
    --blanc: #FFFFFF;
    --ok: #2F6B45;
    --alerte: #9B3B2B;
    --serif: "Cormorant Garamond", "Times New Roman", serif;
    --sans: "Manrope", "Segoe UI", system-ui, sans-serif;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ombre: 0 18px 40px rgba(27, 26, 23, 0.10);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }

body {
    margin: 0;
    background: var(--ivoire);
    color: var(--encre);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--encre); color: var(--ivoire); }

:focus-visible { outline: 2px solid var(--laiton); outline-offset: 3px; }

.ed-skip {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    background: var(--encre); color: var(--ivoire); padding: 10px 14px; border-radius: 4px; text-decoration: none;
}
.ed-skip:focus { top: 12px; }

.ed-visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Mise en page ---------- */
.ed-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .ed-wrap { padding: 0 16px; } }

.ed-section { padding: 96px 0; }
@media (max-width: 640px) { .ed-section { padding: 64px 0; } }

.ed-entete { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }

/* ---------- Typographie ---------- */
.ed-kick {
    display: inline-block;
    font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--laiton);
}
.ed-h1, .ed-h2, .ed-h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
.ed-h1 { font-size: clamp(40px, 6vw, 74px); line-height: 1.02; }
.ed-h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.06; }
.ed-h3 { font-size: 24px; line-height: 1.15; font-weight: 600; }
.ed-lead { font-size: 17px; color: var(--gris-texte); max-width: 44ch; margin: 0; text-wrap: pretty; }
.ed-serif-prix { font-family: var(--serif); font-weight: 600; }

/* ---------- Boutons et liens ---------- */
.ed-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 12px 20px;
    border: 1px solid var(--encre); border-radius: 4px;
    font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
    background: transparent; color: var(--encre);
    transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), border-color 180ms var(--ease-out), transform 120ms var(--ease-out);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.ed-btn:active { transform: scale(0.98); }
.ed-btn--plein { background: var(--encre); color: var(--ivoire); }
.ed-btn--clair { background: var(--ivoire); color: var(--encre); border-color: var(--ivoire); }
.ed-btn--clair-contour { border-color: var(--ivoire); color: var(--ivoire); }
.ed-btn[disabled], .ed-btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
@media (hover: hover) {
    .ed-btn--plein:hover { background: var(--encre-2); border-color: var(--encre-2); }
    .ed-btn--contour:hover { background: var(--encre); color: var(--ivoire); }
    .ed-btn--clair:hover { background: var(--blanc); border-color: var(--blanc); }
    .ed-btn--clair-contour:hover { background: var(--ivoire); color: var(--encre); }
}

.ed-lien {
    font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap;
    border-bottom: 1px solid currentColor; padding-bottom: 2px;
    transition: color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}
@media (hover: hover) { .ed-lien:hover { color: var(--laiton); } }

/* ---------- Barre de navigation ---------- */
.ed-nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(244, 241, 234, 0.92);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--sable);
}
.ed-nav-inner { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.ed-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: 0.02em; text-decoration: none; margin-right: auto; }
.ed-logo img { width: 28px; height: 28px; border-radius: 4px; }
.ed-menu { display: flex; align-items: center; gap: 26px; }
.ed-menu a { text-decoration: none; font-size: 14px; }
.ed-menu a:not(.ed-btn) { position: relative; padding: 6px 0; }
.ed-menu a:not(.ed-btn)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
    transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--ease-out);
}
@media (hover: hover) { .ed-menu a:not(.ed-btn):hover::after { transform: scaleX(1); } }
.ed-menu a[aria-current="page"]::after { transform: scaleX(1); }
.ed-menu .ed-btn { min-height: 40px; padding: 8px 14px; font-size: 13px; }
.ed-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--encre); border-radius: 4px; background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.ed-burger span, .ed-burger span::before, .ed-burger span::after { display: block; width: 18px; height: 1.5px; background: var(--encre); position: relative; transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out); }
.ed-burger span::before, .ed-burger span::after { content: ""; position: absolute; left: 0; }
.ed-burger span::before { top: -6px; }
.ed-burger span::after { top: 6px; }
.ed-burger[aria-expanded="true"] span { background: transparent; }
.ed-burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.ed-burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
    .ed-burger { display: inline-flex; }
    .ed-menu {
        position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--ivoire); border-bottom: 1px solid var(--sable);
        padding: 8px 16px 20px;
        visibility: hidden; opacity: 0; transform: translateY(-6px);
        transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s linear 200ms;
    }
    .ed-menu.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
    .ed-menu a:not(.ed-btn) { padding: 14px 0; border-bottom: 1px solid var(--sable); font-size: 16px; }
    .ed-menu a:not(.ed-btn)::after { display: none; }
    .ed-menu .ed-btn { margin-top: 12px; min-height: 46px; }
}

/* ---------- Pied de page ---------- */
.ed-footer { background: var(--encre); color: #B9B1A3; padding: 64px 0 32px; font-size: 14px; }
.ed-footer-grille { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.ed-footer h2 { font-family: var(--sans); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ivoire); margin: 0 0 12px; font-weight: 600; }
.ed-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ed-footer a { text-decoration: none; }
@media (hover: hover) { .ed-footer a:hover { color: var(--ivoire); } }
.ed-footer-marque { font-family: var(--serif); font-size: 26px; color: var(--ivoire); margin: 0 0 8px; }
.ed-footer-bas { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(244, 241, 234, 0.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; }
@media (max-width: 900px) { .ed-footer-grille { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ed-footer-grille { grid-template-columns: 1fr; } }

/* ---------- Vidéo dans un cadre de téléphone (editorial.js, [data-video]) ---------- */
.tel { margin: 0; display: grid; justify-items: center; align-content: center; gap: 16px; }
.tel-cadre {
    position: relative; width: min(290px, 72vw); aspect-ratio: 528 / 944;
    padding: 9px; border-radius: 36px; background: #0E0D0B;
    border: 1px solid rgba(244, 241, 234, 0.16);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.tel-cadre::after {
    content: ""; position: absolute; top: 9px; left: 50%; z-index: 1;
    width: 30%; height: 16px; transform: translateX(-50%);
    background: #0E0D0B; border-radius: 0 0 12px 12px;
}
.tel-video { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 28px; background: #000; }
/* Vidéo paysage (16:9) : cadre d'écran sans encoche, image entière. */
.tel--paysage { width: 100%; }
.tel--paysage .tel-cadre { width: 100%; aspect-ratio: auto; padding: 6px; border-radius: 12px; }
.tel--paysage .tel-cadre::after { display: none; }
.tel--paysage .tel-video { height: auto; aspect-ratio: 16 / 9; border-radius: 7px; }
.tel-son {
    min-height: 38px; padding: 8px 14px; border-radius: 4px; cursor: pointer;
    border: 1px solid rgba(244, 241, 234, 0.35); background: transparent; color: var(--ivoire);
    font-family: var(--sans); font-size: 13px; font-weight: 600;
    transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}
.tel-son[aria-pressed="true"] { background: var(--ivoire); color: var(--encre); border-color: var(--ivoire); }
@media (hover: hover) { .tel-son:hover { border-color: var(--ivoire); } }

/* ---------- Apparition des sections (une seule fois, sobre) ---------- */
.ed-js .ed-reveal { opacity: 0; transform: translateY(12px); transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out); }
.ed-js .ed-reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Formulaires ---------- */
.ed-champ { display: grid; gap: 6px; }
.ed-champ label, .ed-label { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gris-doux); }
.ed-input {
    width: 100%; min-height: 46px; padding: 10px 12px;
    border: 1px solid #C9C2B4; border-radius: 4px; background: var(--blanc);
    font-size: 16px; /* 16 px : pas de zoom automatique sur iPhone */
    transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.ed-input:focus { outline: none; border-color: var(--encre); box-shadow: 0 0 0 3px rgba(138, 109, 67, 0.22); }
textarea.ed-input { min-height: 96px; resize: vertical; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
    .ed-js .ed-reveal { opacity: 1; transform: none; }
}
