/* ============================================================
   Professionnalisable — Design system
   Palette dérivée du logo : marine profond + bleu poudré.
   ============================================================ */

:root {
  --navy-950: #16203a;
  --navy-900: #1d2940;
  --navy-800: #2b3a56;   /* couleur principale du logo */
  --navy-700: #35476b;
  --navy-600: #43587f;
  --powder-500: #7fa5b8;
  --powder-400: #a9c6d4; /* bleu poudré du logo */
  --powder-300: #c3d8e2;
  --powder-200: #dcebf1;
  --powder-100: #eef5f8;
  --paper: #fafcfd;
  --white: #ffffff;
  --ink: #1a2337;
  --ink-soft: #55627c;
  --amber-600: #c9803d;  /* accent chaleureux, à utiliser avec parcimonie */
  --amber-100: #f6e8d8;
  --green-600: #2e7d5b;
  --red-600: #b3413e;
  --red-100: #f6e2e1;
  --line: rgba(43, 58, 86, 0.14);
  --shadow-sm: 0 2px 10px rgba(29, 41, 64, 0.07);
  --shadow-md: 0 14px 40px rgba(29, 41, 64, 0.12);
  --shadow-lg: 0 28px 70px rgba(22, 32, 58, 0.18);
  --radius: 10px;
  --radius-lg: 16px;
  --wrap: min(1180px, calc(100% - 40px));
  --font-body: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol { margin-top: 0; }

.wrap { width: var(--wrap); margin: 0 auto; }

/* ---------- Typographie ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.08;
}
h1.display { font-size: clamp(2.4rem, 5vw, 3.9rem); }
h2.display { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--navy-600);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--powder-400);
}
.lead { color: var(--ink-soft); font-size: 1.08rem; max-width: 620px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary {
  color: var(--white);
  background: var(--navy-800);
  box-shadow: 0 10px 26px rgba(43, 58, 86, 0.28);
}
.btn-primary:hover { background: var(--navy-700); }
.btn-light {
  color: var(--navy-800);
  background: var(--powder-200);
}
.btn-light:hover { background: var(--powder-300); }
.btn-outline {
  color: var(--navy-800);
  background: transparent;
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--navy-600); }
.btn-white {
  color: var(--navy-900);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 0.87rem; border-radius: 8px; }
.btn-danger { color: var(--white); background: var(--red-600); }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 252, 253, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.topbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; }
.brand img { width: 38px; height: 38px; border-radius: 9px; }
.brand-name { font-size: 1.05rem; letter-spacing: -0.01em; color: var(--navy-900); }
.brand-name span { color: var(--powder-500); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--ink-soft);
}
.nav-links > a {
  padding: 9px 14px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links > a:hover { background: var(--powder-100); color: var(--navy-900); }

.lang-switch {
  display: inline-flex;
  /* Respire entre le menu et le bouton d'action, sans casser l'alignement */
  margin: 0 12px 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 800;
}
.lang-switch a {
  padding: 7px 11px;
  color: var(--ink-soft);
  transition: background 0.15s ease;
}
.lang-switch a.is-active { background: var(--navy-800); color: var(--white); }
.lang-switch a:not(.is-active):hover { background: var(--powder-100); }

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  cursor: pointer;
  color: var(--navy-800);
}
.menu-toggle span, .menu-toggle::before, .menu-toggle::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle::before { top: 15px; }
.menu-toggle span { top: 22px; }
.menu-toggle::after { top: 29px; }
.menu-toggle.is-open::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span { opacity: 0; }
.menu-toggle.is-open::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  padding: 10px;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.mobile-menu.is-open { display: grid; gap: 4px; }
.mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 700;
  color: var(--ink);
}
.mobile-menu a:hover { background: var(--powder-100); }
.mobile-menu .is-cta { justify-content: center; background: var(--navy-800); color: var(--white); }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 42px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-alt { background: var(--white); border-block: 1px solid var(--line); }
.section-navy { background: var(--navy-900); color: var(--white); }
.section-navy .kicker { color: var(--powder-300); }
.section-navy .lead { color: rgba(255, 255, 255, 0.78); }
.section-powder { background: var(--powder-100); }

/* ---------- Cartes ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 26px; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Hero landing ---------- */
.hero-landing {
  position: relative;
  overflow: hidden;
  padding: 74px 0 84px;
  background:
    radial-gradient(circle at 88% 8%, rgba(169, 198, 212, 0.35), transparent 42%),
    radial-gradient(circle at 4% 80%, rgba(169, 198, 212, 0.22), transparent 36%),
    var(--paper);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 48px;
  align-items: center;
}
.hero-copy .lead { margin: 18px 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.hero-note { color: var(--ink-soft); font-size: 0.88rem; font-weight: 600; }
.hero-note strong { color: var(--green-600); }

.hero-visual { position: relative; }
.hero-visual .main-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}

/* ---------- Carrousel d'accueil ---------- */
.hero-carousel {
  position: relative;
  /* Le ratio est fixé : aucune diapositive ne fait sauter la hauteur */
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: var(--powder-100);
}
.hero-carousel .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.hero-carousel .slide.is-active { opacity: 1; }
.hero-carousel .slide img { width: 100%; height: 100%; object-fit: cover; }

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
}
.carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 4px rgba(22, 32, 58, 0.35);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}
.carousel-dots button[aria-current="true"] { width: 22px; background: var(--white); }
.carousel-dots button:hover { background: var(--white); }

.carousel-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: var(--navy-900);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.2s ease;
  box-shadow: 0 4px 14px rgba(22, 32, 58, 0.22);
}
.carousel-nav.prev { left: 12px; }
.carousel-nav.next { right: 12px; }
.hero-carousel:hover .carousel-nav,
.carousel-nav:focus-visible { opacity: 1; }
.carousel-nav:hover { background: var(--white); }

@media (prefers-reduced-motion: reduce) {
  .hero-carousel .slide { transition: none; }
  .carousel-dots button { transition: none; }
}
@media (max-width: 640px) {
  .carousel-nav { opacity: 1; width: 34px; height: 34px; }
}

.hero-chip {
  position: absolute;
  left: -18px;
  bottom: 26px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  /* Fond opaque et liseré : lisible quelle que soit la photo derrière */
  background: var(--white);
  border: 1px solid var(--powder-300);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(22, 32, 58, 0.22);
  color: var(--navy-900);
  font-size: 0.86rem;
  font-weight: 700;
}
.hero-chip .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-600);
  box-shadow: 0 0 0 4px rgba(46, 125, 91, 0.15);
}

/* ---------- Étapes ---------- */
.step-card { position: relative; padding: 26px 24px 24px; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 12px 12px 12px 4px;
  background: var(--navy-800);
  color: var(--powder-300);
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.step-card h3 { font-size: 1.06rem; margin-bottom: 6px; }
.step-card p { color: var(--ink-soft); font-size: 0.93rem; margin-bottom: 0; }

/* ---------- Avant / Après ---------- */
.before-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 46px;
  align-items: center;
}
.before-grid .img-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

