/* /assets/styles.css - Swole @Home
   Direction artistique figee dans DESIGN.md, issue du cahier des charges de septembre 2026.
   Toute couleur ou police ajoutee ici doit passer la checklist de anti-vibe-coding.md. */

/* ===== Polices self-hebergees, aucune requete tierce ===== */
@import url('/assets/fonts/fonts.css');

/* ===== Tokens ===== */
:root {
  /* --- Couleurs de marque --- */
  --deep: #1F4E5F;        /* principale, confiance */
  --coral: #A8412C;       /* accent lisible : boutons, liens, tout ce qui porte du texte */
  --coral-flat: #C8553D;  /* corail de marque, aplats decoratifs UNIQUEMENT, jamais sous du texte */
  --apricot: #F6D5B8;     /* accent doux */

  /* --- Fonds et texte --- */
  --bg: #FBF7F2;             /* creme */
  --bg-alt: #E8F1F2;         /* bleu-vert tres clair */
  --surface: #FFFFFF;
  --surface-elevated: #FFFFFF;
  --ink: #2B2B2B;            /* gris anthracite */
  --ink-light: #44443F;
  --muted: #5A5A56;
  --muted-light: #75756E;
  --line: rgba(43, 43, 43, 0.12);

  /* --- Gamme bleu-vert --- */
  --primary-900: #12303B;
  --primary-800: #173D4B;
  --primary-700: #1B4553;
  --primary-600: #1F4E5F;
  --primary-500: #2C6274;
  --primary-400: #4A8496;
  --primary-300: #8FB8C2;
  --primary-200: #C3DBE0;
  --primary-100: #E8F1F2;
  --primary-50:  #F3F8F9;

  /* --- Gamme corail. Le 400 est un aplat, il ne porte jamais de texte. --- */
  --accent-600: #8F3624;
  --accent-500: #A8412C;
  --accent-400: #C8553D;

  /* --- Etats. Contraste verifie sur creme. --- */
  --success: #1F6B4D;
  --warning: #8A5A12;
  --error:   #A02020;

  /* --- Aplats. Aucun degrade : interdit par DESIGN.md.
         Ces quatre noms restent pour les regles heritees, ils rendent une couleur pleine. --- */
  --gradient-primary: #1F4E5F;
  --gradient-hero: #1F4E5F;
  --gradient-card: #FFFFFF;
  --gradient-subtle: transparent;

  /* --- Une seule ombre. Les variantes pointent toutes dessus. --- */
  --shadow: 0 2px 12px rgba(43, 43, 43, 0.10);
  --shadow-xs: 0 1px 2px rgba(43, 43, 43, 0.06);
  --shadow-sm: var(--shadow);
  --shadow-md: var(--shadow);
  --shadow-lg: var(--shadow);
  --shadow-xl: var(--shadow);
  --shadow-2xl: var(--shadow);
  --shadow-colored: var(--shadow);

  /* --- Rayons : 8px cartes, 4px boutons --- */
  --radius: 8px;
  --radius-btn: 4px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --radius-xl: 8px;
  --radius-2xl: 8px;
  --radius-full: 9999px;

  /* --- Espacement : 4, 8, 16, 24, 40, 64. Les pas intermediaires restent des multiples de 4. --- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* --- Typographie --- */
  --font-body: 'Atkinson Hyperlegible', 'Segoe UI', system-ui, sans-serif;
  --font-heading: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  --ff-body: var(--font-body);
  --ff-heading: var(--font-heading);

  /* --- Motion : 150ms, un seul reveal au chargement --- */
  --t: 150ms;

  /* --- Z-index --- */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  /* La bande inclinee depasse volontairement : on coupe, sans bloquer le
     defilement vertical comme le ferait overflow: hidden. */
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  /* Colonne verticale : le pied de page tient le bas meme sur une page courte. */
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  /* clip et non hidden : hidden cree un conteneur de defilement qui neutralise
     tous les position: sticky descendants. */
  overflow-x: clip;
}

main { flex: 1 0 auto; }

.colophon { flex-shrink: 0; }

@media (min-width: 900px) {
  body { font-size: 18px; }
}

/* Motion reduite : plus aucune animation ni defilement anime. WCAG 2.3.3. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Saut vers le contenu, premier element focusable de chaque page. */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: var(--z-tooltip);
  padding: var(--space-3) var(--space-4);
  background: var(--deep);
  color: #FFFFFF;
  border-radius: 0 0 var(--radius) 0;
  text-decoration: none;
  /* Masque sans sortir du document : un left negatif elargit la page. */
  transform: translateY(-120%);
  transition: transform var(--t) ease;
}

.skip-link:focus {
  transform: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  transition: color var(--t) ease;
}

a:hover {
  color: var(--accent-600);
}

/* Les liens de navigation et les boutons portent deja leur affordance, pas de soulignement. */
.chip, .btn, .brand, .colophon-links a, .nav a {
  text-decoration: none;
}

/* Anneau de focus visible sur fond clair comme sur fond bleu-vert. WCAG 2.4.7. */
:focus-visible {
  outline: 3px solid var(--deep);
  outline-offset: 2px;
  border-radius: var(--radius-btn);
}[data-surface="deep"] :focus-visible,
.site-header .rail :focus-visible{
  outline-color: #FFFFFF;
}

