/* Gertrude — site vitrine
   Charte reprise de l'application : Material Indigo (primaire), Orange (accent), Roboto.
   Magenta et jaune de la sauterelle en touches ponctuelles. */

:root {
  --indigo-950: #0f1550;
  --indigo-900: #1a237e;
  --indigo-700: #303f9f;
  --indigo-500: #3f51b5;
  --indigo-300: #7986cb;
  --indigo-100: #c5cae9;
  --indigo-50: #eef0fa;
  --orange-500: #ff9800;
  --orange-600: #fb8c00;
  --orange-100: #ffe0b2;
  --magenta: #e6007e;
  --yellow: #ffed00;

  --text: #1f2333;
  --text-soft: #4a4f63;
  --text-muted: #6b7088;
  --bg: #ffffff;
  --bg-soft: #f6f7fc;
  --border: #e3e6f2;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 6px 20px rgba(26, 35, 126, 0.07);
  --shadow-lg: 0 22px 48px rgba(26, 35, 126, 0.16);
  --header-h: 68px;
  --container: 1200px;
  --gutter: 24px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--indigo-500);
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--indigo-950);
}

h1 {
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3,
.h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 2000;
  background: var(--indigo-900);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
}

.skip-link:focus {
  left: 8px;
}

:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 3px;
}

/* ---------- En-tête ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--indigo-900);
  /* police du nom dans le logo : Nunito ExtraBold */
  font-family: Nunito, Roboto, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand img {
  height: 42px;
  width: auto;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  position: relative;
  padding: 10px 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--indigo-500);
}

/* même repère que les onglets de l'application : souligné orange */
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--orange-500);
}

.nav .btn {
  margin-left: 12px;
}

.nav .btn[aria-current="page"]::after {
  display: none;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--indigo-900);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 26px;
  border-radius: 10px;
  border: 2px solid transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--indigo-500);
  color: #fff;
  box-shadow: 0 8px 20px rgba(63, 81, 181, 0.3);
}

.btn-primary:hover {
  background: var(--indigo-700);
}

.btn-accent {
  background: var(--orange-500);
  color: #1b1b1b;
  box-shadow: 0 6px 16px rgba(255, 152, 0, 0.3);
}

.btn-accent:hover {
  background: var(--orange-600);
}

.btn-outline {
  border-color: var(--indigo-500);
  color: var(--indigo-500);
  background: transparent;
}

.btn-outline:hover {
  background: var(--indigo-50);
}

.btn-light {
  background: #fff;
  color: var(--indigo-900);
}

.btn-ghost-light {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav .btn {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 0.8rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  text-decoration: none;
  color: var(--indigo-500);
}

.link-arrow::after {
  content: "→";
  transition: transform 0.2s ease;
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/* ---------- Accueil : hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 52px) 0 44px;
  background: linear-gradient(160deg, #fff 0%, var(--bg-soft) 60%, var(--indigo-50) 100%);
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: float 9s ease-in-out infinite;
}

.hero::before {
  width: 620px;
  height: 620px;
  top: -260px;
  right: -180px;
  background: radial-gradient(circle, rgba(63, 81, 181, 0.14) 0%, transparent 70%);
}

.hero::after {
  width: 460px;
  height: 460px;
  bottom: -160px;
  left: -140px;
  background: radial-gradient(circle, rgba(255, 152, 0, 0.13) 0%, transparent 70%);
  animation-direction: reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(22px); }
}

.hero .container {
  position: relative;
  z-index: 1;
  max-width: 920px;
}


.hero h1 .accent {
  color: var(--indigo-500);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-soft);
  max-width: 720px;
  margin: 0 auto 1em;
}

.hero-detail {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 1.6em;
}

.hero-motto {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--indigo-900);
  margin: 0 0 1.6em;
  padding: 10px 20px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero .btn-group {
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--indigo-500);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--orange-500);
}

/* ---------- Accueil : cartes verticales ---------- */

.cards-section {
  padding: 8px 0 88px;
  background: linear-gradient(180deg, var(--indigo-50) 0%, #fff 55%);
}

.cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 3 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow);
  isolation: isolate;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.6s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 21, 80, 0) 18%, rgba(15, 21, 80, 0.55) 45%, rgba(15, 21, 80, 0.92) 68%, rgba(15, 21, 80, 0.97) 100%);
}

.card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--orange-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card:hover img,
.card:focus-visible img {
  transform: scale(1.06);
}

.card:hover::after,
.card:focus-visible::after {
  transform: scaleX(1);
}

.card-body {
  padding: 22px 20px 22px;
}

.card-tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange-100);
  margin-bottom: 6px;
}

.card h3 {
  color: #fff;
  font-size: 1.2rem;
  margin: 0 0 8px;
}

.card p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
  margin: 0 0 14px;
}

.card-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange-500);
}

