/* =========================================================================
   RS EXPRESS 51 - Stylesheet Principal
   Transport Express National & International
   Version: 2.0
   ========================================================================= */

/* =========================================================================
   TABLE DES MATIÈRES
   =========================================================================
   1. Variables CSS
   2. Reset & Base
   3. Layout & Container
   4. Navigation
      4.1 Topbar
      4.2 Navbar
   5. Hero Section
   6. Typography
   7. Buttons
   8. Sections & Headers
   9. Grid System
   10. Cards & Components
      10.1 Cards Standards
      10.2 Mini Cards / KPI
      10.3 Steps
   11. Ribbons & CTA
   12. Forms
      12.1 Inputs généraux
      12.2 Page Contact
      12.3 Modal
   13. Services
   14. Footer
   15. Éléments Flottants
   16. Animations
   17. Utilitaires
   18. Responsive
   ========================================================================= */


/* =========================================================================
   1. VARIABLES CSS
   ========================================================================= */
:root {
  /* Couleurs principales */
  --primary: #FF0000;           /* Rouge vif */
  --primary-dark: #8B0000;      /* Rouge foncé */
  --accent: #FF3333;            /* Rouge clair */
  
  /* Backgrounds */
  --bg-black: #000000;          /* Noir pur */
  --bg-dark: #1A1A1A;           /* Noir charbon */
  --bg: #FFFFFF;                /* Blanc */
  --card: #FAFBFC;              /* Gris très clair */
  --red-soft: #2A0000;          /* Rouge très sombre */
  --red-light: #FEF2F2;         /* Rose très clair */
  
  /* Textes */
  --ink: #1A1A1A;               /* Texte sombre */
  --ink-reverse: #FFFFFF;       /* Texte clair */
  --muted: #999999;             /* Texte atténué */
  
  /* Bordures & Ombres */
  --border: #333333;
  --shadow: 0 4px 20px rgba(255, 0, 0, .08);
  --shadow-hover: 0 8px 30px rgba(255, 0, 0, .15);
  --radius: 16px;
}


/* =========================================================================
   2. RESET & BASE
   ========================================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

img {
  max-width: 100%;
  display: block;
}


/* =========================================================================
   3. LAYOUT & CONTAINER
   ========================================================================= */
.container {
  width: min(1240px, 92vw);
  margin: auto;
}


/* =========================================================================
   4. NAVIGATION
   ========================================================================= */

/* --- 4.1 Topbar --- */
.topbar {
  background: var(--bg-black);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  font-size: .9rem;
  color: var(--ink-reverse);
}

.topbar .row {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: .7rem 0;
  flex-wrap: wrap;
}

.topbar .item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* --- 4.2 Navbar --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, #000000 0%, #330000 50%, #4D0000 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 0, 0, .2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--ink-reverse);
}

.brand .logo {
  width: auto;
  height: 60px;
}

.brand span {
  color: var(--primary);
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navlinks a {
  color: var(--ink-reverse);
  font-weight: 600;
  transition: color 0.2s;
}

.navlinks a:hover {
  color: var(--primary);
}

.navlinks a.active {
  color: var(--primary);
  position: relative;
}

.navlinks a.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}

/* Menu burger (caché par défaut) */
.burger {
  display: none;
}

/* Mobile menu */
.navlinks.open {
  display: flex !important;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--bg-black);
  border-bottom: 1px solid rgba(255, 0, 0, .2);
  padding: 12px 24px;
  gap: 18px;
  flex-direction: column;
}


/* =========================================================================
   5. HERO SECTION
   ========================================================================= */
.hero {
  background: linear-gradient(90deg, 
    rgba(0, 0, 0, 0.95) 0%, 
    rgba(139, 0, 0, 0.85) 30%, 
    rgba(220, 38, 38, 0.75) 60%, 
    rgba(248, 113, 113, 0.65) 100%
  );
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

/* Hero page d'accueil avec image de fond */
.page-home .hero {
  background:
    linear-gradient(90deg, 
      rgba(0, 0, 0, 0.85) 0%, 
      rgba(139, 0, 0, 0.75) 30%, 
      rgba(220, 38, 38, 0.65) 60%, 
      rgba(248, 113, 113, 0.55) 100%
    ),
    url('../images/hero_new.png') center right / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(248, 113, 113, 0.2) 100%);
  opacity: .6;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 60px;
}