/* ===== Layout Containers ===== */
.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container {
  max-width: 1280px;
  margin-inline: auto;
  width: 100%;
  padding-inline: var(--space-4);
}

/* ===== Header =====
   Reglette d'information + manchette. Volontairement different du gabarit
   logo-gauche / menu-centre / bouton-droite : voir DESIGN.md section 3. */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

/* --- Reglette : ce que le visiteur doit avoir sous les yeux en permanence --- */
.rail {
  background: var(--deep);
  color: #FFFFFF;
  font-size: 0.875rem;
}

.rail-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2) var(--space-6);
  padding-block: var(--space-2);
}

.rail-item {
  margin: 0;
  color: #FFFFFF;
}

a.rail-item {
  text-decoration: none;
}

/* Tout lien pose sur la reglette bleu-vert passe en blanc : le corail
   des liens du site y donnait un contraste de 1,49, tres loin des 4,5
   exiges en AA. En blanc, il monte a 9,08. */
.rail a {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.rail a:hover { color: var(--apricot); }

a.rail-item:hover strong {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.rail-label {
  color: #C3DBE0;
  margin-right: var(--space-1);
}

.rail-zone {
  margin-inline-start: auto;
}

@media (max-width: 760px) {
  .rail-hours { display: none; }
  .rail-zone  { margin-inline-start: 0; }
}

/* --- Manchette --- */
.masthead {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding-block: var(--space-3);
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-header .brand img {
  height: 48px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: wrap;
}

.masthead-end {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-inline-start: auto;
}

.site-header .chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  border: 0;
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  transition: color var(--t) ease, background-color var(--t) ease;
}

.site-header .chip:hover {
  color: var(--deep);
  background: var(--bg-alt);
}

/* Filet d'etat actif pose AU-DESSUS du lien, jamais un soulignement. */
.site-header .main-nav .chip[aria-current="page"] {
  color: var(--deep);
}

.site-header .main-nav .chip[aria-current="page"]::before {
  content: '';
  position: absolute;
  inset-inline: var(--space-2);
  top: -2px;
  height: 3px;
  background: var(--coral);
}

.site-header .chip-primary {
  background: var(--coral);
  color: #FFFFFF;
  font-weight: 700;
  padding-inline: var(--space-4);
}

.site-header .chip-primary:hover {
  background: var(--accent-600);
  color: #FFFFFF;
}

.site-header .chip--ghost {
  border: 1px solid var(--line);
}

/* --- Bouton menu mobile --- */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  transition: transform var(--t) ease, opacity var(--t) ease;
}

.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .masthead {
    flex-wrap: wrap;
    gap: var(--space-3);
  }
  .mobile-menu-toggle { display: flex; order: 3; }
  .masthead-end { order: 2; }
  .main-nav {
    order: 4;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: var(--space-3);
  }
  .site-header.mobile-menu-open .main-nav { display: flex; }
  .main-nav .chip {
    padding-block: var(--space-3);
    border-bottom: 1px solid var(--line);
  }
  .site-header .main-nav .chip[aria-current="page"]::before {
    inset-inline: auto 0;
    inset-block: 0;
    top: auto;
    width: 3px;
    height: auto;
  }
}

/* --- Selecteur de langue --- */
.lang-switch { position: relative; display: flex; align-items: center; }

.lang-btn {
  gap: var(--space-1);
  cursor: pointer;
  background: transparent;
}

.lang-btn .chev { transition: transform var(--t) ease; }
.lang-switch[data-open="1"] .lang-btn .chev { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 120px;
  margin: 0;
  padding: var(--space-1);
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lang-menu[hidden] { display: none; }

.lang-menu a {
  display: block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-btn);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.lang-menu a:hover,
.lang-menu a:focus {
  background: var(--bg-alt);
  color: var(--deep);
}

.hero .wrap {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  z-index: 2;
}

@keyframes reveal {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ===== Cards - Premium ===== */
/* Hierarchie par le vide, puis par un fond plus clair. Pas de bordure grise
   systematique, pas de barre decorative, pas de rebond au survol : DESIGN.md. */
.card {
  background: var(--surface);
  border: 0;
  border-radius: var(--radius);
  padding: var(--space-6);
  box-shadow: var(--shadow);
}

.card.form-card {
  background: var(--surface);
}

.card.hero-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

/* ===== Sections ===== */
.section {
  padding: var(--space-16) 0;
  position: relative;
}

#demande {
  scroll-margin-top: 80px;
}

.section-title {
  margin: 0 0 var(--space-6) 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
  position: relative;
  padding-bottom: var(--space-3);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}

@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ===== Buttons - Premium ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--t) ease, color var(--t) ease, border-color var(--t) ease;
}

/* Pas de rebond ni de mise a l'echelle au survol : le bouton repond, il ne claque pas. */
.btn-primary {
  background: var(--deep);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--primary-800);
  color: #FFFFFF;
}

.btn-soft {
  color: var(--primary-700);
  background: var(--primary-50);
  border-color: var(--primary-200);
}

.btn-soft:hover {
  background: var(--primary-100);
  border-color: var(--primary-300);
}

.btn-lg {
  padding: 1.125rem 2.25rem;
  font-size: 1.125rem;
}

@media (max-width: 640px) {
  .btn-lg {
    padding: 1rem 1.75rem;
    font-size: 1rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
  }

  .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }
}

