/* ============================================================
   Basabi Consulting — thème « Atelier » (28/11/2026)
   Chargé à la place de hightech.css quand la page passe theme = 'atelier'.
   Palette : papier bleuté, bleu encre, bleu de travail, ciel, surligneur.
   Typo : Big Shoulders Display (titres, haute et serrée) + Schibsted Grotesk (texte).
   ============================================================ */

.theme-atelier {
  --at-paper:  #f3f5f8;
  --at-white:  #ffffff;
  --at-ink:    #16213e;
  --at-ink-2:  #4a5675;
  --at-blue:   #2d4fb8;
  --at-blue-d: #213d93;
  --at-sky:    #dce6f7;
  --at-rule:   #c9d2e0;
  --at-mark:   #ffe45c;

  /* Variables d'app.css réutilisées par la barre de navigation et le pied de page */
  --dark: #16213e; --dark-2: #1c2a4d; --dark-3: #23335c;
  --text: #f3f5f8; --text-muted: #b5c0d6; --border: rgba(255, 255, 255, .12);

  background: var(--at-paper);
  --at-head: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --at-body: 'Schibsted Grotesk', system-ui, sans-serif;
  font-family: var(--at-body);
}
.theme-atelier main { color: var(--at-ink); }

/* Navigation et pied de page en bleu encre, sans effets */
.theme-atelier #mainNavbar { background: var(--at-ink) !important; backdrop-filter: none; border-bottom: 0; box-shadow: none; }
.theme-atelier #mainNavbar .brand-main,
.theme-atelier #mainNavbar .brand-accent { font-family: var(--at-head); font-weight: 800; letter-spacing: 0; }
.theme-atelier #mainNavbar .brand-accent { color: #9fb4ee !important; }
.theme-atelier #mainNavbar .btn-primary,
.theme-atelier .site-footer .btn-primary { background: var(--at-white) !important; color: var(--at-ink) !important; border: 0 !important; box-shadow: none; }
.theme-atelier .site-footer { background: var(--at-ink) !important; }

