/* Styles CSS pour Tourel Services Numériques */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-color: #f8f9fa;
  --primary-color: #204080;
  --secondary-color: #50b788;
  --text-color: #222222;
  --accent-color: #f4a261;
  --white-color: #ffffff;
  --light-gray-color: #f4f4f4;
  --medium-gray-color: #e9e9e9;
  --accent-color-darker: #e88f4a;
  --secondary-color-darker: #45a676;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --shadow-hover-color: rgba(0, 0, 0, 0.2);
  --link-color: #204080;
  --link-hover-color: #162c59;
}

body {
  font-family: "Inter", sans-serif;
  margin: 0 auto;
  padding: 0;
  line-height: 1.7;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 400;
  max-width: 1400px;
  overflow-x: hidden;
  padding-top: 70px;
}

h1,
h2,
h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: var(--primary-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 1.75rem;
}

/* Styles Hero Section avec Carousel moderne */
.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("medias/pictures/senior-on-laptop.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  padding: 40px 20px;
  text-align: center;
  color: var(--white-color);
  position: relative;
  height: 40vh;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Effet parallaxe unifié */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("medias/pictures/senior-on-laptop.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  transform: translateZ(0);
  will-change: transform;
  z-index: -1;
}

/* Container du carousel */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* Slides du carousel */
.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(100px) scale(0.9);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

.carousel-slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: all;
}

.carousel-slide.prev {
  transform: translateX(-100px) scale(0.9);
}

/* Contenu hero unifié */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  animation: slideInUp 0.5s ease-out;
}

/* Animation d'entrée */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navigation du carousel */
.carousel-navigation {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}

.carousel-nav-btn {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  flex-shrink: 0;
  display: inline-block;
}

.carousel-nav-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--accent-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.carousel-nav-btn.active {
  border-color: var(--accent-color);
  border-width: 2px;
  border-radius: 50%;
  background: var(--accent-color);
}

.carousel-nav-btn.active::before {
  width: 0;
  height: 0;
}

.carousel-nav-btn:hover {
  border-color: var(--white-color);
  border-width: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

/* Flèches de navigation */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  z-index: 3;
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--white-color);
  transform: translateY(-50%) scale(1.1);
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-arrow-prev {
  left: 30px;
}

.carousel-arrow-next {
  right: 30px;
}

/* Barre de progression - SUPPRIMÉE */

/* Animation de pulsation pour les éléments actifs - SUPPRIMÉE */

/* Effet de flou et zoom sur les slides inactives */
.carousel-slide:not(.active) {
  filter: blur(2px);
}

.carousel-slide.active {
  filter: blur(0);
}

/* Animations avancées pour les éléments du carousel */
@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(100px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

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

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animation pour les titres - Plus rapide */
.carousel-slide.active h1 {
  animation: slideInFromLeft 0.3s ease-out 0.1s both;
}

/* Animation pour les paragraphes - Plus rapide */
.carousel-slide.active p {
  animation: fadeInScale 0.3s ease-out 0.1s both;
}

/* Animation pour les boutons CTA - Plus rapide */
.carousel-slide.active .cta-button:first-child {
  animation: slideInFromLeft 0.3s ease-out 0.2s both;
}

.carousel-slide.active .cta-button:last-child {
  animation: slideInFromRight 0.3s ease-out 0.2s both;
}

/* Effet de brillance sur les boutons de navigation */
@keyframes shine {
  0% {
    background-position: -100px;
  }
  100% {
    background-position: 100px;
  }
}

.carousel-nav-btn:hover::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shine 0.5s ease-in-out;
}

/* Effet de pulsation amélioré */
@keyframes advancedPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 15px var(--shadow-color);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 25px var(--shadow-hover-color);
  }
}

/* Effet de pulsation au hover - SUPPRIMÉ */

/* Animation pour les flèches */
@keyframes arrowBounce {
  0%,
  100% {
    transform: translateY(-50%) translateX(0);
  }
  50% {
    transform: translateY(-50%) translateX(5px);
  }
}

