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

html{
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

section { /* On cible toutes les sections de la page */
    scroll-snap-align: start;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
  margin:0;
  background:#1b1d2a;      /* UNI par défaut */
  color:#f1f1f1;
  font-family:'Geist',sans-serif;
}

#section-one{
  min-height: 100vh;                 /* 1 écran complet */
  display: flex;
  flex-direction: column; 
  align-items: center;               /* centre vertical */
  justify-content: center;           /* centre horizontal */
  padding: 80px 16px 120px;          /* respire + laisse la place au scroll-indicator */
  position: relative;
  background:
    radial-gradient(1000px 600px at 50% 30%, rgba(140,100,255,.25), transparent 70%),
    radial-gradient(800px 500px at 70% 20%, rgba(255,120,200,.2), transparent 70%),
    radial-gradient(800px 500px at 30% 20%, rgba(100,170,255,.2), transparent 70%),
    #1b1d2a; /* base */
}

#music-activity {
  position: absolute;               /* reste en haut même quand on scroll */
  top: 10px;                     /* distance du haut */
  left: 20px;                    /* distance du bord gauche */
  display: flex;                 /* aligne l’icône et le texte */
  align-items: center;
  gap: 8px;                      /* espace entre icône et texte */
  border-radius: 10px;
  padding: 6px 12px;
  font-family: 'Geist', sans-serif;
  z-index: 100;                  /* reste au-dessus de tout */
  animation: fadeIn 1.2s ease forwards;
}

/* Icône casque */
#headphones-icon {
  width: 20px;
  height: 20px;
}

/* Texte musique */
#music-text {
  max-width: 38vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color:#99DB91; font-weight:600; letter-spacing:.02em; font-size:.9rem;
}

/* Apparition douce */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

#main-content{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  text-align:center;
  max-width:760px;
  margin:0 auto;
}

/* 1) Eyebrow / badge */
#lookingfor{
  order:-1; /* passe au-dessus du h1 */
  display:inline-flex;
  align-items:center;
  padding:.38rem .75rem;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  font-size:.8rem;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#e7eaf2;
  margin:0;                 /* nettoie les marges par défaut */
}

/* 2) Titre */
#maintitle{
  font-size:clamp(40px,6.2vw,68px);
  line-height:1.05;
  letter-spacing:.2px;
  margin:4px 0 2px 0;
  background:linear-gradient(90deg,#ff7aa8 0%, #ffb199 60%, #ffd6a5 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  text-shadow:0 1px 0 rgba(0,0,0,.15); /* très subtil */
}

/* 3) Baseline (école) */
#currentsituation{
  color:#cbd5e1;
  font-weight:600;
  font-size:clamp(13px,1.1vw,16px);
  line-height:1.55;
  margin:2px 0 6px 0;
  max-width:720px;
}

/* 4) Rôles -> chips */
#description{
  margin-top:2px;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
}
#description .chip{
  display:inline-flex;
  align-items:center;
  padding:.35rem .6rem;
  border-radius:999px;
  background:var(--chip);
  border:1px solid var(--bd-card);
  font-size:.88rem;
  color:#d5d9e6;
  white-space:nowrap;
}

.skills-marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.skills-track {
    display: inline-block;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.skills-track span {
    display: inline-block;
    margin: 0 1rem;
    font-size: 1.2rem;
    color: #818181;
    font-weight: 300;
    white-space: nowrap;
    text-shadow: 0 0 0.1px #a855f7, 0 0 0.1px #3b82f6;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem; /* espace entre les icônes */
}

.social-links img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1); /* rend les icônes blanches si fond sombre */
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.social-links img:hover {
    transform: scale(1.15);
    opacity: 0.8;
}

.scroll-indicator{
  position:absolute; 
  bottom:25px; 
  left:50%; 
  transform:translateX(-50%);
  z-index:5; 
  pointer-events:none;
  transition:opacity .25s ease, transform .25s ease;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  margin-bottom: 2px;
}
.scroll-indicator.is-hidden{
  opacity:0; transform:translateX(-50%) translateY(6px);
  
}

.scroll-indicator{ opacity:.65; }
.scroll-indicator .arrow-wrapper{
  margin-top: 5px;
  animation: bounce 2.4s ease-in-out infinite;
}
@keyframes bounce{ 0%,100%{transform:translateY(0)} 50%{transform:translateY(8px)} }

