/* Iyad Guesba · site des projets
   Feuille de style unique, sans dependance externe. */

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #1c6dd0;
  --blue-600: #1760bb;
  --blue-dark: #124e9e;
  --blue-soft: #e8f1fe;
  --navy: #0e1b2e;
  --text: #13243a;
  --muted: #56677d;
  --line: #dde7f3;
  --bg: #f6f9fd;
  --surface: #ffffff;
  --surface-2: #eef4fc;
  --green: #1f9d5c;
  --green-soft: #e1f5ea;
  --amber: #c9820f;
  --amber-soft: #fdf1dc;
  --red: #d33b3b;
  --coral: #e0603a;
  --teal: #0c8f86;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(16, 38, 70, 0.06);
  --shadow: 0 14px 36px rgba(16, 38, 70, 0.09);
  --shadow-lg: 0 28px 70px rgba(16, 38, 70, 0.16);
  --font-head: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1140px;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid rgba(28, 109, 208, 0.45); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(28, 109, 208, 0.18); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.5rem, 5.2vw, 4.1rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-head .eyebrow { color: var(--blue); font-size: 0.82rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 0.82rem/1 var(--font-head);
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

/* ---------- En-tete ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 249, 253, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); font: 700 1.08rem/1 var(--font-head); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block; padding: 9px 14px; border-radius: 999px;
  color: var(--text); font: 500 0.95rem/1 var(--font-head);
}
.nav-links a:hover { background: var(--surface-2); text-decoration: none; }
.nav-links a.is-active { color: var(--blue); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: var(--surface); border-radius: 12px; cursor: pointer; color: var(--navy);
}
.nav-toggle svg { margin: auto; }

@media (max-width: 760px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    position: absolute; top: 72px; left: 12px; right: 12px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
    padding: 8px; box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
  }
  .nav-links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 14px 16px; border-radius: 12px; }
}

/* ---------- Boutons ---------- */
.btn {
  --b: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px; border-radius: 14px;
  border: 1px solid transparent; cursor: pointer;
  font: 500 1rem/1.2 var(--font-head); text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--b); color: #fff; box-shadow: 0 10px 24px rgba(28, 109, 208, 0.28); }
.btn-primary:hover { background: var(--blue-600); box-shadow: 0 14px 30px rgba(28, 109, 208, 0.34); }
.btn-ghost { background: var(--surface); color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: #c5d6ec; box-shadow: var(--shadow-sm); }
.btn-lg { min-height: 58px; padding: 14px 26px; font-size: 1.06rem; border-radius: 16px; }
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero accueil ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 90px) 0 clamp(56px, 8vw, 100px); }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(28, 109, 208, 0.16), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: auto auto -40% -20%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(closest-side, rgba(12, 143, 134, 0.10), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 0.3em; }
.hero h1 .accent { color: var(--blue); }
.hero .lead { margin-bottom: 30px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; padding: 0; list-style: none; }
.hero-facts li {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font-size: 0.92rem; color: var(--muted);
}
.hero-facts svg { width: 16px; height: 16px; color: var(--blue); }
.hero-art { width: 100%; max-width: 560px; justify-self: end; filter: drop-shadow(0 30px 50px rgba(16, 38, 70, 0.12)); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { justify-self: center; max-width: 460px; }
}

