/* ==========================================================================
   Casa Saveur — Page d'attente
   Palette issue du logo · Fraunces + DM Sans
   ========================================================================== */

:root {
  --brun:        #7C622E;
  --vert:        #354A2F;
  --vert-hover:  #2A3B25;
  --ivoire:      #FBF6ED;
  --creme:       #F2DEC0;
  --noir:        #2A2722;
  --rouge:       #CD3121;

  --font-titre:  "Fraunces", Georgia, serif;
  --font-texte:  "DM Sans", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-texte);
  background: var(--ivoire);
  color: var(--noir);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   Décor : illustrations au trait dans les coins
   -------------------------------------------------------------------------- */

.deco {
  position: fixed;
  width: clamp(120px, 18vw, 220px);
  height: auto;
  stroke: var(--brun);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
}

.deco--tl { top: 24px; left: 24px; }
.deco--br { bottom: 24px; right: 24px; }

/* --------------------------------------------------------------------------
   Mise en page
   -------------------------------------------------------------------------- */

.page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 24px;
  position: relative;
  z-index: 1;
}

.card-wrap {
  width: 100%;
  max-width: 640px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Logo + tampon
   -------------------------------------------------------------------------- */

.logo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 32px;
}

.logo {
  width: clamp(180px, 40vw, 240px);
  height: auto;
  display: block;
}

.stamp {
  position: absolute;
  top: -10px;
  right: -78px;
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--brun);
  border-radius: 50%;
  color: var(--brun);
  font-family: var(--font-texte);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.35;
  transform: rotate(8deg);
}

/* --------------------------------------------------------------------------
   Textes
   -------------------------------------------------------------------------- */

.kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vert);
  margin-bottom: 16px;
}

.title {
  font-family: var(--font-titre);
  font-weight: 600;
  font-size: clamp(2rem, 5.5vw, 3rem);
  line-height: 1.15;
  color: var(--brun);
  margin-bottom: 12px;
  text-wrap: balance;
}

.title em {
  font-style: italic;
  font-weight: 500;
}

.subtitle {
  font-family: var(--font-titre);
  font-style: italic;
  font-size: clamp(1.1rem, 2.6vw, 1.3rem);
  color: var(--vert);
  margin-bottom: 20px;
}

.lead {
  max-width: 52ch;
  margin: 0 auto 36px;
  color: var(--noir);
}

/* --------------------------------------------------------------------------
   Carte infos pratiques
   -------------------------------------------------------------------------- */

.infos {
  background: var(--creme);
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 32px;
  text-align: left;
}

.infos ul { list-style: none; }

.infos li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
}

.infos li + li { border-top: 1px solid rgba(124, 98, 46, 0.18); }

.infos .icon {
  flex: none;
  width: 22px;
  height: 22px;
  stroke: var(--vert);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 2px;
}

.infos a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(42, 39, 34, 0.3);
  transition: border-color 0.2s ease;
}

.infos a:hover { border-color: var(--noir); }

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */

.actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 30px;
  border-radius: 999px;
  font-family: var(--font-texte);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn--primary {
  background: var(--vert);
  color: var(--ivoire);
}

.btn--primary:hover {
  background: var(--vert-hover);
  transform: translateY(-2px);
}

.btn--secondary {
  border: 1.5px solid var(--brun);
  color: var(--brun);
}

.btn--secondary:hover {
  background: var(--brun);
  color: var(--ivoire);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Réseaux sociaux
   -------------------------------------------------------------------------- */

.social p {
  font-family: var(--font-titre);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--vert);
  margin-bottom: 12px;
}

.social__links {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.social__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--brun);
  border-radius: 50%;
  color: var(--brun);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social__links a:hover {
  background: var(--brun);
  color: var(--ivoire);
  transform: translateY(-2px);
}

.social__links .icon {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 1.6;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px 24px 28px;
  font-size: 0.85rem;
  color: rgba(42, 39, 34, 0.65);
}

.footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer a:hover { color: var(--noir); }

/* --------------------------------------------------------------------------
   Accessibilité
   -------------------------------------------------------------------------- */

:focus-visible {
  outline: 3px solid var(--vert);
  outline-offset: 3px;
  border-radius: 4px;
}

.btn:focus-visible,
.social__links a:focus-visible { outline-offset: 2px; }

/* --------------------------------------------------------------------------
   Séquence d'apparition au chargement (une seule fois)
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 0.6s ease forwards;
  animation-delay: calc(var(--d, 0) * 90ms);
}

@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .btn, .social__links a { transition: none; }
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  .page { padding: 36px 20px 16px; }

  .stamp {
    right: -52px;
    width: 68px;
    height: 68px;
    font-size: 0.62rem;
  }

  .infos { padding: 22px 20px; }

  .infos li span { font-size: 0.95rem; }

  .actions { gap: 12px; }

  .btn { width: 100%; }

  .deco--tl { top: 10px; left: 10px; opacity: 0.1; }
  .deco--br { bottom: 10px; right: 10px; opacity: 0.1; }
}
