/* C:\xampp\htdocs\jaxe-com\public\css\style.css */

/* ===== VARIABLES ET RESET ===== */
:root {
  --primary-color: #ff6b35;
  --secondary-color: #f7931e;
  --accent-color: #ffa500;
  --dark-bg: #0a1628;
  --dark-blue: #1a2b42;
  --darker-blue: #0f1b2e;
  --text-light: #ffffff;
  --text-gray: #b8c5d1;
  --text-dark: #2c3e50;
  --success-color: #27ae60;
  --error-color: #e74c3c;
  --border-radius: 12px;
  --border-radius-small: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.4);
  --transition: all 0.3s ease;
  --gradient-primary: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  --gradient-bg: linear-gradient(135deg, #0a1628 0%, #1a2b42 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background: var(--gradient-bg);
  color: var(--text-light);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== TYPOGRAPHIE ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 2.5rem;
  color: var(--text-light);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-gray);
}

.highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo h2 {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2rem;
  margin: 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background: var(--gradient-primary);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 100%;
}

/* ===== BOUTONS ===== */
.btn-primary,
.btn-secondary,
.btn-cta {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-light);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--gradient-primary);
  transform: translateY(-2px);
}

.btn-cta {
  background: var(--gradient-primary);
  color: var(--text-light);
  font-size: 1.2rem;
  padding: 1.2rem 3rem;
  box-shadow: var(--shadow);
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 50px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(255, 107, 53, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(247, 147, 30, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: slideInLeft 1s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 2rem;
  line-height: 1.1;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  color: var(--text-gray);
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-visual {
  animation: slideInRight 1s ease-out;
}

.hero-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  position: relative;
}

.hero-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.hero-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.1);
}

.hero-card:nth-child(3) {
  grid-column: span 2;
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-card h3 {
  color: var(--text-light);
  font-size: 1.2rem;
  margin: 0;
}

/* ===== SECTIONS ===== */
.services-section,
.portfolio-preview,
.cta-section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: 3rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
}

.service-card:hover::before {
  opacity: 0.1;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}

.service-icon {
  font-size: 4rem;
  margin-bottom: 2rem;
}

.service-card h3 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.service-card p {
  margin-bottom: 2rem;
  line-height: 1.7;
}

.service-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.service-link:hover {
  color: var(--secondary-color);
}

/* ===== PORTFOLIO ===== */
.portfolio-container {
  padding: 2rem;
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.8rem 1.5rem;
  background: transparent;
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius-small);
  color: var(--primary-color);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--gradient-primary);
  color: var(--text-light);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
}

.portfolio-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.portfolio-image img,
.portfolio-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.8) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover .portfolio-image img,
.portfolio-item:hover .portfolio-image video {
  transform: scale(1.05);
}

.portfolio-overlay h3 {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.portfolio-overlay .client {
  color: var(--text-gray);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.btn-view {
  align-self: flex-start;
  padding: 0.5rem 1rem;
  background: var(--gradient-primary);
  color: var(--text-light);
  text-decoration: none;
  border-radius: var(--border-radius-small);
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn-view:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* ===== ARTICLES/BLOG ===== */
.articles-container {
  padding: 2rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.article-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.article-image {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.article-card:hover .article-image img {
  transform: scale(1.05);
}

.article-content {
  padding: 2rem;
}

.article-card h2 {
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.article-excerpt {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-gray);
}

/* ===== CONTACT FORM ===== */
.contact-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.contact-header {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-header h1 {
  margin-bottom: 1rem;
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: 3rem;
  margin-bottom: 3rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-light);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  border-radius: var(--border-radius-small);
  transition: var(--transition);
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-gray);
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.info-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: 2rem;
}

.info-item h3 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--text-gray);
  text-decoration: none;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--primary-color);
}

/* ===== ALERTS ===== */
.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius-small);
  margin-bottom: 2rem;
  border-left: 4px solid;
}

.alert-success {
  background: rgba(39, 174, 96, 0.1);
  border-color: var(--success-color);
  color: var(--success-color);
}

.alert-error {
  background: rgba(231, 76, 60, 0.1);
  border-color: var(--error-color);
  color: var(--error-color);
}

