/* ====== E5 Portfolio — Styles Article Style Nolann Ancelin ====== */

/* Variables de couleur */
:root {
  --primary-color: #2563eb;
  --primary-light: #60a5fa;
  --primary-bg: #dbeafe;
  --dark-bg: #ffffff;
  --light-text: #000000;
  --text-gray: #475569;
  --border-color: #e2e8f0;
  --bg-light: #f8fafc;
}

/* Reset et styles globaux */
body.page-template-page-projet-python-e5 {
  background: var(--bg-light);
  font-family: 'Inter', sans-serif;
  color: var(--text-gray);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.page-template-page-projet-python-e5 main.e5-portfolio-wrapper {
  max-width: 900px;
  width: 100%;
  margin: 2rem auto;
  padding: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

/* ==================== HEADER DU PROJET ==================== */
body.page-template-page-projet-python-e5 .project-header {
  text-align: center;
  padding: 0;
  background: linear-gradient(to right, #2563eb, #1e40af);
  border-radius: 0;
  margin-bottom: 0;
  box-shadow: none;
  border: none;
  position: relative;
  overflow: hidden;
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

body.page-template-page-projet-python-e5 .project-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><defs><linearGradient id="g1" x1="0%25" y1="0%25" x2="100%25" y2="100%25"><stop offset="0%25" style="stop-color:rgb(37,99,235);stop-opacity:0.1"/><stop offset="100%25" style="stop-color:rgb(30,64,175);stop-opacity:0.3"/></linearGradient></defs><rect width="1200" height="400" fill="url(%23g1)"/></svg>') center/cover;
  z-index: 1;
}

body.page-template-page-projet-python-e5 .project-header .header-content {
  position: relative;
  z-index: 2;
  padding: 3rem 2rem;
  color: white;
}

body.page-template-page-projet-python-e5 .project-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.5rem 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  line-height: 1.2;
}

body.page-template-page-projet-python-e5 .project-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-weight: 400;
}

/* ==================== PRÉSENTATION DU PROJET ==================== */
body.page-template-page-projet-python-e5 .project-presentation {
  margin-bottom: 0;
  background: transparent;
  padding: 2rem;
  border-radius: 0;
  border-bottom: 1px solid var(--border-color);
}

body.page-template-page-projet-python-e5 .presentation-container {
  display: block;
}

body.page-template-page-projet-python-e5 .presentation-text h2 {
  font-size: 1.3rem;
  color: var(--light-text);
  margin-top: 0;
  margin-bottom: 1.2rem;
  font-weight: 600;
  display: none;
}

body.page-template-page-projet-python-e5 .presentation-text p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-gray);
  margin-bottom: 1rem;
}

body.page-template-page-projet-python-e5 .presentation-highlights {
  display: none;
}

/* ==================== MODULES DU PROJET ==================== */
body.page-template-page-projet-python-e5 .project-modules {
  margin-bottom: 0;
  padding: 2rem;
  border-bottom: 1px solid var(--border-color);
}

body.page-template-page-projet-python-e5 .project-modules h2 {
  font-size: 1.3rem;
  text-align: left;
  color: var(--light-text);
  margin-bottom: 1.5rem;
  margin-top: 0;
  font-weight: 600;
  display: none;
}

body.page-template-page-projet-python-e5 .modules-grid {
  display: block;
}

body.page-template-page-projet-python-e5 .module-card {
  background: transparent;
  padding: 0 0 1.5rem 0;
  border-radius: 0;
  box-shadow: none;
  transition: none;
  border: none;
  display: block;
  margin-bottom: 1.5rem;
}

body.page-template-page-projet-python-e5 .module-card:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

body.page-template-page-projet-python-e5 .module-card:hover {
  transform: none;
  box-shadow: none;
}

body.page-template-page-projet-python-e5 .module-icon {
  font-size: 0;
  margin-bottom: 0;
  display: none;
}

body.page-template-page-projet-python-e5 .module-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--light-text);
  margin: 0 0 0.5rem 0;
}

body.page-template-page-projet-python-e5 .module-description {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 0;
  display: none;
}

body.page-template-page-projet-python-e5 .module-features {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}

body.page-template-page-projet-python-e5 .module-features li {
  padding: 0.3rem 0 0.3rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-gray);
  position: relative;
}

body.page-template-page-projet-python-e5 .module-features li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--text-gray);
  font-weight: 600;
}

body.page-template-page-projet-python-e5 .module-tags {
  display: none;
}

