/* Palette commune : continuité de l'accueil, sans altérer les couleurs des projets. */
:root {
 --o3w-beige: #dedcca;
 --o3w-white: #f8f7f3;
 --o3w-muted-light: #c9c7c1;
 --o3w-rule-dark: rgba(222, 220, 202, .22);
 --o3w-surface-light: #f4f2ed;
 --o3w-surface-light-alt: #efeee9;
 --o3w-surface-featured: radial-gradient(ellipse at 6% 26%, #454545 0%, #2e2e2e 34%, #1d1d1d 66%, #161616 100%);
}
body.o3w-editorial { background-color: var(--o3w-paper); }
.o3w-editorial .ed-shell-hero { background-color: #f4f2ed; }
.o3w-editorial .ed-editorial-spotlight {
 background: var(--o3w-surface-featured);
}
.o3w-editorial .ed-editorial-spotlight::before { background: none; }
.o3w-editorial .ed-editorial-spotlight :is(.ed-home-kicker, .ed-shell-band__kicker, .ed-shell-body__label, .ed-expertises-stance__label, .ed-portfolio-editorial__sector, .ed-portfolio-featured__kicker, .ed-legal-spotlight__kicker) { color: var(--o3w-beige); }
.o3w-editorial .ed-editorial-spotlight :is(.ed-expertises-stance__text, .ed-expertises-stance__text--secondary, .ed-shell-hero__lead, .ed-shell-band__lead, .ed-portfolio-editorial__lead, .ed-portfolio-editorial__tagline, .ed-portfolio-editorial__excerpt, .ed-portfolio-editorial__meta, .ed-drawer-list__text, .ed-drawer-list__meta) { color: var(--o3w-muted-light); }
.o3w-editorial .ed-editorial-spotlight .ed-drawer-list__meta a { color: var(--o3w-beige); }
.o3w-editorial .ed-shell-cta-bar,
.o3w-editorial .ed-page--expertises-hub .ed-shell-cta-bar--expertises-hub {
 background: radial-gradient(ellipse at 80% 30%, #424242 0%, #2c2c2c 38%, #1c1c1c 72%, #121212 100%);
 color: var(--o3w-muted-light);
 border-top-color: var(--o3w-rule-dark);
}
.o3w-editorial .ed-shell-cta-bar .ed-shell-cta-bar__title { color: var(--o3w-white); }
.o3w-editorial .ed-shell-cta-bar .ed-shell-cta-bar__text { color: var(--o3w-muted-light); }
.o3w-editorial .ed-shell-cta-bar :is(.ed-footer__contact-cta, .ed-btn--primary) {
 color: #232322 !important;
 background: var(--o3w-beige);
 border-color: var(--o3w-beige);
}
.o3w-editorial .ed-shell-cta-bar :is(.ed-footer__contact-cta, .ed-btn--primary):hover {
 color: #121212 !important;
 background: #f2f1e7;
 border-color: #f2f1e7;
}
.o3w-editorial .ed-shell-cta-bar .ed-btn--ghost {
 color: var(--o3w-beige);
 background: transparent;
 border-color: rgba(222,220,202,.45);
}
.o3w-editorial .ed-shell-cta-bar .ed-btn--ghost:hover {
 color: #fff;
 background: rgba(222,220,202,.08);
 border-color: var(--o3w-beige);
}
.o3w-editorial .ed-footer a:focus-visible,
.o3w-editorial .ed-footer summary:focus-visible,
.o3w-editorial .ed-editorial-spotlight a:focus-visible,
.o3w-editorial .ed-shell-cta-bar a:focus-visible {
 outline: 2px solid var(--o3w-beige);
 outline-offset: 5px;
}

/* Pied de page : une seule base sombre jusqu'aux mentions légales. */
body.o3w-editorial .ed-footer__brand-band {
 background: #191919;
 border-top-color: rgba(222, 220, 202, .12);
}
body.o3w-editorial .ed-footer__pitch { color: var(--o3w-muted-light); }
body.o3w-editorial .ed-footer__brand-band .ed-footer__phone { color: var(--o3w-beige); }
body.o3w-editorial .ed-footer__brand-band .ed-footer__contact-cta {
 color: #232322 !important;
 background: var(--o3w-beige);
 border-color: var(--o3w-beige);
}
body.o3w-editorial .ed-footer__brand-band .ed-footer__contact-cta:hover {
 color: #121212 !important;
 background: #f2f1e7;
 border-color: #f2f1e7;
}
body.o3w-editorial .ed-footer__nav-band {
 background: #121212;
 color: var(--o3w-beige);
}
body.o3w-editorial .ed-footer__nav-label { color: var(--o3w-beige); }
body.o3w-editorial .ed-footer__nav-note,
body.o3w-editorial .ed-footer__legal { color: #b6b4ae; }
body.o3w-editorial .ed-footer__nav-list a { color: #ceccc6; }
body.o3w-editorial .ed-footer__nav-list a:hover,
body.o3w-editorial .ed-footer__legal a:hover { color: #fff; }
body.o3w-editorial .ed-footer__legal,
body.o3w-editorial .ed-footer__nav-collapse,
body.o3w-editorial .ed-footer__nav-block:not(:has(.ed-footer__nav-collapse)) {
 border-color: var(--o3w-rule-dark);
}
body.o3w-editorial .ed-footer__nav-collapse > summary { color: var(--o3w-beige); }
body.o3w-editorial .ed-footer__nav-collapse > summary::after { border-color: var(--o3w-beige); }


@media (forced-colors: active) {
 .o3w-editorial .ed-editorial-spotlight, .o3w-editorial .ed-shell-cta-bar,
 .o3w-editorial .ed-footer__brand-band, .o3w-editorial .ed-footer__nav-band {
  background: Canvas;
  color: CanvasText;
 }
}

/* Le bouton doit rester au-dessus du tiroir clair, sur toutes les pages. */
@media (max-width: 959px) {
 body.o3w-editorial .ed-nav-toggle { position: relative; z-index: 530; min-width: 44px; min-height: 44px; }
 body.o3w-editorial .ed-nav-toggle[aria-expanded="true"] { color: #232322; }
}

/* Rythme commun : mise en avant sombre, lecture et exploration sur ivoire.
   Les aperçus et les démonstrations des clients gardent leur propre palette. */
.o3w-editorial .ed-page--realisations .ed-portfolio-editorial--featured,
.o3w-editorial .ed-project-showcase__stage.ed-portfolio-featured,
.o3w-editorial .ed-page--blog > .ed-shell-hero,
.o3w-editorial.contact-page .ed-main > .ed-shell-hero {
 background: var(--o3w-surface-featured);
 border-color: var(--o3w-rule-dark);
}

/* Réalisation à la une : traiter la copie, jamais l'intérieur des maquettes. */
.o3w-editorial .ed-page--realisations .ed-portfolio-editorial--featured :is(.ed-portfolio-editorial__project-title, .ed-portfolio-editorial__body-link) {
 color: var(--o3w-white);
}
.o3w-editorial .ed-page--realisations .ed-portfolio-editorial--featured :is(.ed-expertises-stance__label, .ed-portfolio-editorial__cta) {
 color: var(--o3w-beige);
}
.o3w-editorial .ed-page--realisations .ed-portfolio-editorial--featured :is(.ed-portfolio-editorial__tagline, .ed-portfolio-editorial__excerpt) {
 color: var(--o3w-muted-light);
}
.o3w-editorial .ed-page--realisations .ed-portfolio-editorial--featured .ed-expertises-stance__label::after {
 background: var(--o3w-rule-dark);
}
.o3w-editorial .ed-page--realisations .ed-portfolio-editorial--featured .ed-portfolio-editorial__body-link:hover .ed-portfolio-editorial__cta {
 color: #fff;
}

/* Fiches de projets : seule la présentation du projet passe sur fond sombre. */
.o3w-editorial .ed-project-showcase__stage .ed-portfolio-featured__copy {
 color: var(--o3w-muted-light);
}
.o3w-editorial .ed-project-showcase__stage .ed-portfolio-featured__copy :is(.ed-portfolio-featured__lede, .ed-portfolio-featured__list li) {
 color: var(--o3w-white);
}
.o3w-editorial .ed-project-showcase__stage .ed-portfolio-featured__copy :is(.ed-portfolio-featured__kicker, .ed-portfolio-card__sector, .ed-project-showcase__role-label, .ed-portfolio-featured__link) {
 color: var(--o3w-beige);
 border-color: var(--o3w-rule-dark);
}
.o3w-editorial .ed-project-showcase__stage .ed-portfolio-featured__copy :is(.ed-project-showcase__role, .ed-project-showcase__collab) {
 color: var(--o3w-muted-light);
}
.o3w-editorial .ed-project-showcase__stage .ed-portfolio-featured__copy .ed-portfolio-featured__list li::before {
 color: var(--o3w-beige);
}
.o3w-editorial .ed-project-showcase__stage .ed-portfolio-featured__copy .ed-portfolio-featured__link:hover {
 color: #fff;
}

/* Blog et contact : une entrée sombre, suivie d'un espace de lecture clair. */
.o3w-editorial .ed-page--blog > .ed-shell-hero .ed-shell-hero__title,
.o3w-editorial.contact-page .ed-main > .ed-shell-hero .ed-shell-hero__title {
 color: var(--o3w-white);
}
.o3w-editorial .ed-page--blog > .ed-shell-hero .ed-shell-hero__lead,
.o3w-editorial.contact-page .ed-main > .ed-shell-hero .ed-shell-hero__lead {
 color: var(--o3w-muted-light);
}
.o3w-editorial .ed-page--blog > .ed-shell-hero .ed-shell-hero__label,
.o3w-editorial.contact-page .ed-main > .ed-shell-hero .ed-shell-hero__label {
 color: var(--o3w-beige);
}
.o3w-editorial .ed-page--blog > .ed-shell-hero .ed-shell-hero__label::after,
.o3w-editorial.contact-page .ed-main > .ed-shell-hero .ed-shell-hero__label::after {
 background: var(--o3w-rule-dark);
}

/* Deux surfaces de lecture communes, à la place des variantes presque identiques. */
.o3w-editorial .ed-project-showcase {
 --ed-project-surface: var(--o3w-surface-light);
 --ed-project-surface-alt: var(--o3w-surface-light-alt);
}
.o3w-editorial :is(.ed-portfolio-index, .ed-expertises-hub__rest, .ed-expertises-metiers, .ed-expertises-territoires) {
 background: var(--o3w-surface-light);
}
.o3w-editorial :is(.ed-portfolio-domains, .ed-expertises-volets, .ed-expertises-pillars) {
 background: var(--o3w-surface-light-alt);
}

.o3w-editorial .ed-portfolio-editorial--featured :is(.ed-portfolio-editorial__body-link, .ed-portfolio-featured-ovvlb__media-link):focus-visible,
.o3w-editorial .ed-project-showcase__stage .ed-portfolio-featured__copy a:focus-visible {
 outline: 2px solid var(--o3w-beige);
 outline-offset: 6px;
}

@media (forced-colors: active) {
 .o3w-editorial .ed-page--realisations .ed-portfolio-editorial--featured,
 .o3w-editorial .ed-project-showcase__stage.ed-portfolio-featured,
 .o3w-editorial .ed-page--blog > .ed-shell-hero,
 .o3w-editorial.contact-page .ed-main > .ed-shell-hero {
  background: Canvas;
  color: CanvasText;
 }
}
