/* ==========================================================================
   LocalRide – Design System Final (Optimisé : Navigation & Bordures)
   ========================================================================== */

:root {
  --brand-turquoise: #11c5c6;
  --brand-orange:    #FF9927;
  --header-bg:       var(--brand-turquoise);
  --header-fg:       #1a1300;
  --container-max:   1120px;
  --radius:          12px;
  /* Liseré plus dense pour une meilleure visibilité */
  --border-std:      #b3becb; 
}

/* --- BASES & TYPOGRAPHIE --- */
* { box-sizing: border-box; }
body { 
  margin: 0; padding: 0; overflow-x: hidden; 
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  color: #1e293b;
  line-height: 1.5;
  background-color: #f8fafc;
}

/* Alignement global */
.container, .wrap {
  width: min(92%, var(--container-max));
  margin-inline: auto;
  padding-inline: 16px;
}

/* --- HEADER & LOGO --- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--header-bg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  height: 72px; display: flex; align-items: center;
}
.site-header .container { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  width: 100%;
}
.logo img { height: 80px; width: auto; display: block; }

/* --- NAVIGATION ADAPTATIVE --- */

/* Bouton Burger (Caché par défaut sur ordinateur) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #1a1300;
  padding: 8px;
}

.nav { display: flex; align-items: center; gap: 5px; } /* Gap réduit pour l'horizontal */

