/* =====================================================
   CHARTE GRAPHIQUE PRIVANGO
===================================================== */

:root {
    --color-bg: #050505;       /* Noir profond */
    --color-surface: #1a1a1a;  /* Cartes / surfaces */
    --color-cream: #c19d4e;    /* Crème du logo */
    --color-white: #ffffff;

    --font-title: 'Montserrat', sans-serif;
    --font-text: 'Montserrat', sans-serif;
}

/* =====================================================
   RESET & BASE
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    color: var(--color-white);
    font-family: var(--font-text);
    line-height: 1.6;
    font-weight: 300;
}

h1, h2, h3, .logo-text {
    font-family: var(--font-title);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
}

p {
    font-weight: 300;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

/* =====================================================
   BOUTONS
===================================================== */

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: 0.3s ease;
}

.btn-primary {
    background-color: var(--color-cream);
    color: var(--color-bg);
    border: 2px solid var(--color-cream);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-cream);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--color-cream);
    color: var(--color-cream);
    font-size: 0.9rem;
}

.btn-outline:hover {
    background-color: var(--color-cream);
    color: var(--color-bg);
}

/* =====================================================
   HEADER / NAVIGATION
===================================================== */

header {
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
    z-index: 10;
    background: linear-gradient(to bottom, #000000, #000000)
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-cream);
}

nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    font-size: 0.9rem;
    color: var(--color-cream);
    text-transform: uppercase !important;
    font-weight: 600;
}

nav a:hover {
    opacity: 1;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    color: var(--color-cream);
    cursor: pointer;
}



.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 14px;
}

.avatar {
    font-size: 18px;
}
/* -------- MOBILE -------- */
@media (max-width: 900px) {

    .mobile-menu {
        display: block;
        font-size: 30px;
        cursor: pointer;
        color: #fff;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #050505;
        flex-direction: column;
        padding: 25px;
        z-index: 2000;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-actions {
        display: none;
    }
}



 
  /* =========================
   HERO HOME – GRID 2 COLONNES
========================= */

.hero-home {
    position: relative;
   /* min-height: 100vh; */
    display: flex;
    align-items: center;
    background: url("../images/hero-bg.jpg") center/cover no-repeat;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

/* Conteneur principal */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* GRID 2 COLONNES */
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

/* =========================
   COLONNE TEXTE
========================= */

.hero-text h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text h1 span {
    color: var(--color-gold, #d4af37);
}

.hero-text p {
    font-size: 1.1rem;
    max-width: 520px;
    opacity: 0.95;
}

/* =========================
   COLONNE FORMULAIRE
========================= */

.hero-form {
   /* background: rgba(26, 26, 26, 0.40);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);*/
}

.hero-search .form-group {
    margin-bottom: 16px;
}

.hero-search label {
    font-size: 0.85rem;
    margin-bottom: 6px;
    display: block;
    opacity: 0.9;
}

.hero-search input,
.hero-search select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: none;
    background: #111;
    color: #fff;
    font-size: 0.95rem;
}

.hero-search input::placeholder {
    color: #aaa;
}

.hero-search button {
    margin-top: 10px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 5px;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto;
    }
}


/* =====================================================
   SEARCH BAR
===================================================== */

.search-bar {
    background: var(--color-surface);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    border: 1px solid #333;
}

.search-input {
    background: #ffffff;       /* Fond blanc */
    border: 1px solid #ccc;    /* Bordure douce */
    padding: 12px;
    color: #000000;            /* Texte noir pour lisibilité */
    border-radius: 4px;
    width: 100%;               /* Prend toute la largeur disponible */
    box-sizing: border-box;    /* Inclut padding et border dans la largeur */
    font-family: var(--font-text);
    font-size: 1rem;
}

.search-input::placeholder {
    color: #666;
}

/* =====================================================
   FEATURES
===================================================== */

.features {
    padding: 80px 5%;
    background-color: var(--color-bg);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--color-cream);
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--color-surface);
    padding: 30px;
    border-radius: 8px;
    border-top: 3px solid var(--color-cream);
    text-align: center;
}

