/* =========================================================
   Next IMT — Feuille de style (thème clair, contraste WCAG AA)
   ========================================================= */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("../fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url("../fonts/space-grotesk-500.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url("../fonts/space-grotesk-700.woff2") format("woff2"); }

:root {
  --bg: #ffffff;
  --bg-2: #f5f7fb;          /* sections alternées */
  --surface: #ffffff;
  --line: #e2e8f0;
  --text: #0f172a;          /* contraste 17:1 sur blanc */
  --muted: #475569;         /* contraste 7.5:1 sur blanc */
  --accent: #0d7a72;        /* teal foncé : 5.3:1 */
  --accent-2: #5b3fe0;      /* violet : 6:1 */
  --accent-soft: #e6f5f3;
  --violet-soft: #efebfd;
  --grad: linear-gradient(120deg, #0d7a72 0%, #5b3fe0 100%);
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .12);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .04), 0 20px 40px -18px rgba(15, 23, 42, .22);
  --max: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-title: "Space Grotesk", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.7; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.015em; color: var(--text); }
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
code { background: var(--bg-2); padding: .1rem .4rem; border-radius: 6px; font-size: .9em; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; margin: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--text); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: 8px; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--font-title); font-weight: 700; font-size: 1.45rem; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo img { height: 44px; width: auto; }
.logo span { color: var(--accent-2); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a, .sub-toggle { color: var(--muted); font-weight: 500; font-size: .98rem; }
.nav-links a:hover, .nav-links a[aria-current="page"], .sub-toggle:hover, .sub-toggle.active { color: var(--text); text-decoration: none; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: .25rem .8rem; font-size: .85rem !important; font-weight: 600 !important; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-size: 1.4rem; width: 44px; height: 44px; cursor: pointer; }

/* Sous-menus */
.has-sub { position: relative; }
.sub-toggle { background: none; border: 0; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: .35rem; padding: 0; }
.sub-toggle span { font-size: .75em; transition: transform .2s; }
.sub { list-style: none; margin: 0; padding: .5rem; position: absolute; top: calc(100% + 16px); left: 50%; transform: translate(-50%, 6px); min-width: 230px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
.sub a { display: block; padding: .6rem .9rem; border-radius: 10px; white-space: nowrap; }
.sub a:hover { background: var(--bg-2); }
.sub a[aria-current="page"] { background: var(--accent-soft); color: var(--accent) !important; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .98rem; border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -12px rgba(91, 63, 224, .7); }
.btn-ghost { border-color: #cbd5e1; color: var(--text); background: #fff; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-group { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 5.5rem 0 5rem; overflow: hidden;
  background: radial-gradient(900px 500px at 85% 0%, var(--violet-soft), transparent 70%), radial-gradient(700px 400px at 0% 100%, var(--accent-soft), transparent 70%); }
.hero-grid { position: absolute; inset: 0; z-index: 0; background-image: linear-gradient(#e9eef5 1px, transparent 1px), linear-gradient(90deg, #e9eef5 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 65%); }
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 620px; }
.hero-art { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: min(44%, 500px); height: auto; }
.page-hero { padding: 4.5rem 0 3.5rem; }
.page-hero .hero-art { width: min(34%, 360px); }
.page-hero .hero-content { max-width: 680px; }

/* ---------- Sections ---------- */
section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 3rem; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); transition: border-color .25s, transform .25s, box-shadow .25s; }
.card:hover { border-color: #b8ddd9; transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card p:last-child { margin-bottom: 0; }
.icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 1.2rem; }
.icon svg { width: 26px; height: 26px; }
.grid > .card:nth-child(even) .icon { background: var(--violet-soft); color: var(--accent-2); }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; color: var(--accent-2); background: var(--violet-soft); border-radius: 999px; padding: .15rem .65rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .8rem; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3.5rem; max-width: 760px; }
.stat strong { display: block; font-family: var(--font-title); font-size: 2rem; line-height: 1.2; }
.stat span { color: var(--muted); font-size: .92rem; }

.steps { counter-reset: step; }
.step { position: relative; padding-top: 3.4rem; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-title); font-weight: 700; font-size: 1rem; color: #fff; background: var(--grad); }

/* Expérience */
.experience { padding: 4.5rem 0; }
.experience-grid { display: grid; grid-template-columns: 240px 1fr; gap: 3rem; align-items: center; }
.exp-badge { aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg), 0 0 0 12px var(--accent-soft); }
.exp-badge strong { font-family: var(--font-title); font-size: 5rem; line-height: 1; }
.exp-badge span { font-family: var(--font-title); font-size: 1.3rem; font-weight: 700; }
.exp-badge em { font-style: normal; color: var(--muted); font-size: .9rem; }
.experience .lead { max-width: none; }