.carousel-arrow-next:hover {
  animation: arrowBounce 1s ease-in-out infinite;
}

@keyframes arrowBounceLeft {
  0%,
  100% {
    transform: translateY(-50%) translateX(0);
  }
  50% {
    transform: translateY(-50%) translateX(-5px);
  }
}

.carousel-arrow-prev:hover {
  animation: arrowBounceLeft 1s ease-in-out infinite;
}

.hero-content h1,
.hero h1 {
  font-size: 2.5rem !important;
  line-height: 1.3 !important;
  margin-bottom: 1rem !important;
  color: var(--white-color) !important;
  font-weight: 700 !important;
  font-family: "Poppins", sans-serif !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content p,
.hero p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--white-color) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  align-items: center;
}

.cta-button {
  background-color: var(--accent-color);
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 50px;
  display: inline-block;
  transition: all 0.3s ease;
  border: 2px solid var(--accent-color);
  box-shadow: 0 4px 15px var(--shadow-color);
}

.cta-button:hover,
.cta-button:focus {
  background-color: var(--accent-color-darker);
  color: var(--white-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--shadow-hover-color);
  text-decoration: none;
  border-color: var(--accent-color-darker);
}

.cta-secondary {
  background-color: var(--secondary-color);
  color: var(--text-color);
  border-color: var(--secondary-color);
}

.cta-secondary:hover,
.cta-secondary:focus {
  background-color: var(--secondary-color-darker);
  color: var(--white-color);
  border-color: var(--secondary-color-darker);
}

/* Section Services */
.services-section {
  padding: 60px 20px;
  text-align: center;
  background-color: var(--white-color);
}

.services-section h2 {
  margin-bottom: 40px;
}

/* Aligner les listes à gauche dans les services-section */
.services-section ul {
  text-align: left;
  display: inline-block;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  justify-content: center;
}

/* Disposition spéciale pour les grilles avec exactement 5 cartes (3 en haut, 2 en bas centrées) */
.services-grid .service-item:first-child:nth-last-child(5),
.services-grid .service-item:first-child:nth-last-child(5) ~ .service-item {
  /* Réinitialiser la grille pour 5 éléments */
}

