body{
  color:#5271ff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
strong{
  color:#5ce1e6;
}

/* Loading spinner */
.loading-spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #5271ff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
  border-radius: 4px;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Smooth transitions */
* {
  transition: all 0.3s ease;
}

button, .btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:active, .btn:active {
  transform: scale(0.95);
}

button:hover, .btn:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Toast notifications */
.toast-notification {
  position: fixed;
  top: 80px;
  right: 20px;
  background: white;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  animation: slideIn 0.3s ease;
  max-width: 300px;
}

.toast-notification.success {
  border-left: 4px solid #28a745;
}

.toast-notification.error {
  border-left: 4px solid #dc3545;
}

.toast-notification.info {
  border-left: 4px solid #17a2b8;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

#install-prompt {
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  padding: 15px;
  border: 1px solid #ccc;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  border-radius: 5px;
  text-align: center;
}

#install-prompt p {
  margin: 0;
}

#install-prompt a {
  text-decoration: none;
  color: #007bff;
  font-weight: bold;
}

#autocomplete-results {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  width: 100%;
  background-color: #fff;
  border: 1px solid #ccc;
  border-top: none;
  list-style: none;
  padding: 0;
  margin: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  border-radius: 0 0 8px 8px;
  max-height: 400px;
  overflow-y: auto;
}

/* Style pour chaque élément de la liste des résultats */
#autocomplete-results li {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}

#autocomplete-results li:hover,
#autocomplete-results li:focus {
  background-color: #f8f9fa;
  transform: translateX(4px);
}

#autocomplete-results li a {
  text-decoration: none;
  color: #333;
  display: block;
  width: 100%;
}

/* Amélioration du champ de recherche */
#autocomplete-input {
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  padding: 12px 16px;
  font-size: 16px;
}

#autocomplete-input:focus {
  border-color: #5271ff;
  box-shadow: 0 0 0 3px rgba(82, 113, 255, 0.1);
  outline: none;
}
.mycluster a{color:#fff}

.mycluster {
  background: #5ce1e6;
  border-radius: 50%;
  text-align: center;
  color: white;
  font-weight: 700;
  border: 1px solid #5ce1e6;
  font-family: monospace;
  line-height:26px;
}

.mycluster:before {
  content: ' ';
  position: absolute;
  border-radius: 50%;
  z-index: -1;
  top: 1px;
  left: 1px;
  right: 1px;
  bottom: 1px;
  border: 1px solid white;
}

  th {
    text-align: left;
    vertical-align:middle;
  }
   th svg{
    vertical-align:middle
   }
.rating-bar ul{
  list-style-type: none;
  padding:0;
}

.rating-bar li{display:inline-block}

.tap-bar{
  width:100%;
  padding:8px;
  box-sizing: border-box;
  text-align: center;
  position:fixed;
  bottom:0;
  left:0;
  background-color: #fff;
  z-index: 1000;
}

/* Amélioration du chatbot */
#chatbot-window {
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

#chatbot-toggle button {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Amélioration des états vides */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #6c757d;
}

.empty-state svg,
.empty-state i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* Accessibilité - Focus visible */
a:focus,
button:focus,
input:focus,
select:focus {
  outline: 2px solid #5271ff;
  outline-offset: 2px;
}

/* Skip to main content */
.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: #5271ff;
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-to-main:focus {
  top: 0;
}

.tap-bar section{
  float: left;
  width:25%;
}

#installBanner {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

#installBanner.show {
  opacity: 1;
}

#shareDiv{width:20%}
.hidden{
  display: none;
}

footer{margin-bottom:47px}
#favouritesListToggle, .dayListToggle{
  position: fixed;
    bottom: 47px;
    z-index: 1000;
    width: 100%;
    left: 0;
}

.marker-pin {
  width: 30px;
  height: 30px;
  border-radius: 50% 50% 50% 0;
  background: transparent;
  position: absolute;
  transform: rotate(-45deg);
  left: 50%;
  top: 50%;
  margin: -15px 0 0 -15px;
}

.marker-pin::after {
  content: '';
  width: 24px;
  height: 24px;
  margin: 3px 0 0 3px;
  background: #fff;
  position: absolute;
  border-radius: 50%;
}

.video-background {
  height: 50vh;
  width:100%;
}

.video-background iframe {
    width: 100vw;
    height: 100vh;
    pointer-events: none;
}

.overlay-content {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    padding-top: 30vh;
}

/* PWA Install Banner */
#pwa-install-popin {
    animation: slideUpBanner 0.4s ease;
}

@keyframes slideUpBanner {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 576px) {
    #pwa-install-popin {
        left: 10px !important;
        right: 10px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   WAVE POWER MAP - Styles pour la carte interactive
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Markers personnalisés ────────────────────────────────────────────────── */
.custom-marker {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 11px;
    font-weight: 600;
    border-radius: 8px;
    padding: 6px 8px;
    text-align: center;
    line-height: 1.3;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
    border: 2px solid rgba(255,255,255,.9);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,.4);
    transition: transform 0.2s ease;
}

