/* Maquette — RUS externalisé. Thème « incendie » : noir chaud, rouge, orange, ambre.
   Les mêmes teintes sont utilisées dans les deux vidéos HyperFrames. */
:root {
  /* Primitives */
  --black: #0b0606;
  --coal: #140a09;
  --coal-2: #1d0f0d;
  --red: #ff3b2f;
  --red-deep: #c81e14;
  --orange: #ff6a2b;
  --amber: #ffb347;
  --green: #2fbf71;
  --cream: #fbf4ef;

  /* Sémantiques */
  --bg: var(--black);
  --surface: var(--coal);
  --surface-2: var(--coal-2);
  --text: #d9c8c2;
  --muted: #a8938d;
  --heading: #fff6f2;
  --line: rgba(255, 150, 120, 0.16);
  --fire: linear-gradient(100deg, #ff2d2d 0%, #ff6a2b 55%, #ffb347 100%);
  --glow: 0 18px 60px rgba(255, 60, 30, 0.35);

  --radius: 22px;
  --wrap: 1200px;
  --font: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img,
video,
svg {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
h4 {
  color: var(--heading);
  line-height: 1.08;
  margin: 0 0 0.6em;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  font-weight: 800;
}
h2 em,
h1 em {
  font-style: normal;
  background: var(--fire);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
p {
  margin: 0 0 1.1em;
}
a {
  color: inherit;
}
strong {
  color: var(--heading);
  font-weight: 700;
}
:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}
.nowrap {
  white-space: nowrap;
}

.wrap {
  width: min(var(--wrap), 100% - 40px);
  margin-inline: auto;
}
.narrow {
  --wrap: 880px;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: #fff;
  color: #000;
  padding: 10px 16px;
  border-radius: 8px;
}

/* ── Boutons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s,
    background 0.2s;
}
.btn-primary {
  background: var(--fire);
  color: #1a0503;
  box-shadow: 0 10px 34px rgba(255, 70, 30, 0.42);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(255, 70, 30, 0.6);
}
.btn-ghost {
  color: var(--heading);
  border-color: rgba(255, 190, 170, 0.35);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover {
  border-color: var(--amber);
  background: rgba(255, 120, 60, 0.1);
}
.btn-sm {
  padding: 10px 18px;
  font-size: 0.93rem;
}
.btn-block {
  width: 100%;
}

/* ── En-tête ── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--heading);
  transition:
    background 0.25s,
    box-shadow 0.25s;
}
.site-header.scrolled {
  background: rgba(11, 6, 6, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header-in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--heading);
}
.brand-mark {
  width: 36px;
  height: 36px;
}
.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--heading);
  margin: 0;
}
.brand-name span {
  font-weight: 400;
  margin-left: 6px;
  color: var(--muted);
}
.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 0.95rem;
}
.nav a {
  text-decoration: none;
  color: #cdb9b2;
  transition: color 0.2s;
}
.nav a:hover {
  color: #fff;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: min(100svh, 940px);
  display: flex;
  align-items: center;
  background: var(--black);
  overflow: hidden;
  isolation: isolate;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  z-index: -2;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 6, 6, 0.95) 0%, rgba(11, 6, 6, 0.78) 34%, rgba(11, 6, 6, 0.05) 68%),
    linear-gradient(0deg, var(--black) 0%, rgba(11, 6, 6, 0) 22%);
}
.hero-in {
  padding: 130px 0 90px;
}
.hero-in > * {
  max-width: 700px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffc9b3;
  margin-bottom: 24px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 120, 80, 0.35);
  border-radius: 999px;
  background: rgba(255, 70, 30, 0.1);
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px 2px rgba(255, 106, 43, 0.9);
}
.hero h1 {
  font-size: clamp(2.5rem, 5.7vw, 4.7rem);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 26px;
}
.h1-rus {
  color: #ffc9b3;
  font-weight: 600;
}
.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  color: #e3d2cc;
  margin-bottom: 34px;
  max-width: 620px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 52px;
}
.hero-proofs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 720px;
  border-top: 1px solid var(--line);
}
.hero-proofs li {
  padding: 20px 20px 0 0;
}
.hero-proofs li + li {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.hero-proofs strong {
  display: block;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: var(--fire);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-proofs span {
  font-size: 0.9rem;
  color: #c4b0a9;
  line-height: 1.4;
  display: block;
  margin-top: 6px;
}
.video-toggle {
  position: absolute;
  right: 20px;
  bottom: 20px;
  font: inherit;
  font-size: 0.8rem;
  color: #c4b0a9;
  background: rgba(11, 6, 6, 0.6);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
}
.video-toggle:hover {
  color: #fff;
}

/* ── Bandeau de mots-clés ── */
.ticker {
  overflow: hidden;
  background: var(--fire);
  color: #1a0503;
  padding: 16px 0;
  transform: rotate(-1deg) scale(1.02);
  margin: -14px 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 50px rgba(255, 60, 30, 0.45);
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: ticker 38s linear infinite;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker-track i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1a0503;
  flex: none;
}
@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* ── Sections ── */
.section {
  position: relative;
  padding: clamp(80px, 11vw, 140px) 0;
}
.section-ember {
  background:
    radial-gradient(900px 480px at 85% 0%, rgba(255, 60, 30, 0.2), transparent 70%),
    radial-gradient(700px 420px at 0% 100%, rgba(255, 140, 50, 0.1), transparent 70%), var(--coal);
  border-block: 1px solid var(--line);
}
.section-light {
  background: var(--cream);
  color: #4a3a36;
}
.section-light h2,
.section-light h3,
.section-light strong,
.section-light summary {
  color: #1c0b09;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.kicker::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--fire);
}
.section-light .kicker {
  color: var(--red-deep);
}
.section-head {
  max-width: 860px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 720px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
}

/* Citation réglementaire */
.law {
  margin: 0;
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(255, 60, 30, 0.35), transparent 70%), var(--coal);
  color: #f3e6e1;
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 46px);
  box-shadow: 0 30px 70px rgba(60, 10, 5, 0.35);
  position: relative;
  overflow: hidden;
}
.law::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--fire);
}
.law svg {
  width: 44px;
  height: 44px;
  color: var(--amber);
  margin-bottom: 18px;
}
.law blockquote {
  margin: 0;
}
.law blockquote p {
  font-size: 1.14rem;
  line-height: 1.6;
}
.law figcaption {
  font-size: 0.88rem;
  color: #c9b3ab;
  font-weight: 600;
}

