/* ============================================================
   ÉCRIN D'AVENTURES — Design Tokens
   styles/tokens.css
   ============================================================ */

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

/* -----------------------------------------------------------
   2. CSS CUSTOM PROPERTIES
   ----------------------------------------------------------- */
:root {
  /* --- Couleurs principales --- */
  --ea-green:        #1A3D2B;
  --ea-gold:         #B5974A;
  --ea-gold-light:   #CEB06A;
  --ea-gold-pale:    #E8D5A3;

  /* --- Couleurs secondaires --- */
  --ea-white:        #FAFAFA;
  --ea-offwhite:     #F5F2ED;
  --ea-cream:        #E8DDD0;
  --ea-silver:       #C8C8C8;
  --ea-black:        #0A0A0A;
  --ea-charcoal:     #2C2C2C;

  /* --- Couleurs complémentaires (usage ponctuel) --- */
  --ea-burgundy:     #6B1030;
  --ea-navy:         #0F1B3D;
  --ea-orange:       #E07820;

  /* --- Typographie --- */
  --font-display:    'Cinzel', serif;
  --font-editorial:  'Cormorant Garamond', serif;
  --font-ui:         'Jost', sans-serif;

  /* --- Tailles de police --- */
  --fs-xs:     11px;
  --fs-sm:     13px;
  --fs-base:   17px;
  --fs-lg:     20px;
  --fs-xl:     26px;
  --fs-2xl:    36px;
  --fs-3xl:    50px;
  --fs-4xl:    68px;
  --fs-hero:   clamp(44px, 7vw, 90px);

  /* --- Espacements --- */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   24px;
  --space-6:   32px;
  --space-7:   48px;
  --space-8:   64px;
  --space-9:   96px;
  --space-10:  128px;

  /* --- Letter-spacing --- */
  --ls-tight:   0.02em;
  --ls-base:    0.06em;
  --ls-wide:    0.14em;
  --ls-wider:   0.20em;
  --ls-widest:  0.28em;

  /* --- Line-height --- */
  --lh-tight:   1.2;
  --lh-snug:    1.4;
  --lh-base:    1.75;
  --lh-relaxed: 2;

  /* --- Transitions --- */
  --ease-gold:      cubic-bezier(0.25, 0.1, 0.25, 1);
  --duration-fast:  180ms;
  --duration-base:  320ms;
  --duration-slow:  500ms;

  /* --- Bordures décoratives --- */
  --border-gold:    1px solid var(--ea-gold);
  --border-gold-2:  2px solid var(--ea-gold);

  /* --- Max width --- */
  --container:      1200px;
  --container-wide: 1440px;
  --container-text: 760px;
}

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

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

body {
  font-family: var(--font-editorial);
  font-weight: 300;
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--ea-charcoal);
  background-color: var(--ea-offwhite);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

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

/* -----------------------------------------------------------
   4. TYPOGRAPHIE — CLASSES UTILITAIRES
   ----------------------------------------------------------- */

/* Display — Cinzel */
.t-eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--ea-gold);
}

.t-label {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
}

.t-nav {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
}

/* Editorial — Cormorant Garamond */
.t-h1 {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 300;
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}

.t-h2 {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 300;
  font-size: var(--fs-3xl);
  line-height: var(--lh-snug);
}

.t-h3 {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 300;
  font-size: var(--fs-2xl);
  line-height: var(--lh-snug);
}

.t-body {
  font-family: var(--font-editorial);
  font-weight: 300;
  font-size: var(--fs-base);
  line-height: var(--lh-base);
}

/* UI — Jost */
.t-ui {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: var(--fs-sm);
  letter-spacing: var(--ls-base);
}

.t-caption {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-base);
}

/* -----------------------------------------------------------
   5. BOUTONS
   ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  padding: 13px 30px;
  border-radius: 0;
  border: none;
  cursor: pointer;
  transition: background var(--duration-base) var(--ease-gold),
              color var(--duration-base) var(--ease-gold),
              border-color var(--duration-base) var(--ease-gold);
  white-space: nowrap;
}

.btn-primary {
  background: var(--ea-green);
  color: var(--ea-gold);
}
.btn-primary:hover {
  background: #0f2519;
  color: var(--ea-gold-light);
}

.btn-gold {
  background: var(--ea-gold);
  color: var(--ea-green);
}
.btn-gold:hover {
  background: var(--ea-gold-light);
}

.btn-secondary {
  background: transparent;
  color: var(--ea-green);
  border: 1px solid var(--ea-green);
}
.btn-secondary:hover {
  background: var(--ea-green);
  color: var(--ea-gold);
}

.btn-ghost {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: var(--fs-base);
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ea-gold);
  padding: 0;
  background: transparent;
  border: none;
}
.btn-ghost::after {
  content: ' \2192';
  font-style: normal;
  transition: transform var(--duration-fast) var(--ease-gold);
  display: inline-block;
}
.btn-ghost:hover::after {
  transform: translateX(5px);
}
.btn-ghost:hover {
  color: var(--ea-gold-light);
}

/* Variantes sur fond vert */
.btn-ghost--light {
  color: var(--ea-gold-pale);
}
.btn-ghost--light:hover {
  color: var(--ea-gold);
}