/* Apparition douce */
@keyframes fadein {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 0.8; transform: translate(-50%, 0); }
}

:root { --space: 14px; }
#main-content > * + * { margin-top: var(--space); } /* espacement cohérent */

:root{
  --bg-card: rgba(255,255,255,.03);
  --bd-card: rgba(255,255,255,.08);
  --fg: #e8e8ea;
  --muted: #aeb4c2;
  --accent: #ff86a5; /* ton rose/corail */
  --chip: rgba(255,255,255,.06);
}

#section-one, #section-two {
    height: 100vh; /* Chaque section prend 100% de la hauteur de la vue */
    overflow: auto; /* Permet de scroller à l'intérieur si le contenu dépasse */
}

#section-two {
    height: 100vh;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 24px;
    background-color: #1b1d2a; /* Un fond légèrement différent pour contraster */
}

.resume-container {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1fr 1px 1fr; /* Colonne gauche, séparateur, colonne droite */
    gap: 48px; /* Espace de chaque côté du séparateur */
}

.vertical-divider {
    width: 1px;
    background-color: rgba(255, 255, 255, 0.15);
}

.content-block + .content-block {
    margin-top: 40px; /* Espace entre les blocs (ex: entre About et Projects) */
}

/* === STYLES COMMUNS POUR LES TITRES ET TEXTES === */
#section-two h2 {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--fg);
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#section-two p {
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

#section-two h3 {
    color: var(--fg);
    font-size: 1.05rem;
    margin: 0 0 4px 0;
}

/* === STYLES SPÉCIFIQUES AUX BLOCS === */

/* --- Projets --- */
.project-list-new {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 24px;
}

.project-list-new li {
    display: flex; /* Active le mode Flexbox */
    align-items: flex-start; /* Aligne le point et le contenu en haut */
}

.project-list-new li::before {
    content: '●';
    color: var(--accent);
    margin-right: 12px;
    font-size: 0.8rem;
    margin-top: 6px; /* Ajoute cette ligne pour décaler le point vers le bas */
}

/* --- Compétences --- */
.skills-grid-new {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
}

.skills-grid-new h4 {
    margin: 0 0 6px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #c9ceda;
}
.skills-grid-new p {
    font-size: 0.9rem;
}

/* --- Timeline (Experience & Education) --- */
.timeline-new {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

/* La ligne verticale de la timeline */
.timeline-new::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    bottom: 5px;
    width: 2px;
    background: linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: 2px;
}

.timeline-new li {
    position: relative;
    padding-left: 30px; /* Espace pour le point et la ligne */
}
.timeline-new li + li {
    margin-top: 28px; /* Espace entre les expériences */
}

/* Le point sur la timeline */
.timeline-new li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #161823;
    border: 2px solid var(--accent);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}

.timeline-dates {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 500;
}

.timeline-company {
    display: block;
    font-size: 0.9rem;
    color: #c9ceda;
    margin-bottom: 8px;
}

.language-switcher {
    position: fixed; /* Reste fixe à l'écran même lors du scroll */
    top: 20px;       /* 20px depuis le haut */
    right: 20px;      /* 20px depuis la droite */
    z-index: 1000;    /* S'assure qu'il est au-dessus de tout */
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.05); /* Fond subtil */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
    backdrop-filter: blur(4px); /* Effet de verre dépoli */
}

.language-switcher .lang-link {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.language-switcher .lang-link:hover {
    color: var(--fg);
}

/* Style pour la langue active */
.language-switcher .lang-link.active {
    color: var(--accent);
    cursor: default;
}

.language-switcher span {
    color: rgba(255, 255, 255, 0.2);
}


@media (max-width: 980px) {
    html {
        scroll-snap-type: none;
    }

    #section-two {
        height: auto; 
        padding: 60px 16px;
    }

    .resume-container {
        grid-template-columns: 1fr; 
        gap: 0;
    }

    .vertical-divider {
        display: none;
    }

    .column-right {
        margin-top: 40px; 
    }

    .skills-grid-new {
        grid-template-columns: 1fr; 
    }
}


/* @media (max-width: 980px) {
    html {
        scroll-snap-type: y proximity;
    }

    #section-two {
        height: auto; 
        min-height: 100vh;
        padding: 60px 16px;
    }

    .resume-container {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .vertical-divider {
        display: none;
    }

    .column-right {
        margin-top: 40px;
    }

    .skills-grid-new {
        grid-template-columns: 1fr;
    }
} */
