/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Georgia', serif; background: var(--c3); color: #2c2c2c; line-height: 1.7; font-size: 16px; }
a { color: var(--c2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* === LAYOUT === */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* === HEADER === */
.site-header { background: var(--c1); color: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; }
.logo a { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.logo-icon { font-size: 32px; line-height: 1; }
.logo-main { display: block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; opacity: .75; }
.logo-sub { display: block; font-size: 17px; font-weight: bold; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { color: rgba(255,255,255,.85); padding: 8px 14px; border-radius: 4px; font-family: sans-serif; font-size: 14px; transition: background .2s, color .2s; }
.main-nav a:hover, .main-nav a.active { background: rgba(255,255,255,.15); color: #fff; text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }

/* === HERO === */
.hero { color: #fff; padding: 0; text-align: center; position: relative; overflow: hidden; min-height: 480px; display: flex; align-items: center; justify-content: center; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease-in-out; }
.hero-slide.active { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.35) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; padding: 70px 20px; }
.hero h1 { font-size: clamp(24px, 5vw, 48px); margin-bottom: 16px; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.hero p { font-size: 18px; opacity: .95; max-width: 600px; margin: 0 auto 28px; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.btn { display: inline-block; padding: 12px 28px; background: var(--c4); color: var(--c5); border-radius: 4px; font-family: sans-serif; font-weight: bold; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; transition: opacity .2s; }
.btn:hover { opacity: .85; text-decoration: none; }

/* === SECTIONS === */
.section { padding: 56px 0; }
.section-alt { background: #fff; }
.section-title { font-size: 28px; color: var(--c1); margin-bottom: 8px; }
.section-subtitle { color: #666; margin-bottom: 36px; font-size: 15px; font-family: sans-serif; }
.section-header { border-left: 4px solid var(--c4); padding-left: 16px; margin-bottom: 36px; }

/* === NEWS GRID === */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.news-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.08); transition: transform .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 6px 24px rgba(0,0,0,.14); }
.news-card-img { height: 180px; background: var(--c2); overflow: hidden; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card-img-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--c1), var(--c2)); display: flex; align-items: center; justify-content: center; font-size: 40px; }
.news-card-body { padding: 20px; }
.news-card-date { font-size: 12px; color: var(--c4); font-family: sans-serif; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.news-card-title { font-size: 18px; color: var(--c1); margin-bottom: 10px; }
.news-card-excerpt { font-size: 14px; color: #555; font-family: sans-serif; line-height: 1.6; }

/* === INFO BOXES === */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.info-box { background: #fff; border-radius: 8px; padding: 28px 24px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.06); border-top: 4px solid var(--c4); }
.info-box-icon { font-size: 36px; margin-bottom: 14px; }
.info-box h3 { font-size: 16px; color: var(--c1); margin-bottom: 8px; }
.info-box p { font-size: 14px; color: #666; font-family: sans-serif; }

/* === CANTINE PREVIEW === */
.cantine-card { background: #fff; border-radius: 8px; padding: 28px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.cantine-card h3 { color: var(--c1); margin-bottom: 16px; font-size: 20px; }
.menu-day { border-bottom: 1px solid #eee; padding: 10px 0; font-family: sans-serif; font-size: 14px; }
.menu-day:last-child { border-bottom: none; }
.menu-day strong { color: var(--c2); display: inline-block; width: 80px; }

/* === PAGE BANNER === */
.page-banner { background: var(--c1); color: #fff; padding: 40px 20px; }
.page-banner h1 { font-size: 32px; }
.page-banner p { opacity: .8; margin-top: 6px; font-family: sans-serif; }

/* === FOOTER === */
.site-footer { background: var(--c5); color: rgba(255,255,255,.8); margin-top: 60px; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding: 48px 20px; }
.footer-col h4 { color: var(--c4); font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 14px; font-family: sans-serif; }
.footer-col p { font-size: 14px; line-height: 1.8; font-family: sans-serif; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); text-align: center; padding: 16px 20px; font-size: 13px; font-family: sans-serif; }
.footer-bottom a { color: var(--c4); }

/* === GENERIC CONTENT === */
.content-wrap { max-width: 860px; }
.content-wrap p { margin-bottom: 16px; }
.content-wrap h2 { color: var(--c1); font-size: 22px; margin: 32px 0 12px; }

/* === DATE/HEURE === */
.header-datetime { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; margin-left: auto; }
.clock-date { font-size: 11px; color: rgba(255,255,255,.7); font-family: sans-serif; text-transform: capitalize; }
.clock-time { font-size: 16px; font-weight: 700; color: var(--c4); font-family: sans-serif; letter-spacing: 1px; }

/* === HEADER TOOLS === */
.header-tools { display: flex; align-items: center; gap: 8px; margin-left: 8px; }

/* === LANG SWITCHER === */
.lang-form { display: inline; }
.lang-btn { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff; height: 36px; padding: 0 12px; border-radius: 18px; font-size: 13px; font-family: sans-serif; font-weight: 600; cursor: pointer; transition: background .2s; white-space: nowrap; }
.lang-btn:hover { background: rgba(255,255,255,.28); }

/* === THEME PICKER === */
.theme-picker-wrap { position: relative; margin-left: 8px; }
.theme-picker-btn { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.theme-picker-btn:hover { background: rgba(255,255,255,.28); }
.theme-dropdown { display: none; position: absolute; top: calc(100% + 10px); right: 0; background: #fff; border-radius: 10px; box-shadow: 0 8px 32px rgba(0,0,0,.2); width: 240px; overflow: hidden; z-index: 200; }
.theme-dropdown.open { display: block; }
.theme-dropdown-title { padding: 10px 14px; font-size: 11px; font-family: sans-serif; text-transform: uppercase; letter-spacing: 1.5px; color: #888; border-bottom: 1px solid #f0f0f0; }
.theme-option { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 14px; border: none; background: none; cursor: pointer; text-align: left; transition: background .15s; }
.theme-option:hover { background: #f7f8fa; }
.theme-option-active { background: #f0f7f3; }
.theme-option-swatches { display: flex; border-radius: 4px; overflow: hidden; width: 60px; height: 20px; flex-shrink: 0; border: 1px solid rgba(0,0,0,.08); }
.theme-option-swatches span { flex: 1; }
.theme-option-name { font-size: 13px; color: #2c2c2c; font-family: sans-serif; flex: 1; }
.theme-check { color: var(--c2, #2D6A4F); font-weight: bold; font-size: 14px; }

/* === URBANISME === */
.urba-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:24px; margin-top:32px; }
.urba-cat { background:#fff; border-radius:12px; box-shadow:0 2px 12px rgba(0,0,0,.07); overflow:hidden; }
.urba-cat-header { display:flex; align-items:center; gap:12px; background:var(--c1); color:#fff; padding:16px 20px; }
.urba-cat-header h3 { margin:0; font-size:15px; font-weight:600; }
.urba-icon { font-size:22px; flex-shrink:0; }
.urba-docs { padding:12px 0; }
.urba-doc { display:flex; align-items:center; gap:14px; padding:12px 20px; text-decoration:none; color:inherit; border-bottom:1px solid #f0f0f0; transition:background .15s; }
.urba-doc:last-child { border-bottom:none; }
.urba-doc:hover { background:#f7f5f0; }
.doc-ico { font-size:24px; flex-shrink:0; }
.doc-info { flex:1; }
.doc-info strong { display:block; font-size:14px; color:#222; }
.doc-info span { font-size:12px; color:#888; }
.doc-dl { font-size:18px; color:var(--c1); flex-shrink:0; opacity:.7; transition:opacity .15s; }
.urba-doc:hover .doc-dl { opacity:1; }
.urba-info { display:flex; align-items:flex-start; gap:12px; background:rgba(0,0,0,.04); border-radius:10px; padding:16px 20px; margin-top:28px; font-size:14px; color:#555; }
.urba-info span { font-size:20px; flex-shrink:0; margin-top:2px; }
.urba-info p { margin:0; line-height:1.6; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--c1); flex-direction: column; padding: 12px; gap: 4px; }
  .main-nav.open { display: flex; }
  .header-inner { position: relative; }
  .hero { padding: 48px 20px; }
}
