/* =========================================================
   VARIABLES GLOBALES
========================================================= */

:root {
  --bg-color: #f5f5f7;
  --card-bg: #ffffff;
  --accent: #2563eb;
  --accent-soft: #dbeafe;
  --text-main: #111827;
  --text-muted: #6b7280;
  --border-soft: #e5e7eb;
  --radius-lg: 16px;
  --shadow-soft: 0 18px 35px rgba(15, 23, 42, 0.08);
  --max-width: 960px;
}


/* RESET & BASES */

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #e0ecff 0, #f5f5f7 52%, #f9fafb 100%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}


/* =========================================================
   HEADER + NAVBAR
========================================================= */

header {
  padding: 1.25rem 1.5rem 0.5rem;
}

.navbar {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 901px) {
    .navbar-secondary {
      display: flex;
      justify-content: center;
      gap: 1rem;
      margin-top: 0.75rem;
    }
}

/* Navigation scrollable sur petit écran */
@media (max-width: 900px) {
  .navbar-secondary {
    display: flex;
    flex-wrap: nowrap;      /* ← IMPORTANT : interdit le retour à la ligne */
    overflow-x: auto;       /* ← active le défilement horizontal */
    white-space: nowrap;    /* ← garde les liens sur une seule ligne */
    -webkit-overflow-scrolling: touch; /* scroll fluide sur mobile */
    gap: 1rem;
  }

  .navbar-secondary a {
    display: inline-block;
    padding: 0.5rem 1rem;
  }
  
  /* Masque la barre de défilement pour un rendu propre */
  .navbar-secondary::-webkit-scrollbar {
    display: none;
  }

  .navbar-secondary {
    scrollbar-width: none; /* Firefox */
  }

}

.nav-brand {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
}

.nav-links a {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 0.15s ease;
  color: var(--text-muted);
}

.nav-links a:hover {
  border-color: var(--accent-soft);
  background: rgba(255, 255, 255, 0.8);
}

.nav-links a.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: transparent;
  font-weight: 600;
}


/* =========================================================
   PAGE WRAPPER & CARDS
========================================================= */

main {
  flex: 1;
  display: flex;
  align-items: stretch;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto 2.5rem;
  padding: 1rem 1.5rem 2rem;
  width: 100%;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 2rem 2.25rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
}


/* =========================================================
   ACCUEIL – HERO
========================================================= */

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.page-hero h1 {
  font-size: 2.2rem;
  margin: 0 0 0.75rem;
}

.page-hero .subtitle {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: #0f172a;
  color: #e5e7eb;
  font-size: 0.78rem;
  margin-bottom: 0.75rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
}


/* =========================================================
   ACCUEIL – BOUTONS VERTICAUX
========================================================= */

.vertical-nav-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.vertical-nav-buttons .nav-card {
  width: 100%;
}


/* NAV-CARD — STYLE GÉNÉRAL */

.nav-card {
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.6), #ffffff);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.nav-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.15);
  border-color: #bfdbfe;
}

