/**
* Template Name: Portfolio - v1.0.0
* Template URL: https://bootstrapmade.com/presento-bootstrap-corporate-template/
* Author: Badreddine GUASMI
* License: https://bootstrapmade.com/license/
*/

/* =============================================
   VARIABLES GLOBALES ET CONFIGURATION DE BASE
   ============================================= */

/* Variables de polices */
:root {
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Raleway", sans-serif;
  --nav-font: "Poppins", sans-serif;
}

/* Variables de couleurs globales */
:root { 
  --background-color: #ffffff;
  --default-color: #444444;
  --heading-color: #111111;
  --accent-color: #e03a3c;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
  --nav-color: #212529;
  --nav-hover-color: #e03a3c;
  --nav-mobile-background-color: #ffffff;
}

/* Présélections de couleurs */
.light-background {
  --background-color: #f9f9f9;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #1b1b1b;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #353535;
  --contrast-color: #ffffff;
}

/* Configuration de base */
:root {
  scroll-behavior: smooth;
}

/* =============================================
   STYLES GÉNÉRAUX ET RÈGLES DE BASE
   ============================================= */

body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/* Désactiver le délai d'animation AOS sur mobile */
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/* =============================================
   COMPOSANTS RÉUTILISABLES
   ============================================= */

/* Messages du formulaire PHP Email */
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: #059652;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Bouton Play Pulsant */
.pulsating-play-btn {
  width: 94px;
  height: 94px;
  background: radial-gradient(var(--accent-color) 50%, color-mix(in srgb, var(--accent-color), transparent 75%) 52%);
  border-radius: 50%;
  display: block;
  position: relative;
  overflow: hidden;
}

.pulsating-play-btn:before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  animation-delay: 0s;
  animation: pulsate-play-btn 2s;
  animation-direction: forwards;
  animation-iteration-count: infinite;
  animation-timing-function: steps;
  opacity: 1;
  border-radius: 50%;
  border: 5px solid color-mix(in srgb, var(--accent-color), transparent 30%);
  top: -15%;
  left: -15%;
  background: rgba(198, 16, 0, 0);
}

.pulsating-play-btn:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-40%) translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
  z-index: 100;
  transition: all 400ms cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.pulsating-play-btn:hover:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-40%) translateY(-50%);
  width: 0;
  height: 0;
  border: none;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
  z-index: 200;
  animation: none;
  border-radius: 0;
}

.pulsating-play-btn:hover:after {
  border-left: 15px solid var(--accent-color);
  transform: scale(20);
}

@keyframes pulsate-play-btn {
  0% {
    transform: scale(0.6, 0.6);
    opacity: 1;
  }
  100% {
    transform: scale(1, 1);
    opacity: 0;
  }
}

/* Bouton de défilement vers le haut */
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/* =============================================
   SECTIONS GLOBALES
   ============================================= */

section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 100px;
  overflow: clip;
}

.section-bg {
  background-color: transparent;
  padding: 160px 0;
  position: relative;
}

.section-bg:before {
  content: "";
  background-color: var(--background-color);
  position: absolute;
  bottom: 60px;
  top: 60px;
  left: 0;
  right: 0;
  transform: skewY(-3deg);
}

.section-bg .container {
  position: relative;
}

/* Titres de section globaux */
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
  text-transform: uppercase;
}

.section-title h2:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.section-title p {
  margin-bottom: 0;
}

/* =============================================
   HEADER ET NAVIGATION
   ============================================= */

/* Header Global */
.header {
  color: var(--default-color);
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 997;
  transition: all 0.5s ease;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Header transparent en haut de page */
.header.top-transparent {
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

/* Ajuster la couleur du texte pour l'en-tête transparent */
.header.top-transparent .logo h1,
.header.top-transparent .navmenu a {
  color: #000000;
}

.header .logo {
  line-height: 1;
}

.header .logo img {
  max-height: 30px;
  margin-right: 10px;
  border-radius: 50%;
  object-fit: contain;
  width: 30px;
  height: 28px;
  border: 0.5px transparent;
  box-shadow: 0 2px 10px rgba(14, 0, 0, 0.1);
  background-color: #504747ea;
}

.logo-photo-round {
  width: 20px;
  height: 16px;
  object-fit: cover;
  border-radius: 30%;
  border: 0.1px solid #ece6e6;
  box-shadow: 0 2px 8px rgba(30, 38, 30, 0.04);
  margin-right: 36px;
  background-color: #dadae2;
}

.header .logo h1 {
  font-size: 16px;
  margin: 0;
  font-weight: 500;
  color: var(--heading-color);
}

.header .logo span {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-color);
}

.header .btn-getstarted,
.header .btn-getstarted:focus {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-size: 14px;
  padding: 8px 25px;
  margin: 0 0 0 30px;
  border-radius: 4px;
  transition: 0.3s;
}

.header .btn-getstarted:hover,
.header .btn-getstarted:focus:hover {
  color: var(--contrast-color);
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
}

.scrolled .header {
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}

/* =============================================
   NAVIGATION - VERSION DESKTOP
   ============================================= */

@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }
  
  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }
  
  .navmenu li {
    position: relative;
  }
  
  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    padding: 18px 15px;
    font-size: 16px;
    font-family: var(--nav-font);
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }
  
  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }
  
  .navmenu li:last-child a {
    padding-right: 0;
  }
  
  .navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
  }
  
  .mobile-menu-panel .closebtn {
    display: none !important;
  }
  
  /* Ajustements responsive header desktop */
  .header .logo {
    order: 1;
  }
  
  .header .btn-getstarted,
  .header .btn-getstarted:focus {
    order: 2;
    margin: 0 15px 0 0;
    padding: 6px 15px;
  }
  
  .header .navmenu {
    order: 3;
  }
}

/* =============================================
   NAVIGATION - VERSION MOBILE
   ============================================= */

