/*
Theme Name: OSALPES Theme
Description: Thème custom pour le site OSALPES.FR - Observatoire de Spectacle dans les Alpes
Version: 4.5 - Final Layout
Author: OSALPES & AI
*/

/* --- Palette de Couleurs --- */
:root {
  /* Thème clair (défaut) */
  --bg-color: #ffffff;
  --text-color: #212529;
  --header-bg: #ffffff;
  --header-shadow: rgba(0, 0, 0, 0.05);
  --card-bg: #ffffff;
  --section-green-bg: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  --mission-bg: #f0fdf4;
  --mission-border: #157347;
  --footer-bg: linear-gradient(135deg, #0f5132 0%, #198754 100%);
  --footer-text: #bbf7d0;
  --hero-text-color: #212529;
  --hero-slogan-color: #0f5132;
  --card-icon-color: #ffffff;

  /* Couleurs fixes */
  --alpine-green: #0f5132;
  --text-gray: #6c757d;
}

body.dark-theme {
  /* Thème sombre */
  --bg-color: #121212;
  --text-color: #f8f9fa;
  --header-bg: #1f1f1f;
  --header-shadow: rgba(255, 255, 255, 0.1);
  --card-bg: #1f1f1f;
  --section-green-bg: linear-gradient(135deg, #102d1a 0%, #121212 100%);
  --mission-bg: #102d1a;
  --mission-border: #86efac;
  --footer-bg: #1f1f1f;
  --footer-text: #6c757d;
  --hero-text-color: #ffffff;
  --hero-slogan-color: #86efac;
  --card-icon-color: #ffffff;
}

/* --- Style Global --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    line-height: 1.6; 
    background-color: var(--bg-color); 
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    padding-top: 90px;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* --- Header --- */
.site-header-global {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 1000;
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--header-shadow);
    box-shadow: 0 2px 4px var(--header-shadow);
    transition: background-color 0.3s;
}
.header-container {
    height: 100%;
    padding: 0 40px; 
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-left { display: flex; align-items: center; gap: 15px; }
.site-header-global .site-logo svg {
    width: 100px;
    height: auto;
    display: block;
    transition: filter 0.3s ease-in-out;
}
body.dark-theme .site-header-global .site-logo svg {
    filter: brightness(0) invert(1);
}
.site-title-tagline { display: flex; flex-direction: column; }
.site-title-tagline .site-title, .site-title-tagline .tagline { color: var(--text-color); transition: color 0.3s; }
.site-title-tagline .site-title { font-size: 1.3rem; font-weight: 700; }
.site-title-tagline .tagline { font-size: 0.8rem; font-weight: 400; }
.header-right { display: flex; align-items: center; gap: 20px; }
.support-link { display: flex; align-items: center; text-align: right; font-size: 0.85rem; color: var(--text-gray); text-decoration: none; line-height: 1.4; transition: color 0.3s ease; }
.support-link:hover { color: var(--alpine-green); }
.support-link .text-content { display: block; }
.support-link svg { width: 16px; height: 16px; margin-left: 8px; flex-shrink: 0; }
.theme-switcher { background: none; border: 1px solid var(--text-gray); border-radius: 50%; width: 32px; height: 32px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-gray); }
.theme-switcher:hover { color: var(--text-color); border-color: var(--text-color); }
.theme-switcher .icon-sun { display: none; }
body.dark-theme .theme-switcher .icon-sun { display: block; }
body.dark-theme .theme-switcher .icon-moon { display: none; }

/* --- Contenu Principal --- */
main { display: block; }
.hero-section { 
    position: relative; 
    height: calc(100vh - 90px); 
    display: flex; 
    align-items: center; 
    justify-content: center;
}
.hero-bg, .hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.hero-bg { background-size: cover; background-position: center; opacity: 0.6; transition: background-image 1s ease-in-out; }
body.dark-theme .hero-bg { opacity: 0.6; }
.hero-overlay { background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, transparent 60%, rgba(0,0,0,0.1) 100%); }
.hero-content { position: relative; z-index: 10; text-align: center; padding: 0 2rem; color: var(--hero-text-color); transition: color 0.3s; }
.hero-title { 
    font-size: 5.5rem; 
    font-weight: 800; 
    margin-bottom: 1.5rem; 
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
    animation: zoomIn 1.2s ease-out 0.2s forwards;
    opacity: 0;
}
.hero-subtitle { font-size: 1.8rem; font-weight: 400; margin-bottom: 1rem; }
.hero-slogan { font-size: 1.5rem; font-weight: 500; color: var(--hero-slogan-color); margin-bottom: 2rem; transition: color 0.3s; }

/* --- Sections & Cartes --- */
.section { padding: 5rem 0; }
.section-green { background: var(--section-green-bg); transition: background 0.3s; }
.section-title { font-size: 2.5rem; font-weight: bold; color: var(--alpine-green); text-align: center; margin-bottom: 1.5rem; }
.section-subtitle { font-size: 1.25rem; color: var(--text-gray); text-align: center; max-width: 800px; margin: 0 auto 4rem; }
.mission-statement { background: var(--mission-bg); border-left: 4px solid var(--mission-border); border-radius: 0.5rem; padding: 1.5rem; max-width: 1000px; margin: -2rem auto 4rem; transition: background-color 0.3s; }
.mission-statement p { font-size: 1.125rem; color: var(--text-color); font-style: italic; transition: color 0.3s; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.card { background: var(--card-bg); padding: 2rem; border-radius: 0.5rem; text-align: center; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.02); transition: all 0.3s ease; }
.card:hover { box-shadow: 0 25px 50px -12px rgba(15, 81, 50, 0.1); transform: translateY(-4px); }
.card-icon { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; background: linear-gradient(135deg, var(--alpine-green) 0%, #198754 100%); }
.card-icon svg { stroke: white; }
.card-title { font-size: 1.25rem; font-weight: 600; color: var(--alpine-green); margin-bottom: 0.75rem; }
.card-description { color: var(--text-gray); }

/* --- Footer --- */
.footer { background: var(--footer-bg); color: var(--footer-text); padding: 3rem 0; text-align: center; transition: background-color 0.3s; }

/* --- Bandeau Coming Soon --- */
.coming-soon-banner {
    position: fixed;
    top: 45px;
    right: -75px;
    width: 300px;
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 2px solid var(--text-color);
    border-radius: 8px;
    transform: rotate(45deg);
    transform-origin: top left;
    z-index: 9999;
    text-align: center;
    transition: border-color 0.3s, color 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.banner-title {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
}
.banner-subtitle {
    font-size: 0.8rem;
    font-weight: 500;
}

/* --- Animation --- */
@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-title { font-size: 3.5rem; }
    .site-title-tagline { display: none; }
    .header-container { padding: 10px 20px; }
    .site-header-global .site-logo svg { width: 60px; } 
    body { padding-top: 80px; }
    .hero-section { height: calc(100vh - 80px); }
    .support-link { display: none; }
    .coming-soon-banner { display: none; }
}