:root{
  --bg:#0b0f12;
  --panel:#0f1418;
  --card:#12181e;
  --muted:#ffffff;
  --text:#e9f1f1;
  --primary:#0ea765;
  --primary-600:#0a8b56;
  --accent:#13d19a;
  --ring:rgba(19,209,154,0.25);
  --radius:14px;
  --shadow:0 10px 30px rgba(0,0,0,.35);
  --font:"Inter",system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial;
  --space:clamp(16px, 2vw, 28px);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; font-family:var(--font); color:var(--text); background:linear-gradient(180deg,#0a0e12 0%, #0b1115 60%, #0b0f12 100%);
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
img{max-width:100%; display:block}
a{color:inherit; text-decoration:none}
.container{width:min(1180px, 92%); margin-inline:auto}
.narrow{width:min(780px, 92%); margin-inline:auto}
.section{padding: clamp(64px, 10vw, 112px) 0}
.section--alt{background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0) 40%)}
.section-title{font-size:clamp(26px,3vw,36px); margin:0 0 20px}
.lead{color:var(--muted); font-size:clamp(16px,2.2vw,18px)}
.grid-2{display:grid; grid-template-columns:1.2fr 1fr; gap: clamp(20px,3vw,36px)}
.grid-3{display:grid; grid-template-columns:repeat(3,1fr); gap: clamp(18px,2vw,22px)}
@media (max-width:960px){.grid-2{grid-template-columns:1fr}.grid-3{grid-template-columns:1fr 1fr}}
@media (max-width:640px){.grid-3{grid-template-columns:1fr}}

