/*
 * ESOYA — proposition de direction artistique web 2026
 * Socle : Bilan entrepreneurial · marque mère
 * Intention : une page blanche ouverte par ESOYA, un bleu de structure,
 * un orange de mouvement et les cinq couleurs réservées aux scans ciblés.
 */

@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("fonts/playfair-display-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("fonts/playfair-display-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("fonts/playfair-display-600-italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 600;
  font-display: swap;
}

:root {
  --taupe: #2a1a01;
  --ink: #201d1a;
  --ink-soft: #625e59;
  --blue: #1f4779;
  --blue-deep: #17365d;
  --blue-night: #102640;
  --blue-soft: #eef3f8;
  --orange: #fe943d;
  --orange-deep: #b85612;
  --orange-soft: #fff1e6;
  --sand: #f7f3ed;
  --paper: #ffffff;
  --white: #ffffff;
  --line: #ded7cf;
  --line-light: rgba(255, 255, 255, 0.2);
  --shadow: 0 18px 50px rgba(34, 27, 19, 0.09);
  --shadow-soft: 0 8px 24px rgba(34, 27, 19, 0.065);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shell: 1180px;
  --header-height: 124px;
  --font-sans: "Montserrat", Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --pilotage: #5da66a;
  --pilotage-ink: #2e6e3c;
  --positionnement: #f2c230;
  --positionnement-ink: #765a00;
  --modele: #8659c4;
  --modele-ink: #603a94;
  --organisation: #d94f86;
  --organisation-ink: #963255;
  --metiers: #3c8bc0;
  --metiers-ink: #1e638e;
}

html {
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  color: var(--ink);
  background: var(--sand);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.96rem + 0.16vw, 1.075rem);
  line-height: 1.68;
}

p,
li {
  text-wrap: pretty;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1,
h2 {
  font-family: var(--font-serif);
  font-weight: 700;
}

h1 {
  max-width: 900px;
  margin-bottom: 28px;
  font-size: clamp(3rem, 5.5vw, 5.35rem);
  line-height: 0.99;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.2rem, 4vw, 3.75rem);
  line-height: 1.06;
}

h3 {
  margin-bottom: 13px;
  font-size: clamp(1.25rem, 1.5vw, 1.6rem);
  font-weight: 700;
  line-height: 1.22;
}

h1 em,
h2 em {
  color: var(--orange);
  font-weight: 600;
}

.shell {
  width: min(calc(100% - 56px), var(--shell));
}

.section {
  padding: clamp(84px, 9vw, 128px) 0;
}

.section-heading {
  margin-bottom: 48px;
}

.section-heading > p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: clamp(1rem, 0.94rem + 0.25vw, 1.12rem);
  line-height: 1.72;
}

