/*
Theme Name: Wolu Cyber
Theme URI: https://www.wolu-cyber.be
Description: Thème one-page multilingue (Polylang) pour l'Espace Public Numérique Wolu Cyber — Woluwe-Saint-Lambert. Le contenu est entièrement éditable via des pages WordPress.
Version: 2.0
Author: Commune de Woluwe-Saint-Lambert
Author URI: https://www.woluwe1200.be
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: wolu-cyber
Tags: one-page, multilingual, education, public-service
*/

/* ═══════════════════════════════════════
   VARIABLES
   ═══════════════════════════════════════ */
:root {
  --bordeaux: #6B1D2A;
  --bordeaux-light: #8A2E3C;
  --bordeaux-dark: #4A1019;
  --beige: #F5EDE0;
  --beige-dark: #E8DCC8;
  --beige-mid: #EDE3D2;
  --cream: #FBF8F3;
  --text: #3A2A1E;
  --text-light: #6B5B4E;
  --accent: #C4956A;
  --white: #FFFFFF;
}

/* ═══════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
}
a { color: var(--bordeaux); }
img { max-width: 100%; height: auto; }

/* ═══════════════════════════════════════
   NAV
   ═══════════════════════════════════════ */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--bordeaux);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
  box-shadow: 0 2px 20px rgba(107,29,42,.3);
}
.nav-lang {
  display: flex; gap: .3rem;
  font-size: .82rem; font-weight: 600;
  color: var(--beige-dark); letter-spacing: .02em;
}
.nav-lang a {
  color: var(--beige-dark); text-decoration: none;
  padding: .25em .5em; border-radius: 3px;
  transition: color .2s, background .2s;
}
.nav-lang a:hover, .nav-lang a.current-lang {
  color: var(--white); background: rgba(255,255,255,.12);
}
.nav-lang span.sep { color: rgba(245,237,224,.3); }

.nav-links { display: flex; gap: 1.8rem; }
.nav-links a {
  color: var(--beige-dark); text-decoration: none;
  font-size: .85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }

.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--beige); }

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.hero {
  margin-top: 56px;
  background: linear-gradient(160deg, var(--bordeaux-dark) 0%, var(--bordeaux) 40%, var(--bordeaux-light) 100%);
  padding: 5rem 2rem 4rem;
  text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  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");
}
.hero-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hero-logo { margin: 0 auto 2rem; }
.hero-logo img { max-height: 120px; width: auto; }
.hero h1 {
  font-family: 'DM Serif Display', serif;
  color: var(--beige);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15; margin-bottom: .6rem;
}
.hero .subtitle {
  color: var(--accent); font-size: 1.1rem;
  font-weight: 300; margin-bottom: 2rem;
}
.hero .tagline {
  color: rgba(245,237,224,.75); font-size: .95rem;
  max-width: 540px; margin: 0 auto; line-height: 1.8;
}

/* ═══════════════════════════════════════
   SECTIONS GENERIQUES
   ═══════════════════════════════════════ */
section.wc-section { padding: 4.5rem 2rem; }
.section-inner { max-width: 920px; margin: 0 auto; }
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--bordeaux); margin-bottom: .4rem;
}
.section-rule {
  width: 50px; height: 3px;
  background: var(--accent); border: none;
  margin-bottom: 2rem;
}
/* WP content styling inside sections */
.section-content p { margin-bottom: 1rem; }
.section-content p:last-child { margin-bottom: 0; }

.bg-beige { background: var(--beige); }
.bg-cream { background: var(--cream); }
.bg-dark { background: var(--bordeaux-dark); color: var(--beige); }
.bg-dark .section-title { color: var(--beige); }
.bg-dark a { color: var(--accent); }

/* ═══════════════════════════════════════
   EDITO / MISSION
   ═══════════════════════════════════════ */
.edito-content {
  display: flex; gap: 2.5rem; align-items: flex-start;
}
.edito-text { flex: 1; }
.edito-photo {
  flex-shrink: 0; width: 140px; height: 140px;
  border-radius: 50%; overflow: hidden;
  border: 4px solid var(--beige-dark);
  box-shadow: 0 8px 24px rgba(107,29,42,.1);
}
.edito-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}

/* ═══════════════════════════════════════
   ESPACES (cards)
   ═══════════════════════════════════════ */
