@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

/* Palette extraite du logo officiel (proposition 4) :
   dégradé #FFB12A → #FF8C28 → #FF6B4A, pictogrammes blancs, encre du mot-symbole #3A3A3A */
:root {
  --amber: #FFB12A;
  --orange: #FF8C28;
  --coral: #FF6B4A;
  --brand-grad: linear-gradient(135deg, #FFB12A 0%, #FF8C28 48%, #FF6B4A 100%);
  --strong: #C2410C;     /* texte et boutons sur fond clair, contraste AA */
  --strong-d: #9A3412;
  --soft: #FFF1E4;
  --ink: #2B2B2B;
  --ink-2: #3A3A3A;
  --muted: #4F4F4F;
  --paper: #FFFFFF;
  --bg: #FFFAF5;
  --line: #F0E2D3;
  --ok: #1E7A55;
  --err: #B42318;
  --header-h: 72px;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(43, 43, 43, .04), 0 18px 44px rgba(43, 43, 43, .07);
  --shadow-soft: 0 8px 28px rgba(43, 43, 43, .06);
  /* alias conservés pour compatibilité */
  --teal: var(--strong);
  --teal-d: var(--strong);
  --teal-s: var(--soft);
  --navy: var(--ink-2);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--header-h) + 4px);
}
body.nav-open { overflow: hidden; }
a { color: var(--strong); text-underline-offset: 3px; }
a:hover { color: var(--strong-d); }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

/* --- En-tête fixe --- */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  background: rgba(255, 250, 245, .97);
  border-bottom: 1px solid transparent;
  box-shadow: 0 1px 0 rgba(240, 226, 211, .9);
}
.brand-bar { height: 4px; background: var(--brand-grad); }
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
  padding: 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 700;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -.01em;
  flex: none;
}
.brand:hover { color: var(--ink); }
.brand img { width: 44px; height: 44px; flex: none; }
.brand small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .02em;
  margin-top: 1px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
header.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#menu-principal { display: flex; align-items: center; margin-inline-start: auto; min-width: 0; }
#menu-principal a { white-space: nowrap; }
.nav-tools { display: flex; align-items: center; gap: 8px; flex: none; margin-inline-start: 0; }
nav ul {
  display: flex;
  gap: 4px 6px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}
nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 550;
  padding: 8px 12px;
  border-radius: 999px;
}
nav a:hover { color: var(--strong); background: var(--soft); }
nav a[aria-current="page"] {
  color: var(--strong);
  background: var(--soft);
}

.btn, nav a.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--strong);
  color: #fff !important;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 650;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: -.01em;
  box-shadow: 0 8px 20px rgba(194, 65, 12, .22);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
nav a.cta { margin-left: 6px; padding: 10px 16px; }
.btn.light {
  background: #fff;
  color: var(--strong) !important;
  border: 1.5px solid var(--line);
  box-shadow: none;
}
.btn:hover { background: var(--strong-d); }
.btn.light:hover { background: var(--soft); border-color: #E8D2BC; }
.btn:disabled { opacity: .6; cursor: not-allowed; box-shadow: none; }
.btn.small { padding: 7px 12px; font-size: 13px; box-shadow: none; }

main { flex: 1; }

/* --- Typographie et sections --- */
.hero {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 100% -10%, rgba(255, 177, 42, .28), transparent 58%),
    radial-gradient(ellipse 45% 55% at 0% 10%, rgba(255, 107, 74, .14), transparent 55%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--strong);
  margin-bottom: 12px;
}
h1, h2, h3 { font-family: "Outfit", system-ui, sans-serif; color: var(--ink-2); }
h1 {
  font-weight: 750;
  font-size: clamp(32px, 5.2vw, 54px);
  line-height: 1.12;
  letter-spacing: -.03em;
  margin-bottom: 18px;
}
h2 {
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.2;
  letter-spacing: -.025em;
  margin-bottom: 12px;
}
h3 {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -.015em;
  margin-bottom: 8px;
  line-height: 1.3;
}
.lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 38em;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.hero-card {
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border-color: transparent;
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    var(--brand-grad) border-box;
  border: 1.5px solid transparent;
}
.hero-card li {
  list-style: none;
  padding: 11px 0 11px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  position: relative;
  color: var(--ink);
}
.hero-card li:last-child { border-bottom: 0; }
.hero-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 18px;
  width: 10px; height: 10px;
  border-radius: 3px;
  background: var(--brand-grad);
}
.hero-card .logo-hero {
  display: block;
  width: 132px;
  height: 132px;
  margin: 0 auto 16px;
}