.section-dark {
  color: var(--white);
  background: var(--blue-deep);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.closing-section h2,
.closing-section h3 {
  color: var(--white);
}

/* Cette section reste sur papier clair : les titres doivent conserver un
   contraste franc, quelle que soit la largeur de la fenêtre. */
.first-step-copy h2 {
  color: var(--blue-deep);
}

.boarding-route h3 {
  color: var(--ink);
}

.boarding-card h3 {
  color: var(--white);
}

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

.eyebrow,
.card-label,
.step-kicker,
.offer-level {
  color: var(--orange-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.105em;
  line-height: 1.35;
}

.eyebrow {
  gap: 9px;
  margin-bottom: 17px;
}

.eyebrow::before {
  width: 18px;
  height: 17px;
  flex: 0 0 auto;
  background: url("brand/picto-esoya.svg") center / contain no-repeat;
  content: "";
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.78);
}

.button {
  min-height: 52px;
  padding: 14px 22px;
  color: var(--taupe);
  background: var(--orange);
  border-color: var(--orange);
  border-radius: 13px;
  box-shadow: 0 8px 20px rgba(216, 102, 21, 0.18);
  font-size: 0.9rem;
  font-weight: 700;
}

.button:hover,
.button:focus-visible {
  background: #ffab64;
  box-shadow: 0 12px 28px rgba(216, 102, 21, 0.24);
}

.button-small {
  min-height: 42px;
  padding: 10px 16px;
  font-size: 0.79rem;
}

.text-link {
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 700;
}

.text-link-light {
  color: var(--white);
}

/* En-tête : le taupe s'arrête au centre du O ; le blanc ouvre la suite. */
.site-header {
  height: var(--header-height);
  color: var(--white);
  background: var(--blue-deep);
  border-bottom: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 8px 28px rgba(16, 38, 64, 0.14);
}

.site-header.is-scrolled {
  background: var(--blue-deep);
  box-shadow: 0 10px 32px rgba(16, 38, 64, 0.2);
}

.brandline {
  position: relative;
  display: flex;
  width: 100%;
  height: 58px;
  align-items: stretch;
  background: var(--blue-deep);
  isolation: isolate;
}

.brandline::before {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 133px;
  background: var(--white);
  content: "";
}

.brandline .brand {
  z-index: 1;
  width: 266px;
  height: 58px;
  flex: 0 0 266px;
  padding: 0;
  border-radius: 0;
}

.brandline .brand-logo {
  width: 266px;
  height: 58px;
  max-width: none;
  object-fit: fill;
  border-radius: 0;
}

.brand-ribbon {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding: 0 clamp(20px, 4vw, 58px) 0 24px;
  color: var(--taupe);
  background: transparent;
  white-space: nowrap;
}

.brand-ribbon span,
.brand-ribbon strong {
  font-size: clamp(0.68rem, 0.6rem + 0.18vw, 0.78rem);
  line-height: 1.2;
}

.brand-ribbon span {
  font-weight: 600;
}

.brand-ribbon strong {
  color: var(--orange-deep);
  font-weight: 700;
}

.brand-ribbon i {
  width: 1px;
  height: 23px;
  flex: 0 0 auto;
  background: #ddd4ca;
}

.header-inner {
  height: 66px;
  gap: 24px;
}

.main-nav {
  justify-content: flex-start;
  gap: clamp(16px, 2.2vw, 27px);
}

.main-nav a {
  color: rgba(255, 255, 255, 0.77);
  font-size: 0.79rem;
  font-weight: 600;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] {
  color: var(--white);
}

.header-cta {
  margin-left: auto;
}

.scroll-progress {
  height: 3px;
}

.scroll-progress span {
  background: var(--orange);
}

/* Ouverture : un grand récit et une fiche DPE lisible, comme dans le Bilan. */
.hero {
  min-height: 820px;
  padding: calc(var(--header-height) + 72px) 0 88px;
  background: var(--blue);
  border-bottom: 7px solid var(--orange);
}

.hero::before {
  position: absolute;
  top: calc(var(--header-height) + 42px);
  right: clamp(24px, 5vw, 80px);
  width: 74px;
  height: 7px;
  background: var(--orange);
  content: "";
}

.hero::after {
  display: none;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.16fr) minmax(360px, 0.84fr);
  align-items: center;
  gap: clamp(50px, 7vw, 90px);
}

.hero h1 {
  max-width: 780px;
  color: var(--white);
  font-size: clamp(3.15rem, 5.25vw, 5.2rem);
}

.hero-lead {
  max-width: 690px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.28rem);
  line-height: 1.65;
}

.hero-audience {
  max-width: 650px;
  margin-bottom: 30px;
  padding: 15px 18px;
  color: rgba(255, 255, 255, 0.78);
  background: #285486;
  border-left: 4px solid var(--orange);
  border-radius: 0 12px 12px 0;
  font-size: 0.9rem;
}

.founder-line {
  margin-top: 46px;
}

.founder-line p {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.75rem;
}

.founder-monogram {
  color: var(--taupe);
  background: var(--orange);
  border-color: var(--blue);
}

.founder-monogram-alt {
  color: var(--white);
  background: var(--blue-deep);
}

.hero-dpe-card {
  max-width: 500px;
  padding: clamp(30px, 3.4vw, 42px);
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(42, 26, 1, 0.14);
  border-top: 7px solid var(--orange);
  border-radius: 24px;
  box-shadow: 0 24px 62px rgba(16, 38, 64, 0.24);
}

.hero-dpe-card::after {
  display: none;
}

.hero-dpe-card .card-label {
  max-width: 290px;
  color: var(--blue);
}

.dpe-badge {
  display: block;
  width: 58px;
  height: 55px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
}

.hero-dpe-card h2 {
  margin: 32px 0 14px;
  color: var(--ink);
  font-size: clamp(2rem, 3vw, 2.75rem);
}

