/*
 * Lionel Elsound — Mix Engineer
 * Reprise statique du thème WordPress (BlankSlate) : mêmes classes et mêmes effets.
 */

:root {
  --gutter: clamp(16px, 10.7vw, 164px);
  --inset: clamp(0px, 2.4vw, 36px);
  --white-soft: rgba(255, 255, 255, 0.7);
  --line: rgba(255, 255, 255, 0.15);
}

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

html {
  color-scheme: dark;
}

body {
  margin: 0;
  padding-top: 68px; /* Espace pour que le contenu ne soit pas caché sous le header */
  background: #000;
  color: #fff;
  text-transform: uppercase;
  font: 700 14px/normal "Inter", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: #fff;
}

img {
  display: block;
  max-width: 100%;
}

/* ---------- Header fixé en haut ---------- */

header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  height: 68px;
  padding: 0 var(--gutter);
  background-color: rgba(0, 0, 0, 0.8);
}

header h1 {
  display: flex;
  flex-wrap: wrap;
  gap: 0 10px;
  font-size: 14px;
}

header h1 a {
  text-decoration: none;
}

header span {
  font-style: italic;
  font-weight: 400;
}

header .links {
  display: flex;
  gap: 16px;
}

header .links a {
  font-size: 13px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

header .links a:hover {
  opacity: 0.7;
}

/* ---------- Container ---------- */

#container {
  padding: 0 calc(var(--gutter) + var(--inset)) 80px;
}

/* ---------- Sections projets ---------- */

section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 75px 20px;
  overflow: hidden;
  text-align: center;
  background: none;
  box-shadow: none;
  transition: padding 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Survol d'une section : affiche l'image de fond avec ombre */
section.hovered {
  padding: 150px 20px;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), var(--bg, none) center / cover no-repeat;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

section h2 {
  font-size: clamp(36px, 5vw, 77.149px);
  line-height: 1.15;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

section.hovered h2 {
  opacity: 1;
}

section p {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
}

section p.label {
  display: none;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--white-soft);
}

section.hovered p.label {
  display: block;
}

/* Icônes streaming : visibles uniquement sur la section active */
section .icons {
  display: none;
  gap: 25px;
  padding-top: 20px;
}

section.hovered .icons {
  display: flex;
}

section .icons img {
  width: 26px;
  height: 26px;
  transition: transform 0.2s ease;
}

section .icons a:hover img {
  transform: scale(1.15);
}

section .icons a {
  position: relative;
  z-index: 2;
}

/* Icône play qui suit la souris */
section .play-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 80px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  /* Effet négatif : inverse les couleurs de l'image sous l'icône */
  mix-blend-mode: difference;
  z-index: 3;
}

/* La souris est remplacée par l'icône play (sauf sur les liens streaming) */
section[data-video-id]:not([data-video-id=""]) {
  cursor: none;
}

section .icons a {
  cursor: pointer;
}

section.playing .play-icon {
  display: none;
}

section.hovered[data-video-id]:not([data-video-id=""]):hover .play-icon {
  opacity: 1;
}

section .icons:hover ~ .play-icon {
  opacity: 0 !important;
}

/* Clip YouTube lancé au clic */
section.playing {
  aspect-ratio: 16 / 9;
  max-height: 85vh;
}

