:root {
    --black: #090909;
    --black-light: #151515;
    --orange: #ff7900;
    --orange-light: #ff9a3d;
    --white: #ffffff;
    --gray: #777777;
    --gray-light: #eeeeee;
    --green: #1db954;
    --red: #e63946;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f7f7;
    color: var(--black);
    line-height: 1.5;
}

button,
input,
select {
    font: inherit;
}

.header {
    height: 75px;
    background: var(--black);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 7%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 27px;
    font-weight: 900;
    letter-spacing: -1px;
}

.logo span {
    color: var(--orange);
}

.header nav {
    display: flex;
    gap: 30px;
}

.header nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: .2s;
}

.header nav a:hover {
    color: var(--orange);
}


/* =========================================================
   IMAGE DU BUS
   Mets ton image sous le nom : youniti-bus.jpg
   dans le même dossier que index.html
   ========================================================= */

.hero {
    min-height: 500px;

    background-image:
        linear-gradient(
            90deg,
            rgba(0,0,0,.78),
            rgba(0,0,0,.28),
            rgba(0,0,0,.08)
        ),
        url("ynt.png");

    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;

    padding: 60px 8%;

    color: white;
}

.hero-content {
    max-width: 650px;
}

.badge {
    display: inline-block;
    color: var(--orange);
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 75px);
    line-height: 1.05;
    margin-bottom: 20px;
}

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

.hero p {
    color: #ddd;
    font-size: 18px;
    max-width: 550px;
    margin-bottom: 30px;
}

.hero-button {
    display: inline-block;
    background: var(--orange);
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 7px;
    font-weight: bold;
    transition: .2s;
}

.hero-button:hover {
    background: var(--orange-light);
    transform: translateY(-2px);
}


.reservation-section,
.info-section {
    padding: 80px 7%;
}

.section-title {
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
}

.section-title span {
    color: var(--orange);
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
}

.section-title h2 {
    font-size: 36px;
    margin: 8px 0;
}

.section-title p {
    color: var(--gray);
}

#reservationForm {
    max-width: 1000px;
    margin: auto;
}

.reservation-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 22px;
    box-shadow: 0 5px 30px rgba(0,0,0,.06);
}

.step-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.step-title > span {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--orange);
    color: white;
    display: grid;
    place-items: center;
    font-weight: bold;
}

.step-title h3 {
    font-size: 20px;
}

.step-title p {
    color: var(--gray);
    font-size: 13px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 50px 1fr;
    gap: 15px;
    align-items: end;
}

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

.form-group label {
    font-size: 14px;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 15px;
    outline: none;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255,121,0,.1);
}

.swap-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 18px;
}

#swapCities {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--black);
    color: white;
    cursor: pointer;
    font-size: 22px;
}

#swapCities:hover {
    background: var(--orange);
}

.time-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.time-card {
    cursor: pointer;
}

.time-card input {
    display: none;
}

.time-content {
    height: 70px;
    border: 2px solid #ddd;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: .2s;
}

.time-content strong {
    font-size: 20px;
}

.time-content small {
    color: var(--gray);
}

.time-card input:checked + .time-content {
    border-color: var(--orange);
    background: rgba(255,121,0,.08);
    color: var(--orange);
}

