/* =============================================================
   MAIN.CSS — Variables, reset, typographie globale
   Maison de Renaissance Elyria
============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Jost:wght@300;400&display=swap');

/* -------------------------------------------------------------
   DESIGN TOKENS — Palette extraite des supports print
------------------------------------------------------------- */
:root {
  --creme:        #fdf8f4;
  --rose-pale:    #f0e0d6;
  --rose-doux:    #e8c4b0;
  --taupe:        #c9a07a;
  --taupe-fonce:  #8a6a50;
  --brun:         #4a3728;
  --blanc:        #ffffff;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Jost', sans-serif;

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  --max-width: 1100px;
  --max-width-text: 960px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  background: var(--creme);
  color: var(--brun);
  overflow-x: hidden;
  line-height: 1.7;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* -------------------------------------------------------------
   UTILITAIRES TYPOGRAPHIE
------------------------------------------------------------- */
.u-label {
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--taupe);
  text-align: center;
  margin-bottom: 1.8rem;
  display: block;
}

.u-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--brun);
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.u-title--italic {
  font-style: italic;
}

.u-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--taupe);
  text-align: center;
  margin-bottom: 3.5rem;
  line-height: 1.8;
}

.u-sep {
  width: 40px;
  height: 1px;
  background: var(--taupe);
  opacity: 0.4;
  margin: 0 auto 3rem;
}

/* -------------------------------------------------------------
   UTILITAIRES LAYOUT
------------------------------------------------------------- */
.u-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.u-container--text {
  max-width: var(--max-width-text);
  margin: 0 auto;
  padding: 0 2rem;
}

/* -------------------------------------------------------------
   UTILITAIRES BOUTONS
------------------------------------------------------------- */
.btn-primary {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blanc);
  background: var(--taupe);
  border: 1px solid var(--taupe);
  padding: 1rem 2.5rem;
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--taupe-fonce);
  border-color: var(--taupe-fonce);
  letter-spacing: 0.3em;
}

.btn-outline {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--taupe-fonce);
  border: 1px solid var(--taupe);
  padding: 1rem 2.5rem;
  transition: var(--transition);
  cursor: pointer;
}
.btn-outline:hover {
  background: var(--taupe);
  color: var(--blanc);
}

/* -------------------------------------------------------------
   ANIMATIONS
------------------------------------------------------------- */
@keyframes monterDoux {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes elargir {
  from { opacity: 0; width: 0; }
  to   { opacity: 1; width: 50px; }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Délais échelonnés */
.fade-in:nth-child(2) { transition-delay: 0.08s; }
.fade-in:nth-child(3) { transition-delay: 0.16s; }
.fade-in:nth-child(4) { transition-delay: 0.24s; }
.fade-in:nth-child(5) { transition-delay: 0.32s; }
.fade-in:nth-child(6) { transition-delay: 0.40s; }