@media (max-width: 1199px) {
  section,
  .section {
    scroll-margin-top: 66px;
  }
  
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    cursor: pointer;
    z-index: 12001;
    position: relative;
    background: transparent;
    border: none;
  }

  /* Overlay flouté, semi-transparent sur toute la page */
  .mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,10,10,0.47);
    opacity: 0;
    pointer-events: none;
    z-index: 12000;
    transition: opacity 0.33s cubic-bezier(.82,.08,.26,.99);
  }
  
  .mobile-nav-active ~ .mobile-menu-overlay,
  .mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
  }

  /* Panneau du menu mobile */
  .mobile-menu-panel {
    position: fixed;
    top: 64px;
    right: 0;
    left: auto;
    width: max-content;
    min-width: 210px;
    padding: 28px 32px 32px 32px;
    background: rgba(25,30,20,0.72);
    border-radius: 0 0 14px 14px;
    box-shadow: -4px 8px 28px rgba(0,0,0,0.24);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: translateX(108%);
    transition: transform 0.43s cubic-bezier(.82,.08,.26,.99), opacity 0.23s;
    z-index: 12002;
    height: auto;
    max-height: none;
  }
  
  .mobile-nav-active .mobile-menu-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  .mobile-menu-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    overflow: visible;
  }
  
  .mobile-menu-panel li {
    margin: 0 0 15px 0;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .mobile-menu-panel a, 
  .mobile-menu-panel a:focus {
    color: #fff;
    font-size: 16px;
    font-family: 'Montserrat', 'Poppins', Arial, sans-serif;
    font-weight: 400;
    text-align: center;
    padding: 12px 30px;
    border-radius: 8px;
    margin: 0;
    width: 100%;
    display: block;
    background: none;
    transition: background 0.16s, color 0.16s;
  }
  
  .mobile-menu-panel a.active,
  .mobile-menu-panel a:hover {
    background: color-mix(in srgb, var(--accent-color, #e03a3c), transparent 90%);
    color: var(--accent-color, #e03a3c);
  }

  /* Bouton croix pour fermer */
  .mobile-menu-panel .closebtn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 36px;
    position: absolute;
    top: 18px;
    right: 18px;
    cursor: pointer;
    z-index: 12;
  }

  /* Désactive scroll sur panneau menu */
  body.mobile-nav-active {
    overflow: hidden;
  }
}

/* =============================================
   SECTION HERO
   ============================================= */

.hero {
  --default-color: #ffffff;
  --background-color: #000000;
  --heading-color: #ffffff;
  width: 100%;
  min-height: 100vh;
  position: relative;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--default-color);
  margin-top: 0;
}

.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero:before {
  content: "";
  background: color-mix(in srgb, var(--background-color), transparent 30%);
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
  padding-top: 100px;
}

/* Ajustement pour le contenu principal */
.main {
  margin-top: 0;
}

/* Ajustement pour les ancres de navigation */
section,
.section {
  scroll-margin-top: 80px;
}

.hero h2 {
  margin: 0;
  font-size: 42px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 40px;
}

.hero p {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin: 30px 0 50px 0;
  font-size: 20px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 100;
}

.hero .btn-get-started {
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 10px 30px;
  border-radius: 4px;
  transition: 0.3s;
  background: var(--accent-color);
  color: var(--contrast-color);
}

.hero .btn-get-started:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.hero .btn-watch-video {
  font-size: 16px;
  transition: 0.5s;
  margin-left: 25px;
  font-weight: 600;
  color: var(--default-color);
}

.hero .btn-watch-video i {
  color: var(--accent-color);
  font-size: 32px;
  transition: 0.3s;
  line-height: 0;
  margin-right: 8px;
}

.hero .btn-watch-video:hover {
  color: var(--accent-color);
}

.hero .btn-watch-video:hover i {
  color: color-mix(in srgb, var(--accent-color), transparent 20%);
}

/* =============================================
   SECTION HERO - VERSION MOBILE
   ============================================= */

@media (max-width: 768px) {
  .hero h2 {
    font-size: 32px;
  }
  
  .hero p {
    font-size: 18px;
  }
}

/* =============================================
   SECTION CLIENTS
   ============================================= */

.clients .swiper-slide img {
  opacity: 0.5;
  transition: 0.3s;
  filter: grayscale(100);
}

.clients .swiper-slide img:hover {
  filter: none;
  opacity: 1;
}

.clients .swiper-wrapper {
  height: auto;
}

.clients .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.clients .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  opacity: 1;
  background-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.clients .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

/* =============================================
   SECTION CLIENTS - VERSION MOBILE
   ============================================= */

@media screen and (max-width: 768px) {
  /* Cibler spécifiquement les images dans la section clients */
  #clients .swiper-slide img.img-fluid {
    max-width: 80px !important;
    height: auto !important;
    opacity: 0.5 !important;
    filter: grayscale(100) !important;
    transition: all 0.2s ease !important;
  }
  
  /* Conserver l'effet hover */
  #clients .swiper-slide:hover img.img-fluid {
    filter: none !important;
    opacity: 1 !important;
  }
  
  /* Ajuster l'espacement pour la taille réduite */
  #clients .swiper-slide {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 70px !important;
    padding: 0 1px !important;
  }
  
  /* Ajustements responsive de l'espacement */
  #clients .swiper-container {
    padding: 5px 0 !important;
  }
  
  /* Ajustements pour très petits écrans */
  @media screen and (max-width: 480px) {
    #clients .swiper-slide img.img-fluid {
      max-width: 70px !important;
    }
    
    #clients .swiper-slide {
      padding: 0 2px !important;
    }
  }
  
  /* Ajustements pour écrans moyens */
  @media screen and (min-width: 481px) and (max-width: 768px) {
    #clients .swiper-slide img.img-fluid {
      max-width: 85px !important;
    }
    
    #clients .swiper-slide {
      padding: 0 4px !important;
    }
  }
}

/* Version tablette */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  #clients .swiper-slide img.img-fluid {
    max-width: 95px !important;
  }
  
  #clients .swiper-slide {
    padding: 0 8px !important;
  }
}

/* =============================================
   SECTION ABOUT
   ============================================= */

.about .content h3 {
  font-weight: 700;
  font-size: 34px;
  margin-bottom: 30px;
}

.about .content p {
  margin-bottom: 30px;
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.6;
}

.about .content .about-btn {
  padding: 8px 10px 5px 10px;
  color: var(--default-color);
  border-radius: 50px;
  transition: 0.3s;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--accent-color);
}

.about .content .about-btn i {
  font-size: 16px;
  padding-left: 5px;
}

.about .content .about-btn:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.about .icon-box i {
  font-size: 40px;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.about .icon-box h4 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px 0;
}

.about .icon-box h4 a {
  color: var(--heading-color);
  transition: 0.3s;
}

.about .icon-box p {
  font-size: 15px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: 0;
}

.about .icon-box:hover h4 a {
  color: var(--accent-color);
}