/* ===== TABLES ===== */
.contacts-table {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.contacts-table th,
.contacts-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contacts-table th {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  font-weight: 600;
}

.contacts-table td {
  color: var(--text-gray);
}

.status-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-nouveau {
  background: rgba(52, 152, 219, 0.2);
  color: #3498db;
}

.status-en_cours {
  background: rgba(243, 156, 18, 0.2);
  color: #f39c12;
}

.status-traite {
  background: rgba(39, 174, 96, 0.2);
  color: var(--success-color);
}

.status-archive {
  background: rgba(149, 165, 166, 0.2);
  color: #95a5a6;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(
    135deg,
    rgba(255, 107, 53, 0.1) 0%,
    rgba(247, 147, 30, 0.1) 100%
  );
  text-align: center;
}

.cta-content h2 {
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--darker-blue);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
  color: var(--text-gray);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-gray);
}

/* ===== ANIMATIONS ===== */
@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);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
    margin-top: 40px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .nav-menu {
    display: none;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
  }

  .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 3px 0;
    transition: 0.3s;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  .hero-cards {
    grid-template-columns: 1fr;
  }

  .hero-card:nth-child(3) {
    grid-column: span 1;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  h2 {
    font-size: 2rem;
  }

  .container,
  .nav-container {
    padding: 0 1rem;
  }

  .contact-form {
    padding: 2rem;
  }
}

/* ===== UTILITIES ===== */
.text-center {
  text-align: center;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mt-2 {
  margin-top: 2rem;
}

.hidden {
  display: none;
  /* aria-hidden: true; */
}

.visible {
  display: block;
}

/* ===== LOADING STATES ===== */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ===== AJAX CONTENT ===== */
#main-content {
  background: var(--gradient-bg);
  min-height: 100vh;
  padding: 100px 0 50px;
}

#main-content.active {
  display: block !important;
}

/* ===== ADMIN STYLES ===== */
.admin-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.user-menu {
  position: relative;
}

.user-menu span {
  color: var(--text-light);
  margin-right: 1rem;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Styles existants (à conserver si présents) */

/* Styles pour les vidéos dans l'en-tête */
/* Styles pour la vidéo dans l'en-tête */
.hero-video {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 800px;
  margin-top: 2rem;
}

.hero-video iframe {
  width: 100%;
  height: 450px;
  border-radius: 10px;
  display: block;
}

.hero-video-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  opacity: 1;
  max-height: 500px;
  overflow-y: auto;
  transition: all 0.3s ease;
}

.video-thumbnail {
  position: relative;
  cursor: pointer;
  border-radius: var(--border-radius-small);
  overflow: hidden;
  transition: var(--transition);
  aspect-ratio: 16/9;
}

.video-thumbnail:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.video-thumbnail:hover img {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
}

.video-thumbnail:hover .play-overlay {
  background: rgba(255, 107, 53, 0.9);
  transform: translate(-50%, -50%) scale(1.1);
}

.hero-video-controls {
  text-align: center;
  margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  .hero-video {
    max-width: 100%;
  }

  .hero-video iframe {
    height: 250px;
  }

  .hero-video-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-video-gallery {
    grid-template-columns: 1fr;
  }
}

.hero-video-gallery.hidden {
  opacity: 0;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
}

/* Styles existants (à conserver) */
.hero-videos {
  display: flex;
  gap: 20px;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.video-thumb {
  position: relative;
  cursor: pointer;
  max-width: 300px;
  flex: 1 1 30%;
}
.video-thumb img {
  width: 100%;
  border-radius: 10px;
  display: block;
}
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 40px;
  padding: 10px 20px;
  border-radius: 50%;
}
#video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
#video-modal iframe {
  width: 80%;
  height: 80%;
  border: none;
  border-radius: 10px;
}

/* Styles pour la galerie de vidéos */
.all-videos {
  padding: 2rem 0;
  background: var(--dark-bg);
  opacity: 1;
  transition: opacity 0.3s ease;
}
.all-videos.hidden {
  opacity: 0;
  pointer-events: none;
  height: 0;
  overflow: hidden;
}
.video-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.video-item {
  flex: 1 1 300px;
  max-width: 300px;
}
.video-item iframe {
  width: 100%;
  height: 200px;
  border-radius: var(--border-radius);
  border: none;
}

/* Ajuster les sections principales pour le masquage */
.services-section,
#portfolio-preview,
#cta-section {
  opacity: 1;
  transition: opacity 0.3s ease, height 0.3s ease;
}
.services-section.hidden,
#portfolio-preview.hidden,
#cta-section.hidden {
  opacity: 0;
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

/* Remplacez les styles existants pour les vidéos par ceux-ci */

/* Section pour toutes les vidéos */
#all-videos {
  padding: 2rem 0;
  background: var(--dark-bg);
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(0);
  opacity: 1;
}

