/* ======================================================
   IAProche — style.css V1.8
   Palette officielle / Manrope / Responsive 3 breakpoints
   ====================================================== */

/* --- Reset & Base ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0; padding-left: 20px; }
li { margin-bottom: 6px; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

/* --- CSS Variables --------------------------------------- */
:root {
  /* Palette spec V1.8 */
  --bg:          #F7F8F8;
  --bg-alt:      #F1F4F4;
  --ink:         #0F2A2E;
  --text:        #3A3F42;
  --muted:       #6A7577;
  --accent:      #6FA8A0;
  --accent-warm: #D6B37C;
  --card:        #FFFFFF;
  --border:      #E3E7E8;

  /* Radius */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   20px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15,42,46,.06), 0 4px 12px rgba(15,42,46,.04);
  --shadow-md: 0 2px 8px rgba(15,42,46,.08), 0 12px 28px rgba(15,42,46,.06);

  /* Layout */
  --wrap-max: 1160px;
  --wrap-pad: 24px;
  --header-h: 64px;
}

/* --- Layout helpers -------------------------------------- */
.wrap {
  width: min(var(--wrap-max), calc(100% - var(--wrap-pad) * 2));
  margin-inline: auto;
}

/* --- Skip link ------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-sm);
  font-size: 14px;
}
.skip-link:focus { left: 8px; }

/* --- Typography ------------------------------------------ */
h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.06;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 20px;
  letter-spacing: -.025em;
}
h2 {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.15;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 16px;
  letter-spacing: -.015em;
}
h3 {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
}
.lead {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
}
.muted-text { color: var(--muted); font-size: 15px; }

/* --- Buttons -------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--ink);
  transition: background .14s, border-color .14s, transform .1s;
  white-space: nowrap;
}
.btn:hover { background: var(--bg-alt); text-decoration: none; }
.btn:active { transform: scale(.98); }

.btn.primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn.primary:hover { background: #1c3e43; border-color: #1c3e43; }

.btn.accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn.accent:hover { background: #5d9690; border-color: #5d9690; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cta-row.center { justify-content: center; }

/* ========================================================
   HEADER
   ======================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(247,248,248,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 0;
}

.brand {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.025em;
  flex-shrink: 0;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }

.header-spacer { flex: 1; }

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2px;
  margin: 0 16px;
}
.nav-desktop a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 7px 13px;
  border-radius: var(--r-pill);
  transition: background .12s;
  text-decoration: none;
}
.nav-desktop a:hover { background: rgba(15,42,46,.06); text-decoration: none; }
.nav-desktop a[aria-current="page"] {
  background: rgba(15,42,46,.08);
  color: var(--ink);
  font-weight: 600;
}

.header-cta {
  display: none;
  padding: 9px 18px;
  font-size: 14px;
}

.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  background: var(--card);
  cursor: pointer;
  flex-shrink: 0;
}
.burger svg { width: 20px; height: 20px; }

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .header-cta  { display: inline-flex; }
  .burger      { display: none; }
}

/* ========================================================
   DRAWER (mobile menu — slide-in right)
   ======================================================== */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,42,46,.4);
  z-index: 149;
  opacity: 0;
  transition: opacity .2s;
}
.drawer-overlay.open { display: block; opacity: 1; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(300px, 85vw);
  background: var(--card);
  z-index: 150;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .25s ease;
  box-shadow: -8px 0 40px rgba(15,42,46,.12);
}
.drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--border);
}
.drawer-title {
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -.02em;
}

.drawer-close {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  background: none;
  cursor: pointer;
  font-size: 15px;
  color: var(--muted);
  font-family: inherit;
}
.drawer-close:hover { color: var(--ink); }

.drawer-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 6px;
  overflow-y: auto;
}
.drawer-nav a {
  display: block;
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--border);
  background: var(--bg);
  text-decoration: none;
  transition: background .12s;
}
.drawer-nav a:hover { background: var(--bg-alt); text-decoration: none; }
.drawer-nav a[aria-current="page"] { background: var(--bg-alt); font-weight: 600; }

.drawer-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
}
.drawer-footer .btn { width: 100%; justify-content: center; }

/* ========================================================
   BANDS (section containers)
   ======================================================== */