.hero-card {
  background: var(--ink-reverse);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}

.hero-card .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hero-card .info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}


/* =========================================================================
   6. TYPOGRAPHY
   ========================================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, .3);
  border: 1px solid rgba(255, 255, 255, .2);
  color: var(--ink-reverse);
  font-weight: 600;
  font-size: .9rem;
  backdrop-filter: blur(10px);
}

.title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.1;
  margin: 1.5rem 0 1rem;
  font-weight: 900;
  color: var(--ink-reverse);
}

.title span {
  color: var(--primary);
  font-weight: 900;
}

.subtitle {
  color: rgba(255, 255, 255, .95);
  font-size: 1.15rem;
  max-width: 55ch;
  line-height: 1.7;
}

.subtitle strong {
  color: var(--ink-reverse);
  font-weight: 700;
}

.eyebrow {
  font-weight: 700;
  color: var(--primary);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .9rem;
  margin-bottom: 8px;
}

.h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--ink);
}

.h2 span {
  color: var(--primary);
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}


/* =========================================================================
   7. BUTTONS
   ========================================================================= */
.btn {
  display: flex;
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.3s;
  border: 2px solid transparent;
  background: var(--primary);
  color: var(--ink-reverse);
  cursor: pointer;
  text-align: center;
  justify-content: center;
  align-items: center;
  width:250px ;
  height: 50px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 0, 0, .4);
}

.btn.primary {
  background: var(--primary);
  color: var(--ink-reverse);
  border-color: var(--primary);
}

.btn.primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn:not(.primary) {
  background: var(--ink-reverse);
  color: var(--bg-black);
  border-color: var(--ink-reverse);
}

.btn:not(.primary):hover {
  background: transparent;
  color: var(--ink-reverse);
  border-color: var(--ink-reverse);
}

.btn.block {
  display: block;
  width: 100%;
}

/* CTA dans navbar */
.cta {
  padding: .75rem 1.5rem;
  border-radius: 8px;
  background: var(--bg-black);
  color: var(--ink-reverse);
  font-weight: 700;
  transition: all 0.3s;
  border: 2px solid var(--ink-reverse);
}

.cta:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
  color: var(--ink) !important;
}


/* =========================================================================
   8. SECTIONS & HEADERS
   ========================================================================= */
section {
  padding: 80px 0;
  position: relative;
}

/* Section avec fond noir */
section.bg-black {
  background: var(--bg-black);
  color: var(--ink-reverse);
  padding: 100px 0;
}



section.bg-black .h2 {
  color: var(--ink-reverse);
}

section.bg-black .lead {
  color: rgba(255, 255, 255, .8);
}

/* Séparateur rouge entre sections noires consécutives */
.bg-black + .bg-black {
  position: relative;
  padding-top: 100px;
}

.bg-black + .bg-black::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 1200px;
  height: 2px;
  background: linear-gradient(
    90deg, 
    transparent 0%, 
    rgba(255, 0, 0, .4) 20%, 
    var(--primary) 50%, 
    rgba(255, 0, 0, .4) 80%, 
    transparent 100%
  );
}

/* Header de section */
.sec-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}


/* =========================================================================
   9. GRID SYSTEM
   ========================================================================= */
.grid {
  display: grid;
  gap: 24px;
}

.grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}


/* =========================================================================
   10. CARDS & COMPONENTS
   ========================================================================= */

/* --- 10.1 Cards Standards --- */
.card {
  background: var(--ink-reverse);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}

.card p {
  color: var(--muted);
  line-height: 1.7;
}

.card img {
  border-radius: 12px;
  margin-bottom: 16px;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* Cards sur fond noir */
.bg-black .card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
}

.bg-black .card:hover {
  background: rgba(255, 255, 255, .08);
  border-color: var(--primary);
}

.bg-black .card h3 {
  color: var(--ink-reverse);
}

.bg-black .card p {
  color: rgba(255, 255, 255, .8);
}

/* Icône dans les cards */
.icn {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--primary);
  color: var(--ink-reverse);
}



/* --- 10.2 Mini Cards / KPI --- */
.mini {
  padding: 32px;
  background: var(--ink-reverse);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.3s;
}

