/* ------------------------------
   Variables globales
------------------------------ */
:root {
  --blue: #1a4f7a;
  --blue-light: #e6f0f8;
  --green: #3cb371;
  --red: #e85c5c;
  --yellow: #ffd447; /*#FFDD58*/
  --gray-light: #f5f5f5;
  --gray: #999;
  --bg: #f5f5f7;
  --text: #222;
  --radius: 12px;
  --shadow: 0 8px 20px rgba(0,0,0,0.06);
  
  --b7-1: #1958af;
  --b7-2: #4681d5;
  
  --sp95-1: #2d9328;
  --sp95-2: #75be37;
  
  --sp98-1: #e58704;
  --sp98-2: #f9a20b;
  
  --e10-1: #c12118;
  --e10-2: #ea4436;
  
  --e85-1: #07568c;
  --e85-2: #357ca5;
  
  --gpl-1: #f7a903;
  --gpl-2: #f0b02a;
  
  --btn-stations-1: #1857a6;
  --btn-stations-2: #225ca8;
  
  --btn-simulate-1: #d32a20;
  --btn-simulate-2: #d92f27;
  
  --btn-locate-1: #FF944D;
  --btn-locate-2: #f96a0a;
  
  --container-bg: #fff;
  --container-border-color: #eee;
  --container-title-color: #1a4f7a;
  
  --card-border-color: #cdcdd0; 
  
  --popup-station-bg:#fff;
  --best-station-grid-bg: #fff;
  
  --scroll-track-bg: #f5f5f7;
  --scroll-thumb-bg: #4d8dff;
  --scroll-border-color: #4d8dff;
  
  --footer-bg: #fff;
  --footer-border-color: #484848;
  
  --card-comment-bg:#fff;
}

/* Thème sombre forcé */
:root[data-theme="dark"] {
  --bg: #121212;
  --container-bg: #1E1E1E;
  --container-border-color: transparent;
  --container-title-color: #e6e6e6;
  
  --card-border-color: #484848;
  --card-bg: #272727;
  --popup-station-bg:#212121;
  
  --best-station-grid-bg: transparent;
  
  --text: #B3B3B3;
  --card: #1a1a1a;
  --border: #333;
  
  --scroll-track-bg: #1a1a1a;
  --scroll-thumb-bg: #4d8dff;
  --scroll-border-color: #4d8dff;
  
  --footer-bg: #272727;
  --footer-border-color: #484848;
  
  --card-comment-bg:#2b2b2b;
}

/* ------------------------------
   Reset & base
------------------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--scroll-track-bg);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb-bg);
  border-radius: 10px;
  border: 2px solid var(--scroll-border-color);
}

::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--scroll-thumb-bg) 80%, black);
}

h2 {
  color: var(--container-title-color);  
  margin: 0 0 1em 0;
}

a {
  text-decoration: none;
}

button {
  padding: 8px;
  border-radius: 5px;
  border:1px solid #ddd;
  cursor:pointer;
}

.hidden {
  display: none !important;
}

/* ------------------------------
   Header
------------------------------ */
.header {
  max-width: 1440px;
  height: auto;
  margin: 0 auto;
  padding: 8px;
  border-radius:10px;
  background: var(--footer-bg);
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  flex-wrap: wrap;
  /*background: linear-gradient(90deg, #225ea9, #336fbe, #4987db);*/
  box-shadow: 0 4px 4px rgba(0,0,0,0.15);
}

.icon-light {
  color: #FFD43A;
}

.brand {
  color: var(--text);
  font-size:1.2em;
  display: flex;
  align-items: center;
  column-gap: 1em;
  
  & span {
    color: var(--text);
  }
  
  & img {
    border-radius:8px;
  }
  
  & .title-link {
    display: flex;
    align-items: center;
    gap: 10px;
  }
}

.icon-buttons {
  display: flex;
  gap: 8px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ------------------------------
   Layout principal
------------------------------ */

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 9px 9px 0 9px;
  /*display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: center;*/
  
  & .mentions-legales {
    background: var(--container-bg);
    border-radius: var(--radius);
    padding: 15px;
    border: 1px solid var(--container-border-color);
    box-shadow: var(--shadow);
    display: block;
    margin: 1em 0 1em 0;
  }
}

/*
FOOTER
*/
.site-footer {
  max-width: 1440px;
  height: auto;
  margin: 0 auto;
  padding: 5px;
  border-radius:10px;
  background: var(--footer-bg);
  padding: 15px 0;
  box-shadow: 2px -3px 4px rgba(0, 0, 0, 0.15);
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.footer-link {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #007bff;
}

@media (max-width: 480px) {
  .brand {
    & span {
      display:none;
    }
  }
}