section iframe {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

/* Badge certification */
div.certifications {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-align: left;
}

div.certifications > div {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

div.certifications > div span:first-child {
  font-size: 12px;
}

div.certifications > div span:last-child {
  font-size: 9px;
  font-weight: 500;
  color: var(--white-soft);
}

div.certifications.gold > div span:first-child {
  color: #f3d27a;
}

div.certifications.platinum > div span:first-child {
  color: #e7e7ef;
}

div.certifications.diamond > div span:first-child {
  color: #aeeaff;
}

div.certifications .emoji {
  font-size: 20px;
  line-height: 1;
}

section div.certifications {
  margin-top: 18px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

section.hovered div.certifications {
  opacity: 1;
}

/* ---------- Boutons ---------- */

.btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 60px 0 20px;
}

.btn-group a,
.btn-group button,
form input[type="submit"] {
  padding: 14px 28px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 13px;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-group a:hover,
.btn-group button:hover,
form input[type="submit"]:hover {
  background: #fff;
  color: #000;
}

.btn-group [hidden] {
  display: none;
}

/* ---------- Trusted by ---------- */

.trusted {
  padding: 80px 0 20px;
  text-align: center;
}

.trusted h3 {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--white-soft);
}

.trusted .logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px 64px;
  margin-top: 32px;
}

.trusted .logos img {
  width: auto;
  max-width: 100%;
  /* Logos officiels (Wikimedia Commons) passés en blanc */
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.trusted .logos .logo-universal {
  height: 64px;
}

.trusted .logos .logo-warner {
  height: 48px;
}

.trusted .logos .logo-sony {
  height: 20px;
}

/* ---------- Pages (About / Contact) ---------- */

.first-section.page-hero {
  padding: 150px 20px;
}

.about-text,
.contact-text {
  max-width: 820px;
  margin: 60px auto 0;
  text-transform: none;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
}

.about-text p + p {
  margin-top: 1.1em;
}

.contact-text {
  text-align: center;
}

.contact-text p + p {
  margin-top: 1em;
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}

.contact-icons img {
  width: 22px;
  height: 22px;
}

/* Listes de certifications */
.certifications-list {
  max-width: 820px;
  margin: 80px auto 0;
}

.certifications-list h3 {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--white-soft);
}

.post-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.post-item .img-info {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.post-item img {
  flex: none;
  width: 64px;
  height: 64px;
  object-fit: cover;
}

.post-item .info p {
  font-size: 13px;
}

.post-item .info p + p {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--white-soft);
}

.post-item .info span + span::before {
  content: " - ";
}

/* ---------- Formulaire de contact ---------- */

form#contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 560px;
  margin: 60px auto 0;
}

.form-group {
  position: relative;
}

.form-control {
  width: 100%;
  padding: 22px 0 10px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: 400 16px "Inter", Arial, sans-serif;
  outline: none;
  transition: border-color 0.2s ease;
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.form-control:focus {
  border-bottom-color: #fff;
}

.form-label {
  position: absolute;
  top: 22px;
  left: 0;
  font-size: 13px;
  color: var(--white-soft);
  pointer-events: none;
  transition: top 0.2s ease, font-size 0.2s ease;
}

.form-control:focus + .form-label,
.form-control:not(:placeholder-shown) + .form-label {
  top: 0;
  font-size: 10px;
}

form input[type="submit"] {
  align-self: center;
  margin-top: 8px;
}

.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

form input[type="submit"]:disabled {
  opacity: 0.5;
  cursor: wait;
}

#form-status {
  min-height: 1.5em;
  text-align: center;
  text-transform: none;
  font-weight: 400;
}

/* ---------- Écrans tactiles : pas de survol, toutes les images sont visibles ---------- */

@media (hover: none) {
  section {
    padding: 90px 16px;
    background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)), var(--bg, none) center / cover no-repeat;
  }

  #content-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  section h2 {
    opacity: 1;
  }

  section .icons {
    display: flex;
  }

  section p.label {
    display: block;
  }

  section div.certifications {
    opacity: 1;
  }

  section .play-icon {
    display: none;
  }
}

@media (max-width: 700px) {
  :root {
    --gutter: 16px;
    --inset: 0px;
  }

  header {
    height: 60px;
  }

  body {
    padding-top: 60px;
  }

  header h1 {
    font-size: 12px;
  }

  header .links a {
    font-size: 12px;
  }

  section.hovered,
  .first-section.page-hero {
    padding: 100px 16px;
  }

  section p {
    font-size: 13px;
  }

  .about-text,
  .contact-text {
    font-size: 15px;
  }

  .post-item img {
    width: 48px;
    height: 48px;
  }

  .post-item div.certifications .emoji {
    display: none;
  }
}

/* Écrans tactiles : le clip remplace l'image sans changer la hauteur de la section */
@media (hover: none) {
  section.hovered {
    padding: 90px 16px;
  }

  section.playing {
    aspect-ratio: auto;
    max-height: none;
  }
}
