/* Les Jardins de la Rivia II — identité du projet (greige et forêt, Stardom + Syne).
   Chargée seulement sur jardins-de-la-rivia-ii.html, après site.css.
   Rythme : un seul espacement de section (--rv-section) et une seule taille de titre (h2) partout. */
@font-face { font-family: "Stardom"; src: url(../fonts/Stardom-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Syne"; src: url(../fonts/Syne-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Syne"; src: url(../fonts/Syne-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Syne"; src: url(../fonts/Syne-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }

.rv main, .rv-flottant {
  --rv-greige: #EDECE6; --rv-greige-2: #E4E2DA; --rv-papier: #E9E6DD; --rv-filet: #CFCBBF;
  --rv-encre: #2A2A24; --rv-gris: #5C5C53; --rv-foret: #3F4F3A; --rv-foret-2: #33412F; --rv-clair: #F5F4EF;
  --rv-titre: "Stardom", Didot, Georgia, serif; --rv-texte: "Syne", "Albert Sans", system-ui, sans-serif;
  --rv-marge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  --rv-section: clamp(80px, 10vw, 136px);
  --rv-h2: clamp(36px, 4.4vw, 56px);
}
.rv main { background: var(--rv-greige); color: var(--rv-encre); font-family: var(--rv-texte); font-size: 16px; line-height: 26px; }
.rv main p { max-width: none; }
.rv main :is(h1, h2, h3) { font-family: var(--rv-titre); font-weight: 400; letter-spacing: 0; text-wrap: balance; }
.rv main h2 { font-size: var(--rv-h2); line-height: 1.02; margin: 0; }
.rv main ::selection { background: #C9D1BD; color: var(--rv-encre); }
.visuellement-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rv-wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.rv-section { padding-block: var(--rv-section); }
.rv-bordure { border-top: 1px solid var(--rv-filet); }
.rv-sur { font: 600 12px/16px var(--rv-texte); letter-spacing: .16em; text-transform: uppercase; color: var(--rv-gris); margin: 0; }
.rv main .rv-titre-section { margin-bottom: var(--espace-7); }

.rv-btn { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/16px var(--rv-texte); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  color: var(--rv-encre); border: 1px solid var(--rv-encre); padding: 12px 18px; border-radius: 2px; transition: background .2s ease, color .2s ease, border-color .2s ease, transform 160ms var(--ease-out); }
.rv-btn:active { transform: scale(.97); }
.rv-btn-plein { background: var(--rv-foret); border-color: var(--rv-foret); color: var(--rv-clair); }
.rv-btn-clair { color: var(--rv-clair); border-color: var(--rv-clair); }
@media (hover: hover) and (pointer: fine) {
  .rv-btn:hover { background: var(--rv-encre); color: var(--rv-clair); }
  .rv-btn-plein:hover { background: var(--rv-foret-2); border-color: var(--rv-foret-2); }
  .rv-btn-clair:hover { background: var(--rv-clair); color: var(--rv-foret); }
}
.rv main :focus-visible { outline: 2px solid var(--rv-foret); outline-offset: 3px; }
.rv-actions { display: flex; flex-wrap: wrap; gap: var(--espace-3); }

/* ouverture : le logo se compose, puis la vidéo s'ouvre */
.rv-hero { padding-top: clamp(20px, 2.4vw, 32px); }
.rv-logo-bloc { margin: 0 auto clamp(20px, 2.4vw, 32px); width: min(340px, 64vw); }
.rv-logo { display: block; width: 100%; height: auto; overflow: visible; }
.rv-hero-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--rv-greige-2); }
.rv-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.rv-hero-bas { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--espace-6); align-items: end; padding-block: var(--espace-7) var(--rv-section); }
.rv-grand { font: 400 clamp(40px, 5.6vw, 80px)/1 var(--rv-titre); margin: 0; text-wrap: balance; }
.rv-hero-droite { display: flex; flex-direction: column; gap: var(--espace-5); }
.rv main .rv-hero-texte { margin: 0; color: var(--rv-gris); max-width: 40ch; }

.mv .rv-l-haut { animation: rvfondu 900ms var(--ease-expo) both 200ms; }
.mv .rv-lettre { transform-box: fill-box; animation: rvlettre 1100ms var(--ease-expo) both; animation-delay: calc(320ms + var(--i) * 90ms); }
.mv .rv-l-bas { animation: rvfondu 900ms var(--ease-expo) both 900ms; }
.mv .rv-hero-media { animation: rvouvre 1500ms var(--ease-expo) both 700ms; }
.mv .rv-hero-video { animation: rvzoom 2600ms var(--ease-expo) both 700ms; }
.mv .rv-hero-bas > * { animation: rvmonte 1000ms var(--ease-expo) both; animation-delay: 1300ms; }
.mv .rv-hero-bas > * + * { animation-delay: 1420ms; }
@keyframes rvlettre { from { opacity: 0; transform: translateY(38%); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0); } }
@keyframes rvfondu { from { opacity: 0; } to { opacity: 1; } }
@keyframes rvouvre { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0 0 0 0); } }
@keyframes rvzoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes rvmonte { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* images : un seul format pour toutes les photos en demi-largeur */
.rv-img { margin: 0; overflow: hidden; border-radius: 2px; background: var(--rv-greige-2); aspect-ratio: 5 / 4; }
.rv-img img { width: 100%; height: 100%; object-fit: cover; }

/* le projet : deux rangées en alternance, photos de même taille */
.rv-projet { padding-top: 0; }
.rv-zigzag { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--espace-8) clamp(40px, 7vw, 112px); align-items: center; }
.rv-bloc { display: flex; flex-direction: column; gap: var(--espace-4); align-items: flex-start; }
.rv main .rv-bloc p { margin: 0; max-width: 44ch; }
.rv-bloc .rv-btn { margin-top: var(--espace-3); }