.hero-dpe-intro {
  margin-bottom: 26px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.hero-dpe-route {
  border-top-color: var(--line);
}

.hero-dpe-route li {
  padding: 16px 0;
  border-bottom-color: var(--line);
}

.hero-dpe-route li > span {
  color: var(--orange-deep);
  font-weight: 700;
}

.hero-dpe-route strong {
  color: var(--ink);
}

.hero-dpe-route small {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.hero-dpe-signature {
  margin-top: 24px;
  color: var(--blue);
  font-size: 1rem;
  font-weight: 700;
}

.trust-strip {
  color: var(--ink);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.trust-grid > div {
  min-height: 102px;
  border-right-color: var(--line);
}

.trust-grid strong {
  color: var(--blue);
  font-size: 2.35rem;
}

.trust-grid span {
  color: var(--ink-soft);
}

.passage-section {
  background: var(--sand);
}

.passage-rail::before {
  background: var(--blue);
}

.passage-rail span::before {
  background: var(--white);
  border-color: #e7edf3;
}

.symptom-card {
  position: relative;
  min-height: 172px;
  overflow: hidden;
  padding: 26px;
  background: var(--white);
  border-color: var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.symptom-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 52px;
  height: 5px;
  background: var(--orange);
  content: "";
}

.symptom-card p {
  color: var(--ink);
  font-size: clamp(1.08rem, 1.5vw, 1.32rem);
}

.turning-point {
  max-width: 880px;
  color: var(--white);
  background: var(--blue);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

/* Méthode : bleu structurant, orange réservé aux gestes et à l'action. */
.method-section {
  background: var(--blue-deep);
}

.method-section::before {
  display: none;
}

.method-picto {
  width: 58px;
  height: 55px;
  margin-top: 2px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
}

/* Dans l'en-tête de la méthode, le grand picto remplace le rappel de l'eyebrow :
   on évite ainsi deux signatures ESOYA côte à côte. */
.method-heading-main .eyebrow::before {
  display: none;
}

.method-heading-main .eyebrow {
  gap: 0;
}

.accent-statement {
  color: var(--orange) !important;
  border-left-color: var(--orange);
  font-size: clamp(1.7rem, 2.6vw, 2.55rem);
}

.dpe-definition,
.dpe-cycles article,
.method-step .step-deliverable,
.value-mini-grid {
  background: rgba(255, 255, 255, 0.07);
}

.step-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  box-sizing: border-box;
  border-width: 8px;
  line-height: 1;
  color: var(--taupe);
  background: var(--orange);
  border-color: var(--blue-deep);
}

.method-route::before {
  top: 31px;
}

.method-manifesto {
  background: #234d7c;
  border-left: 5px solid var(--orange);
  border-radius: 0 18px 18px 0;
}

/* Panorama et scans : l'univers maître ouvre, chaque scan prend sa couleur. */
.scans-section {
  background: var(--sand);
}

.panorama-card {
  background: var(--blue);
  border-radius: 24px;
}

.panorama-card h3 {
  color: var(--white);
}

.scan-introduction {
  display: block;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--orange);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.scan-introduction-summary {
  display: grid;
  grid-template-columns: minmax(170px, 0.32fr) minmax(0, 1fr);
  align-items: start;
  gap: 36px;
  padding: clamp(28px, 3.5vw, 42px);
  cursor: pointer;
  list-style: none;
}

.scan-introduction-summary::-webkit-details-marker {
  display: none;
}

.scan-introduction-summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: -6px;
}

.scan-introduction[open] .scan-introduction-summary {
  border-bottom: 1px solid var(--line);
}

.scan-introduction .card-label {
  color: var(--orange-deep);
}

.scan-introduction h3 {
  color: var(--ink);
}

.scan-introduction p {
  color: var(--ink-soft);
}

.scan-introduction-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  padding: 10px 14px;
  color: var(--blue-deep);
  background: var(--orange);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.2;
  text-transform: uppercase;
}

.scan-introduction-action i {
  font-style: normal;
  font-size: 1rem;
  transition: transform 180ms ease;
}

.scan-introduction[open] .scan-introduction-action i {
  transform: rotate(45deg);
}

.scan-introduction > .scan-grid {
  padding: clamp(24px, 3vw, 36px);
  background: var(--sand);
}

.scan-axis-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 22px;
}