.feature-card h3 {
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 0.95rem;
    color: #ccc;
}

/* =====================================================
   DRIVER CTA
===================================================== */

.driver-cta {
    padding: 80px 5%;
    background: linear-gradient(to right, #111, #222);
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.driver-text {
    max-width: 600px;
}

.driver-text h2 {
    font-size: 2.0rem;
    margin-bottom: 10px;
    line-height: 30px;
}

.highlight {
    color: var(--color-cream);
    font-weight: bold;
}

/* =====================================================
   FOOTER
===================================================== */

footer {
    padding: 40px 5%;
    background: #000;
    text-align: center;
    border-top: 1px solid #222;
    font-size: 0.8rem;
    color: #666;
}

footer strong {
    color: var(--color-cream);
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 768px) {
    header {
        padding: 15px 5%;
    }

    nav ul {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .driver-cta {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}


nav ul li a.active {
    border-bottom: 2px solid #F2EED5;
    color: #F2EED5;
}


.main-centered {
    min-height: 80vh;
    background: #050505;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    padding: 40px 5%;
}

.main-container {
    width: 100%;
    max-width: 1100px;
}

.titre-centre {
    text-align: center;
}

/* =========================
   SEARCH RESULTS GRID
========================= */

.search-results {
    padding: 60px 5%;
    background: #050505;
}

/* Grille */
.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* PC = 4 colonnes */
    gap: 25px;
}

/* Mobile */
@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr); /* Mobile = 2 colonnes */
    }
}

/* =========================
   DRIVER CARD
========================= */

.driver-card {
    background: #111;
    border-radius: 10px;
    overflow: hidden; /* IMPORTANT pour l’image */
    display: flex;
    flex-direction: column;
}

/* =========================
   IMAGE 100%
========================= */

.driver-image {
    width: 100%;
    height: 220px; /* HAUTEUR IDENTIQUE POUR TOUTES LES CARTES */
    overflow: hidden;
}

.driver-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Image remplie sans déformation */
    display: block;
}

/* =========================
   CONTENU
========================= */

.driver-content {
    padding: 15px;
    text-align: center;
}

.driver-content h3 {
    color: #F2EED5;
    margin-bottom: 5px;
    font-size: 16px;
}

.driver-content p {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 12px;
}



table tr td {
    text-align: center;
}




/* ================================
   HERO HOME – PRIVANGO
================================ */

.hero-home {
    position: relative;
    height: 90vh;
    background: url("../images/bg.jpg") center center/ cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0,0,0,0.65),
        rgba(0,0,0,0.10)
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 90%;
    width: 100%;
    color: #fff;
}

.hero-content h1 {
	font-size: 2.5rem;
    line-height: 40px;
}

.hero-content h1 span {
    color: var(--color-cream);
}

.hero-content p {
    font-size: 1.0rem;
    opacity: 0.9;
}

/* ================================
   SEARCH FORM
================================ */

.hero-search {
    background: none;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #222;
    backdrop-filter: blur(6px);
  margin:auto;
  
}

.hero-search .row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.hero-search input {
    flex: 1;
    padding: 14px;
    background: #fff;
    color: #000;
    border-radius: 6px;
    border: none;
    font-size: 0.95rem;
}

.hero-search input:focus {
    outline: 2px solid var(--color-cream);
}

.hero-search button {
    width: 100%;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.0rem;
        line-height: 30px;
    }

    .hero-search .row {
        flex-direction: column;
    }

    .hero-search button {
        margin-top: 5px;
    }
    .hero-content {
      margin-top: 0px;
      max-width: 100%;
      padding: 10px;
  	}
  	.features {
      padding: 10px 5%;
  	}
  	.hero-home {
      height: auto;
  	}
}


/* ===============================
   HERO VEHICLES
================================ */

.vehicles-hero {
    position: relative;
    height: 60vh;
    background: url("/assets/images/bg.jpg") center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vehicles-hero .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
}

