/* ============================================================
   MAISON LE DRÉAN — Charte graphique
   variables.css
   À importer en premier dans chaque page :
   <link rel="stylesheet" href="css/variables.css">
   ============================================================ */

/* ---- Google Fonts ---------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Lato:wght@300;400;700&display=swap');

/* ---- Tokens de base -------------------------------------- */
:root {

  /* --- Couleurs principales --- */
  --brown-deepest : #0e0603;   /* fond le plus sombre  */
  --brown-deep    : #140a05;   /* fond sections alternées */
  --brown-base    : #1a0f0a;   /* fond principal */
  --brown-mid     : #251508;   /* cartes, survol */
  --brown-light   : #3a2010;   /* bordures visibles */

  --gold-bright   : #e8c870;   /* or survol / accent fort */
  --gold-main     : #c9a84c;   /* or principal — titres, CTA */
  --gold-muted    : #a07c3a;   /* or secondaire */
  --gold-dim      : #7a5c28;   /* or très atténué */

  --cream-bright  : #f0e6d3;   /* texte principal sur fond sombre */
  --cream-mid     : #d4b878;   /* texte doré clair */
  --cream-muted   : #c9b07a;   /* texte crème atténué */
  --cream-dim     : #9a8a6a;   /* texte corps */
  --cream-ghost   : #7a6a50;   /* texte très atténué */
  --cream-faint   : #5a4a32;   /* texte pied de page */

  /* --- Couleurs sémantiques (alias clairs) --- */
  --color-bg          : var(--brown-base);
  --color-bg-alt      : var(--brown-deep);
  --color-bg-card     : var(--brown-mid);
  --color-text        : var(--cream-bright);
  --color-text-muted  : var(--cream-dim);
  --color-accent      : var(--gold-main);
  --color-accent-hover: var(--gold-bright);
  --color-border      : rgba(180, 140, 60, 0.18);
  --color-border-hover: rgba(180, 140, 60, 0.45);

  /* --- Typographie --- */
  --font-display  : 'Playfair Display', Georgia, serif;   /* titres héroïques */
  --font-editorial: 'Cormorant Garamond', Georgia, serif; /* sous-titres italiques */
  --font-body     : 'Lato', Helvetica, sans-serif;        /* corps, nav, UI */

  --text-xs   : 0.65rem;   /* labels, badges, mentions  */
  --text-sm   : 0.78rem;   /* corps secondaire          */
  --text-base : 0.9rem;    /* corps principal           */
  --text-md   : 1rem;      /* corps large               */
  --text-lg   : 1.25rem;   /* sous-titres               */
  --text-xl   : 1.75rem;   /* titres de section         */
  --text-2xl  : 2.5rem;    /* grands titres             */
  --text-3xl  : 4rem;      /* titres héroïques          */

  --leading-tight : 1.15;
  --leading-snug  : 1.35;
  --leading-normal: 1.6;
  --leading-loose : 2;

  --tracking-widest : 0.5em;
  --tracking-wide   : 0.25em;
  --tracking-normal : 0.08em;
  --tracking-tight  : 0.02em;

  /* --- Espacements --- */
  --space-1 : 0.25rem;
  --space-2 : 0.5rem;
  --space-3 : 0.75rem;
  --space-4 : 1rem;
  --space-6 : 1.5rem;
  --space-8 : 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* --- Rayons de bordure --- */
  --radius-sm : 4px;
  --radius-md : 8px;
  --radius-lg : 12px;
  --radius-pill: 999px;

  /* --- Transitions --- */
  --transition-fast  : 0.18s ease;
  --transition-base  : 0.3s ease;
  --transition-slow  : 0.5s ease;

  /* --- Largeurs de mise en page --- */
  --container-sm  : 640px;
  --container-md  : 900px;
  --container-lg  : 1200px;
  --container-xl  : 1400px;

  /* --- Z-index --- */
  --z-base    : 0;
  --z-raised  : 10;
  --z-overlay : 50;
  --z-nav     : 100;
  --z-modal   : 200;

  /* --- Navbar --- */
  --nav-height: 64px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button, input, select, textarea {
  font-family: inherit;
}

ul, ol {
  list-style: none;
}

/* ============================================================
   UTILITAIRES TYPOGRAPHIQUES
   ============================================================ */

/* Titres display — grand serif */
.u-display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--leading-tight);
  color: var(--cream-bright);
}
.u-display-italic {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-main);
}