.nav-card-title {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.nav-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.nav-card-cta {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
}

/* =========================================================
   ACCUEIL – VISUEL DIAGONAL (6 images alternées droite/gauche)
========================================================= */
/* Responsive : sur mobile, on arrête le position:absolute et on empile proprement */
@media (max-width: 900px) {
    .hero-images-diagonal {
      position: relative;
      width: 100%;
      height: 660px; /* hauteur du "bloc" visuel, ajuste si besoin */
    }

    .hero-images-diagonal img {
      display: block;
      margin-left: auto;
      margin-right: auto;
      position: absolute;
      width: 230px;       /* plus grand */
      height: 150px;
      object-fit: cover;
      border-radius: 14px;
      box-shadow: 0 6px 18px rgba(0,0,0,0.16);
      background: #ddd;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

  .hero-images-diagonal img:nth-child(1) { top: 0;     right: 5%; }
  .hero-images-diagonal img:nth-child(2) { top: 100px;  left:  5%; }
  .hero-images-diagonal img:nth-child(3) { top: 200px;  right: 5%; }
  .hero-images-diagonal img:nth-child(4) { top: 300px; left:  5%; }
  .hero-images-diagonal img:nth-child(5) { top: 400px; right: 5%; }
  .hero-images-diagonal img:nth-child(6) { top: 500px; left:  5%; }
}

@media (min-width: 901px) {
    .hero-images-diagonal {
      position: relative;
      width: 100%;
      height: 520px; /* hauteur du "bloc" visuel, ajuste si besoin */
    }

    .hero-images-diagonal img {
      position: absolute;
      width: 230px;       /* plus grand */
      height: 150px;
      object-fit: cover;
      border-radius: 14px;
      box-shadow: 0 6px 18px rgba(0,0,0,0.16);
      background: #ddd;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    /* 1 : en haut à droite */
    .hero-images-diagonal img:nth-child(1) {
      top: 80px;
      right: 0;
    }

    /* 2 : un peu plus bas, côté gauche */
    .hero-images-diagonal img:nth-child(2) {
      top: 180px;
      left: 5%;
    }

    /* 3 : encore plus bas, à droite */
    .hero-images-diagonal img:nth-child(3) {
      top: 280px;
      right: 5%;
    }

    /* 4 : plus bas, à gauche */
    .hero-images-diagonal img:nth-child(4) {
      top: 380px;
      left: 5%;
    }

    /* 5 : plus bas, à droite */
    .hero-images-diagonal img:nth-child(5) {
      top: 480px;
      right: 5%;
    }

    /* 6 : encore plus bas, à gauche */
    .hero-images-diagonal img:nth-child(6) {
      top: 580px;
      left: 5%;
    }
}

/* Petit effet au survol */
.hero-images-diagonal img:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
  z-index: 10;
}

/* =========================================================
   PAGES INTERNES
========================================================= */

.page-header {
  margin-bottom: 1.5rem;
}

.page-header h1 {
  margin: 0 0 0.3rem;
  font-size: 1.6rem;
}

.page-header p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.section-title {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.5rem;
}

.section-muted {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

section:not(:last-child) {
  margin-bottom: 2rem;
}

.list-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-left: 0;
  list-style: none;
  font-size: 0.82rem;
}

.list-tags li {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #f3f4f6;
}


/* =========================================================
   TIMELINE (pro, scolaire)
========================================================= */

.timeline {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid #e5e7eb;
}

.timeline li {
  padding-left: 1rem;
  margin-bottom: 1rem;
  position: relative;
}

.timeline li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  position: absolute;
  left: -4px;
  top: 4px;
}


/* =========================================================
   PROJETS
========================================================= */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.project-card {
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  padding: 1rem;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.project-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.project-desc {
  font-size: 0.86rem;
  margin-bottom: 0.75rem;
  color: #4b5563;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-size: 0.78rem;
}

.project-tag {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
}

.project-links {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.project-links a {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  transition: 0.15s ease;
}

.project-links a:hover {
  border-color: var(--accent);
}

/* Bouton "Lancer le projet" */
.project-launch {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.project-launch:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* =========================================================
   PAGE PROFESSIONNELLE – POSTE SANS CARTE
========================================================= */

.job-entry {
  margin-bottom: 2rem;
}

/* Ligne du haut avec logo + entreprise + durée */
.job-header-line {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Logo entreprise */
.job-logo {
  width: 55px;
  height: 55px;
  object-fit: contain;
  background: #f3f4f6;
  padding: 0.35rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

/* Texte à droite du logo */
.job-header-text {
  display: flex;
  flex-direction: column;
}

/* Nom entreprise */
.job-company {
  font-size: 1.1rem;
  font-weight: 700;
}

/* Durée */
.job-duration {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Localisation */
.job-location {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0.15rem 0 0.5rem;
}

/* Poste */
.job-role {
  font-size: 1rem;
  font-weight: 600;
}

/* Type contrat */
.job-type {
  font-size: 0.9rem;
  margin: 0.2rem 0;
}

/* Dates */
.job-dates {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* Description */
.job-description {
  margin: 0.5rem 0 0.75rem;
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.45;
}

/* Tags / compétences */
.job-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
}

.job-tags li {
  background: #f3f4f6;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  color: #374151;
  border: 1px solid #e5e7eb;
}

.job-tags {
  list-style: none;
  padding-left: 0;
}

.job-tags li {
  list-style: none;
}

.job-tags li::before {
  content: none !important;
}

.page-professionnel h2 {
  font-size: 1.5rem;          /* plus grand */
  font-weight: 700;
  text-decoration: underline; /* texte souligné */
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
}


/* =========================================================
   PAGE PERSONNELLE
========================================================= */

.note-box {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px dashed #cbd5f5;
  background: #eff6ff;
  font-size: 0.86rem;
  color: #1e293b;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
  border-top: 1px solid rgba(148, 163, 184, 0.24);
  padding: 0.75rem 1.5rem 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 0.75rem;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {
  .page-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .projects-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .card {
    padding: 1.5rem 1.25rem;
  }
}

@media (max-width: 500) {
  header {
    padding-inline: 1rem;
  }

  .page {
    padding-inline: 1rem;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* =========================================================
   LANGUES
========================================================= */

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.lang-switcher button {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.1rem 0.3rem;
  font-size: 0.8rem;
  color: inherit;
  border-radius: 999px;
  transition: 0.15s ease;
}

.lang-switcher button.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

/* =========================================================
   BOUTON MENU SUPPLÉMENTAIRE
========================================================= */

.nav-menu-extra {
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 0;
  position: relative;
  z-index: 20;
}

.nav-menu-toggle {
  border: 1px solid var(--border-soft);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0);
  color: var(--text-main);
  transition: 0.15s ease;
}

.nav-menu-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0);
}

/* Panneau du menu */
.nav-menu-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;

  margin-top: 0.4rem;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);

  display: none;            /* caché par défaut */
  flex-direction: column;
  gap: 0.35rem;
  width: 150px;
}

.nav-menu-panel.open {
  display: flex;              /* affiché quand .open est ajouté */
}

.nav-menu-panel a {
  font-size: 0.9rem;
  padding: 0.3rem 0.3rem;
  border-radius: 999px;
  transition: 0.15s ease;
  color: var(--text-muted);
}

.nav-menu-panel a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
