/* Polices auto-hébergées — Cormorant Garamond & Jost (SIL Open Font License 1.1) */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-300-italic-latin-ext.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-300-italic-latin.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: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-400-italic-latin-ext.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-400-italic-latin.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: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-300-normal-latin-ext.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-300-normal-latin.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: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-400-normal-latin-ext.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-400-normal-latin.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: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-500-normal-latin-ext.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-500-normal-latin.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: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-600-normal-latin-ext.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-600-normal-latin.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: 'Jost';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('assets/fonts/jost-200-normal-latin-ext.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('assets/fonts/jost-200-normal-latin.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: 'Jost';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/jost-300-normal-latin-ext.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/jost-300-normal-latin.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: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/jost-400-normal-latin-ext.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/jost-400-normal-latin.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: 'Jost';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/jost-500-normal-latin-ext.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/jost-500-normal-latin.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;
}

/* ============================================================
   VILLA PARC DUCUP — PERPIGNAN
   Direction artistique « Terre et garrigue ».

   La palette est PRELEVEE SUR LES PHOTOGRAPHIES DU BIEN, comme sur
   Cassis où le bleu venait des meubles de cuisine et des volets.
   Ici, la quantification des seize vues donne trois familles :

     terre cuite   #97704E #8F675A #DCA564   tuiles, cour pavee
     vert garrigue #6F953A #4A5A33 #304029   pelouse, arbres, murs sauge
     pierre        #CEBDA3 #C3BEBA           facade, sols

   Le bleu dominant des vues exterieures est CELUI DU CIEL, pas celui du
   bien : on ne le retient pas. Il appartiendrait a la meteo, pas a la
   maison, et Cassis porte deja le bleu.

   Contrastes mesures sur --pierre (#F4F0E9) :
     --encre        14,1:1   texte courant
     --terre-encre   6,6:1   petit texte accentue, liens
     --garrigue      6,5:1   texte secondaire
     --terre         4,6:1   GRANDS titres uniquement, jamais en corps
============================================================ */

:root {
  --encre:        #22201D;
  --encre-douce:  #4A463F;
  --pierre:       #F4F0E9;
  --pierre-2:     #E8E1D5;
  --pierre-3:     #D9D0BF;
  --blanc:        #FFFFFF;

  /* Le sang catalan. Le brun precedent (#7D4531) etait juste eteint : il
     disait la tuile, pas le pays. Ce vermillon est celui des bandes de
     l'embleme de Perpinya. Blanc dessus : 5,96:1, AA. */
  --sang:         #B23A26;
  --sang-vif:     #CC4630;
  /* Le pied du degrade des boutons. Blanc dessus : 8,4:1. */
  --sang-profond: #8E2C1C;
  --terre:        #9A5B3F;
  --terre-encre:  #8A4A33;
  --terre-clair:  #C98B63;

  /* Le safran : l'ocre des facades de Collioure et de la Cote Vermeille.
     Il porte le soleil et l'identite catalane sans jamais citer le drapeau.
     6,1:1 sur --pierre en version encre, donc lisible en petit texte. */
  --safran:       #C98A1E;
  --safran-encre: #8A5E12;

  --garrigue:     #4A5A33;
  --garrigue-vif: #6F8F4A;
  /* Le bleu nuit de l'embleme, a la place de l'olive. Ce n'est pas le bleu
     mediterraneen de Cassis : c'est un bleu d'encre, presque noir, celui du
     fond sur lequel se detachent le sang et l'or. */
  --nuit:         #152231;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Jost', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;

  --ease: cubic-bezier(.22,1,.36,1);
  --r-l: 20px; --r-m: 14px; --r-s: 9px;
  --nav-h: 70px;
  --gut: max(18px, env(safe-area-inset-left, 0px));
  --gut-r: max(18px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--pierre);
  color: var(--encre);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h3 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
p { margin: 0 0 1.1rem; }
/* `color: transparent` sur les images : tant qu'une image n'est pas arrivee,
   le navigateur peint son texte alternatif DANS la boite — grande comme la
   photographie — et cela se lit comme un titre descriptif pose a cote. Le
   texte reste dans l'arbre d'accessibilite, lu par les lecteurs d'ecran ; il
   cesse simplement d'etre dessine. Le fond pierre remplace la plage vide. */
/* `color: transparent` et `font-size: 0` sur les images : tant qu'une image
   n'est pas arrivee, le navigateur peint son texte alternatif DANS la boite —
   grande comme la photographie — et cela se lit comme un titre descriptif
   pose a cote. Le texte reste dans l'arbre d'accessibilite, lu par les
   lecteurs d'ecran ; il cesse simplement d'etre dessine.
   Le fond, lui, va sur les CONTENEURS : pose sur `img`, il remplissait la
   transparence du logo blanc, qui se retrouvait sur une plaque creme. */
img { max-width: 100%; height: auto; display: block; color: transparent; font-size: 0; }
.mosaique figure, .gal figure, .gal__pile figure, .tuile--photo, .territoire article, .ev, .duo img, .scene > img, .hero__poster { background: var(--pierre-2); }
a { color: var(--terre-encre); }

.eyebrow {
  display: block;
  font-size: .76rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--terre-encre);
  margin: 0 0 .75rem;
}
.lede { font-size: clamp(1.1rem, 2vw, 1.28rem); line-height: 1.55; color: var(--encre-douce); max-width: 56ch; }
/* Les titres portent `margin: 0` et `.lede` n'avait pas de marge haute : le
   chapeau se collait au titre, sans respiration. Une seule regle de rythme,
   appliquee partout, plutot qu'un reglage par section. */
