/* ==========================================================================
   Dernier Cadeau — Bientôt
   Design tokens
   ========================================================================== */

:root {
  --ink: #0C3A50;
  --deep: #062634;
  --cream: #FBF8F3;
  --sand: #F5EFE5;
  --accent: #A4632F;
  --accent-light: #C97B5A;
  --slate: #6C7A82;
  --slate-dark: #5B6970;
  --white: #FFFFFF;
  --footer-text: #D6E4EA;
  --border: rgba(12, 58, 80, .14);
  --link: #155A78;
  --link-hover: #A4632F;
  --shadow-hover: 0 10px 26px rgba(6, 38, 52, .22);

  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans: 'Source Sans 3', system-ui, sans-serif;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

img { display: block; max-width: 100%; }

button, input { font: inherit; color: inherit; }

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--link-hover); }

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes dcDerive {
  0%   { transform: translate3d(0, 0, 0) scale(1.03); }
  50%  { transform: translate3d(1.4%, -1%, 0) scale(1.06); }
  100% { transform: translate3d(0, 0, 0) scale(1.03); }
}

@keyframes dcLever {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Page shell
   ========================================================================== */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
}

/* Two-column grid on desktop, collapses to one column below ~1080px
   (2 x 540px) automatically — no media query needed. */
.hero-grid {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 540px), 1fr));
  align-items: stretch;
}

/* ==========================================================================
   Content column
   ========================================================================== */

.content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(8px, 1.4vh, 18px);
  padding: clamp(28px, 4.3vh, 60px) clamp(20px, 4vw, 56px);
  background: var(--cream);
  animation: dcLever .9s ease both;
}

.logo {
  height: clamp(96px, 15vh, 150px);
  width: auto;
}

.tagline {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.0625rem, 2.4vh, 1.375rem);
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
  max-width: 34ch;
}

.heart-ornament {
  width: clamp(18px, 2.4vh, 24px);
  height: auto;
  color: var(--accent);
  margin: clamp(4px, 1.2vh, 14px) 0;
}

h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.375rem, 3.2vh, 2rem);
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 0;
  max-width: 24ch;
}

.body-text {
  font-size: clamp(.8125rem, 1.7vh, .9375rem);
  line-height: 1.6;
  color: var(--slate);
  margin: 0;
  max-width: 52ch;
}

.body-text--tight { max-width: 48ch; }

/* ---- Trust pillars ---- */

.pillars {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(24px, 4vw, 56px);
  margin: clamp(4px, 1.1vh, 12px) 0 0;
  padding: 0;
}

.pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--accent);
}

.pillar svg {
  width: clamp(20px, 2.8vh, 26px);
  height: auto;
}

.pillar span {
  font-size: clamp(.625rem, 1.4vh, .75rem);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* ---- E-mail signup card ---- */

.signup-card {
  width: min(100%, 480px);
  margin: clamp(8px, 1.6vh, 20px) 0 0;
  background: var(--sand);
  border-radius: 14px;
  padding: clamp(14px, 1.9vh, 22px);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.5vh, 16px);
}

.signup-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.signup-card__badge {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: clamp(42px, 5.4vh, 52px);
  height: clamp(42px, 5.4vh, 52px);
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
}

.signup-card__intro { min-width: 0; }

.signup-card__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1rem, 2vh, 1.1875rem);
  color: var(--ink);
  margin: 0 0 3px;
}

.signup-card__subtitle {
  font-size: clamp(.8125rem, 1.6vh, .9375rem);
  line-height: 1.45;
  color: var(--slate-dark);
  margin: 0;
}

.signup-card__confirmation {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--cream);
  font-size: clamp(.8125rem, 1.6vh, .9375rem);
  line-height: 1.45;
  color: var(--ink);
}

.signup-card__confirmation svg {
  flex: 0 0 auto;
  color: var(--accent);
}

.signup-card__confirmation[hidden] { display: none; }

.signup-card__form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.signup-card__form[hidden] { display: none; }

.signup-card__form input {
  flex: 1 1 180px;
  min-width: 0;
  min-height: clamp(46px, 5.6vh, 54px);
  padding: 13px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  font-size: clamp(.875rem, 1.7vh, 1rem);
  color: var(--ink);
}

.signup-card__form input:focus-visible { border-color: var(--accent); }

.signup-card__form button {
  flex: 1 1 160px;
  min-height: clamp(46px, 5.6vh, 54px);
  padding: 13px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: clamp(.8125rem, 1.6vh, .9375rem);
  font-weight: 700;
  cursor: pointer;
  transition: background-color .3s ease, box-shadow .3s ease;
}

.signup-card__form button:hover {
  background-color: var(--deep);
  box-shadow: var(--shadow-hover);
}

/* ---- Privacy note ---- */

.privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: clamp(.6875rem, 1.45vh, .8125rem);
  line-height: 1.45;
  color: var(--slate);
  margin: clamp(8px, 1.4vh, 14px) 0 0;
}

.privacy-note svg {
  flex: 0 0 auto;
  color: var(--accent);
}

/* ==========================================================================
   Photo column
   ========================================================================== */

.photo {
  position: relative;
  min-width: 0;
  /* This min-height is what gives the photo its band height once the
     grid collapses to a single column on tablet/mobile. */
  min-height: clamp(300px, 44vh, 520px);
  overflow: hidden;
  background: var(--ink);
}

.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 58%;
  animation: dcDerive 34s ease-in-out infinite;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--ink), var(--deep));
  color: var(--cream);
}

.site-footer__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(16px, 2.2vh, 24px) clamp(20px, 4vw, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.6vh, 16px) clamp(20px, 3vw, 40px);
  text-align: center;
}

.site-footer__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1rem, 2vh, 1.25rem);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0;
}

.site-footer__title sup {
  font-size: .55em;
  letter-spacing: 0;
}

.site-footer__heart {
  width: 16px;
  height: auto;
  color: var(--accent-light);
}

.site-footer__signature {
  font-size: clamp(.8125rem, 1.6vh, .9375rem);
  line-height: 1.5;
  color: var(--footer-text);
  margin: 0;
}

/* Below the same ~1080px threshold where the hero grid collapses to one
   column, the footer's three items stack onto separate centred lines
   (matches the Figma 375 / 393 / 768 exports). */
@media (max-width: 1079px) {
  .site-footer__inner { flex-direction: column; }
}
