@import url('fonts/fonts.css');

:root {
  --green: #81C784;
  --purple: #B39DDB;
  --yellow: #FFEB3B;
  --bg: #FAFAFA;
  --text: #1a1a1a;
  --card-bg: #F4F6EE;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }

/* ---------- HEADER ---------- */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  flex-wrap: wrap;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img { width: 40px; height: auto; }
.logo span {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: 22px;
  color: var(--green);
}

nav {
  display: flex;
  gap: 28px;
  border: 1px solid var(--green);
  padding: 14px 28px;
  border-radius: 4px;
  flex-wrap: wrap;
}
nav a {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--purple);
}
nav a.active { color: var(--green); text-decoration: underline; }

/* ---------- HERO ---------- */
.hero-title {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  text-align: center;
  color: var(--green);
  font-size: clamp(42px, 9vw, 110px);
  text-shadow: 5px 5px 0 rgba(0,0,0,0.88);
  margin: 40px 20px 30px;
  letter-spacing: 1px;
}

.hero-illustration-wrap {
  background: #FBF3EC;
  border-radius: 6px;
  max-width: 1000px;
  margin: 0 auto 40px;
  padding: 24px;
  text-align: center;
}
.hero-illustration-wrap img { max-width: 100%; height: auto; display: block; margin: 0 auto; }

/* ---------- PILL BUTTON ---------- */
.btn-pill {
  display: inline-block;
  background: var(--yellow);
  border: 3px solid var(--purple);
  border-radius: 999px;
  padding: 16px 34px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--purple);
  cursor: pointer;
}
.btn-pill-wrap { text-align: center; margin: 24px 0; }

/* ---------- SECTIONS ---------- */
section.block {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 24px;
  text-align: center;
}
h2.section-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  color: var(--purple);
  font-size: clamp(30px, 5vw, 44px);
  margin-bottom: 24px;
}
.body-text {
  font-size: 18px;
  color: var(--text);
}

/* Page hero banner (subpages: Service, Nous recrutons) */
.page-banner {
  background: linear-gradient(to bottom, #ffffff 0%, var(--purple) 100%);
  padding: 60px 24px 50px;
  text-align: center;
}
.page-banner h1 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 5vw, 42px);
  color: #000;
  text-transform: uppercase;
  margin: 0 0 30px;
}
.page-banner p {
  max-width: 850px;
  margin: 0 auto 30px;
  font-size: 19px;
  font-weight: 700;
  color: #000;
}

/* 4-column info grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(to bottom, var(--purple) 0%, var(--card-bg) 100%);
  border-top: 1px solid #000;
}
.info-grid > div {
  padding: 36px 28px;
  border-right: 1px solid #000;
}
.info-grid > div:last-child { border-right: none; }
.info-grid h3 {
  font-size: 20px;
  margin: 0 0 14px;
}
.info-grid p { font-size: 15px; margin: 0 0 10px; }

@media (max-width: 820px) {
  .info-grid { grid-template-columns: 1fr 1fr; }
  .info-grid > div { border-bottom: 1px solid #000; }
}

/* Steps (comment ça fonctionne) */
.steps { max-width: 750px; margin: 40px auto; padding: 0 24px; }
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 34px;
  text-align: left;
}
.step img { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }
.step h4 { margin: 0 0 8px; font-size: 20px; }
.step p { margin: 0; font-size: 16px; }

/* ---------- CONTACT ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 24px;
}
.contact-wrap h2 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  color: var(--purple);
  font-size: clamp(28px, 4vw, 40px);
  margin-top: 0;
}
.contact-wrap .contact-info p { font-size: 17px; }

.contact-form h2 { font-size: 30px; color: #000; margin-top: 0; }
.field-row { display: flex; gap: 20px; margin-bottom: 16px; flex-wrap: wrap; }
.field { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea, .field select {
  border: 1px solid #999;
  border-radius: 3px;
  padding: 12px;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
}
.field textarea { min-height: 110px; resize: vertical; }

@media (max-width: 820px) {
  .contact-wrap { grid-template-columns: 1fr; }
}

/* ---------- A PROPOS ---------- */
.apropos-wrap {
  max-width: 1100px;
  margin: 20px auto 60px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: start;
}
.apropos-wrap h1 {
  grid-column: 1 / -1;
  text-align: center;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 5vw, 42px);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.apropos-question {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
}
.founders-photo-block { text-align: center; position: relative; }
.founders-photo-block img { max-width: 260px; border-radius: 6px; }
.founders-photo-block .label {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 32px;
}
.apropos-text p { font-size: 16px; margin-bottom: 18px; }

/* ---------- LONG FORMS (inscription / recrutement) — editorial timeline style ---------- */
.form-page-bg {
  background: var(--bg);
  padding-bottom: 20px;
}