.nav a { 
  text-decoration: none; color: #1a1300; font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* --- OPTIMISATION : DISPARITION DU TEXTE EN MODE HORIZONTAL --- */
/* Entre 1300px et 1151px, on ne garde que les icônes pour éviter les chevauchements */
@media (max-width: 1300px) and (min-width: 1151px) {
  .nav a span:not(.material-symbols-outlined) {
    display: none; 
  }
  .nav a {
    padding: 10px;
  }
}

/* --- HERO (BANDEAU HAUT) --- */
.lr-init .hero {
  background: linear-gradient(180deg, rgba(114,255,255,0.18), transparent 85%);
  padding: 50px 0;
}
.hero-inner {
  width: min(92%, var(--container-max)); margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center;
}
.hero-media-wrapper { border-radius: 16px; overflow: hidden; box-shadow: 0 12px 32px rgba(0,0,0,0.12); }

/* --- CARTES & MOTOS --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.card, .moto-card {
  background: #ffffff;
  border: 1.5px solid var(--border-std);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 8px 20px rgba(0,0,0,0.08); 
  border-color: var(--brand-orange);
}

.card img, .moto-card .media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

/* En-tête de carte */
.card-header, .head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}
.card-header h2, .head h2 { margin: 0; font-size: 1.2rem; color: #1e293b; }
.card-header .material-symbols-outlined { color: #0ea5e9; font-size: 28px; }

/* --- CARTOUCHES (Badges) --- */
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  background: #f1f5f9;
  border: 1px solid var(--border-std);
  border-radius: 20px;
  font-size: 0.8rem; font-weight: 600; color: #475569;
}
.badge .material-symbols-outlined { font-size: 16px; color: #0ea5e9; }

/* Liste des traits */
.traits { list-style: none; padding: 0; margin: 0 0 15px 0; }
.traits li { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; margin-bottom: 6px; }
.traits .bullet { color: var(--brand-orange); font-size: 18px; }

/* --- BOUTONS --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 8px; font-weight: 700;
  text-decoration: none; border: none; font-size: 0.9rem;
  cursor: pointer; transition: opacity 0.2s;
}
.btn.primary { background: var(--brand-orange); color: #1a1300 !important; }
.btn.ghost { background: #fff; border: 1px solid #ddd; color: #1e293b; }
.btn:hover { opacity: 0.9; }

/* Material Symbols Force */
.material-symbols-outlined { font-family: 'Material Symbols Outlined' !important; }

/* --- RESPONSIVE : GESTION DES TRAITS ET DU MENU VERTICAL (LARGEUR RÉDUITE) --- */

@media (max-width: 1150px) {
  .menu-toggle { display: block; }
  .menu-toggle .close-icon { display: none; }

  .menu-toggle.active .menu-icon { display: none; }
  .menu-toggle.active .close-icon { display: block; }

  .nav {
    display: none; 
    position: absolute;
    top: 72px; 
    right: 0;         /* Aligné à droite */
    width: 300px;     /* Menu à la moitié de l'écran environ */
    max-width: 85%;   
    height: auto;     
    max-height: calc(100vh - 72px); 
    overflow-y: auto; 
    
    background: #ffffff;
    flex-direction: column;
    padding: 10px 20px;
    box-shadow: -10px 10px 20px rgba(0,0,0,0.15);
    border-left: 1px solid var(--border-std); 
    z-index: 1000;
  }

  .nav.active { display: flex; }

  /* ON RÉAFFICHE LE TEXTE EN MODE VERTICAL */
  .nav a span:not(.material-symbols-outlined) {
    display: inline !important; 
  }

  .nav a {
    width: 100%; 
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
    justify-content: flex-start; 
    font-size: 16px; /* Plus lisible dans le menu vertical */
  }

  /* Ajustements Hero & Cartes */
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .cards { grid-template-columns: 1fr; }
}

/* --- ACCORDÉONS (Saisons) --- */
details.season-accordion {
  border: 1.2px solid var(--border-std);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: #fff;
  overflow: hidden;
  transition: all 0.2s ease;
}

details.season-accordion[open] {
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-color: var(--brand-turquoise);
}

summary.season-header {
  cursor: pointer;
  padding: 14px 16px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}

summary.season-header::-webkit-details-marker { display: none; }
summary.season-header:hover { background: #f0fdfd; }

.season-title-group { display: flex; align-items: center; gap: 10px; }
.season-title-group h3 { margin: 0; font-size: 1rem; color: #1e293b; }

.season-chevron { 
  transition: transform 0.2s ease; 
  color: #64748b; 
}

details[open] .season-chevron {
  transform: rotate(180deg);
  color: var(--brand-turquoise);
}

.season-content {
  border-top: 1px solid #f1f5f9;
  background: #fff;
}

/* --- GRILLE DES SAISONS (Calendrier) --- */
.season-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.season-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border-std);
  border-radius: var(--radius);
  padding: 16px;
  transition: transform 0.2s, border-color 0.2s;
}

.season-item:hover {
  transform: translateY(-2px);
  border-color: var(--brand-turquoise);
}

.season-icon-box {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: rgba(17, 197, 198, 0.1);
  color: #065f60;
  border-radius: 50%;
  flex-shrink: 0;
}

.season-info { display: flex; flex-direction: column; }
.season-name { font-weight: 700; color: #1e293b; font-size: 0.95rem; }
.season-date { color: #64748b; font-size: 0.85rem; }

/* --- TABLEAUX --- */
.table-container { overflow-x: auto; width: 100%; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table th {
  background: #f8fafc;
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  border-bottom: 2px solid #f1f5f9;
}

.table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
}

.table tr:last-child td { border-bottom: none; }

/* --- ÉLÉMENTS DIVERS --- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  color: #065f60;
  margin-bottom: 8px;
  padding: 4px 8px;
  background: rgba(17, 197, 198, 0.1);
  border-radius: 4px;
}

.muted { color: #64748b; font-size: 0.9rem; }
.accent { color: var(--brand-turquoise); }
.price-bold { color: var(--brand-orange); font-weight: 800; }

.info-card {
  background: #f1f5f9;
  padding: 16px;
  border-radius: var(--radius);
  border-left: 4px solid var(--brand-turquoise);
  margin: 20px 0;
}


/* --- COMPLÉMENTS POUR LA PAGE MOTO --- */

/* Titre de carte avec icône (Alternative à card-header) */
.card .title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.card .title h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
}

.card .title .material-symbols-outlined {
  color: var(--brand-turquoise);
  font-size: 28px;
}

/* Force les boutons en bas de la carte pour un alignement parfait */
.moto-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.moto-card .traits {
  flex-grow: 1; /* Pousse le bloc bouton vers le bas */
}

/* Style spécifique pour les images dans les cartes moto */
.moto-card .media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}


/* --- FICHE DÉTAILS MOTO (moto-details.php) --- */
.details-container {
  padding: 40px 0;
}

.card-detail {
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  border: 1.5px solid var(--border-std);
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.card-detail .media img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

.card-detail .content {
  padding: 32px;
}

.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
}

.detail-header h1 {
  margin: 0;
  font-size: 2rem;
  color: #1e293b;
}

/* Grille d'infos sur la fiche détaillée */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: #f8fafc;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: border-color 0.2s;
}

.info-item:hover {
  border-color: var(--brand-turquoise);
}

.info-item .material-symbols-outlined {
  color: var(--brand-turquoise);
  font-size: 24px;
  margin-top: 2px;
}

.info-item b {
  display: block;
  font-size: 0.85rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-item span {
  font-size: 1rem;
  color: #1e293b;
  font-weight: 600;
}

.detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .detail-header h1 { font-size: 1.5rem; }
  .card-detail .content { padding: 20px; }
  .info-grid { grid-template-columns: 1fr; }
}

/* --- FORMULAIRES & RÉSERVATION --- */
.resa-grid { 
  display: grid; 
  grid-template-columns: 1fr 380px; 
  gap: 32px; 
  align-items: start; 
  margin-top: 40px;
}

.resa-card { 
  background: #fff; 
  border: 1px solid var(--border-std); 
  border-radius: var(--radius); 
  padding: 24px; 
  margin-bottom: 24px; 
  box-shadow: 0 1px 3px rgba(0,0,0,0.05); 
}

.resa-header { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  margin-bottom: 20px; 
  font-weight: 700; 
  color: var(--brand-turquoise); 
  text-transform: uppercase; 
  font-size: 0.85rem; 
  letter-spacing: 0.5px;
  border-bottom: 1px solid #f1f5f9; 
  padding-bottom: 12px; 
}

/* Grilles de formulaires */
.grid-form { display: grid; gap: 20px; margin-bottom: 20px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-address { grid-template-columns: 100px 1fr 1fr; }

.form-group { margin-bottom: 15px; }
.form-group label { 
  display: block; 
  font-size: 0.85rem; 
  font-weight: 600; 
  margin-bottom: 6px; 
  color: #475569; 
}

.lr-init input:not([type="submit"]):not([type="file"]), 
.lr-init select, 
.lr-init textarea { 
  width: 100%; 
  padding: 12px; 
  border-radius: 8px; 
  border: 1px solid #cbd5e1; 
  font-size: 0.95rem; 
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lr-init input:focus, .lr-init select:focus {
  outline: none;
  border-color: var(--brand-turquoise);
  box-shadow: 0 0 0 3px rgba(17, 197, 200, 0.1);
}

/* Équipements */
.equip-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.equip-col { 
  background: #f8fafc; 
  padding: 20px; 
  border-radius: 10px; 
  border: 1px solid #e2e8f0; 
}

.equip-title { 
  text-align: center; 
  font-size: 0.8rem; 
  font-weight: 800; 
  color: #64748b; 
  margin-bottom: 15px; 
  text-transform: uppercase; 
  border-bottom: 2px solid #cbd5e1; 
  padding-bottom: 8px; 
}

/* Sidebar & Récapitulatif */
.resa-sidebar { position: sticky; top: 100px; }
.sidebar-summary { border-top: 4px solid var(--brand-turquoise) !important; }

.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

#p-moto-img { 
  width: 100%; 
  aspect-ratio: 16/9; 
  object-fit: contain; 
  background: #fff; 
  border-radius: 8px; 
  margin-bottom: 12px; 
  border: 1px solid #f1f5f9;
}

.preview-box {
  margin-top: 15px;
  padding: 15px;
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  border-radius: 8px;
  text-align: center;
}

@media (max-width: 960px) {
  .resa-grid { grid-template-columns: 1fr; }
  .resa-sidebar { position: static; }
  .grid-2, .grid-address, .equip-split { grid-template-columns: 1fr; }
}


/* --- COMPOSANTS DE RÉSERVATION (reservation.php) --- */

/* Structure de la grille de réservation */
.resa-grid { 
    display: grid; 
    grid-template-columns: 2.2fr 1fr; 
    gap: 24px; 
    align-items: start; 
    width: 100%; 
}

/* Cartes de formulaire */
.resa-card { 
    background: #fff; 
    border: 1.5px solid var(--border-std); /* Harmonisé avec votre Design System */
    border-radius: var(--radius); 
    padding: 20px; 
    margin-bottom: 20px; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); 
}

.resa-header { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    margin-bottom: 16px; 
    font-weight: 700; 
    color: var(--brand-turquoise); 
    text-transform: uppercase; 
    font-size: 0.85rem; 
    border-bottom: 1px solid #f1f5f9; 
    padding-bottom: 10px; 
}

/* Grilles internes aux formulaires */
.grid-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-row-address { display: grid; grid-template-columns: 100px 1fr 1fr; gap: 15px; }
.row-full { width: 100%; margin-bottom: 15px; }

/* Champs de saisie spécifiques à LocalRide */
.lr-init label { 
    display: block; 
    font-size: 0.85rem; 
    font-weight: 600; 
    margin-bottom: 6px; 
    color: #475569; 
}

.lr-init input, .lr-init select { 
    width: 100%; 
    min-width: 0; 
    padding: 10px; 
    border-radius: 8px; 
    border: 1px solid #cbd5e1; 
    font-size: 0.95rem; 
    box-sizing: border-box; 
}

/* Équipements */
.equip-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.equip-col { background: #f8fafc; padding: 16px; border-radius: 8px; border: 1px solid #f1f5f9; }
.equip-title { 
    text-align: center; 
    font-size: 0.85rem; 
    font-weight: 700; 
    color: #334155; 
    margin-bottom: 12px; 
    text-transform: uppercase; 
    border-bottom: 2px solid #e2e8f0; 
    padding-bottom: 6px; 
}

/* Sidebar (Récapitulatif) */
.resa-sidebar { position: sticky; top: 90px; width: 100%; }

/* Preview Permis et Images */
#p-moto-img { 
    width: 100%; 
    aspect-ratio: 4/3; 
    object-fit: contain; 
    border-radius: 8px; 
    margin-bottom: 10px; 
    background: #fff; 
    border: 1px solid #f1f5f9; 
    padding: 8px; 
}

#permis-preview-box { 
    display:none; 
    margin-top:10px; 
    padding:10px; 
    border:1px dashed #cbd5e1; 
    background:#f8fafc; 
    border-radius:8px; 
    text-align:center; 
}

