:root{
  --bg:#0a0a0a;
  --text:#F5EBD9;
  --muted:#cfcfcf;
  --border:#222;
  --surface:#0f0f0f;
  --surface-2:#111;
}

/* Base */
html,body{height:100%}
body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}
main{max-width:860px;margin:0 auto;padding:2rem 1rem 4rem}
h1,h2,h3{line-height:1.2;margin:1.2rem 0 .5rem}
h1{font-size:2.25rem;font-weight:600}
h2{font-size:1.5rem;margin-top:2rem;font-weight:600}
h3{font-size:1.125rem;margin-top:1rem;font-weight:600}
p,li{line-height:1.7}
ul{padding-left:1.25rem}
code,pre{font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}
a{color:var(--text);text-decoration:underline;opacity:.8}
a:hover{opacity:1}
/* Ask GPT button (match Splash) */
.ask-gpt-link{display:inline-flex;align-items:center;gap:12px;background:#ead7b7;color:#000;padding:10px 18px;border-radius:40px;text-decoration:none;border:1px solid rgba(255,255,255,.6);transition:background .2s ease}
.ask-gpt-link:hover{background:#e6d2b1}
.ask-gpt-link img{width:22px;height:22px;display:block;border:0 !important;border-radius:0 !important;background:transparent !important;box-shadow:none !important;outline:0}
/* Images */
img{border:1px solid var(--border);border-radius:10px}
/* Intro tagline */
.intro-tagline{margin-top:.25rem;color:#dcd6c7}

/* Title row + badge */
.title-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.badge-ai{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:999px;border:1px solid var(--border);background:rgba(255,255,255,.06);color:#e7decc;font-size:.8rem;font-weight:600;letter-spacing:.2px;white-space:nowrap}
.badge-ai .badge-icon{display:inline-flex;color:#e7decc}
.badge-ai::after{display:none}
.badge-ai .badge-text{display:inline-block}

/* Code blocks */
.code-block{background:var(--surface);border:1px solid var(--border);border-radius:10px;overflow:hidden;margin:12px 0}
.code-header{background:var(--surface-2);border-bottom:1px solid var(--border);padding:8px 12px;font-size:12px;color:#9ca3af;font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;display:flex;align-items:center;gap:8px}
.code-header::before{content:none !important;display:none !important}
/* Supprime tout éventuel marqueur de liste sur le header */
.code-header{list-style:none}
.code-header::marker{content:""}
.code-content{padding:12px;overflow:auto;max-height:420px;background:#0b0b0b;scrollbar-width:none;-ms-overflow-style:none}
.code-content::-webkit-scrollbar{display:none}
.code-content code{color:#d1d5db;font-size:12.5px;line-height:1.6;display:block;white-space:pre}

/* Guidelines details */
details.about-guidelines{margin:1.5rem 0;border:1px solid #2a2a2a;border-radius:12px;background:#0b0b0b;overflow:hidden}
details.about-guidelines>summary{cursor:pointer;font-weight:600;color:#e5e5e5;font-size:.95rem;padding:.75rem 1rem;outline:none}
details.about-guidelines .about-guidelines__content{padding:1rem;background:var(--surface-2);border-top:1px solid var(--border);border-radius:0 0 12px 12px;font-size:.95rem;color:#ddd}

/* Projects */
.project{margin:2.5rem 0 3rem}
.project-title{margin-bottom:.25rem}
.project-separator{border:none;border-top:1px solid var(--border);margin:2.5rem 0;opacity:0.3}
.project-tags{display:flex;gap:.5rem;flex-wrap:wrap;margin:.25rem 0 1rem;padding-left:0;list-style:none}
.project-tags li{background:rgba(255,255,255,.06);border:1px solid var(--border);padding:.2rem .5rem;border-radius:999px;font-size:.75rem;color:#dcd6c7}
.project-image img{width:100%;height:auto;display:block;border-radius:10px;border:1px solid var(--border)}

/* Inline gallery per project */
.project-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:0 0 1rem}
.project-gallery figure{margin:0;border:none;border-radius:0;overflow:hidden;background:transparent}
.project-gallery img{display:block;width:100%;height:160px;object-fit:cover;border:1px solid var(--border);border-radius:10px}
.project-gallery figcaption{padding:8px 10px;color:#dcd6c7;font-size:.85rem}

/* Small tweaks */
figure{margin:0}
figcaption{margin-top:.5rem;color:#c8c1b2;font-size:.85rem}

/* FabLab gallery */
.fablab-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:.5rem 0 1.25rem}
.fablab-gallery figure{margin:0;border:1px solid var(--border);border-radius:10px;overflow:hidden;background:var(--surface)}
.fablab-gallery img{display:block;width:100%;height:180px;object-fit:cover;border:1px solid var(--border);border-radius:10px}
.fablab-gallery figcaption{padding:8px 10px;color:#dcd6c7;font-size:.85rem}

/* Projects gallery (removed) */

/* Hide large figures in project sections to reduce vertical space */
.project .project-image{display:none}

/* Testimonials */
.testimonials{list-style:none;padding-left:0;margin:1rem 0 2rem;display:grid;gap:12px}
.testimonials li{border:1px solid var(--border);border-radius:10px;background:var(--surface);padding:14px}
.testimonials blockquote{margin:0;color:#e9e1d2;line-height:1.6}
.testimonials figcaption{margin-top:.35rem;color:#bfb7a6;font-size:.85rem}


/* Section boxes (moved from inline <style> in about-ai.html) */
.section-box{position:relative;border:3px solid;border-radius:8px;margin:20px 0;padding:15px;background:rgba(255,255,255,.02)}
.section-label{position:absolute;top:-12px;left:15px;padding:4px 12px;border-radius:4px;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;color:#fff;z-index:10;box-shadow:0 0 0 3px var(--bg), 0 2px 8px rgba(0,0,0,.2);text-decoration:none !important;mix-blend-mode:normal;display:inline-block}

/* Couleurs par catégorie */
.identity{border-color:#3B82F6}
.identity .section-label{background:#3B82F6}
.mission{border-color:#10B981}
.mission .section-label{background:#10B981}
.sectors{border-color:#F59E0B}
.sectors .section-label{background:#F59E0B}
.infrastructure{border-color:#8B5CF6}
.infrastructure .section-label{background:#8B5CF6}
.clients{border-color:#EF4444}
.clients .section-label{background:#EF4444}
.method{border-color:#06B6D4}
.method .section-label{background:#06B6D4}
.positioning{border-color:#84CC16}
.positioning .section-label{background:#84CC16}
.ai{border-color:#F97316}
.ai .section-label{background:#F97316}
.projects{border-color:#EC4899}
.projects .section-label{background:#EC4899}
.results{border-color:#6366F1}
.results .section-label{background:#6366F1}
.limits{border-color:#64748B}
.limits .section-label{background:#64748B}
.philosophy{border-color:#14B8A6}
.philosophy .section-label{background:#14B8A6}
.data{border-color:#A855F7}
.data .section-label{background:#A855F7}
.contact{border-color:#DC2626}
.contact .section-label{background:#DC2626}

/* Call To Action */
.cta{border-color:#E11D48;background:rgba(225,29,72,.06)}
.cta .section-label{background:#E11D48}
/* Force le fond du badge CTA même si d'autres règles passent avant */
.section-box.cta > .section-label{background:#E11D48 !important}

/* Heading-as-label: H2 acts as the colored label; no data-label needed */
.section-title{position:absolute;top:-12px;left:15px;display:inline-block;padding:4px 12px;border-radius:4px;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;color:#fff;z-index:10;box-shadow:0 2px 8px rgba(0,0,0,.2);margin:0}
/* Section wrapper to draw the box around the whole content */
.section-block{position:relative;border:3px solid;border-radius:8px;margin:30px 0;padding:15px;background:rgba(255,255,255,.02)}
.section-block > .section-title{margin-top:0}
/* Color variants */
.results-block{border-color:#437C94;margin-bottom:40px}
.results-title{background:#437C94}
.mission-block{border-color:#5E507E;margin-bottom:40px}
.mission-title{background:#5E507E}
.clients-block{border-color:#61804C}
.clients-title{background:#61804C}
.projects-block{border-color:#B94E4E}
.projects-title{background:#B94E4E}
.method-block{border-color:#8B6F47}
.method-title{background:#8B6F47}
.venture-block{border-color:#7A5F8F}
.venture-title{background:#7A5F8F !important}
.venture-block > .section-title{background:#7A5F8F !important}
.contact-block{border-color:#C97A5A}
.contact-title{background:#C97A5A}
.cta-list{list-style:none;padding-left:0;display:flex;flex-wrap:wrap;gap:.5rem;margin:.5rem 0 0}
.cta-list li{background:rgba(255,255,255,.06);border:1px solid var(--border);padding:.5rem .75rem;border-radius:8px}
.cta a{font-weight:600}