/* ── Typographie ─────────────────────────────────────────── */
.atelier h1, .atelier h2, .atelier h3 { color: var(--at-ink); font-family: var(--at-head); }
.at-title {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.01em;
  margin: 0 0 1.5rem;
  text-wrap: balance;
}
.at-h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; line-height: 1.08; margin-bottom: 1rem; }
.atelier h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .4rem; }
.at-lead { font-size: 1.15rem; line-height: 1.6; color: var(--at-ink-2); max-width: 36em; }
.at-muted { color: var(--at-ink-2); max-width: 28em; }
.at-small { font-size: .95rem; color: var(--at-ink-2); margin-top: 1.5rem; }
.atelier a:not(.at-btn):not(.at-menu-row) { color: var(--at-blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.atelier a:not(.at-btn):not(.at-menu-row):hover { color: var(--at-blue-d); text-decoration-thickness: 2px; }

/* ── Boutons ─────────────────────────────────────────────── */
.at-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.at-btn {
  display: inline-block; padding: .85rem 1.4rem; border-radius: 6px;
  font-weight: 700; text-decoration: none; line-height: 1.2;
  border: 2px solid var(--at-blue); transition: background-color .15s, color .15s;
}
.at-btn-solid { background: var(--at-blue); color: #fff; }
.at-btn-solid:hover { background: var(--at-blue-d); border-color: var(--at-blue-d); color: #fff; }
.at-btn-line { background: transparent; color: var(--at-blue); }
.at-btn-line:hover { background: var(--at-blue); color: #fff; }
.at-btn:focus-visible, .at-menu-row:focus-visible, .atelier a:focus-visible { outline: 3px solid var(--at-mark); outline-offset: 3px; }

/* ── Ouverture ───────────────────────────────────────────── */
.at-hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem); }

.at-thread { margin: 0; background: var(--at-white); border: 1px solid var(--at-rule); border-radius: 18px; overflow: hidden; }
.at-thread-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--at-rule); }
.at-thread-name { font-weight: 700; }
.at-thread-state { font-size: .85rem; color: var(--at-ink-2); }
.at-thread-state::before { content: ""; display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: #c0c8d6; margin-right: .4rem; vertical-align: .05em; }
.at-msgs { list-style: none; margin: 0; padding: 1.25rem; display: flex; flex-direction: column; gap: .7rem; }
.at-msg { max-width: 86%; padding: .7rem .95rem; border-radius: 14px; line-height: 1.45; font-size: .98rem; }
.at-in  { align-self: flex-start; background: var(--at-paper); border-bottom-left-radius: 4px; }
.at-out { align-self: flex-end; background: var(--at-sky); border-bottom-right-radius: 4px; }
.at-time { display: block; font-size: .75rem; color: var(--at-ink-2); margin-bottom: .15rem; }
.at-out .at-time::after { content: "réponse automatique"; margin-left: .5rem; padding: 0 .35rem; border-radius: 3px; background: var(--at-mark); color: var(--at-ink); }
.at-thread figcaption { padding: .9rem 1.25rem 1.1rem; font-size: .88rem; color: var(--at-ink-2); border-top: 1px solid var(--at-rule); }

/* La seule animation de la page : la conversation s'écrit au chargement */
@media (prefers-reduced-motion: no-preference) {
  .at-msg { opacity: 0; transform: translateY(6px); animation: at-msg .45s ease-out forwards; }
  .at-msg:nth-child(1) { animation-delay: .4s; }
  .at-msg:nth-child(2) { animation-delay: 1.5s; }
  .at-msg:nth-child(3) { animation-delay: 2.8s; }
  .at-msg:nth-child(4) { animation-delay: 3.9s; }
}
@keyframes at-msg { to { opacity: 1; transform: none; } }

/* ── Sections ────────────────────────────────────────────── */
.at-section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--at-rule); }
.at-section-tint { background: var(--at-white); }
.at-section-ink { background: var(--at-ink); border-top: 0; }
.at-section-ink .at-h2 { color: #fff; }
.at-section-ink .at-lead, .at-section-ink .at-small { color: #c3cde2; }

/* Ardoise des offres */
.at-menu { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--at-ink); }
.at-menu li { border-bottom: 1px solid var(--at-rule); }
.at-menu-row { display: block; padding: 1.4rem 0; color: inherit; text-decoration: none; }
.at-menu-line { display: flex; align-items: baseline; gap: .75rem; }
.at-menu-name { font-size: 1.3rem; font-weight: 700; }
.at-menu-dots { flex: 1; border-bottom: 2px dotted var(--at-rule); transform: translateY(-.3em); min-width: 1.5rem; }
.at-menu-price { font-weight: 800; color: var(--at-blue); white-space: nowrap; font-size: 1.15rem; }
.at-menu-desc { display: block; margin-top: .35rem; color: var(--at-ink-2); max-width: 40em; }
.at-menu-desc em { font-style: normal; color: var(--at-ink); }
.at-menu-row:hover .at-menu-name { color: var(--at-blue); }
.at-menu-row:hover .at-menu-dots { border-color: var(--at-blue); }

/* Réalisations */
.at-projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2.5rem 3rem; margin-top: 2rem; }
.at-project { border-top: 2px solid var(--at-ink); padding-top: 1rem; }
.at-project-kind { color: var(--at-blue); font-weight: 600; margin-bottom: .5rem; }
.at-project p { color: var(--at-ink-2); }

/* Étapes (vraie séquence) */
.at-steps { list-style: none; counter-reset: step; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2.5rem; }
.at-steps li { counter-increment: step; }
.at-steps li::before {
  content: counter(step);
  display: block; font-size: 3.2rem; line-height: 1; font-weight: 800;
  color: var(--at-blue); margin-bottom: .75rem;
}
.at-steps p { color: var(--at-ink-2); }

/* Monogramme */
.at-mono {
  aspect-ratio: 1; max-width: 220px; display: grid; place-items: center;
  background: var(--at-blue); color: #fff; border-radius: 18px;
  font-size: clamp(6rem, 14vw, 9rem); font-weight: 800; line-height: 1;
}

/* Avis */
.at-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 1.5rem; }
.at-quote { margin: 0; padding-left: 1.25rem; border-left: 3px solid var(--at-blue); }
.at-quote p { font-size: 1.15rem; line-height: 1.5; color: var(--at-ink); margin-bottom: .5rem; }
.at-quote footer { color: var(--at-ink-2); font-size: .95rem; }

/* Fin */
.at-end { padding: clamp(4rem, 9vw, 7rem) 0; border-top: 1px solid var(--at-rule); background: var(--at-sky); }
.at-end-title { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; line-height: 1.04; color: var(--at-ink); margin-bottom: 1rem; }

/* Le widget de chat du site reprend la couleur du thème */
.theme-atelier .chatbot-bubble { background: var(--at-blue) !important; box-shadow: 0 6px 18px -6px rgba(22, 33, 62, .5) !important; }

@media (max-width: 575px) {
  .at-thread-head { flex-direction: column; gap: .2rem; }
  .at-menu-line { flex-wrap: wrap; }
  .at-menu-dots { display: none; }
  .at-menu-price { width: 100%; }
}

