/* ============================================================
   NEAR-JOB - main.css   (reset, tokens, layout global)
   Mobile-first · Accessible · Performant
   ============================================================ */

:root {
  /* Palette principale */
  --clr-primary:   #0f766e;
  --clr-primary-d: #0d6560;
  --clr-primary-xl:#085350;
  --clr-primary-l: #ccfbf1;
  --clr-primary-2: #f0fdfa;
  --clr-gold:      #d97706;
  --clr-gold-l:    #fef3c7;
  --clr-success:   #16a34a;
  --clr-danger:    #dc2626;
  --clr-info:      #0284c7;

  /* Neutres */
  --clr-bg:        #f8fafc;
  --clr-bg-2:      #f1f5f9;
  --clr-surface:   #ffffff;
  --clr-border:    #e2e8f0;
  --clr-border-2:  #cbd5e1;
  --clr-text:      #0f172a;
  --clr-text-2:    #1e293b;
  --clr-muted:     #64748b;
  --clr-subtle:    #94a3b8;

  /* Rayons */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Ombres */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 32px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.04);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.12);

  /* Typographie */
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --font-mono: 'Menlo', 'Consolas', monospace;

  /* Espacements */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Layout */
  --container: 1280px;
  --header-h:  64px;

  /* Transitions */
  --ease: .15s ease;
  --ease-out: .2s cubic-bezier(.22,.68,0,1.2);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%;
        text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
        overflow-x: clip; }
body  { font-family: var(--font); background: var(--clr-bg); color: var(--clr-text);
        line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column;
        overflow-x: hidden; }
img, video, svg  { max-width: 100%; display: block; }
a     { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
ul, ol { list-style: none; }
p { color: var(--clr-muted); line-height: 1.7; }

/* Remixicon - alignement vertical inline */
[class^="ri-"], [class*=" ri-"] { vertical-align: middle; line-height: 1; }

/* Focus rings accessibles */
:focus-visible {
  outline: 3px solid var(--clr-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Skip nav */
.skip-nav {
  position: absolute; top: -100px; left: 1rem; z-index: 9999;
  background: var(--clr-primary); color: #fff; padding: .5rem 1rem;
  border-radius: var(--radius-md); font-weight: 600;
  transition: top .15s;
}
.skip-nav:focus { top: .5rem; }

/* ── Container ──────────────────────────────────────────── */
.container {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: 1rem;
}
@media (min-width: 640px)  { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem;   } }

.container-sm  { max-width: 680px;  margin-inline: auto; padding-inline: 1rem; }
.container-md  { max-width: 900px;  margin-inline: auto; padding-inline: 1rem; }
.container-lg  { max-width: 1100px; margin-inline: auto; padding-inline: 1rem; }

/* ── Typography ─────────────────────────────────────────── */
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; line-height: 1.15; letter-spacing: -.03em; }
h2 { font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
h3 { font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 600; line-height: 1.4; }
h4 { font-size: .95rem; font-weight: 600; }

.text-xl   { font-size: 1.25rem; }
.text-lg   { font-size: 1.1rem; }
.text-sm   { font-size: .875rem; }
.text-xs   { font-size: .78rem; }
.text-lead { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--clr-muted); line-height: 1.7; }

/* Gradients texte */
.text-gradient {
  background: linear-gradient(135deg, var(--clr-primary), #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1.2rem; border-radius: var(--radius-md);
  font-size: .9rem; font-weight: 600; cursor: pointer; border: none;
  transition: background .15s, transform .1s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--clr-primary); color: #fff; }
.btn-primary:hover { background: var(--clr-primary-d); }
.btn-outline { background: transparent; color: var(--clr-primary); border: 1.5px solid var(--clr-primary); }
.btn-outline:hover { background: var(--clr-primary-l); }
.btn-ghost   { background: transparent; color: var(--clr-muted); }
.btn-ghost:hover { background: var(--clr-border); color: var(--clr-text); }
.btn-sm   { padding: .35rem .85rem; font-size: .82rem; }
.btn-lg   { padding: .75rem 1.75rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1fb858; }

/* Header */
.site-header { background: var(--clr-surface); border-bottom: 1px solid var(--clr-border);
  position: fixed; top: 0; left: 0; right: 0; width: 100%;
  z-index: 100; box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 1rem; }
.main-content { padding-top: var(--header-h); }
.logo { font-size: 1.25rem; font-weight: 800; color: var(--clr-primary);
  letter-spacing: -.02em; display: flex; align-items: center; gap: .3rem; }
.logo-dot { color: var(--clr-gold); }
.site-nav { display: none; gap: 1.5rem; align-items: center; }
.site-nav a { font-size: .875rem; font-weight: 500; color: var(--clr-muted);
  padding-bottom: 2px; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.site-nav a:hover, .site-nav a.active { color: var(--clr-primary); border-bottom-color: var(--clr-primary); }
.header-actions { display: flex; gap: .5rem; align-items: center; }
.burger { background: none; border: none; cursor: pointer; padding: .5rem;
  display: flex; flex-direction: column; gap: 4px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--clr-text);
  border-radius: 2px; transition: transform .2s, opacity .2s; }
.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--clr-surface);
  z-index: 99;
  padding: 1.25rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--clr-border);
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  /* État fermé */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility 0s .22s;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity .22s ease, transform .22s ease, visibility 0s 0s;
}
.mobile-menu a { padding: .9rem 1rem; border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 500; transition: background .15s; }
.mobile-menu a:hover { background: var(--clr-bg); }
.mobile-menu .divider { height: 1px; background: var(--clr-border); margin: .5rem 0; }
@media (min-width: 768px) { .site-nav { display: flex; } .burger { display: none; } }