h2 + .lede, h2 + p, h3 + .lede, h3 + p { margin-top: 1.15rem; }
.lede + p { margin-top: 1.5rem; }
.eyebrow + h2, .eyebrow + h1 { margin-top: 0; }
.duo p:last-child, .carte-points .plain li:last-child { margin-bottom: 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 200; background: var(--encre); color: #fff; padding: 10px 16px; border-radius: var(--r-s); }
:focus-visible { outline: 2px solid var(--terre); outline-offset: 3px; }

.wrap { width: calc(100% - var(--gut) - var(--gut-r)); max-width: 1180px; margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--pierre { background: var(--pierre-2); }
.section--nuit { background: var(--nuit); color: var(--pierre); }
.section--nuit h2, .section--nuit h3 { color: var(--pierre); }
.section--nuit .eyebrow { color: var(--terre-clair); }
.section--nuit .lede, .section--nuit p { color: #C9C8BC; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: 54px; padding: .9rem 1.9rem;
  border: 1px solid transparent; border-radius: 999px;
  /* Un aplat ne renvoie pas la lumiere. Le degre, le lisere interieur blanc et
     le halo teinte sang sont ce qui separe un bouton pose d'un bouton
     dessine : c'est le reglage des Airelles, en couleurs catalanes. */
  background: linear-gradient(135deg, var(--sang-vif) 0%, var(--sang-profond) 100%);
  box-shadow: 0 8px 22px rgba(178,58,38,.4), inset 0 1px 0 rgba(255,255,255,.26);
  color: #fff;
  font-family: var(--sans); font-size: .9rem; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: transform .18s ease-out, background .18s ease-out, box-shadow .3s ease-out;
}
.btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #DA5139 0%, #9E3220 100%);
  box-shadow: 0 14px 32px rgba(178,58,38,.5), inset 0 1px 0 rgba(255,255,255,.3);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 15px; height: 15px; flex-shrink: 0; transition: transform .3s ease-out; }
.btn:hover svg { transform: translateY(3px); }
.btn--clair { background: var(--blanc); color: var(--encre); box-shadow: 0 8px 22px rgba(34,32,29,.14), inset 0 1px 0 rgba(255,255,255,.6); }
.btn--clair:hover { background: var(--pierre-2); }
.btn--ligne { background: transparent; color: var(--encre); box-shadow: inset 0 0 0 1px var(--pierre-3); }
.btn--ligne:hover { background: var(--pierre-2); color: var(--encre); box-shadow: inset 0 0 0 1px var(--pierre-3); }
/* Le fantome du heros : sur une photographie, pas sur la pierre. */
.btn--fantome { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.btn--fantome:hover { background: rgba(255,255,255,.1); color: #fff; transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); }
.btn--fantome::after, .btn--clair::after { display: none; }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 90; transition: background .35s var(--ease), box-shadow .35s var(--ease); }
.nav.is-scrolled { background: rgba(244,240,233,.94); backdrop-filter: saturate(150%) blur(12px); box-shadow: 0 1px 0 rgba(34,32,29,.08); }
.nav__inner { display: flex; align-items: center; gap: 1.6rem; height: var(--nav-h); width: calc(100% - var(--gut) - var(--gut-r)); max-width: 1180px; margin-inline: auto; }
.nav__brand { display: flex; flex-direction: column; text-decoration: none; flex-shrink: 0; }
.nav__brand img { width: 104px; height: auto; }
.nav__brand small { font-size: .56rem; letter-spacing: .26em; text-transform: uppercase; color: rgba(255,255,255,.72); margin-top: 3px; }
.nav.is-scrolled .nav__brand img { filter: invert(1) brightness(.18); }
.nav.is-scrolled .nav__brand small { color: var(--encre-douce); }
.nav__links { display: flex; gap: 1.5rem; margin-left: auto; }
.nav__links a { color: rgba(255,255,255,.9); text-decoration: none; font-size: .92rem; }
.nav.is-scrolled .nav__links a { color: var(--encre-douce); }
.nav__links a:hover { color: var(--terre-clair); }
.nav.is-scrolled .nav__links a:hover { color: var(--terre-encre); }
.nav__cta { min-height: 44px; padding: .6rem 1.2rem; font-size: .9rem; }
.nav__burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.nav__burger span { display: block; height: 1.5px; background: #fff; transition: background .3s; }
.nav.is-scrolled .nav__burger span { background: var(--encre); }
.nav__mobile { display: none; }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; margin-left: auto; }
  .nav__mobile {
    display: flex; flex-direction: column; gap: 1.1rem;
    position: fixed; inset: var(--nav-h) 0 auto; z-index: 89;
    padding: 1.8rem var(--gut) 2.2rem;
    background: var(--pierre); box-shadow: 0 20px 40px -24px rgba(34,32,29,.5);
    transform: translateY(-120%); transition: transform .4s var(--ease);
  }
  .nav__mobile.is-open { transform: translateY(0); }
  .nav__mobile a { color: var(--encre); text-decoration: none; font-size: 1.05rem; }
}

/* ---------- Accueil ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__poster { width: 100%; height: 100%; object-fit: cover; }
/* La video couvre le cadre comme la photographie : `object-fit: cover` suffit,
   la regle precedente calculait une taille en vh/vw parce qu'elle visait une
   iframe YouTube, qui n'obeit pas a object-fit. Ici le fichier est a nous. */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; pointer-events: none; }