/* ── Missions (bento) ── */
.missions {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.mission {
  position: relative;
  background: linear-gradient(160deg, var(--coal-2), var(--coal));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  overflow: hidden;
  transition:
    transform 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
}
.mission::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% -30%;
  height: 90%;
  background: radial-gradient(closest-side, rgba(255, 70, 30, 0.35), transparent);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.mission:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 120, 70, 0.6);
  box-shadow: var(--glow);
}
.mission:hover::after {
  opacity: 1;
}
.mission-wide {
  grid-column: span 2;
}
.mission svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--orange);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 22px;
}
.mission .num {
  position: absolute;
  top: 14px;
  right: 22px;
  font-size: 3.4rem;
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 130, 90, 0.32);
  font-variant-numeric: tabular-nums;
}
.mission h3,
.mission p {
  position: relative;
  z-index: 1;
}
.mission p {
  font-size: 0.97rem;
  line-height: 1.55;
  margin: 0;
  color: var(--muted);
}

/* ── Experts (bento) ── */
.bento {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}
.card {
  position: relative;
  background: linear-gradient(160deg, rgba(40, 18, 15, 0.9), rgba(20, 10, 9, 0.9));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(26px, 3.4vw, 42px);
  overflow: hidden;
}
.card p:last-child {
  margin: 0;
  color: var(--muted);
}
.card-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a0503;
  background: var(--fire);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.card h3 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  letter-spacing: -0.02em;
}
.card-insigne {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}
.insigne {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 40px) 0;
}
.insigne::before {
  content: "";
  position: absolute;
  width: 86%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 80, 30, 0.55), rgba(255, 150, 60, 0.14) 55%, transparent 72%);
  filter: blur(6px);
}
.insigne img {
  position: relative;
  width: min(440px, 88%);
  height: auto;
  filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.65));
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-insigne:hover .insigne img {
  transform: scale(1.04) rotate(-1.5deg);
}
.picto {
  width: clamp(120px, 12vw, 156px);
  height: auto;
  margin-bottom: 24px;
  filter: drop-shadow(0 10px 34px rgba(255, 70, 30, 0.55));
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-ssiap:hover .picto {
  transform: scale(1.05) rotate(2deg);
}
.card-years .big {
  font-size: clamp(3.4rem, 7vw, 5.6rem);
  font-weight: 850;
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin-bottom: 18px;
  background: var(--fire);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.card-years .big small {
  font-size: 0.36em;
  letter-spacing: 0;
  font-weight: 700;
}

/* ── Conformité ── */
.statement h2 {
  font-size: clamp(2.3rem, 5.6vw, 4.6rem);
  max-width: 1000px;
  line-height: 1.02;
}
.statement {
  margin-bottom: clamp(36px, 5vw, 60px);
}
.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.checks li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--coal);
  color: #eedfd9;
  font-weight: 600;
  line-height: 1.4;
}
.checks li span {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(47, 191, 113, 0.16);
  border: 1.5px solid var(--green);
  position: relative;
}
.checks li span::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 7px;
  width: 10px;
  height: 5px;
  border-left: 2.2px solid var(--green);
  border-bottom: 2.2px solid var(--green);
  transform: rotate(-45deg);
}