/* ===== Forms - Clean & Modern ===== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

/* Textareas should span full width */
.form-grid label:has(textarea) {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  input,
  select,
  textarea {
    font-size: 16px; /* Empêche le zoom automatique sur iOS */
  }

  label {
    font-size: 0.875rem;
  }
}

label {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-light);
}

input,
select,
textarea {
  width: 100%;
  max-width: 100%;
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid rgba(15, 23, 42, 0.15);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s ease;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--primary-300);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(31, 78, 95, 0.18);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

fieldset {
  border: 1.5px dashed rgba(15, 23, 42, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: var(--space-6) 0;
}

legend {
  padding: 0 var(--space-3);
  color: var(--ink-light);
  font-weight: 700;
  font-size: 1rem;
}

.actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .actions {
    flex-direction: column;
    width: 100%;
  }

  .actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.rgpd {
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: var(--space-4);
  line-height: 1.6;
}

/* ===== Switch - Modern ===== */
.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 30px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch span {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--muted-light);
  border-radius: var(--radius-full);
  transition: 0.3s ease;
}

.switch span:before {
  content: '';
  position: absolute;
  height: 24px;
  width: 24px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.switch input:checked + span {
  background: var(--primary-600);
}

.switch input:checked + span:before {
  transform: translateX(22px);
}

.info-card .steps {
  list-style: decimal;
  padding-left: var(--space-8);
  margin: var(--space-4) 0;
}

.info-card .steps li {
  margin-bottom: var(--space-4);
  line-height: 1.7;
  color: var(--ink-light);
}

.info-card .steps li + li {
  margin-top: var(--space-4);
}

.info-card .steps strong {
  color: var(--ink);
  font-weight: 700;
  display: block;
  margin-bottom: var(--space-2);
}

.info-card .steps p {
  margin: var(--space-2) 0 0;
  color: var(--muted);
}

/* ===== Colophon =====
   L'essentiel enonce en grand, puis les liens sur une ligne courante separee par des
   points medians, puis la ligne legale. Pas d'annuaire en colonnes : DESIGN.md section 3. */
.colophon {
  margin-top: var(--space-16);
  padding-block: var(--space-12) var(--space-8);
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}

.colophon-lede {
  max-width: 46rem;
}

.colophon-claim {
  margin: 0;
  font-family: var(--ff-heading);
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--deep);
}

.colophon-reach {
  margin: var(--space-4) 0 0;
  font-size: 1.05rem;
}

.colophon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-6) 0 0;
}

.colophon-links {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
  line-height: 2;
}

.colophon-links a {
  color: var(--ink);
  text-decoration: none;
}

