/* ============================================
   NEWTECK PLATFORM - CSS COMPLET
   Version Finale - Février 2026
   ============================================ */

/* VARIABLES CSS */
:root {
  --primary: #0A2342;
  --accent: #00C896;
  --light: #F4F7FB;
  --white: #FFFFFF;
  --text: #1C2B3A;
  --muted: #6B7B8D;
  --border: #E2EAF0;
}

/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

html {
  scroll-behavior: smooth;
}

/* TYPOGRAPHIE */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LOGO */
.logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-new {
  color: var(--primary);
}

.logo-teck {
  color: var(--accent);
}

/* NAVIGATION */
.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
  position: relative;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

/* BOUTONS */
.btn-login,
.btn-primary,
.btn-secondary,
.btn-large {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-login,
.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-login:hover,
.btn-primary:hover {
  background: #00A67C;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 200, 150, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--white);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin-bottom: 0;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
  line-height: 1.1;
}

.hero-accent {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ANIMATIONS */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-delay-1 {
  animation: fadeIn 0.8s ease-out 0.2s both;
}

.animate-fade-in-delay-2 {
  animation: fadeIn 0.8s ease-out 0.4s both;
}

/* ============================================
   SECTIONS GÉNÉRALES
   ============================================ */
.section {
  padding: 5rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary);
}

.section-description {
  text-align: center;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 3rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-tagline {
  opacity: 0.8;
  font-size: 0.95rem;
}

.footer-links h4,
.footer-contact h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-links a {
  display: block;
  color: var(--white);
  text-decoration: none;
  margin-bottom: 0.5rem;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-contact p {
  margin-bottom: 0.5rem;
  opacity: 0.8;
  font-size: 0.95rem;
}

.footer-bottom {
  background: rgba(0,0,0,0.2);
  padding: 1.5rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-bottom p {
  margin: 0;
  opacity: 0.8;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-menu {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-cta {
    flex-direction: column;
  }
}
/* ============================================
   CSS À AJOUTER DANS style.css
   SECTION CONTACT AMÉLIORÉE
   ============================================ */

/* CONTACT SECTION */
.contact-section {
  padding: 5rem 0;
  background: var(--light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

/* COLONNE GAUCHE - COORDONNÉES */
.contact-info-box {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  height: fit-content;
}

.contact-info-title {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 2rem;
  font-family: 'Syne', sans-serif;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon i {
  color: white;
  font-size: 1.3rem;
}

.contact-info-content {
  flex: 1;
}

.contact-info-content strong {
  display: block;
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.contact-info-content p {
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.contact-info-content a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.3s;
}

.contact-info-content a:hover {
  opacity: 0.8;
}

/* RÉSEAUX SOCIAUX */
.contact-social {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.contact-social h4 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 45px;
  height: 45px;
  background: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s;
  font-size: 1.2rem;
}

.social-link:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-3px);
}

/* COLONNE DROITE - FORMULAIRE */
.contact-form-box {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.contact-form-title {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 2rem;
  font-family: 'Syne', sans-serif;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row {
  width: 100%;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 200, 150, 0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-success {
  background: #E8F5E9;
  color: #2E7D32;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border-left: 4px solid #2E7D32;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* RESPONSIVE */
@media (max-width: 968px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-info-box {
    order: 2;
  }
  
  .contact-form-box {
    order: 1;
  }
}

@media (max-width: 768px) {
  .contact-info-item {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-info-icon {
    margin: 0 auto;
  }
  
  .social-links {
    justify-content: center;
  }
}
:root {
  --primary: #0A2342;
  --accent: #00C896;
  --light: #F4F7FB;
  --white: #FFFFFF;
  --text: #1C2B3A;
  --muted: #6B7B8D;
  --border: #E2EAF0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.6;
}

/* LOGO */
.espace-header .logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
}
.espace-header .logo-new {
  color: var(--white);
}
.espace-header .logo-teck {
  color: rgba(255,255,255,0.9);
}

/* HEADER FIXED */
.espace-header {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 1.5rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}
.espace-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.btn-logout {
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-logout:hover {
  background: rgba(255,255,255,0.3);
}

/* NAVIGATION FIXED */
.tabs-nav {
  max-width: 1200px;
  margin: 1rem auto 0;
  display: flex;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  padding: 0.5rem;
  border-radius: 50px;
}
.tab-link {
  flex: 1;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  text-align: center;
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.tab-link:hover {
  background: rgba(255,255,255,0.2);
}
.tab-link.active {
  background: var(--accent);
  color: white;
}

/* BADGE COURS FIXED */
.cours-badge {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  margin: 0 auto 2rem;
  max-width: 1200px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  position: relative;
}
.cours-badge-header {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.cours-info h2 {
  font-family: 'Syne', sans-serif;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cours-dates {
  display: flex;
  gap: 2rem;
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 1rem;
}
.cours-date-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-calendrier {
  background: var(--accent);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}
.btn-calendrier:hover {
  background: #00A67C;
  transform: translateY(-2px);
}

/* CONTENU */
.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 190px 1rem 3rem;
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

/* SESSIONS */
.session-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-left: 4px solid var(--accent);
  transition: all 0.3s;
}
.session-card:hover {
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.session-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.session-icon-number {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.session-module-icon-large {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}
.session-number-badge {
  font-size: 2rem;
  font-weight: 800;
  font-family: 'Syne', sans-serif;
  color: var(--primary);
  min-width: 40px;
}
.session-title-block {
  flex: 1;
}
.session-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.session-meta {
  display: flex;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  flex-wrap: wrap;
}
.session-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.session-description {
  color: var(--text);
  line-height: 1.6;
  margin-top: 1rem;
  padding-left: 0;
}
.session-software-icons {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}
.desc-icon {
  font-size: 2rem;
}
.desc-icon.fa-file-word {
  color: #2196F3;
}
.desc-icon.fa-file-excel {
  color: #4CAF50;
}
.desc-icon.fa-file-pdf {
  color: #E53935;
}
.desc-icon.fa-file-powerpoint {
  color: #FF9800;
}
.session-status {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}
.status-terminee {
  background: #E8F5E9;
  color: #2E7D32;
}
.status-planifiee {
  background: #E3F2FD;
  color: #1565C0;
}

/* DOCUMENTS DANS SESSIONS */
.session-documents {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.documents-title {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Syne', sans-serif;
}
.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}
.document-card {
  background: var(--light);
  border-radius: 12px;
  padding: 1rem;
  text-decoration: none;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 2px solid transparent;
}
.document-card:hover {
  background: white;
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.document-preview {
  width: 100%;
  height: 140px;
  background: white;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
}
.document-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.document-icon {
  font-size: 4rem;
}
.document-icon .fa-file-pdf,
.fa-file-pdf.document-icon,
i.fa-file-pdf {
  color: #E53935 !important;
}
.document-icon .fa-file-word,
.fa-file-word.document-icon,
i.fa-file-word {
  color: #2196F3 !important;
}
.document-icon .fa-file-excel,
.fa-file-excel.document-icon,
i.fa-file-excel {
  color: #4CAF50 !important;
}
.document-icon .fa-file-powerpoint,
.fa-file-powerpoint.document-icon,
i.fa-file-powerpoint {
  color: #FF9800 !important;
}
.document-name {
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.document-meta {
  display: flex;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  flex-wrap: wrap;
  justify-content: center;
}
.document-type {
  background: var(--primary);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}
.document-size {
  opacity: 0.7;
}

/* APPRENANTS */
.apprenants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.apprenant-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s;
}
.apprenant-card:hover {
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}
.apprenant-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 1rem;
  font-family: 'Syne', sans-serif;
}
.apprenant-name {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.apprenant-contact {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.apprenant-contact a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.3s;
}
.apprenant-contact a:hover {
  opacity: 0.7;
}
.apprenant-contact i {
  width: 16px;
  text-align: center;
  color: var(--muted);
}

/* MODAL CALENDRIER */
.modal-calendrier {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
}
.modal-calendrier.active {
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s;
}
.modal-close:hover {
  background: var(--accent);
}
.pdf-viewer {
  width: 100%;
  height: 80vh;
  border: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .cours-badge-header {
    flex-direction: column;
  }
  .tabs-nav {
    flex-direction: column;
  }
  .session-header {
    flex-direction: column;
    text-align: center;
  }
  .session-icon-number {
    justify-content: center;
  }
  .session-description {
    padding-left: 0;
  }
}

/* BOUTONS DOCUMENTS RÉSUMÉ */
.document-card-resume {
  background: var(--light);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 2px solid transparent;
}
.document-card-resume:hover {
  background: white;
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.document-actions-resume {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  width: 100%;
}
.btn-doc-view,
.btn-doc-download {
  flex: 1;
  padding: 0.6rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.btn-doc-view {
  background: var(--primary);
  color: white;
}
.btn-doc-view:hover {
  background: var(--accent);
}
.btn-doc-download {
  background: var(--accent);
  color: white;
}
.btn-doc-download:hover {
  background: #00A67C;
}

/* DOCUMENT ACTIONS DANS RÉSUMÉ */
.document-card-resume {
  background: var(--light);
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
}
.document-card-resume:hover {
  background: white;
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.document-actions-resume {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.btn-doc-view,
.btn-doc-download {
  flex: 1;
  padding: 0.6rem;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-doc-view {
  background: var(--primary);
  color: white;
}
.btn-doc-view:hover {
  background: #0d2f57;
}
.btn-doc-download {
  background: var(--accent);
  color: white;
}
.btn-doc-download:hover {
  background: #00A67C;
}

/* BOUTON PROFIL */
.btn-profil {
  background: var(--accent);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
}
.btn-profil:hover {
  background: #00A67C;
  transform: translateY(-2px);
}

/* BOUTON SUBMIT PASSWORD */
.btn-submit-password {
  width: 100%;
  background: var(--primary);
  color: white;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s;
  font-family: 'DM Sans', sans-serif;
}
.btn-submit-password:hover {
  background: var(--accent);
}

/* BOUTON PROFIL SUR CARTE APPRENANT */
.btn-profil-card {
  width: 100%;
  background: var(--primary);
  color: white;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  margin-top: 1rem;
}
.btn-profil-card:hover {
  background: var(--accent);
}

/* AVATAR PHOTO */
.avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ONGLET CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
}
.contact-card,
.contact-form-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.contact-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1.5rem;
}
.contact-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.contact-item i {
  font-size: 1.5rem;
  color: var(--accent);
  width: 30px;
  flex-shrink: 0;
}
.contact-item strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--primary);
}
.contact-item p {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}
.contact-item a {
  color: var(--accent);
  text-decoration: none;
}
.contact-item a:hover {
  text-decoration: underline;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.btn-contact-submit {
  background: var(--primary);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s;
  font-family: 'DM Sans', sans-serif;
}
.btn-contact-submit:hover {
  background: var(--accent);
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ONGLET DOCUMENTS - GRILLE COMPLÈTE */
.documents-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.filter-box {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.filter-box label {
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.filter-box select {
  padding: 0.6rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  background: white;
  min-width: 200px;
}
.filter-box select:focus {
  outline: none;
  border-color: var(--accent);
}
.documents-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: start;
}
.document-card-full {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
}
.document-card-full:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  border-color: var(--accent);
}
.document-preview-large {
  height: 180px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.document-preview-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.document-icon-large {
  font-size: 4rem;
  color: var(--muted);
}
.document-icon-large .fa-file-pdf { color: #E53935; }
.document-icon-large .fa-file-word { color: #2196F3; }
.document-icon-large .fa-file-excel { color: #4CAF50; }
.document-icon-large .fa-file-powerpoint { color: #FF9800; }
.document-icon-large .fa-image { color: #9C27B0; }
.document-icon-large .fa-video { color: #F44336; }
.document-icon-large .fa-link { color: #00BCD4; }
.categorie-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: white;
}
.categorie-word { background: #2196F3; }
.categorie-excel { background: #4CAF50; }
.categorie-pdf { background: #E53935; }
.categorie-powerpoint { background: #FF9800; }
.categorie-photo { background: #9C27B0; }
.categorie-video { background: #F44336; }
.categorie-lien { background: #00BCD4; }
.categorie-autre { background: #607D8B; }
.document-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.document-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  color: var(--primary);
  margin: 0 0 0.75rem;
  line-height: 1.3;
}
.document-description {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
}
.document-meta-full {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.document-meta-full span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.document-meta-full i {
  opacity: 0.7;
}
.document-actions {
  display: flex;
  gap: 0.5rem;
}
.btn-doc-action {
  flex: 1;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--primary);
  color: white;
}
.btn-doc-action:hover {
  background: var(--accent);
}
.btn-download {
  background: var(--accent);
}
.btn-download:hover {
  background: #00A67C;
}
@media (max-width: 768px) {
  .documents-header {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-box {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-box select {
    width: 100%;
  }
}

/* FOOTER ESPACE COURS */
.footer {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  margin-top: 4rem;
  padding: 3rem 0 0;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
}
.footer-section h4 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: white;
}
.footer-section p {
  margin-bottom: 0.5rem;
  opacity: 0.9;
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-section a {
  color: white;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.3s;
}
.footer-section a:hover {
  opacity: 1;
  text-decoration: underline;
}
.footer-bottom {
  background: rgba(0,0,0,0.2);
  padding: 1.5rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-bottom p {
  margin: 0;
  opacity: 0.8;
}

/* ANIMATIONS TUILES - GAUCHE/DROITE ALTERNÉ */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Application aux cartes - alternance gauche/droite */
.apps-grid .app-card:nth-child(odd),
.formations-grid .formation-card:nth-child(odd) {
  animation: slideInLeft 0.6s ease-out forwards;
  opacity: 0;
}

.apps-grid .app-card:nth-child(even),
.formations-grid .formation-card:nth-child(even) {
  animation: slideInRight 0.6s ease-out forwards;
  opacity: 0;
}

/* Délais progressifs pour effet cascade */
.apps-grid .app-card:nth-child(1),
.formations-grid .formation-card:nth-child(1) {
  animation-delay: 0.1s;
}

.apps-grid .app-card:nth-child(2),
.formations-grid .formation-card:nth-child(2) {
  animation-delay: 0.2s;
}

.apps-grid .app-card:nth-child(3),
.formations-grid .formation-card:nth-child(3) {
  animation-delay: 0.3s;
}

.apps-grid .app-card:nth-child(4),
.formations-grid .formation-card:nth-child(4) {
  animation-delay: 0.4s;
}

.apps-grid .app-card:nth-child(5),
.formations-grid .formation-card:nth-child(5) {
  animation-delay: 0.5s;
}

.apps-grid .app-card:nth-child(6),
.formations-grid .formation-card:nth-child(6) {
  animation-delay: 0.6s;
}

/* Animation au scroll (optionnel) */
.animate-on-scroll {
  opacity: 0;
}

.animate-on-scroll.visible {
  animation: slideInLeft 0.6s ease-out forwards;
}

/* ============================================
   ANIMATIONS TUILES - GAUCHE/DROITE
   ============================================ */

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Appliquer les animations aux tuiles */
.app-card:nth-child(odd) {
  animation: slideInLeft 0.8s ease-out forwards;
  opacity: 0;
}

.app-card:nth-child(even) {
  animation: slideInRight 0.8s ease-out forwards;
  opacity: 0;
}

/* Délais progressifs pour effet cascade */
.app-card:nth-child(1) { animation-delay: 0.1s; }
.app-card:nth-child(2) { animation-delay: 0.2s; }
.app-card:nth-child(3) { animation-delay: 0.3s; }
.app-card:nth-child(4) { animation-delay: 0.4s; }
.app-card:nth-child(5) { animation-delay: 0.5s; }
.app-card:nth-child(6) { animation-delay: 0.6s; }
.app-card:nth-child(7) { animation-delay: 0.7s; }
.app-card:nth-child(8) { animation-delay: 0.8s; }

/* Animation au hover (bonus) */
.app-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* FOOTER PARTENAIRES SLIDESHOW */
.footer-partners {
  text-align: center;
}

.footer-partners h4 {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.partners-slideshow {
  height: 160px;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.partner-slide {
  display: none;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.partner-slide:first-child {
  display: flex;
}

.partner-slide.active {
  opacity: 1;
}

.partner-logo {
  max-height: 120px;
  max-width: 240px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.9;
  transition: all 0.3s;
}

.partner-slide a:hover .partner-logo {
  opacity: 1;
  transform: scale(1.05);
}