/* Qui demande moins d'animations garde la photographie : la video est retiree
   du document par main.js, et non seulement masquee — masquee, elle se
   telechargerait quand meme. */
@media (prefers-reduced-motion: reduce) { .hero__video { display: none; } }
/* Le voile. Deux couches, et c'est voulu : une facade blanche au soleil et
   une piscine turquoise renvoient enormement de lumiere, un degrade vertical
   seul y laissait le titre illisible. La couche horizontale assombrit le cote
   ou le texte se pose et laisse la photographie respirer a droite, sous la
   carte de capture. */
.hero__overlay { position: absolute; inset: 0; z-index: 1; }
/* z-index POSITIF, et c'est le point : .hero__media porte deja z-index -2 et
   cree donc son propre contexte d'empilement. Un voile a -1 la-dedans passe
   DERRIERE la photographie au lieu de la couvrir, et le titre blanc se perd
   dans la facade au soleil. */
.hero__overlay::before,
.hero__overlay::after { content: ""; position: absolute; inset: 0; }
.hero__overlay::before {
  background: linear-gradient(100deg,
    rgba(14,18,24,.93) 0%, rgba(14,18,24,.84) 30%,
    rgba(14,18,24,.52) 54%, rgba(14,18,24,.12) 76%, transparent 100%);
}
.hero__overlay::after {
  background: linear-gradient(180deg,
    rgba(14,18,24,.52) 0%, rgba(14,18,24,.14) 34%, rgba(14,18,24,.68) 100%);
}
@media (max-width: 1199px) {
  /* La carte passe sous le texte : le voile redevient vertical, sinon la
     moitie droite de la photographie reste inutilement sombre. */
  /* Dense, et uniformement. Le degrade precedent s'eclaircissait a mi-hauteur,
     c'est-a-dire exactement la ou tombent les coches et les chiffres : ils se
     posaient sur la toiture au soleil et devenaient illisibles. Sur telephone
     la photographie du heros n'est plus un sujet mais une matiere — la vraie
     photographie arrive juste en dessous, dans .hero__shot. */
  .hero__overlay::before {
    background: linear-gradient(180deg,
      rgba(14,18,24,.86) 0%, rgba(14,18,24,.85) 42%,
      rgba(14,18,24,.82) 66%, rgba(14,18,24,.58) 88%, rgba(14,18,24,.66) 100%);
  }
  .hero__overlay::after { background: none; }
}
.hero__inner { width: calc(100% - var(--gut) - var(--gut-r)); max-width: 1180px; margin-inline: auto; padding: calc(var(--nav-h) + 3rem) 0 clamp(2.5rem, 6vw, 4.5rem); display: grid; grid-template-columns: 1.22fr .78fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.hero__texte { color: #fff; }
.hero__texte .eyebrow { color: var(--terre-clair); }

/* L'accroche. Un simple .eyebrow en capitales se dissout sur une
   photographie : la pastille lui redonne un fond a elle, et la pointe de
   safran ancre la couleur catalane des le premier coup d'oeil. */
.accroche {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .42rem 1rem .42rem .85rem;
  margin: 0 0 1.5rem;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
  backdrop-filter: saturate(140%) blur(6px);
  font-family: var(--sans); font-size: .74rem; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase;
  color: rgba(255,255,255,.94);
}
.accroche i { width: 6px; height: 6px; border-radius: 50%; background: var(--safran); flex-shrink: 0; }

.hero h1 { color: #fff; text-shadow: 0 2px 32px rgba(10,14,20,.6); text-wrap: balance; }
/* Le <br> separe les deux voix du titre : le romain enonce, l'italique
   repond. A l'interieur de chaque voix, le navigateur equilibre les lignes. */
.hero h1 br { display: block; }
/* Les deux voix du titre : le romain enonce la surface, l'italique glisse la
   raison d'y venir. C'est le meme geste que sur Les Airelles, et c'est ce qui
   separe un titre dessine d'une phrase posee la. */
.hero h1 em { font-style: italic; font-weight: 300; color: rgba(255,255,255,.92); }

.hero__sub { font-size: clamp(1.04rem, 1.8vw, 1.22rem); color: rgba(255,255,255,.92); max-width: 42ch; margin: 1.3rem 0 0; text-shadow: 0 1px 12px rgba(10,14,20,.8); }

/* Ce que contient le dossier, en quatre mots chacun. Cinq phrases en coches
   demandaient a etre lues ; quatre tirets se prennent d'un coup d'oeil, et
   c'est tout ce qu'on attend d'un premier ecran. */
.hero__tirets {
  list-style: none; margin: 1.9rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .6rem 1.9rem;
  font-size: .78rem; font-weight: 400; letter-spacing: .17em; text-transform: uppercase;
  color: rgba(255,255,255,.92); text-shadow: 0 1px 10px rgba(10,14,20,.85);
}
.hero__tirets li::before { content: "\2014"; color: var(--safran); margin-right: .55rem; }

.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.1rem; }

.hero__chiffres { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 2rem; }
.hero__chiffres div { color: #fff; text-shadow: 0 1px 12px rgba(10,14,20,.85); }
.hero__chiffres b { display: block; font-family: var(--serif); font-size: 1.9rem; font-weight: 400; line-height: 1; }
.hero__chiffres span { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.82); }

/* L'eventail du dossier. Trois pages posees de biais, celle du milieu devant :
   on MONTRE la brochure au lieu d'en ecrire le sommaire. Les deux pages du
   dessous s'ecartent au survol, ce qui suffit a dire qu'elles se tournent. */
.eventail { position: relative; width: min(430px, 86vw); height: min(320px, 64vw); margin: 0 auto; align-self: center; }
.ev {
  position: absolute; top: 50%; left: 50%;
  width: 46%; aspect-ratio: .707;
  background: var(--pierre); border-radius: 3px; overflow: hidden;
  box-shadow: 0 24px 50px rgba(0,0,0,.5);
  transition: transform .5s var(--ease);
}
.ev img { width: 100%; height: 100%; object-fit: cover; }
.ev--plan { transform: translate(-115%,-47%) rotate(-10deg); }
.ev--int  { transform: translate(15%,-47%) rotate(9deg); }
.ev--couv { z-index: 2; transform: translate(-50%,-53%); box-shadow: 0 30px 60px rgba(0,0,0,.62); color: #fff; }
.ev--couv::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,20,28,.62) 0%, rgba(14,20,28,.08) 38%, rgba(14,20,28,.88) 100%); }
.ev__t1, .ev__t2 { position: absolute; left: 9%; right: 9%; z-index: 1; }
.ev__t1 { top: 7%; font-size: .5rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.88); }
.ev__t2 { bottom: 8%; font-family: var(--serif); font-size: clamp(1rem, 2.2vw, 1.38rem); line-height: 1.04; }
.ev__t2 em { font-style: italic; color: var(--terre-clair); }
.eventail:hover .ev--plan { transform: translate(-124%,-49%) rotate(-13deg); }
.eventail:hover .ev--int  { transform: translate(24%,-49%) rotate(12deg); }
@media (prefers-reduced-motion: reduce) { .ev { transition: none; } }

