/* === Variables de thème (palette graphique) === */
:root {
  /* Couleurs inspirées de l'illustration */
  --ink: #0b0b0b;          /* contours noirs épais */
  --royal: #1f49ff;        /* bleu profond */
  --sun: #ffd400;          /* jaune éclatant */
  --crimson: #d10f2f;      /* rouge franc */
  --sand: #ecdcc4;         /* écru/chair */

  --bg: #0e1016;           /* fond global foncé */
  --text: #f2f2f2;         /* texte principal */
  --muted: #b7bdc6;        /* texte secondaire */
  --primary: var(--royal);
  --primary-600: #1437dd;
  --card: #171b24;         /* cartes sur fond foncé */
  --border: #2a3140;       /* bord standard */
  --shadow: 10px 10px 0 rgba(11,11,11,0.25);
}

:root[data-theme="light"] {
  --bg: #f8fafc;
  --text: #0e1218;
  --muted: #4e5969;
  --card: #ffffff;
  --border: #0b0b0b; /* pour conserver l'effet "outline" même en clair */
  --shadow: 10px 10px 0 rgba(11,11,11,0.15);
}

/* === Base === */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 4px solid var(--ink);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0;
}
.brand { font-weight: 800; letter-spacing: 0.2px; font-size: 1.1rem; background: var(--sun); color: #111; padding: 6px 10px; border: 3px solid var(--ink); box-shadow: var(--shadow); border-radius: 10px; }

.main-nav { display: flex; align-items: center; gap: 12px; }
.main-nav ul {
  display: flex; align-items: center; gap: 18px; list-style: none; margin: 0; padding: 0;
}
.main-nav .divider { width: 1px; height: 18px; background: var(--border); }

.nav-toggle { display: none; }
.theme-toggle { border: 3px solid var(--ink); background: var(--sun); color: #111; border-radius: 12px; padding: 8px 10px; cursor: pointer; box-shadow: var(--shadow); font-weight: 800; }

@media (max-width: 840px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; background: var(--sun); color: #111; border: 3px solid var(--ink); border-radius: 12px; width: 44px; height: 44px; font-weight: 800; }
  .main-nav ul { position: absolute; right: 16px; top: 56px; background: var(--card); border: 3px solid var(--ink); border-radius: 16px; padding: 10px; gap: 8px; box-shadow: var(--shadow); display: none; }
  .main-nav ul.open { display: flex; flex-direction: column; align-items: stretch; min-width: 180px; }
  .main-nav .divider { display: none; }
}

/* === Boutons === */
.btn { display: inline-block; padding: 12px 18px; border-radius: 14px; font-weight: 800; border: 4px solid var(--ink); transition: transform .12s ease, box-shadow .12s ease, background .2s ease; box-shadow: var(--shadow); letter-spacing: .2px; }
.btn:hover { transform: translate(-2px, -2px) rotate(-0.5deg); box-shadow: 12px 12px 0 rgba(11,11,11,0.3); }
.btn:active { transform: translate(3px,3px) rotate(0); }
.btn.primary { background: var(--sun); color: #111; }
.btn.primary:hover { background: color-mix(in srgb, var(--sun) 90%, #fff); }
.btn.ghost { background: var(--sand); color: #111; }

/* === Hero === */
.hero { position: relative; padding: clamp(80px, 14vh, 160px) 0 100px; overflow: hidden; background: var(--royal); }
/* Rayons jaunes */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .9; mix-blend-mode: screen;
  background: repeating-conic-gradient(from -40deg at 50% 20%, var(--sun) 0 8deg, transparent 8deg 30deg);
}
/* Triangle rouge en bas */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: var(--crimson);
  clip-path: polygon(0% 100%, 50% 42%, 100% 100%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; align-items: center; gap: 28px; }
.hero-text h1 { font-size: clamp(32px, 6vw, 64px); line-height: 1.05; margin: 0 0 12px 0; letter-spacing: -0.5px; }
.hero-text p { margin: 0 0 22px 0; color: var(--muted); font-size: clamp(16px, 2.2vw, 20px); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-scroll { text-align: center; color: var(--muted); opacity: .85; margin-top: 16px; font-size: .95rem; }

/* Médaillon pour l'illustration (remplacez l'image ci-dessous) */
.hero-badge { width: clamp(140px, 22vw, 220px); aspect-ratio: 1; border-radius: 50%;
  border: 8px solid var(--ink); background: var(--sand) center/cover no-repeat url('images/art1.jpg');
  box-shadow: var(--shadow); transform: rotate(-2deg);
}

/* === Sections === */
.section { padding: 72px 0; }
.section.alt { background: color-mix(in srgb, var(--bg) 90%, #000); }
.section-title { font-size: clamp(22px, 3.6vw, 32px); margin: 0 0 18px 0; }

/* === Grilles === */
.grid { display: grid; gap: 16px; }
.works-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.work-item { background: var(--sand); border: 6px solid var(--ink); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); transform: rotate(-0.6deg); transition: transform .2s ease; }
.work-item img { width: 100%; height: 240px; object-fit: cover; transition: transform .35s ease; border-bottom: 6px solid var(--ink); }
.work-item a { display: block; }
.work-item a:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.work-item:hover { transform: rotate(0deg) translate(-2px, -2px); }
.work-item:hover img { transform: scale(1.05); }
.work-item figcaption { padding: 12px 14px; color: #111; font-weight: 600; background: var(--sand); }

/* === À propos === */
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 26px; align-items: center; }
.about-card { height: 260px; background:
  radial-gradient(40% 60% at 70% 30%, color-mix(in srgb, var(--royal) 40%, transparent) 0%, transparent 60%),
  radial-gradient(50% 60% at 20% 80%, color-mix(in srgb, var(--sun) 50%, transparent) 0%, transparent 60%);
  border-radius: 18px; border: 6px solid var(--ink); box-shadow: var(--shadow); }
.bullets { list-style: none; padding: 0; margin: 10px 0 20px; color: var(--muted); }
.bullets li { padding-left: 18px; position: relative; margin: 6px 0; }
.bullets li::before { content: "•"; color: var(--primary); position: absolute; left: 0; }
.about-cta { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* === Contact === */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 26px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 12px 0 22px; color: var(--muted); }
.contact-list a { color: var(--text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--primary) 40%, transparent); text-underline-offset: 3px; }
.contact-form { display: grid; gap: 14px; background: var(--sand); border: 6px solid var(--ink); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); }
.contact-form label { display: grid; gap: 6px; color: var(--muted); font-size: .95rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 12px; border-radius: 12px; border: 3px solid var(--ink); background: #fff; color: #111; font: inherit; }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid var(--sun); outline-offset: 3px; }
.form-note { color: var(--muted); font-size: .9rem; margin: 4px 2px 0; }

@media (max-width: 920px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* === Lightbox === */
.lightbox[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: color-mix(in srgb, #000 55%, transparent); backdrop-filter: blur(2px); padding: 20px; }
.lightbox-content { margin: 0; max-width: min(92vw, 1100px); max-height: 86vh; display: grid; gap: 10px; }
.lightbox-content img { border-radius: 12px; box-shadow: var(--shadow); width: 100%; height: auto; object-fit: contain; border: 6px solid var(--ink); background: #fff; }
.lightbox-content figcaption { text-align: center; color: var(--muted); font-size: .95rem; }
.lightbox-close { position: absolute; top: 16px; right: 16px; border: 4px solid var(--ink); background: var(--sun); color: #111; border-radius: 12px; padding: 8px 12px; cursor: pointer; font-weight: 800; box-shadow: var(--shadow); }

/* === Footer === */
.site-footer { border-top: 4px solid var(--ink); padding: 28px 0; color: var(--muted); }
.site-footer a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