/* Boutons de téléchargement avec animation */
.download-buttons {
  margin-top: 35px;
  gap: 20px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  color: var(--contrast-color);
  background: linear-gradient(45deg, var(--accent-color), #d32f2f);
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  border: none;
  box-shadow: 0 4px 15px rgba(224, 58, 60, 0.3);
}

.download-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -20%;
  width: 20%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.download-btn:hover::before {
  left: 100%;
}

.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(224, 58, 60, 0.4);
}

.download-btn i {
  margin-right: 8px;
  font-size: 16px;
  transition: transform 0.3s ease;
}

.download-btn:hover i {
  transform: translateY(2px);
}

/* Restructuration de la grille About */
.about .row.gy-5 {
  justify-content: flex-end;
}

.about .col-xl-7 {
  margin-left: auto;
  max-width: 90%;
}

/* =============================================
   SECTION ABOUT - VERSION MOBILE
   ============================================= */

@media (max-width: 1199px) {
  .about .col-xl-7 {
    margin-left: 0;
    max-width: 100%;
  }
}

/* Ajustement pour les boîtes d'icônes */
@media (min-width: 1200px) {
  .about .col-xl-7 .row {
    margin-left: 30px;
  }
}

/* Pour un décalage plus important */
@media (min-width: 1200px) {
  .about .col-xl-7 .row {
    margin-left: 50px;
  }
  
  .about .content.col-xl-5 {
    padding-right: 30px;
  }
}

/* =============================================
   SECTION STATISTIQUES
   ============================================= */

.stats i {
  background-color: var(--surface-color);
  color: var(--accent-color);
  box-shadow: 0px 2px 25px rgba(0, 0, 0, 0.1);
  width: 54px;
  height: 54px;
  font-size: 24px;
  border-radius: 30px;
  border: 2px solid var(--background-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.stats .stats-item {
  background-color: var(--surface-color);
  margin-top: -5px;
  padding: 5px 20px 20px 20px;
  width: 100%;
  position: relative;
  text-align: center;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.1);
  border-radius: 80px;
  z-index: 0;
}

.stats .stats-item span {
  font-size: 18px;
  display: inline-block;
  font-weight: 700;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.stats .stats-item p {
  padding: 0;
  margin: 0;
  font-family: var(--heading-font);
  font-size: 16px;
}

/* ==================== SERVICES SECTION STYLES ==================== */

/* Section principale */
.services.section {
  padding: 80px 0; /* ← ESPACEMENT: Hauteur interne de la section */
  position: relative;
}

/* Titre principal de la section */
.services .section-title {
  text-align: center; /* ← ALIGNEMENT: Centrage du titre */
  margin-bottom: 60px; /* ← ESPACEMENT: Espace sous le titre */
}

.services .section-title h2 {
  font-size: 2.5rem; /* ← TAILLE: Taille du titre "Services" */
  font-weight: 700; /* ← EPAISSEUR: Graisse de la police */
  margin-bottom: 15px; /* ← ESPACEMENT: Espace sous le titre */
  color: #ffffff; /* ← COULEUR: Titre principal en BLANC */
  font-family: 'Inter', 'Segoe UI', sans-serif; /* ← POLICE: Police du titre */
}

.services .section-title p {
  font-size: 1.1rem; /* ← TAILLE: Taille du texte secondaire */
  color: #cccccc; /* ← COULEUR: Texte secondaire en gris clair */
  font-family: 'Inter', 'Segoe UI', sans-serif; /* ← POLICE: Police du texte */
  max-width: 600px; /* ← LARGEUR: Largeur maximale du paragraphe */
  margin: 0 auto; /* ← CENTRAGE: Centrage automatique */
}

/* Grille des services */
.services .row.gy-4 {
  gap: 30px 0; /* ← ESPACEMENT: Espace entre les cartes */
}

/* Cartes de service individuelles */
.service-item {
  background: rgba(255, 255, 255, 0.05); /* ← FOND: Fond semi-transparent */
  border: 1px solid rgba(255, 255, 255, 0.1); /* ← BORDURE: Bordure subtile */
  border-radius: 12px; /* ← COINS: Arrondi des angles */
  padding: 30px 25px; /* ← ESPACEMENT: Espace interne */
  transition: all 0.3s ease; /* ← ANIMATION: Transition fluide */
  position: relative;
  overflow: hidden;
  height: 100%;
}

/* Effet au survol des cartes */
.service-item:hover {
  background: rgba(255, 255, 255, 0.08); /* ← FOND: Fond plus clair au survol */
  border-color: rgba(255, 255, 255, 0.2); /* ← BORDURE: Bordure plus visible */
  transform: translateY(-5px); /* ← MOUVEMENT: Léger soulèvement */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); /* ← OMBRE: Ombre portée */
}

/* Style des ICÔNES - COULEUR ROUGE */
.service-item .icon {
  font-size: 2.5rem; /* ← TAILLE: Taille des icônes */
  color: #ff4444 !important; /* ← COULEUR: Icônes en ROUGE */
  margin-right: 20px; /* ← ESPACEMENT: Espace à droite de l'icône */
  transition: all 0.3s ease; /* ← ANIMATION: Transition des effets */
  flex-shrink: 0; /* ← COMPORTEMENT: Empêche le rétrécissement */
  align-self: flex-start; /* ← POSITION: Alignement en haut */
  margin-top: 5px; /* ← ESPACEMENT: Décalage vertical */
}

/* Effet au survol des icônes */
.service-item:hover .icon {
  color: #ff6666 !important; /* ← COULEUR: Rouge plus clair au survol */
  transform: scale(1.1); /* ← ANIMATION: Légère augmentation */
}

/* Contenu textuel */
.service-item div {
  flex: 1; /* ← DISPOSITION: Prend tout l'espace disponible */
}

/* Titres des services - COULEUR BLANCHE */
.service-item .title {
  font-size: 1.25rem; /* ← TAILLE: Taille des titres */
  font-weight: 600; /* ← EPAISSEUR: Graisse moyenne */
  margin-bottom: 12px; /* ← ESPACEMENT: Espace sous le titre */
  color: #ffffff; /* ← COULEUR: Titres en BLANC */
  font-family: 'Inter', 'Segoe UI', sans-serif; /* ← POLICE: Police des titres */
  line-height: 1.3; /* ← INTERLIGNE: Hauteur de ligne */
}

/* Désactivation du dégradé pour forcer le blanc */
.service-item .title span {
  background: none !important; /* ← FOND: Suppression du dégradé */
  -webkit-background-clip: initial !important; /* ← COMPATIBILITE: Safari/Chrome */
  background-clip: initial !important; /* ← EFFET: Rétablissement normal */
  -webkit-text-fill-color: #ffffff !important; /* ← COULEUR: Forcer le blanc */
  color: #ffffff !important; /* ← COULEUR: Couleur de secours */
}

/* Description des services */
.service-item .description {
  font-size: 0.95rem; /* ← TAILLE: Taille du texte */
  color: #cccccc; /* ← COULEUR: Texte en gris clair */
  line-height: 1.6; /* ← INTERLIGNE: Hauteur de ligne */
  margin-bottom: 0; /* ← ESPACEMENT: Pas de marge basse */
  font-family: 'Inter', 'Segoe UI', sans-serif; /* ← POLICE: Police du texte */
  text-align: justify; /* ← ALIGNEMENT: Texte justifié */
  text-justify: inter-word; /* ← JUSTIFICATION: Méthode de justification */
  hyphens: auto; /* ← CESURES: Césures automatiques */
}

/* ==================== VERSION BUREAU (≥768px) ==================== */
@media (min-width: 768px) {
  .services.section {
    padding: 100px 0; /* ← ESPACEMENT: Plus d'espace sur bureau */
  }
  
  .services .section-title h2 {
    font-size: 3rem; /* ← TAILLE: Titre plus grand sur bureau */
  }
  
  .services .section-title p {
    font-size: 1.2rem; /* ← TAILLE: Texte plus grand sur bureau */
  }
  
  .service-item {
    padding: 35px 30px; /* ← ESPACEMENT: Plus de padding sur bureau */
  }
  
  .service-item .icon {
    font-size: 3rem; /* ← TAILLE: Icônes plus grandes sur bureau */
    margin-right: 25px; /* ← ESPACEMENT: Plus d'espace sur bureau */
  }
  
  .service-item .title {
    font-size: 1.4rem; /* ← TAILLE: Titres plus grands sur bureau */
  }
  
  .service-item .description {
    font-size: 1rem; /* ← TAILLE: Texte plus grand sur bureau */
  }
}

/* ==================== VERSION MOBILE (<768px) ==================== */
@media (max-width: 767.98px) {
  .services.section {
    padding: 60px 0; /* ← ESPACEMENT: Moins d'espace sur mobile */
  }
  
  .services .section-title {
    margin-bottom: 40px; /* ← ESPACEMENT: Moins d'espace sous le titre */
  }
  
  .services .section-title h2 {
    font-size: 2rem; /* ← TAILLE: Titre plus petit sur mobile */
  }
  
  .services .section-title p {
    font-size: 1rem; /* ← TAILLE: Texte plus petit sur mobile */
    padding: 0 20px; /* ← ESPACEMENT: Padding latéral */
  }
  
  .service-item {
    padding: 25px 20px; /* ← ESPACEMENT: Moins de padding sur mobile */
    margin: 0 10px; /* ← ESPACEMENT: Marge latérale */
  }
  
  .service-item .icon {
    font-size: 2rem; /* ← TAILLE: Icônes plus petites sur mobile */
    margin-right: 15px; /* ← ESPACEMENT: Moins d'espace sur mobile */
  }
  
  .service-item .title {
    font-size: 1.1rem; /* ← TAILLE: Titres plus petits sur mobile */
    margin-bottom: 10px; /* ← ESPACEMENT: Moins d'espace sous-titre */
  }
  
  .service-item .description {
    font-size: 0.9rem; /* ← TAILLE: Texte plus petit sur mobile */
    text-align: left; /* ← ALIGNEMENT: Alignement à gauche pour meilleure lisibilité */
  }
  
  /* Très petits écrans */
  @media (max-width: 575.98px) {
    .service-item {
      flex-direction: column; /* ← DISPOSITION: Icône au-dessus du texte */
      text-align: center; /* ← ALIGNEMENT: Centrage du contenu */
    }
    
    .service-item .icon {
      margin-right: 0; /* ← ESPACEMENT: Supprime la marge droite */
      margin-bottom: 15px; /* ← ESPACEMENT: Ajoute une marge en bas */
      align-self: center; /* ← POSITION: Centre l'icône */
    }
    
    .service-item .description {
      text-align: center; /* ← ALIGNEMENT: Centrage du texte */
    }
  }
}

/* ==================== COMPATIBILITÉ NAVIGATEURS ==================== */

/* Correction Safari pour les césures */
@supports (-webkit-hyphens: none) {
  .service-item .description {
    -webkit-hyphens: auto; /* ← CESURES: Support Safari */
    hyphens: auto; /* ← CESURES: Standard property */
  }
}

/* Support Internet Explorer/Edge ancien */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  .service-item .title span {
    background: transparent; /* ← FOND: Désactive le dégradé */
    color: #ffffff; /* ← COULEUR: Blanc pour IE */
  }
}