/* ---------- Cartes secteur ---------- */
.sector-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.sector-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy-800), var(--powder-400));
  opacity: 0;
  transition: opacity 0.22s ease;
}
.sector-card:hover, .sector-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--powder-400);
}
.sector-card:hover::before { opacity: 1; }
.sector-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 13px 13px 13px 5px;
  background: var(--powder-200);
  color: var(--navy-800);
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}
.sector-card:hover .sector-icon {
  background: var(--navy-800);
  color: var(--powder-300);
  transform: scale(1.06);
}
.sector-icon svg { width: 25px; height: 25px; }
.sector-card h3 { font-size: 1.04rem; margin-bottom: 2px; }
.sector-card .sector-sample { color: var(--ink-soft); font-size: 0.85rem; margin-bottom: 0; line-height: 1.5; }
.sector-card .sector-count {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  color: var(--navy-600);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sector-card .sector-count::after {
  content: "→";
  font-size: 1rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.sector-card:hover .sector-count::after { opacity: 1; transform: translateX(0); }

/* ---------- Tarifs ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  gap: 22px;
  justify-content: center;
}
.price-card { position: relative; padding: 32px 30px; display: flex; flex-direction: column; }
.price-card.is-featured { border-color: var(--navy-800); border-width: 2px; box-shadow: var(--shadow-md); }
.price-badge {
  position: absolute;
  top: -13px;
  left: 26px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--amber-600);
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.price-name { font-size: 1.02rem; font-weight: 800; color: var(--navy-800); margin-bottom: 8px; }
.price-value { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.price-value strong { font-size: 2.6rem; font-family: var(--font-display); line-height: 1; }
.price-value span { color: var(--ink-soft); font-weight: 600; }
.price-sub { color: var(--ink-soft); font-size: 0.87rem; margin-bottom: 20px; }
.price-features { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.price-features li { display: flex; gap: 10px; font-size: 0.93rem; color: var(--ink-soft); }
.price-features li::before { content: "✓"; color: var(--green-600); font-weight: 900; flex: 0 0 auto; }
.price-card .btn { margin-top: auto; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--navy-600);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 20px 18px; color: var(--ink-soft); }
.faq-item[open] .faq-body { animation: faq-in 0.28s ease; }
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Bandeau final ---------- */
.cta-panel {
  padding: 56px 40px;
  border-radius: 22px;
  background: linear-gradient(120deg, var(--navy-900), var(--navy-800));
  color: var(--white);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-panel h2 { margin-bottom: 10px; }
.cta-panel p { color: var(--powder-300); margin-bottom: 26px; }

/* ---------- Exploration secteurs ---------- */
.explore-layout {
  display: grid;
  /* minmax(0, …) : sans cela une piste s'élargit au contenu et déborde */
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}
.explore-side {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 4px;
  padding: 12px;
  max-height: calc(100vh - 120px);
  overflow: auto;
}
.explore-side a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  font-weight: 650;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.explore-side a:hover { background: var(--powder-100); color: var(--navy-900); }
.explore-side a.is-active { background: var(--navy-800); color: var(--white); }
.explore-side .side-icon { display: inline-grid; place-items: center; width: 28px; height: 28px; }
.explore-side .side-icon svg { width: 19px; height: 19px; }

.profession-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.profession-card:hover, a.profession-card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--powder-400); }
.profession-card h3 { font-size: 1rem; margin: 0; }
.profession-card .meta {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--navy-600);
  font-size: 0.8rem;
  font-weight: 700;
}
a.profession-card .meta::after {
  content: "→";
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
a.profession-card:hover .meta::after { opacity: 1; transform: translateX(0); }
.profession-card .meta.muted { color: var(--ink-soft); font-weight: 600; }

/* ---------- Galerie de modèles (showroom) ---------- */
.template-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.template-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}
.template-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--powder-400);
}
.template-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--powder-100);
}
.template-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.template-card:hover .template-thumb img { transform: scale(1.05); }
.template-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(22, 32, 58, 0.55));
  opacity: 0;
  transition: opacity 0.25s ease;
}
.template-card:hover .template-thumb::after { opacity: 1; }
.thumb-cta {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 2;
  transform: translate(-50%, 10px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy-900);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(6px);
}
.template-card:hover .thumb-cta { opacity: 1; transform: translate(-50%, 0); }
.template-style {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 13px;
  border-radius: 999px;
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  background: rgba(22, 32, 58, 0.85);
}
.template-style.style-classic { background: rgba(122, 102, 60, 0.9); }
.template-style.style-modern { background: linear-gradient(120deg, rgba(38, 56, 66, 0.94), rgba(52, 92, 110, 0.94)); }
.template-style.style-business { background: rgba(22, 32, 58, 0.9); }
.template-style.style-premium { background: rgba(155, 88, 48, 0.9); }
.template-body { display: flex; flex-direction: column; gap: 6px; padding: 20px; }
.template-title-row { display: flex; align-items: center; gap: 10px; }
.template-title-row h3 { margin: 0; }
.palette-dots { display: inline-flex; gap: 5px; margin-left: auto; }
.palette-dots span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--line);
}
.template-body p { color: var(--ink-soft); font-size: 0.9rem; margin: 0; }
.template-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 650;
}
.template-meta span { display: inline-flex; align-items: center; gap: 5px; }
.template-meta span::before { content: "•"; color: var(--powder-500); }
.template-actions { display: flex; gap: 10px; margin-top: 14px; }

/* ---------- Formulaires ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 0.84rem; font-weight: 750; color: var(--navy-800); }
.field .hint { font-size: 0.78rem; color: var(--ink-soft); }
.input, textarea.input, select.input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus { border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(169, 198, 212, 0.35); }
textarea.input { min-height: 110px; resize: vertical; }
.field .error { color: var(--red-600); font-size: 0.8rem; font-weight: 600; }
.input.is-invalid { border-color: var(--red-600); }

/* ---------- Connexion et inscription : deux colonnes ---------- */
.auth-split {
  display: grid;
  grid-template-columns: minmax(0, 47fr) minmax(0, 53fr);
  /* Hauteur bornée à l'écran : sans cela, la photo (1100 x 1500) imposerait
     sa hauteur intrinsèque à la ligne et décentrerait le formulaire. */
  height: 100vh;
}
.auth-form-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--paper);
  /* Un formulaire long défile dans sa colonne, la photo reste en place */
  overflow-y: auto;
}
.auth-form-inner { width: min(430px, 100%); margin: auto; }
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-weight: 800;
  color: var(--navy-900);
}
.auth-brand img { width: 36px; height: 36px; border-radius: 9px; }
.auth-brand span { font-size: 1rem; }
.auth-back { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; color: var(--ink-soft); font-size: 0.86rem; font-weight: 650; }
.auth-back:hover { color: var(--navy-800); }

/* Champs un peu plus compacts que sur le reste du site : un formulaire de
   compte doit tenir dans l'écran sans donner l'impression d'être clairsemé. */
.auth-form-col .field { gap: 5px; margin-bottom: 13px; }
.auth-form-col .input { min-height: 42px; padding: 9px 13px; }
.auth-form-col .auth-head { margin-bottom: 20px; }
.auth-form-col .auth-head h1 { font-size: clamp(1.4rem, 2.4vw, 1.7rem); margin-bottom: 6px; }
.auth-form-col .auth-head p { font-size: 0.9rem; }
.auth-form-col form > .btn { margin-top: 6px; }
.auth-form-col .hint { display: block; margin: -6px 0 14px; font-size: 0.78rem; color: var(--ink-soft); }

