/* ==========================================================================
   Itérys — feuille de style principale
   Palette : Navy #142038 · Teal #0B8A7A · Sand #E8C97A · Coral #D95B3B
   Police : Arial (système)
   ========================================================================== */

:root {
  --navy: #142038;
  --navy-soft: #1c2c4d;
  --teal: #0B8A7A;
  --teal-soft: #0fa792;
  --sand: #E8C97A;
  --coral: #D95B3B;
  --slate: #4A6070;
  --off-white: #F7F5F0;
  --white: #FFFFFF;
  --ink: #142038;
  --ink-muted: #5b6a78;
  --border: #E4E1D8;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 6px 24px rgba(20, 32, 56, 0.08);
  --shadow-lg: 0 16px 40px rgba(20, 32, 56, 0.14);
  --container-w: 1180px;
}

/* ---- Reset ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--navy);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 2.85rem); margin-bottom: 18px; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 14px; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }
h4 { font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); margin-bottom: 14px; }

p { color: var(--ink-muted); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Layout helpers ---- */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 88px 0; }
.section-white { background: var(--white); }
.section-off { background: var(--off-white); }
.section-navy { background: var(--navy); }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

.section-navy .eyebrow { color: var(--sand); }

.lede { font-size: 1.08rem; color: var(--ink-muted); max-width: 640px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 36px; height: 36px; flex-shrink: 0; }

.wordmark {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--navy);
}
.wordmark span { color: var(--teal); }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--navy);
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover { color: var(--teal); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transition: transform .18s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 18px; }

.nav-toggle-checkbox { display: none; }
.nav-toggle-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle-label span {
  width: 22px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-block { width: 100%; }

.btn-primary { background: var(--coral); color: var(--white); }
.btn-primary:hover { background: #c54e30; box-shadow: 0 8px 20px rgba(217,91,59,.3); }

.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-soft); box-shadow: 0 8px 20px rgba(20,32,56,.25); }

.btn-outline { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }

.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: var(--white); }

/* ==========================================================================
   Hero (homepage)
   ========================================================================== */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 90px 0 70px;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}
.hero h1 { color: var(--white); }
.hero .lede { color: rgba(255,255,255,.82); }
.hero-ctas { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-art svg { width: 100%; height: auto; }

/* Generic page hero (sub-pages) */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 70px 0 60px;
}
.page-hero h1 { color: var(--white); }
.page-hero .lede { color: rgba(255,255,255,.82); max-width: 680px; }

/* ==========================================================================
   Stat strip
   ========================================================================== */
.stat-strip {
  background: var(--teal);
  padding: 30px 0;
}
.stat-strip .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stat-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; color: var(--white); }
.stat-num { font-size: 2.2rem; font-weight: 800; }
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,.88); max-width: 220px; }

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
}
.card-flat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.card h3, .card-flat h3 { margin-top: 4px; }
.card p, .card-flat p { font-size: 0.94rem; }

.icon-circle {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--white);
}
.icon-circle svg { width: 22px; height: 22px; }
.bg-coral { background: var(--coral); }
.bg-teal { background: var(--teal); }
.bg-sand { background: var(--sand); color: var(--navy); }
.bg-navy { background: var(--navy); }

/* ==========================================================================
   Steps (3-phase process, homepage)
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step {
  border-top: 3px solid var(--teal);
  padding-top: 20px;
}
.step:nth-child(2) { border-top-color: var(--sand); }
.step:nth-child(3) { border-top-color: var(--coral); }
.step-num {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 10px;
}
.step:nth-child(2) .step-num { color: #b9952f; }
.step:nth-child(3) .step-num { color: var(--coral); }
.step p { font-size: 0.94rem; }

/* ==========================================================================
   Badges
   ========================================================================== */
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--white);
}
.badge-teal { background: var(--teal); }
.badge-coral { background: var(--coral); }
.badge-sand { background: var(--sand); color: var(--navy); }