/* -----------------------------------------------------------
   6. LAYOUT
   ----------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}
@media (max-width: 580px) {
  .container { padding-left: var(--space-4); padding-right: var(--space-4); }
}

.container--wide {
  max-width: var(--container-wide);
}

.container--text {
  max-width: var(--container-text);
}

/* -----------------------------------------------------------
   7. ÉLÉMENTS DÉCORATIFS
   ----------------------------------------------------------- */

/* Séparateur or + symbole */
.separator {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-7) auto;
  max-width: 240px;
}
.separator::before,
.separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ea-gold);
}
.separator__symbol {
  color: var(--ea-gold);
  font-family: var(--font-editorial);
  font-size: var(--fs-base);
  line-height: 1;
}

/* Bordure or horizontale */
.border-gold-top    { border-top: var(--border-gold); }
.border-gold-bottom { border-bottom: var(--border-gold); }

/* Section traits */
.section-framed {
  border-top: var(--border-gold);
  border-bottom: var(--border-gold);
}

/* Trait or sur carte */
.card-accent {
  border-top: var(--border-gold-2);
}

/* -----------------------------------------------------------
   8. GRILLES
   ----------------------------------------------------------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-4,
  .grid-3,
  .grid-2 { grid-template-columns: 1fr; }
}

/* -----------------------------------------------------------
   9. UTILITAIRES
   ----------------------------------------------------------- */
.text-center { text-align: center; }
.text-gold   { color: var(--ea-gold); }
.text-green  { color: var(--ea-green); }
.text-white  { color: var(--ea-white); }
.text-pale   { color: var(--ea-gold-pale); }

.bg-green    { background-color: var(--ea-green); }
.bg-offwhite { background-color: var(--ea-offwhite); }
.bg-cream    { background-color: var(--ea-cream); }
.bg-black    { background-color: var(--ea-black); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* -----------------------------------------------------------
   10. FORMULAIRES
   ----------------------------------------------------------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.form-label {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--ea-charcoal);
}
.form-label__optional { opacity: 0.5; font-weight: 300; text-transform: none; }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ea-green);
  border-radius: 0;
  padding: var(--space-3) 0;
  font-family: var(--font-editorial);
  font-weight: 300;
  font-size: var(--fs-base);
  color: var(--ea-charcoal);
  outline: none;
  transition: border-color var(--duration-base) var(--ease-gold);
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-bottom-color: var(--ea-gold);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* -----------------------------------------------------------
   11. ACCORDION
   ----------------------------------------------------------- */
.accordion-item {
  border-bottom: var(--border-gold);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) 0;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--ea-green);
  cursor: pointer;
  background: none;
  border: none;
}

.accordion-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--ea-gold);
  transition: transform var(--duration-base) var(--ease-gold);
}

.accordion-item.is-open .accordion-icon {
  transform: rotate(45deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-gold);
}

.accordion-item.is-open .accordion-body {
  max-height: 600px;
}

.accordion-content {
  padding-bottom: var(--space-5);
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
  color: var(--ea-charcoal);
}

/* -----------------------------------------------------------
   12. CARTES DE SERVICE
   ----------------------------------------------------------- */
.service-card {
  background: var(--ea-white);
  border-top: var(--border-gold-2);
  padding: var(--space-7) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.service-card__tag {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--ea-gold);
}

.service-card__title {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 300;
  font-size: var(--fs-xl);
  color: var(--ea-green);
  line-height: var(--lh-snug);
}

.service-card__body {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
  color: var(--ea-charcoal);
  flex: 1;
}

.service-card__cta {
  margin-top: auto;
}

/* -----------------------------------------------------------
   13. SECTION NARRATION
   ----------------------------------------------------------- */
.narration {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.narration__step {
  padding: var(--space-8) var(--space-6);
  border-right: var(--border-gold);
  position: relative;
}

.narration__step:last-child {
  border-right: none;
}

.narration__number {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--ea-gold);
  margin-bottom: var(--space-4);
}

.narration__verb {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 300;
  font-size: var(--fs-2xl);
  color: var(--ea-green);
  margin-bottom: var(--space-3);
}

.narration__desc {
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
  color: var(--ea-charcoal);
}

@media (max-width: 768px) {
  .narration {
    grid-template-columns: 1fr;
  }
  .narration__step {
    border-right: none;
    border-bottom: var(--border-gold);
  }
  .narration__step:last-child {
    border-bottom: none;
  }
}