#permis-preview-img { 
    max-width:100%; 
    max-height:150px; 
    border-radius:4px; 
    box-shadow:0 2px 5px rgba(0,0,0,0.1); 
}

/* Résumé Équipements JS */
#equip-summary { 
    display:none; 
    background:#fff; 
    border:1px solid #f1f5f9; 
    padding:12px; 
    border-radius:6px; 
    margin-bottom:12px; 
    font-size:0.85rem; 
}

.eq-row { display:flex; justify-content:space-between; margin-bottom:4px; padding-bottom:4px; border-bottom:1px dashed #eee; }
.eq-row:last-child { border-bottom:none; margin-bottom:0; }

/* Infos juridiques et Passager */
.info-juridique { 
    font-size: 0.8rem; 
    color: #475569; 
    background: #f8fafc; 
    border: 1.5px solid var(--border-std); 
    padding: 12px; 
    border-radius: 6px; 
    margin-top: 15px; 
    line-height: 1.5; 
    border-left: 4px solid var(--brand-turquoise); 
}

.info-juridique hr { border: 0; border-top: 1px dashed #cbd5e1; margin: 8px 0; }

/* --- RESPONSIVE RÉSERVATION --- */
@media (max-width: 960px) { 
    .resa-grid { display: flex; flex-direction: column; } 
    .resa-sidebar { position: static; order: 2; } 
    .grid-row-2, .grid-row-address, .equip-split { grid-template-columns: 1fr; gap: 12px; } 
}

/* --- COMPOSANTS COURS D'INITIATION --- */

/* Grille d'avantages (Features) */
.feature-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 24px; 
  margin: 40px 0; 
}

.feature-card { 
  background: #fff; 
  padding: 30px; 
  border-radius: var(--radius); 
  border: 1px solid var(--border-std); 
  box-shadow: 0 4px 12px rgba(0,0,0,0.03); 
  transition: transform 0.3s ease; 
}

.feature-card:hover { 
  transform: translateY(-5px); 
  border-color: var(--brand-turquoise); 
}

.feature-icon { 
  color: var(--brand-turquoise); 
  font-size: 40px; 
  margin-bottom: 15px; 
  display: block; 
}

.feature-title { 
  font-weight: 800; 
  font-size: 1.2rem; 
  margin-bottom: 10px; 
  color: #1e293b; 
}

/* Ajustements spécifiques Formulaire Initiation */
.form-card { 
  background: #fff; 
  border: 1px solid var(--border-std); 
  border-radius: var(--radius); 
  padding: 32px; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
  max-width: 800px; 
  margin: 0 auto; 
}

.client-check { 
  background: #f1f5f9; 
  padding: 16px; 
  border-radius: 8px; 
  border: 1px dashed var(--border-std); 
  display: flex; 
  gap: 12px; 
  align-items: center; 
  margin: 20px 0; 
  cursor: pointer; 
  transition: background 0.2s;
}

.client-check:hover { background: #e2e8f0; }

.client-check input[type="checkbox"] { 
  width: 20px; 
  height: 20px; 
  accent-color: var(--brand-turquoise);
}

.btn-full { 
  width: 100%; 
  justify-content: center; 
  padding: 16px; 
  font-size: 1.1rem; 
}

/* --- INFOS PRATIQUES (infos.php) --- */

/* Hero Image spécifique */
.hero-media--question {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    height: 100%;
}
.hero-media--question img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Liste de vignettes */
.info-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--border-std);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.info-row:hover {
    transform: translateX(5px);
    border-color: var(--brand-turquoise);
}

.info-thumb {
    width: 80px;
    height: 80px;
    flex: 0 0 80px;
    border-radius: 12px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.info-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-thumb .material-symbols-outlined {
    font-size: 32px;
    color: var(--brand-turquoise);
    opacity: 0.6;
}

.info-content { flex: 1; }
.info-content h3 { 
    margin: 0 0 8px 0; 
    font-size: 1.1rem; 
    color: #1e293b; 
    font-weight: 700;
}

.info-content p, .info-content li {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
}

.info-content ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

@media (max-width: 600px) {
    .info-row { flex-direction: column; align-items: center; text-align: center; }
    .info-thumb { width: 100px; height: 100px; flex: 0 0 100px; }
}



/* --- PAGE SÉCURITÉ (securite.php) --- */

/* Hero Image spécifique Sécurité */
.hero-media--securite {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    min-height: 300px;
}

/* Cartes de conseils (Tips) */
.tip-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Pour que toutes les cartes aient la même hauteur dans la grille */
}

.tip-card .title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.tip-card .title h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.tip-card .title .material-symbols-outlined {
    color: var(--brand-turquoise);
    font-size: 28px;
}

/* Ajustement des listes de traits dans les conseils */
.tip-card .traits {
    flex-grow: 1;
    margin-top: 10px;
}

.tip-card .traits li {
    align-items: flex-start; /* Aligne l'icône en haut si le texte fait plusieurs lignes */
    line-height: 1.4;
    margin-bottom: 10px;
}

/* --- COMPOSANTS FAQ (Spécifique) --- */

/* Hero FAQ */
.hero-media--faq {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

/* Accordéons FAQ (Optimisation des balises <details> utilisées comme cartes) */
details.card summary {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 700;
    list-style: none; /* Supprime la flèche par défaut */
}

details.card summary::-webkit-details-marker {
    display: none;
}

details.card[open] {
    border-color: var(--brand-turquoise);
    background: #ffffff;
}

details.card .muted {
    margin-top: 12px;
    padding-left: 36px; /* Aligne le texte sous la question après l'icône help */
    border-top: 1px dashed #f1f5f9;
    padding-top: 10px;
}

/* Utilitaires de grille pour la FAQ */
.faq-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

/* Image de catégorie dans la FAQ */
.cat-thumb {
    position: relative;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.08);
    max-height: 150px;
    width: 100%;
}

/* --- OPTIMISATIONS FAQ --- */

/* Titres de chapitres en turquoise */
.faq-category-title {
    color: var(--brand-turquoise) !important;
    font-weight: 800;
    margin: 0;
}

/* Gestion des liens du sommaire : icône sans soulignement */
.card-link {
    text-decoration: none !important;
    color: inherit;
    display: block;
}

/* On ne souligne que le texte au survol de la carte */
.card-link:hover .link-text {
    text-decoration: underline;
    text-decoration-color: var(--brand-turquoise);
}

/* Protection des icônes contre le soulignement hérité */
.card-link .material-symbols-outlined, 
.head .material-symbols-outlined {
    text-decoration: none !important;
    display: inline-block;
}








        .localride-button {
            position: relative;
            padding: 18px 45px;
            font-size: 16px;
            font-weight: 700;
            color: white;
            background-color: #00CED1;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            box-shadow: 0 8px 20px rgba(0, 206, 209, 0.25);
            transition: all 0.3s ease;
            overflow: visible; 
            text-transform: uppercase;
            outline: none;
        }

        .localride-button:hover {
            background-color: #00A9AD;
            transform: translateY(-2px);
        }

        .google-moto {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            color: #004d4d; /* Turquoise Foncé */
            font-size: 42px;
            opacity: 0;
            pointer-events: none;
            z-index: 10;
        }

        /* ANIMATION AVEC DÉPART PROGRESSIF */
        .vroum-progressive {
            animation: googleSlowStart 1.6s ease-in forwards;
        }

        @keyframes googleSlowStart {
            0% { opacity: 0; left: 50%; transform: translate(-50%, -50%) scale(0.6); }
            15% { opacity: 1; left: 50%; transform: translate(-50%, -50%) scale(1.2) rotate(-20deg); }
            45% { opacity: 1; left: 60%; transform: translate(-50%, -50%) scale(1.2) rotate(-15deg); }
            100% { opacity: 0; left: 600%; transform: translate(-50%, -50%) scale(1.8) skewX(-30deg); }
        }
        
        
   /* WIDGET WATHAPP */      
        
#whatsapp-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: Arial, sans-serif;
}