@media (min-width: 992px) {
  .services-grid .service-item:first-child:nth-last-child(5) {
    grid-column: 1 / 2;
  }

  .services-grid
    .service-item:first-child:nth-last-child(5)
    ~ .service-item:nth-child(2) {
    grid-column: 2 / 3;
  }

  .services-grid
    .service-item:first-child:nth-last-child(5)
    ~ .service-item:nth-child(3) {
    grid-column: 3 / 4;
  }

  .services-grid
    .service-item:first-child:nth-last-child(5)
    ~ .service-item:nth-child(4) {
    grid-column: 2 / 3;
    grid-row: 2;
  }

  .services-grid
    .service-item:first-child:nth-last-child(5)
    ~ .service-item:nth-child(5) {
    grid-column: 3 / 4;
    grid-row: 2;
  }

  /* Définir la grille avec 4 colonnes pour centrer les 2 derniers éléments */
  .services-grid:has(.service-item:first-child:nth-last-child(5)) {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Alternative sans :has() pour une meilleure compatibilité */
@media (min-width: 992px) {
  .services-grid-5 {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }

  .services-grid-5 .service-item:nth-child(1) {
    grid-column: 1 / 2;
  }

  .services-grid-5 .service-item:nth-child(2) {
    grid-column: 2 / 3;
  }

  .services-grid-5 .service-item:nth-child(3) {
    grid-column: 3 / 4;
  }

  .services-grid-5 .service-item:nth-child(4) {
    grid-column: 2 / 3;
    grid-row: 2;
  }

  .services-grid-5 .service-item:nth-child(5) {
    grid-column: 3 / 4;
    grid-row: 2;
  }
}

/* Disposition spéciale pour les grilles avec exactement 6 cartes (3 en haut, 3 en bas) */
@media (min-width: 992px) {
  /* Détection automatique des grilles avec 6 éléments - approche plus robuste */
  .services-grid .service-item:first-child:nth-last-child(6),
  .services-grid .service-item:first-child:nth-last-child(6) ~ .service-item {
    /* Force la disposition pour 6 éléments */
  }

  .services-grid .service-item:first-child:nth-last-child(6) {
    grid-column: 1 / 2;
  }

  .services-grid
    .service-item:first-child:nth-last-child(6)
    ~ .service-item:nth-child(2) {
    grid-column: 2 / 3;
  }

  .services-grid
    .service-item:first-child:nth-last-child(6)
    ~ .service-item:nth-child(3) {
    grid-column: 3 / 4;
  }

  .services-grid
    .service-item:first-child:nth-last-child(6)
    ~ .service-item:nth-child(4) {
    grid-column: 1 / 2;
    grid-row: 2;
  }

  .services-grid
    .service-item:first-child:nth-last-child(6)
    ~ .service-item:nth-child(5) {
    grid-column: 2 / 3;
    grid-row: 2;
  }

  .services-grid
    .service-item:first-child:nth-last-child(6)
    ~ .service-item:nth-child(6) {
    grid-column: 3 / 4;
    grid-row: 2;
  }

  /* Force la grille à 3 colonnes pour les 6 éléments */
  .services-grid:has(.service-item:first-child:nth-last-child(6)) {
    grid-template-columns: repeat(3, 1fr) !important;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Alternative sans :has() pour une meilleure compatibilité */
  .services-grid-6 {
    grid-template-columns: repeat(3, 1fr) !important;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
  }
}

.service-item {
  background-color: var(--bg-color);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.service-item .service-icon {
  font-size: 3em;
  display: block;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.service-item h3 {
  font-size: 1.3em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.service-item p {
  color: var(--text-color);
  line-height: 1.6;
}

/* Section Avis Clients */
.testimonials-section {
  background-color: var(--bg-color);
  padding: 60px 20px;
  text-align: center;
}

.testimonials-section h2 {
  margin-bottom: 40px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.testimonial-item {
  background-color: var(--white-color);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-left: 5px solid var(--secondary-color);
}

.testimonial-item p {
  font-style: italic;
  color: var(--text-color);
  margin-bottom: 15px;
}

.testimonial-item h4 {
  font-size: 1em;
  color: var(--text-color);
  text-align: right;
  font-weight: 700;
  font-family: "Inter", sans-serif;
}

/* Section Zone Géographique */
.coverage-area-section {
  padding: 60px 20px;
  text-align: center;
  background-color: var(--white-color);
}

.coverage-area-section h2 {
  margin-bottom: 40px;
}

.coverage-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: flex-start;
  text-align: left;
}

.coverage-list {
  max-width: 900px;
  margin: 0 auto;
}

.coverage-list p {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.2rem;
}

.coverage-list ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.coverage-list ul li {
  background-color: var(--bg-color);
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.coverage-list ul li:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .coverage-content {
    grid-template-columns: 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
  }
}

.final-cta-section {
  background-color: var(--white-color);
  color: var(--text-color);
  padding: 60px 20px;

  text-align: center;
}

.final-cta-section h2 {
  color: var(--text-color);
  margin-bottom: 20px;
}

.final-cta-section p {
  margin-bottom: 30px;
  font-size: 1.2em;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta-section .cta-buttons .cta-button {
  background-color: var(--primary-color);
  color: var(--white-color);
  border: 2px solid var(--primary-color);
}

.final-cta-section .cta-buttons .cta-button:hover {
  background-color: var(--accent-color);
  color: var(--white-color);
  border-color: var(--accent-color);
}

.final-cta-section .cta-buttons .cta-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.final-cta-section .cta-buttons .cta-secondary:hover {
  background-color: var(--white-color);
  color: var(--primary-color);
  border-color: var(--white-color);
}

/* Navigation principale */
.main-nav {
  background-color: var(--white-color);
  padding: 10px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: 1400px;
  z-index: 1000;
}

.nav-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  z-index: 1001;
}

.nav-logo a {
  display: flex;
  align-items: center;
  text-decoration: none !important;
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  transition: transform 0.15s ease;
}

a.nav-logo:hover,
a.nav-logo:focus {
  color: inherit !important;
  background: none !important;
  background-color: transparent !important;
  transform: scale(1.08) rotate(2deg);
}

.nav-logo a:active {
  transform: scale(0.95) rotate(-1deg);
}

.nav-logo img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  transition: filter 0.15s ease;
}

.nav-logo:hover img {
  filter: brightness(1.1) saturate(1.2);
}

/* Menu principal */
.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-nav ul li {
  margin: 0 5px;
}

.main-nav ul li a {
  color: var(--primary-color);
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.main-nav ul li a:hover {
  background-color: var(--accent-color) !important;
  color: var(--white-color) !important;
}

.main-nav ul li a.active {
  background-color: var(--primary-color);
  color: var(--white-color);
}

/* Bouton hamburger - version définitive */
.hamburger-menu {
  display: none;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.hamburger-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-radius: 1px;
}

.hamburger-line:nth-child(1) {
  top: 6px;
}

.hamburger-line:nth-child(2) {
  top: 14px;
}

.hamburger-line:nth-child(3) {
  top: 22px;
}

/* Styles pour mobile */
@media (max-width: 1150px) {
  .main-nav {
    left: 0;
    transform: none;
    max-width: none;
    width: 100%;
    overflow-x: hidden;
  }

  /* Assurer que le nav-content ne déborde pas */
  .nav-content {
    width: 100%;
    max-width: 100%;
    padding: 0 60px 0 20px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
  }

  /* Afficher le bouton hamburger - position fixe pour éviter les décalages */
  .hamburger-menu {
    display: block;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
  }

  .hamburger-menu.active {
    transform: translateY(-50%);
  }

  /* Animation du hamburger avec effet élastique */
  .hamburger-menu.active .hamburger-line:nth-child(1) {
    top: 14px;
    transform: rotate(45deg);
    background-color: var(--accent-color);
  }

  .hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
  }

  .hamburger-menu.active .hamburger-line:nth-child(3) {
    top: 14px;
    transform: rotate(-45deg);
    background-color: var(--accent-color);
  }

  /* Menu mobile avec animations dynamiques */
  .main-nav ul {
    position: fixed;
    top: 80px;
    right: -320px;
    width: 260px;
    max-width: calc(100vw - 40px);
    height: calc(100vh - 80px);
    background-color: var(--white-color);
    flex-direction: column;
    padding: 20px 10px;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 20px 0 0 20px;
    transform: translateX(0);
    opacity: 0;
    visibility: hidden;
    display: flex;
  }

  .main-nav ul.active {
    right: 0;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  /* Animation séquentielle des éléments du menu */
  .main-nav ul li {
    margin: 8px 0;
    width: 100%;
    text-align: center;
    transform: translateX(50px);
    opacity: 0;
    transition: all 0.3s ease-out;
  }

  .main-nav ul.active li {
    transform: translateX(0);
    opacity: 1;
  }

  .main-nav ul.active li:nth-child(1) {
    transition-delay: 0.1s;
  }

  .main-nav ul.active li:nth-child(2) {
    transition-delay: 0.2s;
  }

  .main-nav ul.active li:nth-child(3) {
    transition-delay: 0.3s;
  }

  .main-nav ul.active li:nth-child(4) {
    transition-delay: 0.4s;
  }

  .main-nav ul.active li:nth-child(5) {
    transition-delay: 0.5s;
  }

  .main-nav ul.active li:nth-child(6) {
    transition-delay: 0.6s;
  }

  .main-nav ul li a {
    padding: 12px 15px;
    width: 100%;
    text-align: center;
    font-size: 0.9em;
    transition: all 0.2s ease-out;
    border-radius: 8px;
    margin: 2px 0;
    position: relative;
    overflow: hidden;
    will-change: transform;
    backface-visibility: hidden;
  }

  .main-nav ul li a::before {
    display: none;
  }

  .main-nav ul li a:hover,
  .main-nav ul li a:focus {
    background-color: var(--accent-color) !important;
    color: var(--white-color) !important;
    transform: translateX(8px);
    box-shadow: 0 3px 10px rgba(255, 140, 0, 0.3);
  }

  /* Overlay avec flou et animation */
  .menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 999;
  }

  .menu-overlay.active {
    display: block;
    opacity: 1;
  }

  /* Switch de texte large avec animation */
  .large-text-switch-item {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--medium-gray-color);
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
  }

  .main-nav ul.active .large-text-switch-item {
    transform: scale(1);
    transition-delay: 0.8s;
  }

  .large-text-switch-label {
    font-size: 0.85em;
  }
}

/* Ajustement pour les écrans larges */
@media (min-width: 1400px) {
  .main-nav {
    left: 50%;
    transform: translateX(-50%);
    max-width: 1400px;
  }
}

/* Ajustement du contenu pour la navigation fixe */
body {
  padding-top: 70px;
  overflow-x: hidden;
}

/* Suppression des anciens styles de debug */
.hamburger-menu::before,
.hamburger-menu::after {
  display: none;
}

/* Responsive pour les hero sections */
@media (max-width: 768px) {
  .hero {
    height: 35vh;
    min-height: 280px;
    padding: 30px 15px;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero::before {
    background-attachment: scroll;
  }

  .hero-content h1,
  .hero h1 {
    font-size: 1.6rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
  }

  .hero-content p,
  .hero p {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    margin-bottom: 1.5rem !important;
  }

  /* Masquer les boutons sur mobile pour économiser l'espace */
  .cta-buttons {
    display: flex;
    gap: 10px;
  }

  /* Styles spécifiques au carousel sur mobile */
  .carousel-arrow {
    display: none;
  }

  .carousel-navigation {
    bottom: 8px;
    gap: 12px;
  }

  .carousel-nav-btn {
    width: 15px !important;
    height: 15px !important;
    border-width: 2px;
    border-radius: 50% !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
  }

  .hero-content {
    max-width: 100%;
    padding: 0 10px 45px 10px; /* Padding bottom pour laisser place aux cercles */
  }

  /* Améliorer la visibilité des cercles sur mobile */
  .carousel-nav-btn {
    border-color: rgba(255, 255, 255, 0.8) !important;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50% !important;
    display: inline-block !important;
  }

  .carousel-nav-btn.active {
    border-color: var(--accent-color) !important;
    background: var(--accent-color);
  }

  .carousel-nav-btn::before {
    border-radius: 50% !important;
  }

  /* Barre de progression mobile - SUPPRIMÉE */
}

.site-footer {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 40px 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.site-footer h4 {
  color: var(--white-color);
  font-family: "Poppins", sans-serif;
  font-size: 1.2em;
  margin-bottom: 15px;
}

.footer-navigation ul,
.footer-legal ul {
  list-style: none;
  padding: 0;
}

.footer-navigation ul li,
.footer-legal ul li {
  margin-bottom: 10px;
}

.site-footer a {
  color: var(--white-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom a:hover {
  text-decoration: underline;
}

.photo-credits {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 10px;
}

.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Styles pour les pages spécifiques */
.page-content {
  max-width: 1400px;
  margin: 0 auto;
}

/* Sections après la hero doivent avoir une marge */
.page-content > section {
  margin-top: 0;
  padding: 60px 20px;
}

/* Alternance des backgrounds comme sur la page d'accueil */
.page-content > section:nth-child(odd) {
  background-color: var(--white-color);
}

.page-content > section:nth-child(even) {
  background-color: var(--bg-color);
}

.page-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-header h1 {
  margin-bottom: 10px;
}

.page-header p {
  font-size: 1.2rem;
  color: var(--text-color);
}

/* A Propos */
.about-content {
  background-color: var(--white-color);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.about-content h2 {
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.about-content h3 {
  color: var(--secondary-color);
  margin-top: 30px;
}

.about-content p {
  margin-bottom: 15px;
}

.about-cta {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 40px;
}

/* Contact Page */
.contact-section {
  text-align: center;
}

.contact-content {
  background-color: var(--white-color);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  max-width: 600px;
  margin: 20px auto;
}

.contact-info h3 {
  margin-top: 0;
  color: var(--primary-color);
}

.contact-detail {
  font-size: 1.2rem;
  margin: 15px 0;
}

.contact-detail a {
  font-weight: 600;
  color: var(--secondary-color);
}

.map-container {
  margin-top: 40px;
  border-radius: 8px;
  overflow: hidden;
}

/* Tarifs */
.tarifs-section {
  padding-bottom: 40px;
}
.tarifs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.tarifs-packs {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

@media (min-width: 992px) {
  .tarifs-packs {
    grid-template-columns: 1fr 1fr;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
}

.tarif-card {
  background: var(--white-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.tarif-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.tarif-card-header {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 20px;
  text-align: center;
}

.tarif-card-header h3 {
  margin: 0;
  color: var(--white-color);
  font-size: 1.4rem;
}

.tarif-card-body {
  padding: 25px;
  flex-grow: 1;
}

.tarif-card-body p {
  margin-bottom: 15px;
}

.tarif-card-body ul {
  list-style: "✔ ";
  padding-left: 10px;
  margin-bottom: 20px;
}

.tarif-card-body ul li {
  margin-bottom: 10px;
}

.tarif-card .prix {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin: 20px 0;
}

.tarif-card .note-tarif {
  font-size: 0.9rem;
  text-align: center;
  color: #666;
  margin-top: -10px;
}

.tarif-card-footer {
  text-align: center;
  padding: 0 25px 25px;
}

.tarif-card-body .duree-estimee {
  background-color: #e7f3ff;
  border-left: 3px solid #007bff;
  padding: 10px;
  margin-top: 15px;
  font-size: 0.9em;
  border-radius: 4px;
}

/* Informations complémentaires */
.informations-complementaires {
  background-color: var(--white-color);
  padding: 40px;
  border-radius: 8px;
  margin-top: 40px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.informations-complementaires h2 {
  text-align: center;
  margin-bottom: 30px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.info-item {
  text-align: center;
}

.info-item h4 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.info-item p {
  margin: 0;
}

.info-item a {
  color: var(--secondary-color);
  font-weight: bold;
}
.info-item a:hover {
  text-decoration: underline;
}

/* FAQ */
.faq-section {
  padding: 60px 20px;
  width: 100%;
  margin: 0 auto;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 40px;
}

.faq-item {
  background: var(--white-color);
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px var(--shadow-color);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-hover-color);
}

.faq-question {
  width: 100%;
  padding: 20px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.faq-question:hover {
  background-color: rgba(32, 64, 128, 0.05);
}

.faq-icon {
  width: 24px;
  height: 24px;
  position: relative;
  transition: transform 0.4s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background-color: var(--primary-color);
  border-radius: 2px;
  transition: all 0.4s ease;
}

.faq-icon::before {
  width: 2px;
  height: 16px;
  top: 4px;
  left: 11px;
}

.faq-icon::after {
  width: 16px;
  height: 2px;
  top: 11px;
  left: 4px;
}

.faq-question[aria-expanded="true"] .faq-icon::before {
  transform: rotate(90deg) scale(0);
}

.faq-question[aria-expanded="true"] .faq-icon::after {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer.active {
  max-height: 1000px;
  opacity: 1;
  transform: translateY(0);
  padding: 0 20px 20px;
}

.faq-answer p {
  margin: 0;
  color: var(--text-color);
  line-height: 1.6;
}

/* Animation pour l'apparition des FAQ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-item {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.faq-item:nth-child(1) {
  animation-delay: 0.1s;
}
.faq-item:nth-child(2) {
  animation-delay: 0.2s;
}
.faq-item:nth-child(3) {
  animation-delay: 0.3s;
}
.faq-item:nth-child(4) {
  animation-delay: 0.4s;
}
.faq-item:nth-child(5) {
  animation-delay: 0.5s;
}
.faq-item:nth-child(6) {
  animation-delay: 0.6s;
}
.faq-item:nth-child(7) {
  animation-delay: 0.7s;
}
.faq-item:nth-child(8) {
  animation-delay: 0.8s;
}
.faq-item:nth-child(9) {
  animation-delay: 0.9s;
}
.faq-item:nth-child(10) {
  animation-delay: 1s;
}

.special-mention {
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 15px;
}

.large-text-switch-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 0;
}

.large-text-switch-label {
  font-size: 0.9em;
  color: var(--text-color);
  font-weight: 600;
  line-height: 24px;
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 44px; /* smaller switch */
  height: 24px;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: var(--secondary-color);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--secondary-color);
}

input:checked + .slider:before {
  -webkit-transform: translateX(20px);
  -ms-transform: translateX(20px);
  transform: translateX(20px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 24px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Large Text Mode Styles */
html.large-text-mode {
  font-size: 18px; /* Augmente la taille de la police de base de ~12.5% (16px -> 18px) */
}

/* Visually hidden class for accessibility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Suppression des bordures orange de focus */
:focus,
button:focus,
.hamburger-menu:focus,
.faq-question:focus,
input:focus,
a:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Logo sans effet hover */
.nav-logo {
  z-index: 1001;
}

.nav-logo img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  transition: none;
}

/* Styles pour les liens */
a {
  color: var(--link-color);
  text-decoration: underline;
  transition: all 0.3s ease;
  font-weight: 500;
  padding: 0.1em 0.2em;
  border-radius: 3px;
}

a:hover,
a:focus {
  color: var(--white-color);
  background-color: var(--link-color);
  text-decoration: none;
}

/* Exception pour le logo - pas de background au hover */
.nav-logo a:hover,
.nav-logo a:focus,
.nav-logo a {
  color: inherit !important;
  background: none !important;
  background-color: transparent !important;
  padding: 0 !important;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  z-index: 100;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

/* Styles pour les liens "En savoir plus" */
.learn-more {
  display: inline-block;
  margin-top: 8px;
  font-weight: 500;
  color: var(--primary-color);
  background-color: var(--light-gray-color);
  padding: 4px 8px;
  border-radius: 4px;
  text-decoration: none;
}

.learn-more:hover,
.learn-more:focus {
  color: var(--white-color);
  background-color: var(--primary-color);
  text-decoration: none;
}

/* Styles pour le compteur de vues */
.view-counter-display {
  margin-top: 20px;
  opacity: 0.7;
  font-size: 0.9em;
}

.view-counter-display small {
  color: var(--white-color);
  font-style: italic;
}

/* Styles pour la politique de confidentialité */
.privacy-policy {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.privacy-policy h1 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.last-updated {
  color: #666;
  font-style: italic;
  margin-bottom: 30px;
}

.policy-content h2 {
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 10px;
}

.policy-content h3 {
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.policy-content p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.policy-content ul {
  margin-bottom: 20px;
  padding-left: 10px;
}

.policy-content ul li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--white-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cookie-table th,
.cookie-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--medium-gray-color);
}

.cookie-table th {
  background-color: var(--primary-color);
  color: var(--white-color);
  font-weight: 600;
}

.cookie-table tr:hover {
  background-color: var(--light-gray-color);
}

.contact-info {
  background: var(--light-gray-color);
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.contact-info p {
  margin-bottom: 10px;
}

.contact-info a {
  color: var(--primary-color);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9em;
  transition: all 0.2s ease;
  margin: 10px 5px;
}

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

.btn-primary:hover {
  background: #1a3566;
  transform: translateY(-1px);
}

/* Responsive pour la politique de confidentialité */
@media (max-width: 768px) {
  .privacy-policy {
    padding: 20px 15px;
  }

  .cookie-table {
    font-size: 0.9em;
  }

  .cookie-table th,
  .cookie-table td {
    padding: 8px;
  }
}

/* Règles spécifiques pour les balises h1 dans les éléments sémantiques */
article h1,
aside h1,
nav h1,
section h1 {
  font-size: 2rem !important; /* Taille de police uniforme pour les h1 dans les éléments sémantiques */
  line-height: 1.4 !important;
  margin-bottom: 1rem !important;
  color: var(--primary-color) !important;
  font-weight: 700 !important;
  font-family: "Poppins", sans-serif !important;
}

/* Règles spécifiques pour la page header */
.page-header h1,
section.page-header h1,
section.fade-in-section h1,
section.page-header.fade-in-section h1 {
  font-size: 2rem !important;
  line-height: 1.4 !important;
  color: var(--primary-color) !important;
  font-weight: 700 !important;
  font-family: "Poppins", sans-serif !important;
}

/* Règles ultra-spécifiques pour forcer la taille */
main section h1,
main .page-header h1,
main section.page-header h1,
main section.fade-in-section h1 {
  font-size: 2rem !important;
  line-height: 1.4 !important;
  color: var(--primary-color) !important;
  font-weight: 700 !important;
  font-family: "Poppins", sans-serif !important;
}

/* Responsive font-size pour les h1 dans les éléments sémantiques */
@media (max-width: 768px) {
  article h1,
  aside h1,
  nav h1,
  section h1,
  .page-header h1,
  section.page-header h1 {
    font-size: 1.75rem !important;
  }
}

/* Navigation desktop */
@media (min-width: 1151px) {
  .main-nav ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
  }

  .main-nav ul li {
    transition: all 0.3s ease-out;
  }

  .main-nav ul li:hover {
    transform: translateX(8px);
  }

  .main-nav ul li:hover a {
    background-color: var(--accent-color) !important;
    color: var(--white-color) !important;
  }

  .main-nav ul li a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
  }

  .main-nav ul li a:hover {
    background-color: var(--accent-color) !important;
    color: var(--white-color) !important;
  }
}

/* Styles spécifiques pour les listes de contenu - rapprocher le texte des puces */
.page-content ul,
.services-section ul,
.coverage-list ul {
  padding-left: 10px;
}

.page-content ol {
  padding-left: 10px;
}

/* Exception pour les listes dans coverage-list qui ont déjà un style spécial */
.coverage-list ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

/* Responsive pour très petits écrans */
@media (max-width: 480px) {
  .hero {
    height: 35vh;
    min-height: 250px;
    padding: 20px 10px;
  }

  .hero-content {
    max-width: 100%;
    padding: 0 10px;
  }

  .hero-content h1,
  .hero h1 {
    font-size: 1.3rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.8rem !important;
  }

  .hero-content p,
  .hero p {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    margin-bottom: 1rem !important;
  }

  .cta-buttons {
    gap: 8px;
    margin-bottom: 40px; /* Marge pour éviter le chevauchement avec les cercles */
  }

  .cta-button {
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  .carousel-navigation {
    bottom: 5px;
    gap: 10px;
  }

  .carousel-nav-btn {
    width: 16px !important;
    height: 16px !important;
    border-width: 2px;
    border-radius: 50% !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
  }
}
