/* JHS Entreprise — Design System (refonte premium) */

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

:root {
  /* Identité — répartition brief */
  --color-anthracite: #1a1a1f;
  --color-anthracite-soft: #2a2a32;
  --color-anthracite-muted: #3d3d48;
  --color-off-white: #f7f5f2;
  --color-stone: #c9b8a5;
  --color-stone-light: #e8dfd4;
  --color-stone-dark: #9a8775;
  /* Turquoise JHS — couleur du logo officiel */
  --color-accent: #009192;
  --color-accent-hover: #007a7b;
  --color-accent-soft: rgba(0, 145, 146, 0.12);
  --color-helmet: #f2c230;

  /* Typographie */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.82rem + 0.25vw, 0.9375rem);
  --text-base: clamp(1rem, 0.95rem + 0.3vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
  --text-xl: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  --text-2xl: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
  --text-3xl: clamp(2.25rem, 1.8rem + 1.8vw, 3.5rem);
  --text-hero: clamp(2.75rem, 2rem + 3vw, 5rem);

  /* Espacements */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  --container: min(1280px, calc(100% - 3rem));
  --container-wide: min(1440px, calc(100% - 2rem));

  /* Transitions premium */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 0.25s;
  --duration-base: 0.5s;
  --duration-slow: 0.9s;

  --header-height: 5rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-soft: 0 24px 64px rgba(26, 26, 31, 0.12);
  --shadow-card: 0 8px 32px rgba(26, 26, 31, 0.08);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-anthracite);
  background: var(--color-off-white);
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--color-accent);
  color: white;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.container-wide {
  width: var(--container-wide);
  margin-inline: auto;
}

.section-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-title--light {
  color: var(--color-off-white);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-anthracite-muted);
  max-width: 42rem;
  margin-top: var(--space-md);
  font-weight: 400;
}

.section-subtitle--light {
  color: rgba(247, 245, 242, 0.75);
}

.section-header {
  margin-bottom: var(--space-xl);
}

.section-header--center {
  text-align: center;
}

.section-header--center .section-subtitle {
  margin-inline: auto;
}

.section {
  padding-block: var(--space-3xl);
}

.section--dark {
  background: var(--color-anthracite);
  color: var(--color-off-white);
}

.section--stone {
  background: var(--color-stone-light);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 1rem 2rem;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out-expo),
              background var(--duration-fast) var(--ease-out-expo),
              color var(--duration-fast) var(--ease-out-expo),
              border-color var(--duration-fast) var(--ease-out-expo);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--color-accent);
  color: white;
}

.btn--primary:hover {
  background: var(--color-accent-hover);
}

.btn--outline-light {
  background: transparent;
  color: var(--color-off-white);
  border: 1px solid rgba(247, 245, 242, 0.35);
}

.btn--outline-light:hover {
  background: rgba(247, 245, 242, 0.08);
  border-color: rgba(247, 245, 242, 0.6);
}

.btn--outline-dark {
  background: transparent;
  color: var(--color-anthracite);
  border: 1px solid var(--color-anthracite-muted);
}

.btn--outline-dark:hover {
  border-color: var(--color-anthracite);
  background: rgba(26, 26, 31, 0.04);
}

/* Scroll reveal — GPU only (opacity + transform) pour rester fluide */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  will-change: opacity, transform;
  transition: opacity var(--duration-slow) var(--ease-out-expo),
              transform var(--duration-slow) var(--ease-out-expo);
}

/* Accessibilité : pas d'animation si l'utilisateur les désactive */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (max-width: 768px) {
  :root {
    --header-height: 4.25rem;
    --space-3xl: 5rem;
  }

  .section {
    padding-block: var(--space-2xl);
  }
}