.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(11,15,18,.6); backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid rgba(255,255,255,0.06);
}
.header-inner{display:flex; align-items:center; justify-content:space-between; padding:12px 0}
.brand{display:flex; align-items:center; gap:10px; font-weight:700}
.logo{display:grid; place-items:center; width:36px; height:36px; border-radius:10px; background:linear-gradient(135deg,var(--primary),var(--accent)); color:#04120c}
.nav{display:flex; gap:16px; align-items:center}
.nav a{padding:8px 10px; color:var(--muted)}
.nav a:hover{color:var(--text)}
.nav .btn{margin-left:6px}
.nav-toggle{display:none; background:none; border:0; color:var(--text); font-size:22px}
.lang-switch{display:flex; gap:6px}
.lang-switch button{
  background:transparent; border:1px solid rgba(255,255,255,0.08); color:var(--muted);
  padding:6px 10px; border-radius:10px; cursor:pointer
}
.lang-switch button[aria-pressed="true"]{border-color:var(--primary); color:var(--text)}

@media (max-width:900px){
  .nav{display:none}
  .nav-toggle{display:block}
}

.hero{position:relative; overflow:hidden}
.hero-bg::before, .hero-bg::after{
  content:""; position:absolute; inset:-20%;
  background:
    radial-gradient(600px 300px at 10% 20%, rgba(19,209,154,.12), transparent 60%),
    radial-gradient(800px 400px at 90% 30%, rgba(14,167,101,.10), transparent 60%);
  animation: float 22s ease-in-out infinite alternate;
}
@keyframes float{from{transform:translateY(-10px)} to{transform:translateY(10px)}}
.hero .card{margin-top:10px}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border:1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(16px,2.2vw,20px);
}
.card--glass{
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
}
.stats{display:grid; grid-template-columns:repeat(3,1fr); gap:10px; text-align:center}
.stats strong{font-size:20px; color:#d7fff2}
.map-placeholder{height:160px; background:repeating-linear-gradient(45deg, #0e1419, #0e1419 10px, #0f151b 10px, #0f151b 20px);
  border-radius:12px; display:grid; place-items:center; color:var(--muted)}
.map-placeholder.large{height:280px}
.map-card{display:grid; grid-template-columns:1fr 1fr; gap:20px}
@media (max-width:900px){.map-card{grid-template-columns:1fr}}

.tag{
  display:inline-block; padding:8px 10px; border-radius:999px;
  background:rgba(14,167,101,0.12); color:#bff7e4; border:1px solid rgba(19,209,154,0.25);
  margin:6px 6px 0 0; font-size:14px
}

.btn{
  --bg: var(--primary);
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px; padding:10px 14px; border-radius:12px; border:1px solid transparent;
  background:var(--bg); color:#04120c; font-weight:600; cursor:pointer; transition:transform .08s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 6px 16px rgba(14,167,101,.25);
}
.btn:hover{transform:translateY(-1px)}
.btn--primary{--bg: linear-gradient(135deg,var(--primary),var(--accent))}
.btn--secondary{--bg:#0c1418; color:#d9f7ee; border-color:rgba(255,255,255,0.08); box-shadow:none}
.btn--ghost{--bg:transparent; color:var(--text); border-color:rgba(255,255,255,0.12); box-shadow:none}
.btn--lg{padding:12px 18px; border-radius:14px}

.form{display:grid; gap:16px}
.form.row{grid-template-columns:1fr auto; align-items:end}
.form.grid-2{grid-template-columns:1fr 1fr}
.form .full{grid-column:1 / -1}
@media (max-width:700px){.form.grid-2{grid-template-columns:1fr}}
.field{display:grid; gap:8px}
.field input, .field textarea, .field select{
  width:100%; padding:12px 14px; border-radius:12px; border:1px solid rgba(255,255,255,0.08);
  background:#0c1116; color:var(--text); outline: none; transition:border .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus{
  border-color:var(--primary); box-shadow:0 0 0 6px var(--ring)
}
.form-hint{color:var(--muted); margin-top:6px; min-height:1.2em}

.site-footer{
  border-top:1px solid rgba(255,255,255,0.06);
  background:rgba(10,14,18,.6); backdrop-filter: blur(8px);
  padding:22px 0; color:var(--muted)
}
.footer-inner{display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap}
.meta{font-size:14px}

.reveal{opacity:0; transform: translateY(14px); transition: all .6s cubic-bezier(.2,.65,.2,1)}
.reveal.is-visible{opacity:1; transform:none}

/* RTL support for Arabic */
:root[dir="rtl"] body{direction:rtl}
:root[dir="rtl"] .nav, :root[dir="rtl"] .footer-inner {flex-direction: row-reverse}


/* Couleur par défaut */
.nav a {
  color: #ffffff; /* Blanc par défaut */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Couleur au survol */
.nav a:hover {
  color: #1dbf73; /* Vert premium au survol */
  transform: translateY(-2px);
}
.nav a:hover {
  color: #0e613a;
  transform: translateY(-2px);
  transition: color 0.3s ease, transform 0.3s ease;
}
/* Style de base pour toutes les cartes FR, EN, AR */
.fr, .en, .ar {
  background: #fff;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Effet au survol */
.fr:hover, .en:hover, .ar:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15),
              0 0 15px rgba(29,191,115,0.4); /* Lueur verte */
}
/* Style de base */
.lang-switch {
  display: flex;
  gap: 0.5rem;
}

.lang-switch button {
  background: transparent;
  border: 2px solid #1dbf73; /* Vert premium */
  color: #1dbf73;
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Effet au survol */
.lang-switch button:hover {
  background-color: #1dbf73;
  color: #fff;
  transform: translateY(-2px);
}

/* Langue active */
.lang-switch button[aria-pressed="true"] {
  background-color: #1dbf73;
  color: #fff;
  box-shadow: 0 0 10px rgba(29,191,115,0.5);
}
html {
  scroll-behavior: smooth;
}
.overlay-bug {
  pointer-events: none; /* laisse passer les clics */
}
.cta {
  position: relative;
  z-index: 999;
}
.bg-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(600px 300px at 10% 20%, rgba(19,209,154,.12), transparent 60%),
    radial-gradient(800px 400px at 90% 30%, rgba(14,167,101,.10), transparent 60%);
  animation: float 22s ease-in-out infinite alternate;
  z-index: -1;
  pointer-events: none;
}
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: -2;
  pointer-events: none;
}

.stars::before, .stars::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(1px 1px at 5% 10%, white, transparent),
    radial-gradient(1px 1px at 15% 80%, white, transparent),
    radial-gradient(1px 1px at 25% 30%, white, transparent),
    radial-gradient(1px 1px at 35% 60%, white, transparent),
    radial-gradient(1px 1px at 45% 20%, white, transparent),
    radial-gradient(1px 1px at 55% 90%, white, transparent),
    radial-gradient(1px 1px at 65% 40%, white, transparent),
    radial-gradient(1px 1px at 75% 70%, white, transparent),
    radial-gradient(1px 1px at 85% 15%, white, transparent),
    radial-gradient(1px 1px at 95% 50%, white, transparent),
    radial-gradient(1px 1px at 10% 50%, white, transparent),
    radial-gradient(1px 1px at 20% 15%, white, transparent),
    radial-gradient(1px 1px at 30% 75%, white, transparent),
    radial-gradient(1px 1px at 40% 45%, white, transparent),
    radial-gradient(1px 1px at 50% 5%, white, transparent),
    radial-gradient(1px 1px at 60% 85%, white, transparent),
    radial-gradient(1px 1px at 70% 25%, white, transparent),
    radial-gradient(1px 1px at 80% 55%, white, transparent),
    radial-gradient(1px 1px at 90% 35%, white, transparent),
    radial-gradient(1px 1px at 98% 80%, white, transparent);
  background-size: 100% 100%;
  animation: moveStars 120s linear infinite;
  opacity: 0.7;
}

.stars::after {
  animation-duration: 240s;
  opacity: 0.4;
}

@keyframes moveStars {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 30px; /* adapte la taille */
  width: auto;
}
.section-title {
  text-align: center; /* Centre le texte */
  font-size: 2.5rem;   /* Taille plus grande */
  font-weight: 700;    /* Gras pour impact */
  
  /* Dégradé vert premium */
  background: linear-gradient(90deg, #cbb383, #00cc66);
  
  /* Compatibilité : préfixe + standard */
  -webkit-background-clip: text; /* Chrome, Safari, Edge */
  background-clip: text;         /* Standard */
  
  -webkit-text-fill-color: transparent; /* Chrome, Safari, Edge */
  color: transparent;                   /* Standard */
  
  /* Optionnel : ombre pour relief */
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.section-title {
  text-align: center; /* Centre le titre */
  margin-bottom: 50px; /* Espace sous le titre */
}

.section .lead,
.section p {
  text-align: center; /* Centre le texte */
  max-width: 800px;   /* Largeur max pour une meilleure lisibilité */
  margin: 0 auto 40px auto; /* Centre horizontalement + espace en bas */
}

.footer-express {
  background: rgba(10,14,18,0.9);
  color: var(--muted);
  padding: 50px 0 20px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h3 {
  color: var(--accent);
  margin-bottom: 10px;
}

.footer-col h4 {
  color: var(--text);
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-logo {
  max-width: 120px;
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 15px;
  text-align: center;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--muted);
}

.footer-bottom a:hover {
  color: var(--accent);
}
.about-header {
  text-align: center;
}

.about-logo {
  max-width: 120px; /* taille du logo */
  height: auto;
  margin-bottom: 30px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  transition: transform 0.3s ease;
}

.about-logo:hover {
  transform: scale(1.05);
}
.map-wrapper {
  text-align: center;
  margin-top: 30px;
}

.map-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.map-image:hover {
  transform: scale(1.02);
}

.stats {
  margin-bottom: 40px; /* espace entre les stats et la photo */
}
.map-placeholder {
  text-align: center;
}

.map-image {
  max-width: 100%;
  height: auto;
  height: 250px;
  object-fit: cover; /* recadre l'image sans la déformer */
  border-radius: 8px;
  align-items: center; /* centre verticalement */
  justify-content: center;
  transition: transform 0.3s ease;
}

.map-image:hover {
  transform: scale(1.02);
}
.map-image {
  filter: drop-shadow(0 0 8px rgba(0,255,150,0.4));
}
.map-placeholder {
  background: none; /* supprime le fond noir */
  padding: 0;       /* enlève le padding si besoin */
}
.map-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* recadre proprement */
  border-radius: 12px;
}

.map-placeholder.large {
  position: relative;
  width: 100%;
  height: 280px;         /* hauteur fixe */
  overflow: hidden;      /* coupe tout ce qui dépasse */
  border-radius: 12px;
}

.map-placeholder.large img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* remplit le cadre sans déformer */
  object-position: center; /* centre l'image verticalement et horizontalement */
  display: block;
}

.service-logo {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.card:hover .service-logo {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px var(--main-green));
}
.card {
  text-align: center;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(18px, 2vw, 22px);
}

.service-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(16px, 2.2vw, 20px);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.service-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.service-card h4 {
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--accent);
}

.service-card p {
  margin: 0;
  color: var(--text);
}
.contact-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 4px rgba(0,255,128,0.4));
}

