/* reset de base pour enleer les marges par défaut */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* très important pour que les paddings ne fassent pas déborder tes boîtes */
}

/* 2. LA BASE  : On définit le style général du site */
body {
  font-family: "poppins", sans-serif;
  /*Ta police principale */
  line-height: 1.6;
  /* Pour que le texte soit aéré et lisible */
  color: #333;
  /* Un noir adouci, plus élegant que le noir pur */
  background-color: #fdfdfd;
  /* Un blanc casser très léger */
  overflow-x: hidden;
  /* Empêche le défilement horizontale parasite */
}

/* 3. LES LIENS : On enlève les soulignements bleus moches */
a {
  text-decoration: none;
  color: inherit;
  /* Le lien prend la couleur de son texte parent */
}

header {
  width: 100%;
  padding: 20px 50px;
  background-color: #1a2b4c; /* Ton bleu marine */
  position: sticky; /* Pour qu'il reste en haut en scrollant */
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

nav {
  display: flex;
  justify-content: space-between;
  /* Pousse le logo à gauche et la liste à droite */
  align-items: center;
}

nav ul {
  display: flex;
  /* Mets les liens les uns a cotée des autres */
  list-style: none;
}

nav ul li {
  margin-left: 30px;
  /* espace entre chaque mot du menu */
}

.logo {
  font-family: "playfair display", sans-serif;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 2px;
}

nav ul li a {
  font-family: "poppins", sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #333;
  transition: 0.3s;
  background-color: #f1f1f1;
  /* Une couleur de fond pour bien voir l'effet */
  padding: 10px 15px;
  /* Un peu de padding pour donner de l'espace */
  border-radius: 5px;
  /* C'est ici que la magie opère pour l'aarondi des bordures */
  transition: background-color 0.3s ease;
  /* Transistion douce */
  font-weight: bold;
}

nav ul li a:hover {
  color: #1a2b4c;

  background-color: #f96a04;
  /* Change la couleur de fond au survol */
}

/* --- SECTION HERO --- */
.hero {
  height: 100vh;
  /* Prend 100% de la largeur de l'ecran de l'utilisateur */
  width: 100%;

  /* l'image de fond avec un voila sombre pour que le texte blanc ressorte bien */
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url("https://images.unsplash.com/photo-15187806646697-55e3ad937233?q=80&w=2000&autoformat&fit=crop");

  background-size: cover;
  /* l'image remplit tout lespace sans se deformer */
  background-position: center;
  /* L'image reste centrée meme si on la reduit la fenetre */

  /* centrage du texte pile au milieu de l'image */
  display: flex;
  flex-direction: column;
  /* aligne le h1 et le p et le bouton verticalement */
  justify-content: center;
  /* centre verticalement */
  align-items: center;
  /* centre horizontalement */
  text-align: center;
  color: white;
  /* tout le etxte en blanc */
}

.hero h1 {
  font-family: "playfair display", serif;
  font-size: 70px;
  /* Un gros titre élégant */
  margin-bottom: 100px;
  letter-spacing: 2px;
}

.hero p {
  font-family: "poppins", sans-serif;
  font-size: 60%;
  font-weight: 300;
  margin-bottom: 30px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

/* LE BOUTON PRINCIPAL */
.btn-main {
  padding: 15px 35px;
  background-color: #f96a04;
  /* couleur doré, sable luxe */
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-family: "poppins", sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  transition: 0.4s ease;
}

.btn-main:hover {
  background-color: white;
  color: #f96a04;
  transform: scale(1.05);
  /* le bouton grossit très légèrement au survol */
}

/* --- PAGE SERVICES (Nouveau Design) --- */

/* --- BASE --- */
:root {
  --bg-white: white;
  --bronze: #f5f5f7;
  --text-dark: #1a1a1a;
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-white);
  color: var(--text-dark);
}

/* --- HEADER & LOGO --- */
.services-header {
  text-align: center;
  padding: 80px 20px 50px;
}

.mini-logo {
  width: 400px; /* Logo augmenté */
  margin: 0 auto 30px;
  display: block;
}

.services-header h1 {
  font-family: "Playfair Display", serif;
  font-size: 3.8rem;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 0.8rem;
  letter-spacing: 3px;
  color: #888;
  text-transform: uppercase;
  margin-top: -100px;
}

/* --- GRILLE 3x3 --- */
.container {
  max-width: 1300px; /* Plus large pour 3 colonnes */
  margin: 0 auto;
  padding-bottom: 80px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 COLONNES */
  gap: 25px;
  padding: 0 20px;
}

/* --- BOÎTES BRONZE --- */
.service-card {
  background-color: var(--bronze);
  padding: 40px 30px;
  border-radius: 20px;
  color: #1a1a1a;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  transform: translateZ(0); /* Sécurité pour la netteté */
  border: 1px solid #1a2b4c;
}

/* Survol sans flou */
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(191, 163, 126, 0.4);
}

