* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Manrope", "Segoe UI", Arial, sans-serif;
    background: #050b12;
    color: #e8eef8;
}

a {
    color: inherit;
    text-decoration: none;
}

#barre-haut {
    height: 68px;
    padding: 0 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #07111d;
    border-bottom: 1px solid #1d2b3b;
}

#logo-zone {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 10px;
    padding: 4px 6px;
    margin: -4px -6px;
    transition: background 0.2s ease;
}

#logo-zone:hover,
#logo-zone:focus-visible {
    background: rgba(34, 197, 94, 0.08);
}

#logo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid #22c55e;
    color: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

h1 {
    margin: 0;
    font-size: 28px;
}

#logo-zone p {
    color: #9aa8ba;
    font-weight: bold;
}

#boutons-header {
    display: flex;
    gap: 14px;
}

button {
    cursor: pointer;
    border: 1px solid #243449;
    background: #08111d;
    color: #dce6f5;
    border-radius: 9px;
    padding: 10px 18px;
    font-weight: bold;
    transition: transform 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
}

button:hover {
    border-color: #22c55e;
    filter: brightness(1.08);
}

button:active {
    transform: translateY(1px);
}

button:focus-visible,
input:focus-visible {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
}

.bouton-vert {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-color: #22c55e;
    color: #04140a;
}

.bouton-discret {
    background: transparent;
    border-color: #22c55e;
    color: #86efac;
}

.bouton-danger {
    background: transparent;
    border-color: #334155;
    color: #cbd5e1;
}

.bouton-danger:hover {
    border-color: #f87171;
    color: #fca5a5;
    filter: none;
}

#application {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 18px;
    padding: 18px;
}

#colonne-gauche,
#colonne-droite {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.carte {
    background: linear-gradient(145deg, #0b1624, #07111d);
    border: 1px solid #1d2b3b;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

h2 {
    margin-top: 0;
    color: #22c55e;
    font-size: 20px;
}

label {
    display: block;
    margin: 18px 0 8px;
    font-weight: bold;
    color: #dce6f5;
}

input,
select {
    width: 100%;
    padding: 13px;
    background: #07111d;
    border: 1px solid #26374d;
    border-radius: 7px;
    color: white;
    font-size: 15px;
}

input::placeholder {
    color: #6f7c8f;
}

.ligne-input {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
}

.ligne-input span {
    color: #9aa8ba;
    font-weight: bold;
}

#boutons-carte {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

@media (max-width: 1100px) {
    #application {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    #barre-haut {
        height: auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 18px;
    }

    #boutons-header {
        width: 100%;
        flex-direction: column;
    }

    #boutons-header button {
        width: 100%;
    }

    #application {
        padding: 10px;
    }
}

#carte {
    width: 100%;
    height: 600px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #223044;
}

.div_individuel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #121e2d;
    border-left: 3px solid #22c55e;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.tournee_resultat{
    cursor:pointer;
    transition:.25s;
    border:2px solid transparent;
}

.tournee_resultat:hover{
    transform:translateY(-2px);
}

.tournee_selectionnee{
    border-color:currentColor;
    box-shadow:0 0 18px rgba(255,255,255,.15);
}

.div_individuel p {
    margin: 0;
    font-weight: bold;
}

.boutton_supprimmer {
    background: transparent;
    border: 1px solid #334155;
    color: #cbd5e1;
    padding: 7px 10px;
    font-weight: 600;
}

.boutton_supprimmer:hover {
    border-color: #f87171;
    color: #fca5a5;
    filter: none;
}

#zone_liste_rendez_vous:empty::after,
#zone_resultat_tournees:empty::after {
    content: "";
    display: block;
}

#zone_liste_rendez_vous:empty::after {
    content: "Aucun rendez-vous ajouté pour l'instant.";
    color: #6f7c8f;
    font-style: italic;
    padding: 6px 0 2px;
}

#zone_resultat_tournees:empty::after {
    content: "Génère une carte pour voir apparaître tes tournées ici.";
    grid-column: 1 / -1;
    color: #6f7c8f;
    font-style: italic;
    padding: 10px 0;
}

#zone_resultat_tournees {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.tournee_resultat {
    background: #091421;
    border: 1px solid #243449;
    border-radius: 10px;
    padding: 15px;
}

.tournee_resultat h3 {
    margin-top: 0;
}

.tournee_resultat p {
    color: #cbd5e1;
    font-weight: bold;
}

.adresse_resultat {
    font-size: 14px;
    margin: 10px 0;
}

.pastille {
    display: inline-block;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    margin-right: 7px;
}

.vert { color: #22c55e; }
.bleu { color: #60a5fa; }
.orange { color: #f97316; }
.violet { color: #a855f7; }

.bg-vert { background: #22c55e; }
.bg-bleu { background: #60a5fa; }
.bg-orange { background: #f97316; }
.bg-violet { background: #a855f7; }

#zone_total_tournees {
    margin-top: 22px;
    padding: 16px;
    border-radius: 10px;
    background: #121e2d;
    border: 1px solid #243449;
    font-weight: bold;
}

@media (max-width: 1100px) {
    #zone_resultat_tournees {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    #zone_resultat_tournees {
        grid-template-columns: 1fr;
    }

    #carte {
        height: 420px;
    }
}