section { padding: 80px 0; }
.section-alt {
  background: linear-gradient(180deg, #FFF6EC 0%, var(--soft) 100%);
}
.section-cta {
  padding-top: 24px;
  padding-bottom: 96px;
}
.cta-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 48px 40px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--brand-grad);
}
.center { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.center .lead, .center .muted { margin-left: auto; margin-right: auto; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ico { font-size: 26px; margin-bottom: 6px; }
.muted { color: var(--muted); font-size: 16px; }
.price {
  font-weight: 650;
  color: var(--strong);
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.45;
}
.grid-3 .card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .grid-3 .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
  }
}

.tile {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--brand-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 8px 18px rgba(255, 107, 74, .28);
}
.tile svg { width: 26px; height: 26px; }

.steps { display: grid; gap: 14px; max-width: 820px; margin: 0 auto; }
.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  background: var(--paper);
  border-radius: 18px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  align-items: start;
}
.num {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--brand-grad);
  color: #fff;
  font-family: "Outfit", system-ui, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 6px 14px rgba(255, 107, 74, .28);
}

details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 20px;
  margin-bottom: 10px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 17px;
  padding: 14px 0;
  list-style: none;
  color: var(--ink-2);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  float: right;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-right: 2px solid var(--strong);
  border-bottom: 2px solid var(--strong);
  transform: rotate(45deg);
  transition: transform .15s ease;
}
details[open] summary::after { transform: rotate(225deg); margin-top: 12px; }
details p { margin: 0 0 16px; color: var(--muted); font-size: 16px; }

.rgpd {
  background: var(--paper);
  border-radius: 28px;
  padding: 40px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  max-width: 860px;
  margin: 0 auto;
}
.rgpd ul { margin: 14px 0 0 1.15em; display: grid; gap: 8px; }
.rgpd li { color: var(--ink); }
.notice { font-size: 14px; color: var(--muted); margin-top: 16px; }
.badge {
  display: inline-block;
  background: var(--ink-2);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 10px;
}

/* --- Pied de page --- */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  color: var(--muted);
  font-size: 14px;
  margin-top: auto;
  background: #FFF6EC;
  line-height: 1.6;
}
footer p { margin-bottom: 8px; }
.footer-inner {
  display: grid;
  gap: 20px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
  color: var(--ink-2);
  font-size: 16px;
}
.footer-brand img { width: 36px; height: 36px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 8px;
}
.footer-links a { text-decoration: none; font-weight: 550; }

