/* ===========================
   COLDEFY.COM — feuille de style
   =========================== */

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

:root {
  --clr-bg:        #faf9f7;
  --clr-text:      #1a1917;
  --clr-muted:     #7a7872;
  --clr-border:    rgba(26, 25, 23, 0.12);
  --clr-border-hv: rgba(26, 25, 23, 0.30);
  --font-serif:    'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font-serif);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* --- Grille de fond --- */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--clr-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--clr-border) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.5;
}

/* --- Page principale --- */
.page {
  flex: 1;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 3rem;
  animation: fadeIn 1.2s ease both;
}

/* --- Bloc central --- */
.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.wordmark {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(52px, 10vw, 88px);
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--clr-text);
  line-height: 1;
  animation: slideUp 1s ease both;
}

.rule {
  width: 48px;
  height: 1px;
  background: var(--clr-border-hv);
  margin: 2rem auto;
  animation: expandRule 1s 0.3s ease both;
  transform-origin: center;
}

.tagline {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--clr-muted);
  text-transform: uppercase;
  animation: slideUp 1s 0.2s ease both;
}

/* --- Contact --- */
.contact-block {
  margin-top: 4rem;
  animation: slideUp 1s 0.4s ease both;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--clr-muted);
  text-decoration: none;
  border: 1px solid var(--clr-border);
  border-radius: 3px;
  padding: 12px 24px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.contact-link:hover {
  color: var(--clr-text);
  border-color: var(--clr-border-hv);
}

.contact-link svg {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.contact-link:hover svg {
  transform: translateY(-1px);
}

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.5rem;
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--clr-border-hv);
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes expandRule {
  from { opacity: 0; transform: scaleX(0); }
  to   { opacity: 1; transform: scaleX(1); }
}

/* --- Responsive --- */
@media (max-width: 480px) {
  .wordmark {
    letter-spacing: 0.2em;
  }
  .tagline {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-align: center;
  }
  .contact-link {
    font-size: 13px;
    padding: 10px 18px;
  }
}