/* Optimisation Firefox */
@-moz-document url-prefix() {
  .service-item {
    background: rgba(30, 30, 30, 0.95); /* ← FOND: Fond légèrement différent */
  }
}

/* ==================== VARIABLES DE PERSONNALISATION ==================== */

.services {
  /* Variables de police */
  --services-title-font: 'Inter', 'Segoe UI', sans-serif;
  --services-text-font: 'Inter', 'Segoe UI', sans-serif;
  
  /* Variables de couleur */
  --services-title-color: #ffffff; /* ← COULEUR: Titre principal BLANC */
  --services-subtitle-color: #cccccc; /* ← COULEUR: Sous-titre gris */
  --services-icon-color: #ff4444; /* ← COULEUR: Icônes ROUGE */
  --services-icon-hover: #ff6666; /* ← COULEUR: Icônes survol rouge clair */
  --services-item-title-color: #ffffff; /* ← COULEUR: Titres cartes BLANC */
  --services-text-color: #cccccc; /* ← COULEUR: Texte description gris */
  
  /* Variables de taille */
  --services-title-size-desktop: 3rem;
  --services-title-size-mobile: 2rem;
  --services-icon-size-desktop: 3rem;
  --services-icon-size-mobile: 2rem;
  --services-item-title-size-desktop: 1.4rem;
  --services-item-title-size-mobile: 1.1rem;
}

/* Application des variables */
.services .section-title h2 {
  font-family: var(--services-title-font);
  color: var(--services-title-color);
}

.service-item .icon {
  color: var(--services-icon-color);
}

.service-item:hover .icon {
  color: var(--services-icon-hover);
}

.service-item .title,
.service-item .title span {
  color: var(--services-item-title-color) !important;
}

