/* Ai Lab Gamma light direction, translated to the existing WordPress markup. */
:root {
  --al-paper: #ffffff;
  --al-surface: #f6fafc;
  --al-ink: #25323c;
  --al-muted: #596573;
  --al-line: #d9e5eb;
  --al-brand-blue: #219ed9;
  --al-action: #087aa6;
  --al-graphite: #494949;
}

body { background: var(--al-paper); color: var(--al-ink); }
.site-header.al-header { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--al-line); }
.al-navigation > a { color: var(--al-graphite); }
.al-navigation > a:hover { color: var(--al-action); }
.al-button,
.al-button:visited,
.al-navigation > .al-button,
.al-diagnostic-card .al-button {
  background: var(--al-action);
  border: 1px solid var(--al-action);
  color: #fff;
  box-shadow: 0 8px 20px rgba(8,122,166,.16);
}
.al-button:hover,
.al-button:focus-visible,
.al-button:active,
.al-navigation > .al-button:hover,
.al-diagnostic-card .al-button:hover {
  background: #065f82;
  border-color: #065f82;
  color: #fff;
}
.al-hero { background: var(--al-graphite); }
.al-hero::before { background: linear-gradient(90deg, rgba(20,35,46,.93), rgba(20,35,46,.64) 56%, rgba(20,35,46,.25)), url('../images/hero.webp') center right/cover no-repeat; }
.al-hero h1, .al-section h2, .al-section-head h1 { text-wrap: balance; }
.al-hero h1 em { color: #72c7ed; }
.al-positioning, .al-section { position: relative; }
.al-positioning::before, .al-section#expertises::before { content: ''; display: block; height: 1px; background: linear-gradient(90deg, var(--al-brand-blue), transparent 65%); margin-bottom: 42px; }
.al-metier { border: 1px solid var(--al-line); box-shadow: 0 14px 35px rgba(37,50,60,.08); }
.al-metier-image::after { background: linear-gradient(135deg, rgba(33,158,217,.86), rgba(73,73,73,.18)); mix-blend-mode: multiply; }
.al-metier-edition .al-metier-image::after { background: linear-gradient(135deg, rgba(33,158,217,.58), rgba(73,73,73,.72)); }
.al-metier-integration .al-metier-image::after { background: linear-gradient(135deg, rgba(73,73,73,.85), rgba(33,158,217,.42)); }
.al-solution-directory, #enjeux, .al-references, .al-diagnostic { background: var(--al-surface); }
.al-issue, .al-expertises article, .al-reference-card, .al-diagnostic-card { background: #fff; border-color: var(--al-line); }
.al-issue:hover, .al-expertises article:hover, .al-reference-card:hover { border-color: var(--al-brand-blue); box-shadow: 0 14px 35px rgba(8,122,166,.12); }
.al-assets { background: #eaf7fc; }
.al-ink { background: var(--al-graphite); }
/* Home approach: echo the hero and footer blues with a quiet, textured transition. */
.al-home-page #approche {
  background-color: #14232e;
  background-image:
    repeating-linear-gradient(125deg, rgba(114,199,237,.025) 0 1px, transparent 1px 72px),
    radial-gradient(ellipse at 100% 0%, rgba(33,158,217,.12), transparent 65%),
    linear-gradient(115deg, #14232e 0%, #1b3442 58%, #1d3b49 100%);
}
.al-home-page #approche .al-eyebrow { color: #72c7ed; }
.al-article-cover, .al-magazine-card { background: var(--al-graphite); }
.al-magazine-card { min-height: 440px; }
.al-magazine-card-copy h3 { text-wrap: balance; }
.al-footer { background: #14232e; }
.al-brand-signature { color: var(--al-action); }

/* Readability pass: keep secondary information clearly legible on photos and dark surfaces. */
.al-hero .al-eyebrow {
  color: #d9f0fa;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.35px;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
}
.al-hero .al-lead {
  color: #f3f7f9;
  font-size: 19px;
  text-shadow: 0 1px 2px rgba(0,0,0,.55);
}
.al-hero .al-micro {
  color: #e2ebf0;
  font-size: 15px;
  line-height: 1.65;
  text-shadow: 0 1px 2px rgba(0,0,0,.55);
}
.al-hero-signature {
  align-self: center;
  max-width: 310px;
  padding: 22px 24px;
  border-left: 3px solid var(--al-brand-blue);
  background: rgba(8,25,37,.76);
  box-shadow: 0 16px 38px rgba(0,0,0,.2);
  color: #f7fbfd;
  font-size: 18px;
  line-height: 1.55;
  text-shadow: 0 1px 2px rgba(0,0,0,.55);
}
.al-hero-signature strong {
  display: inline-block;
  margin-top: 4px;
  color: #fff;
  font-size: 21px;
  font-weight: 500;
}
.al-capabilities {
  padding-inline: 24px;
  background: rgba(8,25,37,.68);
  color: #f3f8fa;
  font-size: 14px;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0,0,0,.55);
}
.al-eyebrow, .al-tag, .al-section p.al-eyebrow { font-size: 13px; color: #216884; }
.al-positioning .al-visual-note { color: #596573; font-size: 13px; }
.al-expertises article > p.al-products, .al-reference-copy .al-tag { color: #216884; font-size: 13px; }
.al-ink .al-section-head > p:last-child, .al-step p { color: #dce6ec; }
.al-footer-grid p, .al-footer-grid a:not(.al-brand) { color: #d2dce2; }
.al-copyright { color: #b9c9d3; }
.al-section .al-tag,
.al-metier-copy .al-tag,
.al-cases .al-tag,
.al-reading .al-tag,
.al-reference-copy .al-tag { font-size: 13px; }
.al-section .al-micro, .al-board-note { color: #4f5f6c; font-size: 14px !important; line-height: 1.6; }
.al-expertises article {
  color: #25323c;
  background: #fff;
  border-color: #c9d8e1;
}
.al-expertises article::before {
  color: #377f9f;
  opacity: 1;
}
.al-expertises article .al-tag {
  color: #087aa6;
  opacity: 1;
}
.al-expertises article h3 { color: #25323c; }
.al-expertises article > p { color: #495b68; }
.al-expertises article > p.al-products { color: #087aa6; }
.al-expertises article:hover {
  background: #f5fbfe;
  border-color: #219ed9;
}
.al-solution-portfolio article.al-solution-wide {
  background: #25323c;
  color: #fff;
  border-color: #25323c;
}
.al-solution-portfolio article.al-solution-wide .al-tag,
.al-solution-portfolio article.al-solution-wide .al-products {
  color: #b7dced;
}
.al-footer-grid h2, .al-copyright { font-size: 13px; }
@media (max-width: 760px) {
  .al-hero::before { background: linear-gradient(90deg, rgba(20,35,46,.92), rgba(20,35,46,.70)), url('../images/hero.webp') 65% center/cover no-repeat; }
  .al-positioning::before, .al-section#expertises::before { margin-bottom: 28px; }
  .al-magazine-card { min-height: 380px; }
  .al-hero .al-eyebrow { font-size: 12px; }
  .al-hero .al-lead { font-size: 17px; }
  .al-hero .al-micro { font-size: 14px; }
  .al-hero-signature {
    display: block;
    max-width: none;
    margin-top: 28px;
    padding: 16px 18px;
    font-size: 16px;
  }
  .al-hero-signature strong { font-size: 18px; }
  .al-capabilities { padding-inline: 16px; font-size: 13px; }
}

/* Portfolio compact : hiérarchie plus dense sur écran desktop. */
@media (min-width: 901px) {
  .al-solution-portfolio { gap: 12px; }
  .al-solution-portfolio article {
    min-height: 172px;
    padding: 20px 22px;
  }
  .al-solution-portfolio h3 {
    margin: 11px 0 8px;
    font-size: 21px;
    line-height: 1.2;
  }
  .al-solution-portfolio article > p:not(.al-products) {
    font-size: 14px;
    line-height: 1.48;
  }
  .al-solution-portfolio article > p.al-products {
    font-size: 11px;
    line-height: 1.35;
  }
  .al-solution-portfolio .al-solution-wide { min-height: 172px; }
}

/* Les deux dernières cartes portent deux rôles différents : une seule reste sombre. */
.al-solution-portfolio article.al-solution-wide:last-child {
  background: #e7f2f8;
  color: #25323c;
  border-color: #c9e0eb;
}
.al-solution-portfolio article.al-solution-wide:last-child .al-tag {
  color: #087aa6;
}
.al-solution-portfolio article.al-solution-wide:last-child h3,
.al-solution-portfolio article.al-solution-wide:last-child > p:not(.al-products) {
  color: #25323c;
}
.al-solution-portfolio article.al-solution-wide:last-child .al-products {
  color: #087aa6;
}
/* CTA principal du bandeau : libellé concret, surface plus affirmée. */
.site-header .al-navigation > .al-header-cta {
  min-height: 54px;
  padding: 0 9px 0 22px;
  gap: 18px;
  border: 1px solid #06749e;
  border-radius: 2px;
  background: #087aa6;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  box-shadow: 0 12px 26px rgba(8, 122, 166, .2);
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.site-header .al-navigation > .al-header-cta:visited { color: #fff; }
.site-header .al-navigation > .al-header-cta span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, .14);
  font-size: 17px;
  transition: transform .2s ease, background-color .2s ease;
}
.site-header .al-navigation > .al-header-cta:hover,
.site-header .al-navigation > .al-header-cta:focus-visible {
  background: #06698f;
  color: #fff;
  box-shadow: 0 15px 30px rgba(8, 122, 166, .28);
  transform: translateY(-1px);
  text-decoration: none;
}
.site-header .al-navigation > .al-header-cta:hover span { transform: translate(2px, -2px); }
@media (max-width: 760px) {
  .site-header .al-navigation > .al-header-cta {
    justify-content: space-between;
    min-height: 52px;
    margin-top: 12px;
  }
}

/* Site charter: explicit surface roles, never alternating by DOM position. */
:root {
  --al-bg-white: #ffffff;
  --al-bg-soft: linear-gradient(115deg, #f6fafc 0%, #edf6fa 100%);
  --al-bg-accent: linear-gradient(115deg, #edf6fa 0%, #deeff7 100%);
  --al-bg-deep: repeating-linear-gradient(125deg, rgba(114,199,237,.025) 0 1px, transparent 1px 72px), radial-gradient(ellipse at 100% 0%, rgba(33,158,217,.12), transparent 65%), linear-gradient(115deg, #14232e 0%, #1b3442 58%, #1d3b49 100%);
}
.al-surface-white,
.al-home-page #metiers,
.al-home-page #expertises,
.al-home-page #cas-metier,
.al-home-page #analyses { background: var(--al-bg-white) !important; }
.al-surface-soft,
.al-home-page #enjeux,
.al-home-page #solutions,
.al-home-page #references { background: var(--al-bg-soft) !important; }
.al-surface-accent,
.al-home-page #diagnostic { background: var(--al-bg-accent) !important; }
.al-surface-deep,
.al-home-page #approche { background: var(--al-bg-deep) !important; }
.al-surface-deep { color: #fff; }
.al-surface-deep :is(h1,h2,h3,h4) { color: #fff; }
.al-surface-deep :is(.al-eyebrow,.al-tag) { color: #72c7ed; }
.al-surface-deep :is(.al-lead,.al-micro) { color: #dce6ec; }
.al-home-page #diagnostic h2 { color: var(--al-ink) !important; }
.al-home-page #diagnostic :is(.al-lead,.al-micro) { color: var(--al-muted) !important; }
/* A focus belongs to its parent section; preserve the shared surface. */
.al-home-page #solutions .al-assets-focus { background: transparent !important; }

/* Alternate the existing decorative bands; mirror only the ornament. */
.al-motif-forward { --al-motif-direction: 1; }
.al-motif-reverse { --al-motif-direction: -1; }
.al-home-page :is(#enjeux, #cas-metier, #analyses) { --al-motif-direction: 1; }
.al-home-page :is(#expertises, #references, #diagnostic) { --al-motif-direction: -1; }
.al-home-page :is(#enjeux, #expertises, #cas-metier, #references, #analyses, #diagnostic)::after,
:is(.al-motif-forward, .al-motif-reverse)::after {
  transform: translateX(-50%) scaleX(var(--al-motif-direction, 1)) !important;
}

/* Article : navigation entre articles et commentaires dans la même colonne et la même charte que le texte. */
.single .post-navigation,
.single .comments-area { width: min(900px, calc(100% - 32px)); margin-left: auto; margin-right: auto; box-sizing: border-box; }
.single .post-navigation { margin-top: 48px; margin-bottom: 24px; }
.post-navigation .nav-links { display: flex; flex-wrap: wrap; gap: 12px; }
.post-navigation .nav-previous,
.post-navigation .nav-next { flex: 1 1 280px; margin: 0; }
.post-navigation a { display: block; height: 100%; box-sizing: border-box; padding: 14px 16px; background: #fff; border: 1px solid #d9e5eb; border-left: 4px solid #087aa6; border-radius: 6px; text-decoration: none; color: #25323c; }
.post-navigation .nav-next a { text-align: right; border-left: 1px solid #d9e5eb; border-right: 4px solid #087aa6; }
.post-navigation a:hover { box-shadow: 0 6px 18px rgba(20, 37, 54, .1); }
.post-navigation .nav-subtitle { display: block; margin-bottom: 4px; font-size: 11.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #087aa6; }
.post-navigation .nav-title { font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.35; color: #142536; }
.single .comments-area { margin-bottom: 64px; padding: 26px 28px; background: linear-gradient(115deg, #f6fafc, #edf6fa); border: 1px solid #d9e5eb; border-radius: 10px; }
.comments-area :is(.comments-title, .comment-reply-title) { margin: 0 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 24px; line-height: 1.3; color: #142536; }
.comments-area :is(.comment-notes, .logged-in-as) { margin: 0 0 18px; font-size: 14px; line-height: 1.6; color: #596573; }
.comments-area a { color: #087aa6; }
.comment-form label { display: block; margin: 0 0 6px; font-size: 13.5px; font-weight: 600; color: #25323c; }
.comment-form :is(input[type="text"], input[type="email"], input[type="url"], textarea) { width: 100%; box-sizing: border-box; padding: 11px 13px; font: inherit; color: #25323c; background: #fff; border: 1px solid #b8cbd6; border-radius: 6px; }
.comment-form :is(input[type="text"], input[type="email"], input[type="url"], textarea):focus { outline: 0; border-color: #087aa6; box-shadow: 0 0 0 3px rgba(33, 158, 217, .18); }
.comment-form .form-submit { margin: 18px 0 0; }
.comment-form .form-submit :is(input[type="submit"], .submit) { width: auto; padding: 12px 22px; font: inherit; font-weight: 600; color: #fff; background: #087aa6; border: 0; border-radius: 6px; cursor: pointer; }
.comment-form .form-submit :is(input[type="submit"], .submit):hover { background: #066283; }
.comment-list { margin: 0 0 28px; padding: 0; list-style: none; }
.comment-list .comment-body { margin: 0 0 14px; padding: 16px 18px; background: #fff; border: 1px solid #d9e5eb; border-radius: 8px; }
.comment-list .children { margin: 14px 0 0 18px; padding: 0; list-style: none; }