.service-card .icon {
  font-size: 2.8rem;
  margin-bottom: 20px;
  display: block;
}

.service-card h2 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin-bottom: 15px;
  color: #1a2b4c;
}

.service-card ul {
  list-style: none;
  padding: 0;
}

.service-card li {
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: #1a1a1a (255, 255, 255, 0.9);
  position: relative;
  padding-left: 20px;
}

.service-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #f96a04;
}

/* --- BOUTON RETOUR --- */
.btn-back {
  position: absolute;
  top: 30px;
  left: 30px;
  text-decoration: none;
  color: #000;
  font-weight: 600;
  font-size: 0.9rem;
}

/* --- ADAPTATION MOBILE --- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  } /* 2 colonnes sur tablette */
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  } /* 1 colonne sur mobile */
  .services-header h1 {
    font-size: 2.5rem;
  }
}

/* --- SECTION PROCESSUS (A METTRE DANS STYLE.CSS) --- */
.process-section {
  margin-top: 100px;
  text-align: center;
  padding: 0 20px;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 2.8rem;
  margin-bottom: 60px;
  position: relative;
  display: inline-block;
  color: var(--text-dark);
}

/* Petite ligne sous le titre */
.section-title::after {
  content: "";
  width: 60px;
  height: 3px;
  background: var(--bronze);
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 50px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.step {
  padding: 20px;
  position: relative;
}

.step-number {
  font-family: "Playfair Display", serif;
  font-size: 4rem;
  color: #1a1a1a;
  font-weight: bold;
  display: block;
  margin-bottom: -20px;
}

.step h3 {
  font-family: "Poppins", sans-serif;
  font-size: 1.4rem;
  color: #1a2b4c;
  margin-bottom: 15px;
  font-weight: 600;
}

.step p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

/* --- BOUTON D'ACTION (CTA) --- */
.cta-container {
  text-align: center;
  margin: 100px 0;
}

.btn-cta {
  background-color: #f96a04;
  color: white;
  padding: 22px 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  border-radius: 60px;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 10px 20px rgba(191, 163, 126, 0.2);
}

.btn-cta:hover {
  background-color: white;
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(191, 163, 126, 0.4);
  color: #f96a04;
}

/* Correction pour mobile */
@media (max-width: 900px) {
  .process-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* --- NOUVEAU FOOTER GRIS CLAIR --- */
.main-footer {
  background-color: #1a2b4c; /* Le gris clair de tes cartes */
  color: white; /* Texte noir foncé */
  padding: 60px 20px;
  margin-top: 100px;
  text-align: center;
  width: 100%;
}

.footer-logo {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: white;
}

.footer-copyright {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 5px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: #f96a04;
  font-style: italic;
}

.about-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #ffffff;
}

.about-section h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  margin-bottom: 25px;
  color: #1a1a1a;
}

