:root {
  --ink: #18201c;
  --muted: #66726d;
  --line: #dfe5df;
  --paper: #fbfbf7;
  --white: #ffffff;
  --green: #00adf1;
  --green-dark: #08678c;
  --yellow: #f2c94c;
  --coral: #e7664c;
  --blue: #2f6fed;
  --shadow: 0 22px 70px rgba(24, 32, 28, 0.12);
}

* {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}


html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(223, 229, 223, 0.82);
  background: rgba(251, 251, 247, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  width: 46px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--green-dark);
  font-size: 0.8rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--green-dark);
}

.header-action,
.primary-btn,
.secondary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-action,
.primary-btn {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 12px 26px rgba(29, 107, 79, 0.18);
}

.secondary-btn {
  color: var(--green-dark);
  background: #e8f1ec;
  border-color: #c9ddd2;
}

.ghost-btn {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.header-action:hover,
.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 650px;
  overflow: hidden;
  background: #08678c !important;
}

.hero-media {
  /* position: absolute; */
  inset: 0;
  background:#08678c;
}

.path-map {
  position: absolute;
  right: clamp(16px, 7vw, 120px);
  top: 50%;
  width: min(500px, 45vw);
  aspect-ratio: 1;
  transform: translateY(-50%);
}

.node,
.route {
  position: absolute;
  display: block;
}

.node {
  width: 66px;
  height: 66px;
  border: 10px solid rgba(255, 255, 255, 0.74);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: var(--shadow);
}

.node-one {
  left: 6%;
  top: 62%;
}

.node-two {
  left: 48%;
  top: 20%;
  background: var(--blue);
}

.node-three {
  right: 5%;
  bottom: 18%;
  background: var(--coral);
}

.route {
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  transform-origin: left center;
}

.route-a {
  left: 16%;
  top: 59%;
  width: 250px;
  transform: rotate(-39deg);
}

.route-b {
  left: 55%;
  top: 31%;
  width: 210px;
  transform: rotate(36deg);
}

.route-c {
  left: 22%;
  bottom: 21%;
  width: 300px;
  transform: rotate(5deg);
  opacity: 0.42;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 36px));
  align-self: center;
  margin-left: clamp(18px, 7vw, 96px);
  padding: 90px 0 120px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.intro-band div {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 112px;
  padding: 24px clamp(18px, 4vw, 56px);
  background: var(--white);
}

.intro-band strong {
  color: var(--green);
  font-size: 1.8rem;
}

.intro-band span {
  color: var(--muted);
  font-weight: 700;
}

.section,
.process-band,
.platform-section,
.contact-band {
  padding: clamp(64px, 9vw, 112px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading h2,
.contact-band h2,
.platform-sidebar h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 240px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 38px rgba(24, 32, 28, 0.06);
}

.icon-badge {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  color: var(--green-dark);
  background: #e9f2ed;
  font-size: 1.35rem;
}

.service-card h3,
.timeline h3,
.app-heading h3 {
  margin: 22px 0 8px;
  font-size: 1.2rem;
}

.service-card p,
.timeline p,
.result-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.process-band {
  background: #eef3ef;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  min-height: 180px;
  padding: 26px;
  border-radius: 8px;
  background: var(--white);
}

.timeline span {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-weight: 800;
}

.timeline h3 {
  margin-top: 7px;
}

.platform-section {
  background: var(--white);
}

.platform-shell {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 26px;
  max-width: 1180px;
  margin: 0 auto;
}

.platform-sidebar {
  align-self: start;
  min-height: 620px;
  padding: 30px;
  border-radius: 8px;
  color: var(--white);
  background: var(--paper);
}

.platform-sidebar .eyebrow {
  color: var(--yellow);
}

.progress-wrap {
  margin-top: 36px;
}

.progress-wrap span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  font-weight: 700;
}

.progress-track {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.progress-track span {
  display: block;
  width: 20%;
  height: 100%;
  margin: 0;
  background: var(--yellow);
  transition: width 0.25s ease;
}

.step-list {
  display: grid;
  gap: 10px;
  margin-top: 34px;
}

.step-pill {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
  text-align: left;
  padding: 0 16px;
  cursor: pointer;
}

.step-pill.active {
  color: var(--ink);
  background: var(--yellow);
  border-color: var(--yellow);
  font-weight: 800;
}

.orientation-app {
  min-height: 620px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfdfb;
  box-shadow: var(--shadow);
}

.app-step {
  display: none;
}

.app-step.active {
  display: block;
}

.app-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.app-heading h3 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
}

.step-count {
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 8px;
  color: var(--green-dark);
}

.orientation-options {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.orientation-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  width: 100%;
  position: relative;
  transition:
    background 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    transform 0.18s ease;
}

.orientation-item:hover {
  background: #f0f7f4;
  box-shadow: 0 8px 22px rgba(24, 32, 28, 0.08);
  border-color: var(--green-dark);
  transform: translateY(-2px);
}

/* Badge ✓ en haut à droite, masqué par défaut */
.orientation-item::after {
  content: '✓';
  position: absolute;
  top: 10px;
  right: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-dark);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 22px;
  text-align: center;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* État sélectionné */
.orientation-item.selected {
  border-color: var(--green-dark);
  background: rgba(8, 103, 140, 0.07);
  box-shadow: 0 0 0 4px rgba(8, 103, 140, 0.12), 0 6px 20px rgba(8, 103, 140, 0.1);
  transform: translateY(-2px);
  color: var(--green-dark);
}

.orientation-item.selected::after {
  opacity: 1;
  transform: scale(1);
}

