/* ============================================================
   RED OWL TATTOO — STYLE 3
   Direction artistique : studio contemporain, sombre, épuré.
   Feuille autonome : ne pas charger style2.css en parallèle.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --page: #090a0c;
  --surface: #111216;
  --surface-raised: #191a1f;
  --line: #292a30;
  --text: #eeeef0;
  --muted: #a3a3aa;
  --subtle: #777982;
  --red: #a92332;
  --red-bright: #cf3a49;
  --red-soft: rgba(169, 35, 50, .16);
  --max-width: 1080px;
  --header-height: 82px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; }
body {
  margin: 0;
  padding: var(--header-height) 0 0;
  background: var(--page);
  color: var(--text);
  font: 400 16px/1.7 'DM Sans', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red-bright); }
img { display: block; max-width: 100%; }
::selection { background: var(--red); color: white; }
:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 4px; }

/* Fixed header, deliberately limited to the site's 1080px width */
.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5000;
  width: min(100%, var(--max-width));
  min-height: var(--header-height);
  background: rgba(17,18,22,.97);
  border: 1px solid var(--line);
  border-top: 0;
  border-bottom-color: #49202a;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  backdrop-filter: blur(16px);
}
.header-inner {
  width: 100%;
  min-height: calc(var(--header-height) - 1px);
  padding: 12px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.header-brand { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.header-title {
  color: var(--text);
  font: 800 21px/1.3 'Manrope', Arial, sans-serif;
  letter-spacing: -.045em;
  white-space: nowrap;
}
.header-title strong { color: var(--red-bright); font-weight: 800; }
.header-title:hover { color: var(--text); }
.header-network { color: var(--subtle); font: 500 11px/1.7 'DM Sans',sans-serif; letter-spacing: .025em; }
.header-network a { color: #d3d3d8; border-bottom: 1px solid #55555b; }
.header-network a:hover { color: #fff; border-bottom-color: var(--red-bright); }
.header-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 30px; }
.header-nav a {
  color: #c8c8cd;
  font: 600 12px/1.4 'Manrope',Arial,sans-serif;
  text-transform: uppercase;
  letter-spacing: .13em;
  transition: color .2s;
}
.header-nav a:hover { color: #fff; }
.menu-toggle { display: none; background: none; color: var(--text); border: 0; font-size: 27px; line-height: 1; cursor: pointer; padding: 8px; }

/* Page structure */
.container {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0 30px 0;
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  overflow: clip;
}
/* Supports existing markup where the banner and sections are wrapped in <center>. */
.container > center { display: block; text-align: left; }
.container > center > a:first-child { display: block; margin: 0 -30px; }
.banner {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  margin: 0;
  border: 0;
}
section { margin: 0; }
#intro { padding: 56px 16px 66px; text-align: center; border-bottom: 1px solid var(--line); }
#intro p {
  max-width: 680px;
  margin: 0 auto !important;
  color: #d5d5d8;
  font: 500 clamp(18px,2.5vw,27px)/1.55 'Manrope',sans-serif;
  letter-spacing: -.025em;
}
#intro p::before {
  content: 'RED OWL TATTOO';
  display: block;
  margin-bottom: 16px;
  color: var(--red-bright);
  font: 700 11px/1.5 'Manrope',sans-serif;
  letter-spacing: .25em;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
h2 {
  margin: 0;
  padding: 0;
  color: var(--text);
  font: 800 clamp(25px,3vw,35px)/1.2 'Manrope',Arial,sans-serif;
  letter-spacing: -.045em;
  text-transform: none;
  border: 0;
}
h2::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 17px;
  background: var(--red);
}
h2#projects { padding-top: 68px; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
  margin: 34px 0 20px;
}
.gallery img {
  display: block;
  width: 100%;
  height: 270px;
  margin: 0;
  object-fit: cover;
  border: 1px solid #2f3036;
  border-radius: 2px;
  background: var(--surface-raised);
  box-shadow: none;
  cursor: zoom-in;
  transition: transform .25s ease, border-color .25s ease, filter .25s ease;
}
.gallery img:hover { transform: translateY(-3px); border-color: #76505a; filter: brightness(1.08); }

/* Contact */
#contact {
  position: relative;
  margin: 78px 0 0;
  padding: 46px clamp(24px,5vw,60px) 52px;
  background: linear-gradient(125deg, #1a171c, #151519 74%);
  border: 1px solid #393037;
  text-align: left;
}
#contact::before { content:''; position:absolute; top:-1px; left:0; width:92px; height:3px; background:var(--red); }
#contact h2 { margin-bottom: 23px; }
#contact h2::after { display:none; }
#contact p { margin: 0 0 16px; color: #b8b8bf; font-size: 15px; }
#contact p:empty { display:none; }
#contact br { display: none; }
#contact .email-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 10px;
  padding: 12px 22px;
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
  border-radius: 3px;
  font: 700 12px/1.2 'Manrope',sans-serif;
  letter-spacing: .10em;
  text-transform: uppercase;
  transition: background .2s, transform .2s;
}
#contact .email-button:hover { background: var(--red-bright); transform: translateY(-2px); }

/* Footer (works with the existing HTML) */
footer.site-footer {
  margin: 80px -30px 0;
  padding: 46px 30px 24px;
  background: #0d0e11;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-family: 'DM Sans',sans-serif;
  font-size: 13px;
  text-align: left;
}
footer.site-footer .footer-container { max-width: 960px; margin: 0 auto; }
footer.site-footer .footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 37px;
}
footer.site-footer .footer-title {
  display: block;
  color: var(--text);
  font: 800 19px/1.4 'Manrope',sans-serif;
  letter-spacing: -.04em;
}
footer.site-footer .footer-title strong { color: var(--red-bright); }
footer.site-footer .footer-brand p { margin: 7px 0 0; color: var(--subtle); font-size: 12px; }
footer.site-footer .footer-links { display:flex; gap:24px; align-items:center; flex-wrap:wrap; }
footer.site-footer .footer-links a { color: #b7b7bd; font-size: 12px; }
footer.site-footer .footer-links a:hover { color:#fff; }
footer.site-footer .footer-bottom {
  display:flex; justify-content:space-between; align-items:center; gap:12px 24px;
  flex-wrap:wrap; padding-top:22px; border-top:1px solid var(--line);
  font-size:11px; color: var(--subtle);
}
footer.site-footer .footer-universe { white-space: normal; }
footer.site-footer .footer-hub-link { color:#d7d7db; border-bottom:1px solid #555; }
footer.site-footer .footer-hub-link:hover { color:#fff; border-color:var(--red); }
/* =========================================
   RED OWL HUB NETWORK — FOOTER LINKS
   ========================================= */

footer.site-footer .footer-network {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    text-align: right;
}

footer.site-footer .network-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

footer.site-footer .network-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
}

footer.site-footer .network-row a {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.25s ease;
}

footer.site-footer .network-row a:hover {
    color: var(--red-bright);
}

footer.site-footer .network-row a.active {
    color: var(--red-bright);
    font-weight: 700;
    cursor: default;
}
/* Lightbox — keep original JS and HTML */
.lightbox-overlay {
  position:fixed; inset:0; z-index:9999;
  display:none; align-items:center; justify-content:center;
  padding:50px 58px;
  background:rgba(3,3,5,.96);
}
.lightbox-overlay.active { display:flex; }
.lightbox-content { position:relative; display:flex; align-items:center; justify-content:center; max-width:100%; max-height:100%; }
.lightbox-content img { display:block; width:auto; max-width:calc(100vw - 116px); max-height:calc(100vh - 110px); object-fit:contain; }
.lightbox-close, .lightbox-arrow { position:absolute; z-index:1; color:#f5f5f5; cursor:pointer; user-select:none; line-height:1; }
.lightbox-close { top:-35px; right:0; font-size:30px; }
.lightbox-arrow { top:50%; transform:translateY(-50%); font-size:34px; padding:12px; }
.lightbox-arrow.left { left:-58px; }
.lightbox-arrow.right { right:-58px; }
.lightbox-close:hover, .lightbox-arrow:hover { color:var(--red-bright); }

/* Back to top */
#scrollTopBtn {
  position:fixed; right:22px; bottom:22px; z-index:4000;
  display:none; width:46px; height:46px; padding:0;
  background:var(--red); color:#fff;
  border:1px solid #ba4855; border-radius:3px;
  font-size:22px; cursor:pointer;
  box-shadow:0 6px 24px rgba(0,0,0,.35);
}
#scrollTopBtn:hover { background:var(--red-bright); }

/* Optional legacy sections: they still render if re-enabled */
#flashs, #socials { padding-top: 58px; }
.social-icons { display:flex; justify-content:center; gap:20px; flex-wrap:wrap; margin-top:20px; }
.social-icons img { width:36px; height:36px; transition:transform .2s; }
.social-icons img:hover { transform:translateY(-2px); }
.separator { border:0; border-top:1px solid var(--line); margin:32px auto; }

/* Tablet */
@media (max-width: 800px) {
  .gallery { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .gallery img { height: 280px; }
  .header-nav { gap: 18px; }
}

/* Mobile */
@media (max-width: 640px) {
  :root { --header-height: 74px; }
  html { scroll-padding-top: 92px; }
  .header-inner { padding:10px 18px; }
  .header-title { font-size:18px; }
  .header-network { font-size:10px; }
  .menu-toggle { display:block; }
  .header-nav {
    display:none; position:absolute; top:100%; left:0; right:0;
    padding:18px 22px 22px; background:var(--surface);
    border-bottom:1px solid #49202a; box-shadow:0 10px 24px rgba(0,0,0,.35);
    flex-direction:column; align-items:stretch; gap:0;
  }
  .header-nav.active { display:flex; }
  .header-nav a { display:block; padding:12px 4px; }
  .header-nav a + a { border-top:1px solid var(--line); }
  .container { padding:0 18px; }
  .container > center > a:first-child { margin:0 -18px; }
  #intro { padding:38px 4px 48px; }
  h2#projects { padding-top:50px; }
  .gallery { gap:10px; margin-top:26px; }
  .gallery img { height:210px; }
  #contact { margin-top:54px; padding:34px 24px 38px; }
  footer.site-footer { margin:60px -18px 0; padding:34px 18px 22px; }
  footer.site-footer .footer-main { flex-direction:column; gap:22px; }
  footer.site-footer .footer-links { gap:20px; }
  footer.site-footer .footer-bottom { flex-direction:column; align-items:flex-start; }
  footer.site-footer .footer-network {
    align-items: flex-start;
    text-align: left;
  }

  footer.site-footer .network-links {
      align-items: flex-start;
  }

  footer.site-footer .network-row {
      justify-content: flex-start;
  }
  .lightbox-overlay { padding:40px 34px; }
  .lightbox-content img { max-width:calc(100vw - 68px); max-height:calc(100vh - 90px); }
  .lightbox-arrow.left { left:-37px; }
  .lightbox-arrow.right { right:-37px; }
  .lightbox-arrow { font-size:25px; padding:6px; }
}
@media (max-width: 400px) {
  .gallery img { height: 165px; }
  .header-title { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { transition-duration:.01ms !important; animation-duration:.01ms !important; }
}
