/* ═══════════════════════════════════════════════════════════════
   Je gère ma conso équine en eau — CFC AURA × FNCH
   Montserrat (700/800) + Source Sans 3 (400/600)
   Palette : #316586 · #4f9ad1 · #203f3d · #4f9ad1
   ═══════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Source+Sans+3:wght@400;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bleu:        #203f3d;
  --bleu-vif:    #4f9ad1;
  --vert:        #1e6b3e;
  --vert-clair:  #2e9e5b;
  --bleu-pale:   #cfe2ed;
  --bleu-fond:   #e9f3f9;
  --vert-pale:   #d5e9e8;
  --vert-fond:   #e8f4ec;
  --orange:      #c97a1a;
  --orange-pale: #fdf0dc;
  --texte:       #111f2d;
  --texte-doux:  #486070;
  --blanc:       #ffffff;
  --gris:        #f3f7fa;
  --gris-bd:     #bdd3e0;
  --rouge:       #c0392b;
  --radius:      14px;
  --radius-sm:   8px;
  --shadow:      0 2px 16px rgba(49,101,134,0.10);
  --shadow-md:   0 6px 32px rgba(49,101,134,0.16);
  --panel-w:     340px;
  --font-titre:  'Montserrat', sans-serif;
  --font-corps:  'Source Sans 3', sans-serif;
}

html { scroll-behavior: smooth; }
html, body { height: 100%; max-width: 100vw; overflow-x: hidden; }
body {
  font-family: var(--font-corps);
  color: var(--texte);
  background: var(--blanc);
  line-height: 1.6;
  font-size: 16px;
}

/* ════════════════════════════════════════════════════════════════
   SLIDE BIENVENUE
   ════════════════════════════════════════════════════════════════ */
.welcome-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bleu);
}
.welcome-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/cheval-eau.webp');
  background-image: -webkit-image-set(url('../img/cheval-eau.webp') 1x, url('../img/cheval-eau.jpg') 1x);
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.55) saturate(0.85);
  z-index: 0;
}
.welcome-overlay {
  position: absolute;
  inset: 0;
  background: rgba(34,83,82,0.72);
  z-index: 1;
}
.welcome-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  flex: 1;
  padding: 2.5rem 3rem;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}
.welcome-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: auto;
}
.welcome-header svg { width: 56px; height: auto; opacity: 0.9; }
.welcome-header-text { color: rgba(255,255,255,0.9); }
.welcome-header-text .org {
  font-family: var(--font-titre);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  line-height: 1;
}
.welcome-header-text .region {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}
.welcome-main {
  padding: 3rem 0 2rem;
}
.welcome-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(74,164,104,0.25);
  border: 1px solid rgba(74,164,104,0.5);
  color: #b8eaca;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}
.welcome-title {
  font-family: var(--font-titre);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--blanc);
  line-height: 1.1;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}
.welcome-title .accent { color: #4f9ad1; }
.welcome-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.65;
}
.welcome-args {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-bottom: 2.5rem;
}
.welcome-arg {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
  font-weight: 600;
}
.welcome-arg svg {
  width: 18px; height: 18px;
  stroke: #4f9ad1;
  flex-shrink: 0;
}
.welcome-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #4f9ad1;
  color: var(--blanc);
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  
}
.welcome-cta:hover {
  transform: translateY(-2px);
  
}
.welcome-cta svg { width: 18px; height: 18px; transition: transform 0.2s; }
.welcome-cta:hover svg { transform: translateX(4px); }
.welcome-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.45);
  font-size: 0.75rem;
}
.welcome-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.45);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  animation: bounce 2s infinite;
}
.welcome-scroll svg { width: 20px; height: 20px; opacity: 0.5; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ════════════════════════════════════════════════════════════════
   SECTION DIAGNOSTIC (split layout)
   ════════════════════════════════════════════════════════════════ */
.split-layout { display: flex; min-height: 100vh; }

/* ─── PANNEAU GAUCHE ─────────────────────────────────────────── */
.split-left {
  width: var(--panel-w);
  min-width: var(--panel-w);
  position: sticky;
  top: 0;
  height: 100vh;
  background: #203f3d;
  border-right: none;
  display: flex;
  flex-direction: column;
  padding: clamp(0.5rem, 1.2vh, 1.25rem) 1.75rem 1.5rem;
  overflow: hidden;
  z-index: 10;
}
/* Photo occupant uniquement la moitié basse du panneau */
.split-left::before {
  content: '';
  position: absolute;
  inset: 52% 0 0 0;   /* démarre à 52% du haut — moitié basse uniquement */
  background-image: url('../img/cheval-eau.webp');
  background-image: -webkit-image-set(url('../img/cheval-eau.webp') 1x, url('../img/cheval-eau.jpg') 1x);
  background-size: cover;
  background-position: center 20%;  /* recentrer sur la tête du cheval */
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: luminosity;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 28%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 28%);
}
/* Fondu haut (vert plein) → photo → vert foncé en bas */
.split-left::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    #203f3d 0%,
    #203f3d 48%,
    rgba(34,83,82,0.55) 58%,
    rgba(34,83,82,0.15) 78%,
    rgba(34,83,82,0.7) 90%,
    #203f3d 100%
  );
  z-index: 0;
  pointer-events: none;
}
.split-left > * { position: relative; z-index: 1; }