.custom-marker:hover {
    transform: scale(1.1);
    z-index: 1000 !important;
}

/* ── Classes de couleur selon indice surf ──────────────────────────────── */
.marker-low {
    background: linear-gradient(135deg, #90a4ae 0%, #607d8b 100%);
    border-color: #b0bec5;
}

.marker-ok {
    background: linear-gradient(135deg, #81c784 0%, #66bb6a 100%);
    border-color: #a5d6a7;
    color: #fff;
}

.marker-good {
    background: linear-gradient(135deg, #ffd54f 0%, #ffb300 100%);
    border-color: #ffe082;
    color: #333;
    text-shadow: 0 1px 1px rgba(255,255,255,.5);
}

.marker-strong {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    border-color: #ffb74d;
    color: #fff;
}

.marker-top {
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    border-color: #ef5350;
    color: #fff;
    animation: markerPulse 2s ease-in-out infinite;
}

@keyframes markerPulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(229,57,53,.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 2px 20px rgba(229,57,53,.8);
        transform: scale(1.05);
    }
}

/* ── Popup Leaflet personnalisée ────────────────────────────────────────── */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 3px 14px rgba(0,0,0,.4);
}

.leaflet-popup-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    margin: 13px 19px;
}

.leaflet-popup-content strong {
    color: #1976d2;
    font-size: 14px;
}

.leaflet-popup-content a {
    color: #1976d2;
    text-decoration: none;
    font-weight: 600;
}

.leaflet-popup-content a:hover {
    text-decoration: underline;
}

/* ── Wrapper de la carte ─────────────────────────────────────────────────── */
#map-export-wrapper {
    position: relative;
}

/* ── Légende de la carte ─────────────────────────────────────────────────── */
#map-legend {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    line-height: 1.8;
}

#map-legend strong {
    color: #0d6efd;
    font-size: 16px;
    display: block;
    margin-bottom: 8px;
}

#map-legend hr {
    margin: 12px 0;
    border-top: 2px solid #e9ecef;
}

/* ── Slider de temps ─────────────────────────────────────────────────────── */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(90deg, #e3f2fd 0%, #2196f3 50%, #0d47a1 100%);
    outline: none;
    opacity: 0.9;
    transition: opacity 0.2s;
    cursor: pointer;
}

input[type="range"]:hover {
    opacity: 1;
}

/* Chrome, Safari, Edge */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2196f3 0%, #0d47a1 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.4);
    border: 3px solid #ffffff;
    transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.6);
}

/* Firefox */
input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2196f3 0%, #0d47a1 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.4);
    border: 3px solid #ffffff;
    transition: all 0.2s ease;
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.6);
}

/* ── Affichage de la date/heure ─────────��────────────────────────────────── */
wave-power-map + div {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 12px;
    margin-top: 12px;
}

wave-power-map + div > div:last-child {
    font-weight: 600;
    color: #0d6efd;
    font-size: 15px;
    text-align: center;
    padding: 8px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 6px;
    margin-top: 8px;
}

/* ── Boutons de la carte ─────────────────────────────────────────────────── */
wave-power-map + div button,
#map-export-wrapper button {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
    transition: all 0.3s ease;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

wave-power-map + div button:hover,
#map-export-wrapper button:hover {
    background: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.5);
    transform: translateY(-2px);
}

wave-power-map + div button:active,
#map-export-wrapper button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(33, 150, 243, 0.3);
}

/* ── URL de l'API (petit texte informatif) ────────────────────────────────── */
#map-url {
    font-size: 11px;
    color: #6c757d;
    font-style: italic;
    margin-top: 8px;
    padding: 4px;
}

/* ── Carte Leaflet responsive ────────────────────────────────────────────── */
#map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ── Animation de chargement pour la carte ────────────────────────────────── */
@keyframes mapPulse {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 4px 24px rgba(33, 150, 243, 0.3);
    }
}

wave-power-map[loading] #map {
    animation: mapPulse 2s ease-in-out infinite;
}

/* ── Responsive : petits écrans ───────────────────────────────────────────── */
@media (max-width: 768px) {
    #map {
        height: 350px !important;
    }

    #map-legend {
        font-size: 12px;
        padding: 12px;
    }

    wave-power-map + div button,
    #map-export-wrapper button {
        width: 100%;
        justify-content: center;
    }
}

/* ── Contraste pour les badges offshore/onshore/sideshore ──────────────────── */
.badge-offshore {
    background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%) !important;
    color: #ffffff !important;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(67, 160, 71, 0.3);
}

.badge-sideshore {
    background: linear-gradient(135deg, #ffb300 0%, #ff8f00 100%) !important;
    color: #333333 !important;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(255, 179, 0, 0.3);
}

.badge-onshore {
    background: linear-gradient(135deg, #ef5350 0%, #e53935 100%) !important;
    color: #ffffff !important;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(239, 83, 80, 0.3);
}

/* ══ FIN Wave Power Map ════════════════════════════════════════════════════ */