.price-display {
    margin-top: 10px;
    padding: 20px;
    border-radius: 10px;
    background: var(--black);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-display strong {
    color: var(--orange);
    font-size: 23px;
}

.seat-information {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 25px;
    font-size: 13px;
}

.seat-information div {
    display: flex;
    align-items: center;
    gap: 7px;
}

.legend {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.legend.available {
    background: white;
}

.legend.selected {
    background: var(--orange);
}

.legend.occupied {
    background: #777;
}

.bus {
    max-width: 600px;
    margin: auto;
    padding: 25px;
    background: #222;
    border-radius: 35px 35px 20px 20px;
    border: 4px solid #444;
}

.driver-area {
    height: 65px;
    background: #111;
    border-radius: 20px 20px 8px 8px;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    margin-bottom: 20px;
    font-size: 11px;
}

.steering {
    font-size: 28px;
}

.seat-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 10px 5px;
}

.seat {
    height: 45px;
    border-radius: 8px;
    border: 2px solid #555;
    background: #fff;
    cursor: pointer;
    color: #111;
    font-size: 12px;
    font-weight: bold;
    transition: .15s;
}

.seat:hover {
    transform: scale(1.05);
}

.seat.selected {
    background: var(--orange);
    color: white;
    border-color: var(--orange);
}

.seat.occupied {
    background: #777;
    color: #ccc;
    border-color: #777;
    cursor: not-allowed;
    text-decoration: line-through;
}

.seat:nth-child(5n + 3) {
    margin-right: 15px;
}

.bus-back {
    margin-top: 20px;
    height: 45px;
    background: #111;
    color: #777;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 11px;
}

.seat-summary {
    margin-top: 25px;
    padding: 20px;
    border-radius: 10px;
    background: #f5f5f5;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.seat-summary div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.seat-summary span {
    color: var(--gray);
    font-size: 12px;
}


/* PAIEMENT */

.payment-card {
    border: 2px solid rgba(255,121,0,.18);
}

.payment-notice {
    padding: 15px;
    border-radius: 10px;
    background: #fff7ef;
    margin-bottom: 18px;
}

.payment-notice strong {
    color: var(--orange);
}

.payment-notice p {
    margin-top: 5px;
    font-size: 13px;
    color: #666;
}

.payment-check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: bold;
}

.payment-check input {
    width: 20px;
    height: 20px;
    accent-color: var(--orange);
}


/* RÉSUMÉ */

.final-summary {
    background: var(--black);
    color: white;
    border-radius: 12px;
    padding: 25px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 25px 0;
}

.final-summary div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.final-summary span {
    color: #aaa;
    font-size: 12px;
}

.final-summary .summary-total {
    border-left: 1px solid #444;
    padding-left: 20px;
}

.summary-total strong {
    color: var(--orange);
    font-size: 22px;
}

.reserve-button {
    width: 100%;
    height: 60px;
    border: none;
    border-radius: 10px;
    background: var(--orange);
    color: white;
    font-weight: bold;
    cursor: pointer;
    font-size: 15px;
    transition: .2s;
}

.reserve-button:hover {
    background: var(--black);
    transform: translateY(-2px);
}


/* HORAIRES */

.info-section {
    background: white;
}

.info-grid {
    max-width: 800px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-card {
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 15px;
    text-align: center;
}

.info-icon {
    font-size: 30px;
    margin-bottom: 10px;
}

.info-card strong {
    display: block;
    color: var(--orange);
    font-size: 32px;
    margin: 10px 0;
}

.dark-section {
    background: var(--black);
    color: white;
}

.dark-section .section-title p {
    color: #aaa;
}


/* BILLET */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,.8);
    padding: 20px;
    overflow-y: auto;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.ticket {
    width: 100%;
    max-width: 500px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.2);
    color: white;
    font-size: 25px;
    cursor: pointer;
    z-index: 2;
}

.ticket-header {
    background: var(--black);
    color: white;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-logo {
    font-size: 25px;
    font-weight: bold;
}

.ticket-logo span {
    color: var(--orange);
}

.ticket-header > span {
    font-size: 11px;
    letter-spacing: 1px;
}

.ticket-route {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    text-align: center;
    padding: 25px;
    border-bottom: 1px dashed #ccc;
}

.ticket-route small,
.ticket-details small {
    display: block;
    color: #999;
    font-size: 10px;
    margin-bottom: 4px;
}

.ticket-route strong {
    font-size: 20px;
}

.ticket-route > span {
    color: var(--orange);
    font-size: 25px;
}

.ticket-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 25px;
}

.ticket-details strong {
    font-size: 14px;
    word-break: break-word;
}

.ticket-total {
    background: #f5f5f5;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ticket-total strong {
    color: var(--orange);
    font-size: 22px;
}


/* Message demandé sur le ticket */

.ticket-email-note {
    margin: 0 25px;
    padding: 12px;
    border-radius: 8px;
    background: #fff7ef;
    color: #555;
    text-align: center;
    font-size: 12px;
}

.ticket-email-note strong {
    display: block;
    color: var(--orange);
}

.ticket-footer {
    text-align: center;
    padding: 15px;
    font-size: 12px;
    color: #888;
}