/* Architecture IA (schéma en couches) */
.archi { display: grid; gap: .8rem; }
.layer { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 2rem; position: relative; box-shadow: var(--shadow); }
.layer::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 4px; border-radius: 4px; background: var(--grad); }
.layer h3 { margin: 0; }
.layer p { margin: 0; color: var(--muted); }
.tool { font-size: .85rem; color: var(--accent); font-weight: 700; }
a.tool:hover { text-decoration: underline; }
.layer-arrow { text-align: center; color: #94a3b8; font-size: 1.1rem; line-height: 1; }
.pill-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.pill { font-size: .82rem; padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); }

/* Pages des briques */
.layer-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.layer-nav .pill:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.layer-details { display: grid; gap: 2rem; }
.layer-detail { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 2.5rem; scroll-margin-top: 100px; box-shadow: var(--shadow); }
.ld-head { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.ld-head h2 { margin: 0; font-size: 1.8rem; }
.ld-num { font-family: var(--font-title); font-weight: 700; font-size: 1.2rem; color: #fff; background: var(--grad); width: 3.2rem; height: 3.2rem; border-radius: 14px; display: grid; place-items: center; }
.ld-lic { margin-left: auto; background: var(--accent-soft); border-color: #b8ddd9; color: var(--accent); font-weight: 600; }
.ld-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; }
.ld-body h3 { font-size: 1.05rem; margin-top: 1.5rem; }
.ld-body h3:first-child { margin-top: 0; }
ul.check { list-style: none; padding: 0; margin: 0 0 1rem; }
ul.check li { position: relative; padding-left: 1.8rem; margin-bottom: .5rem; color: var(--muted); }
ul.check li::before { content: ""; position: absolute; left: 0; top: .4em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d7a72' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 70% no-repeat; }
.ld-side { display: grid; gap: 1rem; align-content: start; }
.ld-box { border: 1px solid var(--line); border-radius: 14px; padding: 1.3rem 1.5rem; background: var(--bg-2); }
.ld-box h4 { margin: 0 0 .5rem; font-size: .95rem; }
.ld-box p { margin: 0; color: var(--muted); font-size: .95rem; }
.ld-eco { background: var(--violet-soft); border-color: #d6cdfa; }
.ld-eco strong { color: var(--text); }
.price-date { display: inline-block; margin-left: .4rem; font-size: .72rem; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .05rem .55rem; vertical-align: middle; }
th .price-date { margin: .3rem 0 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.eco-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.eco-table th, .eco-table td { padding: 1rem 1.3rem; text-align: left; border-bottom: 1px solid var(--line); }
.eco-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--bg-2); }
.eco-table td { color: var(--muted); }
.eco-table td:first-child { color: var(--text); font-weight: 600; }
.eco-table td:last-child { color: var(--accent); font-weight: 700; }
.eco-table tfoot td { border-bottom: 0; background: var(--accent-soft); color: var(--text); font-weight: 700; }

/* Parcours de la donnée */
.pipeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.6rem; }
.pipe-step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.3rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; box-shadow: var(--shadow); }
.pipe-step strong { font-family: var(--font-title); font-size: 1.05rem; }
.pipe-step span { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.pipe-step:not(:last-child)::after { content: "→"; position: absolute; right: -1.3rem; top: 50%; transform: translateY(-50%); color: var(--accent); font-weight: 700; }
.pipe-store { background: var(--violet-soft); border-color: #d6cdfa; }

/* ---------- Appel à l'action / contact ---------- */
.cta { text-align: center; border-radius: 26px; padding: 4rem 2rem; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  background: radial-gradient(600px 300px at 15% 0%, var(--violet-soft), transparent 70%), radial-gradient(600px 300px at 85% 100%, var(--accent-soft), transparent 70%), #fff; }
.cta .lead { margin-inline: auto; }
.cta .btn-group { justify-content: center; }

.contact-form { max-width: 720px; margin: 2rem auto 0; text-align: left; display: grid; gap: 1rem; }
.contact-form label { display: grid; gap: .35rem; font-size: .92rem; font-weight: 600; color: var(--text); }
.contact-form input[type=text], .contact-form input[type=email], .contact-form input[type=tel], .contact-form textarea {
  width: 100%; padding: .8rem 1rem; border-radius: 12px; border: 1px solid #cbd5e1; background: #fff; color: var(--text); font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.contact-form textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.captcha-row { display: flex; align-items: flex-end; gap: .8rem; flex-wrap: wrap; }
.captcha-img { border-radius: 10px; border: 1px solid var(--line); }
.captcha-refresh { height: 56px; width: 48px; border-radius: 10px; border: 1px solid #cbd5e1; background: #fff; color: var(--text); font-size: 1.4rem; cursor: pointer; }
.captcha-refresh:hover { border-color: var(--accent); color: var(--accent); }
.captcha-input { flex: 1; min-width: 180px; }
.captcha-input input { text-transform: uppercase; letter-spacing: .3em; }
.consent { display: flex !important; align-items: flex-start; gap: .6rem !important; font-weight: 400 !important; color: var(--muted) !important; }
.consent input { margin-top: .35rem; accent-color: var(--accent); width: 1.1rem; height: 1.1rem; }
.contact-form .btn { justify-self: start; border: 0; cursor: pointer; }
.contact-form .btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.form-status { margin: 0; min-height: 1.5em; font-weight: 600; }
.form-status.ok { color: #047857; }
.form-status.error { color: #b91c1c; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Mentions légales ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.4rem; margin-top: 2.5rem; }
.legal h2:first-child { margin-top: 0; }
.legal ul { padding-left: 1.2rem; color: var(--muted); }
.legal p { color: var(--muted); }
.legal strong { color: var(--text); }

/* ---------- Pied de page (bleu nuit, contraste élevé) ---------- */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 3.5rem 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.site-footer .logo { color: #fff; }
.site-footer .logo span { color: #b4a8f7; }
.baseline { margin: 1rem 0 .6rem; font-family: var(--font-title); font-size: .95rem; color: #fff; }
.baseline em { color: #5eead4; font-style: normal; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #1e293b; font-size: .85rem; color: #94a3b8; }
.footer-bottom a { color: #cbd5e1; }

/* ---------- Animation ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (min-width: 1081px) {
  .has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .has-sub:hover .sub-toggle span, .has-sub.open .sub-toggle span { transform: rotate(180deg); }
}
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); display: none; padding: 1rem 0; }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; text-align: center; padding: .7rem 0; }
  .sub { position: static; transform: none; opacity: 1; visibility: visible; display: none; box-shadow: none; border: 0; min-width: 0; padding: .4rem 0 0; }
  .sub::before { content: none; }
  .has-sub.open .sub { display: block; }
  .has-sub.open .sub-toggle span { transform: rotate(180deg); }
  .nav-links .sub li { padding: 0; }
  .hero-art { display: none; }
  .hero-content, .page-hero .hero-content { max-width: none; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pipeline { grid-template-columns: repeat(3, 1fr); }
  .pipe-step:nth-child(3)::after { content: none; }
}
@media (max-width: 860px) {
  .experience-grid { grid-template-columns: 1fr; gap: 2rem; justify-items: center; text-align: center; }
  .exp-badge { width: 210px; }
  .ld-body { grid-template-columns: 1fr; }
  .ld-lic { margin-left: 0; }
  .layer-detail { padding: 1.6rem; }
}
@media (max-width: 760px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .layer { grid-template-columns: 1fr; gap: .5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 4rem 0; }
  .hero { padding: 4rem 0 3.5rem; }
}
@media (max-width: 640px) {
  .pipeline { grid-template-columns: 1fr; gap: 1.8rem; }
  .pipe-step:not(:last-child)::after, .pipe-step:nth-child(3)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -1.5rem; transform: translateX(-50%); }
}
.i-sm { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -.17em; margin-right: .25rem; color: var(--accent-2); }

/* ---------- Photos ---------- */
.exp-visual { position: relative; }
.exp-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow-lg); }
.exp-visual .exp-badge { position: absolute; right: -28px; bottom: -28px; width: 150px; }
.exp-visual .exp-badge strong { font-size: 3.2rem; }
.exp-visual .exp-badge span { font-size: 1rem; }
.exp-visual .exp-badge em { font-size: .75rem; }
.experience-grid { grid-template-columns: minmax(280px, 460px) 1fr; gap: 4rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; margin-bottom: 3rem; }
.split .lead { margin-bottom: 0; }
.split-photo { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 22px; box-shadow: var(--shadow-lg); }
.cta-photo { width: 100%; max-width: 720px; height: 260px; object-fit: cover; object-position: center 35%; border-radius: 18px; margin: 0 auto 2rem; box-shadow: var(--shadow); }
@media (max-width: 860px) {
  .experience-grid { grid-template-columns: 1fr; }
  .exp-visual { max-width: 460px; margin-inline: auto; }
  .exp-visual .exp-badge { right: 12px; bottom: -24px; width: 120px; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .cta-photo { height: 200px; }
}
.exp-illu { object-fit: contain; border: 1px solid var(--line); background: #fff; }
.split-illu { object-fit: contain; background: #fff; border: 1px solid var(--line); }
.split:has(.split-illu) { grid-template-columns: 1fr 1.7fr; gap: 3rem; }
@media (max-width: 860px) { .split:has(.split-illu) { grid-template-columns: 1fr; } }

/* ---------- Pied de page clair (met en valeur le logo doré) ---------- */
.site-footer { background: var(--bg-2); color: var(--muted); border-top: 1px solid var(--line); }
.site-footer h4 { color: var(--text); }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.site-footer .logo { color: var(--text); }
.site-footer .logo span { color: var(--accent-2); }
.baseline { color: var(--text); }
.baseline em { color: var(--accent); }
.footer-bottom { border-top-color: var(--line); color: var(--muted); }
.footer-bottom a { color: var(--muted); }

/* Illustration « cerveau » des pages IA : plus grande, et visible sur mobile */
.page-hero .hero-art.hero-brain { width: min(46%, 540px); }
.page-hero:has(.hero-brain) .hero-content { max-width: 600px; }
@media (max-width: 1080px) {
  .hero-art.hero-brain { display: block; position: static; transform: none; width: 100%; max-width: 560px; margin: 2.5rem auto 0; }
  .page-hero .hero-art.hero-brain { width: 100%; }
}
@media (min-width: 1081px) { .hero:not(.page-hero) .hero-art.hero-brain { width: min(46%, 540px); } }
@media (min-width: 1081px) and (max-width: 1280px) {
  .hero-content, .page-hero .hero-content, .page-hero:has(.hero-brain) .hero-content { max-width: 52%; }
  .hero .hero-art.hero-brain, .page-hero .hero-art.hero-brain { width: 44%; }
}

/* ---------- Fiches briques ---------- */
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1.2rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--text); font-weight: 600; }
.brick-hero .hero-content { max-width: 820px; }
.brick-intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
.facts { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.6rem 1.8rem; box-shadow: var(--shadow); }
.facts h3 { margin-bottom: 1rem; }
.facts table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.facts th, .facts td { text-align: left; padding: .65rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts th { color: var(--muted); font-weight: 600; width: 38%; padding-right: 1rem; }
.procon h2 { font-size: 1.5rem; }
.procon.pro .icon { background: #dcfce7; color: #15803d; }
.procon.con .icon { background: #fee2e2; color: #b91c1c; }
.grid > .card.procon:nth-child(even) .icon { background: #fee2e2; color: #b91c1c; }
ul.cross { list-style: none; padding: 0; margin: 0; }
ul.cross li { position: relative; padding-left: 1.8rem; margin-bottom: .5rem; color: var(--muted); }
ul.cross li::before { content: ""; position: absolute; left: 0; top: .4em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: #fee2e2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b91c1c' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M17 7 7 17M7 7l10 10'/%3E%3C/svg%3E") center / 62% no-repeat; }
.tag-paid { color: #8a5a00; background: #f7ecd2; }
.section-head .eyebrow svg, .why .eyebrow svg { display: inline-block; width: 1em; height: 1em; vertical-align: -.15em; }
.why { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 2.8rem; box-shadow: var(--shadow-lg); }
.why-list { counter-reset: why; list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .9rem; }
.why-list li { counter-increment: why; position: relative; padding-left: 3rem; min-height: 2.2rem; display: flex; align-items: center; font-size: 1.05rem; }
.why-list li::before { content: counter(why); position: absolute; left: 0; top: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-family: var(--font-title); font-weight: 700; }
.notice { display: flex; gap: .7rem; align-items: flex-start; background: #fff8e6; border: 1px solid #f3dfa8; color: #5c4400; border-radius: 14px; padding: 1rem 1.2rem; font-size: .95rem; }
.notice svg { flex: none; width: 1.3rem; height: 1.3rem; margin-top: .1rem; }
.notice strong { color: #3d2d00; }
.brick-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; margin-top: 2.5rem; }
.brick-nav a { display: grid; gap: .1rem; padding: 1rem 1.3rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--text); }
.brick-nav a:hover { border-color: var(--accent); text-decoration: none; }
.brick-nav small { color: var(--muted); }
.brick-nav .next { text-align: right; }
.brick-nav .all { font-weight: 600; color: var(--accent); text-align: center; }
a.more { display: inline-block; margin-top: .5rem; font-weight: 600; }
@media (max-width: 860px) {
  .brick-intro { grid-template-columns: 1fr; }
  .why { padding: 1.8rem; }
  .brick-nav { grid-template-columns: 1fr 1fr; }
  .brick-nav .all { grid-column: 1 / -1; order: 3; }
}

/* Sous-menus avec fiches briques */
.sub { min-width: 270px; max-height: calc(100vh - 110px); overflow-y: auto; }
.sub-label { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); padding: .8rem .9rem .3rem; margin-top: .3rem; border-top: 1px solid var(--line); }
.sub-brick a { display: flex; flex-direction: column; gap: .05rem; padding: .45rem .9rem; line-height: 1.3; }
.sub-brick small { font-size: .78rem; color: var(--muted); font-weight: 400; }
@media (max-width: 1080px) {
  .sub { max-height: none; }
  .sub-label { text-align: center; }
  .sub-brick a { align-items: center; }
}

/* ---------- Fiches : logo, site officiel, galerie ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.facts-logo { height: 48px; width: auto; max-width: 180px; object-fit: contain; margin-bottom: 1rem; }
.site-link { margin-top: 1.2rem; width: 100%; justify-content: center; font-size: .95rem; }
.gallery-section { padding-top: 0; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.shots-one { grid-template-columns: minmax(0, 860px); justify-content: center; }
.shot { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.shot a { display: block; background: var(--bg-2); }
.shot img { width: 100%; height: auto; transition: transform .3s; }
.shot a:hover img { transform: scale(1.02); }
.shot figcaption { padding: .9rem 1.1rem 1rem; font-weight: 600; font-size: .95rem; display: grid; gap: .2rem; border-top: 1px solid var(--line); }
.shot figcaption small { font-weight: 400; color: var(--muted); font-size: .8rem; }
@media (max-width: 860px) { .shots { grid-template-columns: 1fr; } }

/* ---------- Visionneuse d'images ---------- */
.zoomable, .shot a { cursor: zoom-in; }
.lb-open, .lb-open body { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
  padding: 4.5rem 1.5rem 2.5rem; background: rgba(15, 23, 42, .9); opacity: 0; transition: opacity .2s; }
.lightbox.is-visible { opacity: 1; }
.lightbox[hidden] { display: none; }
.lb-figure { grid-column: 2; margin: 0; display: grid; justify-items: center; gap: .8rem; min-height: 0; }
.lb-img { max-width: 100%; max-height: calc(100vh - 10rem); width: auto; height: auto; object-fit: contain; background: #fff; border-radius: 12px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.lb-caption { color: #fff; text-align: center; font-weight: 600; max-width: 900px; display: grid; gap: .2rem; }
.lb-caption small { color: #cbd5e1; font-weight: 400; }
.lb-close { position: absolute; top: 1rem; right: 1rem; display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.2rem; border-radius: 999px;
  border: 0; background: #fff; color: var(--text); font: 600 1rem var(--font); cursor: pointer; box-shadow: var(--shadow-lg); }
.lb-close span { font-size: 1.1rem; }
.lb-close:hover { background: var(--accent-soft); color: var(--accent); }
.lb-nav { width: 3.2rem; height: 3.2rem; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--text); font-size: 2rem; line-height: 1; cursor: pointer; }
.lb-nav:hover { background: #fff; color: var(--accent); }
.lb-nav[hidden] { display: block; visibility: hidden; }
.lb-prev { grid-column: 1; }
.lb-next { grid-column: 3; }
.lb-count { position: absolute; top: 1.4rem; left: 1.5rem; margin: 0; color: #e2e8f0; font-weight: 600; }
.lightbox :focus-visible { outline: 3px solid #5eead4; outline-offset: 3px; }
@media (max-width: 760px) {
  .lightbox { grid-template-columns: 1fr; padding: 4.5rem .75rem 5.5rem; }
  .lb-figure { grid-column: 1; }
  .lb-nav { position: absolute; bottom: 1.2rem; }
  .lb-prev { left: calc(50% - 4rem); }
  .lb-next { right: calc(50% - 4rem); }
  .lb-img { max-height: calc(100vh - 13rem); }
}

/* Pied de page : 5 colonnes (marque, navigation, briques IA, briques data, contact) */
.footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1.1fr; gap: 2rem 2.5rem; }
.site-footer a[aria-current="page"] { color: var(--accent); font-weight: 600; }
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Page Prestations : 5 profils accompagnés */
.grid-who { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
