/* ==========================================================================
   1. CONFIGURATION GÉNÉRALE & TYPOGRAPHIE
   ========================================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: #fdfdfe;
  color: #1a162e;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Variables de Design */
:root {
  --main-violet: #6d28d9;
  --accent-rose: #e11d48;
  --soft-violet: #a78bfa;
  --text-dark: #1a162e;
  --text-muted: #524f67;
  --border-color: rgba(109, 40, 217, 0.25);
  --shadow: 0 12px 30px rgba(109, 40, 217, 0.06);
  --radius-lg: 24px;
  --radius-md: 16px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Application de Plus Jakarta Sans sur les Titres */
h1, h2, h3, .logo, .sub-title-projects {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
  font-weight: 700;
}

/* Layout Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: clamp(60px, 8vw, 100px) 0;
}

/* Titres de Sections Réutilisables */
.section-title {
  margin-bottom: clamp(35px, 6vw, 50px);
}

.section-title span {
  color: var(--accent-rose);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 8px;
}

.section-title h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--text-dark);
  line-height: 1.2;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  padding: 14px 28px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  width: auto;
}

.btn-dark {
  background: var(--main-violet);
  color: #ffffff;
}

.btn-dark:hover {
  background: var(--accent-rose);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(225, 29, 72, 0.2);
}

.btn-light {
  border: 2px solid var(--main-violet);
  color: var(--main-violet);
  background: transparent;
}

.btn-light:hover {
  background: rgba(109, 40, 217, 0.05);
}

/* ==========================================================================
   2. BARRE DE NAVIGATION & BANNIÈRE LINKEDIN
   ========================================================================== */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(253, 253, 254, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--main-violet);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--text-dark);
  text-decoration: none;
}

.logo span {
  color: var(--main-violet);
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--main-violet);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.menu-toggle {
  font-size: 1.4rem;
  color: var(--text-dark);
  cursor: pointer;
  display: none;
}

/* Bannière */
.linkedin-banner {
  width: 90%;
  max-width: 1200px;
  margin: 90px auto 0;
  border-radius: var(--radius-md);
  height: clamp(120px, 20vw, 220px);
  overflow: hidden;
  border: 2px solid var(--main-violet);
  box-shadow: var(--shadow);
}

.linkedin-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive Menu */
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    border-bottom: 2px solid var(--main-violet);
    box-shadow: var(--shadow);
  }
  .nav-links.active { display: flex; }
}

/* ==========================================================================
   3. HERO SECTION & À PROPOS
   ========================================================================== */
.hero {
  padding: clamp(40px, 8vw, 80px) 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-buttons { justify-content: center; }
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 30px;
  background: rgba(109, 40, 217, 0.05);
  border: 1px solid var(--main-violet);
  color: var(--main-violet);
  font-weight: 700;
  font-size: 0.75rem;
  margin-bottom: 15px;
}

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 15px;
  font-weight: 800;
}

.hero-text h1 span {
  color: var(--main-violet);
}

.hero-text p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-muted);
  margin-bottom: 25px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-image img {
  width: 100%;
  max-width: 320px;
  border-radius: var(--radius-lg);
  border: 3px solid var(--main-violet);
  margin: 0 auto;
  display: block;
  box-shadow: var(--shadow);
}

/* Grid À Propos */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 850px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.about-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.mini-card {
  background: #ffffff;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow);
}

.mini-card h3 {
  font-size: 2rem;
  color: var(--main-violet);
  margin-bottom: 5px;
}

.mini-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   4. SECTION PROJETS (DIAPORAMAS INTÉGRÉS & GRID 2 COLONNES)
   ========================================================================== */
.standard-two-columns {
  display: grid;
  grid-template-columns: 1fr; /* 1 bloc par ligne par défaut sur mobile */
  gap: 35px;
}

@media (min-width: 850px) {
  .standard-two-columns {
    grid-template-columns: repeat(2, 1fr); /* Exactement 2 grands blocs de projet par ligne */
  }
}

.project-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--main-violet);
  box-shadow: var(--shadow);
}

/* Espace pour le diaporama d'images de chaque projet */
.project-image-slider {
  height: 250px; /* Plus grand pour valoriser l'affichage à 2 blocs */
  position: relative;
  overflow: hidden;
  background: #0b091a;
  border-bottom: 1px solid var(--border-color);
}

.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-image-slider img {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

/* Commandes (Flèches) pour le diaporama projet */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(253, 253, 254, 0.9);
  border: 1px solid var(--main-violet);
  color: var(--main-violet);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}

.slider-arrow:hover {
  background: var(--main-violet);
  color: #ffffff;
}

.slider-arrow.prev { left: 12px; }
.slider-arrow.next { right: 12px; }

.project-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.project-content h3 {
  font-size: 1.35rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.project-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex-grow: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.project-tech span {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid var(--soft-violet);
  color: var(--main-violet);
  background: rgba(109, 40, 217, 0.02);
}

.project-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.project-buttons .btn {
  padding: 10px;
  font-size: 0.85rem;
}

/* Diaporama Ateliers Pratiques (Section Dédiée en bas) */
.ateliers-sub-section {
  margin-top: clamp(50px, 8vw, 80px);
}

.sub-title-projects {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--main-violet);
  text-align: center;
}

