/* 🌍 Global */
* {    
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background: #f4f4f9;
    color: #333;
    padding-top: 80px;    
}


/* 🎨 Conteneur principal */
.container {
    width: 90%;
    max-width: 800px;
    margin: auto;
    /*background: white;*/
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 🏠 Header */
header {
    background: #007bff;
   
    padding: 15px 0;
    text-align: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

header h1 a {
    color: white;
    text-decoration: none;
}

/* 🔍 Recherche */
.search-container {
    position: relative;
    margin: 20px auto;
    width: 90%;
    max-width: 400px;
}

.search-container form {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.search-container input {
    flex: 1;
    padding: 12px;
    border: none;
    font-size: 16px;
}

.search-container button {
    background: #007bff;
    border: none;
   
    padding: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.search-container button:hover {
    background: #0056b3;
}

/* 🛠 Suggestions */
#suggestions {
    position: absolute;
    width: 100%;
    background: white;
    border: 1px solid #ddd;
    display: none;
    max-height: 200px;
    overflow-y: auto;
    border-radius: 5px;
    z-index: 1000;
}

.suggestion {
    padding: 10px;
    cursor: pointer;
}

.suggestion:hover {
    background: #007bff;
    color: red;
}

/* 🏙️ Régions */
.regions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.region-card {
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
    text-align: center;
}

.region-card:hover {
    transform: scale(1.05);
    background: #007bff;
}

.region-card a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    display: block;
}

.region-card:hover a {
    color: white;
}

/* 📱 Responsive */
@media (max-width: 768px) {
    .regions {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}
/* 🏠 Header */
header {
    background: #2c3e50; /* Couleur plus sobre et élégante */
    color: white;
    padding: 20px 0;
    text-align: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

header .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

header h1 a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}



/* 🔧 Header */
header {
    background: #007bff; /* Bleu pour le fond du header */
    color: white;
    padding: 15px 0;
    text-align: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}


/* Ajout d'une couleur distincte pour l'`h1` dans le corps de la page */
h1 {
    color: #333;  /* Couleur foncée pour une meilleure visibilité sur un fond blanc */
    font-size: 2rem;
    margin: 20px 0;
}

/* Autres styles */


/* 🔧 Header avec les couleurs de la France */
header {
    background: linear-gradient(to right, #0055A4, #FFFFFF, #EF4135); /* Bleu, blanc, rouge */
    color: white; /* Texte en blanc pour contraster avec le fond */
    padding: 15px 0;
    text-align: center;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

header h1 a {
    color: white; /* Couleur du texte du lien en blanc */
    text-decoration: none;
    font-weight: bold;
}

/* Option pour ajouter un effet de survol au lien */
header h1 a:hover {
    color: #FFD700; /* Changer la couleur en or au survol */
}

/* Assure que le texte dans le header reste lisible sur le fond */
header h1, header h1 a {
    transition: color 0.3s ease; /* Transition douce pour le changement de couleur au survol */
}
header .container {
    display: flex;
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */
    height: 60px; /* Ajuste la hauteur de l'en-tête selon tes besoins */
}

header .logo {
    display: flex;
    align-items: center;
    text-decoration: none; /* Supprime le soulignement du lien */
}

header .logo img {
    max-height: 64px; /* Ajuste la taille du logo selon tes besoins */
    margin-right: 10px; /* Espacement entre le logo et le texte */
}

header .logo span {
    font-size: 24px; /* Taille du texte */
    font-weight: bold; /* Gras pour le nom du site */
    color: #333; /* Couleur du texte */
    text-transform: uppercase; /* Met le texte en majuscules (facultatif) */
}
/* Styles généraux pour la barre de recherche */
.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
	border: 1px solid #ccc; /* Bordure autour du champ de recherche */
    border-radius: 4px; /* Coins arrondis */
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 400px; /* Limite la largeur */
    border: 1px solid #ccc; /* Bordure autour du champ de recherche */
    border-radius: 4px; /* Coins arrondis */
}

.search-box input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: none;
    outline: none;
    border-radius: 4px;
}

#suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 999;
}

.suggestion {
    padding: 10px;
    cursor: pointer;
}

.suggestion:hover {
    background-color: #f0f0f0;
}
.regions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.region-card {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    width: 300px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.region-card:hover {
    transform: translateY(-5px);
}

.region-card h3 {
    text-align: center;
    color: #333;
    font-size: 18px;
    margin-bottom: 10px;
}

.region-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.region-card ul li {
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

.region-card ul li:last-child {
    border-bottom: none;
}

.region-card a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
    display: block;
}

.region-card a:hover {
    color: #0056b3;
    text-decoration: underline;
}



/* Conteneur pour le bouton de géolocalisation */
.geolocate-container {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
}

#geolocate-btn {
    padding: 8px;
    font-size: 20px;
    cursor: pointer;
    background-color: #fff;
    color: white;
    border: none;
    border-radius: 5px;
}

#geolocate-btn i {
    font-size: 20px;
}

#geolocate-btn:hover {
    background-color: #0055A4;
}