/* ==================== COMPÉTENCES E5 ==================== */
body.page-template-page-projet-python-e5 .e5-competencies {
  margin-bottom: 0;
  padding: 2rem;
  background: transparent;
  border-radius: 0;
  border-bottom: 1px solid var(--border-color);
}

body.page-template-page-projet-python-e5 .e5-competencies h2 {
  font-size: 1.3rem;
  text-align: left;
  color: var(--light-text);
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

body.page-template-page-projet-python-e5 .section-subtitle {
  text-align: left;
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
  display: none;
}

body.page-template-page-projet-python-e5 .competencies-grid {
  display: block;
}

body.page-template-page-projet-python-e5 .competency-card {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  transition: none;
  display: block;
  border: none;
  padding: 0 0 1.2rem 0;
  margin-bottom: 1.2rem;
}

body.page-template-page-projet-python-e5 .competency-card:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

body.page-template-page-projet-python-e5 .competency-card:hover {
  transform: none;
  box-shadow: none;
}

body.page-template-page-projet-python-e5 .competency-header {
  padding: 0;
  background: transparent;
  color: var(--light-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: none;
}

body.page-template-page-projet-python-e5 .competency-header h3 {
  margin: 0 0 0.4rem 0;
  font-size: 1rem;
  font-weight: 600;
  flex: 1;
  color: var(--light-text);
}

body.page-template-page-projet-python-e5 .competency-level {
  display: none;
  padding: 0;
  background: transparent;
  color: transparent;
  border-radius: 0;
  font-size: 0;
  font-weight: 400;
  white-space: nowrap;
  text-transform: none;
}

body.page-template-page-projet-python-e5 .competency-content {
  padding: 0;
  flex-grow: 1;
  display: block;
}

body.page-template-page-projet-python-e5 .competency-description {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin: 0 0 0.6rem 0;
}

body.page-template-page-projet-python-e5 .competency-evidence {
  list-style: none;
  padding: 0;
  margin: 0;
}

body.page-template-page-projet-python-e5 .competency-evidence li {
  padding: 0.2rem 0 0.2rem 1.5rem;
  font-size: 0.85rem;
  color: var(--text-gray);
  position: relative;
}

body.page-template-page-projet-python-e5 .competency-evidence li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--text-gray);
}

/* ==================== TECHNOLOGIES SECTION (Badges) ==================== */
body.page-template-page-projet-python-e5 .technologies-section {
  margin-bottom: 2rem;
  padding: 2rem;
  background: var(--dark-bg);
  border-radius: 0;
  border-bottom: 1px solid var(--border-color);
}

body.page-template-page-projet-python-e5 .technologies-section h2 {
  font-size: 1rem;
  text-align: left;
  color: var(--light-text);
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 700;
}

body.page-template-page-projet-python-e5 .technologies-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

body.page-template-page-projet-python-e5 .tech-group {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  transition: none;
  border: none;
}

body.page-template-page-projet-python-e5 .tech-group:hover {
  transform: none;
  box-shadow: none;
}

body.page-template-page-projet-python-e5 .tech-group h4 {
  display: none;
  margin: 0;
  font-size: 0;
  color: transparent;
  font-weight: 700;
}

body.page-template-page-projet-python-e5 .tech-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

body.page-template-page-projet-python-e5 .tech-list li {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--primary-color);
  position: relative;
  background: var(--primary-bg);
  border-radius: 20px;
  border: none;
  font-weight: 500;
}

