/* ============================================================
   EasyDriver — Design System CSS (scoped to .ed-page)
   Adapted from Claude Design maquettes — Variation 1
   Font: FuturaStd-Book / FuturaStd-Bold
   ============================================================ */

/* ---------- CSS VARIABLES ---------- */
.ed-page {
  --blue:        #2E9CFF;
  --blue-2:      #1A89EE;
  --blue-soft:   #5BB5FF;
  --blue-bg:     #4A90E2;
  --green:       #3CE88C;
  --green-2:     #2FD47A;
  --ink:         #1F2A33;
  --ink-soft:    #4A5663;
  --ink-mute:    #7F8A97;
  --paper:       #FFFFFF;
  --border:      #E8EDF2;

  font-family: 'FuturaStd-Book', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.ed-page *, .ed-page *::before, .ed-page *::after {
  box-sizing: border-box;
}

.ed-page a { color: var(--blue-soft); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px }
.ed-page a:hover { color: var(--blue) }

.ed-page h1,
.ed-page h2,
.ed-page h3,
.ed-page h4 {
  font-family: 'FuturaStd-Bold', system-ui, sans-serif;
  color: var(--blue);
  margin: 0 0 .6em;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.005em;
}
.ed-page h1 { font-size: 2.6rem; font-weight: 900 }
.ed-page h2 { font-size: 1.9rem; font-weight: 800 }
.ed-page h3 { font-size: 1.35rem; font-weight: 800 }
.ed-page p { margin: 0 0 1em; color: var(--ink-soft) }
.ed-page ul, .ed-page ol { margin: 0 0 1em; padding-left: 1.4em; color: var(--ink-soft) }
.ed-page li { margin-bottom: .45em }
.ed-page strong { color: var(--ink); font-family: 'FuturaStd-Bold', system-ui, sans-serif; font-weight: 700 }

/* ---------- CTA BUTTONS ---------- */
.ed-page .cta-blue {
  background: var(--blue-2); color: white; border: none;
  padding: 13px 26px; border-radius: 999px;
  font-family: 'FuturaStd-Bold', system-ui, sans-serif;
  font-weight: 700; font-size: 15px;
  cursor: pointer; text-decoration: none; display: inline-block;
}
.ed-page .cta-blue:hover { background: #1378D9; color: white }
.ed-page .cta-green {
  background: var(--green); color: white; border: none;
  padding: 16px 34px; border-radius: 999px;
  font-family: 'FuturaStd-Bold', system-ui, sans-serif;
  font-weight: 800; font-size: 17px;
  cursor: pointer; text-decoration: none; display: inline-block;
  letter-spacing: .005em;
}
.ed-page .cta-green:hover { background: var(--green-2); color: white }

/* ---------- PASTILLE VERTE CAPSULE (signature EasyDriver) ---------- */
.ed-page .pill {
  display: inline-block;
  width: 16px; height: 44px;
  background: var(--green);
  border-radius: 12px;
  vertical-align: middle;
  margin-right: 18px;
  position: relative;
  top: -4px;
  transform: rotate(-8deg);
}
.ed-page h1 .pill { height: 56px; width: 18px; margin-right: 22px; top: -6px }
.ed-page .pill-sm { height: 30px; width: 12px; border-radius: 8px; top: -2px }

/* icone capsule elaboree */
.ed-page .ico-bubble {
  display: inline-block;
  width: 64px; height: 78px;
  background: var(--green);
  border-radius: 32px / 28px;
  position: relative;
  transform: rotate(-6deg);
  flex-shrink: 0;
}
.ed-page .ico-bubble::after {
  content: '';
  position: absolute;
  bottom: 12px; left: 50%; transform: translateX(-50%);
  width: 14px; height: 14px; background: white; border-radius: 50%;
}
.ed-page .ico-bubble .glyph {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%) rotate(6deg);
  color: white;
  font-family: 'FuturaStd-Bold', system-ui, sans-serif;
  font-weight: 900;
  font-size: 38px;
  line-height: 1;
}

/* ---------- CONTAINERS ---------- */
.ed-page .container { max-width: 1100px; margin: 0 auto; padding: 0 5vw }
.ed-page .container-narrow { max-width: 820px; margin: 0 auto; padding: 0 5vw }

/* ---------- HERO pleine image ---------- */
.ed-page .hero-image {
  background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.35) 100%),
              repeating-linear-gradient(135deg, #6BA8D8 0 40px, #7AB5E0 40px 80px);
  min-height: 520px;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 5vw;
  position: relative;
}
.ed-page .hero-image h1 {
  color: white;
  font-size: 3.6rem;
  font-weight: 900;
  text-align: center;
  max-width: 1000px;
  text-shadow: 0 4px 20px rgba(0,0,0,.35);
  line-height: 1.1;
  margin: 0;
}
.ed-page .hero-subband {
  background: var(--blue-bg);
  color: white;
  padding: 26px 5vw;
  text-align: center;
}
.ed-page .hero-subband h2 {
  color: white;
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0;
  max-width: 1100px;
  margin: 0 auto;
  line-height: 1.35;
}

