/* ESOYA — ajustements de composition du 30 septembre 2026.
 * Hiérarchie visuelle complémentaire à la charte typographique.
 * L'en-tête et les histoires clients restent inchangés.
 */

/* Résumé des scans : cinq objets compacts, une seule ligne sur grand écran. */
body .scan-introduction-summary {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
body .scan-introduction-summary > div { min-width: 0; }
body .scan-introduction-summary > div:first-child {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 24px;
}
body .scan-introduction-summary .card-label,
body .scan-introduction-summary h3 { margin: 0; }
body .scan-introduction-summary h3 { color: var(--blue); font-weight: 700; }
body .scan-introduction-summary > div:first-child h3 { flex: 1 0 260px; }
body .scan-axis-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 24px;
  padding: 0;
  overflow: visible;
}
body .scan-axis-list li {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 80px;
  padding: 14px 12px;
  border-top-width: 3px;
  border-radius: 12px;
  font-size: var(--label);
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: normal;
  box-shadow: none;
}
body .scan-axis-list li::before {
  width: 30px;
  height: 29px;
  flex: 0 0 30px;
}
body .scan-axis-list li:last-child { grid-column: auto; }

/* Titres de rubriques : une pile centrée, sans colonne fantôme. */
body .offers-heading, body .cases-heading, body .duo-heading {
  display: block;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 40px;
  text-align: center;
}
body .offers-heading .eyebrow, body .cases-heading .eyebrow,
body .duo-heading .eyebrow { justify-content: center; margin: 0 0 16px; }
body .offers-heading h2, body .cases-heading h2, body .duo-heading h2 {
  max-width: none;
  margin: 0 0 24px;
}
body .offers-heading > p:not(.eyebrow), body .cases-heading > p {
  max-width: 68ch;
  margin: 0 auto;
  text-align: center;
}
body .offers-heading h2, body .cases-heading h2 { color: var(--blue); }

/* Offres : prix et titres affirmés, surfaces contrastées, actions alignées. */
body .offer-card {
  border-top: 4px solid var(--orange);
  padding: 28px;
  background: var(--blue-soft);
}
body .offer-card h3 { color: var(--blue); font-weight: 700; }
body .offer-card .offer-level {
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 16px;
}
body .offer-card .offer-subtitle {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.5;
}
body .offer-card .price { color: var(--blue); font-weight: 700; margin: 24px 0; }
body .offer-card .price small { color: var(--blue-deep); font-weight: 600; }
body .offer-featured { background: var(--blue); border-color: var(--blue); border-top-color: var(--orange); }
body .offer-featured h3, body .offer-featured .offer-level,
body .offer-featured .offer-subtitle, body .offer-featured .price small { color: var(--white); }
body .offer-featured .price { color: var(--orange); }
body .offer-featured > p:not(.offer-level):not(.offer-subtitle):not(.price),
body .offer-featured li { color: var(--white); }
body .offer-featured .featured-label {
  position: absolute;
  top: -16px;
  left: 28px;
  right: auto;
  width: max-content;
  max-width: calc(100% - 56px);
  margin: 0;
  font-weight: 700;
}
body .offer-card strong { color: var(--blue); }
body .offer-featured strong { color: var(--white); }