.form-page-wrap {
  max-width: 620px;
  margin: 50px auto 100px;
  padding: 0 24px;
}
.form-page-wrap h1 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 4vw, 38px);
  text-align: center;
  margin-bottom: 0;
}
.form-page-wrap h1::after {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  background: var(--yellow);
  border: 1.5px solid var(--purple);
  border-radius: 4px;
  margin: 18px auto 0;
}
.form-page-wrap .form-subtitle {
  text-align: center;
  color: #888;
  margin: 18px 0 0;
  font-size: 15px;
}

.form-card {
  background: none;
  box-shadow: none;
  padding: 56px 0 0;
}

/* Numbered timeline sections */
.form-page-wrap form { counter-reset: fsection; }
.form-section {
  counter-increment: fsection;
  position: relative;
  padding-left: 54px;
  padding-bottom: 48px;
}
.form-section::before {
  content: counter(fsection);
  position: absolute;
  left: 0; top: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--purple);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  background: var(--bg);
  z-index: 1;
}
.form-section::after {
  content: "";
  position: absolute;
  left: 16px; top: 34px; bottom: 0;
  width: 1.5px;
  background: #E4E0EC;
}
.form-section:has(+ .cgv-line)::after { display: none; }

.field-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}
@media (max-width: 560px) {
  .field-grid-2 { grid-template-columns: 1fr; }
}

.form-page-wrap .field { margin-bottom: 26px; display: flex; flex-direction: column; gap: 4px; }
.form-page-wrap .field label {
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #9891a3;
}
.form-page-wrap .field input[type=text],
.form-page-wrap .field input[type=email],
.form-page-wrap .field input[type=tel],
.form-page-wrap .field input[type=number],
.form-page-wrap .field select,
.form-page-wrap .field textarea {
  border: none;
  border-bottom: 2px solid #E4E0EC;
  border-radius: 0;
  padding: 9px 2px;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  color: #222;
  width: 100%;
  background: transparent;
  transition: border-color .18s;
}
.form-page-wrap .field select { padding: 9px 0; }
.form-page-wrap .field input:hover,
.form-page-wrap .field select:hover,
.form-page-wrap .field textarea:hover { border-bottom-color: #C9C0DD; }
.form-page-wrap .field input:focus,
.form-page-wrap .field select:focus,
.form-page-wrap .field textarea:focus {
  outline: none;
  border-bottom-color: var(--purple);
}

.dob-row { display: flex; gap: 20px; }
.dob-row .field { flex: 1; margin-bottom: 0; }

/* Minimal checkboxes / radios (no button/chip look) */
.chip-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 2px;
  cursor: pointer;
  font-size: 14.5px;
  color: #333;
  user-select: none;
}
.chip .dot {
  width: 19px; height: 19px;
  border-radius: 5px;
  border: 2px solid #D6D1E2;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  background: #fff;
  transition: all .15s;
}
.chip.radio-chip .dot { border-radius: 50%; }
.chip:hover .dot { border-color: var(--purple); }
.chip:has(.chip-input:checked) { color: #111; font-weight: 700; }
.chip:has(.chip-input:checked) .dot {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}
.chip:has(.chip-input:checked) .dot::after { content: "✓"; }
.chip.radio-chip:has(.chip-input:checked) .dot::after {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
}

.chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 4px 16px;
}
.radio-group { display: flex; flex-direction: column; gap: 2px; }
.radio-group .chip { flex: none; }

.checkbox-line-single { margin-bottom: 10px; }

.note-text { font-size: 13px; color: #999; margin: 8px 0 0; line-height: 1.55; }
.note-text a { color: var(--purple); text-decoration: underline; }

.cgv-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 0 0 0 54px;
  margin-top: 4px;
}
.cgv-btn {
  display: inline-block;
  background: var(--yellow);
  border: 2px solid var(--purple);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 700;
  color: var(--purple);
  cursor: pointer;
  transition: transform .1s;
}
.cgv-btn:hover { transform: translateY(-1px); }

.file-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  border-bottom: 2px solid var(--purple);
  border-radius: 0;
  padding: 6px 2px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--purple);
  cursor: pointer;
  width: fit-content;
  transition: opacity .15s;
}
.file-upload-btn:hover { opacity: .65; }

.file-upload-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.file-name-display {
  font-size: 13px;
  color: #555;
  background: var(--card-bg);
  border-radius: 20px;
  padding: 6px 14px;
  display: none;
}
.file-name-display.has-file { display: inline-block; }