/* Sous-titres éditoriaux — Cormorant italic */
.u-editorial {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 300;
  color: var(--cream-muted);
}

/* Label petit caps spacing */
.u-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--gold-main);
}

/* Séparateur centré avec tirets */
.u-label--ruled {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  justify-content: center;
}
.u-label--ruled::before,
.u-label--ruled::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: var(--gold-main);
  opacity: 0.5;
}

/* ============================================================
   UTILITAIRES BOUTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  padding: 0.85rem 2.2rem;
  transition: background var(--transition-base),
              color var(--transition-base),
              border-color var(--transition-base),
              transform var(--transition-fast);
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Bouton primaire — or plein */
.btn-primary {
  background: var(--gold-main);
  color: var(--brown-deepest);
}
.btn-primary:hover {
  background: var(--gold-bright);
}

/* Bouton outline — bordure or */
.btn-outline {
  background: transparent;
  color: var(--gold-main);
  border: 1px solid rgba(180, 140, 60, 0.45);
}
.btn-outline:hover {
  border-color: var(--gold-main);
  color: var(--gold-bright);
}

/* Bouton ghost — texte seul */
.btn-ghost {
  background: transparent;
  color: var(--cream-muted);
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost:hover { color: var(--gold-main); }

/* ============================================================
   UTILITAIRES LAYOUT
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container-lg);
  margin-inline: auto;
  padding-inline: clamp(1.5rem, 5vw, 4rem);
}
.container--sm { max-width: var(--container-sm); }
.container--md { max-width: var(--container-md); }
.container--xl { max-width: var(--container-xl); }

/* Sections */
.section {
  padding-block: var(--space-24);
}
.section--alt {
  background-color: var(--brown-deep);
}
.section--darkest {
  background-color: var(--brown-deepest);
}

/* ============================================================
   UTILITAIRES VISUELS
   ============================================================ */

/* Bordure dorée fine */
.u-border-gold {
  border: 1px solid var(--color-border);
}
.u-border-gold:hover {
  border-color: var(--color-border-hover);
}

/* Séparateur horizontal */
.u-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin-block: var(--space-8);
}

/* Accent barre gauche */
.u-accent-left {
  border-left: 2px solid var(--gold-main);
  padding-left: var(--space-4);
}

/* ---- Bouton flottant Tally lead magnet -------------- */
.tally-float-btn {
  position: fixed;
  bottom: var(--space-8);
  left: var(--space-8);
  z-index: var(--z-raised);
  background: var(--gold-main);
  color: var(--brown-deepest);
  border: none;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: background var(--transition-fast),
              transform var(--transition-fast);
  animation: floatPulse 3s ease-in-out infinite;
}
.tally-float-btn:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
}
@keyframes floatPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(0,0,0,0.4); }
  50%       { box-shadow: 0 4px 28px rgba(201,168,76,0.35); }
}

/* Mobile — en bas à gauche, au-dessus du panier */
@media (max-width: 767px) {
  .tally-float-btn {
    bottom: var(--space-5);
    left: var(--space-5);
    font-size: 0.6rem;
    padding: 0.7rem 1.1rem;
  }
}

/* ============================================================
   BREAKPOINTS (pour référence dans les autres fichiers)

   Mobile first :
   @media (min-width: 480px)  → sm  — grands mobiles
   @media (min-width: 768px)  → md  — tablettes
   @media (min-width: 1024px) → lg  — desktop
   @media (min-width: 1280px) → xl  — grands écrans
   ============================================================ */
