/* Cleaned stylesheet — animations/reveal rules removed */

/* ---------- Variables ---------- */
:root {
  --font-heading: "Michroma", "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  --hero-max: 5.5rem;
}

/* ---------- Reset & Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: var(--font-body);
  background-color: #f8f9fa;
  color: #1a1a1a;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ---------- Header ---------- */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 1000;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.5px;
  font-size: 1.15rem;
}

nav ul { display: flex; list-style: none; gap: 2rem; }
nav li a { font-weight: 500; transition: opacity 0.3s; }
nav li a:hover { opacity: 0.6; }

.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.burger div { width: 25px; height: 2px; background: #1a1a1a; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

.hero video#hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
  filter: grayscale(0%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
    radial-gradient(circle, rgba(0,0,0,0.18) 1px, transparent 1px);
  background-size: 100% 100%, 8px 8px;
  background-position: center center, 0 0;
  background-repeat: no-repeat, repeat;
  mix-blend-mode: normal;
}

.hero .hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  padding: 0 1.5rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, var(--hero-max));
  line-height: 1;
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
  margin-bottom: 0.5rem;
}

.hero h1::after {
  content: "";
  display: block;
  width: clamp(60px, 18vw, 90px);
  height: 3px;
  background: #fff;
  margin: 12px auto;
  border-radius: 2px;
  opacity: 0.98;
}

.hero p { margin-top: 0.75rem; color: rgba(255,255,255,0.95); }

/* ---------- Sections / About ---------- */
.sections { padding: 6rem 2rem; margin: 0 auto; }
.about { text-align: center; }
.about h2 {
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.about p { color: #444; max-width: 700px; margin: 0 auto; }

/* ---------- Gallery (kept simple) ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 2rem auto 0;
  max-width: 1100px;
  width: calc(100% - 4rem);
  align-items: stretch;
  grid-auto-rows: 260px;
}

.gallery .gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 260ms cubic-bezier(.2,.9,.2,1), box-shadow 260ms ease;
  will-change: transform;
  display: block;
}

/* Ensure gallery items can be anchors and keep hover/focus effects */
.gallery a.gallery-item,
.gallery .gallery-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 260ms cubic-bezier(.2,.9,.2,1), box-shadow 260ms ease;
  will-change: transform;
  text-decoration: none;
  color: inherit;
}

/* image inside anchor or inside .gallery-item */
.gallery a.gallery-item img,
.gallery .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 320ms cubic-bezier(.2,.9,.2,1);
  transform-origin: center center;
  will-change: transform;
}

/* hover / focus for anchor items */
.gallery a.gallery-item:hover,
.gallery a.gallery-item:focus,
.gallery .gallery-item:hover,
.gallery .gallery-item:focus {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(16,24,40,0.12);
  z-index: 2;
}

.gallery a.gallery-item:hover img,
.gallery a.gallery-item:focus img,
.gallery .gallery-item:hover img,
.gallery .gallery-item:focus img {
  transform: scale(1.03); /* slight zoom */
}

/* keyboard focus visible */
.gallery a.gallery-item:focus {
  outline: 3px solid rgba(255,255,255,0.08);
  outline-offset: 6px;
}

/* keep small overlay effect if needed */
.gallery a.gallery-item::after,
.gallery .gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.18) 70%);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}
.gallery a.gallery-item:hover::after,
.gallery a.gallery-item:focus::after,
.gallery .gallery-item:hover::after,
.gallery .gallery-item:focus::after { opacity: 1; }

@media (max-width: 780px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 200px; width: calc(100% - 2rem); }
}

/* ---------- Contact ---------- */
.contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 2rem auto 0;
}

input, textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
}

/* ensure contact inputs text is black for readability */
#contact input,
#contact textarea {
  color: #000;
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 6px;
  caret-color: #000;
  width: 100%;
  box-sizing: border-box;
}

#contact input::placeholder,
#contact textarea::placeholder { color: #7a7a7a; }

button {
  padding: 0.8rem;
  border: none;
  border-radius: 6px;
  background: #1a1a1a;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s, transform 180ms ease, box-shadow 180ms ease;
}