.mini:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.kpi {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.mini small {
  display: block;
  color: var(--muted);
  font-size: .85rem;
}

/* Mini sur fond noir */
.bg-black .mini {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
}

.bg-black .mini:hover {
  background: rgba(255, 255, 255, .08);
  border-color: var(--primary);
}

.bg-black .mini small {
  color: rgba(255, 255, 255, .8);
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* --- 10.3 Steps (Processus) --- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.step {
  position: relative;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--ink-reverse);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.step h3 {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}

.step h3::after {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

.step p {
  color: var(--muted);
  line-height: 1.7;
}

/* Steps sur fond noir */
.bg-black .step {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
}

.bg-black .step:hover {
  background: rgba(255, 255, 255, .08);
  border-color: var(--primary);
}

.bg-black .step h3 {
  color: var(--ink-reverse);
}

.bg-black .step p {
  color: rgba(255, 255, 255, .8);
}


/* =========================================================================
   11. RIBBONS & CTA
   ========================================================================= */
.ribbon {
  padding: 48px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(255, 0, 0, .25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: var(--ink-reverse);
}

.ribbon .eyebrow {
  color: rgba(255, 255, 255, .85);
}

.ribbon h3 {
  font-size: 2rem;
  margin: 8px 0 4px;
  color: var(--ink-reverse);
}

.ribbon .small {
  color: rgba(255, 255, 255, .9);
  font-size: 1.05rem;
}

.ribbon .btn {
  background: var(--ink-reverse);
  color: var(--primary);
  border-color: var(--ink-reverse);
  font-weight: 700;
}

/* Logos défilants (Marquee) */
.marquee {
  display: flex;
  gap: 32px;
  overflow: hidden;
  padding: 24px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee .track {
  display: flex;
  gap: 32px;
  animation: scroll 30s linear infinite;
}

.logochip {
  padding: 14px 24px;
  border-radius: 8px;
  background: var(--ink-reverse);
  border: 1px solid var(--border);
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow);
}

@keyframes scroll {
  to {
    transform: translateX(-50%);
  }
}


/* =========================================================================
   12. FORMS
   ========================================================================= */

/* --- 12.1 Inputs généraux --- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 6px;
}

.field span {
  font-weight: 600;
  font-size: 0.95rem;
}

.input,
select,
textarea {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-reverse);
  font-family: inherit;
  font-size: 1rem;
  transition: 0.2s;
  width: 100%;
}

.input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.1);
}

/* Select avec flèche personnalisée */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

select option {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 10px;
}



select option:checked {
  background: linear-gradient(#8B0000, #8B0000);
  color:var(--ink);
}

/* Textarea */
textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

/* Honeypot anti-spam */
.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* Consentement checkbox */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 20px;
}

.consent input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.consent small {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Actions (boutons dans formulaires) */
.actions {
  display: flex;
  align-items: center; 
  margin-top: 16px;
  justify-content: space-between;
}

.actions .small {
  flex: 1;
  text-align: right;
  min-width: 200px;
}

/* Messages de statut */
#formMsg {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
}

#formMsg.success {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

#formMsg.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* --- 12.2 Page Contact --- */
.contact {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 32px;
}

.contact form.card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  padding: 32px;
}

.contact aside {
  position: sticky;
  top: 100px;
}

.contact aside .card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
}

.contact aside h3 {
  color: var(--ink-reverse);
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.contact .list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.contact .list li {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.contact .list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact .list strong {
  display: block;
  color: var(--primary);
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.contact .list a {
  color: var(--ink-reverse);
  transition: color 0.2s;
}

.contact .list a:hover {
  color: var(--primary);
}

.contact .form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

/* Carte Google Maps */
.map {
  padding: 0;
  overflow: hidden;
  margin-top: 32px;
}

.map iframe {
  border-radius: 8px;
}

/* --- 12.3 Modal --- */
.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: opacity .2s ease, visibility .2s ease;
}

.modal[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  backdrop-filter: blur(2px);
}

.modal__dialog {
  position: relative;
  width: min(600px, 94vw);
  background: var(--ink-reverse);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 16px 20px;
  color: var(--ink);

  max-height: 95dvh;          /* limite à la hauteur d’écran */
  overflow: auto;      
  

}

/* Textes dans le modal - forcer en noir */
.modal h2,
.modal h3,
.modal h4,
.modal p,
.modal label,
.modal .field span {
  color: var(--ink);
}

.modal .input,
.modal select,
.modal textarea {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--ink);
}

.modal .input::placeholder,
.modal textarea::placeholder {
  color: var(--muted);
}

.modal .input:focus,
.modal select:focus,
.modal textarea:focus {
  background: var(--bg);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.1);
}

.modal .consent small {
  color: var(--ink);
}

.modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--ink-reverse);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: var(--ink);
  transition: box-shadow 0.2s;
     

}