.auth-visual { position: relative; overflow: hidden; background: var(--navy-900); }
/* Détachée du flux : l'image ne participe plus au calcul de la hauteur */
.auth-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(22, 32, 58, 0.1) 30%, rgba(22, 32, 58, 0.74));
}
.auth-quote {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 44px;
  z-index: 2;
  color: var(--white);
}
.auth-quote h2 { font-size: clamp(1.4rem, 2.2vw, 2rem); margin-bottom: 10px; }
.auth-quote p { color: rgba(255, 255, 255, 0.86); margin: 0; max-width: 460px; }

@media (max-width: 900px) {
  .auth-split { grid-template-columns: minmax(0, 1fr); height: auto; }
  .auth-form-col { overflow: visible; }
  .auth-visual img { position: static; }
  /* Sur mobile, priorité au formulaire : l'image devient un bandeau */
  .auth-visual { order: -1; height: 168px; }
  .auth-quote { left: 22px; right: 22px; bottom: 18px; }
  .auth-quote h2 { font-size: 1.12rem; margin-bottom: 0; }
  .auth-quote p { display: none; }
  .auth-form-col { padding: 28px 20px 48px; }
  /* Liens secondaires confortables au doigt */
  .auth-back { min-height: 44px; margin-top: 12px; }
  .auth-alt { margin-top: 12px; }
  .auth-alt a { display: inline-block; padding: 11px 6px; }
}
@media (max-width: 420px) {
  .auth-visual { height: 130px; }
}

/* Conteneur simple, conservé pour les pages de mot de passe */
.auth-shell { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 48px 0; }
.auth-card { width: min(480px, calc(100vw - 32px)); padding: 36px 34px; }
.auth-head { margin-bottom: 26px; }
.auth-head h1 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-bottom: 8px; }
.auth-head p { color: var(--ink-soft); margin: 6px 0 0; }
.auth-alt { margin-top: 20px; text-align: center; font-size: 0.9rem; color: var(--ink-soft); }
.auth-alt a { color: var(--navy-800); font-weight: 750; }

/* ---------- Alertes ---------- */
.alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.alert-success { background: #e5f3ec; color: var(--green-600); border: 1px solid rgba(46, 125, 91, 0.25); }
.alert-error { background: var(--red-100); color: var(--red-600); border: 1px solid rgba(179, 65, 62, 0.25); }
.alert-info { background: var(--powder-200); color: var(--navy-800); border: 1px solid rgba(43, 58, 86, 0.18); }

/* ---------- Compte ---------- */
.account-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; padding: 42px 0 72px; }
.account-side { position: sticky; top: 92px; display: grid; gap: 4px; padding: 12px; }
.account-side a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 9px;
  font-weight: 650;
  font-size: 0.93rem;
  color: var(--ink-soft);
}
.account-side a:hover { background: var(--powder-100); color: var(--navy-900); }
.account-side a.is-active { background: var(--navy-800); color: var(--white); }

.progress { height: 9px; border-radius: 999px; background: var(--powder-200); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 999px; background: var(--green-600); transition: width 0.4s ease; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.badge-green { background: #e5f3ec; color: var(--green-600); }
.badge-amber { background: var(--amber-100); color: var(--amber-600); }
.badge-gray { background: var(--powder-100); color: var(--ink-soft); }
.badge-navy { background: var(--powder-200); color: var(--navy-800); }
.badge-red { background: var(--red-100); color: var(--red-600); }

/* ---------- Pagination (côté public / compte) ---------- */
.pagination { display: flex; gap: 6px; margin-top: 18px; flex-wrap: wrap; align-items: center; }
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.pagination a:hover { background: var(--powder-100); color: var(--navy-900); border-color: var(--powder-400); }
.pagination .is-current { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); }
.pagination .is-disabled { opacity: 0.45; }
.pagination .is-gap { border: 0; background: transparent; min-width: 20px; padding: 0; }
.pagination .pagination-count { margin-left: auto; border: 0; background: transparent; color: var(--ink-soft); font-weight: 600; font-size: 0.82rem; }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.91rem; }
.table th {
  text-align: left;
  padding: 12px 14px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--line);
}
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--powder-100); }

/* ---------- Footer ---------- */
.footer {
  padding: 52px 0 34px;
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; margin-bottom: 34px; }
.footer .brand-name { color: var(--white); }
.footer-baseline { margin-top: 12px; color: var(--powder-300); max-width: 320px; }
.footer h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer-links { display: grid; gap: 9px; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: var(--rd, 0s);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Accessibilité ---------- */
.skip-link {
  position: absolute;
  top: -48px;
  left: 14px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  background: var(--navy-800);
  color: var(--white);
  font-weight: 700;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid var(--powder-500);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible, .input:focus-visible {
  outline: 3px solid var(--powder-500);
  outline-offset: 2px;
}

/* ---------- Retour en haut ---------- */
.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 55;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--white);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.2s ease;
  box-shadow: 0 12px 30px rgba(29, 41, 64, 0.28);
}
.back-top.is-visible { opacity: 0.9; visibility: visible; transform: translateY(0) scale(1); }
.back-top:hover { opacity: 1; background: var(--navy-700); transform: translateY(-2px) scale(1); }
@media (max-width: 640px) { .back-top { right: 14px; bottom: 14px; width: 44px; height: 44px; } }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-chip { left: 12px; }
  .before-grid { grid-template-columns: 1fr; }
  .explore-layout { grid-template-columns: minmax(0, 1fr); }
  .explore-side { position: static; display: flex; flex-wrap: wrap; max-height: none; }
  .account-layout { grid-template-columns: minmax(0, 1fr); }
  /* La barre latérale n'est plus « mise à plat » en bloc de liens
     horizontaux : sous ce seuil elle disparaît au profit du tiroir
     (voir .navside / .drawer). Le contenu commence donc immédiatement. */
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* La barre complète (liens + langue + bouton) réclame ~830 px : en dessous,
   elle déborderait, on bascule donc sur le menu replié. */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
}
/* Entre ce seuil et 1080 px, la barre doit encore loger les deux liens
   supplémentaires d'un compte administrateur : on resserre l'espacement
   sans toucher au rendu sur grand écran. */