/* État caché pour la galerie vidéo */
#all-videos.hidden {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

/* Galerie de vidéos */
.video-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.video-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.video-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.video-item iframe {
  width: 100%;
  height: 250px;
  border-radius: var(--border-radius);
  border: none;
  display: block;
}

/* Bouton de retour au contenu */
#back-to-content {
  display: none;
  margin: 2rem auto 0;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  background: var(--gradient-primary);
  color: var(--text-light);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  text-align: center;
}

#back-to-content:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Bouton pour voir toutes les vidéos */
#show-all-videos {
  margin: 2rem auto;
  display: block;
}

/* Responsive pour les vidéos */
@media (max-width: 768px) {
  .video-gallery {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .video-item iframe {
    height: 200px;
  }

  #all-videos {
    padding: 1rem 0;
  }
}

/* Styles pour la section TikTok dans portfolio-preview */
/* Styles corrigés pour la galerie TikTok */

/* Section TikTok dans portfolio-preview */
#tiktok-video-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
  transition: all 0.3s ease;
}

/* Éléments vidéo */
.video-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  opacity: 1;
  transform: translateY(0);
}

/* État caché pour les vidéos */
.video-item.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  /* Ne pas utiliser display: none pour permettre les animations */
}

/* Animation au hover */
.video-item:not(.hidden):hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* Iframes TikTok */
.video-item iframe {
  width: 100%;
  height: 450px; /* Hauteur adaptée pour TikTok */
  border-radius: var(--border-radius);
  border: none;
  display: block;
  transition: all 0.3s ease;
}

/* Bouton toggle */
#toggle-tiktok-gallery {
  margin: 2rem auto;
  display: block;
  transition: all 0.3s ease;
}

/* États du bouton */
#toggle-tiktok-gallery.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-light);
  transform: translateY(-2px);
}

#toggle-tiktok-gallery.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

/* Animation de chargement pour lazy loading */
.video-item iframe[src=""] {
  background: rgba(255, 255, 255, 0.05);
  position: relative;
}

.video-item iframe[src=""]:before {
  content: "Chargement...";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-gray);
  font-size: 14px;
}

/* Responsive pour TikTok */
@media (max-width: 1024px) {
  #tiktok-video-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .video-item iframe {
    height: 400px;
  }
}

@media (max-width: 768px) {
  #tiktok-video-gallery {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .video-item iframe {
    height: 350px;
  }

  #toggle-tiktok-gallery {
    margin: 1.5rem auto;
    font-size: 0.9rem;
    padding: 0.8rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .video-item iframe {
    height: 300px;
  }

  #tiktok-video-gallery {
    gap: 1rem;
  }
}

/* Vidéo TikTok principale */
.tiktok-main-video {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.main-tiktok-container {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.main-tiktok-container:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.main-tiktok-container iframe {
  width: 350px;
  height: 600px;
  border-radius: var(--border-radius);
  border: none;
  display: block;
}

.main-video-description {
  text-align: center;
  max-width: 500px;
}

.main-video-description h3 {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.main-video-description p {
  color: var(--text-gray);
  margin-bottom: 1.5rem;
}

/* Galerie de miniatures TikTok */
.tiktok-thumbnails-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
  transition: all 0.5s ease;
  opacity: 1;
  max-height: 600px;
  overflow: visible;
}

.tiktok-thumbnails-gallery.hidden {
  opacity: 0;
  max-height: 0;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
}

.tiktok-thumbnail {
  position: relative;
  cursor: pointer;
  border-radius: var(--border-radius-small);
  overflow: hidden;
  transition: all 0.3s ease;
  aspect-ratio: 9/16; /* Format portrait TikTok */
  background: var(--dark-blue);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.tiktok-thumbnail:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow);
  border-color: var(--primary-color);
}

.tiktok-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.tiktok-thumbnail:hover img {
  transform: scale(1.05);
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
}

.tiktok-thumbnail:hover .play-overlay {
  background: var(--gradient-primary);
  transform: translate(-50%, -50%) scale(1.2);
}

.thumbnail-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  padding: 1rem 0.5rem 0.5rem;
  text-align: center;
}