.slideshow-wrapper {
  background: #0b091a;
  border-radius: var(--radius-md);
  border: 2px solid var(--main-violet);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.slideshow {
  overflow: hidden;
  position: relative;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  height: clamp(230px, 45vw, 420px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: #0b091a;
}

.slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 12px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  text-align: center;
  font-size: 0.85rem;
}

.slideshow-controls {
  padding: 12px;
  display: flex;
  justify-content: center;
  gap: 15px;
  align-items: center;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
}

.slide-btn {
  background: transparent;
  border: 2px solid var(--main-violet);
  color: var(--main-violet);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.slide-btn:hover {
  background: var(--main-violet);
  color: white;
}

.slide-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e2e8f0;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--main-violet);
  width: 18px;
  border-radius: 10px;
}

/* Modale globale pour l'effet d'agrandissement (Lightbox) */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 9, 26, 0.95);
  z-index: 2500;
  align-items: center;
  justify-content: center;
}

.lightbox-modal img {
  max-width: 90%;
  max-height: 85%;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  object-fit: contain;
  animation: zoomInAnim 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes zoomInAnim {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   5. COMPÉTENCES (FIXE & TICKER DÉFILANT)
   ========================================================================== */
.skills-grid-fixed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.skill-group {
  background: #ffffff;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  text-align: center;
  transition: var(--transition);
}

.skill-group:hover {
  border-color: var(--accent-rose);
  transform: translateY(-4px);
}

.group-icon i {
  font-size: 2rem;
  color: var(--main-violet);
  margin-bottom: 12px;
}

.skill-group h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.skill-group p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Ticker (Bandeau textuel infini) */
.ticker-section {
  background: var(--text-dark);
  padding: 14px 0;
  overflow: hidden;
  border-top: 2px solid var(--main-violet);
  border-bottom: 2px solid var(--accent-rose);
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  gap: 40px;
  animation: scrollContinuous 30s linear infinite;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.ticker-sep {
  color: var(--accent-rose);
}

@keyframes scrollContinuous {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   6. HISTORIQUE & FORMATION (TIMELINE)
   ========================================================================== */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.timeline-item {
  position: relative;
}

.timeline-content {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  padding: 24px;
  position: relative;
}

.timeline-content::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--main-violet);
  border-radius: 4px 0 0 4px;
}

.timeline-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.timeline-company {
  color: var(--main-violet);
  font-weight: 700;
  font-size: 0.95rem;
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-rose);
  background: rgba(225, 29, 72, 0.05);
  padding: 4px 10px;
  border-radius: 20px;
}

.timeline-content h3 {
  font-size: 1.15rem;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.timeline-content ul {
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.timeline-content ul li {
  margin-bottom: 6px;
}

.training-card::before {
  background: var(--soft-violet);
}

/* ==========================================================================
   7. CERTIFICATIONS & ESPACE CONTACT
   ========================================================================== */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.cert-card {
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: var(--transition);
}

.cert-card h3 {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.cert-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Espace Téléchargement PDF */
.cv-card {
  background: linear-gradient(135deg, #f5f3ff, #ffffff);
  padding: clamp(30px, 6vw, 50px);
  border-radius: var(--radius-md);
  border: 2px dashed var(--main-violet);
  text-align: center;
  margin-bottom: 50px;
}

.cv-card i {
  font-size: 2.5rem;
  color: var(--accent-rose);
  margin-bottom: 12px;
}

.cv-card h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

/* Formulaire & Coordonnées */
.contact-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}

@media (max-width: 768px) {
  .contact-wrapper { grid-template-columns: 1fr; }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  display: flex;
  gap: 15px;
  align-items: center;
  background: #ffffff;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.contact-item i {
  color: var(--accent-rose);
  font-size: 1.25rem;
  width: 24px;
}

.contact-item span, .contact-item a {
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 500;
  text-decoration: none;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--main-violet);
}

.contact-form textarea {
  height: 140px;
  resize: vertical;
}

/* ==========================================================================
   8. FOOTER & ANIMATIONS DE RÉVÉLATION
   ========================================================================== */
.footer {
  background: #0b091a;
  padding: 30px 0;
  color: #a3a1ad;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.footer-socials a {
  color: #a3a1ad;
  font-size: 1.3rem;
  transition: var(--transition);
}

.footer-socials a:hover {
  color: var(--soft-violet);
}

/* Scroll Reveal Effect Styles */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   9. CADRE VIDÉO TIKTOK
   ========================================================================== */
.tiktok-section-wrapper {
  max-width: 450px; /* Taille idéale pour une vidéo verticale */
  margin: 0 auto;
  padding: 10px;
}

.tiktok-card {
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.tiktok-card:hover {
  border-color: var(--main-violet);
  transform: translateY(-4px);
}

.tiktok-video-container {
  width: 100%;
  height: 550px; /* Hauteur immersive pour le format vertical */
  background: #0b091a;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tiktok-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Remplit le cadre proprement */
  cursor: zoom-in;
}

.tiktok-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
}

.tiktok-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tiktok-icon {
  font-size: 1.6rem;
  color: #000000; /* Couleur officielle noire de TikTok */
}

.tiktok-info span {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.tiktok-btn {
  padding: 10px 18px !important;
  font-size: 0.85rem !important;
  gap: 8px;
  background: linear-gradient(90deg, #fe2c55, #25f4ee) !important; /* Dégradé style TikTok */
  color: #ffffff !important;
  border: none;
}

.tiktok-btn:hover {
  background: var(--text-dark) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.project-bullets {
  margin-top: 5px;
  margin-bottom: 12px;
  padding-left: 20px;
  list-style-type: disc;
}

.project-bullets li {
  font-size: 0.9rem;
  color: var(--text-muted, #555);
  margin-bottom: 4px;
  line-height: 1.4;
}

.contact-socials a:hover {
  color: var(--main-violet) !important;
  transform: scale(1.1);
  transition: var(--transition);
}