.scan-axis-list li {
  --axis: var(--blue);
  --axis-soft: var(--blue-soft);
  display: grid;
  min-width: 0;
  min-height: 122px;
  align-content: space-between;
  gap: 12px;
  padding: 14px 12px 13px;
  color: var(--ink);
  background: var(--axis-soft);
  border: 1px solid var(--line);
  border-top: 4px solid var(--axis);
  border-radius: 14px;
  box-shadow: 0 5px 14px rgba(34, 27, 19, 0.05);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.28;
}

.scan-axis-list li::before {
  width: 42px;
  height: 40px;
  background: var(--axis-icon) center / contain no-repeat;
  border-radius: 0;
  content: "";
}

.scan-axis-list li:nth-child(1) {
  --axis: var(--pilotage);
  --axis-soft: #f2f8f3;
  --axis-icon: url("brand/picto-dpe-pilotage.svg");
}

.scan-axis-list li:nth-child(2) {
  --axis: var(--positionnement);
  --axis-soft: #fff9df;
  --axis-icon: url("brand/picto-dpe-positionnement.svg");
}

.scan-axis-list li:nth-child(3) {
  --axis: var(--metiers);
  --axis-soft: #edf6fb;
  --axis-icon: url("brand/picto-dpe-metiers-competences.svg");
}

.scan-axis-list li:nth-child(4) {
  --axis: var(--modele);
  --axis-soft: #f5f0fb;
  --axis-icon: url("brand/picto-dpe-modele-economique.svg");
}

.scan-axis-list li:nth-child(5) {
  --axis: var(--organisation);
  --axis-soft: #fcf0f5;
  --axis-icon: url("brand/picto-dpe-organisation-fonctionnement.svg");
}

.scan-library {
  margin-top: 30px;
}

.scan-library-summary {
  padding: 22px 26px;
  background: var(--blue-deep);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.scan-library-summary strong {
  font-size: 0.98rem;
}

.scan-library-summary small {
  font-size: 0.78rem;
}

.scan-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.scan-card {
  --axis: var(--blue);
  --axis-ink: var(--blue);
  min-height: 330px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--axis);
  border-radius: 19px;
  box-shadow: var(--shadow-soft);
}

.scan-card.scan-pilotage { --axis: var(--pilotage); --axis-ink: var(--pilotage-ink); }
.scan-card.scan-positionnement { --axis: var(--positionnement); --axis-ink: var(--positionnement-ink); }
.scan-card.scan-metiers { --axis: var(--metiers); --axis-ink: var(--metiers-ink); }
.scan-card.scan-modele { --axis: var(--modele); --axis-ink: var(--modele-ink); }
.scan-card.scan-organisation { --axis: var(--organisation); --axis-ink: var(--organisation-ink); }

.scan-card:nth-child(1),
.scan-card:nth-child(2),
.scan-card:nth-child(3) {
  grid-column: span 2;
}

.scan-card:nth-child(4),
.scan-card:nth-child(5) {
  grid-column: span 3;
}

.scan-card > summary {
  min-height: 330px;
  padding: 26px;
}

.scan-card-picto {
  width: 54px;
  height: 51px;
  margin-bottom: 24px;
  object-fit: contain;
}

.scan-card .card-label,
.scan-card .scan-open,
.scan-card .scan-detail-grid strong {
  color: var(--axis-ink);
}

.scan-card h3 {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2vw, 1.9rem);
}

.scan-card > summary > p:not(.card-label) {
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.58;
}

.scan-open {
  border-top-color: var(--line);
}

.scan-card[open] {
  border-color: var(--axis);
  box-shadow: var(--shadow);
}

.scan-detail-grid p {
  color: var(--ink-soft);
  font-size: 0.84rem;
}

/* Voyages clients : six histoires, six signatures. La composition reste dans
   le flux normal afin qu'aucun texte ne puisse chevaucher l'appel à ouvrir. */
.cases-section {
  background: #fbf9f6;
}

.case-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.case-card {
  --case-accent: var(--orange);
  --case-ink: var(--orange-deep);
  --case-soft: var(--orange-soft);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--case-accent);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.case-card.case-pilotage {
  --case-accent: var(--pilotage);
  --case-ink: var(--pilotage-ink);
  --case-soft: #f2f8f3;
}

.case-card.case-positionnement {
  --case-accent: var(--positionnement);
  --case-ink: var(--positionnement-ink);
  --case-soft: #fff9df;
}