.service-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(16px, 2.2vw, 20px);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}
.service-card {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centre horizontalement */
  justify-content: flex-start;
  text-align: center;
}

.service-card img.contact-icon,
.service-card i {
  display: block;
  margin: 0 auto 12px auto; /* Centre + espace en bas */
}
.services-note {
  max-width: 800px;
  margin: 1.5rem auto 0;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-secondary, #ccc);
  line-height: 1.6;
  animation: fadeInUp 0.8s ease forwards;
}
.suivi-note {
  max-width: 800px;
  margin: 1.5rem auto 0;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-secondary, #ccc);
  line-height: 1.6;
  animation: fadeInUp 0.8s ease forwards;
}
.highlight-note {
  max-width: 800px;
  margin: 1.5rem auto 0;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-secondary, #ccc);
  line-height: 1.6;
  animation: fadeInUp 0.8s ease forwards;
}

/* Container général */
.transactions-section {
  padding: 2rem;
  background: transparent;
  overflow: hidden;
}

/* Liste swipeable */
.swipe-container {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}

/* Carte transaction */
.transaction-card {
  flex: 0 0 80%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 1.5rem;
  color: #fff;
  scroll-snap-align: start;
  box-shadow: 0 0 0 rgba(0, 255, 128, 0);
  transform: translateY(40px);
  opacity: 0;
  transition: all 0.6s ease, box-shadow 0.4s ease;
  position: relative;
}