.colophon-links a:hover {
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.colophon-legal {
  margin: var(--space-4) 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.9;
}

.colophon-legal a {
  color: var(--muted);
}

.colophon-legal a:hover {
  color: var(--coral);
}

.colophon .sep {
  color: var(--muted-light);
}

/* ===== Responsive - Mobile First ===== */
@media (max-width: 768px) {
  /* Show hamburger */
  .mobile-menu-toggle {
    display: flex;
  }

  .site-header .container {
    grid-template-columns: auto 1fr auto;
    position: relative;
  }

  /* Mobile navigation */
  .main-nav {
    position: absolute;
    top: 100%;
    left: var(--space-2);
    right: var(--space-2);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    flex-direction: column;
    padding: 0;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0);
    transition: max-height 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.35s ease,
                box-shadow 0.35s ease,
                padding 0.35s ease;
  }

  .site-header.mobile-menu-open .main-nav {
    max-height: 600px;
    opacity: 1;
    padding: var(--space-6) var(--space-4) var(--space-8) var(--space-4);
    box-shadow: 0 12px 48px rgba(15, 23, 42, 0.12);
    display: flex;
  }

  .site-header.mobile-menu-open .chip {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    animation: slideInMenu 0.4s ease forwards;
    opacity: 0;
  }

  .site-header.mobile-menu-open .chip:nth-child(1) { animation-delay: 0.05s; }
  .site-header.mobile-menu-open .chip:nth-child(2) { animation-delay: 0.1s; }
  .site-header.mobile-menu-open .chip:nth-child(3) { animation-delay: 0.15s; }
  .site-header.mobile-menu-open .chip:nth-child(4) { animation-delay: 0.2s; }
  .site-header.mobile-menu-open .chip:nth-child(5) { animation-delay: 0.25s; }

  @keyframes slideInMenu {
    from {
      opacity: 0;
      transform: translateX(-20px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .site-header.mobile-menu-open .chip:hover {
    transform: translateX(4px);
  }
}

@media (max-width: 640px) {
  :root {
    --space-16: 48px;
    --space-20: 64px;
    --space-12: 40px;
    --space-10: 32px;
  }

  .site-header .container {
    padding-block: var(--space-2);
    min-height: 64px;
  }

  .site-header .brand img {
    height: 64px;
    max-height: 64px;
  }

  .mobile-menu-toggle {
    width: 44px;
    height: 44px;
  }

  .wrap {
    padding-inline: var(--space-4);
  }

  .container {
    padding-inline: var(--space-3);
  }

  .card {
    padding: var(--space-5);
    border-radius: var(--radius-lg);
  }

  .section {
    padding: var(--space-10) 0;
  }

  .hero {
    padding: var(--space-12) 0 var(--space-10);
  }

  .hero .wrap {
    min-height: 50vh;
  }

  .hero h1 {
    margin-bottom: var(--space-4);
  }

  .hero .lead {
    margin-bottom: var(--space-6);
    font-size: 1.125rem;
  }

  .cta-inner {
    padding-block: var(--space-8);
    flex-direction: column;
    align-items: flex-start;
  }

  .form-grid {
    gap: var(--space-3);
  }

  .section-title {
    font-size: 1.75rem;
    margin-bottom: var(--space-4);
  }

  .section-title-center {
    font-size: 1.75rem;
    margin-bottom: var(--space-4);
  }

  .section-subtitle {
    margin-bottom: var(--space-6);
  }

  fieldset {
    padding: var(--space-4);
    margin: var(--space-4) 0;
  }

  .hero-new {
    padding: var(--space-10) 0;
  }

  .separator-section-mauve {
    padding: var(--space-10) 0;
  }
}

/* Extra petits écrans */
@media (max-width: 480px) {
  :root {
    --space-8: 24px;
    --space-10: 28px;
    --space-12: 32px;
  }

  .wrap {
    padding-inline: var(--space-3);
  }

  .card {
    padding: var(--space-4);
  }

  .section {
    padding: var(--space-8) 0;
  }

  h1, .hero-heading {
    font-size: 1.875rem !important;
  }

  h2, .section-title, .section-title-center {
    font-size: 1.5rem !important;
  }

  .step-icon,
  .profil-icon {
    width: 64px;
    height: 64px;
  }

  .step-icon svg,
  .profil-icon svg {
    width: 32px;
    height: 32px;
  }

  .flip-card {
    height: 380px;
  }

  .flip-card-front,
  .flip-card-back {
    padding: var(--space-6);
  }
}

/* ===== Utility Classes ===== */
.muted {
  color: var(--muted);
}

.small {
  font-size: 0.875rem;
}

/* Chips génériques */
.chip {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1.5px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: all 0.2s ease;
}

@media (max-width: 768px) {
  .avail-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .avail-head {
    display: none;
  }

  .avail-day span {
    width: 100%;
  }

  .avail-check {
    justify-content: flex-start !important;
  }
}

@media (max-width: 480px) {
  .avail-grid input[type="date"],
  .avail-grid input[type="time"] {
    width: 100%;
  }
}

/* ===== Admin/Tables ===== */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: var(--space-3) var(--space-2);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  text-align: left;
}

.table th {
  font-weight: 700;
  color: var(--ink-light);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Couleur pleine : un chiffre en degrade se lit mal et c'est un tell. */
.kpi {
  font-family: var(--ff-heading);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--deep);
}

.kpi-label {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
}

/* ===== Alerts & Notifications ===== */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  margin: var(--space-4) 0;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-weight: 500;
  line-height: 1.6;
  border: 1.5px solid transparent;
}

.alert-success {
  background: #E4F1EA;
  border-color: #10B981;
  color: #065F46;
}

.alert-error {
  background: #F7E4E2;
  border-color: #EF4444;
  color: #991B1B;
}

.alert-warning {
  background: #F8EEDA;
  border-color: #F59E0B;
  color: #92400E;
}

.alert-info {
  background: var(--bg-alt);
  border-color: #3B82F6;
  color: #1E40AF;
}

/* Required field indicator */
.req {
  color: var(--error);
  font-weight: 700;
}

/* ===== REFONTE SWOLE@HOME - Nouveaux styles ===== */

/* Hero nouveau - Texte gauche, Image droite */
.hero-new {
  background: var(--bg);
  padding: var(--space-16) 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

@media (max-width: 900px) {
  .hero-new-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .hero-new-image {
    order: -1;
  }
}

/* Option : taille un peu plus grande pour la punchline */
@media (min-width: 900px){
  .hero-heading .hero-line2{ font-size: 1.06em; }
}

/* Responsive pour l'image hero */
@media (max-width: 900px) {
  .hero-img {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .hero-img {
    border: 4px solid var(--primary-600);
  }
}

@media (max-width: 1024px) {
  .steps-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .steps-cards {
    grid-template-columns: 1fr;
  }
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

@media (max-width: 1024px) {
  .offers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .offers-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .stars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .stars-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-devenir {
    min-height: clamp(350px, 45vh, 500px);
  }

  .hero-devenir-content {
    padding: var(--space-6);
  }
}

@media (max-width: 1024px) {
  .profils-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .profils-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .journey-step {
    grid-template-columns: 60px 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
  }

  .journey-step:not(:last-child)::after {
    left: 30px;
  }

  .journey-number {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .journey-icon {
    width: 40px;
    height: 40px;
  }

  .journey-icon svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .journey-step {
    grid-template-columns: 1fr;
    gap: var(--space-3);
    text-align: center;
  }

  .journey-step:not(:last-child)::after {
    display: none;
  }

  .journey-number {
    margin: 0 auto var(--space-3);
  }

  .journey-content {
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
  }
}

.card-title {
  margin: 0 0 var(--space-4) 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-700);
}/* Logo sizes are defined above in the header section */

/* H1: deux lignes fixes{
  line-height: 1.05;
  margin: 0 0 var(--space-6) 0;
}/* petit boost visuel (optionnel{
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}

/* fallback mobile: autorise le retour à la ligne si trop étroit */
@media (max-width: 720px){
  .hero-heading .hero-line1,
  .hero-heading .hero-line2{
    white-space: normal;
  }
}

/* ============================================================
   Composants de page, refonte septembre 2026.
   Hierarchie par le vide et par un fond legerement plus clair.
   Aucune bordure grise systematique sur les cartes : DESIGN.md.
   ============================================================ */

.page-head {
  padding-block: var(--space-12) var(--space-8);
}

.page-head h1 {
  font-family: var(--ff-heading);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--deep);
  margin: 0;
}

.lede {
  max-width: 46rem;
  margin: var(--space-4) 0 0;
  font-size: 1.15rem;
  line-height: 1.6;
}

.prose {
  max-width: 46rem;
}

.prose h2 {
  font-family: var(--ff-heading);
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: var(--deep);
  margin: var(--space-10) 0 var(--space-3);
}

.prose h3 {
  font-family: var(--ff-heading);
  font-size: 1.125rem;
  font-weight: 700;
  margin: var(--space-6) 0 var(--space-2);
}

.prose p,
.prose li {
  margin: 0 0 var(--space-3);
}

.prose ul,
.prose ol {
  margin: 0 0 var(--space-4);
  padding-left: var(--space-5);
}

.prose > :first-child {
  margin-top: 0;
}

/* --- Liste typographique avec filet. Remplace les listes a icone decorative. --- */
.rule-list {
  list-style: none;
  margin: var(--space-6) 0 0;
  padding: 0;
  max-width: 46rem;
}

.rule-list > li {
  padding-block: var(--space-4);
  border-top: 1px solid var(--line);
}

.rule-list > li:last-child {
  border-bottom: 1px solid var(--line);
}

.rule-list .rl-term {
  display: block;
  font-family: var(--ff-heading);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--deep);
  margin-bottom: var(--space-1);
}

.rule-list .rl-desc {
  margin: 0;
  color: var(--ink);
}

/* --- Trois garanties. Seul endroit du site ou une icone accompagne une ligne. --- */
.guarantees {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.guarantee {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.guarantee svg {
  flex: 0 0 auto;
  color: var(--coral);
}

.guarantee h3 {
  font-family: var(--ff-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 var(--space-1);
  color: var(--deep);
}

.guarantee p {
  margin: 0;
  color: var(--muted);
}

/* --- Frise des etapes --- */
.steps {
  counter-reset: step;
  list-style: none;
  margin: var(--space-8) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.steps > li {
  counter-increment: step;
  padding-top: var(--space-6);
  border-top: 3px solid var(--apricot);
}

.steps > li::before {
  content: counter(step);
  display: block;
  font-family: var(--ff-heading);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--coral);
  margin-bottom: var(--space-2);
}

.steps h3 {
  font-family: var(--ff-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 var(--space-1);
  color: var(--deep);
}

.steps p {
  margin: 0;
  color: var(--muted);
}

/* --- Encadre --- */
.callout {
  margin: var(--space-8) 0;
  padding: var(--space-6);
  background: var(--apricot);
  border-radius: var(--radius);
  max-width: 46rem;
}

.callout p:last-child { margin-bottom: 0; }

.callout--quiet {
  background: var(--bg-alt);
}

/* --- Information non encore confirmee, jamais un faux chiffre --- */
.pending {
  display: inline-block;
  padding: 2px var(--space-2);
  background: var(--bg-alt);
  border-radius: var(--radius-btn);
  color: var(--muted);
  font-size: 0.9375rem;
}

/* --- Tableau simple --- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-6) 0;
}

.data-table caption {
  text-align: left;
  color: var(--muted);
  padding-bottom: var(--space-2);
}

.data-table th,
.data-table td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table thead th {
  background: var(--bg-alt);
  color: var(--deep);
  font-family: var(--ff-heading);
}

/* --- Accordeon natif, accessible sans JavaScript --- */
.faq {
  max-width: 46rem;
  margin-top: var(--space-6);
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-of-type {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  padding: var(--space-4) 0;
  font-family: var(--ff-heading);
  font-weight: 700;
  color: var(--deep);
  cursor: pointer;
}

.faq summary:hover {
  color: var(--coral);
}

.faq details > :not(summary) {
  margin: 0 0 var(--space-4);
  color: var(--ink);
}

/* --- Formulaires --- */
.form-card {
  max-width: 46rem;
  padding: var(--space-6);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: var(--space-5);
}

.field > label,
.fieldset-legend {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 700;
  color: var(--deep);
}

.field .hint {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--muted);
  font-size: 0.9375rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="time"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  padding: var(--space-3);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--muted);
  border-radius: var(--radius-btn);
}

.field .req {
  color: var(--coral);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  border: 0;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--bg-alt);
  border-radius: var(--radius-btn);
  font-weight: 400;
  cursor: pointer;
}

.choice input {
  margin-top: 0.2em;
}

.form-errors {
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  background: #F7E4E2;
  border-left: 4px solid var(--error);
  border-radius: var(--radius-btn);
}

.form-errors h2 {
  margin: 0 0 var(--space-2);
  font-size: 1.0625rem;
  color: var(--error);
}

.form-errors ul {
  margin: 0;
  padding-left: var(--space-5);
}

.form-ok {
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  background: #E4F1EA;
  border-left: 4px solid var(--success);
  border-radius: var(--radius-btn);
}

.form-alt {
  margin-top: var(--space-4);
  color: var(--muted);
}

/* Piege a robots, invisible pour les humains et pour les lecteurs d'ecran. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ============================================================
   Tableau de bord de l'equipe.
   Hierarchie : ce qui attend une action, puis le rythme, puis les arrivees.
   Blocs separes par le vide et par un fond blanc sur le creme, jamais par
   une bordure grise systematique.
   ============================================================ */

.dash {
  padding-bottom: var(--space-16);
}

.dash-head {
  padding-block: var(--space-10) var(--space-6);
}

.dash-head h1 {
  font-family: var(--ff-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--deep);
  margin: 0;
}

.dash-period {
  margin: var(--space-2) 0 0;
  color: var(--muted);
}

/* --- Le rythme de la semaine --- */
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.kpi-tile {
  display: block;
  padding: var(--space-5) var(--space-6);
  background: var(--deep);
  border-radius: var(--radius);
  color: #FFFFFF;
  text-decoration: none;
}

.kpi-tile:hover {
  background: var(--primary-800);
  color: #FFFFFF;
}

.kpi-num {
  display: block;
  font-family: var(--ff-heading);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.kpi-lab {
  display: block;
  margin-top: var(--space-1);
  color: #C3DBE0;
}

.kpi-var {
  display: inline-block;
  margin-top: var(--space-3);
  font-size: 0.875rem;
  color: #C3DBE0;
}

.kpi-var[data-sens="hausse"] { color: #B9E3CF; }
.kpi-var[data-sens="baisse"] { color: #F6D5B8; }

/* --- Trame des blocs --- */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-4);
  align-items: start;
}

.dash-block {
  padding: var(--space-6);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.dash-block--wide {
  grid-column: 1 / -1;
}

.dash-block h2 {
  margin: 0 0 var(--space-4);
  font-family: var(--ff-heading);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--deep);
}

.dash-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.dash-block-head h2 { margin: 0; }

.dash-clear {
  margin: 0;
  color: var(--muted);
}

/* --- Ce qui attend une action --- */
.todo {
  list-style: none;
  margin: 0;
  padding: 0;
}

.todo li + li {
  border-top: 1px solid var(--line);
}

.todo-item {
  display: grid;
  grid-template-columns: 2.75rem 1fr auto;
  align-items: baseline;
  gap: var(--space-3);
  padding-block: var(--space-3);
  color: var(--ink);
  text-decoration: none;
}

.todo-item:hover {
  color: var(--coral);
}

.todo-n {
  font-family: var(--ff-heading);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--coral);
  font-variant-numeric: tabular-nums;
}

.todo-item[data-genre="argent"] .todo-n { color: var(--deep); }

.todo-txt { line-height: 1.4; }

.todo-sum {
  font-family: var(--ff-heading);
  font-weight: 700;
  color: var(--deep);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* --- Histogramme, construit a partir des donnees --- */
.chart {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
  height: 160px;
  margin-bottom: var(--space-3);
}

.chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  min-width: 0;
}

.chart-val {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-bottom: 2px;
}

.chart-bar {
  width: 100%;
  min-height: 3px;
  background: var(--primary-300);
  border-radius: 2px 2px 0 0;
}

/* La semaine en cours se distingue : c'est la seule qui n'est pas terminee. */
.chart-col:last-child .chart-bar { background: var(--coral); }

.chart-lab {
  margin-top: var(--space-2);
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

.chart-note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* --- Barres horizontales de repartition --- */
.bars {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(6rem, 10rem) 1fr 2.5rem;
  align-items: center;
  gap: var(--space-3);
  padding-block: var(--space-2);
}

.bar-lab {
  font-size: 0.9375rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  height: 10px;
  background: var(--bg-alt);
  border-radius: 5px;
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  background: var(--deep);
}

.bar-val {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* --- Details de tableau --- */
.dash .data-table { margin: 0; }
.dash .data-table td,
.dash .data-table th { padding: var(--space-2) var(--space-3); }
.nowrap { white-space: nowrap; }
.muted  { color: var(--muted-light); }

@media (max-width: 560px) {
  .todo-item {
    grid-template-columns: 2.25rem 1fr;
  }
  .todo-sum {
    grid-column: 2;
  }
  .chart { height: 120px; }
  .chart-lab { font-size: 0.6875rem; }
}

/* --- Avertissement technique, par exemple une migration en attente --- */
.dash-warning {
  margin-bottom: var(--space-6);
  padding: var(--space-5) var(--space-6);
  background: var(--apricot);
  border-radius: var(--radius);
}

.dash-warning h2 {
  margin: 0 0 var(--space-2);
  font-family: var(--ff-heading);
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--ink);
}

.dash-warning p {
  margin: 0 0 var(--space-4);
  max-width: 52rem;
}

/* ============================================================
   Pages de gestion : demandes, candidatures, contrats, defraiements.
   Meme grammaire que le tableau de bord : blocs blancs sur le creme,
   hierarchie par le vide, aucune bordure grise systematique.
   ============================================================ */

.adm { padding-bottom: var(--space-16); }

.adm-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-10) var(--space-5);
}

.adm-head h1 {
  margin: 0;
  font-family: var(--ff-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: var(--deep);
}

.adm-sub {
  margin: var(--space-1) 0 0;
  color: var(--muted);
}

.adm-search {
  display: flex;
  gap: var(--space-2);
}

.adm-search input[type="search"] {
  min-width: 16rem;
  padding: var(--space-2) var(--space-3);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--muted);
  border-radius: var(--radius-btn);
}

/* --- Onglets de filtre. Filet actif au-dessus, comme la navigation du site. --- */
.adm-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid var(--line);
}

.adm-tabs a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.adm-tabs a:hover { color: var(--deep); background: var(--bg-alt); }

.adm-tabs a[aria-current="true"] { color: var(--deep); }

.adm-tabs a[aria-current="true"]::before {
  content: '';
  position: absolute;
  inset-inline: var(--space-2);
  top: 0;
  height: 3px;
  background: var(--coral);
}

.adm-tab-n {
  font-variant-numeric: tabular-nums;
  font-size: 0.875rem;
  color: var(--muted);
}

/* --- Bloc generique --- */
.adm-panel,
.demande,
.appli {
  padding: var(--space-6);
  margin-bottom: var(--space-4);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.adm-panel h2,
.demande-head h2,
.appli-head h2 {
  margin: 0;
  font-family: var(--ff-heading);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--deep);
}

.adm-panel h2 { margin-bottom: var(--space-4); }

/* --- Creneaux a venir --- */
.creneaux {
  list-style: none;
  margin: 0;
  padding: 0;
}

.creneaux li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2) var(--space-4);
  padding-block: var(--space-2);
  border-top: 1px solid var(--line);
}

