@font-face {
    font-family: "PoppinsLight";
    src: url("../fonts/Poppins-Light.ttf") format("opentype");
    font-weight: normal;
}
@font-face {
    font-family: "PoppinsBold";
    src: url("../fonts/Poppins-Bold.ttf") format("opentype");
    font-weight: bold;
}

* {
    font-family: 'PoppinsLight', sans-serif;
    font-weight: normal;
}

body {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.content {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.admin-panel {
    background: #fff;
    border: 2px solid #E5C588;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 30px;
}

.admin-title {
    color: #E5C588;
    text-align: center;
    margin-bottom: 20px;
    font-family: 'PoppinsBold', sans-serif;
}

#editor {
    width: 100%;
    min-height: 400px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    font-size: 14px;
}

.btn {
    background: #E5C588;
    color: white;
    font-weight: bold;
    padding: 12px 30px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.btn:hover {
    background: #c9a96b;
}

.message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    text-align: center;
}

.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.lignes, .navettes {
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.liensNavettes {
    width: 100%;
    display: flex;
}
.liensNavettes a {
    text-decoration: none;
    color: black;
    background-color: #E5C588;
    padding: 8px;
    border-radius: 10px;
    width: fit-content;
}
.liensNavettes > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}
.navOSM {
    border-left: 1px solid #00000060;
}

.navettes {
    margin-top: 20px;
}

.search-container {
    margin-bottom: 20px;
    text-align: center;
}

.search-input {
    min-width: 85%;
    max-width: 400px;
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 25px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: #d4a574;
}

.search-input::placeholder {
    color: #999;
}

.dropdown-section {
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dropdown-header {
    background: #e9ecef;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    user-select: none;
}

.dropdown-header:hover {
    background: #dee2e6;
}

.dropdown-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.dropdown-arrow.open {
    transform: rotate(180deg);
}

.dropdown-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.dropdown-content.open {
    max-height: fit-content;
}

.ligne-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.ligne-item:last-child {
    border-bottom: none;
}
.mb-4 {
    margin-bottom: 20px;
}

.ligne-item.hidden {
    display: none;
}

.ligne-nom {
    font-weight: 500;
    min-width: 80px;
}
.ligne-nom2 {
    flex: 2;
}

.ligne-buttons {
    display: flex;
    gap: 10px;
    flex: 2;
    width: 100%;
    justify-content: end;
}

.plan-btn {
    background: #d4a574;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease;
}

.plan-btn:hover {
    background: #b8935f;
    color: white;
    text-decoration: none;
}

.plan-btn:visited {
    color: white;
}

.no-results {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

/* Partie texte */
div {
    font-family: PoppinsLight, sans-serif;
}
.content strong, .content b {
    font-weight: bold !important;
}

.content em, .content i {
    font-style: italic !important;
}

.content u {
    text-decoration: underline !important;
}

.content h1 { font-size: 2em; font-weight: bold; margin: 0.67em 0; }
.content h2 { font-size: 1.5em; font-weight: bold; margin: 0.75em 0; }
.content h3 { font-size: 1.17em; font-weight: bold; margin: 0.83em 0; }

.content ul { list-style-type: disc; margin-left: 20px; }
.content ol { list-style-type: decimal; margin-left: 20px; }
.content li { margin: 5px 0; }

.content table {
    border-collapse: collapse;
    width: 100%;
    margin: 10px 0;
}

.content table td, .content table th {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.content table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.content a {
    color: #007cba;
    text-decoration: underline;
}

.content p {
    margin: 10px 0;
}


.navettes {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.navettes h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.navette-section {
    background: white;
    border-radius: 10px;
    margin-bottom: 25px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.navette-title {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.navette-container {
    display: flex;
    gap: 30px;
    justify-content: space-between;
}

.navette-column {
    flex: 1;
    text-align: center;
}

.navette-column-header {
    font-weight: 600;
    margin-bottom: 15px;
    color: #555;
    font-size: 16px;
}

.navette-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.google-btn {
    background: #ff8c69 !important;
    color: white !important;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    min-width: 140px;
    text-align: center;
}

.google-btn:hover {
    background: #ff6347 !important;
    color: white !important;
    text-decoration: none;
    transform: translateY(-2px);
}

.osm-btn {
    background: #90ee90 !important;
    color: #333 !important;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    min-width: 140px;
    text-align: center;
}

.osm-btn:hover {
    background: #7fff7f !important;
    color: #333 !important;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .navette-container {
        flex-direction: column;
        gap: 20px;
    }

    .navette-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .google-btn, .osm-btn {
        min-width: auto;
        padding: 8px 16px;
    }
}