/* Icône transaction */
.transaction-card .tx-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

/* Statut */
.transaction-card .tx-status {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.5rem;
  color: var(--primary-green);
}

/* Effet au scroll (active via JS) */
.transaction-card.active {
  transform: translateY(0);
  opacity: 1;
  box-shadow: 0 0 20px rgba(0, 255, 128, 0.4);
}

/* Effet swipe tactile */
.transaction-card:active {
  transform: scale(0.97);
}

/* Animation halo vert */
.transaction-card.active::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(0,255,128,0.3) 0%, transparent 70%);
  animation: halo 1.2s ease forwards;
  z-index: -1;
}

@keyframes halo {
  0% { opacity: 0; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1.2); }
}

.home-gallery { 
  margin-bottom: clamp(20px, 4vw, 40px);
}





.hero-section {
  display: flex;
  justify-content: center;   /* centre horizontalement */
  align-items: center;       /* centre verticalement */
  text-align: center;        /* centre le texte */
  min-height: 100vh;         /* prend toute la hauteur de l'écran */
  padding: 20px;
}

.hero-content {
  max-width: 800px;          /* limite la largeur pour un rendu premium */
}

.hero-buttons {
  margin-top: 20px;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.btn {
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.btn-primary {
  background-color: #00b36b; /* vert Amirane */
  color: white;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid #00b36b;
  color: #00b36b;
}
.cta {
  display: flex;
  justify-content: center; /* centre horizontalement */
  align-items: center;     /* centre verticalement si hauteur définie */
  gap: 15px;               /* espace entre les boutons */
  flex-wrap: wrap;         /* passe à la ligne sur mobile */
  text-align: center;      /* sécurité pour le texte */
}
.hero-section {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100vh;
  padding: 20px;
}

.hero-content {
  max-width: 900px;
}

.hero-logo-block {
  display: flex;
  flex-direction: column; /* logo au-dessus du texte */
  align-items: center;
  margin-bottom: 20px;
}

.hero-logo {
  height: 300px; /* ajuste selon ton design */
  width: auto;
}

.hero-tagline {
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff; /* vert Amirane */
  margin-top: 10px;
  margin-bottom: 40px;
  letter-spacing: 1px;
}

.cta {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}
.card.card--glass {
  display: flex;
  flex-direction: column; /* pour garder les stats au-dessus */
  align-items: center;     /* centre horizontalement */
  justify-content: center; /* centre verticalement si hauteur fixe */
  text-align: center;
}

.map-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto; /* centre horizontalement si pas de flex */
}
.swiper-slide {
  display: flex;               /* active flexbox */
  align-items: center;         /* centre verticalement */
  justify-content: center;     /* centre horizontalement */
}

.swiper-slide img {
  display: block;
  max-width: 100%;
  height: auto;
}
/* On neutralise le comportement swiper */
.testimonial-swiper {
  overflow: visible; /* pour voir les côtés */
}

.swiper-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  perspective: 1200px; /* profondeur 3D */
  transform: none !important; /* empêche swiper de bouger */
}