.price-display {
  background: none;
  border: none;
  border-left: 3px solid var(--yellow);
  padding: 2px 0 2px 18px;
  margin: 14px 0;
}
.price-display .amount { font-size: 30px; font-weight: 800; color: #1a1a1a; }

.submit-row { text-align: center; margin-top: 54px; padding-left: 54px; }
@media (max-width: 480px) { .submit-row { padding-left: 0; } }
.submit-row button.btn-pill {
  width: 100%;
  max-width: 460px;
}
.submit-caption { text-align: center; font-size: 13px; color: #999; margin-top: 12px; }

/* ---------- FOOTER ---------- */
footer {
  text-align: center;
  padding: 30px;
  color: var(--green);
  font-size: 14px;
}

/* ---------- CONDITIONS GÉNÉRALES ---------- */
.cg-text { padding-top: 40px; line-height: 1.7; font-size: 15.5px; }
.cg-text h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--purple);
  margin: 38px 0 10px;
}
.cg-text p { margin: 0 0 12px; }
.cg-text ul { margin: 0 0 12px; padding-left: 22px; }
.cg-text dt { font-weight: 700; margin-top: 12px; }
.cg-text dd { margin: 2px 0 0; }
.cg-text a { color: var(--purple); }
.cg-maj { color: #888; font-size: 14px; margin-top: 40px; }

/* ---------- AJUSTEMENTS TÉLÉPHONE ---------- */
.dob-row .field { min-width: 0; }                 /* jour / mois / année restent sur une ligne sans déborder */
@media (max-width: 820px) {
  .apropos-wrap { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 560px) {
  .info-grid { grid-template-columns: 1fr; }
  .info-grid > div { border-right: none; }
  header { padding: 20px; }
}

/* ---------- MENU REPLIABLE (téléphone) ---------- */
.menu-toggle { display: none; }
@media (max-width: 820px) {
  header { flex-wrap: wrap; }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px; height: 46px;
    padding: 0 11px;
    background: none;
    border: 1.5px solid var(--green);
    border-radius: 6px;
    cursor: pointer;
  }
  .menu-toggle span {
    display: block; height: 2.5px; border-radius: 2px;
    background: var(--purple);
    transition: transform .2s, opacity .2s;
  }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  nav { display: none; width: 100%; flex-direction: column; gap: 0; padding: 6px 20px; }
  .menu-open nav { display: flex; }
  nav a { padding: 12px 0; border-bottom: 1px solid #eee; }
  nav a:last-child { border-bottom: none; }
}

/* ---------- TÉLÉPHONE : PAYS + NUMÉRO ---------- */
.tel-group { display: flex; gap: 10px; align-items: flex-end; }
.tel-group select { flex: 0 0 auto; width: auto !important; min-width: 0; cursor: pointer; }
.tel-group input { flex: 1 1 auto; min-width: 0; }

/* ---------- CONDITIONS GÉNÉRALES : LIGNE DU FORMULAIRE ---------- */
.cgv-aide { width: 100%; margin: 0; font-size: 13px; color: #999; }
.cgv-line.cgv-manquante .cgv-aide { color: #c0392b; font-weight: 700; }
.cgv-line.cgv-manquante .cgv-btn { box-shadow: 0 0 0 4px rgba(192, 57, 43, .18); }
.cgv-line.cgv-acceptee .cgv-btn { background: #E8F5E9; border-color: var(--green); color: #2e7d32; }
.cgv-line.cgv-acceptee .cgv-aide { display: none; }
.contact-form .cgv-line { padding-left: 0; }

/* ---------- CONDITIONS GÉNÉRALES : FENÊTRE ---------- */
.cg-dialog {
  width: min(720px, calc(100vw - 24px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: none;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
  overflow: hidden;
  font-family: 'Manrope', sans-serif;
}
.cg-dialog[open] { display: flex; flex-direction: column; }
.cg-dialog::backdrop { background: rgba(30, 20, 50, .45); }
.cg-dialog-entete {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid #eee; background: #fff;
}
.cg-dialog-entete h2 { margin: 0; font-size: 18px; font-weight: 800; }
.cg-dialog-fermer {
  width: 40px; height: 40px; border: none; border-radius: 50%;
  background: #f3f1f6; font-size: 18px; cursor: pointer; color: #555;
}
.cg-dialog-corps { overflow-y: auto; padding: 4px 22px 24px; line-height: 1.65; font-size: 15px; }
.cg-dialog-texte h2 { font-size: 16px; font-weight: 800; color: var(--purple); margin: 26px 0 8px; }
.cg-dialog-texte p { margin: 0 0 10px; }
.cg-dialog-texte dt { font-weight: 700; margin-top: 10px; }
.cg-dialog-texte dd { margin: 2px 0 0; }
.cg-dialog-texte a { color: var(--purple); }
.cg-dialog-chargement { color: #888; padding: 30px 0; text-align: center; }
.cg-dialog-accord {
  margin-top: 30px; padding: 20px; border-radius: 12px;
  background: var(--card-bg); display: flex; flex-direction: column; gap: 16px; align-items: stretch;
}
.cg-dialog-case { display: flex; gap: 12px; align-items: center; font-weight: 700; cursor: pointer; }
.cg-dialog-case input { width: 22px; height: 22px; accent-color: var(--purple); flex: none; cursor: pointer; }
.cg-dialog-valider { width: 100%; }
.cg-dialog-valider:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- BOUTON D'ENVOI PENDANT L'ENVOI ---------- */
.btn-pill:disabled { opacity: .6; cursor: wait; }