/* Surcharges bureau */
@media (min-width: 768px) {
  .services .section-title h2 {
    font-size: var(--services-title-size-desktop);
  }
  
  .service-item .icon {
    font-size: var(--services-icon-size-desktop);
  }
  
  .service-item .title {
    font-size: var(--services-item-title-size-desktop);
  }
}

/* =============================================
   SECTION PORTFOLIO
   ============================================= */

.portfolio {
  padding: 60px 0;
  background: #fff;
}

.portfolio .portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 10px;
  margin-bottom: 20px;
  list-style: none;
  overflow: visible !important;
}

.portfolio .portfolio-filters li {
  cursor: pointer;
  display: inline-block;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  margin: 0 8px 8px 8px;
  line-height: 1;
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid transparent;
  background-color: transparent;
  color: #000 !important;
  transition: all 0.2s ease;
  box-shadow: none;
  white-space: nowrap;
}

.portfolio .portfolio-filters li:hover {
  background-color: rgba(224, 58, 60, 0.1);
  color: #e03a3c !important;
  transform: translateY(-2px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
}

.portfolio .portfolio-filters li.filter-active {
  background-color: #e03a3c !important;
  color: #fff !important;
  border-color: #e03a3c !important;
  box-shadow: none !important;
}

/* Portfolio Items & Images - CORRECTION COMPLÈTE */
.portfolio .portfolio-item {
  position: relative;
  overflow: visible; /* Changé de hidden à visible */
  margin-bottom: 30px;
}

.portfolio .portfolio-img {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 8px;
  overflow: hidden; /* Ajouté ici */
  /* CONTEXTE 3D ESSENTIEL */
  transform-style: preserve-3d;
  perspective: 1200px;
}

.portfolio .portfolio-img img {
  width: 100%; /* Changé de 650px à 100% */
  height: 300px; /* Hauteur ajustable */
  border-radius: 8px;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              box-shadow 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  object-fit: cover;
  transform-style: preserve-3d;
  will-change: transform; /* Optimisation performance */
}

/* EFFET 3D FONCTIONNEL */
.portfolio .portfolio-item:hover .portfolio-img img {
  transform: 
    perspective(1200px) 
    rotateY(15deg) 
    rotateX(8deg) 
    scale(1.08)
    translateZ(20px);
  box-shadow: 
    0 25px 40px rgba(0, 0, 0, 0.3),
    0 0 50px rgba(224, 58, 60, 0.2);
}

/* Effet de brillance supplémentaire */
.portfolio .portfolio-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.6s ease;
  z-index: 2;
}

.portfolio .portfolio-item:hover .portfolio-img::after {
  left: 100%;
}

/* =============================================
   SECTION PORTFOLIO - VERSION MOBILE
   ============================================= */