/* Méthode : définition, deux temps et trois étapes bien séparés. */
body .method-section .split-heading {
  width: 100%;
  max-width: none;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .4fr);
  gap: 40px;
  align-items: center;
  margin-bottom: 32px;
}
body .method-heading-main > div { min-width: 0; }
body .method-heading-main h2 { margin-bottom: 0; }
body .method-section .accent-statement { margin: 0; font-weight: 600; }
body .method-intro { max-width: 76ch; margin: 0 0 32px; color: var(--white); }
body .dpe-definition {
  display: block;
  margin: 0 0 32px;
  padding: 24px 28px;
  background: var(--blue-soft);
  border: 0;
  border-left: 5px solid var(--orange);
  border-radius: 0 16px 16px 0;
}
body .method-section .dpe-definition .card-label {
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 12px;
}
body .dpe-definition p:last-child { color: var(--blue-deep); margin: 0; }
body .dpe-cycles { gap: 24px; margin-bottom: 48px; }
body .dpe-cycles article {
  background: var(--white);
  padding: 32px;
  border: 0;
  border-top: 5px solid var(--orange);
  border-radius: 16px;
}
body .method-section .dpe-cycles .card-label {
  display: inline-block;
  margin: 0 0 20px;
  padding: 8px 12px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 6px;
  font-weight: 700;
}
body .dpe-cycles h3 { color: var(--blue); font-weight: 700; }
body .dpe-cycles p:last-child { color: var(--ink); }
body .method-engine-label { text-align: center; max-width: 44ch; margin: 0 auto 32px; font-weight: 600; }
body .method-route {
  --step-diameter: 64px;
  --route-gap: 24px;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: var(--route-gap);
  align-items: stretch;
}
body .method-step {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  min-width: 0;
}
body .method-step .step-dot {
  position: relative;
  inset: auto;
  justify-self: center;
  width: 64px;
  min-width: 64px;
  max-width: 64px;
  height: 64px;
  flex-shrink: 0;
  margin: 0 auto 16px;
  border-color: var(--blue-deep);
}
body .method-step:not(:last-child)::before {
  display: block;
  top: calc(var(--step-diameter) / 2);
  left: calc(50% + var(--step-diameter) / 2);
  width: calc(100% + var(--route-gap) - var(--step-diameter));
  height: 1px;
  background: rgba(255,255,255,.75);
}
body .method-section .method-step .step-kicker {
  color: var(--white);
  font-size: var(--small);
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  min-height: 4.5rem;
  margin: 0 8px 24px;
  flex-shrink: 0;
}
body .method-step .step-kicker span { display: block; white-space: normal; }
body .method-section .step-kicker .step-separator {
  color: var(--orange);
  font-size: 1.5rem;
  line-height: .75;
  font-weight: 700;
  margin: 3px 0;
}
body .method-step-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 28px;
  background: var(--white);
  border-radius: 16px;
  color: var(--ink);
  text-align: center;
}
body .method-step-card h3 {
  color: var(--blue);
  font-weight: 700;
  text-align: center;
  min-height: 94px;
  margin: 0 0 20px;
  flex-shrink: 0;
}
body .method-step-card > p { color: var(--ink); margin: 0 0 24px; flex-shrink: 0; }
body .method-step-card .step-deliverable {
  margin: auto 0 0;
  color: var(--ink);
  background: var(--blue-soft);
  padding: 16px;
  border: 0;
  border-top: 3px solid var(--orange);
  border-radius: 0 0 8px 8px;
  text-align: center;
}
body .method-step .step-deliverable strong { color: var(--blue); }
body .method-manifesto { max-width: none; }

/* Duo : retrouver les repères orange et aligner le récit sur les deux cartes. */
body .person-card { min-height: 0; border-top: 4px solid var(--orange); }
body .person-mark { margin-bottom: 24px; }
body .duo-section .person-card .card-label { color: var(--orange); font-weight: 700; }
body .person-card h3 { color: var(--white); font-weight: 700; }
body .person-copy p { color: rgba(255,255,255,.9); }
body .person-copy strong { color: var(--white); }
body .duo-story {
  display: block;
  width: 100%;
  max-width: 68ch;
  margin: 48px auto 0;
  padding: 32px 0 0;
  text-align: left;
}
body .duo-story p { color: rgba(255,255,255,.9); padding: 0; margin: 0 0 24px; text-align: left; }
body .duo-story p:last-child { margin-bottom: 0; }
body .person-copy { text-align: left; }
body .duo-story strong { color: var(--orange); }

/* Quelques accents de lecture, sans multiplier les couleurs de texte. */
body .first-step-copy .large-copy { color: var(--blue); }
body .first-step-copy > p strong { color: var(--blue); }
body .boarding-route h3 { color: var(--blue); font-weight: 700; }

@media (max-width:1100px) {
  body .scan-axis-list li { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 8px; min-height: 0; }
  body .method-section .split-heading { grid-template-columns: minmax(0,1fr); gap: 24px; }
  body .method-section .accent-statement { max-width: none; }
}
@media (max-width:700px) {
  body .duo-grid { grid-template-columns: minmax(0,1fr); }
  body .scan-axis-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  body .scan-axis-list li { flex-direction: row; align-items: center; min-height: 76px; padding: 12px; }
  body .scan-axis-list li:last-child { grid-column: 1/-1; }
  body .dpe-cycles { grid-template-columns: minmax(0,1fr); }
  body .duo-story { grid-template-columns: minmax(0,1fr); gap: 24px; }
  body .duo-story p { padding: 0; }
  body .offers-heading, body .cases-heading, body .duo-heading { margin-bottom: 32px; }
}
@media (max-width:900px) {
  body .panorama-summary { grid-template-columns: minmax(0,1fr); gap: 24px; }
  body .panorama-note { grid-column: 1; justify-self: start; }
}
@media (min-width:701px) and (max-width:900px) {
  body .scan-axis-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
  body .scan-axis-list li { flex-direction: row; align-items: center; min-height: 76px; }
}
@media (max-width:620px) {
  body .scan-introduction-summary > div:first-child { display: block; }
  body .scan-introduction-summary .card-label { margin-bottom: 12px; }
  body .scan-introduction-summary { padding: 20px; }
  body .scan-axis-list li { gap: 8px; padding: 10px; font-size: var(--label); overflow-wrap: anywhere; }
  body .scan-axis-list li::before { width: 24px; height: 23px; flex-basis: 24px; }
  body .dpe-definition, body .dpe-cycles article, body .offer-card { padding: 24px; }
  body .method-engine-label { text-align: left; max-width: none; }
  body .duo-story { margin-top: 32px; }
}
@media (prefers-reduced-motion:reduce) {
  body .scan-axis-list li { transition: none; }
}
@media (max-width:480px) {
  body .scan-axis-list { grid-template-columns: minmax(0,1fr); gap: 8px; }
  body .scan-axis-list li { min-height: 52px; padding: 10px 12px; overflow-wrap: normal; }
  body .scan-axis-list li:last-child { grid-column: auto; }
}