/* Sous 1200 px la carte passe sous le texte : une photographie s'intercale,
   pour que la carte reste juste en dessous du premier ecran. */
.hero__shot { display: none; }
@media (max-width: 1199px) {
  .hero { min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__shot { display: none; }
  .eventail { margin-top: 2.6rem; }
}
@media (max-width: 860px) {
  .duo--serre, .duo--vivre { grid-template-columns: 1fr; }
  .mosaique { grid-template-rows: auto; }
  .mosaique__haute { grid-row: auto; grid-column: span 2; }
  .mosaique img { aspect-ratio: 4/3; }
  .mosaique__haute img { aspect-ratio: 16/9; }
  .gal--duo { grid-template-columns: 1fr; }
  .gal__pile { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gal__pile img { aspect-ratio: 4/3; }
}
@media (max-width: 599px) {
  .accroche { font-size: .66rem; letter-spacing: .12em; padding: .4rem .85rem .4rem .7rem; }
  .hero__tirets { margin-top: 1.5rem; gap: .5rem 1.3rem; font-size: .72rem; letter-spacing: .13em; }
  .hero__actions { margin-top: 1.7rem; }
  .hero__actions .btn { width: 100%; }
  /* Trois colonnes egales : en ligne libre, « 110 m2 » tombait seul sur une
     deuxieme rangee, avec un blanc de la largeur de l'ecran a cote. */
  .hero__chiffres { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin-top: 1.8rem; }
  .hero__chiffres b { font-size: 1.45rem; }
  .hero__chiffres span { font-size: .68rem; letter-spacing: .07em; }
}

/* ---------- Revelations ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
/* Les photographies se posent au lieu d'apparaitre : elles entrent a 104 % et
   reviennent a leur taille. Le mouvement dure une seconde et demie et ne se
   remarque pas — c'est le but, comme le travelling du plan large. */
.duo img, .mosaique img, .gal img, .gal__pile img { transform: scale(1.045); transition: transform 1.5s var(--ease); }
.reveal.is-visible img, .is-visible img { transform: scale(1); }
.mosaique figure:hover img, .gal figure:hover img, .gal__pile figure:hover img, .territoire article:hover img { transform: scale(1.05); transition: transform .7s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .duo img, .mosaique img, .gal img, .gal__pile img, .territoire img { transform: none; transition: none; }
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Duo texte / image ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
/* Le texte n'a pas besoin de la moitie de la page : lui en laisser moins
   donne de la place aux photographies, qui sont ce qu'on vient voir. */
.duo--serre { grid-template-columns: .82fr 1.18fr; align-items: start; }
.duo--vivre { grid-template-columns: 1.05fr .95fr; align-items: start; }

/* La mosaique : une photographie haute a gauche, deux empilees a droite. */
.mosaique { display: grid; grid-template-columns: 1.08fr .92fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 16/11; }
.mosaique figure { margin: 0; border-radius: var(--r-m); overflow: hidden; background: var(--pierre-3); }
.mosaique img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.mosaique figure:hover img { transform: scale(1.04); }
.mosaique__haute { grid-row: span 2; }

/* Les cinq points, dans une colonne a eux. */
.carte-points { background: var(--pierre-2); border-radius: var(--r-l); padding: clamp(1.5rem, 2.6vw, 2.2rem); }
.carte-points .plain { margin: 0; }
.duo--inverse > :first-child { order: 2; }
.duo img { border-radius: var(--r-m); aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } .duo--inverse > :first-child { order: 0; } }

/* ---------- Chiffres ---------- */
.chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 1px; background: var(--pierre-3); border-radius: var(--r-m); overflow: hidden; margin-top: 2.6rem; }
.chiffres div { background: var(--pierre); padding: 1.6rem 1.4rem; }
.section--pierre .chiffres div { background: var(--pierre-2); }
.chiffres b { display: block; font-family: var(--serif); font-size: 2.3rem; font-weight: 400; line-height: 1; color: var(--terre-encre); }
.chiffres span { display: block; font-size: .85rem; color: var(--encre-douce); margin-top: .45rem; }

/* Les tuiles, reprises de Cassis. Chaque carte est blanche, cernee d'un filet,
   et ne porte de couleur que sur son icone : la page respire au lieu de
   s'alourdir d'un bandeau. Une photographie prend la cinquieme case et coupe
   la suite de cartes claires. */
.tuiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: clamp(2.2rem, 4vw, 3.2rem); }
.tuile {
  background: var(--blanc); border: 1px solid var(--pierre-3); border-radius: var(--r-m);
  padding: 20px 20px 18px; min-height: 164px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.tuile:hover { transform: translateY(-4px); box-shadow: 0 16px 34px -20px rgba(34,32,29,.45); }
.tuile__icone { color: var(--tuile-c, var(--sang)); }
.tuile__icone svg { width: 23px; height: 23px; }
.tuile__cle { font-family: var(--serif); font-size: 2.3rem; line-height: 1; color: var(--encre); }
.tuile__cle b { font-weight: 400; }
.tuile__cle span { font-size: .44em; letter-spacing: .02em; color: var(--encre-douce); }
.tuile__legende { font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; color: var(--encre-douce); line-height: 1.5; margin-top: .5rem; }
.tuile--photo { padding: 0; overflow: hidden; border: 0; }
.tuile--photo img { width: 100%; height: 100%; min-height: 164px; object-fit: cover; transition: transform .7s var(--ease); }
.tuile--photo:hover img { transform: scale(1.05); }
@media (max-width: 1100px) { .tuiles { grid-template-columns: repeat(3, 1fr); } .tuile--photo { grid-column: span 3; min-height: 0; } .tuile--photo img { min-height: 0; aspect-ratio: 3/1; } }
@media (max-width: 640px)  { .tuiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tuile { min-height: 140px; padding: 16px; } .tuile__cle { font-size: 1.85rem; }
  .tuile__legende { font-size: .68rem; letter-spacing: .1em; }
  .tuile--photo { grid-column: span 2; } .tuile--photo img { aspect-ratio: 2/1; } }


/* ---------- Le marche, comparaison ---------- */
.marche { display: grid; gap: 10px; margin-top: 2.4rem; }
.marche__ligne { display: grid; grid-template-columns: 11rem 1fr auto; gap: 1.2rem; align-items: center; }
.marche__ville { font-size: .98rem; }
.marche__barre { height: 11px; border-radius: 999px; background: var(--pierre-3); overflow: hidden; }
.marche__barre i { display: block; height: 100%; border-radius: 999px; background: var(--garrigue-vif); }
.marche__ligne--nous .marche__barre i { background: var(--sang); }
.marche__ligne--nous .marche__ville { font-weight: 500; color: var(--terre-encre); }
.marche__prix { font-variant-numeric: tabular-nums; font-size: .95rem; color: var(--encre-douce); white-space: nowrap; }
@media (max-width: 620px) { .marche__ligne { grid-template-columns: 1fr auto; } .marche__barre { grid-column: 1/-1; order: 3; } }

/* ---------- Galerie ---------- */
.gal { display: grid; grid-template-columns: repeat(12,1fr); gap: 12px; margin-top: 2.6rem; }
.gal figure { margin: 0; grid-column: span 4; border-radius: var(--r-m); overflow: hidden; background: var(--pierre-3); }
/* L'image doit SUIVRE l'etirement de sa figure. Dans une rangee de grille,
   une figure courte est etiree a la hauteur de sa voisine ; l'image, elle,
   restait bloquee en 3/2. Le cactus laissait ainsi 265 px de fond vide
   sous lui, a cote de la photo du jardin. */
.gal img { width: 100%; height: 100%; aspect-ratio: 3/2; object-fit: cover; transition: transform .7s var(--ease); }

/* Les cartes de « Y vivre » : meme boite que les tuiles de chiffres, mais un
   titre a la place du nombre, et une phrase lisible a la place de la legende
   en capitales. */
.tuile--texte .tuile__cle { font-size: 1.3rem; line-height: 1.18; }
.tuile--texte .tuile__legende { text-transform: none; letter-spacing: 0; font-size: .9rem; line-height: 1.55; }
.gal figure:hover img { transform: scale(1.04); }
.gal .gal--large { grid-column: span 8; }
/* La grande en 3/2 sur huit colonnes est deux fois plus haute que la petite
   sur quatre : la case du dessous restait vide. Deux photographies empilees a
   droite remplissent exactement cette hauteur. */
.gal--duo { grid-template-columns: 1.9fr 1fr; }
.gal--duo > figure { grid-column: auto; }
.gal--duo { aspect-ratio: 16/9; }
.gal--duo > figure { height: 100%; }
.gal--duo > figure img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.gal__pile { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
.gal__pile figure { margin: 0; border-radius: var(--r-m); overflow: hidden; background: var(--pierre-3); }
.gal__pile img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; transition: transform .7s var(--ease); }
.gal__pile figure:hover img { transform: scale(1.04); }
.gal .gal--plein { grid-column: span 12; }
.gal .gal--plein img { aspect-ratio: 21/9; }
@media (max-width: 900px) { .gal figure, .gal .gal--large { grid-column: span 6; } }
@media (max-width: 560px) { .gal figure, .gal .gal--large, .gal .gal--plein { grid-column: span 12; } }

/* ---------- Liste simple ---------- */
ul.plain { list-style: none; padding: 0; margin: 1.2rem 0; }
ul.plain li { position: relative; padding-left: 1.6rem; margin: .62rem 0; }
ul.plain li::before { content: ""; position: absolute; left: 0; top: .66em; width: 7px; height: 7px; border-radius: 50%; background: var(--sang); }
.section--nuit ul.plain li::before { background: var(--terre-clair); }

/* ---------- L'appel final ----------
   Une photographie pleine page, un voile a deux couches comme le heros, et
   l'eventail pose en volume : on montre le dossier au moment ou on le
   demande, au lieu d'un bouton pose sur du creme. */
.final { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: clamp(4rem, 9vw, 7rem) 0; }
.final__fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.final__voile { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,14,20,.72) 0%, rgba(10,14,20,.55) 45%, rgba(10,14,20,.85) 100%),
    linear-gradient(85deg, rgba(10,14,20,.5) 0%, rgba(10,14,20,.2) 55%, rgba(10,14,20,.6) 100%);
}
.final__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.final__texte h2 { color: #fff; text-shadow: 0 2px 28px rgba(10,14,20,.6); }
.final__texte > p { font-size: clamp(1.02rem, 1.8vw, 1.18rem); color: rgba(255,255,255,.9); max-width: 42ch; margin: 1.15rem 0 0; text-shadow: 0 1px 12px rgba(10,14,20,.8); }
.final__texte .accroche { color: rgba(255,255,255,.94); }
.final__note { font-size: .85rem; color: rgba(255,255,255,.8); margin: 1.2rem 0 0; text-shadow: 0 1px 12px rgba(10,14,20,.8); }
.eventail--final { margin: 0; }
@media (max-width: 860px) {
  .final__inner { grid-template-columns: 1fr; }
  .eventail--final { order: 2; margin-top: 2.4rem; }
  .final__texte .btn { width: 100%; }
}

/* ---------- Bouton fixe mobile ---------- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; padding: .8rem var(--gut) calc(.8rem + env(safe-area-inset-bottom,0px)); background: rgba(244,240,233,.96); backdrop-filter: blur(10px); box-shadow: 0 -1px 0 rgba(34,32,29,.1); transform: translateY(110%); transition: transform .4s var(--ease); }
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { width: 100%; }
@media (min-width: 901px) { .sticky-cta { display: none; } }

/* ---------- Modale du dossier ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: clamp(12px,3vw,32px); background: rgba(30,35,24,.72); backdrop-filter: blur(5px); }
.modal.is-open { display: flex; }
.modal__box { position: relative; width: min(960px,100%); max-height: 92svh; overflow-y: auto; -webkit-overflow-scrolling: touch; display: grid; grid-template-columns: .85fr 1.15fr; background: var(--pierre); border-radius: var(--r-l); }
.modal__close { position: absolute; top: 10px; right: 14px; z-index: 2; width: 44px; height: 44px; border: 0; background: none; font-size: 1.9rem; line-height: 1; color: var(--encre-douce); cursor: pointer; }
.modal__close:hover { color: var(--encre); }
.modal__head { padding: clamp(1.6rem,3vw,2.4rem); background: var(--nuit); color: var(--pierre); border-radius: var(--r-l) 0 0 var(--r-l); }
.modal__head h3 { color: #fff; font-size: 1.75rem; }
.modal__head p { color: #C9C8BC; font-size: .95rem; margin: .7rem 0 0; }
.modal__perks { list-style: none; padding: 0; margin: 1.3rem 0 0; }
.modal__perks li { position: relative; padding-left: 1.5rem; font-size: .92rem; color: #C9C8BC; margin: .5rem 0; }
.modal__perks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--terre-clair); }
.modal__trust { font-size: .8rem; color: #9A9A8C; margin-top: 1.4rem; }
.modal__form { padding: clamp(1rem,2vw,1.4rem); min-height: 520px; }
/* L'iframe reste masquee tant que sa hauteur n'est pas revenue : on ne montre
   jamais un cadre vide. L'attente se retire a ce moment precis. */
.modal__form iframe { opacity: 0; transition: opacity .4s var(--ease); }
.modal__form.est-pret iframe { opacity: 1; }
.modal__attente { display: flex; align-items: center; justify-content: center; gap: .7rem; height: 460px; color: var(--encre-douce); font-size: .93rem; }
.modal__form.est-pret .modal__attente { display: none; }
.modal__attente i { width: 18px; height: 18px; border: 2px solid var(--pierre-3); border-top-color: var(--terre); border-radius: 50%; animation: tourne .9s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
@media (max-width: 820px) {
  .modal__box { grid-template-columns: 1fr; }
  .modal__head { border-radius: var(--r-l) var(--r-l) 0 0; }
}

/* ---------- Pied de page ---------- */
.pied { background: var(--nuit); color: #9A9A8C; padding: clamp(3rem,6vw,4.5rem) 0 clamp(2rem,4vw,3rem); font-size: .88rem; }
.pied a { color: #C9C8BC; }
.pied img { width: 112px; opacity: .9; margin-bottom: 1.2rem; }
.pied__bas { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.1); }

/* ---------- Filet catalan ----------
   Trois traits chauds, empruntes aux facades de la Cote Vermeille.
   Un rappel d'identite, pas un embleme : aucune proportion de drapeau. */
.filet { display: flex; gap: 4px; margin: 0 0 1.3rem; }
.filet i { display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--sang); }
.filet i:nth-child(2) { background: var(--safran); width: 16px; }
.filet i:nth-child(3) { background: var(--garrigue); width: 9px; }
.section--nuit .filet i { background: var(--terre-clair); }
.section--nuit .filet i:nth-child(2) { background: var(--safran); }
.section--nuit .filet i:nth-child(3) { background: var(--garrigue-vif); }

/* ---------- Le territoire : mer, montagne, village ---------- */
/* Les quatre reperes du territoire. C'etait la seule section de la page a ne
   montrer aucune image : elle parlait de la mer, de la montagne et de
   l'Espagne, et il fallait croire sur parole. Chaque repere porte desormais sa
   photographie. */
.territoire { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 1.1rem; margin-top: 2.6rem; }
.territoire article {
  background: var(--pierre); border-radius: var(--r-m); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 18px 40px -22px rgba(0,0,0,.7);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.territoire article:hover { transform: translateY(-6px); box-shadow: 0 28px 56px -22px rgba(0,0,0,.8); }
.territoire img { width: 100%; aspect-ratio: 5/4; object-fit: cover; transition: transform .7s var(--ease); }
.territoire article:hover img { transform: scale(1.05); }
.territoire__bas { padding: 1.2rem 1.25rem 1.4rem; }
.territoire b { display: block; font-family: var(--serif); font-size: 1.55rem; font-weight: 400; color: var(--sang); line-height: 1; }
.territoire strong { display: block; font-size: 1rem; font-weight: 500; color: var(--encre); margin: .55rem 0 .3rem; }
.territoire span { font-size: .88rem; color: var(--encre-douce); line-height: 1.5; }
.section--nuit .chute { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.4; color: var(--terre-clair); max-width: 44ch; }
@media (max-width: 599px) { .territoire { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .territoire__bas { padding: .9rem .85rem 1.1rem; }
  .territoire b { font-size: 1.25rem; } .territoire strong { font-size: .88rem; } .territoire span { font-size: .78rem; } }

/* ===== L'encart : un seul argument, isole, qu'on ne peut pas survoler ====
   La page disait « tout a ete refait » dans un paragraphe parmi d'autres. Cet
   argument-la vaut la page entiere : il merite son encadre. */
.encart {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.2rem, 2.5vw, 2.2rem);
  align-items: center;
  margin-top: clamp(2.6rem, 5vw, 4rem);
  padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.6rem, 3.4vw, 2.8rem);
  border-radius: var(--r-l);
  background: linear-gradient(135deg, var(--sang) 0%, #8E2C1C 100%);
  box-shadow: 0 20px 48px -26px rgba(178,58,38,.9), inset 0 1px 0 rgba(255,255,255,.2);
  color: #fff;
}
.encart__sceau {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3);
}
.encart__sceau svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.5; }
.encart p { margin: 0; font-family: var(--serif); font-size: clamp(1.35rem, 2.8vw, 2rem); line-height: 1.2; }
.encart em { font-style: italic; color: #F7D9A8; }
.encart small { display: block; margin-top: .7rem; font-family: var(--sans); font-size: .92rem; line-height: 1.55; color: rgba(255,255,255,.88); }
@media (max-width: 599px) { .encart { grid-template-columns: 1fr; gap: 1rem; } }

/* ============================================================
   LE MOUVEMENT
   Repris des Airelles, transpose au pays catalan. Tout se coupe
   sous `prefers-reduced-motion` : une transition explique un
   changement d'etat, sinon elle n'existe pas.
============================================================ */

/* ---------- Le reflet qui traverse les boutons ----------
   Il ne tourne QUE lorsque le bouton est a l'ecran : une animation qui
   s'execute hors champ consomme sans que personne la voie. */
.btn { position: relative; overflow: hidden; isolation: isolate; }
/* `inset: 0` etait le defaut : la bande couvrait toute la surface du bouton,
   donc elle l'eclaircissait au lieu de le traverser. Une bande etroite qui
   DEBORDE en haut et en bas, elle, se lit comme un reflet. Crete a .50, six
   arrets au lieu de trois. */
.btn::after {
  content: ""; position: absolute; z-index: 0;
  top: -60%; bottom: -60%; left: 0; width: 46%;
  background: linear-gradient(100deg,
    rgba(255,255,255,0) 0%, rgba(255,255,255,.06) 22%, rgba(255,255,255,.22) 38%,
    rgba(255,255,255,.50) 50%, rgba(255,255,255,.22) 62%, rgba(255,255,255,.06) 78%,
    rgba(255,255,255,0) 100%);
  transform: translate3d(-180%,0,0) skewX(-18deg);
  pointer-events: none;
  animation: btn-eclat 5.6s linear infinite;
  animation-play-state: paused;
}
.btn > * { position: relative; z-index: 1; }
.btn.est-en-vue::after { animation-play-state: running; }
.btn--ligne::after { display: none; }
@keyframes btn-eclat {
  0%, 4% { transform: translate3d(-180%,0,0) skewX(-18deg); }
  30%    { transform: translate3d(420%,0,0) skewX(-18deg); }
  100%   { transform: translate3d(420%,0,0) skewX(-18deg); }
}

/* ---------- Le film, au clic ----------
   L'affiche est une image fixe ; la video n'est creee qu'au clic, dans
   main.js. Quinze megaoctets imposes a chaque visiteur seraient une faute :
   la plupart ne lanceront jamais le film. */
.film { position: relative; margin-top: clamp(2.6rem, 5vw, 4rem); aspect-ratio: 16/9; background: var(--nuit); overflow: hidden; border-radius: var(--r-m); }
.film img { width: 100%; height: 100%; object-fit: cover; opacity: .82; }
.film button {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  background: linear-gradient(180deg, rgba(12,16,22,.1), rgba(12,16,22,.55));
  border: 0; color: #fff; cursor: pointer;
  font-family: var(--sans); font-size: .76rem; letter-spacing: .24em; text-transform: uppercase;
}
.film button .play {
  width: 84px; height: 84px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.8);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px); background: rgba(255,255,255,.08);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.film button .play svg { width: 26px; height: 26px; margin-left: 4px; }
.film button:hover .play { transform: scale(1.06); background: rgba(255,255,255,.2); }
.film video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
@media (prefers-reduced-motion: reduce) { .film button .play { transition: none; } }

/* ---------- Les plans larges, et leur travelling ----------
   L'image part legerement agrandie et se repose quand la section entre dans
   le champ. Le mouvement est lent et ne se remarque pas : c'est le but. */
.scene {
  position: relative; min-height: 92svh;
  display: flex; align-items: flex-end;
  color: var(--pierre); overflow: hidden;
}
.scene > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.12);
  transition: transform 2.6s var(--ease);
}
.scene.in-view > img { transform: scale(1); }
/* Deux voiles, et c'est necessaire : le titre se pose en bas a gauche, et un
   simple degrade vertical le laissait sur une zone claire de la photographie.
   Le second assombrit ce coin-la sans eteindre le reste de l'image. */