.rv-pleine { position: relative; margin: 0; height: clamp(420px, 72svh, 760px); overflow: hidden; }
.rv-pleine img { width: 100%; height: 100%; object-fit: cover; }

/* atouts : carte « papier » avec icônes au trait */
.rv-papier { background-color: var(--rv-papier); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .33 0 0 0 0 .28 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  padding: clamp(56px, 7vw, 96px) clamp(24px, 5vw, 72px); text-align: center; border-radius: 2px; }
.rv-papier-tete { display: flex; flex-direction: column; align-items: center; gap: var(--espace-3); margin-bottom: var(--espace-8); }
.rv-papier ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--espace-7) var(--espace-5); }
.rv-papier li { display: flex; flex-direction: column; align-items: center; gap: var(--espace-3); font-size: 14px; line-height: 20px; }
.rv-icone { width: 52px; height: 52px; fill: none; stroke: var(--rv-foret); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* emplacement : coupé par un filet vertical, mêmes marges des deux côtés */
.rv-lieu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-block: 1px solid var(--rv-filet); }
.rv-lieu-texte { padding: var(--rv-section) clamp(40px, 5vw, 80px) var(--rv-section) var(--rv-marge); border-right: 1px solid var(--rv-filet); display: flex; flex-direction: column; gap: var(--espace-4); align-items: flex-start; justify-content: center; }
.rv main .rv-lieu-texte p { margin: 0; max-width: 44ch; }
.rv-lieu-texte .rv-btn { margin-top: var(--espace-3); }
.rv-lieu-media { display: flex; align-items: center; padding: var(--espace-8) var(--rv-marge) var(--espace-8) clamp(40px, 5vw, 80px); }
.rv-lieu-media .rv-img { width: 100%; }