button:hover { background: #333; transform: translateY(-3px); box-shadow: 0 12px 30px rgba(16,24,40,0.12); }

/* contact-specific button style */
.contact button {
  background: #fff;
  color: #000;
  border: 1px solid rgba(0,0,0,0.06);
  transition: background 220ms ease, color 220ms ease, transform 180ms ease, box-shadow 180ms ease;
}

/* Draw-around liseré using transitions so it reverses on mouseout + color invert on hover */

/* base button */
#contact #contact-submit,
.contact #contact-submit,
.contact button[type="submit"] {
  position: relative;
  z-index: 2;
  overflow: visible;
  background: #fff;
  color: #000;
  border: 1px solid rgba(0,0,0,0.06);
  transition: background 220ms ease, color 220ms ease, transform 180ms ease, box-shadow 180ms ease;
}

/* pseudo-element that will "draw" the 4 sides via background-size (faster start + smaller staggers) */
#contact #contact-submit::before,
.contact #contact-submit::before,
.contact button[type="submit"]::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 10px;
  pointer-events: none;

  background:
    linear-gradient(90deg, #fff 0%, #fff 100%) top/0% 2px no-repeat,
    linear-gradient(180deg, #fff 0%, #fff 100%) right/2px 0% no-repeat,
    linear-gradient(270deg, #fff 0%, #fff 100%) bottom/0% 2px no-repeat,
    linear-gradient(0deg,  #fff 0%, #fff 100%) left/2px 0% no-repeat;

  /* faster start: shorter durations + tighter stagger delays */
  transition:
    background-size 0.20s linear 0s,
    background-size 0.20s linear 0.06s,
    background-size 0.20s linear 0.12s,
    background-size 0.20s linear 0.18s,
    box-shadow 160ms ease;
  transform: translateZ(0);
  box-shadow: none;
}

/* hover/focus state: invert colors + trigger the draw by changing background-size */
#contact #contact-submit:hover,
.contact #contact-submit:hover,
.contact button[type="submit"]:hover,
#contact #contact-submit:focus,
.contact #contact-submit:focus,
.contact button[type="submit"]:focus {
  background: #000;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(16,24,40,0.12);
  outline: none;
}

/* set final background-sizes to fully draw the four sides */
#contact #contact-submit:hover::before,
.contact #contact-submit:hover::before,
.contact button[type="submit"]:hover::before,
#contact #contact-submit:focus::before,
.contact #contact-submit:focus::before,
.contact button[type="submit"]:focus::before {
  background-size:
    100% 2px,    /* top */
    2px 100%,    /* right */
    100% 2px,    /* bottom */
    2px 100%;    /* left */
  box-shadow: 0 8px 26px rgba(0,0,0,0.35), 0 0 18px rgba(255,255,255,0.06) inset;
}

/* reduced motion fallback */
@media (prefers-reduced-motion: reduce) {
  #contact #contact-submit::before,
  .contact button[type="submit"]::before {
    transition: none;
    background-size: 100% 2px, 2px 100%, 100% 2px, 2px 100%;
  }
}

/* Centre le contenu de la section contact : titre, formulaire et réseaux */
#contact,
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center; /* centre le texte du h2 et des paragraphes */
  gap: 1rem;
  padding-bottom: 2rem; /* espace sous le contenu si besoin */
}

/* centre la ligne de réseaux si elle a une classe .socials */
#contact .socials,
.contact .socials {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin-top: 0.75rem;
}

/* garde le formulaire centré et à largeur contrôlée */
#contact form,
.contact form {
  width: 100%;
  max-width: 560px;
  margin: 0; /* le centering est géré par le container flex */
}

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: #777;
  background-color: #000;
  border-top: 1px solid rgba(255,255,255,0.04);
}
footer a { color: #fff; opacity: 0.9; }
footer a:hover { opacity: 1; }

.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.footer-inner p { margin: 6px 0; color: #dcdcdc; font-size: 0.95rem; }
.footer-inner .creator a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; transition: opacity .18s ease; }
.footer-inner .creator a:hover { opacity: 0.9; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  nav ul { display: none; flex-direction: column; position: absolute; top: 70px; right: 20px; background: #fff; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); padding: 1rem; }
  nav ul.active { display: flex; }
  .burger { display: flex; }
  .hero h1 { font-size: 2rem; }
}

/* Inverser couleurs pour about/contact sections */
#about, .about { background-color: #000; color: #fff; }
#contact, .contact { background-color: #000; color: #fff; }

#about h2, .about h2, #contact h2, .contact h2 { color: #fff; }
#about p, .about p, #contact p, .contact p { color: #eaeaea; }

/* Parallax backgrounds (JS-driven) */
#about, #contact {
  position: relative;
  overflow: hidden;
  z-index: 0;
  --parallax-img: url('https://images.unsplash.com/photo-1512025316832-8658f04f8a83?auto=format&fit=crop&q=60&w=1400');
}
#about { --parallax-img: url('https://images.unsplash.com/photo-1512025316832-8658f04f8a83?auto=format&fit=crop&q=60&w=1400'); }
#contact { --parallax-img: url('https://plus.unsplash.com/premium_photo-1669937883765-58dbc34ea9df?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8NXx8Y2FtZXJhJTIwZ2VhcnxlbnwwfHwwfHx8MA%3D%3D&auto=format&fit=crop&q=60&w=900'); }

#about::before, #contact::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100vw;
  height: 140%;
  transform: translateX(-50%) translateY(calc(-50% + var(--parallax, 0px))) scale(1.12);
  transform-origin: center center;
  background-image: var(--parallax-img);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: grayscale(100%) contrast(0.95);
  z-index: -2;
  pointer-events: none;
  will-change: transform;
}

#about::after, #contact::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)),
    radial-gradient(circle, rgba(0,0,0,0.18) 1px, transparent 1px);
  background-size: 100% 100%, 8px 8px;
  background-position: center center, 0 0;
  background-repeat: no-repeat, repeat;
  mix-blend-mode: normal;
}

#about > *, #contact > * { position: relative; z-index: 1; }

@media (max-width: 768px) {
  #about::before, #contact::before { transform: translateX(-50%) translateY(var(--parallax, 0px)) scale(1.12); }
}

/* Ticker (kept) */
.ticker { background: #000; color: #fff; padding: 8px 0; display: block; z-index: 50; position: relative; min-height: 44px; }
.ticker-inner { margin: 0 auto; padding: 6px 1.5rem; overflow: hidden; }
.marquee { display: flex; align-items: center; white-space: nowrap; animation: marquee 18s linear infinite; gap: 2rem; }
.marquee__group { display: flex; gap: 2.5rem; align-items: center; }
.marquee span { font-family: var(--font-body); font-weight: 600; font-size: clamp(0.95rem, 1.6vw, 1.05rem); color: #fff; opacity: 0.98; letter-spacing: 0.2px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee { animation: none; } .marquee__group { gap: 1.25rem; } }
@media (max-width: 480px) { .marquee span { font-size: 0.95rem; } .marquee__group { gap: 1.25rem; } }