/* ── VIGYS ── */
.grid-media {
  grid-template-columns: 0.9fr 1.1fr;
  margin-bottom: clamp(44px, 6vw, 72px);
}
.media {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 150, 120, 0.28);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(255, 60, 30, 0.22);
  background: var(--black);
}
.media-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  background: #1d0f0d;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}
.media-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5a2a24;
}
.media-bar i:first-child {
  background: var(--red);
}
.media-bar span {
  margin-left: 10px;
}
.media-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.media figcaption {
  padding: 10px 16px;
  font-size: 0.8rem;
  color: var(--muted);
  background: #1d0f0d;
  border-top: 1px solid var(--line);
}
.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.features li {
  background: #170b0a;
  padding: 28px 24px;
  transition: background 0.25s;
}
.features li:hover {
  background: #24100d;
}
.features svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 16px;
}
.features h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.features p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ── Bénéfices + étapes ── */
.benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 56px;
  margin-bottom: clamp(48px, 7vw, 84px);
}
.benefit {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.benefit h3 {
  margin-bottom: 8px;
  font-size: 1.3rem;
}
.benefit p {
  margin: 0;
  color: var(--muted);
}
.steps-title {
  font-size: 1.6rem;
  margin-bottom: 28px;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.steps li {
  background: var(--coal);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--line);
}
.steps span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--fire);
  color: #1a0503;
  font-weight: 850;
  font-size: 1.1rem;
  margin-bottom: 20px;
  box-shadow: 0 8px 26px rgba(255, 70, 30, 0.45);
}
.steps h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.steps p {
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.55;
  color: var(--muted);
}

/* ── Établissements ── */
.tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tags li {
  padding: 13px 22px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 150, 120, 0.3);
  background: rgba(255, 90, 40, 0.07);
  font-weight: 650;
  color: var(--heading);
  font-size: 0.97rem;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.tags li:hover {
  background: rgba(255, 90, 40, 0.2);
  border-color: var(--orange);
}

/* ── FAQ ── */
.faq details {
  border-bottom: 1px solid #e3d2c8;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 48px 24px 0;
  font-size: 1.15rem;
  font-weight: 750;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--fire);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1;
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq details p {
  padding: 0 48px 24px 0;
  margin: 0;
}