@media (min-width: 861px) and (max-width: 1080px) {
  .nav-links { font-size: 0.86rem; }
  .nav-links > a { padding: 9px 9px; }
  .lang-switch { margin: 0 8px; }
  .lang-switch a { padding: 7px 8px; }
}
@media (max-width: 760px) {
  section { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4, .template-grid, .pricing-grid { grid-template-columns: 1fr; }
  .cta-panel { padding: 42px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------
   Partage du site publié : lien public, réseaux, QR code
   --------------------------------------------------------------- */
.share-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
}
.share-col { min-width: 0; }
.share-label {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 10px;
}
.share-url {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--powder-100);
  font-weight: 700;
  font-size: .96rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.share-url-scheme { color: var(--ink-soft); font-weight: 600; }
.share-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.share-actions .btn.is-copied {
  background: var(--green-600);
  border-color: var(--green-600);
  color: #fff;
}
.share-networks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.share-net {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: .9rem;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  transition: transform .12s ease, box-shadow .12s ease;
}
.share-net span { font-weight: 900; opacity: .9; }
.share-net:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.share-net-whatsapp { border-color: #25d36633; color: #128c4a; }
.share-net-facebook { border-color: #1877f233; color: #14539a; }
.share-net-linkedin { border-color: #0a66c233; color: #0a4f96; }
.share-net-email    { border-color: var(--line); color: var(--ink-soft); }

.share-qr-col { text-align: center; }
.share-qr {
  display: inline-block;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
  line-height: 0;
}
.share-qr img { display: block; width: 200px; height: 200px; }
.share-qr-hint {
  margin: 12px 0 0;
  font-size: .82rem;
  color: var(--ink-soft);
  max-width: 240px;
}

@media (max-width: 900px) {
  .share-grid { grid-template-columns: 1fr; gap: 24px; }
  .share-qr-col { text-align: left; }
  .share-qr-hint { max-width: none; }
  .share-actions { justify-content: flex-start !important; }
  /* Cibles tactiles : 44 px minimum, recommandation d'accessibilité */
  .share-actions .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
@media (max-width: 420px) {
  .share-networks { grid-template-columns: 1fr; }
  .share-actions .btn { flex: 1 1 100%; }
}

/* ==========================================================================
   NAVIGATION DES ESPACES CONNECTÉS
   ==========================================================================

   Une seule feuille pour l'espace client et l'administration : les deux
   partagent la même mécanique (barre latérale au-dessus du point de bascule,
   tiroir en dessous) et ne se distinguent que par leur palette.

   Point de bascule unique : 1024 px. Au-delà, barre latérale ; en dessous,
   en-tête compact + tiroir. La tablette est traitée par la largeur de la
   barre, et non par un troisième mécanisme — un mécanisme de plus serait un
   mécanisme de plus à maintenir, et à laisser diverger.
   -------------------------------------------------------------------------- */

:root {
  --nav-w: 264px;
  --nav-w-compact: 232px;
}

/* ---------- Barre latérale ---------- */

.navside {
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 12px 14px;
  gap: 6px;
}

.navside-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 14px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}
.navside-brand img { width: 32px; height: 32px; border-radius: 8px; flex: 0 0 auto; }
.navside-brand span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Seule la liste défile : la marque et le pied restent visibles même quand
   l'administration compte vingt et une rubriques. */
.navside-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; }
.navside-scroll::-webkit-scrollbar { width: 6px; }
.navside-scroll::-webkit-scrollbar-thumb { background: rgba(43,58,86,.18); border-radius: 3px; }

.navside-foot { padding-top: 10px; border-top: 1px solid var(--line); }

/* Client : carte claire posée sur le papier. */
.navside--client {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  height: auto;
  max-height: calc(100vh - 112px);
  top: 92px;
}
.navside--client .navside-brand { display: none; }

/* Administration : bandeau sombre pleine hauteur, identité de la marque. */
.navside--admin {
  background: var(--navy-950);
  color: rgba(255,255,255,.76);
}
.navside--admin .navside-brand { color: #fff; }
.navside--admin .navside-foot { border-top-color: rgba(255,255,255,.12); }
.navside--admin .navside-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); }

/* ---------- Groupes et entrées ---------- */

.navmenu { display: flex; flex-direction: column; gap: 2px; }
.navgroup + .navgroup { margin-top: 10px; }
/* Cote client les groupes sont courts : trop d'air et quatre rubriques
   occupaient presque toute la hauteur. */
.navmenu--client .navgroup + .navgroup { margin-top: 6px; }

/*
 * Titre de groupe cote client : un separateur, pas un bouton.
 *
 * Avant, il partageait la graisse et la taille des rubriques cliquables : rien
 * ne disait a l'oeil qu'« ASSISTANCE » n'etait pas une page. Il recoit donc un
 * fond tres pale et une graisse moindre — assez pour se detacher, trop peu pour
 * se faire prendre pour une destination.
 */
.navgroup-title {
  display: block;
  margin: 0 0 4px;
  padding: 5px 10px;
  border-radius: 7px;
  background: var(--powder-100);
  font-size: .64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-soft);
}

.navgroup-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
  cursor: pointer;
  text-align: left;
  transition: background .15s ease, color .15s ease;
}
.navgroup-head:hover { background: rgba(43,58,86,.06); }
.navside--admin .navgroup-head,
.drawer--admin .navgroup-head { color: rgba(255,255,255,.5); }
.navside--admin .navgroup-head:hover,
.drawer--admin .navgroup-head:hover { background: rgba(255,255,255,.07); color: #fff; }
.navside--admin .navgroup-title,
.drawer--admin .navgroup-title { color: rgba(255,255,255,.42); }

.navgroup-label { flex: 1; min-width: 0; }
.navgroup-ico { opacity: .75; flex: 0 0 auto; }
.navgroup-chevron { flex: 0 0 auto; transition: transform .18s ease; opacity: .7; }
.navgroup.is-open > .navgroup-head .navgroup-chevron { transform: rotate(180deg); }

.navgroup-items { display: flex; flex-direction: column; gap: 2px; padding-top: 2px; }

/*
 * Un groupe replié doit disparaitre.
 *
 * La ligne au-dessus pose « display: flex » : en CSS, une regle d'auteur bat
 * toujours la feuille du navigateur, y compris son « [hidden] { display:none } ».
 * Sans cette declaration, l'attribut « hidden » pose par le serveur et bascule
 * par nav.js n'avait aucun effet visible — les groupes restaient tous ouverts
 * et les chevrons semblaient inertes alors qu'ils pivotaient bien.
 */
.navgroup-items[hidden] { display: none; }

/* Repère d'appartenance : un filet relie les entrées à leur groupe. */
.navmenu--admin .navgroup-items {
  margin-left: 13px;
  padding-left: 11px;
  border-left: 1px solid rgba(43,58,86,.12);
}
.navside--admin .navmenu--admin .navgroup-items,
.drawer--admin .navmenu--admin .navgroup-items { border-left-color: rgba(255,255,255,.1); }

.navitem {
  display: flex;
  align-items: center;
  gap: 10px;
  /* 40 px : confortable au doigt sans alourdir le grand écran. */
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: .89rem;
  font-weight: 650;
  color: var(--ink-soft);
  transition: background .15s ease, color .15s ease;
}
.navitem .nav-ico { flex: 0 0 auto; opacity: .8; }
.navitem-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.navitem:hover { background: var(--powder-100); color: var(--navy-900); }
.navitem:hover .nav-ico { opacity: 1; }

.navitem.is-active { background: var(--navy-800); color: #fff; font-weight: 750; }
.navitem.is-active .nav-ico { opacity: 1; }

.navside--admin .navitem,
.drawer--admin .navitem { color: rgba(255,255,255,.76); }
.navside--admin .navitem:hover,
.drawer--admin .navitem:hover { background: rgba(255,255,255,.08); color: #fff; }
.navside--admin .navitem.is-active,
.drawer--admin .navitem.is-active { background: var(--navy-700); color: #fff; }

/* ---------- Badges ---------- */

.navbadge {
  flex: 0 0 auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--powder-200);
  color: var(--navy-800);
  font-size: .7rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.navbadge--alert { background: var(--red-100); color: var(--red-600); }
.navitem.is-active .navbadge { background: rgba(255,255,255,.22); color: #fff; }
.navside--admin .navbadge,
.drawer--admin .navbadge { background: rgba(255,255,255,.14); color: #fff; }
.navside--admin .navbadge--alert,
.drawer--admin .navbadge--alert { background: var(--red-600); color: #fff; }

/* ---------- En-tête compact ---------- */

.navbar-mobile {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 60;
}
.navbar-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: .95rem; min-width: 0; }
.navbar-brand img { width: 28px; height: 28px; border-radius: 7px; flex: 0 0 auto; }
.navbar-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.navbar-burger {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--navy-800);
  cursor: pointer;
  flex: 0 0 auto;
}
.navbar-burger:hover { background: var(--powder-100); }

/* ---------- Tiroir ---------- */

.drawer { position: fixed; inset: 0; z-index: 200; }
.drawer[hidden] { display: none; }

.drawer-veil {
  position: absolute; inset: 0;
  background: rgba(22,32,58,.45);
  opacity: 0;
  transition: opacity .22s ease;
}
.drawer.is-open .drawer-veil { opacity: 1; }

.drawer-panel {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(310px, 86vw);
  display: flex;
  flex-direction: column;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transform: translateX(-100%);
  transition: transform .24s cubic-bezier(.22,.61,.36,1);
}
.drawer.is-open .drawer-panel { transform: translateX(0); }

.drawer--admin .drawer-panel { background: var(--navy-950); color: rgba(255,255,255,.78); }

.drawer-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--line);
}
.drawer--admin .drawer-head { border-bottom-color: rgba(255,255,255,.12); }
.drawer-title { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: .98rem; min-width: 0; }
.drawer-title img { width: 28px; height: 28px; border-radius: 7px; }

.drawer-close {
  margin-left: auto;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  flex: 0 0 auto;
}
.drawer--admin .drawer-close { border-color: rgba(255,255,255,.18); }
.drawer-close:hover { background: rgba(43,58,86,.07); }
.drawer--admin .drawer-close:hover { background: rgba(255,255,255,.1); }

.drawer-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 10px; }
.drawer-foot { padding: 12px 14px; border-top: 1px solid var(--line); }
.drawer--admin .drawer-foot { border-top-color: rgba(255,255,255,.12); }

/* Confort tactile : 44 px, seuil recommandé au doigt. */
.drawer .navitem { min-height: 44px; font-size: .93rem; }
.drawer .navgroup-head { min-height: 44px; }

/* ---------- Bascule ---------- */

@media (max-width: 1024px) {
  .navside { display: none; }
  .navbar-mobile { display: flex; }
}

/* Tablette et petit portable : barre plus étroite, pas d'autre mécanisme. */
@media (min-width: 1025px) and (max-width: 1200px) {
  :root { --nav-w: 232px; }
  .navitem { font-size: .86rem; padding: 8px 10px; }
}

/* Le fond ne défile plus quand le tiroir est ouvert. */
body.drawer-open { overflow: hidden; }

/* ---------- Accessibilité ---------- */

.navitem:focus-visible,
.navgroup-head:focus-visible,
.navbar-burger:focus-visible,
.drawer-close:focus-visible {
  outline: 2px solid var(--powder-500);
  outline-offset: 2px;
}
.navside--admin .navitem:focus-visible,
.navside--admin .navgroup-head:focus-visible,
.drawer--admin .navitem:focus-visible,
.drawer--admin .navgroup-head:focus-visible,
.drawer--admin .drawer-close:focus-visible {
  outline-color: var(--powder-400);
}

@media (prefers-reduced-motion: reduce) {
  .drawer-panel, .drawer-veil, .navgroup-chevron { transition: none; }
}

/* ---------- Fil d'Ariane ---------- */

.crumbs {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: .8rem;
  color: var(--ink-soft);
}
.crumbs span { white-space: nowrap; }
.crumbs .sep { opacity: .45; }
.crumbs .crumb-current { font-weight: 750; color: var(--navy-800); }

/* ==========================================================================
   COQUILLES DE PAGE
   ========================================================================== */

@media (min-width: 1025px) {
  .account-layout { grid-template-columns: var(--nav-w) minmax(0, 1fr); }
}
@media (max-width: 1024px) {
  /* Plus de grille : le contenu occupe toute la largeur et commence
     immédiatement sous l'en-tête compact. */
  .account-layout { display: block; padding: 20px 0 56px; }
}

.admin-shell { display: grid; grid-template-columns: var(--nav-w) minmax(0, 1fr); min-height: 100vh; }
.admin-shell > .navside, .admin-shell > .admin-main { min-width: 0; }

@media (max-width: 1024px) {
  .admin-shell { display: block; }
}

/* ---------- Pied de navigation : identité et sortie ---------- */

.navuser {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 10px;
  min-width: 0;
}
.navuser-avatar {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--powder-200);
  color: var(--navy-800);
  font-weight: 800;
  font-size: .9rem;
}
.navuser-id { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.navuser-id strong { font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navuser-id span { font-size: .74rem; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.drawer--admin .navuser-avatar,
.navside--admin .navuser-avatar { background: rgba(255,255,255,.14); color: #fff; }
.drawer--admin .navuser-id span,
.navside--admin .navuser-id span { color: rgba(255,255,255,.55); }

/* Entrées secondaires du pied : même gabarit que les rubriques, ton plus
   discret — elles ne font pas partie de la navigation métier. */
.navitem--quiet { font-weight: 600; font-size: .85rem; }
.navitem--button {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

/* ---------- Coquille client : le contenu respire ---------- */

@media (min-width: 1025px) {
  .account-layout { gap: 26px; align-items: start; }
}

/* ==========================================================================
   RESPONSIVE DU CONTENU DES ESPACES CONNECTÉS
   ========================================================================== */

/* Tableaux : défilement horizontal maîtrisé, jamais de page qui déborde.
   Le conteneur .table-wrap existait déjà ; on le rend explicite et on évite
   que les cellules se compriment jusqu'à l'illisible. */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap > table { min-width: 620px; }

/* ... mais un conteneur à défilement ne défile que s'il a le droit de
   rétrécir. Un élément de grille vaut « min-width: auto », c'est-à-dire au
   moins la largeur minimale de son contenu : le tableau de 620 px élargissait
   alors la colonne, puis la page entière, et le .table-wrap ne défilait
   jamais. Constaté sur la formation du technicien à 375 px — la page mesurait
   678 px de large. Le correctif vaut pour tous les écrans de l'espace
   connecté, où le même gabarit est repris partout. */
.account-layout > *,
.account-layout > * > * { min-width: 0; }

@media (max-width: 640px) {
  .table-wrap > table { font-size: .84rem; }
  .table-wrap th, .table-wrap td { padding-left: 8px; padding-right: 8px; }
}

/* Formulaires : les champs occupent la largeur disponible plutôt que de
   conserver une largeur fixe qui déborde sur téléphone. */
@media (max-width: 640px) {
  .field .input,
  .field select,
  .field textarea { max-width: 100% !important; width: 100%; }
  .field > div[style*="flex"] { width: 100%; }
  .btn { max-width: 100%; }
}

/* Cartes du tableau de bord et grilles génériques. */
@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .card-pad { padding: 18px; }
}

/* Pas de « overflow-x: hidden » sur body : ce garde-fou masquerait un
   débordement réel au lieu de le corriger. Les tableaux larges sont
   contenus par leur propre conteneur à défilement (.table-wrap). */

/* ---------- Bandeau de l'espace connecté ---------- */

/* Réduit à l'essentiel : marque, retour au site public, langue.
   Sous le point de bascule il s'efface — l'en-tête compact de la navigation
   porte déjà la marque et le bouton du tiroir. */
.topbar--app .nav-links { gap: 6px; }
.topbar--app .topbar-inner { min-height: 62px; }

@media (max-width: 1024px) {
  .topbar--app { display: none; }
}

/* La barre latérale du client se cale sous le bandeau réduit. */
@media (min-width: 1025px) {
  .navside--client { top: 82px; max-height: calc(100vh - 102px); }
}

/* ---------- Recherche de métier ---------- */
.catalog-search { position: relative; max-width: 560px; margin: 0 0 30px; }
.catalog-search__box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.catalog-search__box:focus-within { border-color: var(--powder-400); box-shadow: var(--shadow-md); }
.catalog-search__icon { flex: 0 0 auto; color: var(--ink-soft); }
.catalog-search__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 0;
  border: 0;
  background: none;
  color: var(--ink);
  /* 16px minimum : en dessous, iOS zoome sur le champ à la mise au point. */
  font: 1rem/1.4 var(--font-body);
}
.catalog-search__input:focus { outline: none; }
.catalog-search__input::-webkit-search-cancel-button { display: none; }
.catalog-search__clear {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--powder-100);
  color: var(--ink-soft);
  cursor: pointer;
}
.catalog-search__clear:hover { background: var(--powder-200); color: var(--ink); }

.catalog-search__panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 60vh;
  overflow-y: auto;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.catalog-search__panel[hidden] { display: none; }
.catalog-search__list { margin: 0; padding: 0; list-style: none; }
.catalog-search__hit {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  /* Cible tactile confortable : 48 px de haut au doigt. */
  padding: 13px 14px;
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
}
.catalog-search__hit:hover, .catalog-search__hit:focus-visible {
  background: var(--powder-100);
  outline: none;
}
.catalog-search__hit-name { font-weight: 600; }
.catalog-search__hit-sector { flex: 0 0 auto; color: var(--ink-soft); font-size: .84rem; }
.catalog-search__empty { margin: 0; padding: 16px 14px; color: var(--ink-soft); font-size: .92rem; }
.catalog-search__live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; }

@media (max-width: 640px) {
  .catalog-search { max-width: none; margin-bottom: 24px; }
  .catalog-search__hit { flex-direction: column; align-items: flex-start; gap: 2px; }
  .catalog-search__hit-sector { font-size: .8rem; }
}
.catalog-search__hit-sector.is-soon { color: var(--amber-600); }

/* ============================================================
   Parcours de complétude — carte « Mon site »
   ------------------------------------------------------------
   Aucune couleur nouvelle : marine, bleu poudré, blanc et le vert
   déjà utilisé par la barre de progression. Le parcours est une
   extension de la carte, pas un encart rapporté.
   ============================================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.checklist { margin-top: 12px; }

.checklist-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;      /* cible tactile confortable */
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--powder-100);
  color: var(--navy-800);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.checklist-toggle:hover { background: var(--powder-200); border-color: var(--powder-400); }
.checklist-toggle:focus-visible { outline: 3px solid var(--navy-600); outline-offset: 2px; }

.checklist-toggle__chevron { display: inline-flex; transition: transform 0.2s ease; }
.checklist.is-open .checklist-toggle__chevron { transform: rotate(180deg); }

.checklist-toggle__count {
  margin-left: auto;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.checklist-panel {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.checklist-lead {
  margin: 0 0 14px;
  font-size: 0.92rem;
  color: var(--navy-900);
  line-height: 1.5;
}
.checklist-lead strong { color: var(--green-600); }

.checklist-heading {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.checklist-steps + .checklist-heading { margin-top: 18px; }

.checklist-note {
  margin: -4px 0 10px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.checklist-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.checklist-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.checklist-step.is-done { background: var(--white); }
.checklist-step.is-next {
  border-color: var(--navy-800);
  border-width: 2px;
  padding: 9px;          /* compense la bordure, la ligne ne bouge pas */
  background: var(--powder-100);
}

/* Pastille : la FORME change, pas seulement la couleur. */
.checklist-step__mark {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px dashed var(--powder-400);
  background: var(--white);
  color: var(--white);
}
.checklist-step.is-done .checklist-step__mark {
  border: 2px solid var(--green-600);
  background: var(--green-600);
}

.checklist-step__body { min-width: 0; flex: 1; }

.checklist-step__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 2px;
}

.checklist-step__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy-900);
  overflow-wrap: anywhere;
}

.checklist-step__state {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--ink-soft);
  white-space: nowrap;
}
.checklist-step.is-done .checklist-step__state { color: var(--green-600); }

.checklist-step__flag,
.checklist-step__tag {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.checklist-step__flag { background: var(--navy-800); color: var(--white); }
.checklist-step__tag { background: var(--powder-200); color: var(--navy-700); }

.checklist-step__help {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.checklist-step__go { flex: 0 0 auto; align-self: center; white-space: nowrap; }

/* --- Mobile : la ligne se déplie, le bouton prend toute la largeur ------ */
@media (max-width: 560px) {
  .checklist-step { flex-wrap: wrap; }
  /* La pastille reste à côté du titre ; seul le bouton passe à la ligne. */
  .checklist-step__body { flex: 1 1 0; min-width: 0; }
  .checklist-step__go {
    flex: 1 1 100%;
    align-self: stretch;
    text-align: center;
    justify-content: center;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
  .checklist-panel { padding: 12px 10px; }
  .checklist-toggle { font-size: 0.85rem; }
}

/* ============================================================
   Aides contextuelles des rubriques
   ------------------------------------------------------------
   Dans app.css et non dans editor.css : le même bloc sert dans
   l'éditeur et sur la page « Adresse du site », qui ne charge
   pas la feuille de l'éditeur.

   Orange pâle, et volontairement pas bleu. L'interface est déjà
   entièrement marine et bleu poudré : un encadré bleu de plus s'y
   fondait, et le client passait devant l'aide sans la voir. La
   chaleur n'est pas ici une décoration, c'est ce qui distingue
   « on vous explique » de « voici un formulaire ».

   Assez chaud pour se repérer, assez pâle pour ne pas alarmer :
   aucun rouge, aucune saturation de bouton d'action, aucun aplat
   plein sur le cadre lui-même. Le seul aplat soutenu est réservé
   à l'étiquette « À éviter », et il tient en trois mots.

   Les couleurs sont déclarées SUR « .guide », pas sur « :root ».
   Portée close : rien de ce qui vit hors d'un bloc d'aide ne peut
   virer à l'orange par ricochet.
   ============================================================ */

.guide {
  /* Palette propre au bloc d'aide — voir la note ci-dessus. */
  --guide-bg: #fff4e6;
  --guide-line: #f2b36d;
  --guide-edge: #e08a2e;         /* liseré gauche, plus affirmé */
  --guide-accent: #a85b12;       /* icône et étiquettes — 4,7:1 sur le fond */
  --guide-accent-dark: #8a4a0e;  /* survol et bordure active */
  --guide-panel: #fffaf3;        /* zone détaillée, encore plus claire */
  --guide-chip: #fbe6cc;

  margin-bottom: 16px;
  padding: 11px 13px;
  border: 1px solid var(--guide-line);
  border-left: 3px solid var(--guide-edge);
  border-radius: 10px;
  background: var(--guide-bg);
}

.guide-lead {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  /* Le texte reste marine : c'est la couleur la plus lisible du
     projet, et la chaleur est portée par le cadre, pas par les mots. */
  color: var(--navy-900);
  overflow-wrap: anywhere;
}

.guide-ico { flex: 0 0 auto; margin-top: 1px; color: var(--guide-accent); }

.guide-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  padding: 6px 10px;
  min-height: 34px;
  border: 1px solid var(--guide-line);
  border-radius: 999px;
  background: var(--guide-panel);
  color: var(--guide-accent);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 750;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
/* Le survol change TROIS choses à la fois — fond, bordure et texte.
   Une nuance de fond seule serait invisible pour beaucoup de gens,
   et indétectable sur un écran mal réglé. */
.guide-toggle:hover {
  background: var(--guide-chip);
  border-color: var(--guide-accent);
  color: var(--guide-accent-dark);
}
/* Contour de focus laissé en marine : c'est celui de tout le site.
   Un indicateur de focus se reconnaît d'une page à l'autre, il n'a
   pas à suivre la couleur du composant — et le marine tranche
   franchement sur l'orange pâle. */
.guide-toggle:focus-visible { outline: 3px solid var(--navy-600); outline-offset: 2px; }

.guide-toggle__chevron { display: inline-flex; transition: transform 0.2s ease; }
.guide-toggle.is-open .guide-toggle__chevron { transform: rotate(180deg); }

.guide-details {
  margin-top: 11px;
  padding: 11px;
  border: 1px solid var(--guide-line);
  border-radius: 8px;
  background: var(--guide-panel);
}

.guide-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
  margin: 0 0 9px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--navy-900);
}
.guide-block:last-child { margin-bottom: 0; }
.guide-block__text { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.guide-block--example .guide-block__text { font-style: italic; color: var(--navy-700); }
.guide-block--pitfall .guide-block__text { color: var(--ink-soft); }

.guide-block__title {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--guide-accent);
}

.guide-tag {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--guide-chip);
  /* Accent FONCÉ, et pas l'accent courant : sur la puce claire, le
     premier donne 5,6:1 quand le second tombe à 4,1 — sous le seuil.
     Une étiquette de 11 px est le pire endroit où économiser du
     contraste. */
  color: var(--guide-accent-dark);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
/* « À éviter » se distingue par le REMPLISSAGE, pas par une autre
   teinte : étiquette pleine contre étiquette claire. La différence
   se voit en noir et blanc, et l'on reste dans la même famille
   chaude — pas de rouge, donc pas de faux message d'erreur. */
.guide-tag--warn { background: var(--guide-accent); color: var(--guide-bg); }

.guide-tips {
  margin: 0 0 9px;
  padding-left: 18px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.guide-tips:last-child { margin-bottom: 0; }
.guide-tips li { margin-bottom: 3px; overflow-wrap: anywhere; }
.guide-tips li:last-child { margin-bottom: 0; }
.guide-tips--check { list-style: none; padding-left: 0; }
.guide-tips--check li { padding-left: 20px; position: relative; }
.guide-tips--check li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--guide-edge);
  border-radius: 3px;
}

/* --- Mobile : pleine largeur, aucun débordement ------------------------- */
@media (max-width: 560px) {
  .guide { padding: 10px 11px; }
  .guide-lead { font-size: 0.83rem; }
  .guide-toggle { width: 100%; justify-content: center; min-height: 38px; }
  .guide-block { gap: 5px; }
  .guide-block__text { flex: 1 1 100%; }
  .guide-details { padding: 10px; }
}

/* ==========================================================================
   Page publique « Devenir Technicien Professionnalisable »
   ==========================================================================

   Composants propres à cette page. Tout le reste — sections, cartes, boutons,
   « display », « kicker », « lead » — vient du système existant : cette page
   n'invente pas une seconde grammaire visuelle.

   Le fil directeur est celui de la page d'origine du programme : des sections
   qui alternent, des cartes claires posées sur un fond doux, et un parcours
   représenté par une frise plutôt que par une pile de grandes cartes.
   -------------------------------------------------------------------------- */

/* --- Mission : cinq gestes, en grille compacte -------------------------- */
.tech-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}
.tech-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
}
.tech-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--powder-100);
  color: var(--navy-800);
  font-weight: 800;
  font-size: 0.86rem;
  margin-bottom: 12px;
}
.tech-step h3 { font-size: 1.02rem; margin: 0 0 6px; }
.tech-step p { margin: 0; color: var(--ink-soft); font-size: 0.91rem; line-height: 1.6; }