.band {
  padding: 64px 0;
}
.band.alt {
  background: var(--bg-alt);
}
.band.cta-band {
  background: var(--ink);
  text-align: center;
  padding: 72px 0;
}
.band.cta-band h2 { color: #fff; max-width: 640px; margin: 0 auto 28px; }
.band.cta-band .btn {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
  font-size: 16px;
  padding: 14px 28px;
}
.band.cta-band .btn:hover { background: rgba(255,255,255,.88); }

@media (max-width: 767px) {
  .band { padding: 40px 0; }
  .band.cta-band { padding: 48px 0; }
}

/* ========================================================
   HOME — HERO
   ======================================================== */
.home-hero {
  min-height: calc(100svh - var(--header-h));
  display: grid;
  grid-template-columns: 1fr;
}

/* Abstract visual panel */
.hero-visual {
  display: none;
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}

/* Shapes using CSS only */
.hero-visual::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%;
  background: var(--accent);
  opacity: .13;
  top: 8%; left: -80px;
}
.hero-visual::after {
  content: "";
  position: absolute;
  width: 240px; height: 240px;
  border-radius: 45% 55% 60% 40% / 55% 45% 55% 45%;
  background: var(--accent);
  opacity: .08;
  bottom: 15%; right: -30px;
}

.hero-shape-1 {
  position: absolute;
  width: 160px; height: 160px;
  border-radius: 40% 60% 50% 50% / 60% 40% 60% 40%;
  background: var(--ink);
  opacity: .04;
  top: 42%; left: 28%;
}
.hero-shape-2 {
  position: absolute;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: var(--accent-warm);
  opacity: .1;
  top: 18%; right: 22%;
}
.hero-shape-3 {
  position: absolute;
  width: 60px; height: 60px;
  border-radius: 40% 60% 45% 55%;
  background: var(--accent);
  opacity: .12;
  bottom: 32%; left: 14%;
}

/* Copy side */
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px var(--wrap-pad);
}

.hero-copy h1 {
  max-width: 540px;
}
.hero-copy .lead {
  max-width: 480px;
  margin-bottom: 10px;
  font-weight: 400;
  color: var(--text);
}
.hero-copy .hero-body {
  font-size: 16px;
  line-height: 1.68;
  color: var(--text);
  max-width: 480px;
  margin-bottom: 8px;
}
.hero-copy .hero-punchline {
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 480px;
}
.hero-copy .cta-row {
  margin-bottom: 32px;
}
.scroll-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  align-self: flex-start;
}
.scroll-indicator:hover { color: var(--accent); text-decoration: none; }
.scroll-chevron {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  font-size: 14px;
}

@media (min-width: 1024px) {
  .home-hero {
    grid-template-columns: 1fr 1.15fr;
    min-height: calc(100svh - var(--header-h));
  }
  .hero-visual { display: block; }
  .hero-copy {
    padding: 80px 52px 80px 48px;
  }
}

/* ========================================================
   HOME — SECTION CARDS
   ======================================================== */
.two-col {
  display: grid;
  gap: 24px;
}
@media (min-width: 768px) {
  .two-col { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .two-col { gap: 16px; }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 28px 28px 32px;
  position: relative;
}
.card-accent-bar {
  position: absolute;
  left: 0; top: 20px; bottom: 20px;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}
.checklist li::before {
  content: "";
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background-color: rgba(111,168,160,.12);
  border: 1.5px solid var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%236FA8A0' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 10px;
}

@media (max-width: 767px) {
  .card { padding: 22px 20px 22px 24px; }
}

/* Principle block */
.principe-block {
  border-left: 3px solid var(--accent);
  padding: 18px 22px;
  background: rgba(111,168,160,.06);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin-bottom: 28px;
}
.principe-block p {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  font-style: italic;
  margin: 0;
}

/* Quote block */
.quote-block {
  border-left: 3px solid var(--accent-warm);
  padding: 16px 20px;
  background: rgba(214,179,124,.07);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.quote-block p { margin-bottom: 8px; font-size: 15px; }

/* Section intro text */
.section-intro {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 0;
}

/* ========================================================
   PAGE APPROCHE
   ======================================================== */
.approche-intro {
  max-width: 680px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 8px;
}
.step-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 24px 24px 20px;
}
.step-num {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}
.step-body h3 { margin-bottom: 8px; color: var(--ink); }
.step-body p { font-size: 15px; color: var(--text); margin-bottom: 8px; }
.step-body ul {
  margin: 6px 0 0;
  padding-left: 18px;
}
.step-body li { font-size: 14px; color: var(--text); margin-bottom: 4px; }

.cadre-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: 24px 28px;
  margin: 32px 0;
}
.cadre-block h3 { color: var(--ink); margin-bottom: 10px; }

.approche-conclusion-block {
  background: var(--bg-alt);
  border-radius: var(--r-xl);
  padding: 32px 36px;
  text-align: center;
}
.approche-conclusion-block p { font-size: 16px; color: var(--text); margin-bottom: 12px; }
.approche-conclusion-block .cta-row { justify-content: center; }

@media (max-width: 599px) {
  .step-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .step-num { width: 36px; height: 36px; font-size: 15px; }
  .approche-conclusion-block { padding: 24px 20px; }
}

