/* FlowOSS — site vitrine flowoss.fr.
   Charte reprise de l'application (assets/css/input.css du dépôt flowoss) :
   vert tatami #0f766e, encre #111827, neutres slate, rayons 0,375 / 0,5 rem,
   badges, couleurs de tags par défaut et couleurs de ceintures. Les maquettes
   reproduisent les écrans réels. Aucune ressource tierce : la CSP interdit aussi
   tout style en ligne. */

/* ───────────────────────── Jetons ───────────────────────── */
:root {
  --ink: #111827;
  --mat: #0f766e;
  --mat-hover: #115e59;
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --coral: #f97316;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;

  /* Ceintures, dans l'ordre des lettres du logo. */
  --belt-white: #ffffff;
  --belt-yellow: #fde047;
  --belt-green: #15803d;
  --belt-blue: #1d4ed8;
  --belt-purple: #7e22ce;
  --belt-brown: #7c2d12;
  --belt-black: #020617;

  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --wrap: 80rem;

  --shadow-sm: 0 1px 2px 0 rgb(15 23 42 / 0.05);
  --shadow: 0 4px 12px rgb(15 23 42 / 0.08);
  --shadow-lg: 0 30px 70px -25px rgb(15 23 42 / 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

/* ───────────────────────── Base ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { background: #fff; scroll-behavior: smooth; scroll-padding-top: 1rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { margin: 0 0 0.6em; line-height: 1.12; letter-spacing: -0.03em; font-weight: 700; color: var(--slate-950); }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.015em; line-height: 1.3; }
p { margin: 0 0 1em; }
a { color: var(--mat); }
img, svg { display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--teal-200); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.highlight { color: var(--mat); }

/* Repère de section, comme dans l'application : petit, majuscules, vert tatami. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--mat); margin-bottom: 0.9rem;
}
.eyebrow-light { color: var(--teal-300); }

/* Liseré aux couleurs des ceintures, de la blanche à la noire, comme le logo. */
.belt-line {
  height: 6px;
  background: linear-gradient(90deg,
    var(--belt-white) 0 14.285%, var(--belt-yellow) 14.285% 28.57%,
    var(--belt-green) 28.57% 42.855%, var(--belt-blue) 42.855% 57.14%,
    var(--belt-purple) 57.14% 71.425%, var(--belt-brown) 71.425% 85.71%,
    var(--belt-black) 85.71% 100%);
  box-shadow: inset 0 1px 0 rgb(15 23 42 / 0.12), inset 0 -1px 0 rgb(15 23 42 / 0.12);
}

/* ───────────────────────── Boutons ───────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.65rem 1.15rem; border-radius: var(--radius); border: 1px solid transparent;
  font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}
.btn svg { transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.875rem; }
.btn-lg { padding: 0.85rem 1.4rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--mat); color: #fff; box-shadow: 0 8px 20px -10px rgb(15 118 110 / 0.7); }
.btn-primary:hover { background: var(--mat-hover); transform: translateY(-1px); }
.btn-secondary { background: #fff; color: var(--slate-800); border-color: var(--slate-300); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--slate-400); background: var(--slate-50); }
.btn.is-loading { opacity: 0.7; pointer-events: none; }

/* ───────────────────────── Hero ───────────────────────── */
.hero, .page-hero { position: relative; isolation: isolate; overflow: hidden; background: #fff; }
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 0; }
.hero-brand { display: flex; flex-direction: column; align-items: center; text-align: center; }
.nowrap { white-space: nowrap; }
@media (max-width: 640px) { .br-md { display: none; } }
.hero-tagline { max-width: 62ch; margin: 1.1rem 0 0; font-size: clamp(1.05rem, 1.8vw, 1.3rem); font-weight: 500; line-height: 1.5; color: var(--slate-600); }
.js .hero-tagline { animation: fadeUp 0.9s var(--ease) 0.15s both; }
.hero-brand img { height: clamp(4.5rem, 10vw, 7.5rem); width: auto; filter: drop-shadow(0 14px 22px rgb(15 23 42 / 0.12)); }
.js .hero-brand img { animation: logoIn 0.9s var(--ease) both; }
@keyframes logoIn { from { opacity: 0; transform: translateY(12px) scale(0.96); } }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(80px); }
.hero-glow-1 { width: 44rem; height: 44rem; left: -16rem; top: -20rem; background: radial-gradient(circle, rgb(20 184 166 / 0.22), transparent 65%); animation: drift 18s ease-in-out infinite alternate; }
.hero-glow-2 { width: 40rem; height: 40rem; right: -14rem; top: 6rem; background: radial-gradient(circle, rgb(29 78 216 / 0.10), transparent 65%); animation: drift 22s ease-in-out infinite alternate-reverse; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgb(15 23 42 / 0.045) 1px, transparent 1px), linear-gradient(90deg, rgb(15 23 42 / 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 25%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 65% at 50% 25%, #000 30%, transparent 80%);
}
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(3rem, 2rem, 0) scale(1.1); } }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--slate-600); max-width: 54ch; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-actions-center { justify-content: center; }