.modal__close:hover {
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 10px;
}

.form-grid-modal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
}


/* =========================================================================
   13. SERVICES
   ========================================================================= */
.service-detail {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
  background: var(--ink-reverse);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.service-detail.reverse {
  grid-template-columns: .9fr 1.1fr;
}

.service-detail-content h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin: 6px 0 10px;
  color: var(--ink);
  font-weight: 800;
}

.service-detail .lead {
  color: var(--ink);
  opacity: .9;
  margin-bottom: 18px;
}

.service-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}

.spec {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}

.spec strong {
  display: block;
  font-size: .92rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.spec span {
  color: var(--muted);
  font-size: .98rem;
}

.service-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin-top: 8px;
}

.service-features li {
  color: var(--ink);
  opacity: .85;
}

.service-detail-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Secteurs d'activité */
.secteur {
  background: var(--ink-reverse);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.secteur h4 {
  color: var(--ink);
  margin-bottom: 6px;
  font-weight: 800;
}

.secteur p {
  color: var(--muted);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--ink-reverse);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: var(--shadow);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 12px 36px 12px 6px;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '＋';
  position: absolute;
  right: 8px;
  top: 12px;
  font-weight: 800;
  color: var(--primary);
}

.faq-item[open] summary::after {
  content: '–';
}

.faq-item p {
  color: var(--muted);
  padding: 8px 6px 12px;
}

/* Zones géographiques */
.zones-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 3rem;
}

.zones-card {
  background: var(--ink-reverse);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.zones-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.zones-card__head {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.zones-card__flag {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: var(--ink-reverse);
  font-size: 24px;
}

.zones-card__title {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.2rem;
}

.zones-card__subtitle {
  margin-top: 2px;
  color: var(--muted);
  font-size: .95rem;
}

.zones-card__list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.zones-card__list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  opacity: .95;
  line-height: 1.55;
}

.zones-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--primary);
}


/* =========================================================================
   14. FOOTER
   ========================================================================= */
footer {
  background: var(--bg-black);
  border-top: 1px solid rgba(255, 0, 0, .2);
  padding: 48px 0 18px;
  color: var(--ink-reverse);
  line-height: 1.5;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 24px;
}

.footer-compact {
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: 28px;
}

footer h4 {
  margin-bottom: 10px;
  color: var(--ink-reverse);
  font-weight: 700;
}

footer .small {
  color: rgba(255, 255, 255, .85);
  line-height: 1.75;
}

footer .small a {
  display: block;
  margin-bottom: 8px;
  transition: color 0.2s;
}

footer .small a:hover {
  color: var(--primary);
}

.footer-links,
.socials,
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin: 6px 0;
}

.socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.socials a {
  opacity: .9;
  transition: opacity 0.2s;
}

.socials a:hover {
  opacity: 1;
}

.contact-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 8px;
  margin: 6px 0;
}

.footer-cta {
  display: inline-block;
  margin-top: 10px;
  padding: .6rem 1rem;
  border-radius: 10px;
}

/* Copyright */
.copy {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 16px;
  text-align: center;
  color: rgba(255, 255, 255, .7);
  font-size: .95rem;
  line-height: 1.8;
}

.copy a {
  text-decoration: underline;
  transition: color 0.2s;
}

.copy a:hover {
  color: var(--primary);
}


/* =========================================================================
   15. ÉLÉMENTS FLOTTANTS
   ========================================================================= */

/* WhatsApp */
.whats {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: var(--ink-reverse);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .4);
  transition: transform 0.3s;
  z-index: 99;
}

.whats:hover {
  transform: scale(1.1);
}

/* Back to top */
.backtop {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 8px 20px rgba(255, 0, 0, .4);
  font-size: 1.3rem;
  color: var(--ink-reverse);
}