.creneaux li:first-child { border-top: 0; }

.cr-date {
  min-width: 6.5rem;
  font-family: var(--ff-heading);
  font-weight: 700;
  color: var(--deep);
  text-transform: capitalize;
}

.cr-heure { min-width: 8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.cr-parent { font-weight: 600; }
.cr-tel { margin-inline-start: auto; font-variant-numeric: tabular-nums; }

/* --- Une demande --- */
.demande-head,
.appli-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.demande-meta,
.appli-meta {
  margin: var(--space-1) 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.demande-contact {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
}

.demande-contact .btn { padding: var(--space-2) var(--space-4); font-size: 0.9375rem; }

.demande-prefs {
  margin: var(--space-4) 0 0;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-alt);
  border-radius: var(--radius-btn);
}

.demande-corps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-5);
}

.demande-corps h3,
.demande-besoin h3,
.appli-texte h3 {
  margin: 0 0 var(--space-2);
  font-family: var(--ff-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--muted);
}

.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding-block: 2px; }

.demande-besoin {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

.demande-besoin p { margin: 0; }

/* --- Une candidature --- */
.statut {
  align-self: flex-start;
  padding: 4px var(--space-3);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
}

.statut[data-s="new"]       { background: var(--apricot);  color: #6B3A10; }
.statut[data-s="shortlist"] { background: var(--bg-alt);   color: var(--deep); }
.statut[data-s="accepted"]  { background: #E4F1EA;         color: #1F6B4D; }
.statut[data-s="rejected"]  { background: #F7E4E2;         color: #8F3624; }
.statut[data-s="archived"]  { background: var(--bg);       color: var(--muted); }

.appli-cles,
.appli-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-3) var(--space-6);
  margin: var(--space-4) 0 0;
}

.appli-cles dt,
.appli-detail dt {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted);
}

.appli-cles dd,
.appli-detail dd { margin: 2px 0 0; }

.appli-plus { margin-top: var(--space-4); }

.appli-plus summary {
  padding-block: var(--space-2);
  font-weight: 700;
  color: var(--deep);
  cursor: pointer;
}

.appli-texte { margin-top: var(--space-4); }
.appli-texte p { margin: 0; }

.appli-liens {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-5) 0 0;
}

