/* ============================================================
   LANDING.CSS
   Styles de la page d'accueil (landing page).
   
   Structure :
   1. Layout principal (plein écran, centré)
   2. Arrière-plan (grille perspective + scanlines)
   3. Header (titre avec effet glitch)
   4. Boutons de navigation (CTA vers Portfolio / Services)
   ============================================================ */

/* ---- 1. LAYOUT PRINCIPAL ---- */

body {
  background-color: var(--color-secondary);
}
.landing {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: var(--font-display);
}

.landing__logo {
  position: absolute;
  display: flex;
  gap : 10px;
  top:30px;
  left: 30px;
  width: 1200px;
  height: auto;
  z-index: 2;
}

.landing__logo img {
  width: 60px;
  height: auto;
}

.landing__logo p {
  margin-top: 21px;
  color:var(--color-default);
  font-weight: 700;
}

/* ---- 2. ARRIÈRE-PLAN ---- */

/* Conteneur de l'arrière-plan */
.landing__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.landing__bg video {
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}


/* ---- 3. CONTENU CENTRAL ---- */
.landing__content {
  position: relative;
  z-index: var(--z-base);
  text-align: center;
  padding: var(--space-xl);
}


/* ---- 5. BOUTONS DE NAVIGATION ---- */
.landing__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  flex-direction: column;
  z-index: 0;
}

.landing__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 400;
  gap: 5%;
  width:150px;
  background: var(--color-secondary);
  color: var(--color-default);
  overflow: hidden;
  cursor:crosshair;
}

.landing__btn:hover {
  background-color: var(--color-default);
  color: var(--color-secondary);
}
.landing__panel-trigger {
  position: fixed;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-elevated);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-display);
  background: var(--color-default);
  border-radius: 50px;
  cursor: pointer;
  overflow: hidden;           /* Cache le ::before qui déborde */
  z-index: 1; 
  animation: trigger-float 2.5s ease-in-out infinite;
}
.landing__panel-trigger::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;                  /* Invisible par défaut */
  height: 0;
  background: var(--color-secondary);
  transition: height 0.2s ease;
  z-index: -1;               /* Derrière le texte */
}

/* Hover : le remplissage s'étend + le texte change de couleur */
.landing__panel-trigger:hover {
  color: var(--color-default);
}

.landing__panel-trigger:hover::before {
  height: 100%;               /* Remplit tout le bouton */
}


.landing__panel-trigger-icon {
  font-size: var(--text-lg);
  color: var(--color-cyan);
  transition: transform var(--transition-base);
}

/* Flottement subtil du bouton */
@keyframes trigger-float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-6px); }
}

/* Cacher le trigger quand le panel est ouvert */
.landing__panel-trigger.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

/* ============================================================
   PANEL "À PROPOS" — Section plein écran qui se lève
   
   - Caché par défaut (translateY(100%) = en dehors de l'écran)
   - Se lève quand on lui ajoute la classe .is-open
   - Transition fluide de 0.6s avec un ease-out
   ============================================================ */

.about-panel {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: var(--color-bg-primary);
  overflow-y: auto;

  /* Caché en bas de l'écran */
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* État ouvert : le panel remonte à sa position normale */
.about-panel.is-open {
  transform: translateY(0);
}

/* Bouton fermer */
.about-panel__close {
  position: fixed;
  top: var(--space-lg);
  right: var(--space-lg);
  z-index: var(--z-modal);
  font-size: var(--text-3xl);
  color: var(--color-secondary);
  background: var(--color-default);
  font-family: var(--font-display);
  font-weight: 900;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  border-radius: 50px;
}
.about-panel__close::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;                  /* Invisible par défaut */
  height: 0;
  background: var(--color-secondary);
  transition: height 0.2s ease;
  z-index: -1;               /* Derrière le texte */
}

/* Hover : le remplissage s'étend + le texte change de couleur */
.about-panel__close:hover {
  color: var(--color-default);
}

.about-panel__close:hover::before {
  height: 100%;               /* Remplit tout le bouton */
}

/* Contenu du panel */
.about-panel__content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl);

  /* Animation d'entrée du contenu (léger délai après le panel) */
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.4s ease 0.3s,
    transform 0.4s ease 0.3s;
}
.about-panel.is-open .about-panel__content {
  opacity: 1;
  transform: translateY(0);
}

/* Sections */
.about-panel__section {
  margin-bottom: var(--space-2xl);
}

.about-panel__profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;}
  
.about-panel__profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--space-md);
}
/* Titres */
.about-panel__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-2xl);
  color: var(--color-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
}

.about-panel__subtitle {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
  margin-top: var(--space-xl);
}

/* Texte bio */
.about-panel__text {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

/* Tags logiciels */
.about-panel__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.about-panel__tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding: var(--space-xs) var(--space-md);
  border: 1px solid var(--color-border);
  letter-spacing: 0.05em;
  transition: border-color var(--transition-base), color var(--transition-base);
  border-radius: 50px;
}
.about-panel__tag:hover {
  border-color: var(--color-cyan-dim);
  color: var(--color-cyan);
}

/* Séparateur */
.about-panel__divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-2xl) 0;
}

/* Grille de contact */
.about-panel__contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}

.about-panel__contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
  border-radius: 20px;
  transition:
    border-color var(--transition-base),
    background var(--transition-base),
    transform var(--transition-fast);
}
.about-panel__contact-item:hover {
  border-color: var(--color-cyan-dim);
  background: var(--color-bg-elevated);
  transform: translateY(-2px);
}

.about-panel__contact-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-panel__contact-value {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  font-weight: 500;
}

/* ---- RESPONSIVE PANEL ---- */
@media (max-width: 600px) {
  .about-panel__content {
    padding: var(--space-2xl) var(--space-md);
  }
  .about-panel__contact-grid {
    grid-template-columns: 1fr;
  }
}