.about-section p {
  max-width: 850px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1.15rem;
  color: #444;
}

.about-section strong {
  color: #f96a04; /* Ton orange signature */
}

@media (max-width: 768px) {
  .service-card {
    text-align: center; /* Centre les titres et textes */
  }

  .service-card ul {
    display: inline-block; /* Permet à la liste de se centrer */
    text-align: left; /* Garde les puces alignées à gauche entre elles */
  }
}

.service-card {
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

/* Effet de légère montée quand on touche la carte sur téléphone */
.service-card:active {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* 1. État invisible au départ */
.service-card {
  opacity: 0;
  transform: translateY(50px) scale(0.9); /* Descendu et plus petit */
  transition: all 0.8s ease-out; /* Animation fluide de 0.8 seconde */
}

/* 2. État quand le script détecte le scroll (ajoute la classe .reveal) */
.service-card.reveal {
  opacity: 1;
  transform: translateY(0) scale(1); /* Remonte et reprend sa taille */
}

/* --- LE CONTENEUR (LA BANDE GRISE) --- */
.logo-slider {
  width: 100%;
  overflow: hidden;
  background: #f4f4f4; /* Gris clair pour bien le voir */
  padding: 60px 0;
  margin-top: 40px;
  border-top: 2px solid #ddd;
  display: block !important; /* Force l'affichage */
}

/* --- LE RAIL QUI BOUGE --- */
.logo-track {
  display: flex;
  width: calc(250px * 20); /* 20 logos de 250px */
  animation: scrollInfinite 20s linear infinite;
}

/* --- CHAQUE EMPLACEMENT DE LOGO --- */
.logo-item {
  width: 250px;
  height: 80px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- LE DESIGN DES LOGOS (FORCE L'APPARITION) --- */
[class^="logo-v"] {
  width: 120px;
  height: 45px;
  display: block !important;
  border-radius: 8px;
  position: relative;
}

/* --- LE DESIGN DES LOGOS MODERNES, FLUIDES ET COLORÉS --- */

/* Base commune pour tous les logos abstraits */
[class^="logo-v"] {
  display: block !important;
  position: relative;
  border-radius: 50%; /* La plupart seront basés sur des formes fluides/circulaires */
  transition: transform 0.3s ease;
}

.logo-item:hover [class^="logo-v"] {
  transform: scale(1.1) translateY(-5px);
}

@keyframes scrollInfinite {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-250px * 10));
  }
}

/* --- LE NOUVEAU STYLE DU BOUTON RETOUR --- */
.btn-back {
  display: inline-flex;
  align-items: center;
  text-decoration: none;

  /* Les couleurs demandées */
  background-color: #002e5b; /* Ton bleu foncé Jo Créative */
  color: #ffffff; /* Texte blanc pur */

  /* Design et padding */
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 50px; /* Pour un look bouton arrondi et moderne */
  border: none; /* On enlève la bordure grise précédente */

  /* Transition pour l'effet au survol */
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;

  /* Un petit espacement par rapport au texte "Accueil" qui suit */
  margin-right: 10px;
}

/* --- EFFET AU SURVOL (HOVER) --- */
.btn-back:hover {
  background-color: white; /* Change en orange Jo Créative au survol ! */
  transform: translateX(-3px); /* Petit mouvement vers la gauche pour l'effet */
  color: #002e5b; /* On s'assure que le texte reste blanc */
  border-color: #002e5b;
}

/* --- BOUTON WHATSAPP FLOTTANT --- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  padding: 15px 25px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: translateY(-5px);
  background-color: #128c7e;
  color: white;
}

/* Sur mobile, on peut réduire un peu la taille si besoin */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    padding: 12px 18px;
  }
}

/* --- SECTION STATS & AVIS (RÉASSURANCE) --- */
.trust-section {
  padding: 30px 20px 20px 20px; /* On réduit un peu le padding du bas */
  padding-bottom: 10px;
  text-align: center;
  background-color: white;
  border: none; /* On enlève la bordure pour que la fusion soit parfaite */
  margin-bottom: 0; /* Force l'absence de marge en bas */
}

