:root {
  --bg: #0b0f1a;
  --card: #0f1724;
  --muted: rgba(255, 255, 255, 0.65);
  --accent: #7cf0ff;
  --accent2: #ff6b8a;
  --glass: rgba(255, 255, 255, 0.03);
  --maxw: 1100px;
  --primary-text: #eaf2ff;
  --secondary-text: #08101a;
  --highlight: #4CAF50;
  --border-color: rgba(255, 255, 255, 0.05);
}

html{
  scroll-behavior: smooth;
}

#projets .card {
  min-height: 200px;
  padding: 28px;
  font-size: 1px;
}

#projets .card h3 {
  font-size: 26px;
  margin-bottom: 1px;
}

#projets .card p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 1px;
}

#projets .tag {
  font-size: 14px;
  padding: 8px 14px;
  font-weight: bold;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, #061018 0%, var(--bg) 100%);
  color: var(--primary-text);
  padding: 36px 18px;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--secondary-text);
}

.subtitle {
  font-size: 12px;
  color: var(--muted);
}

.btnacc {
  text-decoration: none;
  color: var(--muted);
  margin-left: 18px;
  font-size: 14px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 18px;
  font-size: 14px;
}

nav a:hover {
  color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: center;
  margin-bottom: 36px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.02);
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--glass);
}

h1{
  font-size: 36px;
  margin-bottom: 8px;
}

.accent {
  color: var(--accent);
  font-weight: 600;
}

.lead {
  color: var(--muted);
  margin-bottom: 16px;
}

.btn {
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border: none;
  color: var(--secondary-text);
  font-weight: 700;
  cursor: pointer;
}

.btn.ghost {
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--glass);
  color: var(--muted);
}

.cta {
  display: flex;
  gap: 12px;
}

.profile {
  background: rgba(255, 255, 255, 0.015);
  padding: 22px;
  border-radius: 14px;
  border: 1px solid var(--glass);
}

.avatar {
  width: 100%; 
  height: 220px; 
  border-radius: 12px;
  background: linear-gradient(135deg,#061b2a,#0a1220);
  display: flex; 
  align-items: center; 
  justify-content: center;
  font-size: 72px; 
  font-weight: 800; 
  color: var(--accent);
  text-decoration: none; 
}

.avatar:hover {
  background: linear-gradient(135deg, #0a1220, #061b2a);
  color: #fff;
  transform: scale(1.05);
  transition: all 0.3s ease;
}

.meta p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
}

.section {
  margin-bottom: 28px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: rgba(255, 255, 255, 0.02);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--glass);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card p {
  color: var(--muted);
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
}

.skills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.skill {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.contact-grid {
  grid-template-columns: 1fr 360px;
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: transparent;
  color: inherit;
  margin-bottom: 12px;
}

footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed rgba(255, 255, 255, 0.03);
  padding-top: 18px;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .profile {
    order: -1;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr !important;
  }

  .info{
    margin-top: 20px;
  }
}

.langue {
  margin-bottom: 10px;
}

.langue span {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

.barre {
  width: 50%;
  background-color: #ddd;
  border-radius: 10px;
  height: 15px;
  overflow: hidden;
}

.remplissage {
  height: 100%;
  background-color: var(--highlight); /* vert */
  width: 0;
  border-radius: 10px 0 0 10px;
}


/* -------- MENU -------- */

.burger {
  width: 30px;
  height: 22px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.burger span {
  height: 4px;
  background: var(--muted);
  border-radius: 5px;
  transition: 0.3s;
}

/* Mode actif (croix) */
.burger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(9px);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-9px);
}

/* Menu caché sur mobile */
nav.mobile-hide {
  display: none;
  flex-direction: column;
  gap: 14px;
}

/* Quand le menu s’ouvre */
nav.mobile-show {
  display: flex;
}

/* Responsive */
@media (max-width: 900px) {
  nav {
    display: none;
  }
  .burger {
    display: flex;
  }
}


/* -------- STYLE TIMELINE (PARCOURS) -------- */

.timeline-section {
    padding-top: 40px;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

/* La ligne verticale */
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--glass);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

/* Positionnement des éléments (Gauche/Droite) */
.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

/* Le point central */
.dot {
    height: 14px;
    width: 14px;
    background-color: var(--accent); /* Couleur cyan */
    position: absolute;
    top: 30px;
    border-radius: 50%;
    z-index: 10;
}

.timeline-item:nth-child(odd) .dot {
    right: -7px;
}

.timeline-item:nth-child(even) .dot {
    left: -7px;
}

.timeline-content {
    padding: 24px;
    position: relative;
    border-radius: 12px;
    transition: transform 0.3s ease-in-out;
}

.timeline-item:hover .timeline-content {
    transform: scale(1.02);
}

.timeline-date {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent2); 
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Adaptation Mobile (Colonne unique) */
@media (max-width: 768px) {
    .timeline::after {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px; 
        padding-right: 10px;
        left: 0 !important; 
    }

    .timeline-item:nth-child(even) .dot,
    .timeline-item:nth-child(odd) .dot {
        left: 23px; 
        right: auto;
    }
    
    .timeline-item:hover .timeline-content {
        transform: none; 
    }
}
/* -------- STYLES POUR LES MISSIONS ET TAGS DANS LA TIMELINE -------- */

.missions-list {
    margin: 15px 0 15px 20px;
    padding: 0;
    list-style-type: none; 
}

.missions-list li {
    position: relative;
    margin-bottom: 8px;
    padding-left: 15px;
    color: var(--muted);
    font-size: 15px;
}

.missions-list li::before {
    content: '•';
    color: var(--accent); 
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.tags {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    background-color: var(--card);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--accent);
}

#parcours .hero {
  display: flex; 
  flex-direction: column; 
  align-items: center; 
}

