/* ============================================================
   EMA SERVICES — main.css
   Palette et tokens calqués sur le vrai code locamex.org
   ============================================================ */

/* ── Fonts locales ── */
@font-face {
  font-family: 'Syne';
  src: url('../fonts/Syne-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Syne';
  src: url('../fonts/Syne-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PlusJakartaSans';
  src: url('../fonts/PlusJakartaSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PlusJakartaSans';
  src: url('../fonts/PlusJakartaSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PlusJakartaSans';
  src: url('../fonts/PlusJakartaSans-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ── Variables CSS — palette EXACTE locamex.org ── */
:root {
  /* Couleurs — déduites du vrai code source */
  --color-primary:         #5BA4A4;  /* teal boutons .btn-primary */
  --color-primary-dark:    #3D8080;  /* hover */
  --color-primary-light:   #E8F4F4;  /* bg-hard-light — sections alternées */

  --color-header:          #1C3535;  /* fond header sombre vert-noir */
  --color-bg:              #FFFFFF;
  --color-bg-alt:          #E8F4F4;  /* bg-hard-light */
  --color-bg-dark:         #2C3333;  /* bg-dark-grey — footer */
  --color-bg-copyright:    #4A8C8C;  /* bg-light-green — barre copyright */

  /* Textes */
  --color-text:            #2C2C2C;
  --color-text-muted:      #6B7B7B;
  --color-text-light:      #FFFFFF;

  /* Borders */
  --color-border:          #D0E8E8;

  /* Typographies */
  --font-heading:          'Syne', 'Segoe UI', system-ui, sans-serif;
  --font-body:             'PlusJakartaSans', 'Segoe UI', system-ui, sans-serif;

  /* Tailles */
  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.5rem;
  --text-3xl:   1.875rem;
  --text-4xl:   2.25rem;
  --text-5xl:   3rem;
  --text-6xl:   3.75rem;

  /* Spacing */
  --section-py:       5rem;     /* 80px comme locamex */
  --section-py-sm:    3rem;
  --container-max:    1200px;
  --container-px:     1.5rem;

  /* Boutons — pill shape exact locamex */
  --btn-radius:       50px;
  --btn-padding:      0.75rem 1.75rem;
  --btn-padding-lg:   0.875rem 2.25rem;

  /* Cards */
  --card-radius:      12px;
  --card-bg-dark:     rgba(255,255,255,0.08);
  --card-border-dark: rgba(255,255,255,0.15);

  /* Ombres */
  --shadow-card:      0 4px 24px rgba(91,164,164,0.10);
  --shadow-hover:     0 12px 40px rgba(91,164,164,0.22);

  --transition-base:  0.25s ease;
  --transition-slow:  0.4s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

.section-py         { padding-top: var(--section-py); padding-bottom: var(--section-py); }
.section-bg-alt     { background: var(--color-bg-alt); }
.section-bg-dark    { background: var(--color-bg-dark); color: var(--color-text-light); }
.text-center        { text-align: center; }

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

/* Surtitre catégorie (uppercase pill) */
.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(91,164,164,0.10);
  border: 1px solid rgba(91,164,164,0.25);
  padding: 0.3em 0.9em;
  border-radius: var(--btn-radius);
  margin-bottom: 1rem;
}

/* lk-duo-title — titre double ligne locamex */
.lk-duo-title {
  margin-bottom: 1rem;
}
.lk-duo-title h2,
.lk-duo-title h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-text);
  font-size: var(--text-4xl);
}
.lk-duo-title--light h2,
.lk-duo-title--light h3 { color: #fff; }

.lk-title-first-part {
  display: block;
  font-style: normal;
  font-weight: 800;
}
.lk-title-second-part {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--color-primary);
}
.lk-duo-title--light .lk-title-second-part { color: rgba(255,255,255,0.80); }

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 600px;
  line-height: 1.7;
}
.section-subtitle--light { color: rgba(255,255,255,0.80); }
.text-center .section-subtitle { margin: 0 auto; }

/* ── Boutons — pill 50px comme locamex ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: var(--btn-padding);
  border-radius: var(--btn-radius);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}
.btn:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 3px; }

/* .btn-primary = teal, texte blanc */
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* .btn-reverse = outline blanc (sur fond sombre) */
.btn-reverse {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-reverse:hover {
  background: #fff;
  color: var(--color-primary);
}

/* .btn-outline-primary = outline teal (sur fond blanc) */
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-lg { padding: var(--btn-padding-lg); font-size: var(--text-lg); }
.btn-sm { padding: 0.5rem 1.25rem; font-size: var(--text-sm); }

/* ── Icon-box — composant locamex (icône + titre + desc) ── */
.icon-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 1.5rem 1rem;
}
.icon-box--left {
  flex-direction: row;
  text-align: left;
  align-items: flex-start;
}
.icon-box__icon {
  width: 56px;
  height: 56px;
  background: rgba(91,164,164,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-box__icon svg {
  width: 26px;
  height: 26px;
  color: var(--color-primary);
}
.icon-box--dark .icon-box__icon {
  background: rgba(255,255,255,0.12);
}
.icon-box--dark .icon-box__icon svg { color: #fff; }
.icon-box__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}
.icon-box--dark .icon-box__title { color: #fff; }
.icon-box__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}
.icon-box--dark .icon-box__desc { color: rgba(255,255,255,0.70); }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }
.reveal-delay-3 { transition-delay: 0.30s; }
.reveal-delay-4 { transition-delay: 0.40s; }

/* ── Focus global ── */
:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 3px; }

/* ── Breakpoints ── */
@media (max-width: 1024px) {
  :root { --section-py: 4rem; --text-5xl: 2.5rem; --text-6xl: 3rem; }
}
@media (max-width: 768px) {
  :root { --section-py: 3rem; --text-4xl: 2rem; --text-5xl: 2.25rem; --text-3xl: 1.5rem; }
  .lk-duo-title h2, .lk-duo-title h3 { font-size: var(--text-3xl); }
}