body.page-template-page-projet-python-e5 .tech-list li::before {
  display: none;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.page-template-page-projet-python-e5 .module-card,
body.page-template-page-projet-python-e5 .competency-card,
body.page-template-page-projet-python-e5 .tech-group {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  body.page-template-page-projet-python-e5 .e5-portfolio-wrapper {
    margin: 1rem auto;
    padding: 0;
  }

  body.page-template-page-projet-python-e5 .project-header {
    height: 300px;
  }

  body.page-template-page-projet-python-e5 .project-header .header-content {
    padding: 2rem 1rem;
  }

  body.page-template-page-projet-python-e5 .project-title {
    font-size: 2rem;
  }

  body.page-template-page-projet-python-e5 .project-presentation,
  body.page-template-page-projet-python-e5 .project-modules,
  body.page-template-page-projet-python-e5 .e5-competencies,
  body.page-template-page-projet-python-e5 .technologies-section {
    padding: 1.5rem;
  }

  body.page-template-page-projet-python-e5 .technologies-grid {
    gap: 0.6rem;
  }

  body.page-template-page-projet-python-e5 .tech-list li {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  body.page-template-page-projet-python-e5 .e5-portfolio-wrapper {
    margin: 0.5rem auto;
    border-radius: 4px;
  }

  body.page-template-page-projet-python-e5 .project-header {
    height: 250px;
  }

  body.page-template-page-projet-python-e5 .project-title {
    font-size: 1.5rem;
  }

  body.page-template-page-projet-python-e5 .project-subtitle {
    font-size: 0.9rem;
  }

  body.page-template-page-projet-python-e5 .e5-competencies h2,
  body.page-template-page-projet-python-e5 .project-modules h2,
  body.page-template-page-projet-python-e5 .technologies-section h2 {
    font-size: 1.1rem;
  }

  body.page-template-page-projet-python-e5 .project-presentation,
  body.page-template-page-projet-python-e5 .project-modules,
  body.page-template-page-projet-python-e5 .e5-competencies,
  body.page-template-page-projet-python-e5 .technologies-section {
    padding: 1rem;
  }

  body.page-template-page-projet-python-e5 .tech-list li {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }

  /* Sidebar responsif - empile sous le contenu */
  body.page-template-page-projet-python-e5>div[style*="display: flex"] {
    flex-direction: column;
  }

  body.page-template-page-projet-python-e5 aside[style*="width: 250px"] {
    width: 100% !important;
  }
}

/* ==================== EFFET HOVER ZOOM SUR LES CARDS ==================== */
#presentation,
#technologies,
#competencies {
  transition: all 0.3s ease !important;
  cursor: pointer;
}

#presentation:hover,
#technologies:hover,
#competencies:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.3) !important;
  border-color: #2563eb !important;
}

/* Effet hover sur le bouton Drive */
a[href*="drive.google.com"]:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25) !important;
}

/* ==================== CLASSES CSS CLEAN - Sans styles inline ==================== */

/* Navigation */
.e5-scroll-nav {
  padding: 20px 0;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.e5-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1rem;
}

.e5-nav-links {
  display: flex;
  gap: 2rem;
  font-size: 0.9rem;
}

.e5-nav-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.e5-nav-link:hover {
  color: #1e40af;
}

/* Container Layout */
.e5-container-wrapper {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: flex;
  gap: 2rem;
}

.e5-sidebar {
  width: 250px;
  flex-shrink: 0;
}

/* Main Content Wrapper */
.e5-portfolio-main {
  flex: 1;
  min-width: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  position: relative;
}

.e5-waves-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.15;
}

.e5-content-wrapper {
  position: relative;
  z-index: 1;
}

/* Header Styling */
.e5-project-header {
  display: flex;
  flex-direction: column;
}

.e5-header-image-wrapper {
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: linear-gradient(to right, #2563eb, #1e40af);
}

.e5-header-image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.e5-header-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto;
}

.e5-header-content {
  padding: 3rem 2rem;
  text-align: center;
}

.e5-project-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #000;
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

.e5-project-subtitle {
  font-size: 0.9rem;
  color: #999;
  margin: 0;
  font-weight: 400;
}

/* Cards Section */
.e5-cards-section {
  padding: 2rem;
  background: #f8fafc;
}

.e5-card {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease !important;
  cursor: pointer;
}

.e5-card:last-child {
  margin-bottom: 0;
}

.e5-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2563eb;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.e5-card-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #475569;
  margin: 0;
}

/* Tech Badges */
.e5-tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.e5-badge {
  background: #dbeafe;
  color: #2563eb;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-block;
}

/* Competencies Grid */
.e5-competencies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.e5-competency-item {
  background: transparent;
  padding: 0;
}

.e5-competency-title {
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  margin: 0 0 0.8rem 0;
}

.e5-competency-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.8;
}

.e5-competency-list li {
  margin-bottom: 0.4rem;
}

.e5-competency-list li:last-child {
  margin-bottom: 0;
}

/* Drive Button Section */
.e5-drive-section {
  padding: 2rem;
  text-align: center;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.e5-drive-button {
  display: inline-block;
  background: white;
  color: #2563eb;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  font-size: 1rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .e5-container-wrapper {
    flex-direction: column;
  }

  .e5-sidebar {
    width: 100%;
  }

  .e5-project-title {
    font-size: 2rem;
  }

  .e5-header-image-wrapper {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .e5-nav-links {
    gap: 1rem;
    font-size: 0.8rem;
  }

  .e5-container-wrapper {
    padding: 0 0.5rem;
  }

  .e5-cards-section {
    padding: 1rem;
  }

  .e5-card {
    padding: 1.5rem;
  }

  .e5-project-title {
    font-size: 1.5rem;
  }

  .e5-drive-button {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
}