.backtop:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(255, 0, 0, .5);
}


/* =========================================================================
   16. ANIMATIONS
   ========================================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(.4, 0, .2, 1),
              transform 0.6s cubic-bezier(.4, 0, .2, 1);
}

.in-view {
  opacity: 1 !important;
  transform: none !important;
}


/* =========================================================================
   17. UTILITAIRES
   ========================================================================= */
.text-center {
  text-align: center;
  margin-top: 40px;
}

.list {
  list-style: none;
  margin: 12px 0 16px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.list a {
  text-decoration: none;
}

.help {
  color: var(--muted);
  margin: 0;
}

.small {
  font-size: 0.9rem;
}

/* Statistiques */
.stat {
  text-align: center;
  padding: 24px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  transition: all 0.3s;
}

.stat:hover {
  background: rgba(255, 255, 255, .08);
  border-color: var(--primary);
  transform: translateY(-4px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 8px;
}

.stat-label {
  color: rgba(255, 255, 255, .85);
  font-size: 1rem;
}

/* =========================================================================
   FLOTTE - Ajouts spécifiques (complète le CSS existant)
   ========================================================================= */

/* Intro section */
.fleet-intro-section {
  padding: 3rem 0 2rem;
}

.fleet-intro-wrap {
  max-width: 900px;
  text-align: center;
}

.fleet-intro-p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--muted);
}

/* Section catégorie */
.fleet-section {
  padding: 2rem 0;
}

/* Header catégorie */
.fleet-header {
  text-align: center;
  margin-bottom: 2rem;
   margin-top: 2rem;
}

.fleet-volume-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: var(--primary);
  border-radius: 50px;
  margin-bottom: 1rem;
}

.fleet-volume-badge span {
  font-weight: 600;
  font-size: 0.9rem;
  color: #000;
}

.fleet-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--ink-reverse);
}

/* Grid véhicules */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 2rem;
}

/* Card modifications */
.fleet-card {
  overflow: hidden;
    padding: 0;  /* ← AJOUTE ça pour enlever le padding qui cause le souci */

}

.fleet-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 107, 53, 0.3);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
}

/* Image */
.fleet-image {
  position: relative;
  height:350px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(102, 126, 234, 0.1));
  overflow: hidden;
 margin: 0;
}

.fleet-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  margin: 0;

}

.fleet-no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 3rem;
  opacity: 0.3;
}

/* Badge hayon */
.fleet-hayon {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary);
  color: #000;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.fleet-hayon-null {
    position: absolute;
  top: 12px;
  right: 12px;
  background: var(--ink);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Body */
.fleet-body {
  padding: 1.5rem;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}

.fleet-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

/* Specs */
.fleet-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin: 1.2rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  width: 325px;
}

.fleet-spec {
  display: flex;
  flex-direction: column;
}

.fleet-full {
  grid-column: span 2;
}

.fleet-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.fleet-value {
  font-weight: 600;
}

.fleet-primary {
  color: var(--primary);
}

.fleet-dim {
  font-size: 0.85rem;
}

/* Capacité */
.fleet-capacity {
  padding: 0.8rem;
  background: rgba(255, 107, 53, 0.1);
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 3px solid var(--primary);
  font-size: 0.85rem;
}

/* Usage */
.fleet-usage {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Tags */
.fleet-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fleet-tag {
  padding: 0.3rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Options section */
.fleet-opts {
  padding: 4rem 0;
}

.fleet-opts-head {
  text-align: center;
  margin-bottom: 3rem;
}

.fleet-opts-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--ink-reverse);
}

.fleet-opts-desc {
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto;
}

.fleet-opts-grid {
  gap: 1.5rem;
}

.fleet-opt {
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.fleet-opt-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.fleet-opt h4 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--ink-reverse);
}

.fleet-opt p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Messages d'erreur */
.error-msg {
  display: none;
  color: #dc3545 !important;
  font-size: 12px;
  margin-top: 5px;
  font-weight: 500;
  animation: slideDown 0.2s ease;
  
}

.error-msg.show {
  display: block;
}

#statusModal {
  text-align: center;
}

#statusModal .btn{
  margin : 0 auto;
}





/* Animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Responsive */
@media (max-width: 768px) {
  .fleet-opts-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === Responsive flotte === */

/* Tablette (max 1024px) */
@media (max-width: 1024px) {
  .fleet-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
  }

  .fleet-image {
    height: 300px;
  }

  .fleet-specs {
    width: 100%;
    padding: 0.8rem;
  }

  .fleet-title {
    font-size: 1.8rem;
  }
}

/* Mobile (max 640px) */
@media (max-width: 640px) {
  .fleet-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .fleet-card {
    border-radius: 12px;
  }

  .fleet-image {
    height: 240px;
  }

  .fleet-body {
    padding: 1rem;
  }

  .fleet-name {
    font-size: 1.1rem;
  }

  

  .fleet-label {
    font-size: 0.7rem;
  }

  .fleet-value {
    font-size: 0.85rem;
  }

  .fleet-intro-section {
    padding: 2rem 0 1rem;
  }

  .fleet-title {
    font-size: 1.5rem;
  }
}

/* Très petit écran (max 380px) */
@media (max-width: 380px) {
  .fleet-image {
    height: 200px;
  }

  .fleet-title {
    font-size: 1.3rem;
  }

  .fleet-specs {
    padding: 0.6rem;
  }
}



/* =========================================================================
   18. RESPONSIVE
   ========================================================================= */

/* --- Tablettes (1024px et moins) --- */
@media (max-width: 1024px) {
  /* Layout */
  .zones-cards {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .contact aside {
    position: static;
  }

  .contact .form-grid {
    grid-template-columns: 1fr;
  }

  /* Grids */
  .grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid.cols-4 {
    grid-template-columns: 1fr 1fr;
  }

  /* Footer */
  .footer-grid,
  .footer-compact {
    grid-template-columns: 1fr 1fr;
  }

  /* Ribbon */
  .ribbon {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Services */
  .service-detail,
  .service-detail.reverse {
    grid-template-columns: 1fr;
  }

  .service-detail-image img {
    height: 280px;
  }

  .service-specs,
  .service-features {
    grid-template-columns: 1fr;
  }
}

/* --- Mobiles (720px et moins) --- */
@media (max-width: 720px) {

  

.nav-inner {
 
  justify-content: space-between;

}

  .modal__dialog {
    width: 92vw;
    max-width: 420px;
    /* le point clé : on adapte la hauteur à l’écran visible */
    height: auto;
    max-height: 95dvh; /* permet au modal de toujours rentrer dans l’écran */
    overflow: auto; /* pas de scroll interne */
    
  }
  /* Navigation */
  .navlinks {
    display: none;
  }

  .burger {
    display: flex;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
  }

  .burger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--ink-reverse);
    border-radius: 2px;
    transition: all 0.3s;
  }

  .brand .logo {
    height: 50px;
  }

  .nav-inner {
    padding: .75rem 0;
  }

  /* Topbar */
  .topbar .row {
    gap: 16px;
    font-size: .85rem;
  }

  /* Hero */
  .hero {
    padding: 60px 0 50px;
  }

  .title {
    font-size: 2rem;
  }

  /* Grids */
  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .kpi-row {
    grid-template-columns: 1fr;
  }

  /* Sections */
  .sec-head {
    text-align: left;
  }

  section.bg-black {
    padding: 60px 0;
  }

  .bg-black + .bg-black {
    padding-top: 60px;
  }

  .bg-black + .bg-black::before {
    width: 90%;
  }

  /* Ribbon */
  .ribbon {
    padding: 32px 24px;
  }

  .ribbon h3 {
    font-size: 1.5rem;
  }

  /* Footer */
  .footer-grid,
  .footer-compact {
    grid-template-columns: 1fr;
  }

  .footer-cta {
    width: 100%;
    text-align: center;
  }

  /* Forms */
  .contact form.card,
  .contact aside .card {
    padding: 20px;
  }

  .contact .form-grid {
    gap: 16px;
  }

  .contact .actions {
    flex-direction: column;
    align-items: stretch;
    
  }

  .contact .actions .btn {
    width: 100%;
    text-align: center;
  }

  .contact .actions .small {
    text-align: center;
    min-width: auto;
  }


}
  .actions .btn-close {
     display: flex;
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.3s;
  border: 2px solid transparent;
  background: var(--ink);
  color: var(--ink-reverse);
  cursor: pointer;
  text-align: center;
  justify-content: center;
  align-items: center;
  width:250px ;
  height: 50px;
  }