/* image + panneau forêt */
.rv-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: clamp(460px, 70svh, 720px); }
.rv-duo-img { margin: 0; overflow: hidden; }
.rv-duo-img img { width: 100%; height: 100%; object-fit: cover; }
.rv-duo-panneau { background: var(--rv-foret); color: var(--rv-clair); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: var(--espace-4); padding: var(--rv-section) clamp(40px, 6vw, 96px); }
.rv main .rv-duo-panneau p { margin: 0; max-width: 40ch; color: #D9DDD2; }
.rv-duo-panneau .rv-btn { margin-top: var(--espace-3); }
.rv-duo-panneau :focus-visible { outline-color: var(--rv-clair); }
/* liste d'attente : formulaire sur carte claire, dans le panneau forêt */
.rv-duo-panneau .rv-liste { width: 100%; max-width: 460px; gap: var(--espace-4); margin-block: var(--espace-2); padding: clamp(20px, 3vw, 32px); background: var(--rv-clair); color: var(--rv-encre); border-radius: var(--rayon); }
.rv main .rv-duo-panneau .rv-liste p { max-width: none; color: var(--rv-encre); }
.rv main .rv-duo-panneau .rv-liste .erreur { color: #9B2C2C; }
.rv main .rv-duo-panneau .rv-liste .rv-liste-titre { font: 400 clamp(22px, 2.2vw, 26px)/1.15 var(--rv-titre); }
.rv-liste .btn { align-self: flex-start; }
.rv-duo-panneau .rv-liste :focus-visible { outline-color: var(--rv-foret); }
.rv main .rv-duo-panneau .rv-liste-autres { font-size: 15px; line-height: 24px; }
.rv-liste-autres a { color: var(--rv-clair); text-underline-offset: 3px; }

/* sélecteur */
.rv-widget { display: block; width: 100%; height: 900px; border: 0; background: transparent; }

/* FAQ */
.rv-faq-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--espace-7) clamp(40px, 7vw, 112px); }
.rv-q h3 { font-size: 24px; line-height: 28px; margin: 0 0 var(--espace-3); }
.rv main .rv-q p { margin: 0; max-width: 58ch; }
.rv-faq-appel { display: flex; flex-wrap: wrap; align-items: center; gap: var(--espace-4); margin-top: var(--espace-8); padding-top: var(--espace-7); border-top: 1px solid var(--rv-filet); }
.rv-tel { font: 400 28px/1 var(--rv-titre); color: var(--rv-encre); text-decoration: none; margin-left: auto; }

/* bouton flottant : discret, en bas à droite, après l'ouverture */
.rv-flottant { position: fixed; z-index: 30; right: var(--gutter); bottom: calc(var(--espace-5) + env(safe-area-inset-bottom, 0px)); background: var(--rv-foret); color: var(--rv-clair);
  font: 600 12px/16px var(--rv-texte); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; padding: 14px 22px; border-radius: 2px; box-shadow: 0 10px 30px rgba(42, 42, 36, .22); }
.rv-flottant:not([hidden]) { animation: rvmonte 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .rv-flottant:hover { background: var(--rv-foret-2); } }