.appli-actions {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

.appli-actions input[type="text"] {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  font-family: inherit;
  font-size: 0.9375rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: var(--bg);
}

.appli-boutons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.btn-statut {
  padding: var(--space-2) var(--space-4);
  font-family: var(--ff-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  border: 2px solid var(--line);
  border-radius: var(--radius-btn);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background-color var(--t) ease, border-color var(--t) ease, color var(--t) ease;
}

.btn-statut:hover { border-color: var(--deep); color: var(--deep); }
.btn-statut[data-s="accepted"]:hover { background: #1F6B4D; border-color: #1F6B4D; color: #FFFFFF; }
.btn-statut[data-s="rejected"]:hover { background: var(--coral); border-color: var(--coral); color: #FFFFFF; }

.btn-statut:disabled {
  opacity: 1;
  background: var(--bg-alt);
  border-color: var(--bg-alt);
  color: var(--muted);
  cursor: default;
}

.appli-trace {
  margin: var(--space-3) 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Visible uniquement par les lecteurs d'ecran. */
.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;
}

.appli-id { min-width: 0; }

/* --- Complements de gestion --- */
.adm-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

/* Les tableaux larges defilent dans leur bloc, jamais la page. */
.table-scroll { overflow-x: auto; }
.table-scroll .data-table { min-width: 44rem; }

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8125rem; }
.num  { text-align: right; font-variant-numeric: tabular-nums; }

.adm-row-actions a { margin-left: var(--space-3); }
.adm-row-actions a:first-child { margin-left: 0; }

.statut[data-s="draft"] { background: var(--bg-alt); color: var(--muted); }
.statut[data-s="sent"]  { background: var(--apricot); color: #6B3A10; }
.statut[data-s="paid"]  { background: #E4F1EA; color: #1F6B4D; }

/* ============================================================
   Site public, structure de septembre 2026.

   Parti pris : ce n'est pas une page de vente, c'est un guichet. Pas de bandeau
   sombre pleine largeur, pas de bandes alternees, pas de bandeau d'appel a
   l'action en fin de page. Un fil de lecture unique, large de 40 caracteres,
   et deux sorties toujours atteignables : le formulaire ou le telephone.
   ============================================================ */

/* --- Ouverture : texte a gauche, vraie image a droite --- */
.ouverture {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8);
  padding-block: var(--space-10) var(--space-12);
}

@media (min-width: 900px) {
  .ouverture {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    align-items: center;
    gap: var(--space-16);
  }
}

.ouverture h1 {
  margin: 0;
  font-family: var(--ff-heading);
  font-size: clamp(1.875rem, 4.5vw, 2.875rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--deep);
  max-width: 18ch;
}

.ouverture-p {
  margin: var(--space-4) 0 0;
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 38ch;
}

.ouverture-actions { margin: var(--space-6) 0 0; }

.ouverture-tel {
  margin: var(--space-5) 0 0;
  color: var(--muted);
}

.ouverture-tel a {
  font-family: var(--ff-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--deep);
  text-decoration: none;
}

.ouverture-tel a:hover { text-decoration: underline; text-underline-offset: 0.18em; }.figure-page{
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.figure-page {
  margin: var(--space-6) 0 var(--space-10);
  max-height: 22rem;
  object-fit: cover;
}

/* --- La fiche : l'essentiel avant toute explication --- */
.fiche {
  padding: var(--space-6);
  margin-bottom: var(--space-12);
  background: var(--bg-alt);
  border-radius: var(--radius);
}

.fiche h2 {
  margin: 0 0 var(--space-5);
  font-family: var(--ff-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 800;
  color: var(--deep);
}

.fiche dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-5) var(--space-8);
  margin: 0;
}

.fiche dt {
  font-family: var(--ff-heading);
  font-weight: 700;
  color: var(--coral);
  margin-bottom: 2px;
}

.fiche dd { margin: 0; }

.fiche-note {
  display: block;
  margin-top: var(--space-1);
  color: var(--muted);
  font-size: 0.9375rem;
}

/* --- Bloc de lecture. Un seul primitif, repete. --- */
.bloc {
  max-width: 52rem;
  margin-bottom: var(--space-12);
}

.bloc h2 {
  margin: 0 0 var(--space-4);
  font-family: var(--ff-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 800;
  color: var(--deep);
}

.bloc-lien { margin: var(--space-4) 0 0; }/* --- Etapes : une liste numerotee{
  counter-reset: e;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* --- Faits verifiables --- */
.faits {
  list-style: none;
  margin: 0;
  padding: 0;
}

.faits li {
  padding: var(--space-3) 0;
  border-top: 1px solid var(--line);
  line-height: 1.5;
}

.faits li:last-child { border-bottom: 1px solid var(--line); }

/* --- Sortie de page : un humain, pas un bandeau colore --- */
.sortie {
  max-width: 52rem;
  margin-block: var(--space-12) var(--space-10);
  padding-top: var(--space-8);
  border-top: 3px solid var(--apricot);
}

.sortie h2 {
  margin: 0 0 var(--space-3);
  font-family: var(--ff-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 800;
  color: var(--deep);
}

.sortie p { margin: 0 0 var(--space-3); }

.sortie-tel {
  margin: var(--space-5) 0 0;
}

.sortie-tel a {
  font-family: var(--ff-heading);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  color: var(--coral);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.sortie-h,
.sortie-mail { color: var(--muted); }

/* --- Un aparte, pour ce qui ne concerne pas le visiteur principal --- */
.aparte {
  max-width: 52rem;
  margin: 0 0 var(--space-16);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-alt);
  border-radius: var(--radius);
  color: var(--muted);
}

.aparte strong { color: var(--ink); }

/* --- Barre d'action persistante, telephone uniquement.
       Deux sorties atteignables au pouce, sans remonter la page. --- */
.barre-mobile { display: none; }

@media (max-width: 720px) {
  .barre-mobile {
    position: fixed;
    inset: auto 0 0 0;
    z-index: var(--z-fixed);
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 1px;
    background: var(--line);
    box-shadow: 0 -2px 12px rgba(43, 43, 43, 0.12);
  }

  .barre-mobile a {
    padding: var(--space-4) var(--space-2);
    font-family: var(--ff-heading);
    font-weight: 800;
    text-align: center;
    text-decoration: none;
  }

  .bm-tel     { background: var(--surface); color: var(--deep); }
  .bm-demande { background: var(--coral);   color: #FFFFFF; }

  /* De la place pour que la barre ne recouvre jamais la fin du contenu. */
  body { padding-bottom: 4.5rem; }
}

/* --- Groupes repetables du formulaire de demande --- */
.ouverture-txt { min-width: 0; }

.child-block,
.avail-row {
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  background: var(--bg-alt);
  border-radius: var(--radius);
}

.child-block .field:last-child,
.avail-row .field:last-child { margin-bottom: 0; }

@media (min-width: 620px) {
  .child-block,
  .avail-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }
  .child-block .field,
  .avail-row .field { margin-bottom: 0; }
  .child-block > p,
  .avail-row > p { grid-column: 1 / -1; margin: 0; }
}