.actions .btn-close:hover {
  transform: translateY(-2px);
}

/* =========================================================================
   MOBILE - TOUT CENTRÉ (à ajouter à la fin de ton responsive mobile)
   ========================================================================= */

@media (max-width: 720px) {
  
  /* Container centré */
  .container {
    text-align: center;
  }

  .fleet-grid {
        text-align: center;
        align-items: center;
        justify-content: center;

  }
  
  /* Hero - Contenu centré */
  .hero {
    text-align: center;
  }
  
  .hero-grid {
    text-align: center;
  }
  
  .badge {
    margin-left: auto;
    margin-right: auto;
  }
  
  .title {
    text-align: center;
  }
  
  .subtitle {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  /* Sections - Tout centré */
  section {
    text-align: center;
  }
  
  .sec-head {
    text-align: center;
  }
  
  .eyebrow {
    text-align: center;
  }
  
  .h2 {
    text-align: center;
  }
  
  .lead {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;
  }
  
  /* Cards centrées */
  .card {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  
  .card h3 {
    text-align: center;
  }
  
  .card p {
    text-align: center;
  }
  
  /* Icônes centrées */
  .icn {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
  }
  
  /* Mini/KPI centrés */
  .mini {
    text-align: center;
  }
  
  /* Steps centrés */
  .step {
    text-align: center;
  }
  
  .step h3 {
    justify-content: center;
  }
  
  /* Grids - Items centrés */
  .grid {
    justify-items: center;
    text-align: center;
  }
  
  .grid > * {
    text-align: center;
  }
  
  /* Ribbons centrés */
  .ribbon {
    text-align: center;
    align-items: center;
  }
  
  .ribbon .btn {
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Services */
  .service-detail {
    text-align: center;
  }
  
  .service-specs {
    justify-items: center;
  }
  
  .service-features {
    text-align: center;
    list-style-position: inside;
  }
  
  /* Zones cards */
  .zones-card {
    text-align: center;
  }
  
  .zones-card__head {
    justify-content: center;
    grid-template-columns: auto;
  }
  
  .zones-card__flag {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.5rem;
  }
  
  .zones-card__list {
    text-align: center;
    list-style-position: inside;
  }
  
  /* Boutons centrés */
  .btn {
    margin-left: auto;
    margin-right: auto;
  }
  
  .actions {
    gap: 10px;
  }
  
  /* Forms - Labels et inputs centrés */
  .field {
    text-align: center;
  }
  
  .field span {
    text-align: center;
    display: block;
  }
  
  .input,
  select,
  textarea {
    text-align: left; /* Les inputs restent alignés à gauche pour la saisie */
  }
  
  /* Contact page */
  .contact {
    text-align: center;
  }
  
  .contact .list {
    text-align: center;
  }
  
  .contact .list li {
    text-align: center;
  }
  
  /* Footer centré */
  footer {
    text-align: center;
  }
  
  .footer-grid,
  .footer-compact {
    text-align: center;
  }
  
  .footer-links,
  .socials,
  .contact-list {
    justify-content: center;
    text-align: center;
  }
  
  .contact-list li {
    justify-content: center;
  }
  
  .socials {
    justify-content: center;
  }
  
  .copy {
    text-align: center;
  }
  
  /* Menu burger - liens centrés quand ouvert */
  .navlinks.open {
    text-align: center;
  }
  
  .navlinks.open a {
    text-align: center;
    display: block;
  }
  
  /* Listes centrées */
  .list {
    text-align: center;
    list-style-position: inside;
  }
  
  /* FAQ */
  .faq-list {
    text-align: center;
  }
  
  .faq-item summary {
    text-align: center;
  }
  
  .faq-item p {
    text-align: center;
  }
  
  /* Stats */
  .stat {
    text-align: center;
  }
  
  .kpi-row {
    text-align: center;
  }
  
  /* Marquee centré */
  .marquee {
    justify-content: center;
  }
  
  /* Paragraphes */
  p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Topbar */
  .topbar .row {
    justify-content: center;
    text-align: center;
  }
  
  .topbar .item {
    justify-content: center;
  }
}

/* =========================================================================
   FIN DU FICHIER
   ========================================================================= */