/* The same centered sequence becomes a vertical reading on small screens. */
@media (max-width:900px) {
  body .method-route { grid-template-columns: minmax(0,1fr); gap: 40px; }
  body .method-step { width: 100%; max-width: 720px; margin-inline: auto; }
  body .method-step:not(:last-child)::before { display: none; }
  body .method-section .method-step .step-kicker { min-height: 0; margin-bottom: 20px; }
  body .method-step-card h3 { min-height: 0; max-width: 30ch; margin-inline: auto; }
}
@media (max-width:620px) {
  body .method-step-card { padding: 24px; }
  body .method-section .method-step .step-kicker { font-size: 1rem; }
  body .method-step .step-kicker span { white-space: normal; }
}

/* Lisibilité : texte courant confortable, détails et pictogrammes nets. */
body .main-nav a { font-size: .875rem; color: #ffffff; }
body .site-header .header-cta { font-size: .875rem; }
body .scan-axis-list li { font-size: 1rem; }
body .eyebrow::before { width: 22px; height: 21px; }
body .case-scan-tag::before { width: 22px; height: 21px; flex-basis: 22px; }
body .offer-card li::before {
  width: 6px;
  height: 6px;
  top: .7em;
  border-radius: 50%;
  background: var(--orange);
}
body .footer-grid p, body .quiz-helper, body .micro-insight,
body .questionnaire-privacy, body .transmission-consent,
body .choice-privacy, body .choice-for-whom, body .delivery-note small {
  font-size: 1rem;
  line-height: 1.65;
}
body .territory-card p { color: rgba(255,255,255,.9); }
@media (max-width:900px) {
  body .main-nav a { font-size: 1rem; }
}
@media (max-width:620px) {
  :root { --body: 1.0625rem; --small: 1rem; }
  body .site-header .header-cta { padding: 6px 12px; line-height: 1.35; min-height: 44px; text-align: center; }
  body .duo-story { margin-top: 32px; }
}

/* Accueil : un résumé DPE plus affirmé et une grille éditoriale cohérente. */
body .hero-dpe-card h2 { color: var(--blue); font-weight: 700; }
body .hero-dpe-route li { grid-template-columns: 36px minmax(0,1fr); gap: 16px; }
body .hero-dpe-route li > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--blue-deep);
  background: var(--orange);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}
body .hero-dpe-route strong { color: var(--blue); font-size: 1.125rem; font-weight: 700; margin-bottom: 6px; }
body .hero-dpe-signature {
  padding: 16px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  text-align: center;
  font-weight: 700;
}
body .passage-section, body .scans-section, body .offers-section { padding: 64px 0; }
body .passage-section .section-heading,
body .scans-section > .shell > .section-heading {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 40px;
  text-align: center;
}
body .passage-section .section-heading .eyebrow,
body .scans-section > .shell > .section-heading .eyebrow { justify-content: center; }
body .passage-section .section-heading h2,
body .scans-section > .shell > .section-heading h2 { max-width: none; color: var(--blue); }
body .passage-section .section-heading > p:not(.eyebrow),
body .scans-section > .shell > .section-heading > p:not(.eyebrow) { margin: 0 auto; max-width: 68ch; }
body .turning-point { margin-top: 32px; }

/* Orange comme accent ; les titres gardent le contraste bleu sur blanc. */
body .method-section .dpe-cycles .card-label { color: var(--blue-deep); background: var(--orange); }
body .method-step-card h3 { position: relative; }
body .method-step-card h3::after {
  content: '';
  position: absolute;
  width: 48px;
  height: 3px;
  left: calc(50% - 24px);
  bottom: -8px;
  background: var(--orange);
  border-radius: 2px;
}