/* --- Formulaires, tableaux, alertes --- */
form { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 650; font-size: 14px; color: var(--ink-2); }
input, select, textarea {
  font: inherit;
  font-weight: 400;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  width: 100%;
}
textarea { min-height: 110px; resize: vertical; }
.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  font-weight: 400;
}
.consent input { width: 18px; height: 18px; margin-top: 3px; }
.alert { border-radius: 14px; padding: 14px 16px; font-size: 15px; }
.alert.ok { background: #D6F3E7; color: #145243; }
.alert.err { background: #FDE4E0; color: #7A2A24; }
.alert.warn { background: #FFF4D6; color: #6B4E12; }
table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 16px; overflow: hidden; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
th {
  background: var(--ink-2);
  color: #fff;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-weight: 650;
}
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.status {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 650;
  background: var(--soft);
  color: var(--strong-d);
}
.install-bar {
  display: none;
  position: sticky;
  bottom: 0;
  background: var(--ink-2);
  color: #fff;
  padding: 12px 16px;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  z-index: 20;
}
.install-bar.show { display: flex; }
.install-bar button { background: #fff; color: var(--ink-2); box-shadow: none; }

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.page-404 { max-width: 720px; }
.page-404 .actions { margin-top: 20px; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 6px;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--orange);
  outline: 3px solid rgba(255, 140, 40, .28);
  outline-offset: 0;
}
.skip {
  position: absolute;
  left: -10000px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus { left: 8px; color: #fff; }

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 28px;
  align-items: start;
}
.type-tag {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 650;
  background: var(--soft);
  color: var(--strong-d);
}
.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;
}

/* Pages intérieures : mentions, formulaires */
.prose { display: grid; gap: 20px; }
.prose .card p + p { margin-top: 12px; }
.prose h2 { font-size: 22px; margin-bottom: 12px; }
.legal-hero, .page-hero { padding-bottom: 16px; }
.legal-stack { padding-top: 16px; }

/* --- Mobile --- */
@media (max-width: 900px) {
  .wrap { width: min(1120px, calc(100% - 32px)); }
  .hero-grid, .grid-3, .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .contact-grid aside { order: 2; }
  .brand { font-size: 15px; }
  .brand img { width: 40px; height: 40px; }
  .hero { padding: 40px 0 32px; }
  section { padding: 56px 0; }
  .section-cta { padding-bottom: 72px; }
  .cta-panel { padding: 32px 22px; }
  .rgpd { padding: 28px 22px; }
  .card { padding: 22px; }
  .lead { font-size: 18px; }
  table { font-size: 13px; display: block; overflow-x: auto; }

  .nav-toggle { display: flex; }
  .nav-tools { margin-inline-start: auto; }
  #menu-principal { margin-inline-start: 0; }

  #menu-principal {
    display: none;
    position: fixed;
    top: calc(var(--header-h) + 4px);
    left: 0; right: 0; bottom: 0;
    z-index: 45;
    background: #FFFAF5;
    padding: 16px 20px 32px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  header.is-open #menu-principal { display: block; }
  nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  nav li { width: 100%; }
  nav a {
    display: block;
    font-size: 18px;
    padding: 14px 16px;
    border-radius: 14px;
  }
  nav a.cta {
    margin: 12px 0 0;
    text-align: center;
    width: 100%;
    padding: 14px 16px;
  }
}

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

/* --- Sélecteur de langue (menu fixe) --- */
.lang-switch { position: relative; flex: none; }
.lang-switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  font-size: 13px;
  letter-spacing: .04em;
  cursor: pointer;
  box-shadow: none;
}
.lang-switch__btn:hover,
.lang-switch.is-open .lang-switch__btn {
  border-color: #E8D2BC;
  background: var(--soft);
  color: var(--strong);
}
.lang-switch__code { font-weight: 700; }
.lang-switch__caret {
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.lang-switch.is-open .lang-switch__caret {
  margin-top: 3px;
  transform: rotate(-135deg);
}
.lang-switch__panel {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  width: min(280px, calc(100vw - 32px));
  max-height: min(72vh, 540px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 12px;
  z-index: 60;
  -webkit-overflow-scrolling: touch;
}
.lang-switch__panel[hidden] { display: none; }
.lang-switch__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--strong);
  margin: 2px 6px 10px;
}
.lang-switch__shortcuts,
.lang-switch__all {
  list-style: none;
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
}
.lang-switch__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: start;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
}
.lang-switch__opt:hover { background: var(--soft); color: var(--strong); }
.lang-switch__opt.is-active {
  background: var(--soft);
  color: var(--strong);
  font-weight: 650;
}
.lang-switch__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 2px 0;
  border-radius: 8px;
  background: var(--brand-grad);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}
.lang-switch__search-wrap { display: block; margin: 10px 0 6px; }
.lang-switch__search {
  width: 100%;
  font: inherit;
  font-size: 14px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
}
.lang-switch__note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
  margin: 10px 6px 2px;
}
.google-translate-host { display: none !important; }

/* Masquer la bannière Google Translate pour ne pas décaler le menu fixe */
.goog-te-banner-frame,
.goog-te-balloon-frame,
iframe.skiptranslate,
body > .skiptranslate,
#goog-gt-tt,
.goog-tooltip,
.goog-te-menu-value {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}
html body { top: 0 !important; }
.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}
.translated-ltr font,
.translated-rtl font {
  vertical-align: inherit !important;
  background: none !important;
}

@media (max-width: 900px) {
  .lang-switch__btn { height: 40px; padding: 0 8px 0 10px; }
}