.card-more::after {
  content: "→";
  transition: transform 0.2s ease;
}

.card:hover .card-more::after {
  transform: translateX(4px);
}

/* variante : cartes photo non cliquables (types d'établissements) */
.cards-4 {
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.cards-4 .card {
  aspect-ratio: 3 / 4;
}

.card-static::before {
  background: linear-gradient(180deg, rgba(15, 21, 80, 0) 50%, rgba(15, 21, 80, 0.85) 100%);
}

.card-static::after {
  transform: scaleX(1);
}

.card-static:hover {
  transform: none;
  box-shadow: var(--shadow);
}

.card-static:hover img {
  transform: none;
}

.card-static h3 {
  margin: 0;
}

.audience {
  margin: 48px 0 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.audience strong {
  color: var(--indigo-900);
  font-weight: 500;
}

.audience .dot {
  color: var(--orange-500);
  margin: 0 6px;
}

/* ---------- Bandeau continuité ---------- */

.flow {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  background: var(--indigo-900);
  color: rgba(255, 255, 255, 0.86);
}

.flow::before {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(121, 134, 203, 0.28) 0%, transparent 65%);
  pointer-events: none;
}

.flow .container {
  position: relative;
}

.flow h2,
.flow h3 {
  color: #fff;
}

.flow .eyebrow {
  color: var(--indigo-100);
}

.flow-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.flow-head p {
  font-size: 1.15rem;
}

.steps {
  list-style: none;
  margin: 0 0 56px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  counter-reset: step;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 30px;
  left: calc(100% / 12);
  right: calc(100% / 12);
  height: 2px;
  background: linear-gradient(90deg, var(--indigo-300), var(--orange-500));
}

.steps li {
  position: relative;
  text-align: center;
  counter-increment: step;
  font-weight: 500;
  font-size: 1.02rem;
  color: #fff;
}

.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--indigo-700);
  border: 2px solid var(--indigo-300);
  font-size: 1.2rem;
  font-weight: 700;
  position: relative;
}

.steps li:last-child::before {
  background: var(--orange-500);
  border-color: var(--orange-500);
  color: var(--indigo-950);
}

.flow-text {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.flow-quote {
  margin: 28px auto 0;
  max-width: 760px;
  font-size: 1.15rem;
  font-weight: 500;
  color: #fff;
  text-align: center;
}

/* ---------- Bande d'appel ---------- */

.cta-band {
  padding: 88px 0;
  text-align: center;
  background: var(--bg-soft);
}

.cta-band blockquote {
  margin: 0 auto 32px;
  max-width: 820px;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--indigo-950);
}

.cta-band blockquote span {
  color: var(--indigo-500);
}

.cta-band .btn-group {
  justify-content: center;
}