/* ── Contact ── */
.contact {
  background:
    radial-gradient(900px 520px at 100% 0%, rgba(255, 60, 30, 0.3), transparent 70%),
    radial-gradient(700px 420px at 0% 100%, rgba(255, 150, 60, 0.14), transparent 70%), var(--black);
}
.grid-contact {
  align-items: start;
  grid-template-columns: 0.8fr 1.2fr;
}
.contact-points {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
}
.contact-points li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: #eedfd9;
}
.contact-points strong {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--fire);
  color: #1a0503;
  font-weight: 850;
}
.form {
  background: #fffaf7;
  color: #4a3a36;
  border-radius: 26px;
  padding: clamp(24px, 4vw, 42px);
  display: grid;
  gap: 18px;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.55),
    0 0 90px rgba(255, 60, 30, 0.2);
}
.form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form label,
.form legend {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1c0b09;
}
.form label > span[aria-hidden],
.consent span span {
  color: var(--red-deep);
}
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form select,
.form textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  color: #1c0b09;
  background: #f6ece6;
  border: 1.5px solid #ead9cf;
  border-radius: 12px;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}
.form textarea {
  resize: vertical;
  min-height: 130px;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 106, 43, 0.18);
}
.form .invalid {
  border-color: var(--red-deep) !important;
  background: #fff0ee !important;
}
.form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.form legend {
  margin-bottom: 10px;
  padding: 0;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips label {
  position: relative;
  cursor: pointer;
}
.chips input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.chips span {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid #ead9cf;
  font-weight: 650;
  font-size: 0.9rem;
  color: #4a3a36;
  transition: all 0.15s;
}
.chips input:checked + span {
  background: #1c0b09;
  border-color: #1c0b09;
  color: #fff;
}
.chips input:focus-visible + span {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}
.consent {
  display: flex !important;
  gap: 12px;
  align-items: flex-start;
  font-weight: 400 !important;
  color: #4a3a36 !important;
  line-height: 1.5;
}
.consent input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--red-deep);
  flex: none;
}
.consent.invalid-box {
  color: var(--red-deep) !important;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  margin: 0;
  font-weight: 650;
  min-height: 1.4em;
}
.form-status.ok {
  color: #178a4c;
}
.form-status.err {
  color: var(--red-deep);
}

