/* ===========================
   Variables & Reset
=========================== */
:root {
  --color-bg: #000000;
  --color-bg-modal: #111111;
  --color-border: rgba(255, 255, 255, 0.09);
  --color-text: #ffffff;
  --color-muted: rgba(255, 255, 255, 0.55);
  --color-accent: #ffffff;
  --font: 'Poppins', sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t: 0.25s var(--ease);
  --t-slow: 0.4s var(--ease);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===========================
   Entrance animation
=========================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===========================
   Hero
=========================== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: 4rem 2rem;
  text-align: center;
  gap: 1rem;
}

.hero__logo {
  width: 100%;
  max-width: 860px;
  margin: 0;
  padding: 0;
  animation: fadeUp 1s var(--ease) both;
}

.hero__logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  background: transparent;
  margin: 0;
  padding: 0;
}

.hero__separator {
  width: 100%;
  max-width: 860px;
  height: 1px;
  background: var(--color-border);
  border: none;
  margin: 0;
  padding: 0;
}

/* ===========================
   Social Icons
=========================== */
.socials {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  animation: fadeUp 1s var(--ease) 0.15s both;
  /* Isolate the stacking context so hover on one icon
     never triggers a repaint on its siblings */
  isolation: isolate;
}

.socials__link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  text-decoration: none;
  padding: 0.75rem;
  border-radius: 10px;
  /* Promote each icon to its own GPU compositing layer
     so transitions are fully independent */
  transform: translateZ(0);
  will-change: transform;
  transition: color var(--t), transform var(--t), opacity var(--t);
}

.socials__link:hover,
.socials__link:focus-visible {
  color: var(--color-accent);
  transform: translateZ(0) translateY(-3px);
  opacity: 1;
  outline: none;
}

.socials__link svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
  /* No pointer events on SVG — handled by the <a> parent */
  pointer-events: none;
}

/* Couleurs de marque — spécificité (0,1,0) : le hover (0,2,0) les écrase toujours */
.socials__link--facebook  { color: #1877F2; background-color: rgba(24,  119, 242, 0.12); }
.socials__link--instagram { color: #E4405F; background-color: rgba(228,  64,  95, 0.12); }
.socials__link--email     { color: rgba(255, 255, 255, 0.75); background-color: rgba(255, 255, 255, 0.07); }
.socials__link--podcasts  { color: #B150E2; background-color: rgba(177,  80, 226, 0.12); }

/* ===========================
   Footer
=========================== */
.footer {
  padding: 2.5rem 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.18);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  border-top: 1px solid var(--color-border);
}

/* ===========================
   Modal Overlay
=========================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-slow), visibility var(--t-slow);
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* ===========================
   Modal Panel
=========================== */
.modal {
  background: var(--color-bg-modal);
  border: 1px solid var(--color-border);
  padding: 3rem 3rem 2.75rem;
  width: 100%;
  max-width: 460px;
  position: relative;
  transform: translateY(14px);
  transition: transform var(--t-slow);
}

.modal-overlay.is-open .modal {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-muted);
  padding: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--t);
}

.modal__close:hover,
.modal__close:focus-visible {
  color: var(--color-text);
  outline: none;
}

.modal__close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  display: block;
}

.modal__title {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 2.75rem;
}

/* ===========================
   Form
=========================== */
.form {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.form__label {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text);
}

.form__input,
.form__textarea {
  background: transparent;
  border: none;
  color: var(--color-text);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 300;
  padding: 0.45rem 0 0.7rem;
  outline: none;
  width: 100%;
  resize: none;
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form__textarea {
  min-height: 100px;
}

/* Animated underline on focus */
.form__line {
  display: block;
  height: 1px;
  background: var(--color-border);
  position: relative;
  overflow: hidden;
}

.form__line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-text);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease);
}

.form__field:focus-within .form__line::after {
  transform: scaleX(1);
}

/* Submit */
.form__submit {
  margin-top: 0.25rem;
  background: var(--color-text);
  border: 1px solid var(--color-text);
  color: var(--color-bg);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  cursor: pointer;
  transition: opacity var(--t);
  align-self: flex-start;
}

.form__submit:hover,
.form__submit:focus-visible {
  opacity: 0.82;
  outline: none;
}

/* ===========================
   Notification
=========================== */
.notification {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: 0.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-slow), visibility var(--t-slow);
}

.notification.is-visible {
  opacity: 1;
  visibility: visible;
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 480px) {
  .hero {
    gap: 1rem;
  }

  .hero__logo {
    max-width: 100%;
  }

  .hero__separator {
    max-width: 100%;
  }

  .socials {
    gap: 2rem;
  }

  .modal {
    padding: 2.5rem 1.75rem 2.25rem;
  }

  .modal__title {
    margin-bottom: 2.5rem;
  }

  .form {
    gap: 2rem;
  }

  .form__submit {
    align-self: stretch;
    text-align: center;
  }
}