@media screen and (max-width: 768px) {
  .portfolio .portfolio-filters {
    display: flex !important;
    justify-content: center !important;
    align-items: center;
    flex-wrap: nowrap !important;
    padding: 0 6px !important;
    gap: 6px;
  }
  
  .portfolio .portfolio-filters li {
    flex: 1 1 0;
    text-align: center;
    font-size: 14px !important;
    padding: 5px 5px !important;
    margin: 0 !important;
    white-space: nowrap;
  }
  
  .portfolio .portfolio-img img {
    height: 250px; /* Hauteur réduite pour mobile */
  }
  
  /* Effet 3D plus subtil sur mobile */
  .portfolio .portfolio-item:hover .portfolio-img img {
    transform: 
      perspective(800px) 
      rotateY(8deg) 
      rotateX(5deg) 
      scale(1.05)
      translateZ(10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
  }
}

/* Version alternative si ça ne fonctionne toujours pas */
.portfolio .portfolio-item {
  perspective: 1200px;
}

.portfolio .portfolio-img {
  transform-style: preserve-3d;
}

.portfolio .portfolio-img img {
  transform: translateZ(0); /* Reset */
  transition: all 0.6s ease;
}

.portfolio .portfolio-item:hover .portfolio-img img {
  transform: 
    rotateY(10deg) 
    rotateX(5deg) 
    scale(1.05)
    translateZ(30px);
  filter: brightness(1.1);
  box-shadow: 
    0 20px 35px rgba(0, 0, 0, 0.25),
    0 0 30px rgba(224, 58, 60, 0.15);
}


/* =============================================
   SECTION SKILLSET
   ============================================= */

.skillset-container {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.skillset-scroller {
  display: flex;
  gap: 50px;
  padding: 100px 0;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.skillset-scroller::-webkit-scrollbar {
  display: none;
}

.skillset-item {
  flex: 1 5 900px;
  min-height: 400px;
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 40px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.5s ease;
  scroll-snap-align: center;
  opacity: 0.5;
  transform: scale(0.9) perspective(1500px) rotateY(15deg);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(50px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Titres des cartes */
.skillset-item h3 {
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 25px;
  color: var(--heading-color);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
}

/* Textes des listes */
.skillset-item ul {
  list-style-type: disc;
}

.skillset-item li {
  margin-bottom: 12px;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 5%);
  line-height: 1.5;
  display: list-item;
  align-items: initial;
  text-align: left; 
}

.skillset-item li i {
  color: var(--accent-color);
  margin-right: 10px;
  font-size: 16px;
  margin-top: 2px;
}

/* Carte centrale - Agrandie et mise en avant */
.skillset-item.active {
  transform: scale(1.18) perspective(2500px) rotateY(30deg);
  opacity: 1;
  z-index: 50;
  background: linear-gradient(135deg, var(--accent-color), #d32f2f);
  box-shadow: 0 20px 45px rgba(224, 58, 60, 0.45);
  min-height: 750px;
}

.skillset-item.active h3 {
  font-size: 30px;
  color: #f1ecec;
  text-shadow: 0 2px 6px rgba(238, 230, 230, 0.4);
  margin-bottom: 30px;
}

.skillset-item.active li {
  color: rgba(255, 255, 255, 0.95);
  font-size: 16px;
  font-weight: 500;
}

.skillset-item.active li i {
  color: #ffffff;
  font-size: 18px;
}

/* Cartes adjacentes - Effet fading */
.skillset-item.adjacent {
  transform: scale(1.0) perspective(1500px) rotateY(20deg);
  opacity: 5;
  background: rgba(255, 255, 255, 0.6);
}

.skillset-item.distant {
  transform: scale(0.92) perspective(1500px) rotateY(25deg);
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.04);
}

/* Effet au survol */
.skillset-item:hover {
  cursor: pointer;
  opacity: 0.9;
  transform: scale(0.99) perspective(2000px) rotateY(30deg);
}

/* Flèches de navigation */
.skillset-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  backdrop-filter: blur(10px);
}

.skillset-nav.prev {
  left: 10px;
}

.skillset-nav.next {
  right: 10px;
}

.skillset-nav:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

/* =============================================
   SECTION SKILLSET - VERSION MOBILE
   ============================================= */

@media (max-width: 1200px) {
  .skillset-item {
    flex: 0 0 300px;
    min-height: 380px;
    padding: 25px;
  }
  
  .skillset-item.active {
    transform: scale(1.15);
    min-height: 420px;
  }
}

@media (max-width: 768px) {
  .skillset-item {
    flex: 0 0 280px;
    min-height: 360px;
    padding: 20px;
  }
  
  .skillset-item.active {
    transform: scale(1.12);
    min-height: 390px;
  }
  
  .skillset-item h3 {
    font-size: 18px;
  }
  
  .skillset-item li {
    font-size: 14px;
  }
  
  .skillset-scroller {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .skillset-scroller::-webkit-scrollbar {
    display: none;
  }
}
/* =============================================
   TIMELINE SECTION
   ============================================ */

  /*=============================================
  Desktop Timeline Styles
  ==============================================*/

@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro&display=swap');

/* Conteneur principal de la timeline */
.cd-horizontal-timeline {
  opacity: 0; /* Initialement transparent, devient visible après chargement via JS */
  margin: 2em auto; /* Marge verticale autour de la timeline */
  transition: opacity 0.2s; /* Transition fluide pour l'affichage */
  font-family: 'Source Sans Pro', sans-serif; /* Police principale utilisée */
}

/* Timeline devient visible après l'initialisation JS */
.cd-horizontal-timeline.loaded {
  opacity: 1;
}

/* Conteneur général de la barre + les points sur la timeline */
.cd-horizontal-timeline .timeline {
  position: relative;
  height: 100px; /* Hauteur de la ligne horizontale */
  width: 90%; /* Largeur relative */
  max-width: 900px; /* Largeur max sur desktop */
  margin: 0 auto; /* Centré horizontalement */
}

/* Wrapper permettant de masquer les points hors périmètre */
.cd-horizontal-timeline .events-wrapper {
  position: relative;
  height: 100%;
  margin: 0 40px; /* Espace à gauche et à droite pour les flèches */
  overflow: hidden; /* Cache les débordements (points hors zone visible) */
}

/* Ombres aux extrémités, effets de dégradé sur le côté */
.cd-horizontal-timeline .events-wrapper::before,
.cd-horizontal-timeline .events-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  height: 100%;
  width: 0px; /* Largeur la zone d'ombre */
  z-index: 2; /* Au-dessus des points */
}

/* Ombre gauche (dégradé vers transparent à droite) */
.cd-horizontal-timeline .events-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #f8f8f8, transparent);
}

/* Ombre droite (dégradé vers transparent à gauche) */
.cd-horizontal-timeline .events-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #f8f8f8, transparent);
}

/* Ligne principale horizontale de la timeline */
.cd-horizontal-timeline .events {
  position: absolute;
  left: 0;
  top: 49px; /* Légèrement sous milieu vertical */
  height: 2px; /* Épaisseur de la ligne */
  background: #dfdfdf; /* Couleur grise claire */
  transition: transform 0.4s; /* Transition fluide pour translation */
  z-index: 1;
}

/* Ligne verte de progression suivant le point sélectionné */
.cd-horizontal-timeline .filling-line {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%; /* Hauteur égale à la barre */
  width: 100%;
  background-color: #7b9d6f; /* Couleur verte */
  transform-origin: left center; /* Origine transformation pour scaleX */
  transform: scaleX(0); /* Largeur 0 par défaut (progression nulle) */
  transition: transform 0.3s; /* Transition lors du changement */
  z-index: 1;
}

/* Texte des dates sur chaque point */
.cd-horizontal-timeline .events a {
  position: absolute;
  bottom: 0; /* Sous la ligne horizontale */
  z-index: 2; /* Au-dessus de la barre */
  text-align: center;
  font-size: 0.8rem; /* Taille du texte des dates */
  padding-bottom: 15px; /* Espace sous le texte */
  color: #383838; /* Couleur gris sombre */
  transform: translateZ(0); /* Optimisation du rendu */
}

/* Cercle représentant chaque point */
.cd-horizontal-timeline .events a::after {
  content: '';
  position: absolute;
  bottom: -5px; /* Légèrement sous la barre */
  left: 50%; /* Centré */
  transform: translateX(-50%);
  height: 12px; /* Largeur du cercle */
  width: 15px;
  border-radius: 50%; /* Cercle parfait */
  border: 2px solid #dfdfdf; /* Bordure grise */
  background-color: #f8f8f8; /* Remplissage blanc */
  transition: background-color 0.3s, border-color 0.3s; /* Transitions au hover */
}

/* Cercle devient vert au survol */
.no-touch .cd-horizontal-timeline .events a:hover::after {
  background-color: #7b9d6f;
  border-color: #7b9d6f;
}

/* Point sélectionné désactive le clic */
.cd-horizontal-timeline .events a.selected {
  pointer-events: none;
}

/* Cercle du point sélectionné devient vert */
.cd-horizontal-timeline .events a.selected::after {
  background-color: #7b9d6f;
  border-color: #7b9d6f;
}

/* Points antérieurs (déjà passés) ont bordure verte */
.cd-horizontal-timeline .events a.older-event::after {
  border-color: #7b9d6f;
}

/* ===== BOUTONS DE NAVIGATION DES FLECHES (texte) ===== */
.cd-timeline-navigation a {
  position: absolute;
  top: 50%; /* Centré verticalement */
  transform: translateY(-50%);
  height: 34px; /* Taille globale bouton */
  width: 34px;
  border-radius: 50%; /* Forme ronde */
  border: 2px solid #dfdfdf; /* Bordure grise */
  overflow: hidden;
  background: white; /* Fond blanc du bouton */
  color: #7b9d6f; /* Couleur du texte flèche */
  font-weight: bold; /* Epaisseur de la police flèche */
  font-size: 1.8rem; /* Taille de la flèche */
  text-align: center; /* Centrer texte flèche horizontalement */
  line-height: 30px; /* Centrer texte flèche verticalement */
  user-select: none; /* Empêche la sélection accidentelle */
  cursor: pointer; /* Curseur pointeur au survol */
  transition: border-color 0.3s;
  z-index: 1;
  text-indent: 100; /* Ne pas masquer le texte */
}

.cd-timeline-navigation a.prev::after {
  content: "\003C"; /* Flèche gauche Unicode < */
  font-family: Arial, sans-serif; /* Police standard sans glyphes modifiés */
  font-weight: bold;
  font-size: 1.8rem;
  color: #7b9d6f;
  position: relative;
  left: 0;
  top: 0;
  transform: none;
}

.cd-timeline-navigation a.next::after {
  content: "\003E"; /* Flèche droite Unicode > */
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: 1.8rem;
  color: #7b9d6f;
  position: relative;
  left: 0;
  top: 0;
  transform: none;
}


/* Position bouton flèche gauche */
.cd-timeline-navigation a.prev {
  left: 0;
  transform: translateY(-50%);
}

/* Position bouton flèche droite */
.cd-timeline-navigation a.next {
  right: 0;
}

/* Couleur bordure au survol des boutons */
.no-touch .cd-timeline-navigation a:hover {
  border-color: #7b9d6f;
}

/* Bouton flèche désactivé */
.cd-timeline-navigation a.inactive {
  cursor: not-allowed;
  color: #b0b0b0; /* Couleur flèche grise */
}

/* Texte flèche désactivée grisé */
.cd-timeline-navigation a.inactive::after {
  color: #b0b0b0;
}

/* ===== CONTENEUR DES FICHES ÉVÉNEMENTS ===== */
.cd-horizontal-timeline .events-content {
  position: relative;
  width: 100%;
  margin: 2em 0;
  overflow: hidden;
  transition: height 0.4s;
}

/* Chaque fiche d’événement (à afficher dans la timeline) */
.cd-horizontal-timeline .events-content li {
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
  padding: 0 5%;
  opacity: 0; /* Caché par défaut */
  transform: translateX(-100%);
  animation-duration: 0.4s;
  animation-timing-function: ease-in-out;
  z-index: 1;
}

/* Fiche active */
.cd-horizontal-timeline .events-content li.selected {
  position: relative;
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
  animation-name: none;
}

/* Animation d’entrée/sortie vers la droite */
.cd-horizontal-timeline .events-content li.enter-right,
.cd-horizontal-timeline .events-content li.leave-right {
  animation-name: cd-enter-right;
}

/* Animation d’entrée/sortie vers la gauche */
.cd-horizontal-timeline .events-content li.enter-left,
.cd-horizontal-timeline .events-content li.leave-left {
  animation-name: cd-enter-left;
}

/* Inverse l’animation pour la sortie */
.cd-horizontal-timeline .events-content li.leave-right,
.cd-horizontal-timeline .events-content li.leave-left {
  animation-direction: reverse;
}

/* Centrage du contenu de chaque fiche */
.cd-horizontal-timeline .events-content li > * {
  max-width: 800px;
  margin: 0 auto;
}

/* Titre de chaque fiche d’événement */
.cd-horizontal-timeline .events-content h2 {
  font-weight: bold;
  font-size: 2.5rem; /* Taille du titre */
  font-family: "Playfair Display", serif;
  font-weight: 700;
  line-height: 1.6;
}

/* Date affichée sous le titre */
.cd-horizontal-timeline .events-content em {
  display: block;
  font-style: italic;
  margin: 10px auto;
  font-size: 1rem; /* Taille du texte date */
}

/* Tiret avant date */
.cd-horizontal-timeline .events-content em::before {
  content: ' '; /* Personnalisable */
}

/* Description sous la date */
.cd-horizontal-timeline .events-content p {
  font-size: 1rem;
  color: #29201e; /* Couleur description */
  line-height: 1.6;
  text-align: justify;
}

/* Enlever puces, numérotation et marges par défaut */
.cd-horizontal-timeline ol, .cd-horizontal-timeline ul {
  list-style: none !important;
  padding-left: 0;
  margin-left: 0;
}

/*=============================================
 Mobile Timeline Styles
==============================================*/

@media (max-width: 768px) {
  /* Timeline compacte et centrée */
  .cd-horizontal-timeline .timeline {
    max-width: 99vw;
    height: 80px;
    position: relative; /* Nécessaire pour positionner enfants */
  }
  /* Centrage horizontal et vertical de la ligne timeline */
  .cd-horizontal-timeline .events {
    top: 50%;                    /* Met la barre au milieu du conteneur */
    transform: translateY(-50%);
  }
  /* Position des flèches */
  .cd-timeline-navigation a.prev,
  .cd-timeline-navigation a.next {
    top: 50%;                    /* Aligner verticalement avec la ligne */
    transform: translateY(-50%);
    position: absolute;
  }
  .cd-timeline-navigation a.prev {
    left: 0;                     /* Flèche gauche sur le bord gauche */
  }
  .cd-timeline-navigation a.next {
    right: 0;                    /* Flèche droite sur le bord droit */
  }
  .cd-horizontal-timeline .events-wrapper {
    margin: 0 40px;              /* Conserve le même margin pour ne pas "rentrer" sur les flèches */
  }

  /* Augmentation taille de la police pour le titre pour mobile */
  .cd-horizontal-timeline .events-content h2 {
    font-size: 1.2rem !important;
  }
  /* Augmentation taille police pour la date sous les titres */
  .cd-horizontal-timeline .events-content em {
    font-size: 1rem !important;
  }
  /* Augmentation taille police pour description */
  .cd-horizontal-timeline .events-content p {
    font-size: 0.9rem !important;
  }
  
  /* Ajustement taille dates sur points */
  .cd-horizontal-timeline .events a {
    font-size: 0.9rem;
    padding-bottom: 10px;
  }
  
  /* Cercle points plus petits sur mobile */
  .cd-horizontal-timeline .events a::after {
    height: 10px;
    width: 10px;
  }
}


/*=============================================
 Animation clés timeline : entrée/sortie contenus
==============================================*/

/* Animation slide à droite */
@keyframes cd-enter-right {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animation slide à gauche */
@keyframes cd-enter-left {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* =============================================
   SECTION TÉMOIGNAGES
   ============================================= */

.testimonials .testimonial-item {
  background-color: var(--surface-color);
  box-shadow: 10px 10px 15px rgba(20, 20, 20, 0.1);
  box-sizing: content-box;
  padding: 30px;
  margin: 30px 15px;
  position: relative;
  height: 100%;
  border-radius: 10px;
}

.testimonials .testimonial-item .testimonial-img {
  width: 60px;
  border-radius: 10px;
  margin-right: 15px;
}

.testimonials .testimonial-item h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 10px 0 10px 0;
}

.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin: 0;
}

.testimonials .testimonial-item .stars {
  margin: 10px 0;
}

.testimonials .testimonial-item .stars i {
  color: #ffc107;
  margin: 0 1px;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: color-mix(in srgb, var(--accent-color), transparent 50%);
  font-size: 26px;
  line-height: 0;
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 15px auto 15px auto;
}

.testimonials .swiper-wrapper {
  height: auto;
}

.testimonials .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: color-mix(in srgb, var(--default-color), transparent 85%);
  opacity: 1;
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

/* =============================================
   SECTION TÉMOIGNAGES - VERSION MOBILE
   ============================================= */

@media (max-width: 767px) {
  .testimonials .testimonial-wrap {
    padding-left: 0;
  }
  
  .testimonials .testimonial-item {
    padding: 30px;
    margin: 15px;
  }
  
  .testimonials .testimonial-item .testimonial-img {
    position: static;
    left: auto;
  }
}

/* =============================================
   SECTION CONTACT
   ============================================= */

.contact.section-bg.dark-background {
  background-color: var(--background-color);
  position: relative;
  overflow: hidden;
}

.contact.section-bg.dark-background:before {
  content: "";
  background-color: var(--background-color);
  position: absolute;
  bottom: 60px;
  top: 60px;
  left: 0;
  right: 0;
  transform: skewY(-3deg);
}

.contact .container {
  position: relative;
  z-index: 2;
}

.contact .info-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 40px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.5s ease;
  backdrop-filter: blur(50px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  height: 100%;
  text-align: center;
}

.contact .info-item i {
  font-size: 40px;
  color: var(--accent-color);
  margin-bottom: 20px;
  display: block;
}

.contact .info-item h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--heading-color);
}