/* ---------- HERO split image ronde + texte ---------- */
.ed-page .hero-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; padding: 70px 5vw; max-width: 1200px; margin: 0 auto;
  align-items: center;
}
.ed-page .round-art {
  aspect-ratio: 1/1; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--green) 0%, var(--green-2) 100%);
  position: relative;
  max-width: 420px; justify-self: center; width: 100%;
  box-shadow: 0 18px 50px rgba(60,232,140,.28);
  overflow: hidden;
}
.ed-page .round-art::after {
  content: ''; position: absolute; inset: 18%;
  background: white;
  border-radius: 50%;
  background-image: repeating-linear-gradient(45deg, #EFF4F9 0 10px, #E1E8F0 10px 20px);
}
.ed-page .hero-split .txt h1 { color: var(--ink); font-size: 1.6rem; font-weight: 700; line-height: 1.3; margin-bottom: .3em }
.ed-page .hero-split .txt h1 .accent { color: var(--blue); font-weight: 600 }
.ed-page .hero-split .txt p { font-size: 1.05rem; color: var(--ink) }
.ed-page .hero-split .txt .en-savoir { display: inline-block; margin-top: 10px; font-size: 15px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px }

/* ---------- HERO minimaliste (titre + chapo) ---------- */
.ed-page .hero-simple {
  padding: 70px 5vw 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.ed-page .hero-simple h1 {
  font-size: 2.8rem; font-weight: 900;
  display: block;
}
.ed-page .hero-simple h1 .pill {
  display: inline-block;
  vertical-align: middle;
  margin-right: 16px;
}
.ed-page .hero-simple h1 .accent-ink { color: var(--ink) }
.ed-page .hero-simple .chapo {
  font-size: 1.1rem; color: var(--ink); max-width: 820px; margin-top: 12px;
}

/* ---------- ENCART "Essentiel / Pour aller plus loin" ---------- */
.ed-page .two-capsules {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  margin: 50px 0; padding: 0 5vw;
  max-width: 1100px; margin-left: auto; margin-right: auto;
}
.ed-page .capsule-block {
  display: grid; grid-template-columns: 80px 1fr; gap: 24px;
  align-items: start;
}
.ed-page .capsule-block h3 {
  color: var(--blue); font-size: 1.7rem; font-weight: 800;
  margin: 0 0 .5em;
}
.ed-page .capsule-block p, .ed-page .capsule-block li { color: var(--ink); font-size: 15.5px }
.ed-page .capsule-block ul { padding-left: 1.1em }
.ed-page .capsule-block ul li { margin-bottom: .7em }

/* ---------- Section titre avec pastille ---------- */
.ed-page .titled-section { padding: 50px 0 }
.ed-page .titled-section .section-title {
  color: var(--blue); font-size: 2rem; font-weight: 800;
  display: flex; align-items: flex-start; gap: 0;
}
.ed-page .titled-section .section-title .pill { margin-right: 16px; height: 42px; width: 14px; top: -2px }
.ed-page .titled-section .body { font-size: 16.5px; color: var(--ink); line-height: 1.65 }
.ed-page .titled-section .body a { color: var(--blue-soft) }
.ed-page .titled-section .highlight-line {
  color: var(--blue); font-family: 'FuturaStd-Bold', system-ui, sans-serif; font-weight: 800; font-size: 1.15rem; margin: 20px 0;
}

/* ---------- BANDE BLEUE PLEINE ---------- */
.ed-page .blue-band {
  background: var(--blue-bg);
  color: white;
  padding: 60px 5vw 80px;
}
.ed-page .blue-band .btn-top {
  display: flex; justify-content: center; margin-bottom: 40px;
}
.ed-page .blue-band .wrap { max-width: 1100px; margin: 0 auto }
.ed-page .blue-band .bb-item {
  display: grid; grid-template-columns: 60px 1fr; gap: 14px;
  margin-bottom: 44px;
}
.ed-page .blue-band .bb-item h3 {
  color: white; font-size: 1.5rem; font-weight: 800;
  margin: 0 0 .5em; line-height: 1.2;
}
.ed-page .blue-band .bb-item p { color: rgba(255,255,255,.82); font-size: 14px; margin: 0; max-width: 880px }
.ed-page .blue-band .pill-white {
  background: var(--green); width: 14px; height: 40px; border-radius: 10px;
  transform: rotate(-8deg); margin-top: 4px;
}
.ed-page .blue-band .big-headline {
  color: white; font-size: 2.1rem; font-weight: 800; margin-top: 60px;
}

/* ---------- CARTES a double bordure verte ---------- */
.ed-page .cards-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px;
  background: var(--blue-bg);
  padding: 60px 5vw;
}
.ed-page .cards-grid .card {
  background: white;
  border: 3px solid var(--green);
  border-radius: 20px;
  padding: 36px 36px 40px;
  position: relative;
  outline: 4px solid var(--green);
  outline-offset: -10px;
}
.ed-page .cards-grid .card .card-icon {
  height: 130px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.ed-page .cards-grid .card .card-icon .ph {
  background: repeating-linear-gradient(45deg, #E6F1FC 0 10px, #D2E4F6 10px 20px);
  width: 70%; height: 100%; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-bg); font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: .1em;
}
.ed-page .cards-grid .card h3 {
  color: var(--blue); text-align: center; font-size: 1.2rem; font-weight: 800;
  margin: 0 0 16px; line-height: 1.3;
}
.ed-page .cards-grid .card p {
  color: var(--ink); text-align: left; font-size: 15px; line-height: 1.55;
  margin: 0;
}

/* ---------- FAQ ACCORDION ---------- */
.ed-page .faq-list { margin: 30px 0 }
.ed-page .faq-item {
  border-top: 2px solid var(--border);
  padding: 0;
}
.ed-page .faq-item:last-child { border-bottom: 2px solid var(--border) }
.ed-page .faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-family: 'FuturaStd-Bold', system-ui, sans-serif;
  font-weight: 800; font-size: 1.15rem; color: var(--blue);
  padding: 22px 6px;
}
.ed-page .faq-item summary::-webkit-details-marker { display: none }
.ed-page .faq-item .chev {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: transparent; color: var(--blue); border: 2px solid var(--blue);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900;
  transition: transform .25s ease;
}
.ed-page .faq-item[open] .chev { transform: rotate(45deg); background: var(--green); color: white; border-color: var(--green) }
.ed-page .faq-item .answer { padding: 0 6px 26px 6px; color: var(--ink); max-width: 840px; font-size: 16px; line-height: 1.6 }
.ed-page .faq-item .answer a { color: var(--blue-soft) }

/* ---------- Stats row ---------- */
.ed-page .stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; margin: 30px 0;
}
.ed-page .stat { text-align: center; padding: 10px }
.ed-page .stat .num { font-size: 3.2rem; color: var(--blue); font-family: 'FuturaStd-Bold', system-ui, sans-serif; font-weight: 900; line-height: 1 }
.ed-page .stat .num .plus { color: var(--green-2) }
.ed-page .stat .label { color: var(--ink); font-size: 14.5px; margin-top: 8px; font-family: 'FuturaStd-Bold', system-ui, sans-serif; font-weight: 600 }
.ed-page .stats-row.on-blue .stat .num { color: white }
.ed-page .stats-row.on-blue .stat .num .plus { color: var(--green) }
.ed-page .stats-row.on-blue .stat .label { color: rgba(255,255,255,.9) }