#parcours .hero-card {
  text-align: center; 
  max-width: 700px;
  margin-left: auto; 
  margin-right: auto;
  padding-bottom: 40px; 
}

h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 10px;
    position: relative; /* Nécessaire pour positionner la barre */
    display: inline-block; /* Assure que l'élément prend la taille de son contenu */
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px; /* Longueur de la barre */
    height: 4px; /* Épaisseur de la barre */
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent2) 100%);
    border-radius: 2px;
}

.section-padding {
    padding-bottom: 50px;
}

#formations,
.timeline-section {
    scroll-snap-align: start; 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column;
    justify-content: center; 
    padding-top: 50px; 
    padding-bottom: 50px;
}

.btn.small-btn {
    display: inline-block;
    padding: 6px 12px;
    font-size: 14px;
    margin-top: 15px;
    min-width: unset; 
}

#portfolio .hero {
  display: flex; 
  flex-direction: column;
  align-items: center;
}

#portfolio .hero-card {
  text-align: center; 
  max-width: 700px;
  margin-left: auto; 
  margin-right: auto;
  padding-bottom: 40px; 
}


#alternance .hero {
  display: flex; 
  flex-direction: column;
  align-items: center;
}

#alternance .hero-card {
  text-align: center; 
  max-width: 700px;
  margin-left: auto; 
  margin-right: auto;
  padding-bottom: 40px; 
}

#certifications .hero-card {
  text-align: center; 
  max-width: 700px;
  margin-left: auto; 
  margin-right: auto;
  padding-bottom: 40px; 
}

#certifications .hero {
  display: flex; 
  flex-direction: column;
  align-items: center;
}

/* -------- STYLE DES CARTES RÉFÉRENTS (PROF) -------- */


.prof-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.prof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    justify-content: center;
    gap: 30px; 
    margin: 40px auto;
    padding: 0 20px; 
}

.prof-card {
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.prof-card h3 {
    margin-bottom: 5px;
    font-size: 22px;
    color: var(--primary-text);
}

.prof-card p {
    font-size: 15px;
    color: var(--muted);
    margin-bottom: 20px;
    line-height: 1.2; 
}

.prof-card p a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.prof-card p a:hover {
    text-decoration: underline;
}

.prof-card .btn {
    margin-top: auto; 
    align-self: stretch;
}

.prof-card:hover {
    transform: translateY(-5px); 
    border: 1px solid var(--accent2); 
    box-shadow: 0 0 15px rgba(255, 107, 138, 0.3), 
                0 0 5px var(--accent2); 
}

.prof-card a:hover {
    color: var(--accent2);
}

@media (max-width: 600px) {
    .prof-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
}

.splash-container p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 600px;
}