.stats-container {
  display: flex;
  justify-content: center;
  gap: 80px; /* Espace entre les deux compteurs */
  margin-bottom: 80px;
  background-color: #1a2b4c;
  padding-top: 80px;
  padding-bottom: 80px;
  border-radius: 30px;
  margin-left: 20px;
  margin-right: 20px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: white; /* Ton bleu foncé pro */
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 10px;
}

/* --- GRILLE DES AVIS --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colonnes sur PC */
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.testimonial-item {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.testimonial-item:hover {
  transform: translateY(-5px);
}

.testimonial-item p {
  font-size: 1rem;
  font-style: italic;
  color: #444;
  margin-bottom: 15px;
}

.testimonial-item span {
  font-weight: 600;
  color: #ff6b00;
  font-size: 0.85rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: 1fr; /* 1 seule colonne sur mobile */
    max-width: 400px;
  }
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 600px) {
  .stats-container {
    flex-direction: column;
    gap: 30px;
  }

  .stat-number {
    font-size: 2.5rem;
  }
}

.testimonial-slider {
  width: 100%;
  overflow: hidden; /* Cache les avis qui dépassent */
  position: relative;
}

.testimonial-track {
  display: flex;
  width: 300%; /* 6 avis = 300% */
  transition: transform 0.6s ease-in-out;
}

.testimonial-card {
  width: 33.333%; /* Chaque carte prend 1/3 du rail (donc 100% de l'écran) */
  flex-shrink: 0;
  padding: 40px 20px;
  text-align: center;
  box-sizing: border-box;
}

.testimonial-card p {
  font-size: 1.2rem;
  font-style: italic;
  color: #444;
  margin-bottom: 15px;
}

.testimonial-card span {
  color: #1a2b4c;
  font-weight: 700;
}

.stat-number-wrapper {
  display: flex;
  justify-content: center;
  align-items: baseline;
}

.dots-container {
  text-align: center;
  position: relative;
  z-index: 9999 !important; /* Passe au-dessus de TOUT */
  margin-top: -20px; /* Remonte un peu les points sur le bloc blanc */
  padding-bottom: 40px; /* Donne de l'air avant le footer */
  display: block !important;
  height: 30px;
  width: 100%;
  clear: both;
}

.dot {
  height: 8px;
  width: 8px;
  margin: 0 4px;
  background-color: red;
  border-radius: 50%;
  display: inline-block;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: #ff6b00; /* Ton orange */
  width: 20px; /* Effet étiré pour l'avis en cours */
  border-radius: 10px;
}