.vehicles-hero .content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 700px;
}

.vehicles-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.vehicles-hero p {
    opacity: 0.9;
}

/* ===============================
   VEHICLES LIST
================================ */

.vehicles-list {
    padding: 80px 6%;
    display: flex;
    flex-direction: column;
    gap: 80px;
    background: #050505;
}

.vehicle-card {
    display: flex;
    gap: 50px;
    align-items: center;
}

.vehicle-card.reverse {
    flex-direction: row-reverse;
}

.vehicle-card img {
    width: 50%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
}

.vehicle-info {
    width: 50%;
    color: #F2EED5;
}

.vehicle-info h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.vehicle-info p {
    opacity: 0.9;
    margin-bottom: 20px;
}

.vehicle-info ul {
    list-style: none;
    padding: 0;
}

.vehicle-info li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 900px) {
    .vehicle-card,
    .vehicle-card.reverse {
        flex-direction: column;
    }

    .vehicle-card img,
    .vehicle-info {
        width: 100%;
    }

    .vehicle-card img {
        height: 260px;
    }
}


.footer {
    background: #000;
    color: #fff;
    padding: 30px 40px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    flex-wrap: wrap;
}

.footer-left p {
    margin: 5px 0;
    font-size: 14px;
}

.footer-right {
    text-align: right;
}

.footer-right p {
    margin-bottom: 8px;
    font-size: 14px;
}

.social-icons a {
    color: #fff;
    font-size: 22px;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #caa45d; /* doré premium */
}

/* Responsive mobile */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        align-items: flex-start;
    }

    .footer-right {
        text-align: center;
    }

    .social-icons a {
        margin: 0 10px;
    }
}

.autocomplete-field {
    position: relative;
    width: 100%;
}

.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    max-height: 220px;
    overflow-y: auto;
    z-index: 999;
  	color: #000;
    text-align: left;
}

.autocomplete-list li {
    padding: 12px 14px;
    cursor: pointer;
    font-size: 14px;
}

.autocomplete-list li:hover {
    background: #f3f3f3;
}
.hero-search {
    max-width: 520px;
    margin-top: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
 	text-align: left;
}

.form-group input,
.form-group select {
	height: 52px;
    padding: 15px 14px;
    border-radius: 2px;
    border: none;
    font-size: 15px;
  	background: #FFF;
  	color: #000;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.25);
}

.full-width {
    width: 100%;
    margin-top: 10px;
}

/* Autocomplete reste compatible */
.autocomplete-field {
    position: relative;
}

@media (max-width: 768px) {

    input[type="datetime-local"] {
        width: 100%;
        height: 52px;
        font-size: 16px; /* CRUCIAL pour iOS */
        padding: 12px 14px;
        border-radius: 8px;
    }

}

.icon-garantie {
    width: 80px;
    background: #000;
    padding: 15px;
    border-radius: 50%;
}

.btn-message {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 10px;
    border-radius: 15px;
    background: #222;
    color: #F2EED5;
    font-size: 13px;
    text-decoration: none;
}
.btn-message:hover {
    background: #0066ff;
}







/* =====================
   RESPONSIVE DASHBOARD
===================== */

main {
    box-sizing: border-box;
}

/* Grilles adaptatives */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.dashboard-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Mobile & tablette */
@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-sections {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 1.6rem !important;
    }
}



/* =========================
   PROFIL RESPONSIVE
========================= */

.main-centered {
    padding: 40px 5%;
    background: #050505;
    min-height: 80vh;
}

.main-container {
    max-width: 1100px;
    margin: auto;
}

/* Grille profil */
.profile-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

/* Avatar */
.avatar-box img,
.avatar-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
}

/* Inputs */
.search-input {
    width: 100%;
    padding: 12px;
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
}

/* =========================
   MOBILE / TABLETTE
========================= */
@media (max-width: 900px) {

    .profile-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .avatar-box {
        display: flex;
        justify-content: center;
    }

    .avatar-box img,
    .avatar-placeholder {
        width: 140px;
        height: 140px;
    }

    h2 {
        font-size: 1.5rem;
    }

    button {
        font-size: 1rem;
    }
}