/* Animations de l'illustration */
.pulse-ring { transform-origin: center; transform-box: fill-box; animation: pulse 3.2s ease-out infinite; }
.pulse-ring.delay { animation-delay: 1.6s; }
@keyframes pulse { 0% { opacity: 0.55; transform: scale(0.6); } 100% { opacity: 0; transform: scale(1.55); } }
.flow { stroke-dasharray: 3 9; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.float { animation: float 6s ease-in-out infinite; }
.float.slow { animation-duration: 8s; animation-delay: -2s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Cartes projets ---------- */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .projects { grid-template-columns: 1fr; } }
.project-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: inherit; box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cddcf0; text-decoration: none; }
.project-art { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; }
.project-art img { width: 44%; max-width: 150px; filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.18)); transition: transform 0.35s ease; }
.project-card:hover .project-art img { transform: scale(1.05) rotate(-1.5deg); }
.art-blue { background: linear-gradient(135deg, #3b8beb, #124e9e); }
.art-coral { background: linear-gradient(135deg, #f08a5d, #c2412b); }
.art-teal { background: linear-gradient(135deg, #25b3a6, #0b6b72); }
.project-art::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.28), transparent 45%);
}
.project-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.project-body h3 { margin-bottom: 8px; }
.project-body p { color: var(--muted); font-size: 0.98rem; margin-bottom: 18px; }
.project-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.project-link { margin-top: auto; font: 500 0.98rem/1 var(--font-head); color: var(--blue); display: inline-flex; align-items: center; gap: 6px; }
.project-link svg { width: 18px; height: 18px; transition: transform 0.2s; }
.project-card:hover .project-link svg { transform: translateX(4px); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  font: 500 0.78rem/1.2 var(--font-head); letter-spacing: 0.01em;
  background: var(--surface-2); color: var(--muted);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-green { background: var(--green-soft); color: var(--green); }
.pill-amber { background: var(--amber-soft); color: var(--amber); }
.pill-blue { background: var(--blue-soft); color: var(--blue); }
.tag { font-size: 0.8rem; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 3px 9px; }

/* ---------- A propos ---------- */
.about { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 70px); align-items: start; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }
.about p { font-size: 1.06rem; }
.skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 26px 42px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 4px; top: 5px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--blue);
}
.timeline strong { display: block; font: 700 1.02rem/1.35 var(--font-head); color: var(--navy); }
.timeline span { color: var(--muted); font-size: 0.96rem; }

/* ---------- Contact ---------- */
#contact, #suivre { padding-top: 8px; }
.contact-card {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: center;
  padding: clamp(28px, 5vw, 52px); border-radius: 26px;
  background: linear-gradient(135deg, #1c6dd0, #0f3f82);
  color: #e9f2ff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.contact-card::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.14); box-shadow: 0 0 0 40px rgba(255, 255, 255, 0.04), 0 0 0 90px rgba(255, 255, 255, 0.03);
}
.contact-card h2 { color: #fff; }
.contact-card p { color: #cfe0fb; margin: 0; font-size: 1.08rem; }
.contact-links { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.contact-links .btn { justify-content: flex-start; background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.22); }
.contact-links .btn:hover { background: rgba(255, 255, 255, 0.18); }
.contact-links .btn-white { background: #fff; color: var(--blue-dark); border-color: #fff; }
.contact-links .btn-white:hover { background: #f0f6ff; }
@media (max-width: 820px) { .contact-card { grid-template-columns: 1fr; } }

/* ---------- Pied de page ---------- */
.site-footer { padding: 36px 0 44px; color: var(--muted); font-size: 0.92rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--muted); }

/* ---------- Pages projet ---------- */
.breadcrumb { font-size: 0.92rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.project-hero { padding: clamp(28px, 5vw, 64px) 0 clamp(48px, 7vw, 88px); position: relative; overflow: hidden; }
.project-hero .hero-grid { align-items: center; }
.app-title { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.app-title img { width: 72px; height: 72px; border-radius: 18px; box-shadow: var(--shadow); }
.app-title h1 { margin: 0; }
.award {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  background: #fff8e8; color: #8a5a00; border: 1px solid #f4dfb0; border-radius: 999px;
  padding: 7px 14px 7px 10px; font: 500 0.9rem/1.2 var(--font-head);
}
.award svg { width: 20px; height: 20px; color: #d49a1c; }
.dl-meta { margin-top: 14px; font-size: 0.92rem; color: var(--muted); min-height: 1.4em; }
.dl-alt { margin-top: 10px; font-size: 0.95rem; color: var(--muted); }
.dl-alt a { font-weight: 600; }

/* Maquette tablette (LaboGo) */
.device {
  position: relative; width: min(100%, 520px); justify-self: end;
  aspect-ratio: 4 / 3; padding: 16px; border-radius: 34px;
  background: linear-gradient(145deg, #1a2433, #0b111b);
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #2c3a4f;
}
.device-screen {
  height: 100%; border-radius: 20px; overflow: hidden; background: #f4f8fe;
  display: grid; grid-template-rows: auto 1fr; font-size: 12.5px; line-height: 1.35;
}
.screen-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: linear-gradient(90deg, #1c6dd0, #124e9e); color: #fff; }
.screen-bar b { font: 700 13px/1 var(--font-head); }
.screen-bar span { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; opacity: 0.95; }
.screen-bar span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5ee39a; box-shadow: 0 0 0 3px rgba(94, 227, 154, 0.25); }
.screen-body { padding: 14px 16px; display: grid; gap: 10px; align-content: start; }
.report { background: #fff; border: 1px solid #dfe8f4; border-radius: 12px; padding: 12px 14px; box-shadow: 0 6px 16px rgba(16, 38, 70, 0.06); }
.report h4 { font-size: 13px; margin: 0 0 2px; }
.report small { color: #7a8aa0; }
.report table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.report td { padding: 5px 0; border-top: 1px solid #edf2f9; }
.report td:nth-child(2) { text-align: right; font-weight: 600; }
.report td:nth-child(3) { text-align: right; color: #8a99ad; width: 34%; }
.report .hi { color: var(--red); }
.mini-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini { background: #fff; border: 1px solid #dfe8f4; border-radius: 12px; padding: 10px 12px; box-shadow: 0 6px 16px rgba(16, 38, 70, 0.06); }
.mini small { display: block; color: #7a8aa0; font-size: 11px; margin-bottom: 4px; }
.mini strong { font: 700 17px/1.1 var(--font-head); color: var(--red); }
.mini span { color: #7a8aa0; font-size: 11px; }
.xray {
  height: 40px; border-radius: 8px;
  background:
    radial-gradient(ellipse 22% 60% at 36% 55%, rgba(255, 255, 255, 0.55), transparent 70%),
    radial-gradient(ellipse 22% 60% at 64% 55%, rgba(255, 255, 255, 0.5), transparent 70%),
    linear-gradient(180deg, #243044, #0c1119);
}
.toast {
  position: absolute; left: -30px; bottom: -30px; display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 14px; padding: 11px 14px; box-shadow: var(--shadow-lg);
  font-size: 13px; color: var(--text); border: 1px solid var(--line);
}
.toast svg { width: 22px; height: 22px; color: var(--green); flex: none; }
.toast b { font-family: var(--font-head); }
@media (max-width: 900px) { .device { justify-self: center; margin-bottom: 20px; } .toast { left: 8px; } }

/* Etapes */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 16px;
  background: var(--blue-soft); color: var(--blue); font: 700 1.1rem/1 var(--font-head);
}
.step p { color: var(--muted); margin: 0; }

/* Fonctionnalites */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.feature-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); margin-bottom: 14px; }
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.08rem; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* Telechargements */
.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .downloads { grid-template-columns: 1fr; } }
.dl-card { display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s, box-shadow 0.2s; }
.dl-card.is-current { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(28, 109, 208, 0.1), var(--shadow); }
.dl-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.dl-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--navy); }
.dl-icon svg { width: 28px; height: 28px; }
.dl-head h3 { margin: 0; }
.dl-head small { display: block; color: var(--muted); font-size: 0.86rem; }
.dl-card ul { margin: 0 0 20px; padding-left: 18px; color: var(--muted); font-size: 0.95rem; }
.dl-card .btn { margin-top: auto; }
.dl-card .btn + .btn { margin-top: 10px; }
.dl-note { font-size: 0.85rem; color: var(--muted); margin: 10px 0 0; text-align: center; }

/* FAQ / aide */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font: 500 1.02rem/1.4 var(--font-head); color: var(--navy); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--blue); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 18px; color: var(--muted); }
.faq ol, .faq ul { margin: 0 0 8px; padding-left: 20px; }
.faq li { margin-bottom: 6px; }
kbd, .ui { font: 500 0.88em/1 var(--font-head); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; color: var(--navy); white-space: nowrap; }

.credits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .credits { grid-template-columns: 1fr; } }
.credit { padding: 22px; border-radius: var(--radius); border: 1px dashed #c9d8ec; background: var(--surface); }
.credit small { display: block; color: var(--muted); font-size: 0.85rem; margin-bottom: 4px; }
.credit strong { font: 700 1.05rem/1.3 var(--font-head); color: var(--navy); }

/* Pages projet "en developpement" */
.vitrine { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .vitrine { grid-template-columns: 1fr; } }
.vitrine-art { border-radius: 28px; aspect-ratio: 1 / 1; display: grid; place-items: center; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.vitrine-art img { width: 58%; filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.22)); }
.vitrine-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 25% 18%, rgba(255, 255, 255, 0.3), transparent 50%); }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .info-grid { grid-template-columns: 1fr; } }
.info { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.info h3 { font-size: 1.05rem; }
.info p { color: var(--muted); margin: 0; }
.notice {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-size: 0.96rem;
}
.notice svg { width: 22px; height: 22px; color: var(--blue); flex: none; margin-top: 2px; }

/* Texte long (politique de confidentialite) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.8em; }
.prose p, .prose li { color: #33455c; }
.prose ul { padding-left: 20px; }

/* Apparition au defilement */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Theme sombre ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --navy: #eef4ff;
    --text: #d9e4f2;
    --muted: #97a8bf;
    --line: #22324a;
    --bg: #0b1320;
    --surface: #101b2c;
    --surface-2: #16243a;
    --blue-soft: #16305a;
    --green-soft: #133626;
    --amber-soft: #3a2c10;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
  a { color: #6aa9f5; }
  .site-header { background: rgba(11, 19, 32, 0.8); }
  .btn-primary { --b: #2878db; }
  .project-link, .eyebrow, .section-head .eyebrow, .hero h1 .accent { color: #6aa9f5; }
  .award { background: #2b230f; color: #f1cf86; border-color: #4a3a17; }
  .prose p, .prose li { color: #c3d0e2; }
  .credit { border-color: #2a3d5a; }
}