.case-card.case-metiers {
  --case-accent: var(--metiers);
  --case-ink: var(--metiers-ink);
  --case-soft: #edf6fb;
}

.case-card.case-direction {
  --case-accent: var(--orange);
  --case-ink: #973d08;
  --case-soft: var(--orange-soft);
}

.case-card.case-modele {
  --case-accent: var(--modele);
  --case-ink: var(--modele-ink);
  --case-soft: #f5f0fb;
}

.case-card.case-organisation {
  --case-accent: var(--organisation);
  --case-ink: var(--organisation-ink);
  --case-soft: #fcf0f5;
}

.case-card:has(details[open]) {
  grid-column: 1 / -1;
  border-color: var(--case-accent);
  box-shadow: var(--shadow);
}

.case-card summary {
  display: flex;
  min-height: 465px;
  flex-direction: column;
  padding: 0;
}

.case-card summary:focus-visible {
  outline: 3px solid var(--case-accent);
  outline-offset: -3px;
}

.case-identity {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  overflow: hidden;
  background: var(--case-soft);
  border-bottom: 1px solid color-mix(in srgb, var(--case-accent) 24%, white);
}

/* Un tracé d'étape discret, suffisamment léger pour évoquer le voyage sans
   transformer les cartes en illustration thématique. */
.case-identity::after {
  position: absolute;
  top: 23px;
  right: 22px;
  width: 58px;
  height: 25px;
  border-top: 1px dashed var(--case-accent);
  border-right: 1px dashed var(--case-accent);
  border-radius: 0 18px 0 0;
  content: "";
  opacity: 0.42;
  pointer-events: none;
}

