* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
--primary: #2F4F4F;
--secondary: #708090;
--accent: #A9A9A9;
    --text: #1e293b;
    --text-light: #64748b;
--bg: #ffffff;
--bg-alt: #f5f7fa;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo img {
height: 50px;
width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 150px 2rem 100px;
    margin-top: 60px;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    font-weight: 300;
}

.hero .tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: white;
    color: var(--primary);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 2rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 700;
}

.section-intro {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 800px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--bg-alt);
    padding: 2.5rem;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e2e8f0;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}


.timeline {
    margin-top: 3rem;
    position: relative;
}

.timeline-item {
    margin-bottom: 3rem;
    padding-left: 3rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--secondary);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--secondary);
}

.timeline-item h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.timeline-item .period {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-item .company {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 1rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 1.1rem;
}

.contact {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.contact h2 {
    color: white;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-item {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
}

.contact-item a:hover {
    opacity: 1;
    text-decoration: underline;
}

footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 2rem;
}

footer p {
    opacity: 0.8;
}

.menu-toggle {
display: none;
background:none;
border:0;
font-size:1.6rem;
color:#fff;
}

@media (max-width: 768px) {
.menu-toggle {
display: block;
}

.nav-links {
    display: none;
    position: absolute;
    top: 100%; /* Se place juste sous la barre de nav */
    left: 0;
    right: 0; /* Prend toute la largeur */
    width: 100%;
    background: var(--primary); /* Fond uni pour la lisibilité */
    flex-direction: column;
    align-items: center; /* Centre le texte */
    padding: 2rem;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.nav-links.is-open {
display: flex;
}

    .hero {
        padding: 100px 1.5rem 60px; /* Réduit drastiquement l'espace vide */
        margin-top: 0; /* Évite le double espacement avec le header fixe */
    }

    section {
        padding: 40px 1.5rem; /* Réduit l'espace entre toutes les sections */
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

/* Lang menu */
.has-dropdown { position: relative; }
.lang-toggle {
background: none;
    border: 0;
color: #fff;
font: inherit;
cursor: pointer;
}

.dropdown {
display: none;
position: absolute; right: 0; top: calc(100% + 8px);
background: rgba(255,255,255,0.95);
border: 1px solid #e2e8f0; border-radius: 12px;
box-shadow: 0 10px 30px rgba(0,0,0,0.12);
padding: .5rem; list-style: none; min-width: 140px;
}

.dropdown a {
display: block; padding: .5rem .75rem; text-decoration: none;
color: var(--text);
}

.dropdown a:hover { background: #f1f5f9; border-radius: 8px; }
.has-dropdown.open > .dropdown { display: block; }

}

.hero-logo {
    height: 250px; /* Taille par défaut sur PC */
    width: auto;
    max-width: 100%; /* Empêche de dépasser la largeur de l'écran */
    object-fit: contain;
}

/* Dans la media query mobile existante (vers la fin du fichier) */
@media (max-width: 768px) {
    .hero-logo {
        height: auto;      /* Laisse la hauteur s'adapter */
        max-height: 150px; /* Réduit la taille visuelle sur mobile */
        margin-bottom: 2rem;
    }
}


/* =========================================
  --- SCROLL HORIZONTAL (Style iPhone) ---
 ========================================= */
.horizontal-scroll-wrapper {
 display: flex;            /* Aligne les cartes côte à côte */
 overflow-x: auto;         /* Permet le scroll horizontal */
 gap: 15px;
 padding: 10px 5px;
 scroll-snap-type: x mandatory; /* Aimantage des cartes */
 scrollbar-width: none;    /* Cache la barre sur Firefox */
}

.horizontal-scroll-wrapper::-webkit-scrollbar {
 display: none;            /* Cache la barre sur Chrome/Safari */
}

.scroll-item {
 min-width: 85%;           /* Garde la carte suivante visible */
 flex-shrink: 0;           /* Empêche l'écrasement de la carte */
 scroll-snap-align: center;
}

/* Conteneur d'image pour qu'elle ne déforme pas la carte */
.scroll-item .illustration {
 width: 100%;
 max-width: 100%;
 overflow: hidden;
 border-radius: 12px;
}

.scroll-item .illustration img {
 width: 100%;
 height: auto;
 display: block;
 object-fit: cover;
}

/* Conteneur de texte pour qu'elle ne déforme pas la carte */
.scroll-item .info-text {
 font-size: var(--text-sm);
 color: #444;
 line-height: 1.5;
 margin: 10px 0;

 /* Les gardes-fous : */
 width: 100%;
 max-width: 100%;
 word-wrap: break-word;
 overflow-wrap: break-word;


}



/* On réutilise vos styles existants pour les cartes à l'intérieur */
.scroll-item .info-card {
margin: 0; /* On retire les marges auto pour ne pas casser le flex */
height: 100%;
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Container parent pour grouper scroll + dots */
.horizontal-scroll-container {
margin-bottom: 20px;
}

/* Les points indicateurs */
.scroll-dots {
display: flex;
justify-content: center;
gap: 8px;
margin-top: 10px;
}

.dot {
width: 8px;
height: 8px;
border-radius: 50%;
background-color: #ccc; /* Couleur inactive */
transition: all 0.3s ease;
display: inline-block;
}

.dot.active {
background-color: #007aff; /* Bleu Apple */
transform: scale(1.2);
width: 12px; /* Optionnel : effet pilule pour le point actif */
border-radius: 4px;
}

/* Style du texte indicateur */
.scroll-hint {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
position: absolute;
right: 15px;
top: 50%;
transform: translateY(-50%);
color: #007aff;
font-weight: bold;
font-size: 0.8rem;
pointer-events: none; /* Ne bloque pas le clic */
z-index: 10;
background: rgba(255, 255, 255, 0.8);
padding: 8px;
border-radius: 20px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
transition: opacity 0.5s ease;
}

/* L'animation de la flèche */
.arrow-bounce {
font-size: 1.5rem;
animation: bounceRight 1.5s infinite;
}

@keyframes bounceRight {
0%, 20%, 50%, 80%, 100% {transform: translateX(0);}
40% {transform: translateX(8px);}
60% {transform: translateX(4px);}
}

/* Masquer la flèche quand on commence à scroller */
.scroll-hint.hidden {
opacity: 0;
}

/* --- LE SECRET DU SCROLL HORIZONTAL --- */
.horizontal-scroll-wrapper {
display: flex;            /* Aligne les cartes horizontalement */
overflow-x: auto;         /* Active le défilement */
gap: 15px;                /* Espace entre les cartes */
padding: 10px 0 20px 0;
scroll-snap-type: x mandatory; /* Aimantage au centre */
scrollbar-width: none;    /* Cache la barre de défilement */
-ms-overflow-style: none;
}

.horizontal-scroll-wrapper::-webkit-scrollbar {
display: none; /* Cache la barre sur Chrome/Safari */
}

.scroll-item {
/* Réglage à 80% pour laisser 20% de visibilité à la carte suivante */
max-width: 60%;
flex-shrink: 0;           /* EMPÊCHE les cartes de s'écraser */
scroll-snap-align: center;
}

/* On force l'info-card à prendre toute la place de son scroll-item */
.scroll-item .info-card {
margin: 0;
height: 100%;
}

.scroll-item .service-card {
    margin: 0;
    height: 100%;      /* Force la carte à prendre toute la hauteur disponible */
    display: flex;     /* Permet d'aligner le contenu */
    flex-direction: column;
    justify-content: space-between; /* Pousse le contenu pour que tout soit aligné */
}

/* --- AMÉLIORATION PC --- */

/* On n'affiche la barre que sur les écrans larges (PC) */
@media (min-width: 1024px) {
  .horizontal-scroll-wrapper {
      scrollbar-width: thin; /* Pour Firefox */
      scrollbar-color: #007aff #f0f0f0;
      padding-bottom: 30px; /* Plus d'espace pour la barre */
  }

  /* Style de la barre pour Chrome/Safari/Edge */
  .horizontal-scroll-wrapper::-webkit-scrollbar {
      display: block; /* On la réaffiche sur PC */
      height: 6px;
  }

  .horizontal-scroll-wrapper::-webkit-scrollbar-track {
      background: #f1f1f1;
      border-radius: 10px;
  }

  .horizontal-scroll-wrapper::-webkit-scrollbar-thumb {
      background: #007aff;
      border-radius: 10px;
  }

  /* Effet de zoom au survol sur PC */
  .scroll-item {
      max-width: 350px;
      min-width: 350px;
      transition: transform 0.3s ease;
      cursor: grab;
  }

  .scroll-item:hover {
      transform: translateY(-5px);
  }

  .scroll-dots .dot:nth-child(n+3) {
      display: none;
  }

}