/* ── Références : carrousel de logos ── */
.clients {
  background: var(--coal);
  border-top: 1px solid var(--line);
  padding: clamp(64px, 8vw, 100px) 0;
  overflow: hidden;
}
.clients h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}
.clients .sub {
  margin-bottom: 44px;
}
.logos {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.logos-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.js .logos-track {
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: max-content;
  animation: logos 60s linear infinite;
}
.logos:hover .logos-track,
.logos:focus-within .logos-track {
  animation-play-state: paused;
}
.logos-track li {
  flex: none;
  display: grid;
  place-items: center;
  height: 120px;
  padding: 0 clamp(28px, 4vw, 56px);
}
.logos-track img {
  height: 58px;
  width: auto;
  max-width: none;
  opacity: 0.86;
  transition: opacity 0.25s;
}
.logos-track img[src*="erilia"] {
  height: 76px;
  border-radius: 6px;
}
.logos-track img[src*="carrefour-property"] {
  height: 78px;
}
.logos-track img[src*="credit-agricole"] {
  height: 44px;
}
/* Logo fourni en couleurs sombres : passé en blanc pour rester lisible sur fond noir. */
.logo-mono {
  filter: brightness(0) invert(1);
}
.logos-track li:hover img {
  opacity: 1;
}
.logo-text {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff6f2;
  opacity: 0.86;
  white-space: nowrap;
}
.logo-text b {
  font-weight: 400;
}
@keyframes logos {
  to {
    transform: translateX(-50%);
  }
}

/* ── Pied de page ── */
.site-footer {
  background: #070303;
  color: var(--muted);
  padding: 52px 0 36px;
  font-size: 0.93rem;
  border-top: 1px solid var(--line);
}
.footer-in {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px 48px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-content: start;
  max-width: 480px;
}
.site-footer a {
  text-decoration: none;
}
.site-footer a:hover {
  color: #fff;
}
.site-footer .brand-name {
  margin-bottom: 8px;
}
.legal {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin: 0;
  font-size: 0.85rem;
}

/* ── Apparition au défilement (activée seulement si le script tourne) ── */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s,
    box-shadow 0.3s,
    background 0.25s;
  transition-delay: var(--d, 0ms), var(--d, 0ms), 0ms, 0ms, 0ms;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
.js .mission.reveal.in:hover {
  transform: translateY(-6px);
}

/* ── Adaptation ── */
@media (max-width: 1040px) {
  .nav {
    display: none;
  }
  .header-in .btn {
    margin-left: auto;
  }
  .missions,
  .steps,
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .checks {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-2,
  .grid-media,
  .grid-contact,
  .bento {
    grid-template-columns: 1fr;
  }
  .card-insigne {
    grid-row: auto;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .hero-shade {
    background: linear-gradient(0deg, rgba(11, 6, 6, 0.97) 0%, rgba(11, 6, 6, 0.82) 55%, rgba(11, 6, 6, 0.55) 100%);
  }
  .hero-in {
    padding: 110px 0 80px;
  }
  .hero h1 {
    font-size: clamp(2rem, 9.4vw, 2.6rem);
  }
  .nowrap {
    white-space: normal;
  }
  .hero-proofs {
    grid-template-columns: 1fr;
  }
  .hero-proofs li + li {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    margin-top: 16px;
  }
  .missions,
  .steps,
  .features,
  .checks,
  .benefits,
  .form .row {
    grid-template-columns: 1fr;
  }
  .mission-wide {
    grid-column: auto;
  }
  .footer-in {
    grid-template-columns: 1fr;
  }
  .brand-name span {
    display: none;
  }
  .video-toggle {
    display: none;
  }
  .ticker-track {
    font-size: 0.9rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .ticker-track {
    animation: none;
  }
  .logos-track {
    animation: none;
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
  }
  .logos-track li[aria-hidden="true"] {
    display: none;
  }
}

/* ── Cookies : bandeau et fenêtre de préférences ── */
.cookies-bandeau {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: min(460px, calc(100% - 40px));
  background: #1d0f0d;
  color: var(--text);
  border: 1px solid rgba(255, 150, 120, 0.3);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
  font-size: 0.95rem;
  line-height: 1.55;
}
.cookies-titre {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--heading);
}
.cookies-bandeau p,
.cookies-fenetre p {
  margin: 0 0 16px;
}
.cookies-bandeau a,
.cookies-fenetre a {
  color: var(--amber);
}
.cookies-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
/* Refuser et accepter : même taille, même style, même niveau. */
.cookies-btn {
  font: inherit;
  font-weight: 700;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 190, 170, 0.45);
  background: rgba(255, 255, 255, 0.05);
  color: var(--heading);
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.cookies-btn:hover {
  background: rgba(255, 120, 60, 0.16);
  border-color: var(--amber);
}
.cookies-btn-plein {
  grid-column: 1 / -1;
  background: var(--fire);
  color: #1a0503;
  border-color: transparent;
}
.cookies-btn-plein:hover {
  background: var(--fire);
  filter: brightness(1.08);
}
.cookies-lien {
  grid-column: 1 / -1;
  font: inherit;
  font-size: 0.92rem;
  background: none;
  border: 0;
  padding: 6px;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}
.cookies-lien:hover {
  color: var(--heading);
}
.cookies-voile {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 2, 2, 0.72);
  backdrop-filter: blur(4px);
  overflow-y: auto;
}
.cookies-fenetre {
  position: relative;
  width: min(580px, 100%);
  background: #1d0f0d;
  color: var(--text);
  border: 1px solid rgba(255, 150, 120, 0.3);
  border-radius: 22px;
  padding: clamp(22px, 4vw, 34px);
  font-size: 0.95rem;
  line-height: 1.55;
}
.cookies-ligne {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.cookies-ligne h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}
.cookies-ligne p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.cookies-ligne .cookies-services {
  margin-top: 4px;
  font-size: 0.82rem;
}
.cookies-toujours {
  flex: none;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green);
}
.cookies-bascule {
  flex: none;
  position: relative;
  width: 52px;
  height: 30px;
  cursor: pointer;
}
.cookies-bascule input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.cookies-bascule span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #4a2a25;
  transition: background 0.2s;
}
.cookies-bascule span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff6f2;
  transition: transform 0.2s;
}
.cookies-bascule input:checked + span {
  background: var(--green);
}
.cookies-bascule input:checked + span::after {
  transform: translateX(22px);
}
.cookies-bascule input:focus-visible + span {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}
.cookies-fenetre .cookies-actions {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.cookies-pied {
  margin: 16px 0 0 !important;
  font-size: 0.88rem;
}
.cookies-fermer {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
.cookies-fermer:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.pied-liens {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 0.88rem;
}
.pied-liens button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}
.pied-liens button:hover {
  color: #fff;
}
.form-rgpd {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #6a5852;
}
.form-rgpd a {
  color: var(--red-deep);
}

/* ── Pages légales ── */
.page-legale {
  background: var(--cream);
  color: #4a3a36;
  padding: 130px 0 90px;
}
.page-legale h1 {
  color: #1c0b09;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  margin-bottom: 0.3em;
}
.page-legale h2 {
  color: #1c0b09;
  font-size: 1.5rem;
  margin: 2em 0 0.6em;
  scroll-margin-top: 96px;
}
.page-legale h3 {
  color: #1c0b09;
  margin: 1.4em 0 0.4em;
}
.page-legale strong {
  color: #1c0b09;
}
.page-legale a {
  color: var(--red-deep);
}
.page-legale .maj {
  color: #7a6660;
  font-size: 0.92rem;
}
.page-legale ul {
  padding-left: 1.2em;
  margin: 0 0 1.1em;
}
.page-legale li {
  margin-bottom: 0.4em;
}
.page-legale table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.4em;
  font-size: 0.94rem;
}
.page-legale th,
.page-legale td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border: 1px solid #e3d2c8;
}
.page-legale th {
  background: #f3e6de;
  color: #1c0b09;
}
.tableau-defilant {
  overflow-x: auto;
}
/* Tableaux des guides (même présentation que les pages légales). */
.guide table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.4em;
  font-size: 0.94rem;
}
.guide th,
.guide td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border: 1px solid #e3d2c8;
}
.guide th {
  background: #f3e6de;
  color: #1c0b09;
}
/* Informations que l'éditeur du site doit renseigner avant la mise en ligne. */
.a-completer {
  background: #ffe9a8;
  color: #4a3200;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.page-legale .btn-cookies {
  font: inherit;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1.5px solid #1c0b09;
  background: #1c0b09;
  color: #fff;
  cursor: pointer;
}
.page-legale-entete {
  background: rgba(11, 6, 6, 0.94);
}
@media (max-width: 640px) {
  .cookies-bandeau {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    padding: 18px;
  }
}