.carte{margin-top:20px;height:300px}.services{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0}.services .service{background:#eaf4ff;padding:8px 12px;border-radius:6px;display:flex;align-items:center}.services .service i{margin-right:6px}.carburants table{width:100%;border-collapse:collapse;margin-top:10px}.carburants td,.carburants th{padding:10px;border-bottom:1px solid #ccc;}.section,.stations-proches{margin-top:40px}.stations-proches ul{list-style:none;padding:0}.stations-proches li{margin-bottom:10px}.station-header{display:flex;justify-content:space-between;align-items:center}.station-header h1{margin:0}.station-header a{font-size:1rem;color:#007bff;text-decoration:none}.station-header a:hover{text-decoration:underline}.carburant{font-weight:700}.carburant-gazole{color:#ff8022}.carburant-e10{color:#20c997}.carburant-e85{color:#d10069}.carburant-sp95{color:#00bf80}.carburant-sp98{color:#004c33}.carburant-gplc{color:#0073e6}.container{max-width:1200px}
	
.services-station ,.ruptures-stock {    background: #fff8f0;    border: 1px solid #ffc107;    padding: 20px;    border-radius: 8px;    margin-top: 30px;    box-shadow: 0 2px 5px rgba(0,0,0,0.05);}
.services-station ,.ruptures-stock h2 {     color: #c0392b;    margin-bottom: 15px;}
.rupture-def {    background-color: #f9e2e2;    border-left: 5px solid #e74c3c;    padding: 10px;    margin-bottom: 10px;    font-weight: bold;}
.rupture-table {    width: 100%;    border-collapse: collapse;    margin-top: 15px;}
.rupture-table th,.rupture-table td {    padding: 10px;    border: 1px solid #ddd;    text-align: center;}
.rupture-table tr.encours {    background-color: #ffecec;}

.date-green {    color: #28a745; text-align: right;    font-weight: bold;}
.date-orange {    color: #ffc107; text-align: right;}
.date-red {    color: #dc3545; text-align: right;}

.horaires-station {    background: #f8f9ff;    border: 1px solid #cce5ff;    padding: 20px;    border-radius: 8px;    margin-top: 30px;    box-shadow: 0 2px 5px rgba(0,0,0,0.05);}
.horaires-station h2 {    margin-top: 0;    color: #0056b3;    margin-bottom: 15px;}
.horaires-station .table-horaires {    width: 100%;    border-collapse: collapse;    background: white;    border-radius: 6px;    overflow: hidden;}
.horaires-station .table-horaires td {    padding: 10px;    border-bottom: 1px solid #eee;    vertical-align: top;}
.horaires-station .table-horaires tr:last-child td {    border-bottom: none;}
.horaires-station .ferme {    color: #c0392b;    font-weight: bold;}
.adresse {font-size: 0.95rem; line-height: 1.4;}



/* 📱 Responsive - tailles adaptées pour mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem; /* ~24px */
    }

    h2 {
        font-size: 1rem; /* ~21px */
    }

    h3 {
        font-size: 0.8rem; /* ~18px */
    }

    h4 {
        font-size: 0.7rem; /* ~16px */
    }

    p {
        font-size: 0.95rem; /* ~15px */
        line-height: 1.5;
    }

    a {
        font-size: 0.95rem;
    }

    li {
        font-size: 0.95rem;
    }

    button,
    input,
    select,
    textarea {
        font-size: 1rem;
    }

    .region-card h3 {
        font-size: 1rem;
    }

    .region-card ul li {
        font-size: 0.9rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

    header .logo span {
        font-size: 18px;
    }

    .search-container input {
        font-size: 14px;
        padding: 10px;
    }

    .search-container button {
        padding: 10px;
        font-size: 14px;
    }

    #suggestions .suggestion {
        font-size: 0.9rem;
    }
	.adresse { font-size: 0.75rem;}
}