/* --- Encart de principe : une idée forte, mise en évidence -------------- */
.tech-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  background: var(--powder-100);
  border: 1px solid var(--powder-300);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  margin-top: 26px;
}
.tech-note__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--navy-800);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tech-note h3 { font-size: 1.05rem; margin: 0 0 5px; }
.tech-note p { margin: 0; color: var(--ink-soft); line-height: 1.65; }

/* --- Avantages : icône à gauche, texte à droite ------------------------- */
.tech-perks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
  gap: 18px;
}
.tech-perk {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.tech-perk:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tech-perk__ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--powder-100);
  color: var(--navy-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tech-perk h3 { font-size: 1.03rem; margin: 0 0 5px; }
.tech-perk p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.6; }

/* --- Rémunération : deux cartes, un seul chiffre chacune ----------------
   Le montant du technicien, et rien d'autre. Ni le prix payé par le client,
   ni la part de la plateforme : ce sont des informations d'exploitation, pas
   des arguments de recrutement. */
.tech-pay {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}
.tech-pay__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.tech-pay__mode {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
  margin: 0 0 14px;
}
.tech-pay__amount {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--navy-800);
  margin: 0;
}
.tech-pay__amount span { font-size: 1.15rem; margin-left: 4px; }
.tech-pay__unit { margin: 10px 0 0; color: var(--ink-soft); font-size: 0.9rem; }
.tech-pay__note {
  max-width: 720px;
  margin: 26px auto 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.87rem;
  line-height: 1.65;
}