html {
  scroll-behavior: smooth;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* La grande boîte bleue */
.about-section {
  background-color: #1a2b4c !important; /* Ton bleu marine */
  color: #ffffff !important; /* Texte blanc */
  padding: 60px 30px !important; /* Espace interne */
  margin: 50px 20px !important; /* Espace externe */
  border-radius: 30px !important; /* Bords bien arrondis */
  text-align: center !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
}

/* Le titre H2 à l'intérieur */
.about-section h2 {
  color: #ffffff !important;
  font-size: 2.2rem !important;
  margin-bottom: 20px !important;
  font-family: "Playfair Display", serif; /* Ou ta police de titres */
}

/* Le texte P à l'intérieur */
.about-section p {
  color: #ffffff !important;
  font-size: 1.2rem !important;
  line-height: 1.8 !important;
  max-width: 850px !important;
  margin: 0 auto !important;
}

/* Tes mots clés en orange (ceux entre <strong>) */
.about-section strong {
  color: #ff6b00 !important; /* Ton orange */
  font-weight: bold !important;
}

/* 1. Mettre le nom "JO CRÉATIVE" en blanc */
header .logo {
  color: #ffffff !important;
  font-weight: bold;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* 2. Style des boutons (Liens du menu) en blanc */
header nav ul li a {
  color: #ffffff !important; /* Texte blanc */
  text-decoration: none !important;
  padding: 10px 15px;
  border-radius: 8px;
  transition: all 0.3s ease; /* Animation fluide pour le survol */
  font-weight: 500;
  background: transparent; /* On enlève le fond blanc actuel */
  border: none !important; /* On enlève les cadres blancs */
}

/* 3. Effet au survol (Hover) : devient Orange */
header nav ul li a:hover {
  color: #ff6b00 !important; /* Ton orange */
  background: rgba(255, 255, 255, 0.1); /* Un très léger voile blanc au fond */
}

/* FORCE LE BLEU ET BLANC SUR TOUS LES ÉCRANS (MOBILE INCLUS) */
header {
  background-color: #1a2b4c !important; /* Ton bleu marine */
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 10px 20px !important;
  width: 100% !important;
  height: auto !important;
}

header .logo {
  color: #ffffff !important; /* Nom en blanc */
}

header nav ul {
  display: flex !important;
  flex-direction: row !important; /* Garde les boutons alignés */
  gap: 10px !important;
  background: transparent !important;
}

header nav ul li a {
  color: #ffffff !important; /* Boutons en blanc */
  font-size: 0.85rem !important; /* Plus petit pour mobile */
  background: transparent !important;
  border: none !important;
}

.letter {
  display: inline-block;
  opacity: 0; /* Les lettres sont invisibles au début */
  transform: translateY(10px); /* Elles sont légèrement décalées vers le bas */
  color: #e0e0e0;
  transition: all 0.4s ease; /* "all" permet d'animer l'opacité ET la position */
}

.letter.active {
  opacity: 1; /* Elles deviennent visibles */
  transform: translateY(0); /* Elles remontent à leur place */
  color: #1a2b4c; /* Ton bleu marine */
}

/* Définition de l'animation de clignotement */
@keyframes flicker-orange {
  0%,
  100% {
    color: #444; /* Ta couleur grise de départ */
    opacity: 1;
  }
  50% {
    color: #ff6b00; /* Ton orange Jo Créative */
    opacity: 0.9; /* Léger changement d'opacité pour le "clignotement" */
  }
}

/* La classe à appliquer sur ton texte */
.blink-orange {
  animation: flicker-orange 2s infinite ease-in-out; /* 2 secondes, boucle infinie, fluide */
  font-weight: 600; /* Un peu plus gras pour que ça ressorte mieux */
}

.tagline {
  margin-top: -100px !important; /* Ajuste le chiffre selon tes goûts */
  margin-bottom: 100px;
  font-size: 0.9rem; /* Optionnel : réduit légèrement la taille pour plus d'élégance */
  letter-spacing: 1px; /* Optionnel : espace un peu les lettres pour le style */
}

/* Style de base des numéros (Gris) */
.step-number {
  color: #f96a04;
  display: inline-block;
  /* État de départ : invisible et décalé vers le bas */
  opacity: 1;
  transform: translateY(20px) scale(0.9);
  transition: all 0.8s ease-out; /* Animation plus douce */
  margin-bottom: 5px;
}

/* État final quand le JS ajoute la classe .active */
.step-number.active {
  color: #ff6b00;
  opacity: 1;
  transform: translateY(0) scale(1.1);
}

/* Style quand le numéro est "actif" (Orange) */
.step-number.active {
  color: #ff6b00; /* Ton orange Jo Créative */
  transform: scale(1.1); /* Il grossit légèrement */
  filter: blur(0);
  font-weight: bold;
}

.votre-conteneur-hero {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centre horizontalement */
  justify-content: center; /* Centre verticalement */
  text-align: center;
  gap: 20px; /* Ajoute un espace constant entre le texte et le bouton */
  height: 100vh;
}
