/* Hotel XXIII : une entrée d'hôtel, à mi-voix. Rien n'est chargé ailleurs que sur ce site. */

@font-face {
  font-family: "EB Garamond";
  src: url("polices/ebgaramond.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("polices/ebgaramond-italique.woff2") format("woff2");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* les couleurs de l'identité (fabrique_visuels.py) */
  --noir: #06060c;
  --nuit: #0e0f24;
  --profond: #1f2354;
  --accent: #3f46a8;
  --clair: #9aa4f5;
  --ivoire: #ece6d6;
  --ivoire-pale: #b2ac9e;
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
}

[hidden] { display: none !important; }

/* une seule langue visible à la fois ; sans JavaScript, l'anglais */
html[data-langue="en"] body [lang]:not([lang="en"]),
html[data-langue="fr"] body [lang]:not([lang="fr"]),
html[data-langue="de"] body [lang]:not([lang="de"]) { display: none; }

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--noir);
  color: var(--ivoire);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  font-variant-numeric: oldstyle-nums;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--clair); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--ivoire); }
:focus-visible { outline: 1px solid var(--clair); outline-offset: 4px; border-radius: 2px; }

/* ------------------------------------------------------------------ le fond, fixe */
.fond {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--nuit);
}
.fond img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  display: block;
}
.fond::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 6, 12, 0.92) 0%, rgba(6, 6, 12, 0.72) 32%, rgba(6, 6, 12, 0.15) 62%, rgba(6, 6, 12, 0.35) 100%);
}

/* ------------------------------------------------------------------ le sélecteur de langue */
.langues {
  position: absolute;
  top: 1.1rem;
  right: 1.4rem;
  display: flex;
  gap: 0.15rem;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
}
.langues a {
  color: var(--ivoire-pale);
  text-decoration: none;
  padding: 0.55rem 0.45rem;
  opacity: 0.7;
}
.langues a:hover { opacity: 1; color: var(--ivoire); }
.langues a[aria-current="true"] { color: var(--clair); opacity: 1; }
.langues span[aria-hidden] { color: var(--accent); padding: 0.55rem 0; }

/* ------------------------------------------------------------------ la colonne */
main {
  width: min(36rem, 100%);
  padding: 0 clamp(1rem, 6vw, 6rem);
  margin-left: clamp(0rem, 4vw, 4rem);
}

.accueil {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 5rem 0 3rem;
}

.monogramme {
  width: 64px;
  height: 64px;
  margin-bottom: 1.6rem;
  opacity: 0.92;
}

h1 {
  margin: 0;
  font-weight: 500;
  line-height: 1;
}
h1 .hotel {
  display: block;
  font-size: clamp(3.2rem, 12vw, 5.6rem);
  letter-spacing: 0.16em;
  margin-right: -0.16em;           /* l'espacement ne décale pas le mot */
  text-shadow: 0 0 2.4rem rgba(6, 6, 12, 0.9);
}
h1 .numero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin-top: 0.5rem;
  color: var(--clair);
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  letter-spacing: 0.22em;
}
h1 .numero::before, h1 .numero::after {
  content: "";
  width: clamp(2.5rem, 12vw, 5.5rem);
  border-top: 1px solid var(--clair);
  opacity: 0.8;
}
h1 .numero span { margin-right: -0.22em; }

.signature {
  margin: 1.6rem 0 0;
  font-style: italic;
  font-size: clamp(1.15rem, 3.6vw, 1.4rem);
  color: var(--ivoire);
  text-wrap: balance;
}
.devise {
  margin: 0.6rem 0 0;
  color: var(--ivoire-pale);
  font-size: 1rem;
  text-wrap: balance;
}

/* ------------------------------------------------------------------ les liens vers les chaînes */
.chaines {
  margin-top: 2.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 3rem;
  padding: 0.6rem 1.6rem;
  border: 1px solid var(--clair);
  border-radius: 2px;
  background: rgba(14, 15, 36, 0.55);
  color: var(--ivoire);
  text-decoration: none;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  transition: background 0.3s, border-color 0.3s;
}
.bouton:hover { background: rgba(63, 70, 168, 0.45); color: var(--ivoire); }
.bouton svg { width: 1.1rem; height: 1.1rem; fill: var(--clair); flex: none; }
/* le bouton secondaire (TikTok) : même forme, plus léger que YouTube */
.bouton.second {
  min-height: 2.6rem;
  padding: 0.45rem 1.4rem;
  font-size: 0.95rem;
  background: transparent;
  border-color: rgba(154, 164, 245, 0.45);
  color: var(--ivoire-pale);
}
.bouton.second:hover { border-color: var(--clair); color: var(--ivoire); background: rgba(63, 70, 168, 0.25); }
.autres li.en-boutons { gap: 0.6rem; }
.pistes { margin: 0; font-size: 0.9rem; color: var(--ivoire-pale); font-style: italic; text-wrap: balance; }

.autres {
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}
.autres li { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0.2rem 0.9rem; }
.autres li + li { margin-top: 0.35rem; }
.autres .reseau { color: var(--ivoire-pale); letter-spacing: 0.12em; font-size: 0.8rem; text-transform: uppercase; }
.autres a { padding: 0.35rem 0; }

/* ------------------------------------------------------------------ les sections du bas */
.section {
  padding: 2.2rem 0;
  border-top: 1px solid rgba(154, 164, 245, 0.22);
}
.section h2 {
  margin: 0 0 0.8rem;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--clair);
}
.section p { margin: 0 0 0.8rem; color: var(--ivoire); }
.section p:last-child { margin-bottom: 0; }
.discret { color: var(--ivoire-pale) !important; font-size: 0.95rem; }
.section p.signe { margin-top: -0.2rem; font-style: italic; color: var(--clair); font-size: 1rem; text-align: right; }

