/* SIMO International — page d'attente (demandes client des 30/11 et 01/12/2026) :
   fond blanc, texte noir, anglais uniquement, cadre doré façon tableau, formulaire de contact discret. */

/* Polices auto-hébergées, fichiers variables (sous-ensemble latin, licence OFL : voir fonts/LICENSES.txt) */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/cormorant-garamond-latin.woff2") format("woff2"); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/manrope-latin.woff2") format("woff2"); }

:root {
  --ink: #111111;
  --ink-soft: #4A463F;
  --white: #FFFFFF;
  --paper: #FAF8F3;
  --line: #5E5A52;
  --gold: #C9A24E;
  --error: #9B1C1C;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: Manrope, system-ui, sans-serif;
}

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
}
body.is-locked { overflow: hidden; }

input, textarea, button { font-family: inherit; }
input:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Cadre doré (façon tableau) ----------
   Baguette dorée fine au dégradé métallique, léger éclairage en biseau (coins à 45°),
   arêtes sombres et ombre douce sur la page, filet doré intérieur. */
.frame {
  --frame: 16px;                       /* largeur de la baguette */
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  border: var(--frame) solid #C9A24E;
  border-image: linear-gradient(135deg,
    #9A7430 0%, #D8B865 18%, #F2DFA2 32%, #C29A47 50%,
    #EED896 66%, #A8812F 84%, #DCC07A 100%) 1;
  box-shadow:
    inset 0 0 0 1px rgba(62, 44, 12, 0.55),       /* arête intérieure */
    inset 0 2px 10px rgba(40, 28, 6, 0.16);       /* ombre douce du cadre sur la page */
}
/* éclairage en biseau + arête extérieure, posés sur la baguette */
.frame::before {
  content: "";
  position: absolute;
  inset: calc(var(--frame) * -1);
  border: var(--frame) solid transparent;
  border-color: rgba(255, 250, 225, 0.22) rgba(30, 20, 0, 0.10) rgba(30, 20, 0, 0.20) rgba(255, 250, 225, 0.12);
  box-shadow: inset 0 0 0 1px rgba(62, 44, 12, 0.55);
}
/* filet doré intérieur */
.frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid #C9A24E;
}

/* ---------- Page ---------- */
.page {
  min-height: 100vh;
  min-height: 100svh;
  padding: 80px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.brand {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(30px, 6.6vw, 108px);
  line-height: 1.02;
  letter-spacing: 0.035em;
  /* relief discret : ombre portée douce sous les lettres */
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18), 0 3px 4px rgba(0, 0, 0, 0.12), 0 8px 18px rgba(0, 0, 0, 0.08);
}
.brand__sa {
  font-size: max(0.3em, 12px);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.since {
  margin: clamp(14px, 1.6vw, 22px) 0 0;
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--ink);
  /* trait noir sous le texte ; padding gauche = espacement après la dernière lettre, pour un trait centré */
  padding: 0 0 0.25em 0.22em;
  border-bottom: 1px solid var(--ink);
}

.soon {
  margin: clamp(56px, 9vh, 104px) 0 0;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: 0.32em;
  /* compense l'espacement après la dernière lettre pour un centrage optique exact */
  margin-right: -0.32em;
}

.contact-link {
  margin-top: clamp(40px, 6vh, 64px);
  min-height: 44px;
  padding: 0 4px;
  background: transparent;
  border: 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  cursor: pointer;
}
.contact-link:hover { color: var(--ink); }

/* ---------- Panneau de contact ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(17, 17, 17, 0.45);
  display: flex;
  justify-content: flex-end;
}
.overlay[hidden] { display: none; }
.dialog {
  width: 100%;
  max-width: 520px;
  height: 100%;
  background: var(--paper);
  color: var(--ink);
  padding: 36px 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.dialog__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 42px;
  line-height: 1;
}
.dialog__close {
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form { display: flex; flex-direction: column; gap: 18px; }
.form[hidden] { display: none; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; }
.field input {
  height: 48px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0 2px;
  font-size: 17px;
  background: transparent;
  color: var(--ink);
}
.field textarea {
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 14px;
  font-size: 17px;
  line-height: 1.5;
  background: transparent;
  color: var(--ink);
  resize: vertical;
}
.field [aria-invalid="true"] { border-color: var(--error); }

.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__privacy { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.form__error { margin: 0; font-size: 14px; line-height: 1.5; color: var(--error); }
.form__error[hidden] { display: none; }

.btn {
  align-self: flex-start;
  margin-top: 6px;
  padding: 19px 36px;
  border: 0;
  border-radius: 0;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  cursor: pointer;
}
.btn:hover { background: #33312D; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.sent { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; outline: none; }
.sent[hidden] { display: none; }
.sent__title { margin: 0; font-family: var(--serif); font-size: 30px; }
.sent__text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }

/* ---------- Téléphones : titre plus présent, « S.A » lisible ---------- */
@media (max-width: 560px) {
  .frame { --frame: 10px; }
  .frame::after { inset: 6px; }
  .page { padding: 56px 28px; }
  .brand { font-size: 8.4vw; line-height: 1.08; }
  .soon { letter-spacing: 0.24em; margin-right: -0.24em; }
  .dialog { padding: 28px 22px; }
  .dialog__title { font-size: 36px; }
}

@media (prefers-reduced-motion: no-preference) {
  .overlay:not([hidden]) .dialog { animation: slide-in 0.28s ease-out; }
  @keyframes slide-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
}