.left-sep {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: clamp(0.4rem, 0.8vh, 0.9rem);
}
.left-sep::before, .left-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.15);
}
.left-sep-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4f9ad1;
  flex-shrink: 0;
}

.left-outil { margin-bottom: clamp(0.2rem, 0.5vh, 0.4rem); flex-shrink: 0; }
.left-outil-nom {
  font-family: var(--font-titre);
  font-weight: 800;
  font-size: clamp(1rem, 2.2vh, 1.6rem);
  color: var(--blanc);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.left-outil-nom .accent { color: #4f9ad1; }
.left-outil-logo { display: block; height: 1.15em; width: auto; max-width: 100%; }
.left-outil-tag {
  font-size: clamp(0.6rem, 0.9vh, 0.72rem);
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: clamp(0.1rem, 0.3vh, 0.25rem);
}
.left-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin-top: 0.75rem;
}
.left-spacer { flex: 1; min-height: 0.5rem; }

/* Panneau résultats live */
.left-resultats {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: clamp(0.5rem, 1.2vh, 1rem) 1.1rem;
  backdrop-filter: blur(6px);
  display: none;
  margin-bottom: clamp(0.3rem, 0.7vh, 0.7rem);
  flex-shrink: 1;
  min-height: 0;
  overflow: hidden;
}
.left-resultats.visible { display: flex; flex-direction: column; }
.left-resultats-titre {
  font-family: var(--font-titre);
  font-size: 0.68rem;
  font-weight: 700;
  color: #4f9ad1;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.left-resultats-titre::before { display: none; }
.res-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: clamp(0.08rem, 0.4vh, 0.2rem) 0;
  font-size: clamp(0.68rem, 1.1vh, 0.8rem);
  color: rgba(255,255,255,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.res-row:last-child { border: none; }
.res-row strong {
  font-family: var(--font-titre);
  font-size: 0.88rem;
  color: var(--blanc);
  font-weight: 700;
}
.res-total-row {
  margin-top: 0.6rem;
  background: var(--bleu-vif);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blanc);
}
.res-total-row span:last-child {
  font-family: var(--font-titre);
  font-size: 1rem;
  font-weight: 800;
}

/* Lien plaquette PDF */
.left-pdf { margin-bottom: 0.75rem; }
.left-pdf a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-corps);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s;
  cursor: not-allowed;
}
.left-pdf a:hover {
  border-color: rgba(255,255,255,0.5);
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.06);
}
.left-pdf svg { width: 13px; height: 13px; }

.left-bottom {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.5;
}
.left-bottom a { color: rgba(255,255,255,0.45); text-decoration: none; }

.left-bottom a:hover { color: var(--bleu-vif); }

