/* 212 LAB — l'accueil devient une page d'arrivée (21/11/2026) : la façade et « Ouvrir la carte », la terrasse du matin au soir,
   les avis, la galerie, puis le pied de page avec l'adresse et l'accès. La carte, elle, reste sur /carte/. */

/* ---------- le bouton « Ouvrir la carte », au centre sous la façade */
.h-bas { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.h-bascule { justify-self: start; }
.h-entrez { justify-self: end; margin-left: 0; }
.h-carte { justify-self: center; padding: 15px 26px; font-size: 1rem; box-shadow: 0 14px 28px -16px rgba(68, 87, 60, .9); animation: h-carte-arrive .8s cubic-bezier(.2, .8, .2, 1) 1.2s backwards; }
.ouverture .h-carte { animation-delay: 3s; }
@keyframes h-carte-arrive { from { opacity: 0; transform: translateY(16px); } }
.h-entre .h-carte { opacity: 0; transition: opacity .3s; }
@media (hover: none) { .h-entrer::after { display: none; } }
@media (max-width: 900px) {
  .h-bas { grid-template-columns: auto 1fr; gap: 10px; }
  .h-carte { justify-self: end; padding: 13px 18px; font-size: .92rem; }
}

/* ---------- les avis */
.avis-bloc { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(26px, 5vw, 70px); align-items: center; max-width: 1040px; margin: 34px auto 0; }
.avis-grand { display: grid; justify-items: center; text-align: center; gap: 10px; }
.avis-grand b { font: 400 clamp(5rem, 11vw, 8.5rem)/.85 var(--titre); }
.avis-grand .etoiles { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: 6px; }
.avis-grand span:last-child { color: var(--encre-2); line-height: 1.5; }
.avis-titre { margin: 0 0 16px; font: 600 .82rem/1.3 var(--etroit); letter-spacing: .2em; text-transform: uppercase; color: var(--vert-fonce); }
.avis-mots ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.avis-mots li { position: relative; display: inline-block; justify-self: start; font: 400 clamp(2.2rem, 5vw, 3.8rem)/1.08 var(--titre); text-transform: uppercase; padding-bottom: 4px; }
.avis-mots li::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--vert); transform-origin: 0 50%; transform: scaleX(0); }
.avis-mots li:nth-child(2) { margin-left: 1.2em; } .avis-mots li:nth-child(3) { margin-left: .5em; } .avis-mots li:nth-child(4) { margin-left: 1.8em; }
.js .avis-mots li { opacity: 0; transform: translateY(24px); }
.avis-mots.vu li { opacity: 1; transform: none; transition: opacity .7s calc(var(--k) * .16s), transform .9s cubic-bezier(.2, .8, .2, 1) calc(var(--k) * .16s); }
.avis-mots.vu li::after { transform: scaleX(1); transition: transform .7s cubic-bezier(.5, 0, .2, 1) calc(.35s + var(--k) * .16s); }
@media (max-width: 760px) { .avis-bloc { grid-template-columns: 1fr; } .avis-mots { text-align: left; } }

/* ---------- la photo en grand */
.gal-voir { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 20px;
  background: rgba(24, 21, 22, .94); animation: fondu .3s; }