/* ==========================================================================
   Pricing grid
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.price-card.featured {
  border: 2px solid var(--sand);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.price-name {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--navy);
}
.price-note { font-size: 0.88rem; color: var(--ink-muted); margin-bottom: 18px; }
.price-card ul { margin: 0 0 24px; flex-grow: 1; }
.price-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ink-muted);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}
.price-card li:last-child { border-bottom: none; }
.price-card li svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--teal);
}

/* ==========================================================================
   Timeline (employeurs)
   ========================================================================== */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 22px; left: 0; right: 0;
  height: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  text-align: center;
  padding-top: 50px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--teal);
}
.timeline-duration {
  display: block;
  font-weight: 800;
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.timeline-item span:last-child { font-size: 0.9rem; color: var(--ink-muted); }

/* ==========================================================================
   Sector grid
   ========================================================================== */
.sector-grid { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.sector-pill {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
}

/* ==========================================================================
   Split CTA (homepage)
   ========================================================================== */
.split-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { border-radius: var(--radius); padding: 40px 34px; }
.panel.navy { background: var(--navy); }
.panel.teal { background: var(--teal); }
.panel p { margin: 10px 0 0; }

/* ==========================================================================
   Article / CTA blocks
   ========================================================================== */
.article-cta {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 38px 34px;
  text-align: left;
}
.article-cta h3 { color: var(--white); }
.article-cta p { margin-bottom: 6px; color: rgba(255,255,255,.82); }

/* ==========================================================================
   Blog
   ========================================================================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow .18s ease, transform .18s ease;
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.blog-cover {
  height: 150px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
}
.blog-body { padding: 22px; }
.blog-body .cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 10px;
}
.blog-body h3 { font-size: 1.05rem; }
.blog-body p { font-size: 0.9rem; margin-bottom: 14px; }
.read-more { font-weight: 700; color: var(--teal); font-size: 0.9rem; }

/* ---- Article page ---- */
.article-shell { max-width: 700px; margin: 0 auto; }
.article-cat {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 14px;
}
.article-meta { font-size: 0.88rem; color: var(--ink-muted); margin-bottom: 30px; }
.article-shell h2 { margin-top: 38px; }
.article-shell p { margin-bottom: 16px; font-size: 1.02rem; }
.article-shell ul { margin: 0 0 20px; padding-left: 1.2em; color: var(--ink-muted); }
.article-shell li { margin-bottom: 10px; }
.article-shell .article-cta { margin-top: 40px; }

.pull-note {
  background: var(--off-white);
  border-left: 3px solid var(--sand);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  font-size: 1rem;
  color: var(--navy);
  font-weight: 600;
  margin: 28px 0;
}

.sources-list {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.7;
}
.sources-list a { color: var(--teal); font-weight: 600; }

/* ==========================================================================
   Candidate path (timeline list)
   ========================================================================== */
.path { display: flex; flex-direction: column; gap: 0; max-width: 720px; margin: 0 auto; }
.path-step {
  position: relative;
  padding: 18px 0 18px 56px;
  border-left: 2px solid var(--border);
  margin-left: 18px;
}
.path-step:last-child { border-left-color: transparent; }
.path-step::before {
  content: attr(data-n);
  position: absolute;
  left: -18px; top: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-weight: 800;
  font-size: 0.92rem;
  display: flex; align-items: center; justify-content: center;
}
.path-step p { font-size: 0.94rem; margin: 0; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.chev { transition: transform .18s ease; color: var(--teal); }
.faq-item[open] .chev { transform: rotate(180deg); }
.faq-body { padding-top: 14px; font-size: 0.95rem; color: var(--ink-muted); }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 34px;
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.required { color: var(--coral); }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(11,138,122,.15);
}
.form-row textarea { resize: vertical; min-height: 110px; }

.contact-info-list { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-info-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-list .label { display: block; font-size: 0.78rem; color: var(--ink-muted); }
.contact-info-list .value { display: block; font-weight: 700; color: var(--navy); }

/* ==========================================================================
   Disclaimer
   ========================================================================== */
.disclaimer {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--off-white);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 0.86rem;
  color: var(--ink-muted);
}
.disclaimer svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: var(--coral); }
.section-navy .disclaimer { background: rgba(255,255,255,.06); color: rgba(255,255,255,.78); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand .wordmark { color: var(--white); }
.footer-brand .wordmark span { color: var(--sand); }
.footer-tagline { margin-top: 12px; color: rgba(255,255,255,.62); font-size: 0.9rem; }
.site-footer h4 { color: var(--white); }
.site-footer .footer-grid > div > a,
.site-footer .footer-grid > div > span {
  display: block;
  font-size: 0.92rem;
  color: rgba(255,255,255,.72);
  margin-bottom: 10px;
}
.site-footer .footer-grid > div > a:hover { color: var(--sand); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.7); }
.footer-bottom a:hover { color: var(--sand); }

/* ==========================================================================
   Legal pages
   ========================================================================== */
.article-shell strong { color: var(--navy); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .grid-2, .grid-3, .grid-4, .pricing-grid, .blog-grid, .split-cta, .timeline, .footer-grid {
    grid-template-columns: 1fr;
  }
  .price-card.featured { transform: none; }
  .timeline::before { display: none; }
  .timeline-item::before { left: 0; transform: none; }
  .timeline-item { text-align: left; padding-left: 30px; }
  .stat-strip .container { grid-template-columns: 1fr; gap: 18px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 760px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 78px; left: 0; right: 0;
    background: var(--off-white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 28px;
    gap: 16px;
  }
  .nav-toggle-checkbox:checked ~ .main-nav { display: flex; }
  .nav-toggle-label { display: flex; }
  .header-cta .btn { display: none; }
  .section { padding: 56px 0; }
  .container { padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