.print-button {
    margin: 0 25px 25px;
    width: calc(100% - 50px);
    height: 48px;
    border: none;
    border-radius: 8px;
    background: var(--black);
    color: white;
    cursor: pointer;
    font-weight: bold;
}

footer {
    background: #050505;
    color: white;
    padding: 35px 7%;
    text-align: center;
}

footer p {
    color: #777;
    margin-top: 5px;
}


/* RESPONSIVE */

@media (max-width: 750px) {

    .header {
        padding: 0 20px;
    }

    .header nav {
        display: none;
    }

    .hero {
        padding: 60px 25px;
        min-height: 450px;
        background-position: center;
    }

    .reservation-section,
    .info-section {
        padding: 55px 18px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .swap-container {
        padding: 0;
    }

    #swapCities {
        transform: rotate(90deg);
    }

    .seat-container {
        gap: 7px;
    }

    .seat {
        height: 40px;
        font-size: 10px;
    }

    .seat:nth-child(5n + 3) {
        margin-right: 8px;
    }

    .seat-summary {
        grid-template-columns: 1fr;
    }

    .final-summary {
        grid-template-columns: 1fr 1fr;
    }

    .final-summary .summary-total {
        border-left: none;
        padding-left: 0;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 450px) {

    .reservation-card {
        padding: 20px;
    }

    .time-options {
        grid-template-columns: 1fr;
    }

    .seat-container {
        grid-template-columns: repeat(5, 1fr);
    }

    .bus {
        padding: 15px;
    }

    .ticket-details {
        grid-template-columns: 1fr;
    }
}


/* IMPRESSION */

@media print {

    body * {
        visibility: hidden;
    }

    .ticket,
    .ticket * {
        visibility: visible;
    }

    .ticket {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        max-width: 500px;
    }

    .close-modal,
    .print-button {
        display: none !important;
    }
    
/* =====================================================
   TABLEAU DES TARIFS YOUNITI
   ===================================================== */

.tarifs-table-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 40px auto 0;
    overflow-x: auto;
    border-radius: 12px;
}


/* TABLEAU */

.youniti-tarifs {
    width: 100%;
    border-collapse: collapse;
    background: #111;
    color: white;
    border: 2px solid #ff7900;
    border-radius: 12px;
    overflow: hidden;
}


/* COLONNES */

.youniti-tarifs th,
.youniti-tarifs td {
    border: 1px solid #444;
}


/* EN-TÊTE */

.youniti-tarifs thead th {
    background: #ff7900;
    color: #fff;
    padding: 18px 15px;
    text-align: center;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .5px;
}


/* PETIT TEXTE DANS L'EN-TÊTE */

.youniti-tarifs thead th small {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    color: #fff;
    opacity: .85;
}


/* CELLULES */

.youniti-tarifs tbody td {
    padding: 20px 15px;
    text-align: center;
    background: #151515;
}


/* ALTERNANCE DES LIGNES */

.youniti-tarifs tbody tr:nth-child(even) td {
    background: #1d1d1d;
}


/* SURVOL */

.youniti-tarifs tbody tr:hover td {
    background: #252525;
}


/* COLONNE TRAJET */

.youniti-tarifs tbody td:first-child {
    text-align: left;
    min-width: 260px;
    padding-left: 25px;
}


/* NOM DE LA VILLE */

.youniti-tarifs tbody td:first-child strong {
    color: #fff;
    font-size: 16px;
}


/* FLÈCHE / DESTINATION */

.youniti-tarifs tbody td:first-child span {
    color: #ff7900;
    font-weight: bold;
    margin-left: 5px;
}


/* PRIX */

.youniti-tarifs tbody td:not(:first-child) strong {
    color: #ff7900;
    font-size: 22px;
}


/* FCFA */

.youniti-tarifs tbody td small {
    display: block;
    color: #aaa;
    font-size: 10px;
    margin-top: 3px;
}


/* SÉPARATION VERTICALE PLUS VISIBLE */

.youniti-tarifs th:nth-child(2),
.youniti-tarifs td:nth-child(2) {
    border-left: 2px solid #ff7900;
    border-right: 1px solid #555;
}


/* BORDURE DE LA DERNIÈRE COLONNE */

.youniti-tarifs th:last-child,
.youniti-tarifs td:last-child {
    border-left: 1px solid #555;
}


/* =====================================================
   VERSION TÉLÉPHONE
   ===================================================== */

@media (max-width: 600px) {

    .tarifs-table-wrapper {
        overflow-x: auto;
        border-radius: 10px;
    }

    .youniti-tarifs {
        min-width: 600px;
    }

    .youniti-tarifs thead th {
        padding: 14px 10px;
        font-size: 13px;
    }

    .youniti-tarifs tbody td {
        padding: 15px 10px;
    }

    .youniti-tarifs tbody td:first-child {
        padding-left: 15px;
        min-width: 220px;
    }
 }
}
/* =====================================================
   SECTION VILLES D'ARRÊT YOUNITI
   Indépendante du système de réservation
   ===================================================== */