/* ── Pages guides (contenus de fond pour le référencement) ── */
.guide-hero {
  background:
    radial-gradient(900px 420px at 88% 0%, rgba(255, 60, 30, 0.32), transparent 70%),
    radial-gradient(600px 360px at 0% 100%, rgba(255, 140, 50, 0.12), transparent 70%), var(--black);
  padding: 132px 0 64px;
  border-bottom: 1px solid var(--line);
}
.fil {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 22px;
  font-size: 0.88rem;
  color: var(--muted);
}
.fil li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--orange);
}
.fil a {
  color: #e3d2cc;
  text-decoration: none;
}
.fil a:hover {
  text-decoration: underline;
}
.guide-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 900px;
  margin-bottom: 0.45em;
}
.guide-hero .chapeau {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: #e3d2cc;
  max-width: 760px;
  margin: 0;
}
.guide {
  background: var(--cream);
  color: #4a3a36;
  padding: clamp(48px, 7vw, 84px) 0 clamp(64px, 8vw, 100px);
}
.guide h2 {
  color: #1c0b09;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 1.9em 0 0.6em;
  scroll-margin-top: 96px;
}
.guide h3 {
  color: #1c0b09;
  font-size: 1.18rem;
  margin: 1.5em 0 0.4em;
}
.guide strong,
.guide summary {
  color: #1c0b09;
}
.guide a {
  color: var(--red-deep);
}
.guide ul,
.guide ol {
  padding-left: 1.25em;
  margin: 0 0 1.2em;
}
.guide li {
  margin-bottom: 0.45em;
}
.sommaire {
  background: #fff;
  border: 1px solid #ead9cf;
  border-radius: 18px;
  padding: 22px 26px;
  margin: 0 0 8px;
}
.sommaire p {
  font-weight: 800;
  color: #1c0b09;
  margin: 0 0 8px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sommaire ol {
  margin: 0;
}
.encadre {
  background: #fff;
  border-left: 5px solid var(--red);
  border-radius: 0 16px 16px 0;
  padding: 20px 24px;
  margin: 1.6em 0;
  box-shadow: 0 10px 30px rgba(60, 10, 5, 0.06);
}
.encadre > :last-child {
  margin-bottom: 0;
}
.encadre-titre {
  font-weight: 800;
  color: #1c0b09;
  margin-bottom: 6px;
}
.guide blockquote {
  margin: 1.6em 0;
  padding: 22px 26px;
  background: var(--coal);
  color: #f3e6e1;
  border-radius: 16px;
  border-left: 5px solid var(--orange);
  font-size: 1.05rem;
}
.guide blockquote cite {
  display: block;
  margin-top: 10px;
  font-size: 0.86rem;
  font-style: normal;
  color: #c9b3ab;
}
.guide .faq {
  margin-top: 0.6em;
}
.cta-bande {
  margin-top: 3em;
  background:
    radial-gradient(500px 260px at 100% 0%, rgba(255, 60, 30, 0.4), transparent 70%), var(--coal);
  color: #e3d2cc;
  border-radius: 24px;
  padding: clamp(26px, 4vw, 44px);
}
.cta-bande h2 {
  color: #fff6f2;
  margin: 0 0 0.4em;
}
.cta-bande p {
  margin: 0 0 22px;
}
.cta-bande .btn-primary {
  color: #1a0503;
}
.guides-lies {
  margin-top: 3em;
}
.guides-lies ul,
.guides-grille {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.guides-lies a,
.guides-grille a {
  display: block;
  height: 100%;
  padding: 20px 22px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  transition:
    transform 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
}
.guides-lies a {
  background: #fff;
  border: 1px solid #ead9cf;
  color: #1c0b09;
}
.guides-lies a:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
}
.guides-lies a span,
.guides-grille a span {
  display: block;
  font-weight: 400;
  font-size: 0.92rem;
  margin-top: 6px;
}
.guides-lies a span {
  color: #6a5852;
}
/* Bloc « Guides » de la page d'accueil (fond sombre) */
.guides-grille {
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.guides-grille a {
  background: linear-gradient(160deg, var(--coal-2), var(--coal));
  border: 1px solid var(--line);
  color: var(--heading);
  font-size: 1.08rem;
  line-height: 1.3;
}
.guides-grille a:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 120, 70, 0.6);
  box-shadow: var(--glow);
}
.guides-grille a span {
  color: var(--muted);
  line-height: 1.5;
}
.guides-grille a::after {
  content: "Lire le guide →";
  display: block;
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--orange);
}
.erreur-404 {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px 20px 80px;
  background:
    radial-gradient(800px 420px at 50% 0%, rgba(255, 60, 30, 0.3), transparent 70%), var(--black);
}
.erreur-404 .code {
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 850;
  letter-spacing: -0.05em;
  line-height: 0.9;
  background: var(--fire);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 12px;
}
@media (max-width: 1040px) {
  .guides-grille {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .guides-lies ul,
  .guides-grille {
    grid-template-columns: 1fr;
  }
}

/* Liens contextuels vers les guides */
.lien-fleche {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}
.lien-fleche::after {
  content: " →";
}
.section-light .lien-fleche {
  color: var(--red-deep);
}
.section-ember .lien-fleche,
.section:not(.section-light) .lien-fleche {
  color: var(--amber);
}
.mission p a,
.benefit p a {
  color: var(--amber);
  white-space: nowrap;
  display: inline-block;
  margin-top: 8px;
  font-weight: 650;
}