/* ============================================================
   V2 (28/11/2026) : nouvelle typo, ajustements et animations
   ============================================================ */

/* ── Typo : Big Shoulders se lit plus grand et plus serré ── */
.theme-atelier #mainNavbar .brand-main,
.theme-atelier #mainNavbar .brand-accent { font-size: 1.45rem; font-weight: 900; letter-spacing: .01em; }
.at-title { font-size: clamp(3.2rem, 7.6vw, 6.4rem); font-weight: 900; line-height: .92; letter-spacing: 0; text-transform: none; }
.at-h2 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); font-weight: 800; line-height: .98; }
.atelier h3 { font-family: var(--at-body); font-size: 1.15rem; font-weight: 700; }
.at-menu-name { font-family: var(--at-head); font-size: 1.9rem; font-weight: 800; line-height: 1; }
.at-menu-price { font-family: var(--at-head); font-size: 1.7rem; font-weight: 800; }
.at-thread-name { font-family: var(--at-head); font-size: 1.35rem; font-weight: 800; }
.at-steps li::before { font-family: var(--at-head); font-size: 5rem; font-weight: 900; }
.at-mono { font-family: var(--at-head); font-weight: 900; font-size: clamp(8rem, 18vw, 12rem); }
.at-end-title { font-size: clamp(3rem, 7vw, 5.6rem); font-weight: 900; line-height: .95; }
.at-btn { font-weight: 700; }

/* ── Titre : les mots montent un par un (activé par atelier.js) ── */
.at-title .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .04em; }
.at-title .w > span { display: inline-block; }
.js-anim .at-title .w > span { transform: translateY(105%); animation: at-rise .7s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i) * 70ms + 100ms); }
@keyframes at-rise { to { transform: none; } }

