/* ===== GLOBAL RESET ===== */
@font-face {
  font-family: 'InterDisplay-Regular';
  src: url('font/InterDisplay-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-kerning: normal;
}

/* Règles globales pour le rendu des polices */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* transition: filter 0.5s ease-in-out, opacity 0.3s ease-out; SUPPRIMÉ */
}

body {
    font-family: 'AeonikPro-Regular', sans-serif;
    background: #000;
    -webkit-user-select: none; /* Ajout pour Safari */
    user-select: none;
    text-wrap: pretty;
}

/* ===== STRUCTURE PRINCIPALE ===== */
.wrapper {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
    display: block;
}

.container {
    display: flex;
    flex-direction: column;
    width: 100%;
    opacity: 0.7;
    transform: translateZ(0); /* Ajout pour forcer l'accélération matérielle */
}

.container > div {
  /* min-height: 100vh; SUPPRIMÉ */
  display: flex;
  /* justify-content: center; SUPPRIMÉ */
  /* align-items: center; SUPPRIMÉ */
  margin: 0;
  padding: 0;
}

.container img,
.container video {
    width: 100%;
    height: auto;
    object-fit: cover; /* ou contain; essaie les deux */
    margin: 0;
    padding: 0;
    display: block;
    box-sizing: border-box;
}

/* ===== MEDIA QUERY POUR LES ECRANS 16:9, 16:10 ET 17:10 ===== */
@media (min-aspect-ratio: 16/10) {
    .container img,
    .container video {
        height: 100vh;
        width: auto;
        object-fit: cover; /* ou contain; essaie les deux */
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
}

/* ===== OVERLAY STYLES ===== */
.overlay {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    width: 100%;
    pointer-events: auto;
}

/* ===== PRESENTATION ===== */
.presentation {
    align-self: flex-start;
    text-align: left;
    margin: 2rem 0 0 10%;
    max-width: 40%;
    color: white;
    font-size: clamp(1rem, 2vw, 1.5rem);
    line-height: clamp(1rem, 2vw, 1.5rem);
    text-wrap: pretty;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.5s ease-out forwards;
    letter-spacing: 0.04em;
}

/* ===== TITLE (SVG) ===== */
.title {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    overflow: hidden;
}
.title img {
    display: block;
    width: 100%;
    max-height: 100%;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.5s ease-out forwards;
}

/* ===== LIENS ===== */
.links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
    width: 80%;
    margin: 0 auto 2rem;
    flex-wrap: wrap;
    font-size: 0;
}
.all-links {
        display: flex;
        width: 100%;
        justify-content: space-between;
        gap: 1.4rem;
}
.links a {
    color: white;
    text-decoration: none;
    font-size: clamp(1rem, 2vw, 1.5rem);
    line-height: clamp(1rem, 2vw, 1.5rem);
    position: relative;
    text-wrap: pretty;
    display: block;
    box-sizing: border-box;
     opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.5s ease-out forwards;
    letter-spacing: 0.04em;
}

.links a:first-child {
    margin-right: auto;
    text-align: left;
}
.links a:nth-child(2) {
        text-align: center;
}
.links a:last-child {
    margin-left: auto;
    text-align: right;
}
.links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: white;
    transition: width 0.3s ease-in-out;
}
.links a:hover::after {
    width: 100%;
}

.copy-email {
    position:relative;
    user-select: none;
    text-wrap: pretty;
}

.copy-email.copied-text {
    z-index: 1;
    pointer-events: none;
    -webkit-user-select: none; /* Ajout pour Safari */
    text-wrap: pretty;
}

/* ===== CURSOR STYLE ===== */
#custom-cursor {
    width: clamp(50px, 10vw, 150px);
    height: clamp(50px, 10vw, 150px);
    background-color: rgba(27, 1, 231, 0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: background-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 1rem;
    text-align: center;
    white-space: nowrap;
    -webkit-user-select: none; /* Ajout pour Safari */
    user-select: none;
}
#custom-cursor.cursor-hover {
    background-color: rgba(255, 255, 255, 0.8);
}
#custom-cursor.copied-cursor-style {
    background-color: rgb(255, 35, 92) !important;
    color: white !important;
    font-family: 'AeonikPro-Regular', sans-serif !important;
    font-size: clamp(0.8rem, 1.2rem, 1rem) !important;
    z-index: 0 !important;
}
#custom-cursor.cursor-hidden {
    opacity: 0 !important;
}
@media (pointer: coarse) {
    #custom-cursor {
        display: none; /* Cache le curseur personnalisé sur les environnements tactiles */
    }
}

/* ===== RESPONSIVENESS ===== */
@media (max-width: 768px) {
    .overlay-content {
        gap: 1.5rem;
    }
    .presentation,
    .links a {
        font-size: clamp(0.9rem, 1.5vw, 1.25rem);
    }
    .title img {
      transform: none;
    }
}

@media (max-width: 480px) {
    .presentation {
        max-width: 80%;
    }
    .title img {
        max-width: 100%;
    }
}
@media (max-width: 600px) {
    .container img,
    .container video {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 350px) {
    .presentation,
    .links a {
        font-size: clamp(0.7rem, 1.2vw, 1rem);
    }
}

/* ===== ANIMATIONS ===== */
@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== ACCESSIBILITY (HIDDEN TEXT) ===== */
h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
 body.hide-cursor{
   cursor: none;
}