/* ============================================
BASTIA GUIDE — Feuille de style commune
Fichier : css/style.css
============================================ */
 
/* RESET & BASE */
 
* { margin: 0; padding: 0; box-sizing: border-box; }
 
body {
font-family: 'Segoe UI', sans-serif;
background: #eeeeee;
color: white;
min-height: 100vh;
}
 
/* ============================================
HEADER
============================================ */
header {
background: linear-gradient(135deg, #ebebf0, #426aa5);
padding: 14px 20px;
display: flex;
align-items: center;
justify-content: center;
gap: 16px;
border-bottom: 2px solid #00b4d8;
text-align: center;
}
 
/* LOGO CARRÉ — header */
.logo-rond {
width: 60px;
height: 60px;
border-radius: 8px;           /* carré aux coins légèrement arrondis */
background: white;
border: 2px solid #00b4d8;
overflow: hidden;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
}
 
.logo-rond img {
width: 100%;
height: 100%;
object-fit: contain;          /* conserve les proportions du logo */
}
 
.header-texte { text-align: center; }
 
.header-texte h1 {
font-size: 1.8em;
color: #00b4d8;
text-shadow: 0 0 20px rgba(0,180,216,0.4);
}
 
.header-texte p {
color: #90caf9;
font-size: 0.85em;
margin-top: 3px;
}
 
/* ============================================
NAVIGATION
============================================ */
nav {
display: flex;
justify-content: center;
gap: 8px;
padding: 12px;
background: #2e86c1;
flex-wrap: wrap;
}
 
nav a {
padding: 8px 18px;
border: 2px solid #0054db;
background: white;
color: black;
border-radius: 25px;
text-decoration: none;
font-size: 0.88em;
transition: all 0.3s;
}
 
nav a:hover, nav a.active {
background: #0054db;
color: white;
font-weight: bold;
}
 
/* ============================================
CONTENU PRINCIPAL
============================================ */
main {
max-width: 1400px;
margin: 0 auto;
padding: 24px 16px;
}
 
/* ============================================
HERO
============================================ */
.hero {
text-align: center;
padding: 36px 20px;
background: linear-gradient(180deg, #0d47a1, #0054db);
border-radius: 16px;
margin-bottom: 28px;
}
 
/* LOGO CARRÉ — hero (plus grand) */
.hero-logo {
width: 300px;
height: 150px;
border-radius: 12px;          /* carré aux coins légèrement arrondis */
background: white;
border: 3px solid #00b4d8;
margin: 0 auto 16px;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
}
 
.hero-logo img {
width: 100%;
height: 100%;
object-fit: contain;          /* conserve les proportions du logo */
}
 
.hero h2 { font-size: 2em; color: #00b4d8; margin-bottom: 10px; }
.hero p { color: #90caf9; font-size: 1em; line-height: 1.6; }
 
/* STATS */
.stats {
display: flex;
justify-content: center;
gap: 14px;
margin: 24px 0;
flex-wrap: wrap;
}
 
.stat {
background: white;
border: 1px solid #00b4d8;
border-radius: 12px;
padding: 14px 24px;
text-align: center;
}
 
.stat .val { font-size: 1.8em; font-weight: bold; color: #0054db; }
.stat .lbl { color: black; font-size: 0.78em; margin-top: 4px; }
 
/* ============================================
BOUTONS
============================================ */
.btn {
display: inline-block;
margin: 8px 6px;
padding: 12px 26px;
background: linear-gradient(135deg, #00b4d8, #0077b6);
color: white;
border: none;
border-radius: 30px;
font-size: 0.95em;
cursor: pointer;
text-decoration: none;
transition: transform 0.2s;
font-weight: bold;
}
 
.btn:hover { transform: scale(1.05); }
 
.btn-retour {
display: inline-block;
margin-bottom: 20px;
padding: 8px 18px;
border: 1px solid #00b4d8;
color: #00b4d8;
border-radius: 20px;
text-decoration: none;
font-size: 0.85em;
transition: all 0.3s;
}
 
.btn-retour:hover { background: #00b4d8; color: #0a0a2e; }
 
/* ============================================
FILTRES
============================================ */
.filtres {
display: flex;
gap: 8px;
flex-wrap: wrap;
margin-bottom: 18px;
justify-content: center;
}
 
.filtre-btn {
padding: 6px 14px;
border: 2px solid #0054db;
background: white;
color: black;
border-radius: 20px;
cursor: pointer;
font-size: 0.8em;
transition: all 0.2s;
}
 
.filtre-btn:hover, .filtre-btn.active {
background: #0054db;
color: white;
}
 
/* ============================================
GRILLE MONUMENTS — DESKTOP
============================================ */
.grille {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-auto-rows: 1fr;
gap: 18px;
}
 
.carte-monument {
background: white;
border: 1px solid #00b4d8;
border-radius: 14px;
overflow: hidden;
text-decoration: none;
color: white;
display: flex;
flex-direction: column;
transition: all 0.3s;
}
 
.carte-monument:hover {
transform: translateY(-5px);
box-shadow: 0 8px 28px rgba(0,180,216,0.35);
}
 
.carte-monument .photo {
width: 100%;
height: 160px;
object-fit: cover;
display: block;
background: #0d2b6e;
flex-shrink: 0;
}
 
.carte-monument .photo-placeholder {
width: 100%;
height: 160px;
background: linear-gradient(135deg, #0d2b6e, #1a3a6e);
display: flex;
align-items: center;
justify-content: center;
font-size: 3.5em;
flex-shrink: 0;
}
 
.carte-monument .corps {
padding: 14px;
background: white;
flex: 1;
display: flex;
flex-direction: column;
}
 
.carte-monument h3 {
color: #0054db;
font-size: 1em;
margin-bottom: 6px;
}
 
.carte-monument p {
color: #333;
font-size: 0.82em;
line-height: 1.5;
flex: 1;
}
 
.tag {
display: inline-block;
margin-top: 8px;
padding: 3px 10px;
background: rgba(0,84,219,0.1);
border: 1px solid #0054db;
border-radius: 20px;
font-size: 0.72em;
color: #0054db;
align-self: flex-start;
}
 
/* ============================================
PAGE DÉTAIL MONUMENT
============================================ */
.monument-detail { max-width: 800px; margin: 0 auto; }
 
.monument-photo-principale {
width: 100%;
height: 320px;
object-fit: cover;
border-radius: 16px;
margin-bottom: 24px;
display: block;
}
 
.monument-photo-placeholder {
width: 100%;
height: 320px;
background: linear-gradient(135deg, #0d2b6e, #1a3a6e);
border-radius: 16px;
margin-bottom: 24px;
display: flex;
align-items: center;
justify-content: center;
font-size: 6em;
}
 
.monument-titre { text-align: center; margin-bottom: 24px; }
.monument-titre h2 { font-size: 1.9em; color: #00b4d8; margin-bottom: 8px; }
 
.monument-info {
background: white;
border: 1px solid #00b4d8;
border-radius: 12px;
padding: 20px;
margin-bottom: 20px;
line-height: 1.8;
color: black;
font-size: 0.95em;
}
 
.monument-info h3 {
color: #0054db;
margin-bottom: 10px;
font-size: 1.05em;
}
 
.conseil {
background: #f0f8ff;
border-left: 3px solid #0054db;
padding: 14px 18px;
border-radius: 0 10px 10px 0;
margin-top: 16px;
color: black;
font-size: 0.9em;
}
 
.gps-box {
display: flex;
align-items: center;
gap: 10px;
background: white;
border: 1px solid #00b4d8;
border-radius: 10px;
padding: 12px 16px;
margin-top: 16px;
font-size: 0.85em;
color: black;
}
 
/* ============================================
CARTE
============================================ */
#map {
width: 100%;
height: 500px;
border-radius: 14px;
border: 2px solid #00b4d8;
}
 
/* ============================================
FOOTER
============================================ */
footer {
text-align: center;
padding: 20px;
color: #cce0ff;
font-size: 0.78em;
border-top: 1px solid rgba(255,255,255,0.2);
margin-top: 40px;
}
 
footer a { color: #90caf9; }
 
/* ============================================
RESPONSIVE MOBILE
============================================ */
@media (max-width: 768px) {
.header-texte h1 { font-size: 1.3em; }
.hero h2 { font-size: 1.4em; }
.monument-photo-principale { height: 220px; }
nav a { padding: 7px 12px; font-size: 0.8em; }
 
/* Logo plus petit sur mobile */
.logo-rond { width: 44px; height: 44px; border-radius: 6px; }
.hero-logo  { width: 80px;  height: 80px;  border-radius: 8px; }
 
/* 2 colonnes fixes sur mobile */
.grille {
grid-template-columns: repeat(2, 1fr) !important;
grid-auto-rows: auto !important;
gap: 10px !important;
}
 
.carte-monument {
display: flex !important;
flex-direction: column !important;
}
 
.carte-monument .photo {
height: 120px !important;
flex-shrink: 0 !important;
}
 
.carte-monument .photo-placeholder {
height: 120px !important;
flex-shrink: 0 !important;
font-size: 2.5em !important;
}
 
.carte-monument .corps {
flex: 1 !important;
display: flex !important;
flex-direction: column !important;
padding: 8px !important;
background: white !important;
}
 
.carte-monument h3 {
font-size: 0.8em !important;
margin-bottom: 4px !important;
}
 
.carte-monument p {
font-size: 0.72em !important;
line-height: 1.4 !important;
flex: 1 !important;
}
 
.tag {
margin-top: 6px !important;
font-size: 0.65em !important;
}
}
 
/* ============================================
GPS BOX AMÉLIORÉE
============================================ */
.gps-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: white;
  border: 1px solid #00b4d8;
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 16px;
  font-size: 0.85em;
  color: black;
}
 
.gps-coords {
  flex: 1;
  min-width: 160px;
}
 
.btn-gmaps {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #0054db, #0077b6);
  color: white !important;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: bold;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
 
.btn-gmaps:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(0,84,219,0.4);
}
 
/* MINI CARTE LEAFLET dans les monuments */
.mini-map-container {
  margin-top: 20px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid #00b4d8;
}
 
.mini-map-container h3 {
  background: linear-gradient(135deg, #1a1a4e, #0d47a1);
  color: #00b4d8;
  padding: 10px 16px;
  font-size: 0.95em;
  margin: 0;
}
 
#mini-map {
  width: 100%;
  height: 280px;
}
