/*
Theme Name: Quatre Septembre — Page d’attente
Description: Page d’attente Quatre Septembre avec fond Reflets parisiens, logo et contact. Réglages dans Apparence > Personnaliser > Page d’attente.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: quatre-septembre-attente
*/

:root {
  color-scheme: dark;
  --paper: #f6f7f7;
  --ink: #1a1a1a;
  --red: #c73c33;
  --serif: "freight-big-pro", Georgia, serif;
  --sans: "neue-haas-unica", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--ink); }
body { margin: 0; color: var(--paper); -webkit-font-smoothing: antialiased; }
::selection { background: var(--red); color: #fff; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 580px;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.photograph, .shade, .film-grain { position: absolute; inset: 0; pointer-events: none; }
.photograph {
  z-index: -3;
  background: url("assets/reflets-parisiens.webp") center / cover no-repeat;
}
.shade {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(26,26,26,.1) 0%, rgba(26,26,26,.08) 30%, rgba(26,26,26,.56) 100%),
    linear-gradient(90deg, rgba(26,26,26,.18), transparent 70%);
}
.film-grain {
  z-index: -1;
  background: url("assets/grain.svg") repeat;
  opacity: .07;
  mix-blend-mode: overlay;
}

.masthead {
  position: absolute;
  top: 28.8%;
  left: 2.25%;
  right: 3.4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: block;
  width: clamp(195px, 13.5vw, 300px);
  height: auto;
}
.contact {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 44px;
  padding: 9px 14px;
  background: var(--paper);
  color: var(--ink);
  font: 400 11px/1.2 var(--sans);
  text-transform: uppercase;
  letter-spacing: .06em;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.contact svg { display: block; width: 17px; height: 17px; }
.contact:hover { background: var(--red); color: #fff; }
.contact:focus-visible { outline: 2px solid #fff; outline-offset: 6px; }

.hero h1 {
  position: absolute;
  left: 2.25%;
  right: 5%;
  bottom: 13%;
  margin: 0;
  font: 400 clamp(55.25px, 4.505vw, 127.5px)/.99 var(--serif);
  font-synthesis: none;
  letter-spacing: normal;
}

@media (max-width: 900px) {
  .masthead { top: 18%; left: 5%; right: 5%; }
  .hero h1 { left: 5%; bottom: 18%; font-size: 6.8vw; }
}

@media (max-width: 600px) {
  .hero { min-height: 480px; }
  .masthead { top: 12%; gap: 18px; }
  .brand { width: clamp(155px, 44vw, 200px); }
  .contact { gap: 14px; padding-inline: 11px; font-size: 10px; }
  .contact svg { width: 14px; height: 14px; }
  .photograph { background-position: 58% center; }
  .hero h1 { bottom: 20%; font-size: 10.2vw; line-height: 1.01; }
}

@media (max-height: 500px) and (min-width: 601px) {
  .hero { min-height: 360px; }
  .masthead { top: 10%; }
  .hero h1 { bottom: 12%; font-size: clamp(42px, 6vw, 65px); }
}

@media (prefers-reduced-motion: reduce) {
  .contact { transition: none; }
}

/* Le titre peut être modifié dans WordPress. */
.hero h1 { overflow-wrap: anywhere; }
/* Réserver la place de la barre d’administration pour les utilisateurs connectés. */
.admin-bar .hero {
  height: calc(100vh - 32px);
  height: calc(100svh - var(--wp-admin--admin-bar--height, 32px));
}
@media (max-width: 782px) {
  .admin-bar .hero {
    height: calc(100vh - 46px);
    height: calc(100svh - var(--wp-admin--admin-bar--height, 46px));
  }
}