/* ---------- Guide article ---------- */
.ed-page .guide-layout { display: grid; grid-template-columns: 240px 1fr; gap: 60px; max-width: 1200px; margin: 0 auto; padding: 40px 5vw 0 }
.ed-page .toc { position: sticky; top: 90px; align-self: start; max-height: calc(100vh - 110px); overflow: auto }
.ed-page .toc h4 { color: var(--ink-soft); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; margin-bottom: 12px; font-weight: 800 }
.ed-page .toc a {
  display: block; padding: 9px 14px 9px 16px;
  color: var(--ink-soft); text-decoration: none;
  font-size: 14px; font-family: 'FuturaStd-Bold', system-ui, sans-serif; font-weight: 600;
  border-left: 2px solid var(--border);
  margin-bottom: 2px;
}
.ed-page .toc a.active { color: var(--blue); border-left-color: var(--blue); background: #EAF5FF }
.ed-page .toc a:hover { color: var(--blue) }
.ed-page .toc .level-2 { padding-left: 30px; font-size: 13px; font-weight: 500 }

.ed-page .article-body h2 { color: var(--blue); font-size: 1.8rem; margin-top: 1.8em; scroll-margin-top: 90px; display: flex; align-items: flex-start; gap: 0 }
.ed-page .article-body h2:first-child { margin-top: 0 }
.ed-page .article-body h2 .pill { margin-right: 14px; height: 36px; width: 12px; top: -2px }
.ed-page .article-body h3 { color: var(--blue); margin-top: 1.6em; font-size: 1.2rem }
.ed-page .article-body p, .ed-page .article-body li { font-size: 16.5px; color: var(--ink); line-height: 1.65 }
.ed-page .article-body .intro-lead { font-size: 1.15rem; color: var(--ink); max-width: 820px; line-height: 1.55; margin-bottom: 1.4em }
.ed-page .article-body .intro-lead .bold-blue { color: var(--blue); font-family: 'FuturaStd-Bold', system-ui, sans-serif; font-weight: 800 }
.ed-page .article-body .bold-blue { color: var(--blue); font-family: 'FuturaStd-Bold', system-ui, sans-serif; font-weight: 800 }
.ed-page .article-body a { color: var(--blue-soft) }

/* ---------- Legal ---------- */
.ed-page .legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 60px; max-width: 1200px; margin: 0 auto; padding: 40px 5vw 0 }
.ed-page .legal-aside { position: sticky; top: 90px; align-self: start }
.ed-page .legal-aside .updated-tag {
  display: inline-block; background: var(--green); color: white;
  font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-family: 'FuturaStd-Bold', system-ui, sans-serif; font-weight: 800;
  padding: 4px 12px; border-radius: 999px;
}
.ed-page .legal-aside .date-big { color: var(--blue); font-family: 'FuturaStd-Bold', system-ui, sans-serif; font-weight: 900; font-size: 1.15rem; margin: 12px 0 20px }
.ed-page .legal-aside nav a {
  display: block; padding: 9px 0 9px 14px;
  color: var(--ink-soft); text-decoration: none; font-size: 14px; font-family: 'FuturaStd-Bold', system-ui, sans-serif; font-weight: 600;
  border-left: 2px solid var(--border);
  margin-bottom: 2px;
}
.ed-page .legal-aside nav a.active { color: var(--blue); border-left-color: var(--blue); background: #EAF5FF }
.ed-page .legal-aside nav a:hover { color: var(--blue) }

.ed-page .legal-body h2 { color: var(--blue); font-size: 1.6rem; margin-top: 2em; scroll-margin-top: 90px; display: flex; align-items: flex-start; gap: 0 }
.ed-page .legal-body h2:first-child { margin-top: 0 }
.ed-page .legal-body h2 .pill { margin-right: 12px; height: 32px; width: 11px; top: -2px }
.ed-page .legal-body h3 { color: var(--blue); font-size: 1.1rem }
.ed-page .legal-body p, .ed-page .legal-body li { font-size: 16px; color: var(--ink); line-height: 1.65 }

/* Table RGPD */
.ed-page .data-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 20px 0; border: 2px solid var(--green); border-radius: 14px; overflow: hidden }
.ed-page .data-table thead { background: var(--blue-bg); color: white }
.ed-page .data-table th { padding: 12px 16px; text-align: left; font-family: 'FuturaStd-Bold', system-ui, sans-serif; font-weight: 800 }
.ed-page .data-table td { padding: 12px 16px; color: var(--ink); border-top: 1px solid var(--border) }
.ed-page .data-table tbody tr:nth-child(even) { background: #F6FBFF }

/* ---------- CTA BAND ---------- */
.ed-page .cta-band {
  background: var(--blue-bg);
  color: white;
  padding: 50px 5vw;
  text-align: center;
  margin-top: 60px;
}
.ed-page .cta-band h2 { color: white; margin-bottom: 10px; font-size: 1.8rem }
.ed-page .cta-band p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 24px }

