/* ============================================
   GIRONA DAY — Feuille de Styles Principale
   https://girona.day
   ============================================ */

/* ---- Variables CSS ---- */
:root {
  --verde:        #2d6a4f;
  --verde-dark:   #1b4332;
  --verde-light:  #52b788;
  --arancio:      #e76f51;
  --arancio-dark: #bc4a2a;
  --azul:         #023e8a;
  --texte:        #1a1a2e;
  --texte-clair:  #5c6070;
  --gris:         #f8f9fa;
  --blanc:        #ffffff;
  --ombre:        rgba(0,0,0,0.09);
  --ombre-forte:  rgba(0,0,0,0.22);
  --rayon:        8px;
  --transition:   all 0.3s ease;
  --max-width:    1200px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--texte);
  background: var(--blanc);
  line-height: 1.75;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--verde); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--arancio); }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; color: var(--verde-dark); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.55rem); margin-bottom: 0.75rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---- Utilitaires ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-light { background: var(--gris); }
.section-dark { background: var(--verde-dark); }
.section-dark h2,
.section-dark h3,
.section-dark p { color: var(--blanc); }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.section-header p { font-size: 1.1rem; color: var(--texte-clair); }
.section-dark .section-header p { color: rgba(255,255,255,0.8); }

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
}
.btn-primary { background: var(--verde); color: var(--blanc); border-color: var(--verde); }
.btn-primary:hover {
  background: var(--verde-dark); border-color: var(--verde-dark); color: var(--blanc);
  transform: translateY(-2px); box-shadow: 0 8px 20px var(--ombre-forte);
}
.btn-outline { background: transparent; color: var(--blanc); border-color: var(--blanc); }
.btn-outline:hover {
  background: var(--blanc); color: var(--verde);
  transform: translateY(-2px);
}
.btn-orange { background: var(--arancio); color: var(--blanc); border-color: var(--arancio); }
.btn-orange:hover {
  background: var(--arancio-dark); border-color: var(--arancio-dark); color: var(--blanc);
  transform: translateY(-2px);
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.875rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tag-green  { background: #d8f3dc; color: var(--verde); }
.tag-orange { background: #ffe8e0; color: var(--arancio-dark); }
.tag-blue   { background: #d0e4ff; color: var(--azul); }

/* ---- Header / Navigation ---- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ombre);
  box-shadow: 0 2px 12px var(--ombre);
}
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--verde-dark);
  text-decoration: none;
}
.logo-icon { font-size: 1.75rem; }
.logo span { color: var(--arancio); }
nav ul { display: flex; gap: 0.15rem; align-items: center; }
nav a {
  padding: 0.5rem 0.875rem;
  border-radius: var(--rayon);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--texte);
  white-space: nowrap;
}
nav a:hover,
nav a.active { background: var(--gris); color: var(--verde); }
.nav-cta {
  background: var(--verde) !important;
  color: var(--blanc) !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 50px !important;
  margin-left: 0.5rem;
}
.nav-cta:hover { background: var(--verde-dark) !important; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}
.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--texte);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- Hero (page d'accueil) ---- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--verde-dark);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-girona.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.45;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 7rem 1.5rem 5rem;
  color: var(--blanc);
}
.hero-badge {
  display: inline-block;
  background: var(--arancio);
  color: white;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  color: var(--blanc);
  max-width: 780px;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.9);
  max-width: 620px;
  margin-bottom: 2.5rem;
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.hero-stat .number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--blanc);
  display: block;
  line-height: 1;
}
.hero-stat .label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.72);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- Page Hero (pages internes) ---- */
.page-hero {
  background: var(--verde-dark);
  color: var(--blanc);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .breadcrumb {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.9rem;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.65); }
.page-hero .breadcrumb a:hover { color: var(--blanc); }
.page-hero h1 { color: var(--blanc); margin-bottom: 1rem; }
.page-hero .subtitle { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 650px; }

/* ---- Grille de Cards ---- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}
.card {
  background: var(--blanc);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--ombre);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 14px 40px var(--ombre-forte); }
.card-img { height: 220px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-meta { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.card h3 { margin-bottom: 0.5rem; font-size: 1.2rem; }
.card p { color: var(--texte-clair); font-size: 0.94rem; flex: 1; }
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.card-stats { display: flex; gap: 1rem; font-size: 0.85rem; color: var(--texte-clair); }

/* ---- Features / Icônes ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 2rem;
}
.feature-box {
  background: var(--blanc);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 20px var(--ombre);
  transition: var(--transition);
}
.feature-box:hover { transform: translateY(-4px); box-shadow: 0 10px 32px var(--ombre-forte); }
.feature-icon { font-size: 2.75rem; margin-bottom: 1rem; display: block; }
.feature-box h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.feature-box p { font-size: 0.9rem; color: var(--texte-clair); margin: 0; }

/* ---- Route Cards (Itinéraires) ---- */
.route-card {
  background: var(--blanc);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--ombre);
  margin-bottom: 2.5rem;
  display: grid;
  grid-template-columns: 360px 1fr;
  transition: var(--transition);
}
.route-card:hover { box-shadow: 0 10px 35px var(--ombre-forte); }
.route-img { height: 100%; min-height: 260px; overflow: hidden; }
.route-img img { width: 100%; height: 100%; object-fit: cover; }
.route-body { padding: 2rem; }
.route-body h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.route-body > p { color: var(--texte-clair); margin-bottom: 1rem; }
.route-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: var(--gris);
  border-radius: var(--rayon);
  padding: 1rem;
  margin: 1.25rem 0;
}
.route-stat { text-align: center; }
.route-stat .value { font-size: 1.3rem; font-weight: 700; color: var(--verde); display: block; line-height: 1.2; }
.route-stat .label { font-size: 0.72rem; color: var(--texte-clair); text-transform: uppercase; letter-spacing: 0.5px; }
.route-highlights { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }

/* ---- Galerie ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.875rem;
}
.gallery-grid .wide { grid-column: span 2; }
.gallery-item {
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item.wide { aspect-ratio: 16/7; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.06); }

/* ---- Deux Colonnes ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.two-col.reverse .two-col-img { order: 2; }
.two-col.reverse .two-col-text { order: 1; }
.two-col-img { border-radius: 16px; overflow: hidden; box-shadow: 0 8px 32px var(--ombre-forte); }
.two-col-img img { width: 100%; height: 100%; object-fit: cover; }
.two-col-text h2 { margin-bottom: 1.25rem; }
.two-col-text ul { margin: 1rem 0 1.5rem; display: flex; flex-direction: column; gap: 0.55rem; }
.two-col-text li { display: flex; gap: 0.5rem; color: var(--texte-clair); line-height: 1.5; }
.two-col-text li::before { content: '✓'; color: var(--verde); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ---- Info Boxes ---- */
.info-box {
  background: #d8f3dc;
  border-left: 4px solid var(--verde);
  border-radius: 0 var(--rayon) var(--rayon) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.info-box.tip   { background: #d0e4ff; border-color: var(--azul); }
.info-box.warn  { background: #fff3cd; border-color: #ffc107; }
.info-box h4 { margin-bottom: 0.4rem; color: var(--verde-dark); font-size: 1rem; }
.info-box.tip h4 { color: var(--azul); }

/* ---- Tableau ---- */
.table-wrapper { overflow-x: auto; border-radius: var(--rayon); box-shadow: 0 4px 20px var(--ombre); }
table { width: 100%; border-collapse: collapse; background: var(--blanc); }
th {
  background: var(--verde);
  color: var(--blanc);
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
td { padding: 0.875rem 1.25rem; border-bottom: 1px solid rgba(0,0,0,0.07); color: var(--texte-clair); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gris); }

/* ---- Formulaire de Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h3 { margin-bottom: 1rem; }
.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}
.contact-info-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.contact-info-item h4 { font-size: 0.9rem; margin-bottom: 0.2rem; }
.contact-info-item p, .contact-info-item a { font-size: 0.9rem; color: var(--texte-clair); margin: 0; }

.form-group { margin-bottom: 1.5rem; }
label { display: block; margin-bottom: 0.4rem; font-weight: 600; font-size: 0.9rem; }
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid rgba(0,0,0,0.12);
  border-radius: var(--rayon);
  font-size: 1rem;
  font-family: inherit;
  color: var(--texte);
  background: var(--blanc);
  transition: var(--transition);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--verde);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.15);
}
textarea { resize: vertical; min-height: 150px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ---- Bannière CTA ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--verde-dark) 0%, var(--verde) 100%);
  color: var(--blanc);
  text-align: center;
  padding: 5rem 1.5rem;
}
.cta-banner h2 { color: var(--blanc); margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 600px; margin: 0 auto 2rem; }
.cta-banner .cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- Témoignages ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}
.testimonial {
  background: var(--blanc);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px var(--ombre);
}
.testimonial-stars { color: #ffc107; font-size: 1.2rem; margin-bottom: 0.75rem; }
.testimonial-text { font-style: italic; color: var(--texte-clair); margin-bottom: 1.25rem; line-height: 1.65; }
.testimonial-author { font-weight: 700; color: var(--verde-dark); font-size: 0.9rem; }
.testimonial-origin  { font-size: 0.82rem; color: var(--texte-clair); }

/* ---- FAQ (accordion) ---- */
.faq-list { max-width: 800px; margin: 0 auto; }
details {
  border-radius: var(--rayon);
  background: var(--blanc);
  box-shadow: 0 2px 10px var(--ombre);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
details summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  color: var(--verde-dark);
  font-size: 0.98rem;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; font-size: 1.5rem; color: var(--verde); transition: var(--transition); flex-shrink: 0; margin-left: 1rem; }
details[open] summary::after { content: '−'; }
details[open] summary { border-bottom: 1px solid rgba(0,0,0,0.07); }
.details-content { padding: 1.25rem 1.5rem; color: var(--texte-clair); font-size: 0.95rem; }

/* ---- Pied de Page ---- */
footer {
  background: var(--verde-dark);
  color: rgba(255,255,255,0.88);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .logo { color: var(--blanc); margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.65); line-height: 1.65; }
.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--verde-light);
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { font-size: 0.9rem; color: rgba(255,255,255,0.65); transition: var(--transition); }
.footer-col a:hover { color: var(--blanc); padding-left: 5px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-bottom a { color: rgba(255,255,255,0.65); }
.footer-bottom a:hover { color: var(--blanc); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .route-card { grid-template-columns: 1fr; }
  .route-img { min-height: 220px; }
}

@media (max-width: 768px) {
  .hero { min-height: 80vh; }
  .two-col, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .two-col.reverse .two-col-img { order: unset; }
  .two-col.reverse .two-col-text { order: unset; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid .wide { grid-column: span 2; }
  .form-row { grid-template-columns: 1fr; }
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    flex-direction: column;
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 20px var(--ombre-forte);
    border-top: 1px solid var(--ombre);
    gap: 0;
  }
  nav ul.open { display: flex; }
  nav a { padding: 0.75rem 1rem; width: 100%; }
  .nav-cta { margin-left: 0 !important; }
  .menu-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 1.5rem; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .wide { grid-column: span 1; }
  .cards-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .route-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
