/* INTERIO — système visuel commun à toutes les pages, modes clair et sombre */

/* ---------- Polices (hébergées sur le site) ---------- */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/archivo-latin-ext-0.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/archivo-latin-1.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/archivo-latin-ext-0.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/archivo-latin-1.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/archivo-latin-ext-0.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/archivo-latin-1.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/archivo-latin-ext-0.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/archivo-latin-1.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-ext-2.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-3.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-ext-4.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-5.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root,
[data-theme="light"] {
  color-scheme: light;
  --bg: #F4F4F2;
  --surface: #EAEAE6;
  --surface-2: #E1E0DB;
  --line: #D6D5D0;
  --border-strong: #6E6D69;
  --text: #161616;
  --muted: #5C5C58;
  --accent: #FF8C00;
  --accent-text: #A65300;
  --on-accent: #161616;
  --focus: #161616;
  --viewer-bg: #ECECE9;
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0F0F0E;
  --surface: #181817;
  --surface-2: #1F1F1E;
  --line: #2C2C2A;
  --border-strong: #6E6D69;
  --text: #F2F1EE;
  --muted: #A3A29D;
  --accent: #FF8C00;
  --accent-text: #FF8C00;
  --on-accent: #0F0F0E;
  --focus: #FF8C00;
  --viewer-bg: #0A0A09;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0F0F0E;
    --surface: #181817;
    --surface-2: #1F1F1E;
    --line: #2C2C2A;
    --text: #F2F1EE;
    --muted: #A3A29D;
    --accent-text: #FF8C00;
    --on-accent: #0F0F0E;
    --focus: #FF8C00;
    --viewer-bg: #0A0A09;
  }
}
:root {
  --sans: 'Archivo', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --media-text: #F2F1EE;
  --media-muted: #D9D8D3;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s, color .3s;
}
body.viewer-open { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-text); }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: 1360px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.label { margin: 0; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; }
.icon-fill { fill: currentColor; stroke: none; }
.skip-link { position: absolute; left: 16px; top: -64px; z-index: 200; padding: 12px 16px; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.skip-link:focus { top: 16px; }

/* ---------- Boutons et liens ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; font-size: 15px; font-weight: 600; border: 0; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-sm { height: 44px; padding: 0 20px; font-size: 14px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--text); color: var(--bg); }
.btn-ghost { background: transparent; border: 1px solid var(--border-strong); color: var(--text); font-weight: 500; }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }
.btn-on-media { background: transparent; border: 1px solid rgba(242, 241, 238, .6); color: var(--media-text); font-weight: 500; }
.btn-on-media:hover { border-color: var(--media-text); color: var(--media-text); }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; background: transparent; border: 1px solid var(--border-strong); color: var(--text); cursor: pointer; transition: border-color .2s, color .2s; }
.icon-btn:hover { border-color: var(--text); color: var(--text); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 500; color: var(--accent-text); }
.link-arrow:hover { color: var(--text); }

/* ---------- En-tête ---------- */
.site-header { position: relative; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); transition: background-color .3s; }
.site-header .wrap { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-weight: 600; font-size: 19px; letter-spacing: .34em; }
.main-nav { display: flex; gap: 32px; font-size: 15px; }
.main-nav a[aria-current="page"] { font-weight: 500; padding-bottom: 6px; box-shadow: inset 0 -2px 0 var(--accent); }
/* sélecteur de langue unique « FR · EN · DE » : la langue affichée en gras, les deux autres en liens */
.lang-toggle { display: inline-flex; align-items: center; gap: 2px; height: 44px; padding: 0 8px; border: 1px solid var(--border-strong); font-family: var(--mono); font-size: 13px; letter-spacing: .04em; color: var(--muted); transition: border-color .2s; }
.lang-toggle a, .lang-toggle strong { display: inline-flex; align-items: center; height: 100%; padding: 0 4px; }
.lang-toggle strong { font-weight: 600; color: var(--text); }
.lang-toggle a { transition: color .2s; }
.lang-toggle a:hover { color: var(--text); }
.lang-toggle .lang-sep { opacity: .6; }
.lang-toggle:hover, .lang-toggle:focus-within { border-color: var(--text); }
.main-nav .nav-lang { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.menu-btn { display: none; }

/* ---------- Hero de l’accueil : vidéo en fond sur toute la largeur, texte centré par-dessus ----------
   Comme sur le site d’origine : titre en capitales espacées, puis « France | International », la citation et les boutons,
   qui apparaissent l’un après l’autre à l’arrivée sur la page pendant que la vidéo sort du noir.
   Hauteur = celle de l’écran (sous l’en-tête), sans jamais dépasser le ratio de la vidéo. */
.hero { position: relative; overflow: hidden; background: #000; color: var(--media-text); }
.hero-media { display: block; width: 100%; height: min(calc(100vh - 76px), calc(100vw * 1866 / 3126)); height: min(calc(100svh - 76px), calc(100vw * 1866 / 3126)); min-height: 520px; object-fit: cover; object-position: 50% 15%; animation: hero-fade 1.4s ease both; }
.hero-overlay { position: absolute; inset: 0; display: flex; align-items: center; background: radial-gradient(ellipse 70% 70% at 50% 55%, rgba(10, 10, 9, .64) 0%, rgba(10, 10, 9, .4) 100%); }
.hero-overlay .wrap { width: 100%; padding-top: 32px; padding-bottom: 32px; }
.hero .hero-copy { max-width: 1080px; margin: 0 auto; text-align: center; }
.hero-title { margin: 0; padding-left: .12em; font-size: clamp(34px, 5vw, 76px); line-height: 1.1; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hero-line { display: block; }
.hero-tag { margin: 28px 0 0; padding-left: .32em; font-size: clamp(14px, 1.5vw, 22px); font-weight: 600; letter-spacing: .32em; text-transform: uppercase; }
.hero-tag span { margin: 0 .4em; opacity: .5; }
.hero-lead { margin: 20px 0 0; max-width: 620px; font-size: 18px; line-height: 1.5; color: var(--muted); }
.hero .hero-lead { margin: 22px auto 0; max-width: 760px; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.6; letter-spacing: .04em; color: var(--media-text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .hero-actions { justify-content: center; gap: 20px; margin-top: 44px; }
.btn-hero { min-width: 220px; height: 56px; padding: 0 40px; background: rgba(255, 255, 255, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); border: 1px solid var(--accent); color: #161616; font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; }
.btn-hero:hover, .btn-hero:focus-visible { background: #161616; color: #fff; }

/* entrée : chaque ligne monte à son tour */
@keyframes hero-fade { from { opacity: .01; } to { opacity: 1; } }
@keyframes hero-rise { from { opacity: .01; transform: translateY(36px); } to { opacity: 1; transform: none; } }
.hero-line, .hero-tag, .hero .hero-lead, .hero .hero-actions { opacity: .01; animation: hero-rise .9s cubic-bezier(.22, 1, .36, 1) forwards; }
.hero-line:nth-child(1) { animation-delay: .4s; }
.hero-line:nth-child(2) { animation-delay: .6s; }
.hero-line:nth-child(3) { animation-delay: .8s; }
.hero-tag { animation-delay: 1.1s; }
.hero .hero-lead { animation-delay: 1.35s; }
.hero .hero-actions { animation-delay: 1.6s; }


/* ---------- Barre des disciplines ---------- */
.disciplines { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); transition: background-color .3s; }
.disciplines ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-left: 1px solid var(--line); }
.disciplines a { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-right: 1px solid var(--line); transition: background .2s; }
.disciplines a:hover { background: var(--surface); color: var(--text); }
.disciplines a.is-active { background: var(--surface); box-shadow: inset 0 -2px 0 var(--accent); }
.d-num { font-family: var(--mono); font-size: 12px; color: var(--accent-text); }
.d-name { font-size: 17px; font-weight: 500; }
.d-count { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- Sections : numéro + titre à gauche, slogan puis action à droite, tout sur la même ligne de base ---------- */
.section { padding-top: 112px; scroll-margin-top: 88px; }
.sec-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  grid-template-areas: "num title slogan action";
  align-items: baseline;
  padding-bottom: 24px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.sec-titles { display: contents; }
.sec-head[id] { scroll-margin-top: 88px; }
.sec-num { grid-area: num; margin-right: 20px; font-family: var(--mono); font-size: 13px; color: var(--accent-text); }
.sec-head h2 { grid-area: title; margin: 0; font-size: 44px; line-height: 1.05; font-weight: 500; letter-spacing: -.025em; }
.sec-slogan { grid-area: slogan; max-width: 560px; margin: 0 0 0 32px; font-size: 16px; line-height: 1.5; color: var(--muted); text-align: right; }
.sec-action { grid-area: action; margin-left: 28px; }
.marquee-toggle.sec-action { align-self: center; }

/* ---------- Rangées justifiées : chaque image garde son ratio, même hauteur par rangée ---------- */
.rows { display: flex; flex-direction: column; gap: 40px; }
.row { display: flex; gap: 24px; align-items: flex-start; }
.row > .tile { flex: var(--r) 1 0%; min-width: 0; }

/* ---------- Vignettes ---------- */
.tile { display: flex; flex-direction: column; width: 100%; padding: 0; background: none; border: 0; color: var(--text); text-align: left; cursor: pointer; }
.tile:hover { color: var(--text); }
.tile-media { position: relative; display: block; width: 100%; overflow: hidden; aspect-ratio: var(--r, .8); background: var(--surface-2); }
.tile-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.tile:hover .tile-media img { transform: scale(1.03); }
/* diaporama des vignettes : chaque photo entière (ratio respecté), fondu enchaîné */
.tile-media img.slide, .tile-media img.slide-top { object-fit: contain; }
/* vignettes en diaporama : pas de fond gris autour d’une photo d’un autre format ; fondu croisé entre deux photos */
.tile-media.has-slides { background: transparent; }
.tile-media img.slide { transition: opacity .9s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.tile-media img.slide.is-out { opacity: 0; }
.tile-media img.slide.no-fade { transition: none; }
.tile-media img.slide-top { opacity: 0; pointer-events: none; transition: opacity .9s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.tile-media img.slide-top.is-visible { opacity: 1; }
.tile-more { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; height: 36px; padding: 0 14px; background: var(--bg); color: var(--text); font-size: 13px; font-weight: 500; opacity: 0; transition: opacity .3s; }
.tile:hover .tile-more, .tile:focus-visible .tile-more { opacity: 1; }
.tile-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; padding-top: 14px; }
.tile-num { font-family: var(--mono); font-size: 12px; color: var(--accent-text); }
.tile-title { font-size: 18px; font-weight: 500; transition: color .2s; }
.tile:hover .tile-title { color: var(--accent-text); }
.tile-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
/* lieu du projet, à droite, à côté de « Fair Estate · 2026 » */
.tile-right { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 4px 7px; text-align: right; }
.tile-place { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--muted); }
.tile-place::before { content: ""; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); transform: translateY(-1px); }
.tile-right .tile-place::after { content: "·"; margin-left: 1px; }
.tile-desc { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.badge { position: absolute; top: 16px; left: 16px; padding: 7px 10px; background: var(--accent); color: #161616; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
/* projet pas encore publié (image floutée, mention « En cours ») : vignette fixe, rien ne s’ouvre */
div.tile.is-pending { cursor: default; }
div.tile.is-pending:hover .tile-media img { transform: none; }
div.tile.is-pending:hover .tile-title { color: var(--text); }

/* ---------- Animations verticales (9:16, jamais recadrées) ---------- */
.films-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; }
.film-card { display: flex; flex-direction: column; width: 100%; padding: 0; background: none; border: 0; color: var(--text); text-align: left; cursor: pointer; }
.film-media { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; overflow: hidden; background: #000; }
.film-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.film-play { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; background: rgba(10, 10, 9, .72); color: var(--media-text); font-size: 13px; font-weight: 500; white-space: nowrap; opacity: 0; transition: opacity .3s; }
.film-card:hover .film-play, .film-card:focus-visible .film-play { opacity: 1; }
.film-caption { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: baseline; width: 100%; padding-top: 14px; }
.film-num { font-family: var(--mono); font-size: 12px; color: var(--accent-text); }
.film-name { font-size: 17px; font-weight: 500; transition: color .2s; }
.film-card:hover .film-name { color: var(--accent-text); }
.film-dur { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- Défilement continu du mobilier, dans les marges de la page ---------- */
.marquee { overflow: hidden; }
.marquee-track { display: flex; gap: 24px; width: max-content; animation: marquee var(--marquee-duration, 60s) linear infinite; }
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track,
.marquee.is-paused .marquee-track { animation-play-state: paused; }
.marquee-track > .tile { flex: 0 0 auto; width: calc(300px * var(--r)); }
.marquee-track .tile-title { font-size: 15px; }
@keyframes marquee { to { transform: translateX(calc(-50% - 12px)); } }
.marquee-toggle .icon-play { display: none; }
.marquee-toggle[aria-pressed="true"] .icon-play { display: block; }
.marquee-toggle[aria-pressed="true"] .icon-pause { display: none; }

/* ---------- Fiches ---------- */
.facts { margin: 24px 0 0; display: flex; flex-direction: column; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-size: 15px; text-align: right; }

/* ---------- Rénovation ---------- */
.reno { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 24px; align-items: start; }
.reno .tile { grid-column: span 7; }
.reno-info { grid-column: 9 / span 4; }
.reno-info h3 { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 500; letter-spacing: -.015em; }
/* suivi du projet : étapes reliées par un trait ; terminées (coche), en cours (point orange), à venir (grisées).
   Sous la vignette et la fiche, sur toute la largeur : frise horizontale sur ordinateur, verticale sur téléphone */
.reno .track { grid-column: 1 / -1; }
.track { margin-top: 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.track-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 18px; }
.track-head .label { margin: 0; }
.track-updated { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.track-steps { list-style: none; margin: 0; padding: 0; }
.track-step { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 16px; padding-bottom: 18px; }
.track-step:last-child { padding-bottom: 0; }
.track-step::before { content: ""; position: absolute; left: 11px; top: 28px; bottom: 4px; width: 2px; background: var(--line); }
.track-step:last-child::before { display: none; }
.track-step.is-done::before { background: var(--accent); }
.track-dot { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 2px solid var(--line); border-radius: 50%; background: var(--bg); color: #161616; }
.track-dot svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.track-step.is-done .track-dot { background: var(--accent); border-color: var(--accent); }
.track-step.is-current .track-dot { border-color: var(--accent); }
.track-step.is-current .track-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: track-pulse 1.8s ease-in-out infinite; }
@keyframes track-pulse { 50% { transform: scale(.6); opacity: .55; } }
.track-name { margin: 1px 0 0; font-size: 17px; font-weight: 500; line-height: 1.3; }
.track-step.is-todo .track-name { color: var(--muted); }
.track-status { margin: 3px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.track-step.is-current .track-status { color: var(--accent-text); }
.track-desc { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.track-link { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-top: 2px; padding: 0; background: none; border: 0; font: inherit; font-size: 14px; font-weight: 500; color: var(--accent-text); cursor: pointer; }
.track-link:hover { color: var(--text); }
@media (prefers-reduced-motion: reduce) { .track-step.is-current .track-dot::after { animation: none; } }
@media (min-width: 961px) {
  /* la fiche occupe exactement la hauteur de la photo : titre en haut, détails alignés sur le bas de l’image */
  .reno-info { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; }
}
/* frise horizontale quand la largeur suffit (une colonne par étape, quel que soit leur nombre) */
@media (min-width: 1200px) {
  .track-steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: 20px; }
  .track-step { display: block; padding-bottom: 0; }
  .track-step::before { left: 32px; right: -16px; top: 11px; bottom: auto; width: auto; height: 2px; }
  /* colonnes étroites : les mots longs (allemand) se coupent avec un trait d’union au lieu de déborder */
  .track-body { margin-top: 14px; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
  .track-name { font-size: 16px; }
}

/* ---------- Le studio ---------- */
.studio { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; align-items: center; }
.studio-media { grid-column: span 4; }
.studio-media img { width: 100%; max-width: 360px; height: auto; }
.studio-text { grid-column: 6 / span 7; }
.studio-text p { margin: 0 0 20px; font-size: 17px; line-height: 1.7; }
.studio-text .note { font-size: 14px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 72px; border-top: 1px solid var(--line); }
.stat { padding: 32px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat-value { display: block; font-size: clamp(44px, 6vw, 80px); line-height: 1; font-weight: 500; letter-spacing: -.04em; }
.stat-label { display: block; margin-top: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ---------- Visite virtuelle ---------- */
.vr { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; align-items: center; }
.vr-text { grid-column: span 6; }
.vr-text p { margin: 0 0 20px; font-size: 17px; line-height: 1.7; }
.vr-media { grid-column: 8 / span 5; position: relative; aspect-ratio: 1 / 1; background: #000; }
.vr-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* ---------- Bloc contact (identique sur toutes les pages) ---------- */
.contact-band { margin-top: 136px; background: var(--surface); border-top: 1px solid var(--line); scroll-margin-top: 0; transition: background-color .3s; }
.contact-band .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; align-items: start; padding-top: 96px; padding-bottom: 96px; }
.contact-main { grid-column: span 5; }
.contact-main h2 { margin: 16px 0 0; font-size: clamp(34px, 3.8vw, 54px); line-height: 1.04; font-weight: 500; letter-spacing: -.03em; }
.contact-text { margin: 28px 0 0; max-width: 460px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.contact-main .contact-links { justify-content: flex-start; gap: 12px 28px; margin-top: 16px; }
.contact-form { grid-column: 7 / span 6; }
.contact-form .btn { width: 100%; justify-content: space-between; margin-top: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 999px; font-size: 14px; }
.contact-side { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 20px; }
.contact-side p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
.contact-side .btn { justify-content: space-between; }
.contact-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--mono); font-size: 14px; }

/* ---------- Pied de page (identique sur toutes les pages) ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding-top: 36px; padding-bottom: 32px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 15px; }
.social { display: flex; gap: 8px; }
.social svg { width: 18px; height: 18px; fill: currentColor; }
/* réseaux sociaux : le bouton se remplit d’orange au survol */
.social a { transition: background-color .2s, border-color .2s, color .2s; }
.social a:hover, .social a:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 13px; color: var(--muted); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--accent-text); }
.mobile-cta { display: none; }

/* ---------- Fenêtre « Demander un devis » ---------- */
.quote { width: min(640px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--line); background: var(--bg); color: var(--text); }
.quote::backdrop { background: rgba(10, 10, 9, .62); }
.quote-inner { padding: 32px; }
.quote-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
.quote-head h2 { margin: 8px 0 0; font-size: 34px; line-height: 1.05; font-weight: 500; letter-spacing: -.02em; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea { width: 100%; padding: 10px 0; background: transparent; border: 0; border-bottom: 1px solid var(--border-strong); border-radius: 0; font-size: 17px; color: var(--text); transition: border-color .2s; }
.field input:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--accent); }
.field textarea { min-height: 110px; resize: vertical; }
/* liste « Prestation » : même trait que les autres champs, flèche orange */
.field select { width: 100%; padding: 10px 28px 10px 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF8C00' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 2px center / 16px; border: 0; border-bottom: 1px solid var(--border-strong); border-radius: 0; font: inherit; font-size: 17px; color: var(--text); -webkit-appearance: none; appearance: none; cursor: pointer; transition: border-color .2s; }
.field select:focus { outline: none; border-bottom: 2px solid var(--accent); }
.field select option, .field select optgroup { background: var(--bg); color: var(--text); }
/* repère quand un bouton a choisi la prestation */
.field-service.is-picked select { border-bottom: 2px solid var(--accent); }
.field-service.is-picked { animation: field-picked 1.8s ease; }
@keyframes field-picked { 0%, 40% { background: rgba(255, 140, 0, .16); box-shadow: 0 0 0 10px rgba(255, 140, 0, .16); } 100% { background: rgba(255, 140, 0, 0); box-shadow: 0 0 0 10px rgba(255, 140, 0, 0); } }
.quote .btn { width: 100%; justify-content: space-between; margin-top: 28px; }
.form-legal { margin: 16px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
/* anti-spam : champ piège hors de l’écran (ni visible, ni atteignable au clavier) ; message d’erreur */
.contact-form .hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 20px 0 0; padding: 10px 14px; border-left: 2px solid var(--accent); background: var(--bg); font-size: 14px; line-height: 1.5; color: var(--text); }
.form-error[hidden] { display: none; }
.form-legal a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Visionneuse (images et animations) ---------- */
.viewer { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: 72px minmax(0, 1fr) 120px; background: var(--viewer-bg); color: var(--text); }
/* visionneuse toujours sombre (mode « cinéma »), quel que soit le mode du site : les rendus ressortent mieux */
.viewer {
  color-scheme: dark;
  --bg: #0F0F0E;
  --surface: #181817;
  --surface-2: #1F1F1E;
  --line: #2C2C2A;
  --border-strong: #6E6D69;
  --text: #F2F1EE;
  --muted: #A3A29D;
  --accent-text: #FF8C00;
  --on-accent: #0F0F0E;
  --focus: #FF8C00;
  --viewer-bg: #0A0A09;
}
.viewer[hidden] { display: none; }
.viewer-top { grid-column: 1 / span 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px 0 32px; border-bottom: 1px solid var(--line); }
.viewer-path { display: flex; align-items: baseline; gap: 14px; min-width: 0; font-size: 18px; font-weight: 500; }
.viewer-path .sep { color: var(--muted); }
.viewer-counter { font-family: var(--mono); font-size: 14px; letter-spacing: .06em; }
.viewer-controls { display: flex; align-items: center; gap: 16px; }
.viewer-play .icon-pause { display: none; }
.viewer.is-playing .viewer-play .icon-pause { display: block; }
.viewer.is-playing .viewer-play .icon-play { display: none; }
.viewer-play[hidden] { display: none; }
.viewer-media img { cursor: pointer; }
.viewer-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 32px 96px; }
.viewer-media { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.viewer-media img { max-width: 100%; max-height: calc(100vh - 256px); max-height: calc(100dvh - 256px); object-fit: contain; }
.viewer-media video { height: calc(100vh - 256px); height: calc(100dvh - 256px); width: auto; max-width: 100%; aspect-ratio: 9 / 16; object-fit: contain; background: #000; }
.viewer-nav { position: absolute; top: 50%; margin-top: -28px; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.viewer-nav:hover { border-color: var(--text); }
.viewer-nav[hidden] { display: none; }
.viewer-prev { left: 24px; }
.viewer-next { right: 24px; }
.viewer-side { grid-column: 2; grid-row: 2 / span 2; display: flex; flex-direction: column; gap: 28px; padding: 32px; border-left: 1px solid var(--line); overflow-y: auto; }
.viewer-title { margin: 8px 0 0; font-size: 32px; line-height: 1.1; font-weight: 500; letter-spacing: -.02em; }
.viewer-side .facts { margin: 0; }
.next-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 16px 0; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--text); text-align: left; cursor: pointer; }
.next-item:hover { color: var(--accent-text); }
.next-label { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.next-name { display: block; margin-top: 4px; font-size: 17px; font-weight: 500; }
.viewer-cta { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.viewer-cta .btn { height: 48px; }
.viewer-thumbs { grid-column: 1; grid-row: 3; display: flex; align-items: center; gap: 12px; padding: 0 24px; border-top: 1px solid var(--line); overflow-x: auto; }
.viewer-thumbs > :first-child { margin-left: auto; }
.viewer-thumbs > :last-child { margin-right: auto; }
.viewer-thumbs button { flex-shrink: 0; width: 72px; height: 88px; padding: 0; border: 2px solid transparent; background: var(--surface-2); opacity: .5; cursor: pointer; transition: opacity .2s; }
.viewer-thumbs button.is-video { width: 50px; }
.viewer-thumbs button:hover { opacity: 1; }
.viewer-thumbs button[aria-current="true"] { border-color: var(--accent); opacity: 1; }
.viewer-thumbs img, .viewer-thumbs video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Petit écran d’ordinateur et tablette en paysage : en-tête resserré, sur une seule ligne ---------- */
.main-nav a, .header-actions .btn { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1180px) {
  .site-header .wrap { gap: 16px; }
  .main-nav { gap: 18px; font-size: 14px; }
  .header-actions { gap: 8px; }
  .header-actions .btn { padding: 0 16px; }
}
/* allemand : libellés plus longs, le bouton « Angebot anfragen » laisse sa place (« Kontakt » reste dans le menu) */
@media (min-width: 961px) and (max-width: 1080px) {
  html[lang="de"] .header-actions .btn { display: none; }
}

/* ---------- Tablette et mobile ---------- */
@media (max-width: 960px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .main-nav, .header-actions .btn, .header-actions .lang-toggle { display: none; }
  .header-actions { gap: 8px; }
  .menu-btn { display: inline-flex; }
  .site-header .wrap { height: 64px; }
  .site-header.nav-open .main-nav { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .site-header.nav-open .main-nav a { display: flex; align-items: center; justify-content: center; min-height: 52px; border-bottom: 1px solid var(--line); box-shadow: none; text-align: center; }
  .site-header.nav-open .main-nav a[aria-current="page"] { color: var(--accent-text); padding-bottom: 0; }
  .site-header.nav-open .main-nav .nav-lang { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 52px; font-family: var(--mono); font-size: 14px; letter-spacing: .06em; color: var(--muted); }
  .site-header.nav-open .main-nav .nav-lang a, .main-nav .nav-lang strong { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border-bottom: 0; }
  .site-header.nav-open .main-nav .nav-lang a { color: var(--muted); }
  .main-nav .nav-lang strong { font-weight: 600; color: var(--text); }
  .main-nav .nav-lang .lang-sep { opacity: .6; }

  /* Accueil : la vidéo reste en fond, texte centré par-dessus (hauteur au-dessus de la barre d’action) */
  .hero-media { height: min(calc(100vh - 160px), 600px); height: min(calc(100svh - 160px), 600px); min-height: 500px; object-position: 50% 30%; }
  .hero-title { padding-left: .08em; font-size: clamp(24px, 7vw, 40px); letter-spacing: .08em; }
  .hero-tag { margin-top: 20px; font-size: 12px; letter-spacing: .16em; padding-left: .16em; white-space: nowrap; }
  .hero-tag span { margin: 0 .25em; }
  .hero .hero-lead { margin-top: 16px; font-size: 15px; letter-spacing: .02em; }
  .hero .hero-actions { flex-direction: column; align-items: center; gap: 12px; margin-top: 28px; }
  .hero .hero-actions .btn { flex: 0 0 auto; width: 100%; max-width: 300px; min-width: 0; height: 52px; padding: 0 20px; }

  .disciplines ul { display: flex; overflow-x: auto; border-left: 0; }
  .disciplines li { flex-shrink: 0; }
  .disciplines a { padding: 12px 16px; }
  .disciplines .d-num { display: none; }
  .disciplines .d-name { font-size: 15px; }
  .disciplines .wrap { padding: 0; }

  .section { padding-top: 64px; scroll-margin-top: 70px; }
  .sec-head { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "num title" ". slogan" ". action"; column-gap: 12px; margin-bottom: 24px; }
  .sec-head h2 { font-size: 30px; }
  .sec-num { margin-right: 0; }
  .sec-slogan { justify-self: start; margin: 8px 0 0; font-size: 15px; text-align: left; }
  .sec-action { justify-self: start; margin-left: 0; }
  .sec-head .link-arrow.sec-action { min-height: 32px; }

  /* Rangées → deux vignettes par ligne, même hauteur, ratios conservés (rien n’est coupé au bord de l’écran) */
  .rows { flex-direction: row; flex-wrap: wrap; gap: 28px 12px; }
  .row { display: contents; }
  .row > .tile { flex: var(--r) 1 0%; min-width: 40%; }
  .tile-caption { flex-wrap: wrap; gap: 2px 8px; padding-top: 10px; }
  /* téléphone : lieu et « Fair Estate · 2026 » passent sous le nom, alignés à gauche */
  .tile-right { justify-content: flex-start; text-align: left; gap: 2px 10px; }
  .tile-right .tile-place::after { content: none; }
  .tile-title { font-size: 15px; }
  .tile-desc { margin-top: 6px; font-size: 14px; line-height: 1.5; }
  .tile-num { display: none; }

  .films-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
  .film-name { font-size: 15px; }
  .film-play { opacity: 1; }
  .marquee-track > .tile { width: calc(220px * var(--r)); }

  .reno .tile, .reno-info,
  .studio-media, .studio-text,
  .vr-text, .vr-media,
  .contact-main, .contact-side, .contact-form { grid-column: 1 / -1; }
  /* le visuel du studio (logo) n’apporte rien sur téléphone */
  .studio-media { display: none; }
  /* chiffres : une ligne chacun, valeur à gauche, libellé à droite */
  .stats { grid-template-columns: 1fr; margin-top: 40px; }
  .stat, .stat + .stat { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .stat-value { font-size: 40px; }
  .stat-label { margin-top: 0; text-align: right; }

  .contact-band { margin-top: 80px; }
  .contact-band .wrap { padding-top: 56px; padding-bottom: 56px; }
  /* pied de page centré */
  .footer-top { flex-direction: column; align-items: center; text-align: center; }
  .footer-nav { justify-content: center; gap: 20px; }
  .social { justify-content: center; }
  .footer-bottom { flex-direction: column; align-items: center; gap: 10px; text-align: center; }
  .footer-legal { justify-content: center; }
  .form-grid { grid-template-columns: 1fr; gap: 18px; }
  .quote-inner { padding: 24px 20px; }
  .quote-head h2 { font-size: 28px; }

  /* barre d’action fine en bas de l’écran, masquée tant que l’en-tête ou le formulaire de contact sont visibles */
  body { padding-bottom: 68px; }
  .mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 8px; padding: 10px 16px; background: var(--bg); border-top: 1px solid var(--line); transition: transform .3s ease; }
  .mobile-cta.is-hidden { transform: translateY(110%); }
  .mobile-cta .btn { flex-grow: 1; height: 48px; }
  .mobile-cta .icon-btn { width: 48px; height: 48px; }

  .viewer { grid-template-columns: minmax(0, 1fr); grid-template-rows: 64px minmax(0, 1fr) 104px; }
  .viewer-top { grid-column: 1; padding: 0 12px 0 16px; }
  .viewer-path .d-num, .viewer-path .sep, .viewer-group { display: none; }
  .viewer-side { display: none; }
  .viewer-stage { padding: 16px 16px 88px; }
  .viewer-media img { max-height: calc(100vh - 272px); max-height: calc(100dvh - 272px); }
  .viewer-media video { height: calc(100vh - 272px); height: calc(100dvh - 272px); }
  .viewer-nav { top: auto; bottom: 16px; margin-top: 0; width: 48px; height: 48px; }
  .viewer-prev { left: 16px; }
  .viewer-next { right: 16px; }
  .viewer-thumbs { grid-column: 1; padding: 0 16px; }
  .viewer-thumbs button { width: 56px; height: 68px; }
  .viewer-thumbs button.is-video { width: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media, .hero-line, .hero-tag, .hero .hero-lead, .hero .hero-actions { animation: none; opacity: 1; transform: none; }
  .tile-media img { transition: none; }
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
  .marquee-track [data-clone] { display: none; }
  .marquee-toggle { display: none; }
}

/* =====================================================================
   Page Visite virtuelle VR : peu de texte visible, vidéos, article complet repliable
   ===================================================================== */
/* 01 : la définition en grand, les appareils à côté */
.vr-what { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; align-items: center; }
.vr-what-text { grid-column: 1 / span 6; margin: 0; font-size: clamp(22px, 2vw, 28px); line-height: 1.4; font-weight: 500; letter-spacing: -.015em; }
.devices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.devices.devices-compact { grid-column: 8 / span 5; grid-template-columns: 1fr; gap: 12px; }
.device { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; align-items: start; padding: 18px 20px; background: var(--surface); transition: background-color .3s; }
.device-icon { grid-row: span 2; display: block; width: 40px; height: 40px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.device h3 { margin: 2px 0 0; font-size: 19px; line-height: 1.2; font-weight: 500; }
.device p { margin: 4px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* 02 : deux cartes vidéo de même taille */
.vr-who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.vr-card-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); }
.vr-card-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.vr-card h3 { margin: 18px 0 0; font-size: 22px; line-height: 1.2; font-weight: 500; letter-spacing: -.01em; }
.vr-card p { margin: 8px 0 0; max-width: 520px; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* 03 : avantages en cinq colonnes courtes */
.benefit-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.benefit-grid li { position: relative; padding: 44px 0 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.55; }
.benefit-grid li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 14px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* 04 : étapes */
.steps.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vr-duration { margin: 40px 0 0; max-width: 760px; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* 06 : article complet, replié par défaut */
.vr-article { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.vr-article summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; column-gap: 20px; align-items: center; padding: 28px 0; cursor: pointer; list-style: none; }
.vr-article summary::-webkit-details-marker { display: none; }
.vr-article summary h3 { margin: 0; font-size: 20px; line-height: 1.35; font-weight: 500; transition: color .2s; }
.vr-article summary:hover h3 { color: var(--accent-text); }
.vr-article-open { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.vr-article[open] .faq-icon::after { transform: rotate(0deg); }
.vr-article-body { max-width: 780px; padding: 0 0 48px; }
.vr-article[open] .vr-article-body { animation: faq-open .35s ease; }
.vr-article-body p, .vr-article-body li { font-size: 17px; line-height: 1.75; }
.vr-article-body p { margin: 0 0 18px; }
.vr-article-body h4 { margin: 40px 0 14px; font-size: 22px; line-height: 1.25; font-weight: 500; letter-spacing: -.01em; }
.vr-article-body ul { margin: 0 0 18px; padding: 0 0 0 20px; }
.vr-article-body li { margin-bottom: 6px; }
.vr-article-body li::marker { color: var(--accent); }
.vr-article-body blockquote { margin: 32px 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--accent); font-size: 24px; line-height: 1.35; font-weight: 500; }

/* appel final */
.vr-cta { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; align-items: end; }
.vr-cta-title { grid-column: 1 / span 7; margin: 0; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.25; font-weight: 500; letter-spacing: -.02em; }
.vr-cta-actions { grid-column: 9 / span 4; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

@media (min-width: 961px) and (max-width: 1200px) {
  .steps.steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps-4 .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .benefit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
}
@media (max-width: 960px) {
  .vr-what-text, .devices.devices-compact, .vr-cta-title, .vr-cta-actions { grid-column: 1 / -1; }
  .vr-what-text { font-size: 20px; }
  .vr-who { grid-template-columns: 1fr; gap: 40px; }
  .benefit-grid { grid-template-columns: 1fr; gap: 0; }
  .benefit-grid li { padding: 16px 0 16px 34px; }
  .benefit-grid li::before { top: 22px; }
  .steps.steps-4 { grid-template-columns: 1fr; }
  .vr-article summary { grid-template-columns: minmax(0, 1fr) 16px; row-gap: 8px; padding: 22px 0; }
  .vr-article summary h3 { font-size: 18px; }
  .vr-article-open { grid-row: 2; }
  .vr-article-body p, .vr-article-body li { font-size: 16px; }
  .vr-cta-title { font-size: 24px; }
  .vr-cta-actions .btn { flex: 1 1 100%; }
}

/* ---------- Page 404 ---------- */
.not-found { padding-top: 120px; padding-bottom: 120px; }
.not-found h1 { margin: 16px 0 0; max-width: 900px; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.05; font-weight: 500; letter-spacing: -.03em; }
.nf-text { margin: 24px 0 0; max-width: 640px; font-size: 18px; line-height: 1.6; color: var(--muted); }

/* =====================================================================
   Page Services : en-tête image, packs, prestations 3D, méthode, FAQ, zones
   ===================================================================== */

/* En-tête : même composition que l’accueil (texte centré, entrée ligne par ligne), sur une image */
.hero-page .hero-media { height: min(calc(100vh - 196px), calc(100vw / var(--r))); height: min(calc(100svh - 196px), calc(100vw / var(--r))); min-height: 460px; object-position: var(--pos, 50% 50%); }
.disciplines.d5 ul { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* apparition des blocs au défilement, l’un après l’autre (seulement si le script tourne) */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .9s cubic-bezier(.22, 1, .36, 1); transition-delay: calc(var(--i, 0) * 120ms); }
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }
/* titres de section : le filet sous le titre se trace de gauche à droite */
.js-reveal .sec-head[data-reveal] { position: relative; border-bottom-color: transparent; }
.js-reveal .sec-head[data-reveal]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--line); transform: scaleX(0); transform-origin: left center; transition: transform 1.1s cubic-bezier(.22, 1, .36, 1) .25s; }
.js-reveal .sec-head[data-reveal].is-in::after { transform: scaleX(1); }

/* ---------- Packs E-Design ---------- */
.packs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.pack { position: relative; display: flex; flex-direction: column; background: var(--surface); transition: background-color .3s; }
.pack-media { position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: var(--surface-2); }
.pack-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.pack:hover .pack-media img { transform: scale(1.04); }
.pack-body { display: flex; flex-direction: column; flex-grow: 1; padding: 24px; }
.pack-num { font-family: var(--mono); font-size: 12px; color: var(--accent-text); }
.pack h3, .feat h3 { margin: 10px 0 0; font-size: 24px; line-height: 1.15; font-weight: 500; letter-spacing: -.015em; }
.pack-sub { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 20px 0 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-from { font-size: 13px; color: var(--muted); }
.price-value { font-size: 40px; line-height: 1; font-weight: 500; letter-spacing: -.035em; }
.price-unit { font-size: 14px; color: var(--muted); }
.checks { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 28px; padding: 0; list-style: none; font-size: 15px; line-height: 1.5; }
.pack .checks { flex-grow: 1; }
.checks li { position: relative; padding-left: 26px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.checks strong { font-weight: 600; }
.pack .btn { width: 100%; }
/* pack mis en avant : même fond clair, cadre orange */
.pack.is-featured { box-shadow: 0 0 0 2px var(--accent); }

/* ---------- Prestations 3D : visuels à gauche puis à droite ----------
   Sur grand écran, les visuels ont exactement la hauteur du texte d’à côté (voir plus bas, min-width: 1201px) */
.feats { display: flex; flex-direction: column; gap: 112px; }
.feat { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; align-items: center; }
.feat-media { grid-column: 1 / span 7; }
.feat-body { grid-column: 9 / span 4; }
.feat.is-reversed .feat-media { grid-column: 6 / span 7; grid-row: 1; }
.feat.is-reversed .feat-body { grid-column: 1 / span 4; grid-row: 1; }
.feat h3 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -.02em; }
.feat .checks { margin-bottom: 28px; }
.feat-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
/* rangée de visuels : chacun à son ratio, même hauteur */
.media-row { display: flex; align-items: flex-start; gap: 12px; }
.media-item { position: relative; flex: var(--r) 1 0%; min-width: 0; aspect-ratio: var(--r); overflow: hidden; background: var(--surface-2); }
.media-item img, .media-item video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.feat:hover .media-item img { transform: scale(1.03); }
/* visuels l’un sous l’autre (simulation puis réalisation) */
.media-stack { display: flex; flex-direction: column; gap: 12px; }
.media-stack > .media-item { flex: none; width: 100%; }
/* crédits du projet sous le texte (qui a conçu, qui a fabriqué) */
.media-credits { margin-top: 32px; }
.media-credits div { flex-direction: column; gap: 3px; padding: 10px 0; }
.media-credits dd { font-size: 14px; text-align: left; }
@media (min-width: 1201px) {
  /* visuels étirés à la hauteur du texte : les images remplissent le cadre, l’animation verticale reste en 9:16 */
  .feat { align-items: stretch; }
  .feat-media { display: flex; }
  .feat-media > .media-row, .feat-media > .media-stack { flex: 1 1 auto; min-height: 320px; }
  .feat .media-row { align-items: stretch; }
  .feat .media-item { aspect-ratio: auto; }
  .feat .media-item.is-film { flex: 0 0 auto; aspect-ratio: 9 / 16; }
  .feat .media-stack > .media-item { flex: 1 1 0; }
}
.svc-note { margin: 56px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- Méthode : trois colonnes claires, comme les chiffres de l’accueil ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.step { padding: 8px 32px 0 0; }
.step + .step { padding-left: 32px; border-left: 1px solid var(--line); }
.step-n { display: block; font-size: clamp(48px, 5vw, 72px); line-height: 1; font-weight: 500; letter-spacing: -.04em; color: var(--accent); }
.step h3 { margin: 24px 0 0; font-size: 24px; line-height: 1.2; font-weight: 500; letter-spacing: -.015em; }
.step p { margin: 10px 0 0; max-width: 380px; font-size: 16px; line-height: 1.65; color: var(--muted); }

/* ---------- Questions fréquentes : questions repliables, une par ligne ---------- */
/* pas de filet en haut de la liste : le titre de section en a déjà un juste au-dessus */
.faq { border-top: 0; }
.faq details:first-child summary { padding-top: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: grid; grid-template-columns: 48px minmax(0, 1fr) 20px; column-gap: 16px; align-items: center; padding: 24px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq-n { font-family: var(--mono); font-size: 13px; color: var(--accent-text); }
.faq summary h3 { margin: 0; font-size: 20px; line-height: 1.35; font-weight: 500; letter-spacing: -.01em; transition: color .2s; }
.faq summary:hover h3, .faq details[open] summary h3 { color: var(--accent-text); }
.faq-icon { position: relative; width: 16px; height: 16px; justify-self: end; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: var(--accent); transition: transform .3s; }
.faq-icon::after { transform: rotate(90deg); }
.faq details[open] .faq-icon::after { transform: rotate(0deg); }
.faq-a { max-width: 860px; padding: 0 36px 28px 64px; }
.faq-a p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--muted); }
.faq details[open] .faq-a { animation: faq-open .35s ease; }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Zones d’intervention : deux rangées de liens courts (sur site / à distance) ---------- */
.zone-groups { border-top: 0; }
.zone-groups .zone-group:first-child { padding-top: 0; }
.zone-group { display: grid; grid-template-columns: 240px minmax(0, 1fr); column-gap: 24px; row-gap: 16px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.zone-label { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.zone-where { font-size: 20px; line-height: 1.2; font-weight: 500; letter-spacing: -.01em; }
.zone-area { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.zone-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.zone-links a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border: 1px solid var(--border-strong); border-radius: 999px; font-size: 15px; color: var(--text); transition: border-color .2s, color .2s; }
.zone-links .icon { color: var(--accent-text); transition: transform .3s; }
.zone-links a:hover { border-color: var(--accent); color: var(--accent-text); }
.zone-links a:hover .icon { transform: translateX(4px); }

@media (min-width: 961px) and (max-width: 1200px) {
  .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat-media, .feat.is-reversed .feat-media { grid-column: span 12; grid-row: auto; }
  .feat-body, .feat.is-reversed .feat-body { grid-column: 1 / span 8; grid-row: auto; }
}
@media (max-width: 960px) {
  .hero-page .hero-media { height: min(calc(100vh - 160px), 560px); height: min(calc(100svh - 160px), 560px); min-height: 460px; object-position: var(--pos-m, var(--pos, 50% 50%)); }
  /* packs : l’un sous l’autre, image plus basse pour rester compact */
  .packs { grid-template-columns: 1fr; gap: 20px; }
  .pack-media { aspect-ratio: 16 / 9; }
  .pack-body { padding: 20px; }
  .pack .checks { margin: 16px 0 22px; }
  .price-value { font-size: 34px; }
  .feats { gap: 64px; }
  .feat-media, .feat-body, .feat.is-reversed .feat-media, .feat.is-reversed .feat-body { grid-column: 1 / -1; grid-row: auto; }
  .media-row { gap: 8px; }
  .media-stack { gap: 8px; }
  .media-stack > .media-item { aspect-ratio: 2 / 1; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); }
  .step:first-child { padding-top: 0; border-top: 0; }
  .step-n { font-size: 44px; }
  .step h3 { margin-top: 14px; font-size: 22px; }
  .faq summary { grid-template-columns: 32px minmax(0, 1fr) 16px; column-gap: 12px; padding: 20px 0; }
  .faq summary h3 { font-size: 18px; }
  .faq-a { padding: 0 0 22px 44px; }
  .zone-group { grid-template-columns: 1fr; padding: 24px 0; }
  .zone-links a { font-size: 14px; padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
}