/* ---------- Pages intérieures ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 72px) 0 72px;
  background: linear-gradient(160deg, #fff 0%, var(--bg-soft) 55%, var(--indigo-50) 100%);
}

.page-hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  top: -220px;
  right: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 81, 181, 0.13) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.page-hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
}

.page-hero .lead {
  font-size: 1.15rem;
  color: var(--text-soft);
  max-width: 620px;
}

.page-hero-photo {
  aspect-ratio: 4 / 4.4;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.page-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-photo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--indigo-500), var(--orange-500));
}

.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 900;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.subnav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0 var(--gutter);
  max-width: var(--container);
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.subnav ul::-webkit-scrollbar {
  display: none;
}

.subnav a {
  display: block;
  padding: 14px 14px;
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.subnav a:hover {
  color: var(--indigo-500);
  border-bottom-color: var(--orange-500);
}

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-soft);
}

.section-head {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head p {
  font-size: 1.1rem;
  color: var(--text-soft);
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature.reverse .feature-visual {
  order: -1;
}

.feature-text p {
  color: var(--text-soft);
}

.feature-text .key {
  margin-top: 1.4em;
  padding: 16px 20px;
  border-left: 4px solid var(--orange-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--indigo-50);
  color: var(--indigo-950);
  font-weight: 500;
}

.section-alt .feature-text .key {
  background: #fff;
}

/* capture d'écran dans un cadre de fenêtre */
.shot {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.shot::before {
  content: "";
  display: block;
  height: 28px;
  background:
    radial-gradient(circle at 16px 14px, #ff8a80 5px, transparent 6px),
    radial-gradient(circle at 34px 14px, #ffd180 5px, transparent 6px),
    radial-gradient(circle at 52px 14px, #b9f6ca 5px, transparent 6px),
    var(--indigo-500);
}

.shot img {
  width: 100%;
  height: auto;
}

.stats-text {
  margin-top: 40px;
}

.stats-text p {
  margin: 0;
  padding-top: 18px;
  border-top: 3px solid var(--indigo-100);
  color: var(--text-soft);
}

/* capture smartphone */
.phones {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.phone {
  margin: 0;
  width: min(250px, 44%);
  padding: 10px;
  border-radius: 34px;
  background: #1b1d2b;
  box-shadow: var(--shadow-lg);
}

.phone img {
  border-radius: 26px;
  width: 100%;
  height: auto;
}

.phones .phone:nth-child(2) {
  margin-top: 48px;
}

.photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* crédit photo, sous chaque photo ou rangée de photos */
.photo-credit {
  margin: 8px 2px 0;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  text-align: right;
}

figcaption {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 10px 14px;
  background: #fff;
}

.phone figcaption {
  display: none;
}

/* grilles de cartes */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.tile {
  padding: 32px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--indigo-100);
}

.tile p {
  color: var(--text-soft);
  margin-bottom: 0;
}

.tile p + p {
  margin-top: 0.8em;
}

.tile-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--indigo-50);
  color: var(--indigo-500);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.tile-icon svg {
  width: 26px;
  height: 26px;
}

.tile-icon.orange {
  background: #fff3e0;
  color: #e65100;
}

.tile-icon.magenta {
  background: #fde6f2;
  color: #b0005f;
}

.tile.highlight {
  border-top: 6px solid var(--orange-500);
}

.tile.highlight .checklist {
  margin: 20px 0 0;
}

.highlight-label {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--indigo-500) !important;
}

.highlight-figure {
  margin: 8px 0 4px !important;
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1;
  color: var(--indigo-950) !important;
}

.highlight-figure span {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.statement {
  margin: 48px auto 0;
  max-width: 820px;
  padding: 26px 32px;
  border-radius: var(--radius);
  background: var(--indigo-900);
  color: #fff;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 500;
}

.chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chips li {
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  font-weight: 500;
  color: var(--indigo-900);
  box-shadow: var(--shadow);
}

.chips li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange-500);
  margin-right: 10px;
  vertical-align: middle;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2em;
}

.checklist li {
  position: relative;
  padding: 10px 0 10px 38px;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  color: var(--indigo-950);
}

.checklist li:last-child {
  border-bottom: 0;
}

/* liste présentée comme une carte : restaure le padding de .tile */
.checklist.tile {
  padding: 18px 28px;
}

@media (max-width: 640px) {
  .checklist.tile {
    padding: 12px 20px;
  }
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--indigo-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* frise historique */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 46px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--indigo-300), var(--orange-500));
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 20px;
  padding: 0 0 28px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline .year {
  position: relative;
  z-index: 1;
  align-self: start;
  justify-self: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--indigo-500);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.timeline li:last-child .year {
  background: var(--orange-500);
  color: var(--indigo-950);
}

.timeline p {
  margin: 4px 0 0;
  color: var(--text-soft);
}

/* page tarifs */
.cta-band blockquote.quote-sm {
  margin-bottom: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 500;
}

.cta-band h2 {
  margin-bottom: 0.6em;
}

.cta-text {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-soft);
}

.cta-band .cta-text + .btn-group {
  margin-top: 32px;
}

.muted {
  color: var(--text-muted) !important;
  font-size: 1rem !important;
  margin-bottom: 0;
}

.options .tile h3 {
  font-size: 1.12rem;
}

.tile-note {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  background: var(--indigo-50);
  border-style: dashed;
  border-color: var(--indigo-100);
  box-shadow: none;
}

.tile-note p {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--indigo-950) !important;
}

.tile-note:hover {
  transform: none;
  box-shadow: none;
}

.degressive {
  margin: 0;
}

.degressive svg {
  width: 100%;
  height: auto;
  display: block;
}

.degressive .axis {
  stroke: var(--border);
  stroke-width: 2;
}

.degressive .bar-linear {
  fill: none;
  stroke: var(--indigo-300);
  stroke-width: 2;
  stroke-dasharray: 5 5;
}

.degressive .bar {
  fill: var(--indigo-500);
}

.degressive g:first-of-type .bar {
  fill: var(--orange-500);
}

.degressive text {
  font: 500 13px Roboto, sans-serif;
  fill: var(--text-soft);
  text-anchor: middle;
}

.degressive figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 16px 0 0;
}

.legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend::before {
  content: "";
  width: 16px;
  height: 12px;
  border-radius: 3px;
}

.legend-linear::before {
  border: 2px dashed var(--indigo-300);
}

.legend-bar::before {
  background: var(--indigo-500);
}

.pillars {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.pillars li {
  padding: 22px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 3px solid var(--orange-500);
  color: #fff;
  font-weight: 500;
  text-align: center;
}

p.flow-text {
  margin-bottom: 20px;
}

@media (max-width: 920px) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillars li:last-child {
    grid-column: 1 / -1;
  }
}

/* lien vers la page suivante */
.next {
  padding: 72px 0;
  background: var(--indigo-900);
  color: rgba(255, 255, 255, 0.86);
}