/* ---------- UTILS ---------- */
.ed-page .eyebrow {
  color: var(--green-2); font-family: 'FuturaStd-Bold', system-ui, sans-serif; font-weight: 800;
  text-transform: uppercase; letter-spacing: .17em; font-size: 12.5px;
  margin-bottom: 14px;
}
.ed-page .divider { height: 1px; background: var(--border); margin: 50px 0 }
.ed-page .subtle { color: var(--ink-soft) }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .ed-page .stats-row,
  .ed-page .two-capsules,
  .ed-page .hero-split,
  .ed-page .cards-grid,
  .ed-page .guide-layout,
  .ed-page .legal-layout { grid-template-columns: 1fr; gap: 28px }
  .ed-page h1 { font-size: 2.1rem }
  .ed-page h2 { font-size: 1.5rem }
  .ed-page .toc, .ed-page .legal-aside { position: static; max-height: none }
  .ed-page .hero-image h1 { font-size: 2.2rem }
  .ed-page .hero-simple h1 { font-size: 2.1rem }
}

/* Contact form — réduire espacement entre champs */
.contact .wpcf7-form p {
  margin-bottom: 6px;
}
.contact .wpcf7-form br {
  display: none;
}
.contact .wpcf7-form .wpcf7-form-control {
  margin-bottom: 8px;
}