/* --- Profils : pastilles, pas des cartes pleine largeur ----------------- */
.tech-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tech-chip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 650;
  font-size: 0.94rem;
  color: var(--navy-800);
  box-shadow: var(--shadow-sm);
}
.tech-chip--open { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }

/* --- Conditions : liste dense, cochée ----------------------------------- */
.tech-reqs { display: grid; gap: 14px; }
.tech-req {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.tech-req__tick {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--powder-100);
  color: var(--navy-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 0.85rem;
}
.tech-req h3 { font-size: 0.99rem; margin: 0 0 3px; }
.tech-req p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.55; }

/* --- Parcours : frise horizontale sur grand écran -----------------------
   Sept étapes doivent se saisir d'un coup d'oeil. Empilées en grandes cartes,
   elles occupaient plus d'un écran et se lisaient comme un formulaire. */
.tech-path {
  position: relative;
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(7, 1fr);

  /* La frise EST une liste ordonnée — sept étapes dans un ordre qui compte —
     et le balisage le dit. Mais son numéro est porté par la pastille, pas par
     le marqueur natif : sans cette remise à zéro, le navigateur affichait un
     « 1. » « 2. » … en plus des pastilles, et son padding de 40 px décalait
     toute la frise vers la droite. « role=list » est posé sur l'élément car
     Safari retire la sémantique de liste dès que « list-style » vaut none. */
  list-style: none;
  margin: 0;
  padding: 0;
}
.tech-path::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: linear-gradient(90deg, var(--powder-300), var(--navy-600), var(--powder-300));
}
.tech-path__item { position: relative; text-align: center; list-style: none; }
.tech-path__dot {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--navy-600);
  color: var(--navy-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.92rem;
}
.tech-path__item--key .tech-path__dot { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.tech-path__item h3 { font-size: 0.93rem; margin: 0 0 5px; line-height: 1.35; }
.tech-path__item p { margin: 0; font-size: 0.82rem; color: var(--ink-soft); line-height: 1.5; }

/* --- Certification : bandeau sombre, un seul chiffre -------------------- */
.tech-cert { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 46px; align-items: center; }
.tech-cert__score {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  text-align: center;
}
.tech-cert__score strong {
  display: block;
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--white);
}
.tech-cert__score span {
  display: block;
  margin-top: 10px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--powder-300);
  font-weight: 700;
}