.orientation-item.selected .orientation-icon {
  transform: scale(1.2);
  filter: drop-shadow(0 2px 6px rgba(8, 103, 140, 0.4));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.orientation-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.orientation-label {
  flex: 1;
}


.field-grid,
.slider-grid,
.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* Champ pleine largeur dans une grille à 2 colonnes */
.field-grid .full-width {
  grid-column: 1 / -1;
}

/* Erreurs de champ inline */
.field-error {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #ef4444;
}

/* ── Toast de notification (position fixe, hors layout) ── */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
  width: calc(100vw - 48px);
}

.toast-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.14);
  animation: toastSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast-success {
  background: #ffffff;
  border: 1.5px solid rgba(34, 197, 94, 0.4);
  color: #166534;
}

.toast-error {
  background: #ffffff;
  border: 1.5px solid rgba(239, 68, 68, 0.4);
  color: #991b1b;
}

.toast-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.toast-text {
  flex: 1;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: inherit;
  opacity: 0.5;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}

.toast-close:hover {
  opacity: 1;
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(40px) scale(0.95); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}


label,
.choice-group legend {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
}

input,
select {
  height: 48px;
  padding: 0 14px;
}

textarea {
  resize: vertical;
  padding: 14px;
  line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(47, 111, 237, 0.18);
  border-color: var(--blue);
}

/* ── Dropdown Checklist Personnalisé ── */
.custom-dropdown {
  position: relative;
  width: 100%;
  margin-top: 9px;
  user-select: none;
}

.dropdown-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dropdown-trigger:focus,
.custom-dropdown.active .dropdown-trigger {
  outline: 3px solid rgba(47, 111, 237, 0.18);
  border-color: var(--blue);
}

.dropdown-trigger i {
  color: var(--muted);
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.custom-dropdown.active .dropdown-trigger i {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  max-height: 240px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(24, 32, 28, 0.1);
  z-index: 100;
  padding: 8px 0;
}

.custom-dropdown.active .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  color: var(--ink);
  transition: background 0.15s ease;
  margin: 0 !important;
}

.dropdown-item:hover {
  background: #f4f6f5;
}

.dropdown-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0;
  cursor: pointer;
  accent-color: var(--blue);
  flex-shrink: 0;
}


input[type="range"] {
  padding: 0;
  accent-color: var(--green);
}

.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.choice-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--white);
}

.choice-group input {
  width: auto;
  height: auto;
  margin: 0;
}

.result-panel,
.recommendation-box,
.summary-box {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.result-label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.result-panel strong {
  display: block;
  margin: 12px 0;
  color: var(--green-dark);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.recommendation-box {
  margin-top: 18px;
}

.recommendation-box h4 {
  margin: 0 0 12px;
}

.recommendation-box ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.plan-list {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.plan-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.plan-item span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-weight: 800;
}

.plan-item h4 {
  margin: 0 0 5px;
}

.plan-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.notes-field {
  display: block;
}

.summary-box {
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.summary-box strong {
  color: var(--ink);
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hidden {
  display: none;
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  /* background: #05384d !important; */
}

.contact-band div {
  max-width: 760px;
}

.contact-band p:last-child {
  margin-top: 16px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--white);
}

/* --- Styles pour la nouvelle section À Propos --- */
.about-section {
  width: 100%;
  background-color: #ffffff;
}

.about-hero-blue {
  background-color: #1d4ed8; /* Bleu roi identique à l'image */
  color: #ffffff;
  text-align: center;
  padding: 60px 20px;
}

.about-hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-hero-content h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.about-hero-content p {
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.9;
  font-weight: 400;
}

.about-pillars-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.about-pillar {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pillar-icon-wrapper {
  width: 65px;
  height: 65px;
  background-color: #eff6ff; /* Fond bleu clair pour l'icône */
  color: #2563eb; /* Couleur de l'icône */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.about-pillar h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 15px;
}

.about-pillar p, .valeurs-list-items {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.6;
}

.valeurs-list-items {
  list-style: none;
  padding: 0;
  text-align: left; /* Alignement à gauche comme sur la capture */
}

.valeurs-list-items li {
  margin-bottom: 8px;
}

.valeurs-list-items strong {
  color: #111827;
}

/* Responsiveness pour mobile et tablette */
@media (max-width: 968px) {
  .about-pillars-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .valeurs-list-items {
    text-align: center;
  }
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .path-map {
    width: min(420px, 70vw);
    opacity: 0.55;
  }

  .intro-band,
  .service-grid,
  .timeline,
  .platform-shell {
    grid-template-columns: 1fr;
  }

  .platform-sidebar {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 64px;
  }

  .header-action {
    display: none;
  }

  .hero {
    min-height: 560px;
  }

  .hero-content {
    margin: 0 auto;
    padding-top: 80px;
  }

  .hero-actions,
  .contact-band,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-btn,
  .secondary-btn,
  .ghost-btn {
    width: 100%;
  }

  .field-grid,
  .slider-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .app-heading {
    align-items: flex-start;
    flex-direction: column-reverse;
  }
}

@media print {
  .site-header,
  .hero,
  .intro-band,
  .section,
  .process-band,
  .platform-sidebar,
  .app-actions,
  .contact-band,
  .site-footer {
    display: none;
  }

  .platform-section {
    padding: 0;
  }

  .platform-shell,
  .orientation-app {
    display: block;
    min-height: 0;
    border: 0;
    box-shadow: none;
  }

  .app-step {
    display: none !important;
  }

  .app-step[data-step="4"] {
    display: block !important;
  }
}
