/* ============================================
   INNEXUS — Feuille de style
   Poppins (titres) · Inter (corps)
   Charte : Marine #0E2438 · Rouge #D12A28
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@600;700&display=swap');

/* ─── Design tokens ───────────────────────── */
:root {
  /* Palette */
  --marine:    #0E2438;
  --red:       #D12A28;
  --red-light: #FF8A86;
  --slate-ui:  #C3CCD6;
  --text-sec:  #5B6775;
  --card-bg:   #F4F6F9;
  --white:     #FFFFFF;
  --success:   #27AE60;

  /* Typographies */
  --poppins: 'Poppins', 'Inter', system-ui, sans-serif;
  --sans:    'Inter', system-ui, -apple-system, sans-serif;

  /* Rayons */
  --r-card: 12px;
  --r-btn:  12px;
  --r-pill: 10px;

  /* Espacements */
  --s1:.25rem; --s2:.5rem; --s3:.75rem; --s4:1rem;
  --s5:1.25rem; --s6:1.5rem; --s8:2rem; --s10:2.5rem;
  --s12:3rem; --s16:4rem; --s20:5rem; --s24:6rem;

  /* Layout */
  --max-w: 1080px;
  --nav-h: 72px;
  --ease:  180ms ease;
}

/* ─── Reset ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--marine);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
section[id] { scroll-margin-top: var(--nav-h); }

/* ─── Accessibilité ───────────────────────── */
.skip-link {
  position: absolute; top: -120%; left: var(--s4);
  background: var(--marine); color: var(--white);
  padding: var(--s2) var(--s6); font-size: .875rem;
  z-index: 999; border-radius: 0 0 var(--r-pill) var(--r-pill);
  transition: top var(--ease);
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}

/* ─── Layout ──────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--s6); }
.section        { padding: var(--s24) 0; background: var(--white); }
.section--white { background: var(--white); }
.section--slate { background: var(--marine); }

/* ─── Typographie ─────────────────────────── */
h1, h2, h3 { font-family: var(--poppins); font-weight: 700; color: var(--marine); line-height: 1.15; }
h1 { font-size: clamp(2.25rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.25rem); }
p  { line-height: 1.75; }

/* ─── Éléments décoratifs ─────────────────── */
.section-label {
  display: block;
  font-size: .75rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--red); margin-bottom: var(--s3);
}
/* Trait d'accent rouge de 4px sous les titres de section */
.sand-rule { width: 64px; height: 4px; background: var(--red); border: none; margin-bottom: var(--s6); }

/* ─── Logo inline ─────────────────────────── */
.logo-x { color: var(--red); }