.gal-voir[hidden] { display: none; }
.gal-voir figure { margin: 0; display: grid; justify-items: center; gap: 14px; min-height: 0; }
.gal-voir img { max-width: 100%; max-height: calc(100vh - 110px); max-height: calc(100svh - 110px); object-fit: contain; border-radius: 8px; background: #fff; animation: gal-zoom .45s cubic-bezier(.2, .8, .2, 1); }
.gal-voir figcaption { color: #efe2d2; font: 600 .9rem/1 var(--etroit); letter-spacing: .16em; text-transform: uppercase; }
.gal-x, .gal-prec, .gal-suiv { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(239, 226, 210, .6); background: none; color: #efe2d2; cursor: pointer; display: grid; place-items: center; }
.gal-x { position: absolute; top: 18px; right: 18px; font-size: 1.6rem; line-height: 1; }
.gal-prec svg, .gal-suiv svg { width: 22px; height: 22px; }
@keyframes gal-zoom { from { opacity: 0; transform: scale(.94); } }
@keyframes fondu { from { opacity: 0; } }
@media (max-width: 760px) {
  .gal-voir { grid-template-columns: 1fr; padding: 70px 10px 90px; }
  .gal-prec, .gal-suiv { position: absolute; bottom: 24px; }
  .gal-prec { left: calc(50% - 60px); } .gal-suiv { right: calc(50% - 60px); }
}

@media (prefers-reduced-motion: reduce) {
  .js .avis-mots li { opacity: 1; transform: none; }
}

/* ================= 21/11 : revue ordinateur — tout est centré, rien ne pend */
/* le héros tient en un écran : on n'entre plus par la porte en défilant */
.heros { height: 100vh; height: 100svh; }
@media (max-width: 900px) { .heros { height: 100svh; } }

/* les avis, au centre : la note, puis les mots sur une ligne */
.avis-bloc { display: grid; grid-template-columns: 1fr; justify-items: center; text-align: center; gap: clamp(26px, 4vw, 44px); max-width: 1100px; }
.avis-grand { display: grid; justify-items: center; gap: 12px; margin: 0; padding: 0; border: 0; }
.avis-grand b { font: 400 clamp(5.5rem, 10vw, 8rem)/.85 var(--titre); }
.avis-src { color: var(--encre-2); font-size: 1rem; }
.avis-mots { width: 100%; text-align: center; }
.avis-titre { margin-bottom: 18px; }
.avis-mots ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px clamp(28px, 4vw, 64px); }
.avis-mots li, .avis-mots li:nth-child(n) { margin-left: 0; justify-self: auto; font-size: clamp(2rem, 4.4vw, 3.6rem); }
.avis-mots li + li::before { content: ''; position: absolute; left: calc(-1 * clamp(14px, 2vw, 32px) - 5px); top: 50%; width: 9px; height: 9px; background: var(--vert); transform: rotate(45deg); }


/* les sous-titres de section ne se coupent plus en colonne étroite */
.feuille .sous { max-width: 70ch; }

/* les quatre mots des avis sur une seule ligne sur ordinateur, en colonne au téléphone (mots sans retour) */
@media (min-width: 761px) { .avis-mots ul { flex-wrap: nowrap; } .avis-mots li, .avis-mots li:nth-child(n) { font-size: clamp(1.6rem, 3vw, 2.8rem); } }
@media (max-width: 760px) { .avis-mots ul { flex-direction: column; align-items: center; gap: 4px; } .avis-mots li + li::before { display: none; } }

/* ================= 21/11 : la page du soir — avec « Voir le soir » (ou la nuit à Rabat), toute la page passe en bleu nuit,
   comme le lavis de la façade ; les couleurs glissent de l'une à l'autre (la page du soir) */
@property --papier { syntax: '<color>'; inherits: true; initial-value: #efe2d2; }
@property --papier-2 { syntax: '<color>'; inherits: true; initial-value: #e7d6c1; }
@property --papier-3 { syntax: '<color>'; inherits: true; initial-value: #f6ece0; }
@property --encre { syntax: '<color>'; inherits: true; initial-value: #231f20; }
@property --encre-2 { syntax: '<color>'; inherits: true; initial-value: #4a4341; }
@property --vert { syntax: '<color>'; inherits: true; initial-value: #5d7253; }
@property --vert-fonce { syntax: '<color>'; inherits: true; initial-value: #44573c; }
:root, .pied { transition: --papier 1.2s ease, --papier-2 1.2s ease, --papier-3 1.2s ease, --encre 1.2s ease, --encre-2 1.2s ease, --vert 1.2s ease, --vert-fonce 1.2s ease; }
html.soir { --papier: #1d2334; --papier-2: #262e44; --papier-3: #2d364f; --encre: #efe2d2; --encre-2: #c4b8ab; --vert: #a3b896; --vert-fonce: #c2d4b4; color-scheme: dark; }
/* le pied de page reste sombre : encre de nuit, texte crème */
html.soir .pied { --papier: #efe2d2; --papier-2: #e7d6c1; --papier-3: #f6ece0; --encre: #141927; --encre-2: #c4b8ab; --vert: #a3b896; --vert-fonce: #c2d4b4; }
html.soir .h-colle::after { background: radial-gradient(circle at 50% 64%, #2a3349 0%, var(--papier) 60%); }
html.soir body::before { opacity: 0; }
/* le soir, les boutons pleins gardent le vert du 212 et le texte crème */
html.soir .bouton.plein { background: #5d7253; border-color: #5d7253; color: #f6ece0; }
html.soir .bouton.plein:hover { background: #efe2d2; border-color: #efe2d2; color: #1d2334; }
html.soir .h-repli { filter: brightness(.55) saturate(.8) hue-rotate(-12deg); }
@media (prefers-reduced-motion: reduce) { :root, .pied { transition: none; } }

/* l'aquarelle se fond dans la page sur ses quatre bords (bords fondus) : ni le jour ni le soir on ne voit le carré de l'image */
.h-toile, .h-repli {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 7%, #000 94%, transparent), linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent, #000 7%, #000 94%, transparent), linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-composite: intersect; }
/* téléphone : la façade remonte un peu, au milieu entre la devise et les boutons */
/* (21/11 : essai de remonter la façade abandonné, elle était mieux centrée sans) */