select {
  -webkit-appearance: none;
  appearance: none;
}

input,
select {
  min-height: 48px;
  font-size: 16px;
  padding: 0 14px;
  border-radius: 2px;
  box-sizing: border-box;
}

input[type="datetime-local"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  padding-top: 12px;
  padding-bottom: 10px;
}


/* ===== BASE ===== */
.menu-toggle {
    display:none;
    font-size:1.5rem;
    background:none;
    border:none;
    color:#F2EED5;
    cursor:pointer;
}

/* ===== MOBILE & TABLETTE ===== */
@media (max-width: 1024px) {

    .admin-container {
        flex-direction:column;
    }

    .admin-sidebar {
        position:fixed;
        top:0;
        left:-260px;
        width:250px;
        height:100vh;
        z-index:1000;
        transition:0.3s ease;
    }

    .admin-sidebar.open {
        left:0;
    }

    .admin-main {
        padding:0;
    }

    .admin-header {
        position:sticky;
        top:0;
        z-index:900;
    }

    .menu-toggle {
        display:block;
    }
}


@media (max-width: 600px) {
    h1 {
        font-size:1.4rem;
        text-align:center;
    }

    .admin-card h3 {
        font-size:2rem;
    }
}


.btn-delete {
    margin-top: 8px;
    background: #b00020;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
}

.btn-delete:hover {
    background: #8a0018;
}

.demandes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.demande-card {
    background: #111;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 260px;
}

/* Badge ID */
.badge-id {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #0066ff;
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
}

/* Infos */
.demande-infos p {
    color: #ddd;
    font-size: 14px;
    margin: 6px 0;
}

/* Actions verticales */
.demande-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.btn-message {
    background: #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
}

.btn-message:hover {
    background: #444;
}

.btn-delete {
    background: #b00020;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.btn-delete:hover {
    background: #8a0018;
}

/* Statuts */
.statut {
    text-align: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.statut-nouvelle { background: #444; color: #fff; }
.statut-envoyee  { background: #0066ff; color: #fff; }
.statut-acceptee { background: #1f8f4e; color: #fff; }
.statut-refusee  { background: #b00020; color: #fff; }
.statut-terminee { background: #777; color: #fff; }

/* Responsive */
@media (max-width: 1200px) {
    .demandes-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .demandes-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .demandes-grid { grid-template-columns: 1fr; }
}


.chat-wrapper{
    display:flex;
    flex-direction:column;
    height:100%;
}

.chat-header{
    padding:15px;
    background:#0d0d0d;
    font-weight:bold;
    border-bottom:1px solid #222;
}

.chat-messages{
    flex:1;
    padding:15px;
    overflow-y:auto;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.msg{
    max-width:70%;
    padding:10px 14px;
    border-radius:12px;
}

.msg.chauffeur{
    align-self:flex-end;
    background:#c19d4e;
    color:#000;
}

.msg.client{
    align-self:flex-start;
    background:#222;
    color:#fff;
}

/* FORMULAIRE EN BAS */
.chat-form{
    padding:10px;
    background:#0d0d0d;
    display:flex;
    flex-direction:column;
    gap:8px;
}

.chat-form input,
.chat-form button{
    width:100%;
    padding:12px;
    border-radius:10px;
    border:none;
    font-size:15px;
}

.chat-form button{
    background:#c19d4e;
    font-weight:bold;
    cursor:pointer;
}

.client{
    background:#111;
    padding:12px;
    border-radius:10px;
    margin-bottom:10px;
    cursor:pointer;
    position:relative;
    display:flex;
    flex-direction:column;
}
.client:hover{background:#1a1a1a}
.client p{font-size:13px;color:#aaa;margin-top:5px}
.badge{
    padding:3px 8px;
    border-radius:20px;
    font-size:11px;
    font-weight:bold;
}
.badge-message {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #c9a24d;
    color: #000;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
    line-height: 14px;
}