/* ─── Boutons ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: .8125rem 1.75rem;
  font-family: var(--sans); font-size: .9375rem; font-weight: 600;
  border-radius: var(--r-btn); border: 2px solid transparent;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
  cursor: pointer; white-space: nowrap;
}
.btn--primary { background: var(--marine); color: var(--white); border-color: var(--marine); }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--red); border-color: var(--red); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn--outline-light:hover, .btn--outline-light:focus-visible { background: rgba(255,255,255,.1); border-color: var(--white); }

/* ─── Navigation ──────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 100;
  background: var(--white);
  border-bottom: 1px solid rgba(195,204,214,.6);
  transition: box-shadow var(--ease), border-color var(--ease);
}
.nav.is-scrolled { box-shadow: 0 2px 16px rgba(14,36,56,.09); border-bottom-color: transparent; }
.nav__inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--s6);
}
.nav__logo {
  font-family: var(--poppins); font-weight: 700;
  font-size: 1.5rem; color: var(--marine);
  letter-spacing: -.02em; flex-shrink: 0;
}
.nav__links { display: flex; align-items: center; gap: var(--s8); }
.nav__link {
  font-size: .875rem; font-weight: 500; color: var(--marine);
  transition: color var(--ease); position: relative; padding-bottom: 2px;
}
.nav__link::after {
  content: ''; position: absolute; bottom: -1px; left: 0;
  width: 0; height: 2px; background: var(--red); transition: width var(--ease);
}
.nav__link:hover, .nav__link:focus-visible { color: var(--red); }
.nav__link:hover::after, .nav__link:focus-visible::after { width: 100%; }
.nav__cta { font-size: .875rem; padding: .5rem 1.25rem; }

.nav__toggle {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 44px; height: 44px; padding: var(--s2);
}
.nav__toggle span {
  display: block; width: 20px; height: 2px; background: var(--marine);
  transition: transform var(--ease), opacity var(--ease); transform-origin: center;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--white); border-top: 1px solid rgba(195,204,214,.6);
  padding: var(--s4) var(--s6) var(--s8); z-index: 99;
  box-shadow: 0 8px 24px rgba(14,36,56,.1);
}
.nav__mobile.is-open { display: block; }
.nav__mobile .nav__link { display: block; padding: var(--s4) 0; font-size: 1rem; border-bottom: 1px solid rgba(195,204,214,.35); }
.nav__mobile .nav__link:last-of-type { border-bottom: none; }
.nav__mobile .btn { margin-top: var(--s6); width: 100%; justify-content: center; }

@media (max-width: 860px) {
  .nav__links  { display: none; }
  .nav__toggle { display: flex; }
}

/* ─── Hero ────────────────────────────────── */
.hero {
  padding-top: calc(var(--nav-h) + var(--s24));
  padding-bottom: var(--s24);
  min-height: 90vh; display: flex; align-items: center;
  background: var(--white);
}
.hero__content { max-width: 740px; }
.hero__kicker {
  display: block; font-size: .75rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--red); margin-bottom: var(--s6);
}
.hero__title { font-weight: 700; line-height: 1.1; margin-bottom: var(--s6); }
.hero__title em { font-style: normal; color: var(--red); display: block; }
.hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-sec); line-height: 1.8;
  max-width: 540px; margin-bottom: var(--s10);
}

/* ─── Sections services (cartes) ──────────── */
.service {
  background: var(--card-bg);
  border-radius: var(--r-card);
  padding: var(--s10) var(--s12);
  box-shadow: 0 1px 4px rgba(14,36,56,.06);
}
.service h2 { margin-bottom: var(--s6); }
.service p { font-size: 1.0625rem; color: var(--text-sec); line-height: 1.8; max-width: 560px; }

/* ─── Section CDI ─────────────────────────── */
.cdi { max-width: 640px; }
.section--slate .section-label { color: var(--red-light); }
.section--slate .sand-rule      { background: var(--red); }
.section--slate h2              { color: var(--white); }
.section--slate p               { color: rgba(255,255,255,.75); font-size: 1.0625rem; line-height: 1.8; max-width: 560px; margin-bottom: var(--s8); }

/* ─── Contact ─────────────────────────────── */
.contact__inner  { max-width: 520px; margin: 0 auto; }
.contact__inner h2 { margin-bottom: var(--s4); }
.contact__intro  { font-size: 1.0625rem; color: var(--text-sec); line-height: 1.75; margin-bottom: var(--s10); }
.contact__email  { display: block; font-size: .875rem; color: var(--slate-ui); margin-top: var(--s6); }
.contact__email a { color: var(--marine); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }

/* ─── Formulaire ──────────────────────────── */
.form__group { margin-bottom: var(--s5); }
.form__label { display: block; font-size: .875rem; font-weight: 500; color: var(--text-sec); margin-bottom: var(--s2); }
.form__input, .form__textarea {
  width: 100%; padding: .75rem 1rem;
  font-family: var(--sans); font-size: .9375rem;
  color: var(--marine); background: var(--white);
  border: 1.5px solid var(--slate-ui); border-radius: 8px;
  transition: border-color var(--ease), box-shadow var(--ease); -webkit-appearance: none;
}
.form__input:focus, .form__textarea:focus {
  outline: none; border-color: var(--marine);
  box-shadow: 0 0 0 3px rgba(14,36,56,.08);
}
.form__input.is-error, .form__textarea.is-error { border-color: var(--red); }
.form__textarea { min-height: 130px; resize: vertical; }
.form__error { font-size: .8rem; color: var(--red); margin-top: var(--s1); display: none; }
.form__error.is-visible { display: block; }
.form__honeypot { display: none; visibility: hidden; }
.form__consent {
  display: flex; align-items: flex-start; gap: var(--s3);
  font-size: .875rem; color: var(--text-sec); line-height: 1.55; cursor: pointer;
}
.form__consent input[type="checkbox"] { margin-top: 2px; width: 15px; height: 15px; min-width: 15px; accent-color: var(--marine); cursor: pointer; }
.form__consent a { color: var(--marine); text-decoration: underline; }
.form__submit { margin-top: var(--s6); }
.form__status { margin-top: var(--s4); padding: var(--s4) var(--s5); border-radius: var(--r-pill); font-size: .9rem; line-height: 1.55; display: none; }
.form__status.is-success { display: block; background: #ECFDF5; color: var(--success); border: 1px solid #A7F3D0; }
.form__status.is-error   { display: block; background: #FEF2F2; color: var(--red);     border: 1px solid #FCA5A5; }
.form__privacy { margin-top: var(--s3); font-size: .8rem; color: var(--slate-ui); line-height: 1.55; }
.form__privacy a { color: var(--text-sec); text-decoration: underline; }

/* ─── Pied de page ────────────────────────── */
.footer { background: var(--marine); padding: var(--s12) 0 0; }
.footer__inner {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--s12); padding-bottom: var(--s10); flex-wrap: wrap;
}
.footer__logo {
  display: block; font-family: var(--poppins); font-weight: 700;
  font-size: 1.5rem; color: var(--white);
  letter-spacing: -.02em; margin-bottom: var(--s2);
}
.footer__logo .logo-x { color: var(--red); }
.footer__tagline { font-size: .875rem; color: rgba(255,255,255,.5); line-height: 1.6; margin-bottom: var(--s5); }
.footer__sig { font-family: var(--poppins); font-weight: 600; font-size: 1rem; color: var(--white); line-height: 1.4; }
.footer__exclaim { color: var(--red); }
.footer__nav { display: flex; flex-direction: column; gap: var(--s3); }
.footer__nav-title { font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: var(--s1); display: block; }
.footer__nav a { font-size: .875rem; color: rgba(255,255,255,.6); transition: color var(--ease); }
.footer__nav a:hover { color: var(--white); }
.footer__contact-col { display: flex; flex-direction: column; gap: var(--s3); }
.footer__contact-col a { font-size: .9rem; color: rgba(255,255,255,.75); transition: color var(--ease); text-decoration: underline; text-underline-offset: 2px; }
.footer__contact-col a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: var(--s5) 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s4); flex-wrap: wrap; font-size: .8rem; color: rgba(255,255,255,.4);
}
.footer__legal { display: flex; gap: var(--s6); }
.footer__legal a { color: rgba(255,255,255,.4); transition: color var(--ease); }
.footer__legal a:hover { color: rgba(255,255,255,.75); }

/* ─── Pages légales ───────────────────────── */
.legal-page { padding-top: calc(var(--nav-h) + var(--s16)); padding-bottom: var(--s24); }
.legal-page__header { margin-bottom: var(--s12); padding-bottom: var(--s8); border-bottom: 1px solid var(--card-bg); }
.legal-page__header h1 { font-size: clamp(2rem, 4vw, 3rem); }
.legal-page__body { max-width: 720px; }
.legal-page__body h2 { font-size: 1.25rem; margin: var(--s10) 0 var(--s4); }
.legal-page__body h2:first-child { margin-top: 0; }
.legal-page__body p, .legal-page__body li { font-size: .9375rem; color: var(--text-sec); line-height: 1.75; margin-bottom: var(--s4); }
.legal-page__body ul { list-style: disc; padding-left: var(--s6); }
.legal-page__body address { font-style: normal; }

/* Repères provisoires */
.todo { background: #FEF9C3; color: #713F12; padding: .1em .3em; border-radius: 4px; font-size: .85em; font-style: italic; }

/* ─── Responsive ──────────────────────────── */
@media (max-width: 720px) {
  .footer__inner { flex-direction: column; gap: var(--s8); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .hero { padding-top: calc(var(--nav-h) + var(--s16)); padding-bottom: var(--s16); min-height: auto; }
  .section { padding: var(--s16) 0; }
  .service { padding: var(--s8) var(--s6); }
}