/* --- Engagement : texte et image, à parts égales ------------------------ */
.tech-split { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.tech-split img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  display: block;
}

/* --- Appel final -------------------------------------------------------- */
.tech-final { text-align: center; max-width: 640px; margin: 0 auto; }
.tech-final .lead { margin: 14px auto 26px; }

/* --- Adaptations ------------------------------------------------------- */
@media (max-width: 1024px) {
  /* La frise passe sur deux rangs plutôt que de comprimer sept colonnes. */
  .tech-path { grid-template-columns: repeat(4, 1fr); gap: 26px 18px; }
  .tech-path::before { display: none; }
  .tech-cert { grid-template-columns: 1fr; gap: 30px; }
  .tech-split { grid-template-columns: 1fr; gap: 30px; }
  .tech-split--flip img { order: -1; }
}

@media (max-width: 720px) {
  .tech-path { grid-template-columns: repeat(2, 1fr); }
  .tech-pay__amount { font-size: 2.5rem; }
  .tech-note { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
}

@media (max-width: 460px) {
  /* En dessous, deux colonnes rendraient les libellés illisibles. */
  .tech-path { grid-template-columns: 1fr; gap: 18px; text-align: left; }
  .tech-path__item { display: grid; grid-template-columns: auto 1fr; gap: 14px; text-align: left; }
  .tech-path__dot { margin: 0; }
  .tech-chips { justify-content: flex-start; }
}

/* --- Typographie de la vitrine technicien -------------------------------
   « Professionnalisable » fait dix-neuf caractères. À 2,4 rem — le plancher
   de « h1.display » — le mot mesure environ 384 px, soit plus que les 335 px
   utiles d'un écran de 375. Il débordait donc de son conteneur et se faisait
   rogner par le « overflow: hidden » du hero : silencieusement, sans barre de
   défilement pour le signaler.

   Deux garde-fous, portés par « .tech-page » pour ne pas toucher aux titres
   du reste du site : une taille qui descend plus bas sur petit écran, et une
   coupure de mot en dernier recours. */
.tech-page .display { overflow-wrap: break-word; }

@media (max-width: 640px) {
  .tech-page h1.display { font-size: clamp(1.85rem, 7.4vw, 2.4rem); }
  .tech-page h2.display { font-size: clamp(1.45rem, 5.8vw, 1.9rem); }
}

/* --- Accueil : accompagnement facultatif et deux parcours ---------------
   La mention sur la carte tarifaire se distingue de la liste des
   caractéristiques : ce n'est pas une ligne de plus dans l'offre, c'est un
   service distinct, facultatif, et payant à part. Un filet et un fond léger
   suffisent à le dire sans alourdir la carte. */
.price-support {
  margin: 14px 0 18px;
  padding: 12px 14px;
  background: var(--powder-100);
  border: 1px solid var(--powder-300);
  border-radius: var(--radius);
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.price-support a {
  display: inline-block;
  margin-top: 3px;
  font-weight: 700;
  color: var(--navy-700);
}

/* Deux portes côte à côte : être accompagné, ou accompagner. */
.paths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.path-card { display: flex; flex-direction: column; }
.path-card h3 { font-size: 1.15rem; margin: 0 0 8px; }
.path-card p { margin: 0 0 12px; color: var(--ink-soft); line-height: 1.62; }
.path-card .path-price {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
}
/* Le bouton reste en bas, quelle que soit la longueur des deux textes. */
.path-card .btn { margin-top: auto; align-self: flex-start; }
.path-card--tech { border-color: var(--powder-400); }

/* --- Candidature : étape « Compétences » -------------------------------
   Cent seize métiers ne se cochent pas dans une liste à plat. Les secteurs
   commandent ce qui s'ouvre, et une recherche traverse tout le catalogue.
   Les styles ci-dessous ne portent que la présentation : le filtrage est
   dans la vue, et il reste facultatif. */

.comp-secteurs { display: flex; flex-wrap: wrap; gap: 8px; }

.comp-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
  font-size: 0.92rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.comp-chip:hover { border-color: var(--navy-600); }
/* L'état coché se voit sans dépendre de la seule case. */
.comp-chip:has(input:checked) {
  background: var(--powder-100);
  border-color: var(--navy-600);
  font-weight: 650;
}
/* Le focus clavier doit rester visible sur la pastille entière. */
.comp-chip:focus-within { outline: 2px solid var(--navy-600); outline-offset: 2px; }

.comp-barre { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.comp-barre .input { flex: 1 1 260px; max-width: 380px; }
.comp-compteur { font-size: 0.86rem; font-weight: 700; color: var(--navy-700); }

.comp-liste {
  display: grid;
  gap: 4px;
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
}

.comp-groupe + .comp-groupe { margin-top: 14px; }
.comp-groupe__titre {
  position: sticky;
  top: -10px;
  z-index: 1;
  margin: 0 0 6px;
  padding: 8px 0 6px;
  background: var(--white);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.comp-metier {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 7px 8px;
  border-radius: 8px;
}
.comp-metier:hover { background: var(--powder-100); }
.comp-metier:focus-within { background: var(--powder-100); }
/* Un métier retenu se distingue, y compris quand la recherche le laisse
   seul à l'écran : c'est ce qui évite de croire l'avoir perdu. */
.comp-metier:has(input:checked) { background: var(--powder-100); }

.comp-metier__nom {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 230px;
  flex: 1 1 230px;
  cursor: pointer;
}
.comp-metier__niveau { max-width: 170px; }

.comp-invite, .comp-vide { margin: 8px 0 0; }

@media (max-width: 560px) {
  .comp-liste { max-height: 360px; padding: 8px; }
  .comp-metier { gap: 8px; }
  .comp-metier__nom { min-width: 100%; flex-basis: 100%; }
  .comp-metier__niveau { max-width: 100%; width: 100%; }
  .comp-barre .input { max-width: 100%; }
}