.case-identity::before {
  position: absolute;
  z-index: 1;
  top: 46px;
  right: 19px;
  width: 7px;
  height: 7px;
  background: var(--case-accent);
  border: 2px solid var(--case-soft);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.case-picto {
  display: block;
  width: 52px;
  height: 49px;
  object-fit: contain;
}

.case-meta {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  padding-right: 68px;
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
}

.case-topline {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.case-topline b {
  color: var(--case-ink);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
}

.case-axis {
  color: var(--case-ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  line-height: 1.3;
  text-transform: uppercase;
}

/* Un voyage peut croiser deux scans réels. L'orange reste la signature du
   parcours transversal ; les capsules réintroduisent les couleurs et
   pictogrammes officiels sans créer un axe supplémentaire. */
.case-axis-multi {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
  letter-spacing: 0;
  text-transform: none;
}

.case-multi-label {
  color: var(--case-ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  line-height: 1.2;
  text-transform: uppercase;
}

.case-scan-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.case-scan-tag {
  display: inline-flex;
  min-height: 28px;
  padding: 4px 9px 4px 6px;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  white-space: nowrap;
}

.case-scan-tag::before {
  width: 18px;
  height: 17px;
  flex: 0 0 18px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
}

.case-scan-metiers {
  color: var(--metiers-ink);
  background-color: #edf6fb;
}

.case-scan-metiers::before {
  background-image: url("brand/picto-dpe-metiers-competences.svg");
}

.case-scan-pilotage {
  color: var(--pilotage-ink);
  background-color: #f2f8f3;
}

.case-scan-pilotage::before {
  background-image: url("brand/picto-dpe-pilotage.svg");
}

.case-summary {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 28px 30px 26px;
}

.case-card h3 {
  max-width: 560px;
  margin-bottom: 16px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 2.45vw, 2.25rem);
  line-height: 1.1;
}

.case-card h3 em {
  color: var(--case-ink);
  font-style: normal;
  font-weight: 700;
}

.case-card summary .case-summary > p {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
}

.case-shift {
  display: grid;
  max-width: none;
  gap: 3px;
  margin-top: 22px;
  padding: 14px 16px;
  color: var(--ink);
  background: var(--case-soft);
  border: 0;
  border-left: 4px solid var(--case-accent);
  border-radius: 0 11px 11px 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

.case-shift small {
  color: var(--case-ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.case-shift strong {
  font-weight: 700;
}

.open-label {
  position: static;
  display: flex;
  right: auto;
  bottom: auto;
  left: auto;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 24px;
  color: var(--case-ink);
  border-top: 0;
  font-size: 0.875rem;
  font-weight: 700;
}

.open-label i {
  color: var(--white);
  background: var(--case-ink);
}

.case-card details[open] summary {
  min-height: auto;
  padding-bottom: 0;
}

.case-card details[open] .open-label span::after {
  font-size: 0.875rem;
}

.case-detail {
  padding: 32px clamp(28px, 5vw, 64px) 46px;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.case-detail blockquote {
  color: var(--white);
  background: var(--blue-deep);
  border-left: 6px solid var(--case-accent);
  border-radius: 0 18px 18px 0;
}

.case-outcome {
  padding: 22px 24px;
  background: var(--case-soft);
  border-left: 4px solid var(--case-accent);
  border-radius: 0 12px 12px 0;
}

/* Offres : trois engagements, une lecture stable et sans inflation visuelle. */
.offers-section {
  background: var(--white);
}

/* Le titre et son introduction appartiennent au même temps de lecture.
   On conserve l'asymétrie éditoriale, sans laisser une ligne fantôme
   créer un grand vide entre le surtitre et le texte d'introduction. */
.offers-heading {
  grid-template-columns: minmax(280px, 0.78fr) minmax(440px, 1.22fr);
  grid-template-rows: auto auto;
  align-items: start;
  column-gap: clamp(42px, 6vw, 84px);
  row-gap: 18px;
}

.offers-heading .eyebrow {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 0;
}

.offers-heading h2 {
  grid-column: 2;
  grid-row: 1 / span 2;
  max-width: 620px;
}

.offers-heading > p:not(.eyebrow) {
  grid-column: 1;
  grid-row: 2;
  max-width: 570px;
  margin: 0;
}

.offer-grid {
  gap: 16px;
}

.offer-card {
  min-height: 620px;
  padding: 32px;
  background: var(--white);
  border-color: var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.offer-featured {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-12px);
}

.offer-featured h3 {
  color: var(--white);
}

.offer-card h3 {
  font-size: 1.9rem;
}

.price {
  color: var(--blue);
  font-size: clamp(2.25rem, 3.3vw, 3.15rem);
}

.offer-card .price-detail {
  color: var(--blue-deep) !important;
  background: var(--blue-soft);
}

.offer-card li {
  font-size: 0.84rem;
  line-height: 1.5;
}

.offer-card li::before {
  top: 13px;
  width: 8px;
  height: 8px;
  background: url("brand/picto-esoya.svg") center / contain no-repeat;
  border-radius: 0;
}

/* Fermeture et pied de page : une signature, pas un second pictogramme.
   Le cercle blanc très discret de la composition initiale reste en arrière-plan. */
.closing-section {
  background: var(--blue-deep);
  border-top: 7px solid var(--orange);
}

.closing-logo {
  width: 250px;
  height: auto;
  object-fit: contain;
  border-radius: 0;
}

.site-footer {
  padding-top: 56px;
  background: var(--blue-night);
  border-top: 6px solid var(--orange);
}

.brand-footer {
  padding: 0;
  border-radius: 0;
}

.brand-logo-footer {
  width: 196px;
  height: auto;
  object-fit: contain;
  border-radius: 0;
}

.footer-grid p {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.8rem;
}

.footer-grid a,
.footer-button {
  font-size: 0.8rem;
}

/* Pages intérieures. */
.subpage-hero {
  padding-top: calc(var(--header-height) + 78px);
  padding-bottom: 82px;
  background: var(--blue);
  border-bottom: 7px solid var(--orange);
}

.subpage-hero h1 {
  color: var(--white);
  font-size: clamp(2.9rem, 5vw, 4.8rem);
}

.subpage-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.06rem;
}

.subpage-section {
  background: var(--white);
}

.contact-panel,
.territory-card,
.legal-content section {
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.territory-card h2 {
  position: relative;
  z-index: 1;
  color: var(--white);
}

/* Page privée de choix : même typographie et tarifs cohérents. */
.choice-header {
  background: var(--blue-deep);
  border-bottom: 4px solid var(--orange);
}

.choice-logo {
  height: auto;
  object-fit: contain;
  border-radius: 0;
}

.choice-hero {
  background: var(--blue);
}

.choice-offer {
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.choice-offer.is-featured {
  background: var(--blue);
}

@media (max-width: 1120px) {
  .brand-ribbon span,
  .brand-ribbon i {
    display: none;
  }

  .main-nav {
    gap: 17px;
  }

  .header-cta {
    font-size: 0.76rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
    gap: 42px;
  }

  .scan-axis-list {
    grid-template-columns: repeat(5, minmax(105px, 1fr));
    overflow-x: auto;
    padding-bottom: 8px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 108px;
  }

  .shell {
    width: min(calc(100% - 36px), var(--shell));
  }

  .brandline {
    height: 50px;
  }

  .brandline::before {
    left: 115px;
  }

  .brandline .brand {
    width: 230px;
    height: 50px;
    flex-basis: 230px;
  }

  .brandline .brand-logo {
    width: 230px;
    height: 50px;
  }

  .brand-ribbon {
    padding-right: 18px;
  }

  .brand-ribbon strong {
    font-size: 0.75rem;
  }

  .header-inner {
    height: 58px;
    justify-content: flex-end;
  }

  .header-cta {
    margin-left: 0;
  }

  .menu-button {
    display: block;
    order: 3;
    border-color: rgba(255, 255, 255, 0.34);
  }

  .main-nav {
    top: calc(var(--header-height) - 2px);
    color: var(--white);
    background: var(--blue-deep);
    border-color: rgba(255, 255, 255, 0.15);
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 64px);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero-dpe-card {
    max-width: 680px;
  }

  .offers-heading {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: 18px;
  }

  .offers-heading .eyebrow,
  .offers-heading h2,
  .offers-heading > p:not(.eyebrow) {
    grid-column: 1;
    grid-row: auto;
  }

  .offers-heading h2 {
    max-width: 680px;
  }

  .scan-introduction-summary {
    grid-template-columns: 1fr;
  }

  .scan-card:nth-child(1),
  .scan-card:nth-child(2),
  .scan-card:nth-child(3),
  .scan-card:nth-child(4),
  .scan-card:nth-child(5) {
    grid-column: span 3;
  }

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

  .case-card:has(details[open]) {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  :root {
    --header-height: 100px;
  }

  body {
    font-size: 16px;
  }

  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .section {
    padding: 72px 0;
  }

  h1 {
    font-size: clamp(2.65rem, 12vw, 3.75rem);
  }

  h2 {
    font-size: clamp(2rem, 9.8vw, 2.85rem);
  }

  .brandline {
    height: 44px;
  }

  .brandline::before {
    left: 101px;
  }

  .brandline .brand {
    width: 202px;
    height: 44px;
    flex-basis: 202px;
  }

  .brandline .brand-logo {
    width: 202px;
    height: 44px;
  }

  .brand-ribbon {
    padding: 0 11px;
  }

  .brand-ribbon strong {
    max-width: 150px;
    font-size: 0.68rem;
    line-height: 1.18;
    white-space: normal;
    text-align: right;
  }

  .header-inner {
    height: 56px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding: calc(var(--header-height) + 50px) 0 72px;
  }

  .hero::before {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 12vw, 3.8rem);
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-dpe-card {
    padding: 27px 24px;
    border-radius: 20px;
  }

  .hero-dpe-card h2 {
    font-size: 2rem;
  }

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

  .trust-grid > div,
  .trust-grid > div:nth-child(2) {
    min-height: 96px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .trust-grid > div:nth-child(even) {
    border-right: 0;
  }

  .trust-grid strong {
    font-size: 2rem;
  }

  .scan-axis-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .scan-axis-list li:last-child {
    grid-column: 1 / -1;
  }

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

  .scan-card:nth-child(1),
  .scan-card:nth-child(2),
  .scan-card:nth-child(3),
  .scan-card:nth-child(4),
  .scan-card:nth-child(5) {
    grid-column: auto;
  }

  .scan-card,
  .scan-card > summary {
    min-height: auto;
  }

  .offer-card {
    min-height: auto;
  }

  .case-card summary {
    min-height: auto;
  }

  .case-identity {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 13px;
    padding: 18px 22px;
  }

  .case-identity::before,
  .case-identity::after {
    display: none;
  }

  .case-meta {
    padding-right: 0;
  }

  .case-picto {
    width: 46px;
    height: 43px;
  }

  .case-summary {
    padding: 24px 22px 22px;
  }

  .case-card h3 {
    font-size: clamp(1.65rem, 8vw, 2.15rem);
  }

  .case-detail {
    padding: 26px 22px 34px;
  }

  .subpage-hero {
    padding-top: calc(var(--header-height) + 56px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .button:hover,
  .button:focus-visible {
    transform: none;
  }
}
