/*
Theme Name: Grand Val Pontcharra
Theme URI: https://www.grandval-pontcharra.fr
Author: Grand Val
Description: Thème officiel du centre commercial Grand Val de Pontcharra. Design moderne et minimaliste.
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: grandval
*/

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --steel:       #1E3A5F;
  --steel-mid:   #2C5282;
  --steel-light: #EBF0F7;
  --slate:       #64748B;
  --slate-light: #94A3B8;
  --accent:      #3B82F6;
  --accent-dark: #1D4ED8;
  --ink:         #0F172A;
  --ink-mid:     #334155;
  --ink-soft:    #64748B;
  --bg:          #F8FAFC;
  --bg-alt:      #F1F5F9;
  --white:       #FFFFFF;
  --border:      #E2E8F0;
  --border-dark: #CBD5E1;
  --radius:      6px;
  --radius-lg:   12px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:      0 4px 16px rgba(15,23,42,0.08);
  --shadow-lg:   0 12px 40px rgba(15,23,42,0.12);
  --font:        'Inter', 'Segoe UI', system-ui, sans-serif;
  --max-w:       1200px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-dark); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.section { padding: 80px 0; }

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  line-height: 1.2;
}
.section-subtitle { font-size: 16px; color: var(--ink-soft); max-width: 520px; }
.section-header { margin-bottom: 52px; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary  { background: var(--steel); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover  { background: var(--steel-mid); color: var(--white); }
.btn-accent   { background: var(--accent); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-accent:hover   { background: var(--accent-dark); color: var(--white); }
.btn-ghost    { background: transparent; color: var(--ink-mid); border: 1px solid var(--border-dark); }
.btn-ghost:hover    { background: var(--bg-alt); color: var(--ink); }
.btn-ghost-white { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.3); }
.btn-ghost-white:hover { background: rgba(255,255,255,0.1); color: var(--white); }

/* ===== HEADER ===== */
#site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 32px;
}
.site-logo {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.5px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-logo .logo-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}
.site-logo:hover { color: var(--ink); text-decoration: none; }

#primary-nav ul { list-style: none; display: flex; gap: 2px; align-items: center; }
#primary-nav ul li a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: all 0.15s;
}
#primary-nav ul li a:hover,
#primary-nav ul li a.active { background: var(--bg-alt); color: var(--ink); text-decoration: none; }

.hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 4px; padding: 8px; }
.hamburger span { display: block; width: 20px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: all 0.3s; }

/* ===== HERO ===== */
.hero {
  background: var(--steel);
  background-image: linear-gradient(135deg, #0F2744 0%, #1E3A5F 40%, #2C5282 100%);
  color: var(--white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.hero-eyebrow::before { content: ''; display: block; width: 20px; height: 1px; background: rgba(255,255,255,0.3); }
.hero-title {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: var(--white);
}
.hero-title .highlight { color: #93C5FD; }
.hero-desc { font-size: 16px; color: rgba(255,255,255,0.65); line-height: 1.75; margin-bottom: 36px; max-width: 480px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-panel {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(8px);
}
.hero-panel-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 14px;
}
.stat-row:last-child { border-bottom: none; padding-bottom: 0; }
.stat-row .label { color: rgba(255,255,255,0.5); }
.stat-row .value { font-weight: 700; color: var(--white); }
.stat-row .value.accent { color: #93C5FD; }

/* ===== INFOS BAR ===== */
.infos-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.infos-bar-inner {
  display: flex;
  gap: 0;
  align-items: stretch;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-mid);
  border-right: 1px solid var(--border);
  flex: 1;
  justify-content: center;
}
.info-item:last-child { border-right: none; }
.info-item .icon { color: var(--accent); font-size: 16px; flex-shrink: 0; }

/* ===== BOUTIQUES ===== */
.boutiques-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.boutique-card {
  background: var(--white);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.15s;
  position: relative;
}
.boutique-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--card-color, var(--border));
  opacity: 0;
  transition: opacity 0.2s;
}
.boutique-card:hover { background: var(--bg); }
.boutique-card:hover::before { opacity: 1; }
.boutique-categorie {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-light);
}
.boutique-nom {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.boutique-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  flex: 1;
}
.boutique-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.boutique-link:hover { color: var(--accent-dark); text-decoration: none; }

/* ===== ACTUALITÉS ===== */
.actu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.actu-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.actu-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.actu-img { height: 160px; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; font-size: 32px; color: var(--slate-light); }
.actu-body { padding: 20px; }
.actu-date { font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.actu-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 8px; line-height: 1.4; }
.actu-excerpt { font-size: 13px; color: var(--ink-soft); line-height: 1.6; }

/* ===== ACCÈS ===== */
.acces-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.acces-block { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.acces-block-header { padding: 16px 24px; background: var(--bg-alt); border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--ink-mid); text-transform: uppercase; letter-spacing: 0.08em; }
.acces-list { list-style: none; }
.acces-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 24px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--ink-mid); }
.acces-list li:last-child { border-bottom: none; }
.acces-list li .icon { font-size: 16px; flex-shrink: 0; margin-top: 2px; }

/* ===== HORAIRES ===== */
.horaires-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.horaires-header { padding: 14px 24px; background: var(--steel); color: var(--white); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.horaire-row { display: flex; justify-content: space-between; padding: 13px 24px; border-bottom: 1px solid var(--border); font-size: 14px; }
.horaire-row:last-child { border-bottom: none; }
.horaire-row.today { background: var(--steel-light); }
.horaire-row.today .horaire-jour { color: var(--steel); font-weight: 600; }
.horaire-row.today .horaire-heure { color: var(--steel); font-weight: 700; }
.horaire-jour { color: var(--ink-soft); }
.horaire-heure { font-weight: 500; color: var(--ink); }
.map-placeholder { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-lg); height: 300px; display: flex; align-items: center; justify-content: center; color: var(--slate-light); font-size: 13px; text-align: center; }

/* ===== DIVIDER ===== */
.divider { height: 1px; background: var(--border); margin: 0; }

/* ===== FOOTER ===== */
#site-footer { background: var(--ink); color: rgba(255,255,255,0.5); padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { font-size: 16px; font-weight: 800; color: var(--white); letter-spacing: -0.5px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.footer-brand p { font-size: 13px; line-height: 1.75; color: rgba(255,255,255,0.4); }
.footer-col h4 { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.5); transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--white); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: rgba(255,255,255,0.3); }
.footer-bottom a:hover { color: rgba(255,255,255,0.6); text-decoration: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-panel { display: none; }
  .acces-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .infos-bar-inner { flex-wrap: wrap; }
  .info-item { border-right: none; border-bottom: 1px solid var(--border); flex: 0 0 50%; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }
  #primary-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 12px; z-index: 999; }
  #primary-nav.open { display: block; }
  #primary-nav ul { flex-direction: column; gap: 2px; }
  .hamburger { display: flex; }
  .header-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .boutiques-grid { grid-template-columns: 1fr 1fr; }
  .info-item { flex: 0 0 100%; }
  .hero { padding: 64px 0 56px; }
}