/* ─── PANNEAU DROIT ──────────────────────────────────────────── */
.split-right {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--blanc);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ═══ BARRE PROGRESSION ═══════════════════════════════════════ */
.wizard-header {
  padding: 1.25rem 2.5rem 0;
  background: var(--blanc);
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid #edf2f6;
}
.wizard-steps-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding-bottom: 1.1rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.wizard-steps-nav::-webkit-scrollbar { display: none; }
.step-pill {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem 0.25rem 0.3rem;
  border-radius: 20px;
  font-family: var(--font-corps);
  font-size: 0.74rem;
  font-weight: 600;
  color: #92b5c8;
  background: #f0f5f9;
  border: 1.5px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.step-pill .pill-num {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #c5d8e4;
  color: var(--blanc);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.66rem;
  font-weight: 700;
  flex-shrink: 0;
}
.step-pill.actif { color: var(--bleu); background: var(--bleu-fond); border-color: var(--bleu-vif); }
.step-pill.actif .pill-num { background: var(--bleu-vif); }
.step-pill.fait { color: var(--bleu); background: var(--bleu-fond); border-color: rgba(32,63,61,0.3); }
.step-pill.fait .pill-num { background: var(--bleu); }
.step-sep { width: 10px; height: 1.5px; background: #dce8f0; border-radius: 2px; flex-shrink: 0; }

/* ═══ CONTENU WIZARD ══════════════════════════════════════════ */
.wizard-content { flex: 1; padding: 2rem 2.5rem 3rem; }
.wizard-step { display: none; }
.wizard-step.actif { display: block; animation: slideIn 0.25s ease; }
@keyframes slideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── EN-TÊTE ÉTAPE ──────────────────────────────────────────── */
.step-header { margin-bottom: 2rem; }
.step-label { display: none; }
.step-titre {
  font-family: var(--font-titre);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--texte);
  line-height: 1.15;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.step-titre-simple {
  font-family: var(--font-titre);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--texte);
  line-height: 1.15;
  margin-bottom: 0.4rem;
}
.step-titre::before {
  content: attr(data-num);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4em; height: 1.4em;
  background: var(--bleu-vif);
  color: #fff;
  border-radius: 50%;
  font-size: 0.5em;
  font-weight: 800;
  flex-shrink: 0;
  line-height: 1;
}
.step-sous-titre { font-size: 0.93rem; color: var(--texte-doux); line-height: 1.6; }
.step-sous-titre a { color: var(--bleu-vif); text-decoration: underline; }

/* ═══ CARTES PROFIL ═══════════════════════════════════════════ */
.profil-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-bottom: 2.5rem;
}
.profil-card {
  border: 1.5px solid #dce8f0;
  border-radius: var(--radius);
  padding: 0 1.25rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(.34,1.3,.64,1);
  background: var(--blanc);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.profil-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: #225352;
  transform: scaleX(0);
  transition: transform 0.22s;
  transform-origin: left;
}
.profil-card:hover {
  border-color: #225352;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.profil-card:hover::after { transform: scaleX(1); }
.profil-card.selectionne {
  border-color: #225352;
  box-shadow: 0 0 0 3px rgba(34,83,82,0.12);
}
.profil-card.selectionne::after { transform: scaleX(1); }

/* Illustration zone */
.profil-illus {
  width: calc(100% + 2.5rem);
  margin: 0 -1.25rem 1.25rem;
  background: #eef5f5;
  border-bottom: 1.5px solid #dce8f0;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  transition: background 0.22s;
  overflow: hidden;
}
.profil-img {
  height: 170px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.22s, filter 0.22s;
  filter: none;
}
.profil-card:hover .profil-illus,
.profil-card.selectionne .profil-illus {
  background: #225352;
  border-color: #225352;
}
.profil-card:hover .profil-img,
.profil-card.selectionne .profil-img {
  filter: brightness(0) invert(1);
  transform: scale(1.06);
}

.profil-card h3 {
  font-family: var(--font-titre);
  font-size: 0.85rem;
  font-weight: 700;
  color: #203f3d;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.profil-card p { font-size: 0.8rem; color: var(--texte-doux); line-height: 1.5; margin-bottom: 1.1rem; flex: 1; }
.profil-card .btn-commencer {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #225352;
  color: var(--blanc);
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  transition: all 0.18s;
}
.profil-card:hover .btn-commencer { background: #4f9ad1; }
.check-badge {
  position: absolute;
  top: 0.6rem; right: 0.6rem;
  width: 22px; height: 22px;
  background: #203f3d;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--blanc);
  font-size: 0.6rem;
  font-weight: 700;
}
.profil-card.selectionne .check-badge { display: flex; }

/* ─── SECTION POURQUOI ───────────────────────────────────────── */
.pourquoi-section {
  padding: 2rem 0 1rem;
  border-top: 1px solid #edf2f6;
}
.pourquoi-titre {
  font-family: var(--font-titre);
  font-size: 1rem;
  font-weight: 700;
  color: var(--bleu);
  text-align: center;
  margin-bottom: 1.75rem;
}
.pourquoi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.pourquoi-item { text-align: center; }
.pourquoi-icon {
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.6rem;
  background: none; border: none; width: auto; height: auto;
}
.pourquoi-icon svg { width: 22px; height: 22px; stroke: #4f9ad1; fill: none; stroke-width: 1.8; }
.pourquoi-item strong {
  display: block;
  font-family: var(--font-titre);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--bleu);
  margin-bottom: 0.2rem;
}
.pourquoi-item span { font-size: 0.78rem; color: var(--texte-doux); }

/* ═══ FORMULAIRE ══════════════════════════════════════════════ */
.form-group { margin-bottom: 1.1rem; }
.form-row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.form-row-2col .form-group { margin-bottom: 0; }
.form-group label {
  display: block;
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 0.72rem;
  margin-bottom: 0.35rem;
  color: var(--bleu);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-group label .opt {
  font-weight: 400;
  color: var(--texte-doux);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.78rem;
}

/* ─── INPUTS & SELECTS ───────────────────────────────────────── */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="password"],
.form-group select,
.form-group textarea,
.filtres-bar input,
.filtres-bar select,
.fg input,
.fg select {
  width: 100%;
  height: 46px;
  padding: 0 1rem;
  border: 1.5px solid #c8dce8;
  border-radius: 10px;
  font-family: var(--font-corps);
  font-size: 0.93rem;
  color: var(--texte);
  background: var(--blanc);
  transition: all 0.18s;
  appearance: none;
  -webkit-appearance: none;
  line-height: 46px;
}
.form-group select,
.filtres-bar select,
.fg select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23316586' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-group textarea {
  height: auto;
  padding: 0.75rem 1rem;
  line-height: 1.5;
  resize: vertical;
}
.form-group input[type="number"] { -moz-appearance: textfield; }
.form-group input[type="number"]::-webkit-inner-spin-button,
.form-group input[type="number"]::-webkit-outer-spin-button { opacity: 0.4; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.filtres-bar input:focus,
.filtres-bar select:focus,
.fg input:focus,
.fg select:focus {
  outline: none;
  border-color: var(--bleu-vif);
  box-shadow: 0 0 0 3px rgba(79,154,209,0.12);
  background: #fafcff;
}
input.invalide, select.invalide,
input.invalide-req, select.invalide-req { border-color: var(--rouge) !important; }
.msg-erreur-champ { color: var(--rouge); font-size: 0.78rem; margin-top: 0.25rem; }
.form-group label .req { color: var(--rouge); font-weight: 700; margin-left: 1px; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.85rem; }

/* ─── TOGGLES OUI/NON ────────────────────────────────────────── */
.toggle-group { display: flex; gap: 0.4rem; margin-top: 0.35rem; }
.toggle-btn {
  padding: 0.48rem 1.2rem;
  border: 1.5px solid #c8dce8;
  border-radius: 8px;
  background: var(--blanc);
  font-family: var(--font-corps);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--texte-doux);
}
.toggle-btn:hover { border-color: var(--bleu); color: var(--bleu); background: var(--bleu-fond); }
.toggle-btn.actif { background: #203f3d; color: var(--blanc); border-color: transparent; }
.toggle-btn.actif-vert { background: #203f3d; color: var(--blanc); border-color: transparent; }

.hint { font-size: 0.79rem; color: var(--texte-doux); margin-top: 0.3rem; }
.hint-warning {
  font-size: 0.79rem;
  color: var(--bleu);
  background: var(--bleu-fond);
  border-left: 3px solid var(--bleu-vif);
  padding: 0.4rem 0.75rem;
  border-radius: 0 8px 8px 0;
  margin-top: 0.5rem;
}

/* ═══ TABLEAU DYNAMIQUE ══════════════════════════════════════ */
.tableau-wrap {
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 1px 6px rgba(8,92,131,0.08);
  margin-top: 0.75rem;
}
.tableau-dynamique thead tr th:first-child { border-radius: 12px 0 0 0; }
.tableau-dynamique thead tr th:last-child { border-radius: 0 12px 0 0; }
.tableau-dynamique tbody tr:last-child td:first-child { border-radius: 0 0 0 12px; }
.tableau-dynamique tbody tr:last-child td:last-child { border-radius: 0 0 12px 0; }
.tableau-dynamique {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  table-layout: auto;
}
.tableau-dynamique th {
  background: var(--bleu);
  color: rgba(255,255,255,0.9);
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 0.68rem;
  padding: 0.6rem 0.5rem;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.3;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.tableau-dynamique th:last-child { border-right: none; }
.tableau-dynamique td {
  padding: 0.3rem 0.4rem;
  border-bottom: 1px solid #edf2f6;
  vertical-align: middle;
  background: #fff;
}
.tableau-dynamique tbody tr:last-child td { border-bottom: none; }
.tableau-dynamique tbody tr:hover td { background: #f4f8fc; }
.tableau-dynamique input,
.tableau-dynamique select {
  width: 100%;
  height: 32px;
  padding: 0 0.5rem;
  border: none;
  border-bottom: 1.5px solid #d0e3ef;
  border-radius: 0;
  font-family: var(--font-corps);
  font-size: 0.82rem;
  background: transparent;
  color: var(--texte);
  transition: border-color 0.15s;
  line-height: 32px;
}
.tableau-dynamique select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%23316586' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.3rem center;
  padding-right: 1.5rem;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  line-height: normal;
}
.tableau-dynamique input[type="number"] {
  padding: 0 0.3rem;
  text-align: center;
  -moz-appearance: textfield;
}
.tableau-dynamique input[type="number"]::-webkit-inner-spin-button,
.tableau-dynamique input[type="number"]::-webkit-outer-spin-button { opacity: 0.4; }
.tableau-dynamique input:focus,
.tableau-dynamique select:focus {
  outline: none;
  border-bottom-color: var(--bleu-vif);
  background: rgba(79,154,209,0.04);
}
.td-surface { color: var(--bleu); font-weight: 700; font-family: var(--font-titre); font-size: 0.88rem; min-width: 55px; }
.th-narrow { width: 78px; min-width: 78px; }
.btn-suppr-ligne {
  background: none; border: none;
  color: #c8dce8; cursor: pointer;
  font-size: 1rem; padding: 0.2rem 0.4rem;
  border-radius: 4px; transition: all 0.15s;
}
.btn-suppr-ligne:hover { color: var(--rouge); background: #fdecea; }
.info-bulle {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  vertical-align: middle;
  color: var(--bleu-vif);
}
.info-bulle svg { display: block; }
.info-bulle-texte {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bleu);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.5;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  width: 240px;
  white-space: normal;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  z-index: 300;
  pointer-events: none;
}
.info-bulle-texte::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--bleu);
}
.info-bulle:hover .info-bulle-texte,
.info-bulle:focus .info-bulle-texte { display: block; }

.mobile-hint {
  display: none;
  font-size: 0.72rem;
  color: var(--bleu-vif);
  margin-top: 0.3rem;
  line-height: 1.4;
}

.btn-ajouter-ligne {
  margin-top: 0.75rem;
  padding: 0.45rem 1.1rem;
  background: var(--bleu-vif);
  border: 1.5px solid var(--bleu-vif);
  border-radius: var(--radius-sm);
  color: var(--blanc);
  font-family: var(--font-corps);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-ajouter-ligne:hover { background: var(--blanc); color: var(--bleu-vif); }

/* ═══ SECTION CONDITIONNELLE ════════════════════════════════ */
.section-conditionnelle {
  background: var(--bleu-fond);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 0.75rem;
  border: 1.5px solid var(--bleu-pale);
}
.hidden { display: none !important; }

/* ═══ CARTES STAT ════════════════════════════════════════════ */
.stat-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.stat-card {
  background: var(--bleu-fond);
  border-radius: var(--radius);
  padding: 1rem;
  border-left: 4px solid var(--bleu-vif);
}
.stat-card.accent  { border-left-color: var(--bleu-vif); }
.stat-card.success { border-left-color: var(--bleu); background: var(--bleu-fond); }
.stat-card.eco-vert { background: var(--bleu); border-left-color: #111; }
.stat-card .stat-val {
  font-family: var(--font-titre);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--bleu);
  line-height: 1;
  margin-bottom: 0.2rem;
}
.stat-card.accent .stat-val  { color: var(--bleu-vif); }
.stat-card.success .stat-val { color: var(--bleu); }
.stat-card.eco-vert .stat-val { color: #fff; font-size: 2rem; }
.stat-card .stat-lbl { font-size: 0.76rem; color: var(--texte-doux); font-weight: 600; }
.stat-card.eco-vert .stat-lbl { color: rgba(255,255,255,0.75); }
.stat-card.eco-bleu { background: var(--vert-clair); border-left-color: #2b7daf; }
.stat-card.eco-bleu .stat-val { color: #fff; font-size: 2rem; }
.stat-card.eco-bleu .stat-lbl { color: rgba(255,255,255,0.82); }
.stat-card.eco-bleu .stat-unit { color: #fff; }
.stat-unit { font-size: 1rem; font-weight: 800; margin-left: 0.2rem; opacity: 0.85; }

/* Fiche synthèse récapitulatif */
.recap-fiche {
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(32,63,61,0.13);
  overflow: hidden;
}
.recap-fiche-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 0.75rem;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid rgba(32,63,61,0.07);
  font-size: 0.875rem;
  line-height: 1.6;
  align-items: flex-start;
  background: #fff;
}
.recap-fiche-row:nth-child(even) { background: var(--bleu-fond); }
.recap-fiche-row:last-child { border-bottom: none; }
.recap-fiche-lbl {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--bleu);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding-top: 0.15rem;
}
.recap-fiche-lbl svg { flex-shrink: 0; margin-top: 1px; opacity: 0.6; }
.recap-fiche-val { color: var(--texte); }
@media (max-width: 600px) {
  .recap-fiche-row { grid-template-columns: 1fr; gap: 0.2rem; }
  .recap-fiche-lbl { padding-top: 0; }
}
.mt-2 { margin-top: 0.75rem; }
.mt-3 { margin-top: 1.25rem; }
.mb-2 { margin-bottom: 0.75rem; }

/* ═══ BOUTONS ════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: all 0.18s;
  text-decoration: none;
  text-align: center;
  position: relative;
}
.btn-primary { background: #203f3d; color: var(--blanc); }
.btn-primary:hover { transform: translateY(-1px);  filter: brightness(1.05); }
.btn-success { background: #203f3d; color: var(--blanc); font-size: 0.95rem; padding: 0.85rem 2rem; }
.btn-success:hover { transform: translateY(-1px);  filter: brightness(1.05); }
.btn-outline { background: transparent; border: 2px solid #203f3d; color: #203f3d; }
.btn-outline:hover { background: #203f3d; color: var(--blanc); }
.btn-ghost { background: var(--gris); color: var(--texte-doux); font-size: 0.85rem; }
.btn-ghost:hover { background: #dce8f0; color: var(--texte); }
.btn-orange { background: #203f3d; color: var(--blanc); }
.btn-orange:hover { transform: translateY(-1px); filter: brightness(1.05); }

.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #edf2f6;
}

/* ═══ CHECKBOX ═══════════════════════════════════════════════ */
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.55;
}
.check-label input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--bleu);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ═══ ALERTES ════════════════════════════════════════════════ */
.alert {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.alert-erreur { background: #fdecea; border-left: 4px solid var(--rouge); color: var(--rouge); }
.alert-succes  { background: var(--vert-pale); border-left: 4px solid var(--vert); color: var(--vert); }
.alert-info    { background: var(--bleu-fond); border-left: 4px solid var(--bleu-vif); color: var(--bleu); flex-direction: column; }
.alert-orange  { background: var(--vert-fond); border-left: 4px solid #4f9ad1; color: var(--vert); }

/* ═══ SECTION LABEL ══════════════════════════════════════════ */
.section-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-titre);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--texte);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  margin-top: 1.25rem;
}
.section-label::before {
  content: '';
  width: 4px; height: 18px;
  background: #4f9ad1;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ═══ PAGE MERCI ═════════════════════════════════════════════ */
.merci-wrapper { max-width: 580px; margin: 3rem auto; text-align: center; padding: 0 1.5rem; }
.merci-icone { font-size: 3.5rem; margin-bottom: 1rem; }
.merci-wrapper h1 { font-family: var(--font-titre); font-size: 2.2rem; font-weight: 800; color: var(--texte); margin-bottom: 0.5rem; }
.recap-resultats { background: #203f3d; color: var(--blanc); border-radius: var(--radius); padding: 1.5rem; margin: 1.5rem 0; text-align: left; }

/* ═══ BADGES ═════════════════════════════════════════════════ */
.badge { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 6px; font-size: 0.73rem; font-weight: 700; }
.badge-ce  { background: var(--bleu-fond); color: var(--bleu); border: 1px solid var(--bleu-pale); }
.badge-sc  { background: var(--vert-pale); color: var(--vert); border: 1px solid rgba(34,83,82,0.2); }
.badge-hi  { background: var(--vert-fond); color: #203f3d; border: 1px solid rgba(74,164,104,0.3); }

/* ═══ CODE D'ACCÈS ════════════════════════════════════════════ */
.code-acces-bloc { max-width: 420px; }
.code-input-group { display: flex; gap: 0.6rem; margin-top: 0.75rem; }
.code-input-group input {
  flex: 1;
  padding: 0.9rem 1.1rem;
  border: 2px solid #c8dce8;
  border-radius: 10px;
  font-family: var(--font-titre);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--texte);
  transition: all 0.2s;
  height: auto;
  line-height: normal;
}
.code-input-group input:focus { outline: none; border-color: var(--bleu-vif); box-shadow: 0 0 0 3px rgba(79,154,209,0.12); }
.code-input-group input.invalide { border-color: var(--rouge); }

/* ═══ MOBILE STICKY ══════════════════════════════════════════ */
.mobile-resultats {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #203f3d;
  padding: 0.65rem 1rem;
  z-index: 100;
  box-shadow: 0 -3px 16px rgba(49,101,134,0.2);
}
.mobile-resultats-inner { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.mobile-res-item { text-align: center; }
.mobile-res-item .val { font-family: var(--font-titre); font-size: 1rem; color: var(--bleu-vif); font-weight: 800; }
.mobile-res-item .lbl { font-size: 0.68rem; color: rgba(255,255,255,0.65); }
.mobile-res-total .val { color: #fff; }
.mobile-res-total .lbl { color: rgba(255,255,255,0.85); }

/* ═══ DIVIDER ════════════════════════════════════════════════ */
.divider { border: none; height: 1px; background: #edf2f6; margin: 1.5rem 0; }

/* ═══ CUSTOM SELECT (menu déroulant riche) ═══════════════════ */
.cs-wrapper { position: relative; width: 100%; user-select: none; }
.cs-trigger {
  width: 100%; height: 46px;
  padding: 0 2.5rem 0 1rem;
  border: 1.5px solid #c8dce8;
  border-radius: 10px;
  background: var(--blanc);
  font-family: var(--font-corps);
  font-size: 0.93rem;
  color: var(--texte);
  display: flex; align-items: center;
  cursor: pointer;
  transition: all 0.18s;
}
.cs-trigger:hover { border-color: var(--bleu-vif); }
.cs-wrapper.cs-open .cs-trigger {
  border-color: var(--bleu-vif);
  box-shadow: 0 0 0 3px rgba(79,154,209,0.12);
  border-radius: 10px 10px 0 0;
  border-bottom-color: transparent;
}
.cs-trigger-text { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cs-trigger-text.cs-placeholder { color: #92b5c8; }
.cs-chevron { position: absolute; right: 0.85rem; top: 50%; transform: translateY(-50%); color: var(--bleu); transition: transform 0.2s; }
.cs-wrapper.cs-open .cs-chevron { transform: translateY(-50%) rotate(180deg); }
.cs-dropdown {
  position: absolute; top: 100%; left: 0; right: auto; min-width: 100%;
  background: var(--blanc);
  border: 1.5px solid var(--bleu-vif);
  border-radius: 0 0 10px 10px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 200;
  display: none;
  box-shadow: 0 8px 24px rgba(49,101,134,0.12);
  scrollbar-width: thin;
  scrollbar-color: var(--gris-bd) transparent;
}
.cs-wrapper.cs-open .cs-dropdown { display: block; animation: dropDown 0.15s ease; }
.cs-wrapper.cs-up .cs-dropdown { top: auto; bottom: 100%; border-top: 1.5px solid var(--bleu-vif); border-bottom: none; border-radius: 10px 10px 0 0; }
@keyframes dropDown { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.cs-option {
  padding: 0.6rem 1rem;
  font-family: var(--font-corps);
  font-size: 0.9rem;
  color: var(--texte);
  cursor: pointer;
  transition: background 0.12s;
  border-bottom: 1px solid #f0f5f9;
}
.cs-option:last-child { border-bottom: none; }
.cs-option:hover { background: var(--bleu-fond); color: var(--bleu); }
.cs-option-selected { background: var(--bleu-fond); color: var(--bleu); font-weight: 600; }
.cs-option-selected::before { content: '✓ '; color: var(--bleu-vif); font-weight: 700; }
.cs-option-disabled { color: #92b5c8; cursor: default; font-style: italic; }
.fg .cs-trigger { height: 38px; font-size: 0.88rem; }

/* Custom select compact (tableau dynamique) */
.cs-compact .cs-trigger {
  height: 36px;
  font-size: 0.82rem;
  padding: 0 1.6rem 0 0.6rem;
  border-radius: 8px;
}
.cs-compact .cs-chevron { right: 0.4rem; }
.cs-compact .cs-chevron svg { width: 13px; height: 13px; }
.cs-compact .cs-dropdown { font-size: 0.83rem; }
.cs-compact .cs-option { padding: 0.45rem 0.7rem; font-size: 0.83rem; }


.left-top-wrap { display: flex; flex-direction: column; gap: 1.5rem; padding-top: 2.5rem; }
.left-logo-cfc { margin-bottom: clamp(0.3rem, 0.8vh, 0.9rem); flex-shrink: 1; overflow: hidden; max-height: clamp(0px, 18vh, 160px); max-width: 160px; transition: max-height 0.2s; }
.left-logo-cfc img { width: 100%; max-width: 160px; max-height: 120px; object-fit: contain; display: block; height: auto; }
.left-logo-cfc svg { width: 100%; max-width: clamp(70px, 11vh, 160px); height: auto; display: block; }

@media (max-height: 600px) {
  .split-layout { flex-direction: column; }
  .split-left {
    width: 100%; min-width: 0; height: auto;
    position: relative;
    padding: 0.75rem 1.25rem 0.65rem;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
    border-right: none;
    border-bottom: none;
  }
  .split-left::before { opacity: 0.06; }
  .left-logo-cfc { max-width: 72px; margin-bottom: 0; flex-shrink: 0; }
  .left-outil { flex: 1; margin-bottom: 0; min-width: 140px; }
  .left-outil-nom { font-size: 0.95rem; line-height: 1.2; }
  .left-outil-tag { font-size: 0.7rem; margin-top: 0.15rem; }
  .left-sep, .left-spacer, .left-desc, .left-bottom, .left-resultats, .left-pdf, .left-bottom-logos, .lb-mentions { display: none !important; }
  .page-index .left-pdf { display: flex !important; margin-bottom: 0; }
  .page-index .left-bottom-logos { display: flex !important; margin-top: 0; }
  .split-right { min-height: 0; }
  .mobile-resultats { display: block; }
}

/* ═══ LOGOS BAS DE PANNEAU ══════════════════════════════════ */
.left-bottom-logos {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}
.lb-logo {
  height: 42px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  object-position: left center;
  display: block;
  flex-shrink: 1;
}
.lb-sep {
  width: 1px;
  height: 38px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.lb-partenaires {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.lb-partenaires-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin: 0 0 0.6rem 0;
  font-weight: 600;
}
.lb-partenaires-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}
.lb-logo-sm {
  height: 36px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  object-position: left center;
  display: block;
  mix-blend-mode: screen;
  opacity: 0.85;
}
.lb-partenaires-text {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
  margin: 0;
  font-style: italic;
}
.lb-mentions {
  display: block;
  margin-top: 1.1rem;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.lb-mentions:hover { color: rgba(255,255,255,0.7); }

/* ═══ RESPONSIVE ════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .split-layout { flex-direction: column; }
  .split-left {
    width: 100%; min-width: 0; height: auto;
    position: relative;
    padding: 0.5rem 1.25rem;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.75rem;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
  }
  .split-left::before, .split-left::after { display: none; }
  .split-left { background: #203f3d; }
  /* Bloc logo + titre centré */
  .split-left { justify-content: center; }
  .left-top-wrap { flex-direction: row !important; align-items: center !important; padding-top: 0 !important; gap: 0.75rem !important; flex: 0 1 auto; min-width: 0; }
  .left-logo-cfc { width: 44px; max-width: 44px; height: 44px; flex-shrink: 0; margin-bottom: 0; overflow: hidden; }
  .left-logo-cfc img { width: 44px !important; height: 44px !important; max-width: 44px !important; max-height: 44px !important; object-fit: contain; }
  .left-outil { margin-bottom: 0; min-width: 0; }
  .left-outil-nom { font-size: 1rem; line-height: 1.25; white-space: normal; }
  .left-outil-nom br { display: inline; }
  .left-outil-tag { font-size: 0.65rem; margin-top: 0.1rem; opacity: 0.7; }
  .left-sep, .left-spacer, .left-desc, .left-bottom, .left-resultats, .left-pdf, .left-bottom-logos, .lb-mentions { display: none !important; }
  /* Sur la page d'accueil : afficher le bouton plaquette et les logos partenaires */
  .page-index .left-pdf { display: flex !important; margin-bottom: 0; }
  .page-index .left-bottom-logos { display: flex !important; margin-top: 0; }
  .split-right { min-height: 0; }
  .bienvenue-wrap { min-height: 0 !important; padding: 2rem 0 3rem; }
  .wizard-header { padding: 0.85rem 1.25rem 0; border-bottom: none; }
  .wizard-content { padding: 1.25rem 1.25rem 5.5rem; align-items: flex-start !important; }
  .step-header { margin-bottom: 1.5rem; }
  .step-titre { font-size: 1.9rem; }
  .step-titre::before { width: 1.6em; height: 1.6em; }
  .step-sous-titre { font-size: 0.9rem; }
  .profil-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .pourquoi-grid { grid-template-columns: 1fr 1fr; }
  .form-row   { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr 1fr; }
  .toggle-btn { min-height: 44px; padding: 0.55rem 1.1rem; font-size: 0.9rem; }
  .mobile-resultats { display: block; }
  .welcome-content { padding: 1.5rem 1.25rem; }
  .welcome-title { font-size: 2rem; }
  .welcome-subtitle { font-size: 1rem; }
  .welcome-main { padding: 2.5rem 0 1.5rem; }
  .wizard-nav { flex-wrap: wrap; gap: 0.6rem; }
  .wizard-nav .btn { flex: 1; min-width: 120px; justify-content: center; }
  .stat-cards-grid { grid-template-columns: 1fr 1fr; }
  .section-conditionnelle { padding: 1rem; }
  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="number"],
  .form-group input[type="date"],
  .form-group input[type="password"],
  .form-group select { font-size: 1rem; }
}

/* Tableaux en mode carte — mobile */
@media (max-width: 768px) {
  .tableau-dynamique { display: block; }
  .tableau-dynamique thead { display: none; }
  .mobile-hint { display: block; }
  .tableau-dynamique tbody { display: block; }
  .tableau-dynamique tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 0.75rem;
    background: var(--blanc);
    border: 1.5px solid #dce8f0;
    border-radius: 10px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
  }
  .tableau-dynamique tr:hover td { background: transparent; }
  .tableau-dynamique td {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0;
    border-bottom: none;
    font-size: 0.85rem;
  }
  .tableau-dynamique td[data-label]::before {
    content: attr(data-label);
    font-family: var(--font-titre);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #316586;
    opacity: 0.7;
  }
  .tableau-dynamique td:last-child {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
  }
  .tableau-dynamique td.td-surface {
    background: #eef5fb;
    border-radius: 6px;
    padding: 0.35rem 0.5rem;
    font-size: 0.9rem;
  }
  .tableau-dynamique input,
  .tableau-dynamique select { height: 38px; font-size: 0.9rem; }
}

@media (max-width: 600px) {
  .wizard-steps-nav { gap: 0.1rem; }
  .step-pill { font-size: 0; padding: 0.25rem; }
  .step-pill .pill-num { width: 24px; height: 24px; font-size: 0.75rem; }
  .step-pill .pill-num + * { display: none; }
  .step-sep { width: 6px; }
  .profil-grid { grid-template-columns: 1fr; }
  .pourquoi-grid { grid-template-columns: 1fr 1fr; }
  .pourquoi-item span { font-size: 0.82rem; }
  .pourquoi-item strong { font-size: 0.84rem; }
  .welcome-args { gap: 0.5rem 1rem; }
  .welcome-arg { font-size: 0.88rem; }
  .welcome-title { font-size: 1.8rem; }
  .step-titre { font-size: 1.3rem; }
  .form-row-3 { grid-template-columns: 1fr; }
  .btn-success { width: 100%; }
  .code-acces-bloc { max-width: 100%; }
  .code-input-group { flex-direction: column; }
  .hint { font-size: 0.82rem; }
  .hint-warning { font-size: 0.82rem; }
}


@media (max-width: 480px) {
  .split-left { padding: 0.85rem 1rem 0.75rem; }
  .left-logo-cfc { max-width: 72px; }
  .wizard-content { padding: 1rem 1rem 5.5rem; }
  .wizard-header { padding: 0.75rem 1rem 0; border-bottom: none; }
  .step-titre { font-size: 1.2rem; }
  .step-sous-titre { font-size: 0.88rem; }
  .form-group label { font-size: 0.8rem; }
  .profil-card { padding: 1.25rem 1rem 1.1rem; }
  .profil-picto { width: 48px; height: 48px; }
  .profil-picto svg { width: 22px; height: 22px; }
  .profil-card h3 { font-size: 0.82rem; }
  .profil-card p { font-size: 0.78rem; }
  .pourquoi-grid { grid-template-columns: 1fr; }
  .pourquoi-icon { width: 44px; height: 44px; }
  .stat-cards-grid { grid-template-columns: 1fr; }
  .mobile-resultats { padding: 0.55rem 0.75rem; }
  .welcome-section { min-height: 500px; }
  .welcome-title { font-size: 1.6rem; }
  .welcome-cta { width: 100%; justify-content: center; }
  .wizard-nav .btn { font-size: 0.85rem; padding: 0.7rem 1rem; }
}

/* Info-bulle cliquable (touch) */
.info-bulle.ouvert .info-bulle-texte { display: block; }

/* Bulle icône SVG pour data-tooltip */
.info-bulle[data-tooltip] {
  display: inline-flex; align-items: center; justify-content: center;
  cursor: help; margin-left: 0.35rem; vertical-align: middle;
  background: none; border: none; padding: 0;
}
.info-bulle-icon {
  width: 16px; height: 16px; display: block;
}
.info-bulle-tooltip {
  position: fixed;
  background: #225352; color: #fff; font-size: 0.78rem; font-weight: 400;
  padding: 0.45rem 0.75rem; border-radius: 6px; white-space: nowrap;
  pointer-events: none; z-index: 9999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  display: none;
}
@media (max-width: 768px) {
  .info-bulle[data-tooltip]::after {
    content: attr(data-tooltip);
    display: block;
    position: static;
    background: none;
    color: var(--bleu-vif);
    font-size: 0.75rem;
    font-weight: 400;
    font-style: italic;
    margin-top: 0.3rem;
    white-space: normal;
    width: 100%;
    opacity: 1;
  }
  .info-bulle[data-tooltip] {
    display: inline-flex;
    flex-wrap: wrap;
    width: 100%;
    align-items: flex-start;
  }
}

/* Mobile-hint visible jusqu'à tablette */
@media (max-width: 1024px) {
  .mobile-hint { display: block; }
}




/* ═══ Bandeau mobile de l'accueil : 2 boutons de téléchargement (02/10/2026) ═══
   Sous 760 px, le logo + titre passent sur une première ligne centrée,
   les deux boutons sur une seconde ligne, côte à côte, à largeur égale. */
@media (max-width: 760px) {
  .page-index .split-left { flex-wrap: wrap; justify-content: center; align-items: stretch; row-gap: 0.6rem; padding: 0.75rem 1rem 0.85rem; }
  .page-index .left-top-wrap { flex: 1 1 100% !important; justify-content: center; }
  .page-index .left-pdf { flex: 1 1 0; min-width: 0; display: flex !important; margin-bottom: 0; }
  .page-index .left-pdf a { width: 100%; height: 100%; justify-content: center; text-align: center; white-space: normal; line-height: 1.3; padding: 0.55rem 0.6rem; cursor: pointer; }
  .page-index .left-pdf svg { flex-shrink: 0; }
}