.thumbnail-info span {
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Animation de sélection */
.tiktok-thumbnail.active {
  border-color: var(--primary-color);
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
}

/* Responsive pour TikTok */
@media (max-width: 1024px) {
  .tiktok-thumbnails-gallery {
    grid-template-columns: repeat(4, 1fr);
  }

  .main-tiktok-container iframe {
    width: 320px;
    height: 550px;
  }
}

@media (max-width: 768px) {
  .tiktok-thumbnails-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .main-tiktok-container iframe {
    width: 280px;
    height: 480px;
  }

  .tiktok-thumbnail {
    aspect-ratio: 9/14;
  }
}

@media (max-width: 480px) {
  .tiktok-thumbnails-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-tiktok-container iframe {
    width: 250px;
    height: 400px;
  }

  .main-video-description {
    padding: 0 1rem;
  }
}

.form-group select option {
  background: var(--darker-blue);
  color: var(--text-light);
  padding: 0.5rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-gray);
}

.checkbox-item input[type="checkbox"] {
  width: auto;
  margin: 0;
  padding: 0;
  accent-color: var(--primary-color);
}

.checkbox-item label {
  margin: 0;
  color: var(--text-light);
  font-weight: normal;
  cursor: pointer;
}

.conditional-fields h4 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 107, 53, 0.3);
  padding-bottom: 0.5rem;
}

.modal-content .forfait-price,
.modal-content div[style*="background"] {
  background: rgba(255, 107, 53, 0.15) !important;
  border: 1px solid rgba(255, 107, 53, 0.3);
  color: var(--text-light);
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}
/* Nouvelles couleurs pour les sections Services et Forfaits */

/* Section Services avec fond sombre pour contraste */
.services-section {
  padding: 100px 0;
  background: var(--gradient-bg); /* Garde le fond sombre original */
  position: relative;
}

/* Amélioration des service cards */
.service-card-enhanced {
  background: rgba(26, 43, 66, 0.8); /* Fond bleu sombre semi-transparent */
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 107, 53, 0.3); /* Bordure orange subtile */
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  color: var(--text-light); /* Texte blanc */
}

.service-card-enhanced:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
  background: rgba(26, 43, 66, 0.9);
  border-color: var(--primary-color);
}

.service-card-enhanced h3 {
  color: var(--text-light); /* Titre blanc */
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.service-card-enhanced p {
  color: var(--text-gray); /* Texte gris clair pour la description */
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-icon-large {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--primary-color); /* Icône orange */
}

/* Section Forfaits avec nouveau design */
.forfaits-section {
  padding: 5rem 0;
  background: linear-gradient(
    135deg,
    var(--dark-bg) 0%,
    var(--darker-blue) 100%
  );
}

.forfaits-section .section-header h2 {
  color: var(--text-light);
}

.forfaits-section .section-header p {
  color: var(--text-gray);
}

/* Cartes forfaits redesignées */
.forfait-card {
  background: rgba(26, 43, 66, 0.9); /* Fond bleu sombre */
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  color: var(--text-light);
}

.forfait-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(255, 107, 53, 0.3);
  border-color: var(--primary-color);
}

.forfait-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.forfait-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-light); /* Titre blanc */
  margin-bottom: 0.5rem;
}

.forfait-subtitle {
  color: var(--text-gray); /* Sous-titre gris clair */
  font-size: 1rem;
}

/* Prix avec dégradé orange */
.forfait-price {
  background: var(--gradient-primary);
  color: var(--text-light);
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  margin: 1.5rem 0;
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.forfait-price .price {
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
}

.forfait-price small {
  color: #252525;
}

/* Liste des fonctionnalités */
.forfait-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.forfait-features li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-gray); /* Texte gris clair */
}

.forfait-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-color); /* Coche verte */
  font-weight: bold;
  font-size: 1.1rem;
}

/* Boutons des forfaits */
.btn-forfait {
  flex: 1;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
}

.btn-primary-forfait {
  background: var(--gradient-primary);
  color: var(--text-light);
  box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary-forfait:hover {
  background: linear-gradient(135deg, #e55a2b 0%, #e6841a 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

.btn-secondary-forfait {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary-forfait:hover {
  background: var(--gradient-primary);
  color: var(--text-light);
  transform: translateY(-2px);
}

/* Actions des services */
.service-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.forfait-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .service-actions,
  .forfait-actions {
    flex-direction: column;
  }

  .btn-forfait {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* Animation au survol pour les sections */
.service-card-enhanced,
.forfait-card {
  position: relative;
  overflow: hidden;
}

.service-card-enhanced::before,
.forfait-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 107, 53, 0.1),
    transparent
  );
  transition: left 0.5s;
}

.service-card-enhanced:hover::before,
.forfait-card:hover::before {
  left: 100%;
}
