body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f8;
    color: #333;
}
header {
    background: #003a5f;
    color: #fff;
}

.navbar {
    display: flex;
	position: relative;
    justify-content: space-between;
    align-items: center;
    background: #1e293b;
    color: white;
    padding: 10px 15px;
}

/* Le titre bandeau */
.site-title {
    color: white;
    font-size: 1.2rem;
    margin: 0;
    white-space: nowrap;
}

.navbar nav {
    display: flex;
    gap: 15px;
}

.navbar h2 {
    color: white;
    margin: 0;
}

.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    .navbar nav {
        display: none;
        flex-direction: column;
        background: #1e293b;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
    }
	
	.site-title {
        flex: 1;
        text-align: center;
    }

    .navbar nav.active {
        display: flex;
    }

    .navbar nav a {
		color: white;
		text-decoration: none;
        padding: 12px;
        border-top: 1px solid #334155;
    }
}

main {
    max-width: 900px;
    margin: auto;
    padding: 20px;
}
section {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.btn {
    display: inline-block;
    background: #2e7d32;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}
.btn:hover { background: #1b5e20; }
footer {
    text-align: center;
    font-size: 0.9em;
    color: #777;
    padding: 20px;
}
/* C'est ici que l'on définit l'apparence de la classe */
.photo-vol {
    float: right;           /* L'image se place à droite du texte */
    width: 300px;           /* Largeur de l'image */
    height: auto;           /* Garde les proportions */
    margin-left: 10px;      /* Espace entre le texte et l'image */
    margin-bottom: 10px;    /* Espace sous l'image */
    border-radius: 15px;    /* Arrondit les coins */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Ajoute une ombre douce */
}
/* Petit ajustement pour les téléphones */
    @media (max-width: 600px) {
        .photo-vol {
			float: none;         /* On ne fait plus flotter l'image */
            display: block;      /* On la traite comme un bloc seul */
            margin: 0 auto 10px; /* On la centre avec une marge en bas */
            width: 100%;         /* Elle prend toute la largeur disponible */
        }
    }
.notam-section {
    background-color: #fff3cd; /* Couleur jaune d'avertissement */
    border: 2px solid #ffeeba;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.btn-notam {
    display: inline-block;
    background-color: #856404;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-notam:hover {
    background-color: #533f03;
}

.contacts-vol {
    margin-top: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
}

.grille-appels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.btn-appel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    text-decoration: none;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    text-align: center;
    transition: transform 0.2s;
}

.btn-appel:active {
    transform: scale(0.95); /* Effet d'enfoncement au clic */
}

.btn-appel small {
    font-weight: normal;
    font-size: 0.8em;
    opacity: 0.9;
    margin-top: 5px;
}

/* Boutons fréquence radio et contact d'ugence tel */
/* Couleurs distinctes pour chaque service */
.azba { background-color: #d9534f; } /* Rouge - Alerte zones */
.tour { background-color: #0275d8; } /* Bleu - Aviation */
.meteo-tel { background-color: #5bc0de; } /* Cyan - Ciel */

.btn-appel:hover {
    filter: brightness(1.1);
}

.logbook-section {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.log-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.log-form input, select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#logTable {
    width: 100%;
    border-collapse: collapse;
}

#logTable th, #logTable td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.logbook-section button {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
}
#logFoot td {
    border-top: 2px solid #28a745;
    color: #28a745;
    font-size: 1.1em;
}

.memo-local {
    background-color: #e8f5e9; /* Vert très clair */
    border: 1px solid #c8e6c9;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.memo-local h3 {
    color: #2e7d32;
    margin-top: 0;
}

.alert-env {
    border-left: 4px solid #4caf50;
    padding-left: 15px;
    color: #1b5e20;
    font-style: italic;
}

.memo-content ul {
    margin-top: 15px;
    padding-left: 20px;
}

.memo-content li {
    margin-bottom: 8px;
}

.btn-carte {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #2e7d32;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
}

/* ===== Correction affichage ORDINATEUR uniquement ===== */
@media screen and (min-width: 768px) {

    /* Centrer le contenu principal */
    body {
        max-width: 1200px;
        margin: auto;
    }

    /* Centrer les sections */
    .logbook-section,
    .memo-local,
    .memo-content {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    /* Corriger la couleur du menu */
    nav a {
        color: white !important;
        text-decoration: none;
    }

    nav a:hover {
        color: #dddddd;
    }

    /* Centrer images */
    img {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }
}	
	/* Top 5 palmares */
#leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#leaderboard-table th {
    background-color: #3498db; /* Bleu ciel paramoteur */
    color: white;
    padding: 12px;
    text-align: left;
}

#leaderboard-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

#leaderboard-table tr:nth-child(even) { background-color: #f9f9f9; }

#leaderboard-table tr:first-child {
    font-weight: bold;
    color: #d35400; /* Couleur Or/Orange pour le premier */
}

.badge-rang {
    display: inline-block;
    width: 25px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    border-radius: 50%;
    background: #ecf0f1;
    font-size: 0.9em;
}