/* ───────────────────────── Haut de page : logo, accroche, composants flottants ───────────────────────── */
.hero-top { position: relative; padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
/* Par défaut, les composants s'alignent sous l'accroche ; sur grand écran, ils
   encadrent le logo (voir plus bas). */
.hero-floats { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 1rem; margin-top: 2.25rem; }
.float { position: relative; z-index: 2; animation: float 6s ease-in-out infinite; }
.float-member { width: 19.5rem; animation-delay: -1s; }
.float-activity { width: min(23.5rem, 100%); animation-delay: -3s; }
.float-season { width: 16rem; animation-delay: -4.5s; }
.float .member-card, .float .activity-card, .float .season-row { box-shadow: 0 20px 45px -18px rgb(15 23 42 / 0.5); }
.float .season-row { background: #fff; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (min-width: 1340px) {
  .hero-top { min-height: 17rem; }
  .hero-floats { position: absolute; top: 0; bottom: 0; left: 2rem; right: 2rem; display: block; margin: 0; pointer-events: none; }
  .float { position: absolute; }
  .float-member { left: 0; top: 0.75rem; }
  .float-activity { right: 0; top: 0; }
  /* Sous le niveau de l'accroche, pour ne jamais frôler sa seconde ligne. */
  .float-season { right: 0; top: 12.75rem; }
}
@media (max-width: 639px) {
  .hero-floats { display: grid; justify-content: stretch; }
  .float { width: auto; animation: none; }
}

.hero-clubs { padding-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); }

/* Carte d'un membre de l'annuaire, à la couleur de sa ceinture (ici bleue). */
.member-card { --belt: #1d4ed8; padding: 1rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--belt); background: var(--belt); color: #fff; }
.member-card-top { display: flex; align-items: center; gap: 0.85rem; }
.member-avatar-ring { flex: none; width: 3.75rem; height: 3.75rem; overflow: hidden; border-radius: 50%; border: 2px solid #fff; background: #fff; }
.member-avatar { width: 100%; height: 100%; }
.member-card-id b { display: block; font-size: 1rem; font-weight: 600; }
.member-card-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.35rem; }
.member-card-badges .badge { font-size: 0.68rem; padding: 0.08rem 0.45rem; }
.member-pill { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 999px; border: 1px solid currentColor; font-size: 0.68rem; font-weight: 700; line-height: 1.35; white-space: nowrap; }
.member-card-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 0.85rem; }
.member-card-meta small { display: block; margin-bottom: 0.25rem; font-size: 0.62rem; font-weight: 600; text-transform: uppercase; opacity: 0.78; }

/* Principales fonctionnalités : 3 × 3 tuiles « Gestion du club », dans la dernière case
   de la grille des clubs ; elles s'étirent à la hauteur des cartes voisines. */
