/* Festival des Quatre Temps — d'apres le theme "The Conference" (Rara Themes) et les couleurs du site d'origine. */
:root {
  --rouille: #a23820;
  --orange: #ef7050;
  --accent: #e33d13;
  --jaune: #fcc83c;
  --jaune-2: #f9cc3b;
  --texte: #353535;
  --sombre: #121212;
  --degrade: linear-gradient(90deg, var(--rouille) 0%, var(--orange) 100%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--texte); font-family: "Nunito Sans", sans-serif; font-size: 18px; line-height: 1.8; background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
.container { max-width: 1170px; margin: 0 auto; padding: 0 20px; }
.section-title { margin: 0 auto 40px; font-size: 2.223em; line-height: 1.5; text-align: center; color: #121212; }

/* En-tete transparent par-dessus la banniere */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.page .site-header { position: relative; background: var(--sombre); }
.site-header .container { max-width: 1440px; display: flex; align-items: center; justify-content: space-between; }
.logo img { width: 160px; height: auto; padding: 10px 0; }
.main-navigation { display: flex; flex-wrap: wrap; }
.main-navigation a { color: #fff; text-decoration: none; padding: 25px; font-weight: 600; font-size: 0.9em; letter-spacing: 0.5px; }
.main-navigation a:hover { color: var(--jaune); }
.menu-toggle, .menu-button { display: none; }

/* Banniere plein ecran */
.site-banner { position: relative; min-height: 100vh; background-size: cover; background-position: center; display: flex; }
.banner-caption { flex: 1; display: flex; background: linear-gradient(90deg, rgba(162,56,32,0.10) 0%, rgba(239,112,80,0.10) 100%); }
.banner-caption .container { text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; margin-top: 60px; }
.banner-title { margin: 0; color: #fff; font-size: 4.1667em; font-weight: 700; line-height: 1.2; text-shadow: 0 2px 18px rgba(0,0,0,0.45); }
.banner-desc { color: #fff; font-size: 1.6em; font-weight: 600; margin: 10px 0 35px; text-shadow: 0 2px 12px rgba(0,0,0,0.45); }

/* Boutons */
.btn-cta, .btn-filled { display: inline-block; font-size: 0.778em; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 15px 40px; border-radius: 5px; text-decoration: none; transition: all .2s; }
.btn-cta { color: var(--accent); background: #fff; border: 2px solid #fff; }
.btn-cta:hover { background: transparent; color: #fff; }
.btn-filled { color: #fff; background: var(--accent); border: 2px solid var(--accent); }
.btn-filled:hover { background: transparent; color: var(--accent); }

/* Compteurs */
.counter-section { background: var(--rouille); color: #fff; padding: 60px 0; }
.counter-section .container { display: flex; flex-wrap: wrap; justify-content: space-around; }
.counter { text-align: center; padding: 0 20px; min-width: 160px; }
.counter h2 { margin: 0; font-size: 1em; letter-spacing: 2px; font-weight: 700; }
.counter .count { font-size: 3.5em; font-weight: 800; line-height: 1.2; color: var(--jaune); }

/* Billetterie */
.billetterie-section { padding: 90px 0 40px; text-align: center; }
.billetterie-section .section-desc { margin-bottom: 30px; }
.billetterie-section .section-desc p { margin: 0.3em 0; }

/* Programmation */
.speakers-section { padding: 50px 0 70px; }
.jour { margin-bottom: 60px; }
.jour-title { font-size: 1.6em; margin: 0 0 15px; padding-bottom: 8px; color: var(--rouille); border-bottom: 3px solid var(--jaune); display: inline-block; }
.jour-programme ul { list-style: none; padding: 0; margin: 0 0 20px; }
.jour-programme li { padding: 4px 0; }
.jour-programme li strong { color: var(--accent); }
.groupes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; margin-top: 30px; }
.groupe { position: relative; margin: 0; overflow: hidden; border-radius: 5px; aspect-ratio: 384 / 467; background: #222; }
.groupe img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.groupe figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; color: #fff; font-weight: 800; font-size: 1.1em; background: linear-gradient(0deg, rgba(0,0,0,0.75), rgba(0,0,0,0)); }
.groupe:hover img { transform: scale(1.05); }
.groupe:hover figcaption { background: var(--degrade); }

/* Affiche */
.affiche-section { padding: 70px 0; background: #f0f0f0; }
.affiche-section img { margin: 0 auto; max-width: 520px; width: 100%; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }

/* Contact */
.contact-section { padding: 80px 0 60px; }
.contact-list { list-style: none; padding: 0; margin: 0 auto; display: flex; justify-content: center; flex-wrap: wrap; gap: 60px; }
.contact-list li { display: flex; gap: 15px; align-items: flex-start; }
.contact-list .ico { color: var(--accent); font-size: 1.6em; line-height: 1; }
.contact-list strong { display: block; color: #121212; }
.map-section iframe { display: block; width: 100%; height: 450px; border: 0; }

/* Pages simples (Archives, etc.) */
.page-header { background: var(--degrade); color: #fff; padding: 70px 0; text-align: center; }
.page-header h1 { margin: 0; font-size: 2.6em; }
.page-content { padding: 60px 20px 80px; }
.page-content p:has(img) { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.page-content img { border-radius: 5px; box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.page-content h2 { color: var(--rouille); }

/* Pied de page */
.site-footer { background: var(--sombre); color: rgba(255,255,255,0.7); padding: 25px 0; font-size: 0.85em; text-align: center; }

/* Mobile */
@media (max-width: 900px) {
  .banner-title { font-size: 2.4em; }
  .banner-caption { background: rgba(249, 204, 59, 0.0); }
  .menu-button { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 20px; }
  .menu-button span { width: 26px; height: 3px; background: #fff; border-radius: 2px; }
  .main-navigation { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--sombre); }
  .menu-toggle:checked ~ .main-navigation { display: flex; }
  .main-navigation a { padding: 14px 25px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .counter { min-width: 45%; margin-bottom: 20px; }
}
.map-link { text-align: center; margin: 10px 0 30px; font-size: 0.85em; }