/* Bouton vert WhatsApp */
#whatsapp-button {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

#whatsapp-button img { width: 35px; }

/* Fenêtre de chat */
#whatsapp-chat {
    width: 300px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.chat-hidden { display: none; }

.chat-header {
    background-color: #40E0D0; /* Votre Turquoise */
    padding: 15px;
    display: flex;
    align-items: center;
    color: white;
}

.chat-logo { width: 40px; margin-right: 10px; border-radius: 50%; background: white; padding: 2px;}

.chat-body { padding: 20px; background: #f0f0f0; font-size: 14px; }

.chat-footer { padding: 10px; background: white; text-align: center; }

#start-chat {
    background-color: #25D366;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
}






#lr-whatsapp-wrapper {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 10000;
    font-family: sans-serif;
    /* On force la largeur du conteneur pour éviter les décalages */
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* BOUTON : Strictement immobile */
#lr-trigger-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s ease;
    /* Empêche tout mouvement parasite */
    flex-shrink: 0;
    margin: 0; 
}

/* Couleurs de marque */
.btn-status-off { background-color: #000000 !important; }
.btn-status-on { background-color: var(--brand-orange) !important; }

.icon-white {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

/* FENÊTRE DE CHAT */
#lr-chat-box {
    width: 260px;
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 5px 15px rgba(0, 0, 0, 0.3);
}

.lr-hidden { display: none !important; }

/* Header Turquoise Officiel */
.lr-chat-header { 
    background-color: var(--brand-turquoise); 
    color: white; 
    padding: 12px; 
    display: flex; 
    align-items: center; 
}

.lr-mini-logo { 
    width: 35px !important; 
    height: 35px !important; 
    border-radius: 50%; 
    background: white; 
    padding: 3px; 
    margin-right: 10px; 
}

.lr-header-text strong { display: block; font-size: 14px; }
.lr-header-text span { font-size: 11px; opacity: 0.9; }
#lr-close-chat { margin-left: auto; cursor: pointer; font-size: 24px; line-height: 1; }

.lr-chat-body { padding: 15px; background: #f7f7f7; }
#lr-user-message { 
    width: 100%; 
    height: 90px; 
    border: 1px solid #ddd; 
    border-radius: 8px; 
    padding: 10px; 
    font-size: 13px; 
    resize: none; 
    box-sizing: border-box; 
}

.lr-chat-footer { padding: 10px; }
/* Bouton d'envoi Orange Officiel */
#lr-send-btn { 
    width: 100%; 
    background-color: var(--brand-orange); 
    color: white; 
    border: none; 
    padding: 12px; 
    border-radius: 25px; 
    cursor: pointer; 
    font-weight: bold; 
    text-transform: uppercase;
    font-size: 12px;
}