.espaces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.espace-card {
  background: var(--white); border-radius: 12px;
  padding: 2rem; border: 1px solid var(--beige-dark);
  transition: transform .25s, box-shadow .25s;
}
.espace-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(107,29,42,.08);
}
.espace-card h3 {
  font-family: 'DM Serif Display', serif;
  color: var(--bordeaux); font-size: 1.3rem;
  margin-bottom: .8rem;
}
.espace-card .meta, .espace-card p {
  font-size: .88rem; color: var(--text-light); line-height: 1.8;
}
.espace-card strong { color: var(--text); font-weight: 600; }
.badge-pmr {
  display: inline-block; background: var(--accent);
  color: var(--white); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  padding: .25em .7em; border-radius: 4px; margin-top: .5rem;
}

/* ═══════════════════════════════════════
   FORMATIONS (accordion)
   ═══════════════════════════════════════ */
.tarifs-box {
  background: var(--beige-mid); border-radius: 10px;
  padding: 1.5rem 2rem; margin-bottom: 2.5rem;
  border-left: 4px solid var(--bordeaux);
}
.tarifs-box h4 {
  font-family: 'DM Serif Display', serif;
  color: var(--bordeaux); margin-bottom: .6rem;
}
.tarifs-box p { font-size: .92rem; color: var(--text-light); }

.cycle-label {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem; color: var(--bordeaux);
  margin: 2.5rem 0 1.2rem; padding-bottom: .5rem;
  border-bottom: 2px solid var(--beige-dark);
}
.formation-list { display: flex; flex-direction: column; gap: 1rem; }
.formation-item {
  background: var(--white); border-radius: 10px;
  border: 1px solid var(--beige-dark); overflow: hidden;
  transition: box-shadow .2s;
}
.formation-item:hover { box-shadow: 0 4px 16px rgba(107,29,42,.06); }
.formation-header {
  padding: 1.2rem 1.5rem; cursor: pointer;
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
  user-select: none;
}
.formation-header h4 {
  font-size: 1rem; font-weight: 600;
  color: var(--bordeaux); flex: 1;
}
.new-badge {
  background: var(--bordeaux); color: var(--white);
  font-size: .65rem; font-weight: 700;
  text-transform: uppercase; padding: .2em .6em;
  border-radius: 3px; flex-shrink: 0;
}
.complet-badge {
  background: #c0392b; color: var(--white);
  font-size: .65rem; font-weight: 700;
  text-transform: uppercase; padding: .2em .6em;
  border-radius: 3px; flex-shrink: 0;
}
.termine-badge {
    background: #999;
    color: white;
    font-size: .7rem;
    font-weight: 700;
    padding: .2em .6em;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.chevron {
  width: 20px; height: 20px; fill: var(--bordeaux);
  transition: transform .3s; flex-shrink: 0;
}
.formation-item.open .chevron { transform: rotate(180deg); }
.formation-body {
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease;
}
.formation-body-inner {
  padding: 0 1.5rem 1.5rem;
  font-size: .92rem; color: var(--text-light); line-height: 1.8;
}
.formation-body-inner .dates {
  margin-top: .8rem; padding: .8rem 1rem;
  background: var(--beige); border-radius: 6px; font-size: .88rem;
}
.formation-body-inner .dates strong { color: var(--bordeaux); }

/* ═══════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════ */
.contact-box {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2.5rem; align-items: start;
}
.contact-info h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem; margin-bottom: 1rem; color: var(--beige);
}
.contact-info p {
  font-size: .95rem; line-height: 1.9;
  color: rgba(245,237,224,.8);
}
.contact-info a { color: var(--accent); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }
.contact-transport {
  background: rgba(255,255,255,.08);
  border-radius: 10px; padding: 1.5rem 2rem;
}
.contact-transport h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem; margin-bottom: .8rem; color: var(--beige);
}
.contact-transport p {
  font-size: .9rem; color: rgba(245,237,224,.7); line-height: 1.8;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.site-footer {
  background: var(--bordeaux-dark);
  border-top: 1px solid rgba(245,237,224,.1);
  padding: 1.5rem 2rem; text-align: center;
  font-size: .82rem; color: rgba(245,237,224,.4);
}
.site-footer a { color: var(--accent); text-decoration: none; }

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 56px; left: 0; right: 0;
    background: var(--bordeaux); padding: 1rem 2rem; gap: 1rem;
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .contact-box { grid-template-columns: 1fr; }
  .hero { padding: 3.5rem 1.5rem 3rem; }
  section.wc-section { padding: 3rem 1.5rem; }
}
@media (max-width: 600px) {
  .edito-content { flex-direction: column-reverse; align-items: center; text-align: center; }
  .edito-photo { width: 110px; height: 110px; }
}