/* les souvenirs (fonds d'écran, extraits, anthologies) : cachés tant que rien n'est prêt */
.souvenirs ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.souvenirs a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(154, 164, 245, 0.35);
  background: rgba(14, 15, 36, 0.5);
  text-decoration: none;
  color: var(--ivoire);
}
.souvenirs a:hover { border-color: var(--clair); }
.souvenirs small { color: var(--ivoire-pale); font-style: italic; }

/* ------------------------------------------------------------------ la sonnette de la réception */
.reception {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.sonnette {
  flex: none;
  width: 4.5rem;
  height: 4.5rem;
  padding: 0.4rem;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sonnette svg { width: 100%; height: 100%; overflow: visible; }
.sonnette .cloche { transform-origin: 32px 40px; }
.sonnette .bouton-cloche { transition: transform 0.08s; }
.sonnette .onde { fill: none; stroke: var(--clair); stroke-width: 1; opacity: 0; }
.sonnette.sonne .bouton-cloche { transform: translateY(2px); }
.sonnette.sonne .cloche { animation: frisson 0.6s ease-out; }
.sonnette.sonne .onde { animation: onde 1.2s ease-out; }
.sonnette.sonne .onde.deux { animation-delay: 0.18s; }
@keyframes frisson {
  0% { transform: rotate(0); }
  20% { transform: rotate(-3deg); }
  40% { transform: rotate(2.5deg); }
  60% { transform: rotate(-1.5deg); }
  80% { transform: rotate(0.8deg); }
  100% { transform: rotate(0); }
}
@keyframes onde {
  0% { opacity: 0.8; transform: scale(0.7); }
  100% { opacity: 0; transform: scale(1.5); }
}
.sonnette .onde { transform-origin: 32px 26px; }
.reponse {
  margin: 0;
  min-height: 3.4em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-style: italic;
  color: var(--ivoire-pale);
}
.reponse .ligne { transition: opacity 0.9s; }
.reponse .ligne.efface { opacity: 0; }

/* ------------------------------------------------------------------ le pied */
footer {
  padding: 2rem 0 2.6rem;
  border-top: 1px solid rgba(154, 164, 245, 0.22);
  font-size: 0.9rem;
  color: var(--ivoire-pale);
}
footer p { margin: 0 0 0.3rem; }

/* ------------------------------------------------------------------ la page des mentions légales */
.mentions { padding-top: 5rem; padding-bottom: 1rem; }
.mentions h1 { font-size: 2rem; letter-spacing: 0.04em; margin-bottom: 0.4rem; }
.mentions .retour { display: inline-block; margin-bottom: 2rem; font-size: 0.95rem; }
.mentions dl { margin: 0; display: grid; grid-template-columns: minmax(8rem, auto) 1fr; gap: 0.35rem 1.2rem; }
.mentions dt { color: var(--ivoire-pale); }
.mentions dd { margin: 0; }
.a-remplir {
  background: rgba(255, 196, 90, 0.14);
  color: #ffd38a;
  outline: 1px dashed #ffd38a;
  padding: 0 0.3rem;
  font-style: normal;
}

/* ------------------------------------------------------------------ le grand écran : la maison à côté de l'accueil */
@media (min-width: 1100px) and (orientation: landscape) {
  /* tout grandit avec l'écran : ~17 px à 1366, ~19 px à 1920, 20 px au plus */
  html { font-size: clamp(100%, 0.35vw + 0.75rem, 125%); }
  .fond::after {
    background:
      linear-gradient(90deg, rgba(6, 6, 12, 0.92) 0%, rgba(6, 6, 12, 0.72) 30%, rgba(6, 6, 12, 0.3) 55%, rgba(6, 6, 12, 0.12) 70%, rgba(6, 6, 12, 0.35) 100%);
  }
  main.deux-colonnes {
    width: auto;
    max-width: 76rem;
    padding: 0 clamp(2rem, 4vw, 5rem);
    margin-left: clamp(0rem, 3vw, 4rem);
    display: grid;
    grid-template-columns: minmax(22rem, 30rem) minmax(20rem, 27rem);
    column-gap: clamp(3rem, 6vw, 7rem);
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
  }
  .accueil { min-height: 0; padding: 4rem 0; }
  .monogramme { width: 5.25rem; height: 5.25rem; margin-bottom: 1.8rem; }   /* l'image fait 160 px : nette jusqu'à 20 px de texte */
  .cote {
    margin: 2.5rem 0;
    padding: 2.2rem 2.6rem;
    background: rgba(6, 6, 12, 0.62);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(154, 164, 245, 0.16);
    border-radius: 2px;
  }
  .cote > .section:first-child { border-top: 0; padding-top: 0; }
  .cote footer { padding-bottom: 0; }
}

/* ------------------------------------------------------------------ le téléphone */
@media (max-width: 760px), (orientation: portrait) {
  .fond img { object-position: 50% 0%; }
  .fond::after {
    background: linear-gradient(180deg, rgba(6, 6, 12, 0.15) 0%, rgba(6, 6, 12, 0.45) 30%, rgba(6, 6, 12, 0.88) 58%, rgba(6, 6, 12, 0.96) 100%);
  }
  main { margin: 0 auto; padding: 0 1rem; }
  .accueil { justify-content: flex-end; padding: 22vh 0 2.4rem; }
  .langues { right: 0.6rem; top: 0.5rem; }
  .bouton { width: 100%; max-width: 22rem; }
  .mentions dl { grid-template-columns: 1fr; gap: 0.1rem; }
  .mentions dd { margin-bottom: 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sonnette.sonne .cloche, .sonnette.sonne .onde { animation: none; }
  .reponse .ligne, .bouton { transition: none; }
}