/* ========================================================
   BINGO IA
   ======================================================== */
.bingo-page { padding: 48px 0 72px; }

.bingo-layout {
  display: grid;
  gap: 40px;
}

.bingo-intro-col {}
.bingo-intro-col h1 { margin-bottom: 8px; }

.bingo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(111,168,160,.1);
  border: 1px solid rgba(111,168,160,.3);
  border-radius: var(--r-pill);
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

.bingo-text { font-size: 16px; line-height: 1.65; color: var(--text); margin-bottom: 10px; }
.bingo-foot { font-size: 14px; color: var(--muted); margin-bottom: 20px; }

.bingo-tip {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
}
.bingo-tip-btn {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
  font-family: inherit;
}
.bingo-tip-btn:hover { border-color: var(--accent); color: var(--accent); }

.bingo-tip-pop {
  display: none;
  position: absolute;
  left: 36px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--r-md);
  font-size: 13px;
  z-index: 20;
  width: 220px;
  line-height: 1.45;
  pointer-events: none;
}
.bingo-tip[data-open="true"] .bingo-tip-pop { display: block; }

/* Grid */
.bingo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.bingo-tile {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 12px 12px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: transform .15s ease, border-color .15s, background .15s, box-shadow .15s;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.bingo-tile-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
}
.bingo-tile h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.25;
}

.bingo-check {
  width: 18px; height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all .15s;
  background-color: transparent;
}

.bingo-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .18s ease, opacity .18s ease;
}

/* Hover */
@media (hover: hover) {
  .bingo-tile:hover {
    border-color: var(--accent);
    background: rgba(111,168,160,.04);
    transform: scale(1.03);
    box-shadow: var(--shadow-sm);
    z-index: 1;
  }
  .bingo-tile:hover .bingo-desc {
    max-height: 80px;
    opacity: 1;
  }
}

/* Expanded (tap on touch devices) */
.bingo-tile.is-expanded {
  border-color: var(--accent);
  background: rgba(111,168,160,.04);
}
.bingo-tile.is-expanded .bingo-desc {
  max-height: 80px;
  opacity: 1;
}

/* Selected */
.bingo-tile.is-selected {
  border-color: var(--accent);
  background: rgba(111,168,160,.1);
}
.bingo-tile.is-selected .bingo-check {
  background-color: var(--accent);
  border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 10px;
}
.bingo-tile.is-selected h3 { color: #1a6a62; }

/* Responsive grid breakpoints (spec V1.8) */
/* Mobile ≤ 599px : 2×2 */
@media (min-width: 600px) {
  /* Tablet portrait : 3 cols */
  .bingo-grid { grid-template-columns: repeat(3, 1fr); }
  .bingo-tile h3 { font-size: 13px; }
}
@media (min-width: 900px) {
  /* Tablet paysage : 4 cols */
  .bingo-grid { grid-template-columns: repeat(4, 1fr); }
  .bingo-tile h3 { font-size: 14px; }
}
@media (min-width: 1024px) {
  /* Desktop : layout 2 cols (intro + grille) */
  .bingo-layout {
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
  }
  .bingo-intro-col { position: sticky; top: calc(var(--header-h) + 20px); }
}

/* ========================================================
   CONTACT FORM
   ======================================================== */
.contact-intro {
  font-size: 16px;
  line-height: 1.68;
  color: var(--text);
  margin-bottom: 0;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 620px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.field input,
.field textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 14px;
  outline: none;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(111,168,160,.14);
}
.field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form-grid { display: grid; gap: 16px; }
.form-grid.cols-2 { grid-template-columns: 1fr 1fr; }

.help {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 0;
  line-height: 1.45;
}
#formHint { min-height: 18px; }

@media (max-width: 599px) {
  .form-grid.cols-2 { grid-template-columns: 1fr; }
}

/* ========================================================
   FOOTER
   ======================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 13px; color: var(--muted); }
.footer-links { display: flex; gap: 16px; }
.footer-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--ink); text-decoration: underline; }

/* ========================================================
   MENTIONS LÉGALES
   ======================================================== */
.legal-wrap { max-width: 760px; }
.legal-wrap h2 { margin-top: 40px; font-size: 22px; }
.legal-wrap h3 { margin-top: 24px; font-size: 17px; }
.legal-wrap p,
.legal-wrap li { font-size: 15px; line-height: 1.72; color: var(--text); }
.legal-wrap .card { margin-bottom: 16px; }
.legal-wrap ul { margin: 8px 0 0; }
.legal-wrap a { color: var(--accent); text-decoration: underline; }

/* ========================================================
   UTILITIES
   ======================================================== */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