.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
@media (max-width: 999px) { .features-grid { grid-column: 1 / -1; } }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 6.25rem; padding: 0.75rem 0.4rem; border: 1px solid var(--slate-300); border-radius: var(--radius);
  background: #fff; color: var(--slate-800); text-align: center; box-shadow: var(--shadow-sm);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.tile:hover { border-color: var(--mat); box-shadow: 0 8px 20px -16px rgb(15 23 42 / 0.55); transform: translateY(-1px); }
.tile-icon { display: inline-grid; place-items: center; flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--teal-50); color: var(--mat); }
.tile-icon svg { width: 1.25rem; height: 1.25rem; }
.tile-label { font-size: 0.8rem; font-weight: 700; line-height: 1.15rem; }
.tile-badge { position: absolute; top: -0.4rem; right: -0.4rem; display: grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 0.3rem; border-radius: 999px; border: 2px solid #fff; background: #dc2626; color: #fff; font-size: 0.75rem; font-weight: 800; font-style: normal; line-height: 1; }

/* Boutons de l'application (primaire vert tatami, secondaire bordé). */
.a-btn {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  padding: 0.4rem 0.75rem; border-radius: var(--radius-sm); border: 1px solid var(--slate-300);
  background: #fff; color: var(--slate-800); font-size: 0.8125rem; font-weight: 500;
}
.a-btn-primary { background: var(--mat); border-color: var(--mat); color: #fff; }
.a-btn-light { background: rgb(255 255 255 / 0.9); color: var(--slate-800); }
.a-btn-ghost { background: transparent; border-color: rgb(255 255 255 / 0.35); color: #fff; }

/* Badges de l'application. */
.badge {
  display: inline-flex; align-items: center; border: 1px solid; border-radius: var(--radius-sm);
  padding: 0.2rem 0.55rem; font-size: 0.75rem; font-weight: 700; line-height: 1rem; font-style: normal; white-space: nowrap;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.06);
}
.badge-success { border-color: #059669; background: #059669; color: #fff; }
.badge-pending { border-color: #f59e0b; background: #fbbf24; color: #451a03; }
.badge-danger { border-color: #fda4af; background: #fff1f2; color: #be123c; }
.badge-muted { border-color: var(--slate-300); background: var(--slate-100); color: var(--slate-600); }
.badge-info { border-color: #99f6e4; background: var(--teal-50); color: var(--mat); }

/* Tags : couleurs par défaut de sport_calendar/models.py. */
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; }
.tags i { font-style: normal; font-weight: 600; border-radius: 0.25rem; padding: 0.1rem 0.4rem; font-size: 0.75rem; }
.tg-cours { background: #16a34a; color: #fff; }
.tg-gi { background: #bae6fd; color: #075985; }
.tg-enfant { background: #f9a8d4; color: #831843; }
.tg-ado { background: #92400e; color: #fff; }
.tg-adulte { background: #020617; color: #fff; }
.tg-open { background: #7e22ce; color: #fff; }
.tg-compet { background: #dc2626; color: #fff; }

/* ───────────────────────── Sections ───────────────────────── */
.section { position: relative; padding: clamp(4.5rem, 9vw, 7rem) 0; }
.section-tight { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section-soft { background: var(--slate-50); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head p { color: var(--slate-600); font-size: 1.075rem; margin: 0; }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head-split { max-width: none; display: grid; gap: 1rem 3rem; align-items: end; }
.section-head-split h2 { margin: 0; }
@media (min-width: 860px) { .section-head-split { grid-template-columns: 1fr 1fr; } }

/* ───────────────────────── Composants de l'application ───────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.2rem; }
.chips li { padding: 0.22rem 0.65rem; border-radius: var(--radius-sm); background: var(--slate-100); border: 1px solid var(--slate-200); color: var(--slate-700); font-size: 0.8rem; font-weight: 500; }
.chips-sm { margin-top: 1rem; }
.chips-sm li { font-size: 0.75rem; padding: 0.18rem 0.55rem; }

/* Carte « Activités à venir » du tableau de bord. */
.activity-card { padding: 0.85rem 1rem; border-radius: var(--radius); border: 1px solid var(--slate-200); background: #fff; box-shadow: var(--shadow-sm); }
.activity-card > b { display: block; margin-top: 0.45rem; font-size: 0.92rem; font-weight: 600; color: var(--slate-950); }
.activity-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.6rem; }
.activity-card .tags .badge { font-size: 0.7rem; padding: 0.08rem 0.45rem; }

/* Ligne de saison « Adhérer à une saison ». */
.season-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.7rem; border-radius: var(--radius); border: 1px solid var(--slate-200); background: var(--slate-50); }
.season-row b { font-size: 0.875rem; font-weight: 600; }
.season-row .a-btn { margin-left: auto; font-size: 0.75rem; padding: 0.3rem 0.65rem; }

/* ───────────────────────── Clubs ───────────────────────── */
.clubs-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .clubs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .clubs-grid { grid-template-columns: repeat(3, 1fr); } }
.club-card {
  --accent: var(--mat); --accent-soft: var(--teal-50);
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  padding: 1.6rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm); text-decoration: none; color: inherit;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.club-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--accent); }
.club-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px -16px rgb(15 23 42 / 0.55); border-color: var(--accent); }
.accent-corail { --accent: var(--coral); --accent-soft: #fff7ed; }
.accent-indigo { --accent: #4f46e5; --accent-soft: #eef2ff; }
.accent-rose { --accent: #e11d48; --accent-soft: #fff1f2; }
.accent-ambre { --accent: #d97706; --accent-soft: #fffbeb; }
.accent-ciel { --accent: #0284c7; --accent-soft: #f0f9ff; }
.club-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1.2rem; }
.club-logo { display: block; height: 5rem; width: auto; max-width: 11rem; object-fit: contain; }
.club-avatar { display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 0.95rem; }
.status { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.22rem 0.6rem; border-radius: var(--radius-sm); border: 1px solid; font-size: 0.75rem; font-weight: 700; }
.status i { position: relative; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; }
.status-live { border-color: #6ee7b7; background: #ecfdf5; color: #047857; }
.status-live i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite; }
.status-soon { border-color: #fcd34d; background: #fffbeb; color: #92400e; }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }
.club-city { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; color: var(--accent); }
.club-card h3 { font-size: 1.55rem; margin: 0.25rem 0 0.2rem; }
.club-fullname { color: var(--slate-700); font-size: 0.875rem; font-weight: 500; margin: 0 0 0.75rem; }
.club-desc { color: var(--slate-600); font-size: 0.95rem; margin: 0; flex: 1; }
.club-link { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--slate-200); font-weight: 600; font-size: 0.925rem; color: var(--accent); text-decoration: none; }
.club-link span { transition: transform 0.25s var(--ease); }
.club-link:hover span { transform: translateX(4px); }
.club-link-muted { color: var(--slate-500); font-weight: 500; }
.club-card.is-soon { background: linear-gradient(180deg, #fff, var(--slate-50)); }
.club-card-cta { align-items: flex-start; border-style: dashed; border-color: var(--slate-300); background: transparent; box-shadow: none; }
.club-card-cta::before { display: none; }
.club-card-cta p { color: var(--slate-600); font-size: 0.95rem; flex: 1; margin: 0; }
.club-card-cta .club-link { color: var(--mat); border-top-color: transparent; padding-top: 0; }
.club-card-cta:hover { border-color: var(--mat); background: var(--teal-50); }
.club-plus { display: grid; place-items: center; width: 3.1rem; height: 3.1rem; margin-bottom: 1.2rem; border-radius: var(--radius); border: 1.5px dashed var(--slate-300); color: var(--slate-500); font-size: 1.6rem; font-weight: 300; transition: transform 0.35s var(--ease), border-color 0.35s, color 0.35s; }
.club-card-cta:hover .club-plus { transform: rotate(90deg); border-color: var(--mat); color: var(--mat); }

/* ───────────────────────── Contact ───────────────────────── */
.section-contact { background: var(--slate-50); }
.contact-layout { display: grid; gap: 2.5rem 4rem; align-items: start; }
@media (min-width: 960px) { .contact-layout { grid-template-columns: 0.85fr 1.15fr; } }
.contact-copy > p { color: var(--slate-600); font-size: 1.075rem; }
.contact-steps { display: grid; gap: 1rem; margin: 2rem 0; }
.contact-steps li { display: flex; align-items: center; gap: 0.9rem; color: var(--slate-700); }
.contact-steps span { display: grid; place-items: center; flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--teal-50); color: var(--mat); font-weight: 700; font-size: 0.9rem; }
.contact-mail { display: inline-flex; align-items: center; gap: 0.9rem; padding: 0.85rem 1.15rem 0.85rem 0.85rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--slate-300); color: var(--slate-950); text-decoration: none; font-weight: 600; box-shadow: var(--shadow-sm); transition: border-color 0.25s, transform 0.25s var(--ease); }
.contact-mail:hover { border-color: var(--mat); transform: translateY(-1px); }
.contact-mail svg { padding: 0.55rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--teal-50); color: var(--mat); }
.contact-mail small { display: block; color: var(--slate-500); font-weight: 500; font-size: 0.8rem; }

.form-card { display: grid; gap: 1.1rem; padding: clamp(1.5rem, 4vw, 2.1rem); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--slate-200); box-shadow: var(--shadow); }
.field { display: grid; gap: 0.35rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label, .field legend { font-size: 0.875rem; font-weight: 500; color: var(--slate-700); padding: 0; }
.field legend { margin-bottom: 0.5rem; }
.req { color: #be123c; }
/* Champs repris de l'application : bordure slate-300, focus vert tatami. */
.field input, .field select, .field textarea {
  width: 100%; padding: 0.6rem 0.75rem; border-radius: var(--radius-sm); border: 1px solid var(--slate-300);
  background: #fff; color: var(--ink); font: inherit; font-size: 0.95rem; box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, outline-color 0.2s;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--slate-400); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--teal-100); outline-offset: 0; border-color: var(--mat); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #64748b 50%), linear-gradient(135deg, #64748b 50%, transparent 50%); background-position: calc(100% - 1.1rem) 55%, calc(100% - 0.75rem) 55%; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; padding-right: 2.2rem; }
.has-error input, .has-error select, .has-error textarea { border-color: #e11d48; }
.field-error { margin: 0; color: #be123c; font-size: 0.82rem; font-weight: 500; }
.form-alert { padding: 0.8rem 1rem; border-radius: var(--radius); background: #fff1f2; border: 1px solid #fecdd3; color: #881337; font-size: 0.9rem; font-weight: 500; }
.form-alert p { margin: 0; }
.form-note { margin: 0; color: var(--slate-500); font-size: 0.8rem; text-align: center; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ───────────────────────── Fenêtre modale de contact ───────────────────────── */
.modal {
  width: min(40rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto;
  padding: clamp(1.25rem, 3vw, 1.75rem); border: 0; border-radius: var(--radius-lg);
  background: #fff; color: var(--ink); box-shadow: 0 30px 80px -20px rgb(2 6 23 / 0.5);
}
.modal::backdrop { background: rgb(2 6 23 / 0.55); backdrop-filter: blur(3px); }
.modal[open] { animation: modalIn 0.35s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.modal-head h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 1.75rem); }
.modal-close { display: grid; place-items: center; flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--slate-200); background: #fff; color: var(--slate-600); cursor: pointer; }
.modal-close:hover { background: var(--slate-100); color: var(--slate-950); }
.modal-intro { margin: 0.6rem 0 1.25rem; color: var(--slate-600); font-size: 0.95rem; }
.modal .form-card { padding: 0; border: 0; border-radius: 0; box-shadow: none; }
body.modal-open { overflow: hidden; }

/* ───────────────────────── Pages internes ───────────────────────── */
/* Pages internes : le logo centré comme sur l'accueil, un titre discret dessous. */
.page-hero { padding: clamp(2rem, 5vw, 3rem) 0 clamp(1.75rem, 4vw, 2.5rem); text-align: center; background: var(--slate-50); border-bottom: 1px solid var(--slate-200); }
.page-hero h1 { margin-bottom: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.page-hero .eyebrow { margin-bottom: 0.4rem; }
.page-hero .lead { margin: 0; }
.page-brand { display: flex; width: fit-content; margin: 0 auto clamp(1.5rem, 4vw, 2.25rem); }
.page-brand img { height: clamp(3.5rem, 7vw, 5.5rem); width: auto; filter: drop-shadow(0 14px 22px rgb(15 23 42 / 0.12)); }
.page-hero-full { min-height: 100svh; display: grid; place-items: center; text-align: center; border-bottom: 0; }
.thanks { display: grid; justify-items: center; }
.thanks h1 { max-width: 18ch; margin-bottom: 0.6em; font-size: clamp(2.2rem, 5vw, 3.3rem); }
.thanks .lead { margin: 0 auto; }
.thanks-icon { display: grid; place-items: center; width: 4.75rem; height: 4.75rem; margin-bottom: 1.75rem; border-radius: 50%; background: var(--mat); color: #fff; box-shadow: 0 0 0 10px var(--teal-100); animation: pop 0.7s var(--ease) both; }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } }

.doc { max-width: 46rem; }
.doc h2 { margin-top: 2.5rem; font-size: 1.35rem; }
.doc p { color: var(--slate-700); }
.doc dl { margin: 0; display: grid; grid-template-columns: minmax(0, 15rem) 1fr; border-top: 1px solid var(--slate-200); }
.doc dt, .doc dd { margin: 0; padding: 0.7rem 0; border-bottom: 1px solid var(--slate-200); }
.doc dt { font-weight: 600; padding-right: 1rem; }
.doc dd { color: var(--slate-600); }
@media (max-width: 560px) { .doc dl { grid-template-columns: 1fr; } .doc dt { border-bottom: 0; padding-bottom: 0; } }

/* ───────────────────────── Crédo ───────────────────────── */
/* Entre le contenu et le liseré du pied de page, sur toutes les pages. */
.credo { padding: clamp(1.5rem, 3vw, 2rem) 0 clamp(2.25rem, 5vw, 3rem); text-align: center; background: #fff; }
.credo-text {
  margin: 0 auto;
  font-size: clamp(1rem, 1.6vw, 1.15rem); font-weight: 600; line-height: 1.5;
  color: var(--slate-600); text-wrap: balance;
}
.credo-text span { color: var(--mat); }

/* ───────────────────────── Pied de page ───────────────────────── */
.site-footer { background: #fff; color: var(--slate-600); font-size: 0.925rem; }
.footer-grid { display: grid; gap: 2.5rem; padding-top: clamp(3rem, 6vw, 4rem); padding-bottom: 2.5rem; border-bottom: 1px solid var(--slate-200); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-logo { display: inline-block; }
.footer-logo img { height: 2.9rem; width: auto; }
.footer-brand p { max-width: 32ch; margin: 1rem 0 0; }
.footer-col { display: grid; gap: 0.55rem; align-content: start; }
.footer-col h2 { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--mat); margin: 0 0 0.35rem; }
.footer-col a { color: var(--slate-600); text-decoration: none; font-weight: 500; width: fit-content; transition: color 0.2s; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--mat); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; padding-top: 1.5rem; padding-bottom: 1.75rem; font-size: 0.85rem; color: var(--slate-500); }

/* ───────────────────────── Apparition au défilement ───────────────────────── */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--delay, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