.contact .info-item p {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-bottom: 0;
}

.contact .php-email-form {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 40px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(50px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email],
.contact .php-email-form textarea {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--default-color);
  border-radius: 8px;
}

.contact .php-email-form input[type=text]:focus,
.contact .php-email-form input[type=email]:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(224, 58, 60, 0.25);
}

.contact .php-email-form button[type=submit] {
  background: var(--accent-color);
  border: none;
  padding: 12px 40px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact .php-email-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(224, 58, 60, 0.3);
}

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

.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  padding-bottom: 50px;
  position: relative;
}

.footer .footer-top {
  padding-top: 50px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .footer-about .logo {
  line-height: 1;
  margin-bottom: 25px;
}

.footer .footer-about .logo img {
  max-height: 40px;
  margin-right: 6px;
}

.footer .footer-about .logo span {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: var(--heading-font);
  color: var(--heading-color);
}

.footer .footer-about p {
  font-size: 14px;
  font-family: var(--heading-font);
}

.footer h4 {
  font-size: 16px;
  font-weight: bold;
  position: relative;
  padding-bottom: 12px;
}

.footer .footer-links {
  margin-bottom: 30px;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul i {
  padding-right: 2px;
  font-size: 12px;
  line-height: 0;
}

.footer .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.footer .footer-links ul li:first-child {
  padding-top: 0;
}

.footer .footer-links ul a {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  display: inline-block;
  line-height: 1;
}

.footer .footer-links ul a:hover {
  color: var(--accent-color);
}

.footer .footer-contact p {
  margin-bottom: 5px;
}

.footer .footer-newsletter .newsletter-form {
  margin-top: 30px;
  margin-bottom: 30px;
  padding: 6px 8px;
  position: relative;
  border-radius: 4px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  display: flex;
  background-color: var(--background-color);
  transition: 0.3s;
}

.footer .footer-newsletter .newsletter-form:focus-within {
  border-color: var(--accent-color);
}

.footer .footer-newsletter .newsletter-form input[type=email] {
  border: 0;
  padding: 4px;
  width: 100%;
  background-color: var(--background-color);
  color: var(--default-color);
}

.footer .footer-newsletter .newsletter-form input[type=email]:focus-visible {
  outline: none;
}

.footer .footer-newsletter .newsletter-form input[type=submit] {
  border: 0;
  font-size: 16px;
  padding: 0 20px;
  margin: -7px -8px -7px 0;
  background: var(--accent-color);
  color: var(--contrast-color);
  transition: 0.3s;
  border-radius: 0 4px 4px 0;
}

.footer .footer-newsletter .newsletter-form input[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.footer .copyright {
  padding-top: 25px;
  padding-bottom: 25px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .credits {
  margin-top: 6px;
  font-size: 13px;
}

/* Footer tools carousel */
#tools-carousel-footer {
  background: rgba(255,255,255,0.99) !important;
  border: none;
  height: 130px !important;
  min-height: 0 !important;
  padding: 10px 0 !important;
  margin: 10 !important;
}

#tools-carousel-footer .tools-swiper {
  background: transparent;
  padding-top: 10px;
  padding-bottom: 26px;
}

.footer-logo-img {
  max-width: 80px;
  max-height: 80px;
  margin: 0 auto;
  display: block;
  filter: grayscale(0.4) brightness(0.87) drop-shadow(0 2px 8px #0005);
  transition: filter 0.3s, transform 0.3s;
  background: transparent;
  border-radius: 10px;
  padding: 6px 10px;
  box-shadow: 10 10 50px rgba(0,0,0,0.10);
}

.footer-logo-img:hover {
  filter: grayscale(0) brightness(1.01) drop-shadow(0 4px 14px #e03a3c55);
  transform: scale(1.4);
}

#tools-carousel-footer .swiper-pagination-bullet {
  background: #e03a3c;
  opacity: 0.11;
  transition: opacity 0.3s;
}

#tools-carousel-footer .swiper-pagination-bullet-active {
  opacity: 1;
  background: #e03a3c;
}

#tools-carousel-footer .swiper-wrapper {
  display: flex;
  align-items: center;
}

#tools-carousel-footer .swiper-slide {
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 70px;
}

#tools-carousel-footer .footer-logo-img {
  max-width: 90px;
  max-height: 50px;
  width: auto;
  height: auto;
  margin: 0;
  display: block;
  object-fit: contain;
  background: none !important;
  box-shadow: none !important;
  border-radius: 8px;
  padding: 0;
}

/* FooterLogos */
.footer-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: contain;
  position: absolute;
  background: transparent;
  border: none;
}

/* Image gauche */
.footer-img-left {
  left: 20px;
  top: 30px;
}

/* Image droite */
.footer-img-right {
  right: 20px;
  top: 30px;
}