/* --- SOCIAL LINKS  pied de page--- */
    .social-links {
      margin-left: auto; /* Pousse le bloc vers la droite */
      display: flex;
      align-items: center;
      gap: 15px;
    }
    .social-links img {
      height: 20px; /* Hauteur max demandée */
      width: auto;
      display: block;
      transition: opacity 0.2s;
    }
    .social-links a:hover img {
      opacity: 0.8;
    }
    /* -------------------------- */
	
	
	
		
	
/* ============================= */
/* CORRECTIF LARGEUR MOBILES */
/* ============================= */	
	
	
	
	
/* ============================= */
/* FIX GLOBAL ANTI-DÉBORDEMENT */
/* ============================= */

/* Empêche tout élément de dépasser */
* {
  min-width: 0;
}

/* Sécurité globale */
html, body {
  overflow-x: hidden;
}

/* ============================= */
/* FIX FORMULAIRES (IMPORTANT) */
/* ============================= */

input,
select,
textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Corrige les groupes */
.form-group,
.lr-init,
.grid-form,
.grid-2,
.grid-address,
.grid-row-2,
.grid-row-address {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* ============================= */
/* FIX GRID (GROS POINT FAIBLE) */
/* ============================= */

/* Empêche les colonnes de casser en mobile */
.grid-2,
.grid-row-2 {
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
}

/* Adresse (évite le 100px qui casse tout) */
.grid-address,
.grid-row-address {
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
}

/* ============================= */
/* FIX RESA GRID */
/* ============================= */

.resa-grid {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* ============================= */
/* FIX FLEX (très important) */
/* ============================= */

.row,
.flex-between,
.detail-actions {
  flex-wrap: wrap;
}

/* ============================= */
/* FIX ELEMENTS PROBLÉMATIQUES */
/* ============================= */

/* Images et médias */
img {
  max-width: 100%;
  height: auto;
}

/* Tables */
.table-container {
  overflow-x: auto;
}

/* Inputs spécifiques qui débordent parfois */
.lr-init input,
.lr-init select,
.lr-init textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* ============================= */
/* MOBILE ULTRA SAFE */
/* ============================= */

@media (max-width: 480px) {

  .container,
  .wrap {
    width: 100%;
    padding-inline: 10px;
  }

  /* Force tout en colonne */
  .grid-2,
  .grid-row-2,
  .grid-address,
  .grid-row-address,
  .equip-split {
    grid-template-columns: 1fr !important;
  }

  /* Boutons full */
  .btn,
  button {
    width: 100%;
  }

}