/* ═══════════════════════════════════════════════════════════
   DS PROJECT — main.css
   Variables · Reset · Typographie · Layout de base
═══════════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  /* Accent doré — boutons, soulignements, icônes, bordures fines
     JAMAIS en fond de section entière */
  --color-accent:       #C9A84C;
  --color-accent-dark:  #B8922E;
  --color-accent-light: #DEC178;

  /* Fond & surface */
  --color-bg:           #FFFFFF;
  --color-bg-alt:       #F7F7F7;

  /* Texte */
  --color-text:         #0D0D0D;
  --color-text-muted:   #6B7280;
  --color-text-light:   #9CA3AF;

  /* Bordures */
  --color-border:       #E5E7EB;
  --color-border-light: #F3F4F6;

  /* Feedback */
  --color-success:      #10B981;
  --color-error:        #EF4444;

  /* Footer sombre */
  --color-dark:         #111111;
  --color-dark-alt:     #1A1A1A;

  /* Typographie */
  --font-heading: 'Montserrat', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Espacements */
  --space-xs:  0.25rem;   /*  4px */
  --space-sm:  0.5rem;    /*  8px */
  --space-md:  1rem;      /* 16px */
  --space-lg:  1.5rem;    /* 24px */
  --space-xl:  2rem;      /* 32px */
  --space-2xl: 3rem;      /* 48px */
  --space-3xl: 4rem;      /* 64px */
  --space-4xl: 6rem;      /* 96px */

  /* Rayons */
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 12px;
  --radius-xl: 20px;

  /* Ombres */
  --shadow-sm:     0 1px 4px rgba(0,0,0,0.06);
  --shadow:        0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.12);
  --shadow-accent: 0 4px 20px rgba(201,168,76,0.28);

  /* Transitions */
  --transition:      200ms ease;
  --transition-slow: 400ms ease;

  /* Layout */
  --max-width:  1200px;
  --nav-height: 72px;
}


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

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select  { font: inherit; }
p, h1, h2, h3, h4, h5, h6       { overflow-wrap: break-word; }
a                                { color: inherit; text-decoration: none; }
ul[role="list"], ol[role="list"] { list-style: none; }
address                          { font-style: normal; }


/* ── Typographie ── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 600;
}

h4 { font-size: 0.95rem; font-weight: 600; }

p { line-height: 1.75; }

.text-accent { color: var(--color-accent); }
.text-muted  { color: var(--color-text-muted); }


/* ── Conteneur ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px)  { .container { padding-inline: 2rem; } }
@media (min-width: 1280px) { .container { padding-inline: 2.5rem; } }


/* ── Sections ── */
.section { padding-block: var(--space-3xl); }

@media (min-width: 1024px) { .section { padding-block: var(--space-4xl); } }

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


/* ── En-têtes de section ── */
.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) { .section-header { margin-bottom: var(--space-3xl); } }

/* Tag de section — lettres espacées, doré */
.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

/* Soulignement doré fin sous h2 des en-têtes de section */
.section-header h2 {
  position: relative;
  padding-bottom: var(--space-md);
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 2px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-top: var(--space-md);
  line-height: 1.8;
}


/* ── Animation d'apparition au scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html    { scroll-behavior: auto; }
}
