/* ==========================================================================
   main.css — Design System AvaPartners
   Variables, reset, typographie, layout de base
   ========================================================================== */

/* -----------------------------------------------------------------------
   1. Variables CSS (Design Tokens)
   ----------------------------------------------------------------------- */
:root {
  /* Couleurs */
  --color-background:   #FAF9F6;
  --color-background-2: #F2EFE8;
  --color-sand:         #E8E4DA;
  --color-gold:         #C9A84C;
  --color-gold-light:   rgba(201,168,76,0.12);
  --color-sage:         #8B9E94;
  --color-slate:        #5A6670;
  --color-text-dark:    #1A1A18;
  --color-text-mid:     #4A4A40;
  --color-text-light:   #8A8A7A;
  --color-border:       rgba(201,168,76,0.15);
  --color-border-hover: rgba(201,168,76,0.35);

  /* Typographie */
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  /* Espacement */
  --section-padding: 80px 0;
  --section-padding-mobile: 56px 0;
  --container-max: 1120px;
  --container-padding: 0 48px;
  --container-padding-mobile: 0 24px;

  /* Border-radius */
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 16px;

  /* Transitions */
  --transition-fast: 180ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 600ms ease;

  /* Navbar */
  --navbar-height: 82px;
}

/* -----------------------------------------------------------------------
   2. Reset & Base
   ----------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--color-background);
  color: var(--color-text-dark);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* -----------------------------------------------------------------------
   3. Container
   ----------------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* -----------------------------------------------------------------------
   4. Sections
   ----------------------------------------------------------------------- */
section {
  padding: var(--section-padding);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: 100vh;
}

section.alt-bg {
  background-color: var(--color-background-2);
}

/* -----------------------------------------------------------------------
   5. Typographie
   ----------------------------------------------------------------------- */

/* Eyebrow / Tag */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: block;
  margin-bottom: 20px;
}

/* Titres de section */
.section-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 300;
  line-height: 1.25;
  color: var(--color-text-dark);
  margin-bottom: 16px;
}

.section-title em {
  font-style: italic;
  color: var(--color-gold);
}

/* Hero H1 */
.hero-title {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 300;
  line-height: 1.18;
  color: var(--color-text-dark);
  margin-bottom: 40px;
}

.hero-title em {
  font-style: italic;
  color: var(--color-gold);
}

/* Texte corps */
.body-text {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--color-text-mid);
}

/* Caption */
.caption {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-light);
}

/* Sous-titre section */
.section-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-mid);
  line-height: 1.75;
  max-width: none;
  margin-bottom: 64px;
}

/* -----------------------------------------------------------------------
   6. Boutons
   ----------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-gold);
  color: white;
  padding: 13px 32px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}

.btn-primary:hover {
  background: #b8943e;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-dark);
  border: 1.5px solid var(--color-text-dark);
  padding: 12px 32px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
}

.btn-ghost:hover {
  background: var(--color-text-dark);
  color: white;
}

.btn-text {
  background: none;
  border: none;
  border-bottom: 1.5px solid var(--color-gold);
  color: var(--color-gold);
  font-size: 13px;
  font-weight: 500;
  padding-bottom: 2px;
  border-radius: 0;
  letter-spacing: 0.04em;
}

.btn-text:hover {
  color: #b8943e;
  border-color: #b8943e;
}

/* -----------------------------------------------------------------------
   7. Mise en valeur typographique
   ----------------------------------------------------------------------- */

/* Mot ou expression mis en avant dans un paragraphe :
   italic + couleur or + soulignement décoratif discret */
.text-accent {
  font-style: inherit;
  color: inherit;
  font-weight: 500;
  display: inline-block;
  position: relative;
  padding: 2px 8px 5px 6px;
}

.text-accent::before {
  content: '';
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.text-accent[data-h="0"]::before { background-image: url('../assets/images/highlight-1.svg'); }
.text-accent[data-h="1"]::before { background-image: url('../assets/images/highlight-2.svg'); }
.text-accent[data-h="2"]::before { background-image: url('../assets/images/highlight-3.svg'); }
.text-accent[data-h="3"]::before { background-image: url('../assets/images/highlight-4.svg'); }

.text-accent.highlighted::before {
  clip-path: inset(0 0% 0 0);
}

/* -----------------------------------------------------------------------
   8. Grilles utilitaires
   ----------------------------------------------------------------------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* -----------------------------------------------------------------------
   8. Divider
   ----------------------------------------------------------------------- */
.divider {
  width: 48px;
  height: 1px;
  background: var(--color-gold);
  margin: 28px 0;
}

/* -----------------------------------------------------------------------
   9. Icône point doré (utilisé dans les cards valeurs)
   ----------------------------------------------------------------------- */
.gold-dot {
  width: 8px;
  height: 8px;
  background: var(--color-gold);
  border-radius: 50%;
  display: block;
  margin: 0 auto 20px;
}

/* -----------------------------------------------------------------------
   10. Responsive
   ----------------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root {
    --container-padding: 0 32px;
  }
  .hero-title {
    font-size: 44px;
  }
  .section-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
    --container-padding: 0 24px;
  }

  /* Scroll libre sur mobile */
  html {
    scroll-snap-type: none;
  }
  section {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
    min-height: auto;
  }

  .hero-title {
    font-size: 28px;
  }

  .section-title {
    font-size: 28px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