/* Les quatre principes deviennent quatre objets distincts et lisibles. */
body .duo-principles { gap: 12px; overflow: visible; border: 0; border-radius: 0; }
body .duo-principles span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 16px;
  color: var(--blue);
  background: var(--white);
  border: 0;
  border-bottom: 3px solid var(--orange);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
}

/* Un seul décalage d'en-tête : il est déjà porté par .subpage-main. */
body .subpage-hero { padding: 48px 0; }
body .subpage-hero .section-heading { margin-bottom: 0; }
body .subpage-section { padding: 64px 0; }

@media (max-width:900px) {
  body .duo-principles { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:620px) {
  body .passage-section, body .scans-section, body .offers-section,
  body .subpage-section { padding: 48px 0; }
  body .passage-section .section-heading,
  body .scans-section > .shell > .section-heading { margin-bottom: 32px; }
  body .subpage-hero { padding: 32px 0; }
  body .duo-principles { gap: 10px; }
  body .duo-principles span { padding: 14px 12px; }
}

/* Contact : retirer le disque purement décoratif. */
body .territory-card::after { content: none; display: none; }

/* En-tête : proposition B validée, mêmes couleurs et hauteur de bandeau. */
.brandline .brand-logo { height: 44px; }
.brand-ribbon span { font-size: 14px; white-space: nowrap; }
.brand-ribbon strong { font-size: 14px; white-space: nowrap; }
.motto-break { display: none; }

@media (max-width: 900px) {
  .brandline .brand-logo { height: 40px; }
  .brand-ribbon strong { font-size: 13px; }
}
@media (max-width: 620px) {
  .brandline .brand-logo { height: 32px; }
  .brand-ribbon strong { font-size: 11px; line-height: 1.3; white-space: normal; }
  .motto-break { display: block; }
}
@media (max-width: 360px) {
  .brand-ribbon strong { font-size: 10px; }
}

/* Feuille de route : un cap commun, deux appuis complémentaires. */
body .method-next {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr);
  align-items: center;
  gap: 40px;
  margin: 48px 0 0;
  padding: 40px;
  border-radius: 20px;
  background: var(--white);
  color: var(--blue);
  text-align: left;
  border-top: 5px solid var(--orange);
  box-shadow: 0 12px 30px #10264026;
}
body .method-next .card-label {
  display: inline-block;
  color: var(--blue-deep);
  background: var(--orange-soft);
  padding: 6px 10px;
  border-radius: 6px;
  margin: 0 0 20px;
  font-size: .875rem;
}
body .method-next h3 {
  color: var(--blue);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 20px;
}
body .method-next h3 span { color: var(--orange); }
body .method-next p { color: var(--blue); margin: 0; font-size: var(--body); }
body .method-next .roadmap-autonomy {
  margin-top: 20px;
  padding-left: 16px;
  border-left: 3px solid var(--orange);
  font-size: 1rem;
}
body .roadmap-allies {
  display: flex;
  align-items: stretch;
}
body .roadmap-ally {
  flex: 1;
  min-width: 0;
  padding: 24px 24px 28px;
  background: var(--blue-soft);
  border-radius: 14px;
}
body .method-next .roadmap-label {
  font-size: .875rem;
  font-weight: 600;
  margin: 0 0 12px;
}
body .roadmap-ally h4 {
  color: var(--blue);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.35;
  min-height: 3.7125rem;
  margin: 0 0 16px;
  text-wrap: initial;
}
body .roadmap-ally p:last-child { font-size: 1.0625rem; line-height: 1.6; }
body .roadmap-link {
  position: relative;
  z-index: 1;
  flex: 0 0 54px;
  align-self: center;
  margin: 0 -12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 4px solid var(--white);
  border-radius: 50%;
  background: var(--orange);
  color: var(--blue-deep);
  font-size: .875rem;
  font-weight: 700;
}
body .method-next .roadmap-complement {
  margin-top: 24px;
  font-size: 1rem;
  line-height: 1.6;
}
body .roadmap-complement strong { display: block; margin-bottom: 4px; }
@media (max-width: 1100px) {
  body .method-next { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 32px; }
}
@media (max-width: 620px) {
  body .method-next { margin-top: 32px; padding: 28px 20px; gap: 24px; }
  body .method-next h3 { font-size: 1.75rem; }
  body .roadmap-allies { flex-direction: column; }
  body .roadmap-ally { flex: auto; padding: 24px; }
  body .roadmap-ally h4 { min-height: 0; margin-bottom: 12px; }
  body .roadmap-link {
    margin: -6px 0;
  }
}