.scene::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(12,16,22,.3) 0%, rgba(12,16,22,.05) 26%, rgba(12,16,22,.92) 100%),
    linear-gradient(80deg, rgba(12,16,22,.78) 0%, rgba(12,16,22,.42) 38%, rgba(12,16,22,0) 68%);
}
.scene__texte {
  position: relative; z-index: 2;
  width: calc(100% - var(--gut) - var(--gut-r)); max-width: 1180px; margin-inline: auto;
  padding-bottom: clamp(3rem, 9vh, 6rem);
}
.scene__texte .grand {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2rem, 5vw, 4rem); line-height: 1.08;
  max-width: 19ch; margin: 0; color: #fff;
}
/* Le safran sur une photographie ensoleillee tombait a 2,4:1. Cet or clair
   tient 7,9:1 sur le voile, et reste la couleur catalane. */
.scene__texte .grand em { font-style: normal; color: #EFC97A; }
.scene__texte .grand { text-shadow: 0 2px 26px rgba(10,14,20,.8); }
.scene__texte .petit { margin-top: 1.1rem; max-width: 36rem; color: rgba(244,240,233,.92); text-shadow: 0 1px 14px rgba(10,14,20,.85); }
.scene__texte .eyebrow { color: #EFC97A; text-shadow: 0 1px 14px rgba(10,14,20,.85); }
.scene__texte .petit strong { color: #fff; }
/* Une pleine page un peu moins haute : trois plates de 92svh a la suite
   fatiguent, celle-ci respire sans occuper tout l'ecran. */
.scene--courte { min-height: 76svh; }

/* ---------- La jauge : de la mer au Canigou ----------
   L'equivalent de l'altimetre des Airelles, qui montait du village au
   glacier. Ici on monte de la Mediterranee au Canigou : c'est la carte
   mentale du pays catalan, et le defilement la parcourt.
   Desktop large uniquement : sur un ecran etroit elle mangerait la page. */
.jauge {
  display: none;
  position: fixed; right: 30px; top: 24vh; bottom: 24vh; width: 124px;
  z-index: 80; pointer-events: none;
  color: #fff; mix-blend-mode: difference;
  opacity: 0; transition: opacity .5s var(--ease);
}
.jauge.is-on { opacity: 1; }
.jauge__rail { position: absolute; right: 0; top: 0; bottom: 0; width: 1px; background: currentColor; opacity: .45; }
.jauge__cran { position: absolute; right: 0; width: 6px; height: 1px; background: currentColor; opacity: .6; }
.jauge__cran--fort { width: 12px; opacity: 1; }
.jauge__nom {
  position: absolute; right: 18px; transform: translateY(-50%);
  font-size: .58rem; letter-spacing: .22em; text-transform: uppercase;
  white-space: nowrap; opacity: .75;
}
.jauge__curseur {
  position: absolute; right: -4px; width: 9px; height: 9px; border-radius: 50%;
  background: currentColor; transform: translateY(50%); transition: bottom 120ms linear;
}
.jauge__lecture {
  position: absolute; right: 18px; transform: translateY(50%);
  font-family: var(--serif); font-size: 1.05rem; white-space: nowrap;
  font-variant-numeric: lining-nums tabular-nums;
  transition: bottom 120ms linear;
}
@media (min-width: 1400px) { .jauge { display: block; } }

@media (prefers-reduced-motion: reduce) {
  .btn::after { display: none; }
  .scene > img { transform: none !important; }
  .jauge { display: none !important; }
}
