/* ================================================================
   ETL Structures — Variables CSS & Styles Globaux
   ================================================================ */

/* ---- Variables ---- */
:root {
  /* Couleurs de marque */
  --c-red:         #c00101;
  --c-red-hover:   #a60000;
  --c-red-light:   rgba(192, 1, 1, 0.08);

  /* Neutres (blanc cassé chaud ↔ quasi-noir cohérent avec #141c14 du logo) */
  --c-white:       #f7f4f0;
  --c-off-white:   #ede9e4;
  --c-gray-xlight: #f0eeeb;
  --c-gray-light:  #d9d9d9;
  --c-gray:        #8a8a85;
  --c-gray-dark:   #585854;
  --c-dark:        #2c2c2a;
  --c-black:       #1c1c1a;

  /* Typographie */
  --f-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --fs-xs:   0.6875rem;
  --fs-sm:   0.8125rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.25rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  1.875rem;
  --fs-3xl:  2.25rem;
  --fs-4xl:  3rem;
  --fs-5xl:  3.75rem;

  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;

  --lh-tight:   1.15;
  --lh-snug:    1.3;
  --lh-normal:  1.6;
  --lh-relaxed: 1.8;

  /* Espacement (échelle 4px) */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Layout */
  --container-max:     1280px;
  --container-mid:     1024px;
  --container-narrow:  760px;
  --container-padding: clamp(1.25rem, 5vw, 3rem);

  /* Border radius */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 8px;

  /* Ombres */
  --shadow-sm: 0 1px 3px rgba(28,28,26,.08), 0 1px 2px rgba(28,28,26,.05);
  --shadow-md: 0 4px 16px rgba(28,28,26,.10), 0 2px 4px rgba(28,28,26,.06);
  --shadow-lg: 0 12px 36px rgba(28,28,26,.14), 0 4px 8px rgba(28,28,26,.06);

  /* Transitions */
  --tr-fast:  150ms ease;
  --tr-base:  250ms ease;
  --tr-slow:  420ms cubic-bezier(.4, 0, .2, 1);

  /* Z-index */
  --z-sticky:  200;
  --z-overlay: 300;
  --z-modal:   400;
}

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

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

body {
  font-family: var(--f-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--c-black);
  background-color: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Typographie de base ---- */
h1, h2, h3, h4, h5, h6 {
  line-height: var(--lh-tight);
  font-weight: var(--fw-bold);
  color: var(--c-black);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(var(--fs-3xl), 5.5vw, var(--fs-5xl)); }
h2 { font-size: clamp(var(--fs-2xl), 3.5vw, var(--fs-4xl)); }
h3 { font-size: clamp(var(--fs-xl),  2.5vw, var(--fs-2xl)); }
h4 { font-size: var(--fs-lg);  font-weight: var(--fw-semibold); }
h5 { font-size: var(--fs-md);  font-weight: var(--fw-semibold); }
h6 { font-size: var(--fs-base); font-weight: var(--fw-semibold); }

p {
  line-height: var(--lh-relaxed);
}

a {
  color: var(--c-red);
  text-decoration: none;
  transition: color var(--tr-fast);
}
a:hover { color: var(--c-red-hover); }
a:focus-visible {
  outline: 2px solid var(--c-red);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

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

ul, ol { list-style: none; }

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

address { font-style: normal; }

table {
  border-collapse: collapse;
  width: 100%;
}

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

/* ---- Section ---- */
.section {
  padding-block: clamp(var(--sp-12), 8vw, var(--sp-24));
}
.section--gray { background-color: var(--c-gray-xlight); }

.section--dark {
  background-color: var(--c-black);
  color: var(--c-white);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--c-white); }
.section--dark p   { color: var(--c-gray-light); }
.section--dark a:not(.btn) { color: var(--c-gray-light); }
.section--dark a:not(.btn):hover { color: var(--c-white); }

/* ---- En-tête de section ---- */
.section__header {
  margin-bottom: clamp(var(--sp-8), 5vw, var(--sp-16));
}
.section__header h2 { margin-bottom: var(--sp-4); }
.section__header p {
  font-size: var(--fs-md);
  color: var(--c-gray-dark);
  max-width: 60ch;
}
.section__header.text-center p { margin-inline: auto; }

/* ---- Label de section (fil rouge + texte) ---- */
.section__label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-red);
  margin-bottom: var(--sp-3);
}
.section__label::before {
  content: '';
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--c-red);
  flex-shrink: 0;
}

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--tr-slow), transform var(--tr-slow);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal--delay-1 { transition-delay: 100ms; }
.reveal--delay-2 { transition-delay: 200ms; }
.reveal--delay-3 { transition-delay: 300ms; }

/* ---- Utilitaires ---- */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.fw-medium   { font-weight: var(--fw-medium); }
.fw-semibold { font-weight: var(--fw-semibold); }
.fw-bold     { font-weight: var(--fw-bold); }

.text-red   { color: var(--c-red); }
.text-gray  { color: var(--c-gray); }
.text-white { color: var(--c-white); }
.text-small { font-size: var(--fs-sm); }

.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;
}

/* ---- Boutons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.75em 1.75em;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--r-md);
  transition: background var(--tr-base), color var(--tr-base),
              border-color var(--tr-base), box-shadow var(--tr-base),
              transform var(--tr-fast);
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--c-red);
  outline-offset: 3px;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--c-red);
  color: var(--c-white);
  border: 2px solid var(--c-red);
}
.btn--primary:hover {
  background: var(--c-red-hover);
  border-color: var(--c-red-hover);
  color: var(--c-white);
  box-shadow: 0 4px 16px rgba(192,1,1,.3);
}

.btn--secondary {
  background: transparent;
  color: var(--c-red);
  border: 2px solid var(--c-red);
}
.btn--secondary:hover {
  background: var(--c-red);
  color: var(--c-white);
}

.btn--ghost {
  background: transparent;
  color: var(--c-white);
  border: 2px solid rgba(247,244,240,.5);
}
.btn--ghost:hover {
  border-color: var(--c-white);
  color: var(--c-white);
  background: rgba(247,244,240,.1);
}

.btn--dark {
  background: var(--c-black);
  color: var(--c-white);
  border: 2px solid var(--c-black);
}
.btn--dark:hover {
  background: var(--c-dark);
  border-color: var(--c-dark);
  color: var(--c-white);
}