@media (max-width: 960px) {
  .rv-hero-media { aspect-ratio: auto; height: min(62svh, 560px); }
  .rv-hero-video { object-position: 38% 50%; }
  .rv-hero-bas { grid-template-columns: minmax(0, 1fr); gap: var(--espace-5); }
  .rv-zigzag { grid-template-columns: minmax(0, 1fr); gap: var(--espace-6); }
  .rv-zigzag > :nth-child(3) { order: 4; }
  .rv-zigzag > :nth-child(4) { order: 3; margin-top: var(--espace-7); }
  .rv-papier ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rv-lieu, .rv-lieu.avec-carte, .rv-duo { grid-template-columns: minmax(0, 1fr); }
  .rv-lieu-texte { padding: var(--rv-section) var(--gutter) var(--espace-6); border-right: 0; }
  .rv-lieu-media { padding: 0 var(--gutter) var(--rv-section); }
  .rv-duo-img { aspect-ratio: 5 / 4; }
  .rv-duo-panneau { padding: var(--rv-section) var(--gutter); }
  .rv-faq-grille { grid-template-columns: minmax(0, 1fr); }
  .rv-tel { margin-left: 0; width: 100%; }
  .rv-widget { height: 1400px; }
  .rv-flottant { left: var(--gutter); right: var(--gutter); text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .rv-btn:active { transform: none; } .rv-flottant:not([hidden]) { animation: none; } }

/* Bouton pause de la vidéo d'ouverture */
.rv-video-pause { position: absolute; left: var(--espace-5); bottom: var(--espace-4); z-index: 2; min-height: 36px; padding: 6px 14px; border: 1px solid rgba(245, 244, 239, .6); border-radius: 999px; background: rgba(42, 42, 36, .45); color: var(--rv-clair, #F5F4EF); font: 600 12px/16px var(--rv-texte, sans-serif); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; backdrop-filter: blur(6px); }
.rv-video-pause:focus-visible { outline: 2px solid var(--rv-clair, #F5F4EF); outline-offset: 2px; }
@media (pointer: coarse) { .rv-video-pause { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { .rv-video-pause { display: none; } }

/* Carte « À proximité des services » aux couleurs du projet, à droite du texte « Entre la rivière et le centre-ville » */
@media (min-width: 961px) { .rv-lieu.avec-carte { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.rv-lieu .prox-carte { width: 100%; }
.rv-lieu .prox-carte .carte-svg { background: var(--rv-greige); }
.rv-lieu .prox-liste .type, .rv-lieu figcaption { color: var(--rv-gris); }
.rv-lieu .prox-liste .num { border-color: var(--rv-foret); color: var(--rv-foret); font-family: var(--rv-texte); }
.rv-lieu .prox-liste .nom { color: var(--rv-encre); }
.rv-lieu .c-rue-min path, .rv-lieu .c-rue-moy-bord path, .rv-lieu .c-rue-maj-bord path { stroke: var(--rv-encre); }
.rv-lieu .c-rue-moy path, .rv-lieu .c-rue-maj path { stroke: var(--rv-greige); }
.rv-lieu .c-nom-rue { font-family: var(--rv-texte); fill: var(--rv-gris); stroke: var(--rv-greige); }
.rv-lieu .c-parc path { fill: #C6CDBA; }
.rv-lieu .c-service rect { fill: var(--rv-greige); stroke: var(--rv-foret); }
.rv-lieu .c-service text { fill: var(--rv-foret); font-family: var(--rv-texte); }
.rv-lieu .c-ici rect, .rv-lieu .c-ici path { fill: var(--rv-foret); }
.rv-lieu .c-ici text { font-family: var(--rv-titre); fill: var(--rv-clair); }
.rv-lieu .c-autre rect, .rv-lieu .pastille-or { fill: var(--rv-greige); background: var(--rv-greige); stroke: #9A7A45; border-color: #9A7A45; }
.rv-lieu .c-autre line { stroke: #9A7A45; }
.rv-lieu .c-autre circle { fill: #9A7A45; }
.rv-lieu .c-lib text { stroke: var(--rv-greige); font-family: var(--rv-texte); }
.rv-lieu .c-lib-nom { fill: var(--rv-encre); font-size: 16px; }
.rv-lieu .c-lib-type { fill: var(--rv-gris); font-size: 13px; }
.rv-lieu .c-lib-trait { stroke: var(--rv-encre); }

/* Page d'attente avant le dévoilement (page_secret dans projet_rivia.py).
   Un seul chapitre après le film : la promesse (rv-hero-bas), le récit sur la même grille 7/5, puis les trois faits
   en bandeau typographique qui ferme le chapitre. */
.rv-bientot { padding-top: 0; }
.rv-bientot-grille { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--espace-6); align-items: end; }
.rv main .rv-bientot-texte { margin: 0; max-width: 46ch; color: var(--rv-gris); }
.rv-bientot-chiffres { margin: var(--espace-8) 0 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr); border-block: 1px solid var(--rv-filet); }
.rv-bientot-chiffres div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 var(--espace-3); padding: var(--espace-6) var(--espace-5); border-left: 1px solid var(--rv-filet); }
.rv-bientot-chiffres div:first-child { border-left: 0; padding-left: 0; }
.rv-bientot-chiffres dt { order: 2; font: 400 17px/24px var(--rv-texte); color: var(--rv-gris); }
.rv-bientot-chiffres dd { margin: 0; font: 400 clamp(44px, 5vw, 72px)/1 var(--rv-titre); color: var(--rv-foret); }
@media (max-width: 960px) {
  .rv-bientot-grille { grid-template-columns: minmax(0, 1fr); gap: var(--espace-4); align-items: start; }
  .rv-bientot-chiffres { margin-top: var(--espace-7); }
}
@media (max-width: 700px) {
  .rv-bientot-chiffres { grid-template-columns: minmax(0, 1fr); }
  .rv-bientot-chiffres div { border-left: 0; padding: var(--espace-4) 0; }
  .rv-bientot-chiffres div + div { border-top: 1px solid var(--rv-filet); }
}

/* Récit + gros plan de la façade, côte à côte ; les chiffres ferment le récit (colonne de gauche) */
.rv-bientot-duo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.rv-bientot-recit { display: flex; flex-direction: column; gap: var(--espace-5); }
.rv main .rv-bientot-recit .rv-bientot-texte { font-size: 18px; line-height: 29px; color: var(--rv-encre); opacity: .82; }
.rv-bientot-recit .rv-bientot-chiffres { margin: var(--espace-5) 0 0; grid-template-columns: minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1.4fr); }
.rv-bientot-recit .rv-bientot-chiffres div { flex-direction: column; align-items: flex-start; gap: 6px; padding: var(--espace-5) var(--espace-4); }
.rv-bientot-recit .rv-bientot-chiffres div:first-child { padding-left: 0; }
.rv-bientot-recit .rv-bientot-chiffres dt { font-size: 15px; line-height: 20px; }
.rv-bientot-recit .rv-bientot-chiffres dd { font-size: clamp(34px, 3.6vw, 54px); white-space: nowrap; }
.rv-bientot-photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; }
.rv-bientot-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 960px) {
  .rv-bientot-duo { grid-template-columns: minmax(0, 1fr); }
  .rv-bientot-photo { aspect-ratio: 4 / 3; }
}
@media (max-width: 700px) {
  .rv-bientot-recit .rv-bientot-chiffres { grid-template-columns: minmax(0, 1fr); }
  .rv-bientot-recit .rv-bientot-chiffres div { flex-direction: row; align-items: baseline; padding: var(--espace-4) 0; }
}

/* Liste d'attente (page d'attente) : panneau forêt ; à gauche la photo (3:2, presque son format d'origine) puis le texte,
   à droite le formulaire. La photo n'est plus étirée par la hauteur du formulaire. */
.rv-reserve-img { margin: 0 0 var(--espace-4); width: 100%; aspect-ratio: 3 / 2; overflow: hidden; }
.rv-reserve-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; display: block; }
.rv-duo-panneau.rv-reserve-panneau { display: block; padding: var(--rv-section) 0; }
.rv-reserve-grille { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.rv-reserve-texte { display: flex; flex-direction: column; align-items: flex-start; gap: var(--espace-4); }
.rv-reserve-grille .rv-liste { grid-column: auto; max-width: none; margin: 0; }
.rv-liste-lien { display: flex; flex-direction: column; align-items: flex-start; }
@media (max-width: 960px) {
  .rv-reserve-grille { grid-template-columns: minmax(0, 1fr); }
}