/* Footer */
.site-footer { margin-top: auto; background: #0f172a; color: #94a3b8; padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand .logo { color: #fff; margin-bottom: .75rem; }
.footer-brand p { font-size: .875rem; max-width: 300px; margin-bottom: 1rem; }
.footer-col h4 { color: #e2e8f0; font-size: .8rem; font-weight: 700; margin-bottom: .75rem;
  text-transform: uppercase; letter-spacing: .06em; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a  { font-size: .875rem; transition: color .15s; }
.footer-col a:hover { color: #fff; }
/* Infos contact */
.footer-contact { display: flex; flex-direction: column; gap: .4rem; margin-bottom: .85rem; }
.footer-contact-item { display: inline-flex; align-items: center; gap: .45rem;
  font-size: .825rem; color: #94a3b8; transition: color .15s; }
.footer-contact-item:hover { color: #fff; }
.footer-contact-item i { font-size: .95rem; flex-shrink: 0; }
/* Icônes réseaux sociaux */
.footer-social { display: flex; gap: .5rem; flex-wrap: wrap; }
.footer-social-link { display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #94a3b8;
  font-size: 1rem; transition: background .2s, color .2s; }
.footer-social-link:hover { background: rgba(255,255,255,.18); color: #fff; }
/* Footer bottom */
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 1.25rem; font-size: .8rem; text-align: center; }
.footer-bottom-links { display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: .15rem; margin-bottom: .5rem; }
.footer-bottom-links a { color: #94a3b8; transition: color .15s; }
.footer-bottom-links a:hover { color: #fff; }
.footer-copyright { color: #64748b; }
@media (max-width: 767px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── Utilities ──────────────────────────────────────────── */
.sr-only     { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.not-sr-only { position: static; width: auto; height: auto; overflow: visible; clip: auto; }

/* Color */
.text-muted    { color: var(--clr-muted); }
.text-subtle   { color: var(--clr-subtle); }
.text-primary  { color: var(--clr-primary); }
.text-success  { color: var(--clr-success); }
.text-danger   { color: var(--clr-danger); }
.text-white    { color: #fff; }

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

/* Display */
.flex   { display: flex; }
.iflex  { display: inline-flex; }
.grid   { display: grid; }
.block  { display: block; }
.hidden { display: none !important; }

/* Flex */
.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }
.items-end     { align-items: flex-end; }
.justify-center{ justify-content: center; }
.justify-between{ justify-content: space-between; }
.flex-wrap     { flex-wrap: wrap; }
.flex-col      { flex-direction: column; }
.flex-1        { flex: 1; }
.shrink-0      { flex-shrink: 0; }

/* Spacing */
.gap-1 { gap: .25rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.w-full{ width: 100%; }
.max-w-xs   { max-width: 320px; }
.max-w-sm   { max-width: 480px; }
.max-w-md   { max-width: 680px; }
.max-w-lg   { max-width: 900px; }
.mx-auto    { margin-inline: auto; }
.mt-2  { margin-top: .5rem; }
.mt-4  { margin-top: 1rem; }
.mt-6  { margin-top: 1.5rem; }
.mt-8  { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-2  { margin-bottom: .5rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.py-4  { padding-block: 1rem; }
.py-8  { padding-block: 2rem; }
.py-12 { padding-block: 3rem; }
.py-16 { padding-block: 4rem; }
.px-4  { padding-inline: 1rem; }

/* Overflow */
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.overflow-hidden { overflow: hidden; }

/* Backgrounds */
.bg-surface { background: var(--clr-surface); }
.bg-bg      { background: var(--clr-bg); }
.bg-bg2     { background: var(--clr-bg-2); }
.bg-primary { background: var(--clr-primary); }

/* Borders */
.rounded    { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }
.border     { border: 1px solid var(--clr-border); }

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* Main */
.main-content { flex: 1; }

/* Section padding standard */
.section { padding: var(--space-12) 0; }
.section-sm { padding: var(--space-8) 0; }
.section-lg { padding: var(--space-16) 0; }
.section-header { text-align: center; margin-bottom: var(--space-8); }
.section-header p { margin-top: .6rem; font-size: 1.05rem; }