/* ── Conversation : « en train d'écrire » + heure qui avance ── */
.at-msgs { gap: 0; }
.at-msgs > li + li { margin-top: .7rem; }
.at-typing { align-self: flex-end; display: flex; gap: 4px; padding: .7rem .9rem; border-radius: 14px; border-bottom-right-radius: 4px; background: var(--at-sky); }
.at-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--at-blue); opacity: .35; }
.at-clock { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  .at-msg:nth-child(1) { animation-delay: .5s; }
  .at-typing:nth-child(2) { animation: at-typing 1.1s ease forwards .9s; }
  .at-msg:nth-child(3) { animation-delay: 2s; }
  .at-msg:nth-child(4) { animation-delay: 3.3s; }
  .at-typing:nth-child(5) { animation: at-typing 1.2s ease forwards 3.8s; }
  .at-msg:nth-child(6) { animation-delay: 5s; }
  .at-typing { opacity: 0; max-height: 0; padding-block: 0; overflow: hidden; }
  .at-typing i { animation: at-dot 1s infinite ease-in-out; }
  .at-typing i:nth-child(2) { animation-delay: .15s; }
  .at-typing i:nth-child(3) { animation-delay: .3s; }
}
@media (prefers-reduced-motion: reduce) { .at-typing { display: none; } }
@keyframes at-typing {
  0%   { opacity: 0; max-height: 0; padding-block: 0; margin-top: 0; }
  12%  { opacity: 1; max-height: 3rem; padding-block: .7rem; margin-top: .7rem; }
  85%  { opacity: 1; max-height: 3rem; padding-block: .7rem; margin-top: .7rem; }
  100% { opacity: 0; max-height: 0; padding-block: 0; margin-top: 0; }
}
@keyframes at-dot { 0%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.at-try { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; font-weight: 600; }
.at-try::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: #1fa463; box-shadow: 0 0 0 0 rgba(31, 164, 99, .5); }
@media (prefers-reduced-motion: no-preference) { .at-try::before { animation: at-ping 2s infinite; } }
@keyframes at-ping { 70% { box-shadow: 0 0 0 9px rgba(31, 164, 99, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 164, 99, 0); } }

/* ── Bande des vraies questions clients ── */
.at-band { background: var(--at-ink); color: #fff; overflow: hidden; padding: 1.1rem 0; border-top: 0; }
.at-band-track { display: flex; gap: 1rem; width: max-content; }
.at-band-track span { flex: none; font-family: var(--at-head); font-weight: 700; font-size: 1.6rem; line-height: 1; padding: .55rem 1rem; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; white-space: nowrap; }
.at-band-track span:nth-child(4n+2) { background: var(--at-blue); border-color: var(--at-blue); }
.at-band-track span:nth-child(7n+5) { background: var(--at-mark); border-color: var(--at-mark); color: var(--at-ink); }
@media (prefers-reduced-motion: no-preference) {
  .at-band-track { animation: at-marquee 42s linear infinite; }
  .at-band:hover .at-band-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) { .at-band-track { flex-wrap: wrap; width: auto; padding: 0 1rem; } .at-band-track [aria-hidden] { display: none; } }
@keyframes at-marquee { to { transform: translateX(-50%); } }

/* ── Apparitions au défilement (classes posées par atelier.js) ── */
.js-anim [data-anim] { transition: opacity .6s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js-anim [data-anim]:not(.is-in) { opacity: 0; transform: translateY(18px); }
/* Ardoise : les pointillés se tracent jusqu'au prix */
.js-anim .at-menu .at-menu-dots { transform-origin: left; transform: translateY(-.3em) scaleX(0); transition: transform .9s cubic-bezier(.6, 0, .2, 1) .25s; }
.js-anim .at-menu.is-in .at-menu-dots { transform: translateY(-.3em) scaleX(1); }
.js-anim .at-menu li:nth-child(2) .at-menu-dots { transition-delay: .45s; }
.js-anim .at-menu li:nth-child(3) .at-menu-dots { transition-delay: .65s; }
.js-anim .at-menu .at-menu-price { opacity: 0; transform: translateX(-8px); transition: opacity .4s ease, transform .4s ease; }
.js-anim .at-menu.is-in .at-menu-price { opacity: 1; transform: none; transition-delay: 1.05s; }
.js-anim .at-menu.is-in li:nth-child(2) .at-menu-price { transition-delay: 1.25s; }
.js-anim .at-menu.is-in li:nth-child(3) .at-menu-price { transition-delay: 1.45s; }
/* Étapes : chiffres qui tombent en place l'un après l'autre */
.js-anim .at-steps li::before { transition: transform .6s cubic-bezier(.3, 1.4, .5, 1), opacity .4s; }
.js-anim .at-steps:not(.is-in) li::before { opacity: 0; transform: translateY(-24px); }
.js-anim .at-steps li:nth-child(2)::before { transition-delay: .15s; }
.js-anim .at-steps li:nth-child(3)::before { transition-delay: .3s; }
/* Monogramme : se pose en tournant légèrement */
.js-anim .at-mono { transition: transform .8s cubic-bezier(.3, 1.3, .5, 1), opacity .5s; }
.js-anim .at-mono:not(.is-in) { opacity: 0; transform: rotate(-8deg) scale(.85); }
.at-mono:hover { transform: rotate(-3deg); }
/* Fin : coup de surligneur derrière le titre */
.at-end-title .at-hl { background: linear-gradient(var(--at-mark), var(--at-mark)) no-repeat 0 82% / 0% 32%; transition: background-size 1s cubic-bezier(.6, 0, .2, 1) .3s; }
.at-end-title.is-in .at-hl, html:not(.js-anim) .at-end-title .at-hl { background-size: 100% 32%; }

/* ── Petits ajustements ── */
.at-btn { transition: background-color .15s, color .15s, transform .12s; }
.at-btn:active { transform: translateY(1px) scale(.98); }
.at-project h3 { font-family: var(--at-head); font-size: 1.8rem; font-weight: 800; line-height: 1; }
.at-project { transition: border-color .2s; }
.at-project:hover { border-top-color: var(--at-blue); }
@media (prefers-reduced-motion: reduce) {
  .js-anim [data-anim], .js-anim .at-title .w > span, .js-anim .at-menu .at-menu-dots, .js-anim .at-menu .at-menu-price,
  .js-anim .at-steps li::before, .js-anim .at-mono { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .js-anim .at-menu .at-menu-dots { transform: translateY(-.3em) !important; }
}

/* ============================================================
   V3 (28/11/2026) : retour de l'animation d'origine dans le haut de page
   (image IA, anneaux, étiquettes, réseau de points), adaptée au fond clair.
   Logo seul dans l'en-tête et le pied de page.
   ============================================================ */
.at-hero { position: relative; overflow: hidden; isolation: isolate; }
.at-hero .container { position: relative; z-index: 1; }
.at-network { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

.at-visual { position: relative; width: min(420px, 100%); aspect-ratio: 1; margin: 0 auto; }
.at-visual::before, .at-visual::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.at-visual::before { inset: 3.5%; border: 1.5px dashed rgba(45, 79, 184, .45); }
.at-visual::after {
  inset: 0;
  background: conic-gradient(from 0deg, transparent 0 72%, rgba(45, 79, 184, .95) 88%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
}
.at-visual-img { position: absolute; inset: 10%; border-radius: 50%; overflow: hidden; background: var(--at-ink); box-shadow: 0 30px 60px -25px rgba(22, 33, 62, .55), 0 0 0 6px var(--at-white); }
.at-visual-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.at-float {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem .9rem; border-radius: 10px; background: var(--at-white); color: var(--at-ink);
  font-weight: 600; font-size: .9rem; white-space: nowrap;
  border: 1px solid var(--at-rule); box-shadow: 0 12px 28px -14px rgba(22, 33, 62, .45);
}
.at-float i { color: var(--at-blue); }
.at-float-1 { top: 8%; left: -8%; }
.at-float-2 { top: 48%; right: -10%; }
.at-float-3 { bottom: 6%; left: 2%; }
@media (prefers-reduced-motion: no-preference) {
  .at-visual::before { animation: at-spin 30s linear infinite; }
  .at-visual::after  { animation: at-spin 5s linear infinite; }
  .at-float { animation: at-float 4s ease-in-out infinite; }
  .at-float-2 { animation-delay: 1.4s; }
  .at-float-3 { animation-delay: 2.8s; }
}
@keyframes at-spin  { to { transform: rotate(360deg); } }
@keyframes at-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 991px) { .at-visual { width: min(340px, 86%); } .at-float { font-size: .8rem; } .at-float-1 { left: -4%; } .at-float-2 { right: -6%; } }

/* La conversation se joue quand on arrive dessus (classe .play posée par atelier.js) */
.js-anim .at-thread:not(.play) .at-msg,
.js-anim .at-thread:not(.play) .at-typing { animation-play-state: paused; }
.at-demo .at-try { margin-top: 1rem; }

/* Logo seul */
.theme-atelier #mainNavbar .navbar-brand img { height: 54px; width: auto; }
.theme-atelier .site-footer .footer-logo { height: 110px; width: auto; }

/* ============================================================
   V4 (28/11/2026) : sélecteur de public + portfolio classé
   ============================================================ */
.at-seg { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; margin-top: 1.75rem; }
.at-seg-label { font-weight: 600; color: var(--at-ink-2); margin-bottom: .1rem; }
.at-seg-btn {
  font: inherit; font-family: var(--at-head); font-weight: 800; font-size: 1.7rem; line-height: 1;
  padding: .45rem .9rem .5rem; border-radius: 8px; border: 2px solid var(--at-rule);
  background: transparent; color: var(--at-ink-2); cursor: pointer; text-align: left;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.at-seg-btn:hover { border-color: var(--at-blue); color: var(--at-blue); }
.at-seg-btn[aria-selected="true"] { background: var(--at-blue); border-color: var(--at-blue); color: #fff; transform: translateX(6px); }
.at-seg-btn:focus-visible { outline: 3px solid var(--at-mark); outline-offset: 3px; }
.at-seg-title { font-family: var(--at-head) !important; font-size: 1.6rem !important; font-weight: 800 !important; margin: 0 0 .4rem; }
.at-seg-intro { color: var(--at-ink); font-size: 1.1rem; max-width: 40em; margin-bottom: 1.25rem; }
.at-seg-panel + .at-seg-panel { margin-top: 3rem; }
/* Avec JavaScript : un seul panneau visible, titre réservé aux lecteurs d'écran */
.js-seg .at-seg-panel[data-hidden] { display: none; }
.js-seg .at-seg-panel + .at-seg-panel { margin-top: 0; }
.js-seg .at-seg-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html:not(.js-seg) .at-seg { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .js-seg .at-seg-panel.is-shown { animation: at-panel .45s cubic-bezier(.2, .8, .2, 1); }
}
@keyframes at-panel { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 991px) {
  .at-seg { flex-direction: row; flex-wrap: wrap; }
  .at-seg-label { width: 100%; }
  .at-seg-btn { font-size: 1.25rem; }
  .at-seg-btn[aria-selected="true"] { transform: none; }
}

/* Portfolio : étiquette de public + lieu ; mise en avant selon le public choisi */
.at-project-meta { font-size: .88rem; color: var(--at-ink-2); margin-bottom: .5rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.at-tag { display: inline-block; padding: .15rem .55rem; border-radius: 4px; font-weight: 600; font-size: .8rem; }
.at-tag-institutions { background: #e4e9fb; color: #213d93; }
.at-tag-pme          { background: #fff3c4; color: #6b5300; }
.at-tag-tpe          { background: #dff3e8; color: #1d6b43; }
.at-project { transition: opacity .3s, border-color .2s; }
.at-projects.has-focus .at-project:not(.is-focus) { opacity: .45; }
.at-projects.has-focus .at-project.is-focus { border-top-color: var(--at-blue); }
.at-hero .at-title { font-size: clamp(3rem, 6.4vw, 5.4rem); }

/* V5 : projets supplémentaires repliés (sans JS, tout est affiché) */
.js-seg .at-projects:not(.show-all) .at-extra:not(.is-focus) { display: none; }
.at-more-wrap { margin-top: 2.5rem; }
.js-seg .at-projects.show-all ~ .at-more-wrap { display: none; }
html:not(.js-seg) .at-more-wrap { display: none; }

/* ============================================================
   V6 (28/11/2026) : pages Services (liste + détail)
   ============================================================ */
.at-hero-page { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.at-hero-page .at-title { font-size: clamp(2.8rem, 6vw, 5rem); max-width: 14ch; }
.at-back { margin-bottom: 1.5rem; font-weight: 600; }
.at-back a::before { content: "‹ "; }

/* Expertise : liste à filets, puces de technologies */
.at-xp { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--at-ink); }
.at-xp-item { padding: 1.6rem 0; border-bottom: 1px solid var(--at-rule); }
.at-xp-item h3 { font-family: var(--at-head) !important; font-size: 1.9rem !important; font-weight: 800 !important; line-height: 1; margin-bottom: .5rem; }
.at-xp-item > p { color: var(--at-ink-2); max-width: 42em; margin-bottom: .9rem; }
.at-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.at-chips li { font-size: .82rem; font-weight: 600; padding: .2rem .6rem; border-radius: 4px; background: var(--at-paper); border: 1px solid var(--at-rule); color: var(--at-ink); }
.at-xp-item:hover .at-chips li { border-color: var(--at-blue); }

/* Formats d'intervention : quatre colonnes à filet supérieur */
.at-formats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem 2.5rem; margin-top: 2rem; }
.at-format { border-top: 2px solid var(--at-blue); padding-top: 1rem; }
.at-format h3 { font-family: var(--at-head) !important; font-size: 1.7rem !important; font-weight: 800 !important; line-height: 1; }
.at-format p { color: var(--at-ink-2); }

/* Détail : encadré « Ce qui est inclus » */
.at-included { background: var(--at-white); border: 1px solid var(--at-rule); border-radius: 14px; padding: 1.5rem 1.6rem; }
.at-included h2 { font-family: var(--at-head) !important; font-size: 1.6rem; font-weight: 800; margin-bottom: .75rem; color: var(--at-ink); }
.at-included ul { list-style: none; margin: 0; padding: 0; }
.at-included li { padding: .55rem 0 .55rem 1.6rem; border-top: 1px solid var(--at-rule); position: relative; }
.at-included li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: .7rem; height: .7rem; border-radius: 2px; background: var(--at-blue); }

/* ============================================================
   V7 (28/11/2026) : À propos + passerelle pour les pages
   construites avec les anciens composants (contact, devis, FAQ).
   ============================================================ */
.at-facts { margin: 0; display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.at-facts > div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.at-facts dt { color: #9fb4ee; font-weight: 600; }
.at-facts dd { margin: 0; color: #fff; }
.at-section-ink .at-facts a { color: #fff !important; }
@media (max-width: 575px) { .at-facts > div { grid-template-columns: 1fr; gap: .1rem; } }

/* ── Passerelle : composants d'app.css sur fond clair ── */
.theme-atelier main > :not(.atelier) { color: var(--at-ink); }
.theme-atelier main .page-hero { background: var(--at-paper) !important; padding: clamp(2rem, 5vw, 3.5rem) 0 1rem; border: 0; }
.theme-atelier main .page-hero::before, .theme-atelier main .page-hero::after { display: none !important; }
.theme-atelier main .page-hero h1 { font-family: var(--at-head); font-weight: 900; font-size: clamp(2.8rem, 6vw, 4.8rem); line-height: .95; color: var(--at-ink); }
.theme-atelier main .page-hero .lead { color: var(--at-ink-2) !important; max-width: 36em; margin-top: 1rem; }
.theme-atelier main .section-tag { display: none; }
.theme-atelier main .text-gradient { background: none !important; -webkit-text-fill-color: currentColor !important; color: var(--at-blue) !important; }
.theme-atelier main .section-padded { background: var(--at-paper) !important; padding: 2rem 0 5rem; }
.theme-atelier main .text-muted { color: var(--at-ink-2) !important; }
.theme-atelier main h1, .theme-atelier main h2, .theme-atelier main h3,
.theme-atelier main h4, .theme-atelier main h5, .theme-atelier main h6 { color: var(--at-ink); }
.theme-atelier main a:not(.btn):not(.at-btn):not(.at-menu-row) { color: var(--at-blue); }

/* Cartes et formulaires */
.theme-atelier main .form-card { background: var(--at-white) !important; border: 1px solid var(--at-rule) !important; border-radius: 14px; box-shadow: none !important; color: var(--at-ink); }
.theme-atelier main .form-label { color: var(--at-ink); font-weight: 600; }
.theme-atelier main .form-control, .theme-atelier main .form-select {
  background-color: var(--at-white) !important; color: var(--at-ink) !important;
  border: 1.5px solid var(--at-rule) !important; border-radius: 8px; padding: .7rem .85rem;
}
.theme-atelier main .form-control::placeholder { color: #8a95ad; }
.theme-atelier main .form-control:focus, .theme-atelier main .form-select:focus { border-color: var(--at-blue) !important; box-shadow: 0 0 0 3px rgba(45, 79, 184, .18) !important; }
.theme-atelier main .form-control.is-invalid, .theme-atelier main .form-select.is-invalid { border-color: #c62828 !important; }
.theme-atelier main .invalid-feedback { color: #c62828; }
.theme-atelier main .alert-danger { background: #fdecea; border: 1px solid #f5c2bd; color: #8e1c14; }
.theme-atelier main .alert-info { background: var(--at-sky); border: 1px solid #c3d2ef; color: var(--at-ink); }
.theme-atelier main .alert-success { background: #e3f4ea; border: 1px solid #b9e2c8; color: #1d6b43; }
.theme-atelier main .border-secondary, .theme-atelier main .border-top { border-color: var(--at-rule) !important; }

/* Boutons */
.theme-atelier main .btn { font-weight: 700; border-radius: 6px; }
.theme-atelier main .btn-primary, .theme-atelier main .btn-success { background: var(--at-blue) !important; border: 2px solid var(--at-blue) !important; color: #fff !important; box-shadow: none !important; }
.theme-atelier main .btn-primary:hover, .theme-atelier main .btn-success:hover { background: var(--at-blue-d) !important; border-color: var(--at-blue-d) !important; }
.theme-atelier main .btn-outline-secondary, .theme-atelier main .btn-outline-primary, .theme-atelier main .btn-outline-light { background: transparent !important; border: 2px solid var(--at-blue) !important; color: var(--at-blue) !important; }
.theme-atelier main .btn-outline-secondary:hover, .theme-atelier main .btn-outline-primary:hover, .theme-atelier main .btn-outline-light:hover { background: var(--at-blue) !important; color: #fff !important; }

/* Contact */
.theme-atelier main .contact-item { border-color: var(--at-rule) !important; }
.theme-atelier main .contact-icon { background: var(--at-sky) !important; color: var(--at-blue) !important; box-shadow: none !important; }
.theme-atelier main .contact-item h6 { font-weight: 700; }

/* Assistant de devis */
.theme-atelier main .wizard-circle { background: var(--at-white) !important; border: 2px solid var(--at-rule) !important; color: var(--at-ink-2) !important; box-shadow: none !important; font-family: var(--at-head); font-weight: 800; font-size: 1.15rem; }
.theme-atelier main .wizard-node.active .wizard-circle { background: var(--at-blue) !important; border-color: var(--at-blue) !important; color: #fff !important; }
.theme-atelier main .wizard-node.done .wizard-circle { background: var(--at-sky) !important; border-color: var(--at-blue) !important; color: var(--at-blue) !important; }
.theme-atelier main .wizard-label { color: var(--at-ink-2) !important; }
.theme-atelier main .wizard-node.active .wizard-label { color: var(--at-ink) !important; font-weight: 700; }
.theme-atelier main .wizard-line { background: var(--at-rule) !important; }
.theme-atelier main .wizard-line.done { background: var(--at-blue) !important; }
.theme-atelier main .progress { background: var(--at-sky) !important; }
.theme-atelier main .progress-bar { background: var(--at-blue) !important; }
.theme-atelier main .service-card-mini { background: var(--at-white) !important; border: 1.5px solid var(--at-rule) !important; color: var(--at-ink) !important; }
.theme-atelier main .service-card-mini.selected, .theme-atelier main .service-card-mini:hover { border-color: var(--at-blue) !important; background: #f2f5fd !important; }
.theme-atelier main .recap-section, .theme-atelier main .recap-block, .theme-atelier main .recap-message { background: var(--at-paper) !important; border-color: var(--at-rule) !important; color: var(--at-ink) !important; }
.theme-atelier main .recap-section-title { color: var(--at-blue) !important; }

/* FAQ (accordéon Bootstrap) */
.theme-atelier main .accordion-item { background: var(--at-white) !important; border: 1px solid var(--at-rule) !important; color: var(--at-ink); }
.theme-atelier main .accordion-button { background: var(--at-white) !important; color: var(--at-ink) !important; font-weight: 700; box-shadow: none !important; }
.theme-atelier main .accordion-button:not(.collapsed) { color: var(--at-blue) !important; }
.theme-atelier main .accordion-body { color: var(--at-ink-2); }
.theme-atelier main .cta-section { background: var(--at-sky) !important; color: var(--at-ink); }

/* ============================================================
   V8 (28/11/2026) : blog (liste + article)
   ============================================================ */
.at-feature { display: block; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--at-rule); border-top: 4px solid var(--at-blue); border-radius: 14px; background: var(--at-paper); color: var(--at-ink); text-decoration: none; margin-bottom: 2.5rem; transition: border-color .2s; }
.at-feature:hover { border-color: var(--at-blue); }
.at-feature-meta, .at-post-meta { display: block; font-size: .88rem; color: var(--at-ink-2); margin-bottom: .6rem; }
.at-feature-title { display: block; font-family: var(--at-head); font-weight: 900; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: .98; margin-bottom: .9rem; max-width: 22ch; }
.at-feature-excerpt { display: block; font-size: 1.1rem; color: var(--at-ink-2); max-width: 46em; }
.at-feature-more { display: inline-block; margin-top: 1.25rem; font-weight: 700; color: var(--at-blue); border-bottom: 2px solid currentColor; }
.at-posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.25rem 2.5rem; }
.at-post { display: block; padding-top: 1rem; border-top: 2px solid var(--at-ink); color: var(--at-ink); text-decoration: none; }
.at-post-title { display: block; font-family: var(--at-head); font-weight: 800; font-size: 1.75rem; line-height: 1.02; margin-bottom: .6rem; }
.at-post-excerpt { display: block; color: var(--at-ink-2); }
.at-post:hover { border-top-color: var(--at-blue); }
.at-post:hover .at-post-title { color: var(--at-blue); }
.at-pages { display: flex; gap: .5rem; margin-top: 3rem; }
.at-pages a { min-width: 2.5rem; text-align: center; padding: .4rem .6rem; border: 1px solid var(--at-rule); border-radius: 6px; color: var(--at-ink); text-decoration: none; font-weight: 600; }
.at-pages a[aria-current] { background: var(--at-blue); border-color: var(--at-blue); color: #fff; }

/* Article */
.at-article-head .at-title { font-size: clamp(2.4rem, 5.2vw, 4.2rem); max-width: 20ch; }
.at-article-meta { color: var(--at-ink-2); font-size: .95rem; margin-top: 1rem; }
.at-toc { position: sticky; top: 90px; border-left: 3px solid var(--at-blue); padding-left: 1rem; }
.at-toc-title { font-weight: 700; margin-bottom: .5rem; }
.at-toc ol { margin: 0; padding-left: 1.1rem; }
.at-toc li { margin: .35rem 0; font-size: .95rem; }
.at-toc a { color: var(--at-ink-2) !important; text-decoration: none !important; }
.at-toc a:hover { color: var(--at-blue) !important; }
.at-prose { font-size: 1.12rem; line-height: 1.75; color: var(--at-ink); max-width: 40em; }
.at-prose p { margin: 0 0 1.25rem; }
.at-prose h2 { font-family: var(--at-head) !important; font-weight: 800 !important; font-size: clamp(1.9rem, 3.4vw, 2.5rem) !important; line-height: 1.02; margin: 2.75rem 0 1rem; scroll-margin-top: 90px; }
.at-prose h3 { font-family: var(--at-body) !important; font-weight: 700 !important; font-size: 1.25rem !important; margin: 2rem 0 .6rem; scroll-margin-top: 90px; }
.at-prose ul, .at-prose ol { margin: 0 0 1.4rem; padding-left: 1.4rem; }
.at-prose li { margin: .45rem 0; }
.at-prose li::marker { color: var(--at-blue); font-weight: 700; }
.at-prose strong { color: var(--at-ink); }
.at-prose blockquote { margin: 2rem 0; padding: 1.2rem 1.4rem; background: var(--at-sky); border-left: 4px solid var(--at-blue); border-radius: 0 10px 10px 0; }
.at-prose blockquote p { margin: 0; font-size: 1.2rem; line-height: 1.5; font-weight: 500; }
.at-prose code { font-size: .9em; background: var(--at-paper); border: 1px solid var(--at-rule); padding: .05rem .35rem; border-radius: 4px; }
.at-prose a { font-weight: 600; }
.atelier a.at-feature, .atelier a.at-post { text-decoration: none !important; color: var(--at-ink) !important; }
.atelier a.at-feature:hover .at-feature-title, .atelier a.at-post:hover .at-post-title { color: var(--at-blue); }
.at-feature-title { color: var(--at-ink); }