.swiper-slide {
  flex: 0 0 auto;
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.swiper-slide img {
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

/* Image centrale mise en avant */
.swiper-slide:nth-child(2) img {
  width: 320px;
  transform: translateZ(80px) scale(1.15);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

/* Images latérales */
.swiper-slide:first-child img {
  width: 220px;
  transform: rotateY(20deg) translateZ(-40px);
}

.swiper-slide:last-child img {
  width: 220px;
  transform: rotateY(-20deg) translateZ(-40px);
}

/* Effet hover premium */
.swiper-slide img:hover {
  transform: scale(1.2) translateZ(100px) rotateY(0deg);
  box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

/* Neutraliser complètement le comportement Swiper */
.testimonial-swiper {
  overflow: visible;
}

.swiper-wrapper {
  display: flex !important;           /* forcer flex */
  justify-content: center !important; /* centrer horizontalement */
  align-items: center !important;     /* centrer verticalement */
  gap: 2rem;
  perspective: 1200px;
  transform: none !important;         /* enlever le translateX de Swiper */
  width: auto !important;             /* éviter la largeur forcée */
  margin: 0 auto;                      /* centrage global */
}

.swiper-slide {
  flex: 0 0 auto !important;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.swiper-slide img {
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

/* Image centrale */
.swiper-slide:nth-child(2) img {
  width: 320px;
  transform: translateZ(80px) scale(1.15);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

/* Images latérales */
.swiper-slide:first-child img {
  width: 220px;
  transform: rotateY(20deg) translateZ(-40px);
}

.swiper-slide:last-child img {
  width: 220px;
  transform: rotateY(-20deg) translateZ(-40px);
}

/* Effet hover */
.swiper-slide img:hover {
  transform: scale(1.2) translateZ(100px) rotateY(0deg);
  box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}


/* Barre de navigation en bas */
.mobile-bottom-nav {
  display: none; /* cachée par défaut */
}

@media (max-width: 900px) {
  .mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--panel);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 6px 0;
    z-index: 9999;
  }

  .mobile-bottom-nav a {
    flex: 1;
    text-align: center;
    color: var(--muted);
    font-size: 0.75rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
    transition: color 0.3s ease;
  }

  .mobile-bottom-nav a i {
    font-size: 1.4rem;
  }

  .mobile-bottom-nav a:hover,
  .mobile-bottom-nav a.active {
    color: var(--accent);
  }

  /* On cache la nav classique sur mobile */
  .site-header .nav,
  .site-header .nav-toggle {
    display: none;
  }
}
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center; /* centre verticalement */
  align-items: center;     /* centre horizontalement */
  text-align: center;      /* centre le texte */
  min-height: 100vh;       /* occupe toute la hauteur de l'écran */
  padding: 0 1rem;         /* un peu d'espace sur les côtés */
}

@media (max-width: 768px) {
  .hero {
    padding: 0 1.5rem; /* plus de marge sur mobile */
  }
}