.youniti-stops-section {
    width: 100%;
    padding: 70px 0;
    background: #090909;
    color: #ffffff;
    overflow: hidden;
}

/* En-tête */

.youniti-stops-header {
    text-align: center;
    padding: 0 20px;
    margin-bottom: 45px;
}

.youniti-stops-header span {
    display: block;
    margin-bottom: 12px;
    color: #ff6a00;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
}

.youniti-stops-header h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 36px;
    font-weight: 800;
}

.youniti-stops-header p {
    margin: 0;
    color: #aaaaaa;
    font-size: 16px;
}

/* Zone permettant le défilement horizontal */

.youniti-stops-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 15px 30px 25px;
    box-sizing: border-box;

    /* Défilement fluide sur téléphone */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Barre de défilement */

.youniti-stops-wrapper::-webkit-scrollbar {
    height: 6px;
}

.youniti-stops-wrapper::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 10px;
}

.youniti-stops-wrapper::-webkit-scrollbar-thumb {
    background: #ff6a00;
    border-radius: 10px;
}

/* Liste des villes */

.youniti-stops-list {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    /* Important :
       empêche les villes de revenir à la ligne */
    width: max-content;
    min-width: 100%;
}

/* Une ville */

.youniti-stop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-width: 145px;
    padding: 10px 5px;

    text-align: center;
    flex-shrink: 0;
}

/* Nom de la ville */

.youniti-stop strong {
    margin-top: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

/* Point orange */

.youniti-stop-dot {
    position: relative;

    display: block;

    width: 18px;
    height: 18px;

    border: 3px solid #ff6a00;
    border-radius: 50%;

    background: #090909;

    box-shadow: 0 0 0 5px rgba(255, 106, 0, 0.12);
}

/* Petit point au centre */

.youniti-stop-dot::after {
    content: "";

    position: absolute;

    width: 6px;
    height: 6px;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    background: #ff6a00;
    border-radius: 50%;
}

/* Ligne entre les villes */

.youniti-stop-line {
    display: block;

    width: 70px;
    height: 3px;

    background: #ff6a00;

    flex-shrink: 0;

    opacity: 0.9;
}


/* =====================================================
   VERSION MOBILE
   ===================================================== */

@media (max-width: 768px) {

    .youniti-stops-section {
        padding: 55px 0;
    }

    .youniti-stops-header {
        margin-bottom: 30px;
    }

    .youniti-stops-header h2 {
        font-size: 28px;
    }

    .youniti-stops-header p {
        font-size: 14px;
    }

    .youniti-stops-wrapper {
        padding-left: 20px;
        padding-right: 20px;
    }

    .youniti-stop {
        min-width: 125px;
    }

    .youniti-stop strong {
        font-size: 14px;
    }

    .youniti-stop-line {
        width: 45px;
    }

}
/* =====================================================
   CONTACT YOUNITI
   ===================================================== */

.youniti-contact {
    text-align: center;
    margin: 30px 0;
}

.youniti-contact h3 {
    color: #ffffff;
    margin-bottom: 15px;
}

.youniti-contact-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.youniti-contact-numbers a {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #ff6a00;
    text-decoration: none;
    font-weight: 700;

    transition: 0.2s ease;
}

.youniti-contact-numbers a:hover {
    color: #ffffff;
    transform: scale(1.03);
}

.youniti-contact-numbers a:active {
    transform: scale(0.97);
}