.next .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.next h2 {
  color: #fff;
  margin-bottom: 0.25em;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.next p {
  margin: 0;
  max-width: 640px;
}

/* contact */
.contact-card {
  padding: 40px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.contact-card .btn {
  margin-top: 8px;
}

.contact-photo {
  margin-top: 32px;
  aspect-ratio: 16 / 9;
}

/* carte avec photo en pied, qui occupe la hauteur restante */
.tile-photo {
  display: flex;
  flex-direction: column;
}

.tile-photo img {
  flex: 1;
  min-height: 180px;
  width: 100%;
  margin-top: 24px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.contact-mail {
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* formulaires de demande */
.demande-form {
  margin-top: 20px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
  align-items: end;   /* champs alignés même si un libellé passe sur deux lignes */
}

.field {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field label,
.field legend {
  display: block;
  margin-bottom: 6px;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--indigo-950);
}

.required {
  color: var(--magenta);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--indigo-100);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--indigo-500);
  box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.18);
}

.checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
}

.checks label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
}

.checks input {
  width: 18px;
  min-height: 0;
  height: 18px;
  margin: 4px 0 0;
  flex: none;
  accent-color: var(--indigo-500);
}

/* champ piège pour les robots, invisible pour les visiteurs */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status:empty {
  display: none;
}

.form-status {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 500;
}

.form-status.ok {
  background: var(--indigo-50);
  color: var(--indigo-900);
}

.form-status.error {
  background: #fdecf4;
  color: #a1005a;
}

/* une fois la demande envoyée, seul le message de confirmation reste */
.demande-form.sent > :not(.form-status) {
  display: none;
}

@media (max-width: 640px) {
  .field-row,
  .checks {
    grid-template-columns: 1fr;
  }
}

/* ---------- Pied de page ---------- */

.site-footer {
  background: var(--indigo-950);
  color: rgba(255, 255, 255, 0.72);
  padding: 56px 0 32px;
  font-size: 0.92rem;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .brand {
  color: #fff;
  font-size: 1.25rem;
}

.site-footer .brand img {
  height: 34px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--orange-500);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: inherit;
}

.footer-bottom a:hover {
  color: #fff;
}

/* mentions légales */
.legal {
  max-width: 820px;
}

.legal h2 {
  margin-top: 64px;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal h3 {
  margin-top: 32px;
}

.legal ul {
  padding-left: 1.2em;
}

.legal li + li {
  margin-top: 8px;
}

.legal a {
  overflow-wrap: anywhere;
}

.legal .updated {
  margin-top: 48px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ---------- Apparition au défilement (si JS) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .cards {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 30%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 12px var(--gutter) 24px;
    margin: -12px calc(-1 * var(--gutter)) 0;
    scrollbar-width: thin;
  }

  .card {
    scroll-snap-align: start;
  }

  .nav a {
    padding: 10px 9px;
  }

  .nav a[aria-current="page"]::after {
    left: 9px;
    right: 9px;
  }
}

@media (max-width: 920px) {
  body {
    font-size: 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    display: none;
  }

  .nav-open .nav {
    display: flex;
  }

  .nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--border);
  }

  .nav a[aria-current="page"] {
    color: var(--indigo-500);
  }

  .nav a[aria-current="page"]::after {
    display: none;
  }

  .nav .btn {
    margin: 16px 0 0;
    border-bottom: 0;
  }

  .page-hero .container,
  .feature {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature.reverse .feature-visual {
    order: 0;
  }

  .page-hero-photo {
    aspect-ratio: 16 / 9;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 32px;
  }

  .steps::before {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
    --header-h: 60px;
  }

  .brand img {
    height: 36px;
  }

  .hero {
    padding-top: calc(var(--header-h) + 48px);
  }


  .hero .eyebrow::before,
  .cta-band .eyebrow::before,
  .flow-head .eyebrow::before,
  .section-head.center .eyebrow::before {
    display: none;
  }

  .hero-motto {
    border-radius: var(--radius-sm);
  }

  .hero .btn-group .btn,
  .cta-band .btn-group .btn {
    width: 100%;
  }

  .cards {
    grid-auto-columns: 74%;
  }

  .section,
  .flow,
  .cta-band {
    padding: 64px 0;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .tile,
  .contact-card {
    padding: 24px;
  }

  .photo-credit {
    margin-top: 6px;
    font-size: 0.625rem;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .phones {
    gap: 12px;
  }

  .phone {
    padding: 6px;
    border-radius: 24px;
  }

  .phone img {
    border-radius: 19px;
  }

  .phones .phone:nth-child(2) {
    margin-top: 28px;
  }

  .timeline::before {
    left: 36px;
  }

  .timeline li {
    grid-template-columns: 74px 1fr;
    gap: 14px;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
