:root {
  --ink: #102522;
  --muted: #60716d;
  --green: #24b46a;
  --green-dark: #0b7950;
  --lime: #b7db3e;
  --orange: #ff9b38;
  --cream: #f4f1e9;
  --night: #071a19;
  --night-soft: #0d2926;
  --line: rgba(16, 37, 34, .12);
  --shadow: 0 30px 80px rgba(4, 22, 19, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: #fbfaf6;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.scroll-progress { position: fixed; z-index: 100; inset: 0 0 auto; height: 3px; background: rgba(255,255,255,.08); }
.scroll-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--lime), var(--green), var(--orange)); }

.site-header {
  position: fixed; z-index: 90; top: 16px; left: 50%;
  width: min(1180px, calc(100% - 32px)); min-height: 66px;
  transform: translateX(-50%); display: flex; align-items: center; gap: 28px;
  padding: 10px 12px 10px 16px; border: 1px solid rgba(255,255,255,.16); border-radius: 22px;
  color: #fff; background: rgba(5, 26, 24, .72); box-shadow: 0 18px 50px rgba(2, 17, 15, .22);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; letter-spacing: -.04em; white-space: nowrap; }
.brand img { width: 39px; height: 39px; border-radius: 12px; }
.brand > span { font-size: 20px; }.brand > span span { color: var(--lime); }
.site-header nav { display: flex; justify-content: center; gap: 26px; margin-left: auto; }
.site-header nav a { color: rgba(255,255,255,.72); font-size: 13px; font-weight: 750; text-decoration: none; }
.site-header nav a:hover { color: #fff; }
.header-cta { margin-left: 12px; padding: 13px 19px; border-radius: 14px; background: var(--lime); color: #14210b; font-size: 13px; font-weight: 900; text-decoration: none; }

.hero {
  min-height: 860px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr); align-items: center; gap: 30px;
  padding: 140px max(6vw, 32px) 80px; color: white; overflow: hidden;
  background:
    radial-gradient(circle at 83% 14%, rgba(183,219,62,.2), transparent 27%),
    radial-gradient(circle at 55% 80%, rgba(36,180,106,.18), transparent 28%),
    linear-gradient(135deg, #051513 0%, #09231f 55%, #0e332a 100%);
}
.hero-copy { position: relative; z-index: 3; max-width: 700px; }
.eyebrow, .section-number { margin: 0 0 22px; color: var(--green-dark); font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { color: #d8efa0; }.eyebrow span { display: inline-block; width: 30px; height: 2px; margin: 0 10px 3px 0; background: var(--lime); }
.hero h1, section h2 { margin: 0; font-size: clamp(54px, 6.2vw, 96px); line-height: .94; letter-spacing: -.075em; }
.hero h1 em, section h2 em { color: var(--lime); font-family: Georgia, serif; font-weight: 400; }
.hero-lead { max-width: 650px; margin: 28px 0 30px; color: rgba(255,255,255,.73); font-size: 19px; line-height: 1.7; }
.hero-actions, .cds-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 22px; border-radius: 16px; font-size: 14px; font-weight: 900; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: #092319; background: var(--lime); }.button.primary span { margin-right: 9px; }
.button.ghost { border: 1px solid rgba(255,255,255,.25); color: #fff; background: rgba(255,255,255,.07); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 28px 0 0; list-style: none; }
.hero-tags li { padding: 8px 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; color: rgba(255,255,255,.68); font-size: 12px; font-weight: 750; }

.hero-visual { position: relative; min-height: 670px; isolation: isolate; }
.cave-glow { position: absolute; inset: 12% 4% 7% 5%; border-radius: 48%; background: radial-gradient(circle, rgba(255,160,56,.34), rgba(36,180,106,.13) 42%, transparent 69%); filter: blur(18px); }
.phone { position: relative; overflow: hidden; width: min(290px, 76vw); margin: 0; border: 8px solid #10201f; border-radius: 42px; background: #fff; box-shadow: var(--shadow); }
.phone::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 33px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.24); }
.phone img { width: 100%; height: auto; }
.hero-visual .phone { position: absolute; width: min(310px, 29vw); }
.phone-map { left: 5%; top: 15%; transform: rotate(-7deg); z-index: 1; }
.phone-cave { right: 5%; top: 0; transform: rotate(5deg); z-index: 2; }
.hero-orbit { position: absolute; z-index: 4; padding: 10px 14px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: white; background: rgba(5,26,24,.75); box-shadow: 0 12px 35px rgba(0,0,0,.28); backdrop-filter: blur(12px); font-size: 12px; font-weight: 900; }
.orbit-one { left: 0; top: 8%; }.orbit-two { right: 0; bottom: 7%; }

.trust-strip { position: relative; z-index: 5; width: min(1160px, calc(100% - 34px)); display: grid; grid-template-columns: repeat(4, 1fr); margin: -46px auto 0; padding: 26px; border-radius: 24px; background: white; box-shadow: 0 22px 60px rgba(4,22,19,.12); }
.trust-strip div { display: flex; align-items: center; gap: 13px; padding: 4px 22px; border-right: 1px solid var(--line); }
.trust-strip div:last-child { border-right: 0; }.trust-strip strong { color: var(--green-dark); font-size: 28px; letter-spacing: -.05em; }.trust-strip span { color: var(--muted); font-size: 12px; font-weight: 750; }

.chapter { width: min(1200px, calc(100% - 48px)); display: grid; grid-template-columns: minmax(0, .85fr) minmax(460px, 1.15fr); align-items: center; gap: clamp(50px, 8vw, 120px); margin: 0 auto; padding: 150px 0; }
.chapter h2, .map-stage h2, .verriere-story h2, .more-features h2, .cds-section h2, .final-cta h2 { font-size: clamp(44px, 5vw, 72px); line-height: 1; }
.chapter h2 em, .more-features h2 em { color: var(--green-dark); }
.chapter-copy > p:not(.section-number):not(.quiet-note), .map-copy > p:not(.section-number), .verriere-copy > p:not(.section-number), .cds-intro > p:not(.section-number) { margin: 26px 0; color: var(--muted); font-size: 17px; line-height: 1.8; }
.screen-duo, .equipment-screens { position: relative; min-height: 690px; display: flex; justify-content: center; align-items: flex-start; }
.screen-duo .phone, .equipment-screens .phone { position: absolute; width: min(292px, 42vw); }
.screen-duo .phone:first-child, .equipment-screens .phone:first-child { left: 2%; top: 0; transform: rotate(-4deg); z-index: 2; }
.screen-duo .phone-offset, .equipment-screens .phone-offset { right: 2%; top: 105px; transform: rotate(4deg); z-index: 1; }
.stat-callout { display: flex; gap: 18px; align-items: center; margin: 30px 0; padding: 18px 20px; border-left: 4px solid var(--green); border-radius: 0 16px 16px 0; background: #eaf5ed; }
.stat-callout strong { flex: 0 0 auto; color: var(--green-dark); font-size: 22px; }.stat-callout span { color: #49635b; font-size: 13px; line-height: 1.55; }
.feature-list { display: grid; gap: 12px; padding: 0; list-style: none; }.feature-list li { position: relative; padding-left: 25px; color: #3f554f; font-size: 14px; line-height: 1.55; }.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }

.map-stage { padding: 130px max(6vw, 34px); color: #fff; background: var(--night); overflow: hidden; }
.map-copy { width: min(1100px, 100%); margin: 0 auto 70px; }.section-number.light { color: var(--lime); }
.map-copy > p:not(.section-number) { max-width: 780px; color: rgba(255,255,255,.66); }
.map-showcase { width: min(1180px, 100%); display: grid; grid-template-columns: 390px 1fr; align-items: center; gap: 85px; margin: 0 auto; }
.map-phone { width: 360px; max-width: 100%; border-color: #c5dd6d; transform: rotate(-2deg); box-shadow: 0 40px 100px rgba(0,0,0,.46); }
.map-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.map-features article { min-height: 180px; padding: 25px; border: 1px solid rgba(255,255,255,.1); border-radius: 22px; background: rgba(255,255,255,.055); }
.feature-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 21px; border-radius: 13px; color: var(--night); background: var(--lime); font-size: 21px; font-weight: 900; }
.map-features h3, .feature-cloud h3, .cds-flow h3 { margin: 0 0 8px; font-size: 17px; }.map-features p { margin: 0; color: rgba(255,255,255,.6); font-size: 13px; line-height: 1.6; }

.drawer-chapter { grid-template-columns: minmax(420px, 1fr) minmax(0, 1fr); }.drawer-screen { position: relative; display: grid; place-items: center; }.drawer-screen::before { content: ""; position: absolute; width: 460px; height: 460px; border-radius: 45% 55% 60% 40%; background: #e6f1c4; transform: rotate(12deg); }.drawer-screen .phone { width: 330px; transform: rotate(2deg); }
.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 26px 0; }.mini-grid span { padding: 13px 15px; border: 1px solid var(--line); border-radius: 13px; color: #435b54; background: white; font-size: 13px; font-weight: 800; }.quiet-note { padding-top: 18px; border-top: 1px solid var(--line); color: #779087; font-size: 13px; line-height: 1.6; }

.verriere-story { min-height: 760px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch; color: #fff; background: #2b1e14; }
.verriere-photo { position: relative; min-height: 760px; overflow: hidden; }.verriere-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, rgba(43,30,20,.85)); }
.verriere-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transform: scale(1.08); }
.verriere-copy { align-self: center; max-width: 640px; padding: 90px 7vw 90px 40px; }.verriere-copy p:not(.section-number) { color: rgba(255,255,255,.7); }.verriere-copy h2 em { color: #ffc261; }
.verriere-copy blockquote { margin: 38px 0 0; padding: 24px 0 24px 26px; border-left: 3px solid #ffc261; color: #fff2d8; font-family: Georgia, serif; font-size: 20px; line-height: 1.55; }

.equipment-chapter { grid-template-columns: minmax(0, .8fr) minmax(520px, 1.2fr); }.equipment-screens { min-height: 720px; }.equipment-screens .phone { width: min(300px, 41vw); }.equipment-screens .phone:first-child { top: 90px; }.equipment-screens .phone-offset { top: 0; z-index: 3; }

.more-features { padding: 140px max(5vw, 26px); background: var(--cream); }.section-heading { width: min(1120px, 100%); margin: 0 auto 60px; }.feature-cloud { width: min(1120px, 100%); display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin: 0 auto; }
.feature-cloud article { min-height: 240px; display: flex; flex-direction: column; align-items: flex-start; padding: 28px; border: 1px solid rgba(16,37,34,.1); border-radius: 22px; background: rgba(255,255,255,.62); transition: transform .25s ease, box-shadow .25s ease; }.feature-cloud article:hover { transform: translateY(-5px); box-shadow: 0 20px 45px rgba(16,37,34,.08); }
.feature-cloud b { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: auto; border-radius: 14px; color: white; background: var(--green-dark); }.feature-cloud h3 { margin-top: 24px; }.feature-cloud p { margin: 0 0 15px; color: var(--muted); font-size: 13px; line-height: 1.55; }.feature-cloud a { color: var(--green-dark); font-size: 12px; font-weight: 900; }

.cds-section { padding: 140px max(6vw, 28px); color: white; background: linear-gradient(135deg, #0b362c, #0b1f1d); }.cds-intro { width: min(1040px, 100%); margin: 0 auto 70px; }.cds-intro > p:not(.section-number) { max-width: 820px; color: rgba(255,255,255,.67); }.cds-section h2 em { color: var(--lime); }
.cds-flow { width: min(1150px, 100%); display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 20px; margin: 0 auto 48px; }.cds-flow article { min-height: 230px; padding: 28px; border: 1px solid rgba(255,255,255,.12); border-radius: 23px; background: rgba(255,255,255,.055); }.cds-flow article span { color: var(--lime); font-size: 12px; font-weight: 900; letter-spacing: .18em; }.cds-flow h3 { margin-top: 45px; font-size: 22px; }.cds-flow p { color: rgba(255,255,255,.6); font-size: 13px; line-height: 1.7; }.cds-flow i { color: var(--lime); font-size: 26px; font-style: normal; }.cds-actions { width: min(1150px, 100%); margin: 0 auto; }.button.warm { color: #2c1d04; background: #ffc261; }.button.ghost-light { border: 1px solid rgba(255,255,255,.22); color: #fff; }

.final-cta { position: relative; min-height: 740px; display: grid; place-content: center; justify-items: center; padding: 130px 24px; text-align: center; overflow: hidden; background: #fbfaf6; }.final-cta::before { content: ""; position: absolute; width: 700px; height: 700px; border: 1px solid rgba(36,180,106,.13); border-radius: 50%; box-shadow: 0 0 0 110px rgba(36,180,106,.035), 0 0 0 230px rgba(36,180,106,.02); }.final-cta > * { position: relative; }.final-logo { width: 100px; height: 100px; margin-bottom: 34px; border-radius: 30px; box-shadow: 0 20px 40px rgba(16,37,34,.16); }.final-cta .eyebrow { color: var(--green-dark); }.final-cta h2 em { color: var(--green-dark); }.audience-cards { width: min(780px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 46px; text-align: left; }.audience-cards a { display: flex; flex-direction: column; min-height: 160px; padding: 26px; border-radius: 22px; color: white; background: var(--night); text-decoration: none; transition: transform .2s ease; }.audience-cards a:last-child { color: var(--ink); background: var(--lime); }.audience-cards a:hover { transform: translateY(-4px); }.audience-cards small { margin-bottom: auto; opacity: .65; font-weight: 800; }.audience-cards strong { font-size: 20px; }.audience-cards span { margin-top: 8px; font-size: 12px; font-weight: 850; }

footer { min-height: 130px; display: flex; align-items: center; gap: 30px; padding: 28px max(5vw, 24px); color: rgba(255,255,255,.72); background: #051412; } footer p { margin: 0; font-size: 12px; } footer nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; } footer nav a { color: rgba(255,255,255,.58); font-size: 12px; font-weight: 750; text-decoration: none; }

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.65,.25,1); }.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1040px) {
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr 1fr; padding-left: 34px; padding-right: 34px; }
  .hero h1 { font-size: clamp(50px, 7vw, 74px); }
  .hero-visual .phone { width: min(270px, 34vw); }.phone-map { left: -5%; }.phone-cave { right: -3%; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }.trust-strip div:nth-child(2) { border-right: 0; }.trust-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); padding-bottom: 18px; }.trust-strip div:nth-child(n+3) { padding-top: 18px; }
  .chapter { grid-template-columns: 1fr 1fr; gap: 40px; }.screen-duo .phone, .equipment-screens .phone { width: 250px; }.screen-duo, .equipment-screens { min-height: 630px; }
  .map-showcase { grid-template-columns: 330px 1fr; gap: 50px; }.map-phone { width: 320px; }
  .feature-cloud { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .site-header { top: 9px; width: calc(100% - 18px); min-height: 58px; padding: 8px 9px 8px 12px; border-radius: 18px; }.brand img { width: 34px; height: 34px; }.brand > span { font-size: 17px; }.header-cta { margin-left: auto; padding: 11px 13px; font-size: 11px; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 46px; padding: 118px 20px 95px; }.hero h1 { font-size: clamp(48px, 15vw, 70px); }.hero-lead { font-size: 16px; }.hero-actions { display: grid; }.button { width: 100%; }.hero-visual { min-height: 520px; }.hero-visual .phone { width: min(235px, 61vw); }.phone-map { left: -3%; top: 13%; }.phone-cave { right: -3%; top: 0; }.orbit-one { left: 0; }.orbit-two { right: 0; bottom: 1%; }
  .trust-strip { margin-top: -38px; padding: 17px; border-radius: 20px; }.trust-strip div { gap: 8px; padding-left: 8px; padding-right: 8px; }.trust-strip strong { font-size: 22px; }.trust-strip span { font-size: 10px; }
  .chapter { width: min(100% - 36px, 620px); grid-template-columns: 1fr; gap: 55px; padding: 105px 0; }.chapter h2, .map-stage h2, .verriere-story h2, .more-features h2, .cds-section h2, .final-cta h2 { font-size: clamp(40px, 12vw, 58px); }.chapter-copy > p:not(.section-number):not(.quiet-note), .map-copy > p:not(.section-number), .verriere-copy > p:not(.section-number), .cds-intro > p:not(.section-number) { font-size: 15px; }
  .chapter-weather .chapter-copy { order: 0; }.chapter-weather .screen-duo { order: 1; }.screen-duo, .equipment-screens { min-height: 570px; }.screen-duo .phone, .equipment-screens .phone { width: min(235px, 65vw); }.screen-duo .phone:first-child, .equipment-screens .phone:first-child { left: -2%; }.screen-duo .phone-offset, .equipment-screens .phone-offset { right: -2%; top: 90px; }
  .stat-callout { align-items: flex-start; flex-direction: column; gap: 5px; }
  .map-stage { padding: 100px 18px; }.map-copy { margin-bottom: 48px; }.map-showcase { grid-template-columns: 1fr; gap: 55px; }.map-phone { width: min(330px, 88vw); margin: 0 auto; transform: none; }.map-features { grid-template-columns: 1fr 1fr; gap: 10px; }.map-features article { min-height: 178px; padding: 20px 16px; }.map-features h3 { font-size: 15px; }
  .drawer-chapter { grid-template-columns: 1fr; }.drawer-screen { order: 1; }.drawer-screen::before { width: 340px; height: 340px; }.drawer-screen .phone { width: min(310px, 82vw); }
  .verriere-story { grid-template-columns: 1fr; }.verriere-photo { min-height: 540px; }.verriere-photo::after { background: linear-gradient(0deg, #2b1e14 0%, transparent 45%); }.verriere-photo img { object-position: top center; }.verriere-copy { padding: 45px 22px 95px; }
  .equipment-chapter { grid-template-columns: 1fr; }.equipment-chapter .chapter-copy { order: 0; }.equipment-screens { order: 1; }.equipment-screens .phone { width: min(235px, 64vw); }
  .more-features { padding: 100px 18px; }.feature-cloud { grid-template-columns: 1fr; }.feature-cloud article { min-height: 210px; }
  .cds-section { padding: 100px 18px; }.cds-flow { grid-template-columns: 1fr; }.cds-flow i { transform: rotate(90deg); justify-self: center; }.cds-flow article { min-height: 190px; }.cds-flow h3 { margin-top: 28px; }
  .final-cta { min-height: 680px; padding: 105px 18px; }.audience-cards { grid-template-columns: 1fr; }
  footer { align-items: flex-start; flex-direction: column; gap: 16px; } footer nav { margin-left: 0; }
}

@media (max-width: 420px) {
  .hero-tags { display: grid; grid-template-columns: 1fr 1fr; }.hero-tags li:last-child { grid-column: 1 / -1; text-align: center; }
  .trust-strip { grid-template-columns: 1fr 1fr; }.trust-strip div { align-items: flex-start; flex-direction: column; }
  .map-features { grid-template-columns: 1fr; }.map-features article { min-height: 0; }
  .mini-grid { grid-template-columns: 1fr; }
}

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

/* --- Icônes : la police déjà servie à la racine, celle de l'application ------------------
   Mêmes glyphes que dans l'app (terrain = pentes, explore = boussole...), donc aucune icône
   inventée pour le site. Le fichier est dans la coquille PWA : il est déjà en cache. */
@font-face { font-family: 'TG Icons'; src: url('/material-icons.ttf') format('truetype'); font-display: block; }
.mi { font-family: 'TG Icons'; font-weight: 400; font-style: normal; line-height: 1; letter-spacing: normal; text-transform: none; white-space: nowrap; direction: ltr; -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased; }
.feature-icon .mi { font-size: 23px; }
.feature-cloud b .mi { font-size: 22px; }

/* Logo FFS dans l'en-tête : posé tel quel, sans pastille ni fond. Le PNG est transparent et
   son cercle vert reste lisible sur la barre sombre. */
.header-ffs { flex: 0 0 auto; width: auto; height: 34px; margin-left: 4px; }

/* --- 06 Cotation : les visuels de la grille publique ------------------------------------ */
.rating-stage { padding: 140px max(5vw, 26px); background: var(--cream); }
.rating-stage h2 { font-size: clamp(44px, 5vw, 72px); line-height: 1; }
.rating-stage h2 em { color: var(--green-dark); }
.rating-head { width: min(1100px, 100%); margin: 0 auto 60px; }
.rating-head > p:not(.section-number) { max-width: 840px; color: var(--muted); font-size: 17px; line-height: 1.8; }
.rating-shot { width: min(1192px, 100%); margin: 0 auto; overflow: hidden; border-radius: 26px; background: #fff; box-shadow: 0 26px 70px rgba(16,37,34,.10); }
.rating-shot img { width: 100%; height: auto; }
.rating-wide { margin-bottom: 22px; }
.rating-stage > .rating-shot:not(.rating-wide) { margin-bottom: 60px; }
.rating-detail { width: min(1192px, 100%); display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: 56px; margin: 0 auto; }
.rating-detail .rating-shot { width: 100%; }
.rating-copy h3 { margin: 0 0 18px; font-size: clamp(26px, 3vw, 36px); line-height: 1.12; letter-spacing: -.04em; }
.rating-copy p { margin: 0 0 20px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.rating-copy .button { margin-top: 10px; }

/* --- 07 Sécurité : SSF Alerte et sonnette ----------------------------------------------- */
.safety-stage {
  padding: 140px max(6vw, 34px); color: #fff; overflow: hidden;
  background:
    radial-gradient(circle at 14% 10%, rgba(199,42,42,.18), transparent 33%),
    radial-gradient(circle at 86% 76%, rgba(36,180,106,.12), transparent 31%),
    linear-gradient(160deg, #0a1f1d 0%, #14100f 72%);
}
.safety-stage h2 { font-size: clamp(44px, 5vw, 72px); line-height: 1; }
.safety-stage h2 em { color: var(--lime); }
.safety-head { width: min(1100px, 100%); margin: 0 auto 70px; }
.safety-head > p:not(.section-number) { max-width: 800px; color: rgba(255,255,255,.66); font-size: 17px; line-height: 1.8; }
.safety-split { width: min(1180px, 100%); display: grid; grid-template-columns: 360px 1fr; align-items: center; gap: 80px; margin: 0 auto 120px; }
.safety-phone { width: 330px; max-width: 100%; border-color: #3b2422; transform: rotate(-2deg); box-shadow: 0 40px 100px rgba(0,0,0,.5); }
.safety-copy h3, .sonnette-intro h3 { display: flex; align-items: center; gap: 15px; margin: 0 0 20px; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.045em; }
/* Le logo SSF est posé sans pastille : c'est lui l'emblème, pas un carré de couleur. */
.safety-copy h3 img { flex: 0 0 auto; width: 58px; height: 58px; object-fit: contain; }
.sonnette-intro h3 .mi { display: grid; place-items: center; flex: 0 0 auto; width: 50px; height: 50px; border-radius: 16px; color: #fff; font-size: 26px; background: var(--green-dark); }
.safety-copy > p { margin: 0 0 24px; color: rgba(255,255,255,.68); font-size: 16px; line-height: 1.8; }
.safety-copy > p strong { color: #fff; }
.feature-list.light li { color: rgba(255,255,255,.72); }
.feature-list.light li::before { color: var(--lime); }

.sonnette-block { width: min(1180px, 100%); margin: 0 auto; }
.sonnette-intro { max-width: 840px; margin: 0 0 56px; }
.sonnette-intro p { margin: 0; color: rgba(255,255,255,.66); font-size: 16px; line-height: 1.8; }
.sonnette-intro strong { color: #fff; }
.sonnette-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 0; margin: 0; list-style: none; }
.sonnette-steps li { display: flex; flex-direction: column; align-items: flex-start; padding: 26px; border: 1px solid rgba(255,255,255,.1); border-radius: 26px; background: rgba(255,255,255,.05); }
.sonnette-steps .phone { width: 100%; max-width: 232px; margin: 0 auto 26px; border-width: 7px; border-radius: 34px; }
.sonnette-steps span { color: var(--lime); font-size: 12px; font-weight: 900; letter-spacing: .18em; }
.sonnette-steps h4 { margin: 10px 0 8px; font-size: 19px; letter-spacing: -.025em; }
.sonnette-steps p { margin: 0; color: rgba(255,255,255,.6); font-size: 13px; line-height: 1.65; }

/* --- Espace de gestion, dans la section des structures ---------------------------------- */
.gestion-showcase { width: min(1150px, 100%); display: grid; grid-template-columns: .8fr 1fr; align-items: center; gap: 56px; margin: 0 auto 48px; }
.gestion-showcase figure { margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.gestion-showcase img { width: 100%; height: auto; }
.gestion-showcase h3 { margin: 0 0 16px; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -.035em; }
.gestion-showcase p { margin: 0 0 16px; color: rgba(255,255,255,.65); font-size: 15px; line-height: 1.8; }
.quiet-note.light { padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.5); }

@media (max-width: 1180px) {
  .site-header nav { gap: 18px; }
  .site-header nav a { font-size: 12px; }
}

@media (max-width: 1040px) {
  .safety-split { grid-template-columns: 300px 1fr; gap: 46px; }
  .safety-phone { width: 290px; }
  .rating-detail { gap: 40px; }
  .header-ffs { height: 30px; }
}

@media (max-width: 760px) {
  .header-ffs { height: 26px; margin-left: 2px; }
  .safety-stage { padding: 100px 18px; }
  .safety-head { margin-bottom: 48px; }
  .safety-head > p:not(.section-number), .rating-head > p:not(.section-number) { font-size: 15px; }
  .safety-split { grid-template-columns: 1fr; gap: 46px; margin-bottom: 90px; }
  .safety-phone { width: min(300px, 82vw); margin: 0 auto; transform: none; }
  .safety-copy h3 img { width: 46px; height: 46px; }
  .sonnette-intro h3 .mi { width: 42px; height: 42px; font-size: 22px; }
  .sonnette-steps { grid-template-columns: 1fr; }
  .sonnette-steps .phone { max-width: min(260px, 70vw); }
  .rating-stage { padding: 100px 18px; }
  .rating-head { margin-bottom: 44px; }
  .rating-shot { border-radius: 20px; }
  .rating-detail { grid-template-columns: 1fr; gap: 40px; }
  .rating-copy p { font-size: 15px; }
  .gestion-showcase { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 400px) {
  .header-ffs { display: none; }
}

/* --- 03 Tiroir à grottes : les pastilles reprennent les icônes de la carte cavité --------
   Mêmes glyphes et même corail (#FF5A5F) que dans l'application : profondeur, durée, route,
   marche. L'ancrage n'est pas une icône Material mais le logo broche du projet ; l'app le
   teinte avec ColorFilter.tint, on fait pareil ici avec un masque plutôt qu'un filtre
   approximatif - le masque n'utilise que la couche alpha, donc le rendu est identique. */
.mini-grid span { display: flex; align-items: center; gap: 10px; }
.mini-grid .mi { flex: 0 0 auto; color: #ff5a5f; font-size: 20px; }
.anchor-ico {
  flex: 0 0 auto; width: 20px; height: 20px; background: #ff5a5f;
  -webkit-mask: url('assets/logo-broche.png') center / contain no-repeat;
  mask: url('assets/logo-broche.png') center / contain no-repeat;
}

/* --- Repli iPhone : il n'y a pas d'app native, mais la PWA existe -----------------------
   Les trois appels a l'action menaient tous au Play Store : un visiteur iPhone n'avait
   aucune porte de sortie alors que la version web s'installe sur l'ecran d'accueil. */
.ios-note { display: flex; align-items: flex-start; gap: 11px; max-width: 620px; margin: 22px 0 0; color: rgba(255,255,255,.62); font-size: 13.5px; line-height: 1.6; }
.ios-note .mi { flex: 0 0 auto; margin-top: 1px; color: var(--lime); font-size: 19px; }
.ios-note a { color: #fff; font-weight: 800; text-underline-offset: 3px; }

/* Trois portes de sortie au lieu de deux : spéléo Android, iPhone, structure. */
/* Enfermee dans un min-width : posee a plat, cette regle passait APRES le bloc
   @media (max-width: 760px) plus haut dans le fichier et gagnait donc sur telephone,
   ou les trois cartes restaient sur une seule ligne, libelles tronques. */
@media (min-width: 761px) {
  .audience-cards { width: min(1080px, 100%); grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .ios-note { font-size: 13px; }
}

/* --- Acces direct a l'application web ---------------------------------------------------
   L'en-tete ne proposait que le Play Store : un visiteur sur ordinateur n'avait aucun moyen
   de deviner que TaupOGuide tourne aussi dans son navigateur, sans rien installer. */
.header-web { margin-left: 12px; padding: 12px 16px; border: 1px solid rgba(255,255,255,.22); border-radius: 14px; color: #fff; font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; transition: background .18s ease; }
.header-web:hover { background: rgba(255,255,255,.09); }
.hero-actions .button.ghost .mi { margin-right: 9px; font-size: 18px; }

/* Sous 900 px il ne reste que la place du bouton d'installation ; le bouton du heros et la
   note iPhone prennent le relais. */
@media (max-width: 900px) { .header-web { display: none; } }

/* --- Photo pleine bande de la Verriere --------------------------------------------------
   C'est desormais la vraie photographie (paysage 4:3), plus une capture de telephone.
   "top center" cadrait le haut d'une image verticale ; sur une image large il coupait le
   miroir d'eau, qui est le sujet. On recentre. */
.verriere-photo img { object-position: center center; }

/* Les figures de la grille peuvent porter un <picture> (cadrage mobile dedie). */
.rating-shot picture { display: block; }
.rating-shot picture img { width: 100%; height: auto; }

@media (max-width: 760px) {
  .verriere-photo img { object-position: center center; }
}

/* --- La roue des cinq criteres, construite et tournante --------------------------------
   Sur telephone on ne montre plus une image : la roue est batie aux dimensions de l ecran,
   avec les pictogrammes SVG et les couleurs de /grille. Elle TOURNE : chaque critere vient
   a son tour en haut, grossit, pendant que la legende sous la roue prend sa couleur et
   annonce les deux bouts de son echelle. */
.criteria-wheel { display: none; position: relative; width: min(370px, 100%); aspect-ratio: 1 / 1.06; margin: 0 auto; }
.cw-orbit { position: absolute; left: 50%; top: 48%; width: 70%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 1px dashed rgba(16,37,34,.18); border-radius: 50%; }

/* La bague porte les emblemes et pivote ; le contenu de chaque embleme pivote d autant en
   sens inverse, sinon les noms defileraient la tete en bas. */
.cw-ring { position: absolute; inset: 0; transform: rotate(var(--rot, 0deg)); transition: transform .95s cubic-bezier(.45,.02,.2,1); }
.cw-item { position: absolute; left: var(--x); top: var(--y); width: 92px; transform: translate(-50%, -50%); text-align: center; }
.cw-inner { display: block; transform: rotate(calc(-1 * var(--rot, 0deg))) scale(.84); opacity: .58; transition: transform .95s cubic-bezier(.45,.02,.2,1), opacity .6s ease; }
.cw-item.is-active .cw-inner { transform: rotate(calc(-1 * var(--rot, 0deg))) scale(1.24); opacity: 1; }

.cw-mark {
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 7px;
  border-radius: 50%; color: var(--c); background: var(--tint);
  box-shadow: 0 6px 16px rgba(16,37,34,.10); transition: box-shadow .6s ease;
}
.cw-item.is-active .cw-mark { box-shadow: 0 10px 26px rgba(16,37,34,.16), 0 0 0 5px color-mix(in srgb, var(--c) 16%, transparent); }
.cw-mark svg { width: 30px; height: 30px; }
.cw-item b { display: block; font-size: 12.5px; line-height: 1.2; letter-spacing: -.015em; }
.cw-item small { display: block; margin-top: 1px; color: var(--muted); font-size: 10px; }

.cw-core {
  position: absolute; left: 50%; top: 48%; width: 36%; aspect-ratio: 1; transform: translate(-50%, -50%);
  display: grid; place-content: center; gap: 1px; border-radius: 50%; text-align: center;
  background: var(--night); color: #fff; box-shadow: 0 14px 34px rgba(7,26,25,.28);
}
.cw-core b { color: var(--lime); font-size: 33px; line-height: 1; letter-spacing: -.04em; }
.cw-core i { font-size: 8px; font-style: normal; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; opacity: .78; }

/* La legende change avec l embleme mis en avant. */
.cw-caption { display: none; width: min(370px, 100%); margin: 6px auto 0; text-align: center; }
.cw-caption b { display: block; color: var(--cap, var(--ink)); font-size: 21px; letter-spacing: -.03em; transition: color .5s ease; }
.cw-caption span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.cw-caption i { color: var(--cap, var(--ink)); font-style: normal; font-weight: 900; padding: 0 5px; }

@media (max-width: 760px) {
  .rating-wheel { display: none; }              /* l image large */
  .criteria-wheel, .cw-caption { display: block; }
}
@media (max-width: 360px) {
  .cw-item { width: 84px; }
  .cw-mark { width: 50px; height: 50px; }
  .cw-mark svg { width: 27px; height: 27px; }
  .cw-item b { font-size: 11.5px; }
  .cw-caption b { font-size: 19px; }
}

/* Entree en scene, avant que la roue ne se mette a tourner. */
.js .criteria-wheel.reveal { opacity: 1; transform: none; }
.js .criteria-wheel .cw-orbit { opacity: 0; transform: translate(-50%, -50%) scale(.78); transition: opacity .5s ease, transform .7s cubic-bezier(.2,.8,.3,1); }
.js .criteria-wheel .cw-core { opacity: 0; transform: translate(-50%, -50%) scale(.7); transition: opacity .45s ease, transform .6s cubic-bezier(.2,.9,.3,1.25); }
.js .criteria-wheel .cw-item { opacity: 0; transition: opacity .45s ease calc(.15s + var(--i) * .1s); }
.js .criteria-wheel.is-visible .cw-orbit,
.js .criteria-wheel.is-visible .cw-core { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.js .criteria-wheel.is-visible .cw-item { opacity: 1; }

/* Animations reduites : la roue s affiche en entier et NE TOURNE PAS (showcase.js ne lance pas
   le minuteur). Le bloc d origine ne connait que .reveal, d ou ces regles explicites : sans
   elles, la roue resterait invisible chez qui a desactive les animations. */
@media (prefers-reduced-motion: reduce) {
  .js .criteria-wheel .cw-orbit,
  .js .criteria-wheel .cw-core { opacity: 1 !important; transform: translate(-50%, -50%) scale(1) !important; }
  .js .criteria-wheel .cw-item { opacity: 1 !important; }
  .js .criteria-wheel .cw-inner { transform: none !important; opacity: 1 !important; }
}
