/* 
 * Festival Jumelages - Design Ultra-Original
 * Style: Neo-Brutalism + Broken Grid + Bold Typography
 * Palette inspirée des affiches officielles
 */

:root {
    /* Couleurs */
    --primary: #2B6B4D;      /* Vert foncé des affiches */
    --accent: #F59E42;       /* Orange chaleureux */
    --nature: #7AB665;       /* Vert clair nature */
    --bg: #F5F3E8;           /* Beige crème */
    --dark: #1A1A1A;         /* Noir */
    --white: #FFFFFF;        /* Blanc */
    
    /* Typographie */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Espacements */
    --space-xs: 0.5rem;      /* 8px */
    --space-sm: 1rem;        /* 16px */
    --space-md: 1.5rem;      /* 24px */
    --space-lg: 2rem;        /* 32px */
    --space-xl: 3rem;        /* 48px */
    --space-2xl: 4rem;       /* 64px */
    --space-3xl: 6rem;       /* 96px */
    
    /* Bordures */
    --border-width: 3px;
    --border-width-thick: 4px;
    --border-width-heavy: 6px;
    
    /* Ombres */
    --shadow-sm: 4px 4px 0;
    --shadow-md: 6px 6px 0;
    --shadow-lg: 8px 8px 0;
    --shadow-xl: 12px 12px 0;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    background: var(--dark);
}

/* === FORCER FORMAT MOBILE MÊME SUR DESKTOP === */
/* Largeur iPhone (393px) - reste mobile même sur desktop */
body {
    max-width: 393px;
    margin: 0 auto;
    background: var(--bg);
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}::selection {
    background-color: var(--accent);
    color: var(--white);
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--dark);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Classes utilitaires pour accessibilité */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* === HEADER MINIMAL === */
/* === HEADER MOBILE === */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 249, 238, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: var(--border-width) solid var(--dark);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -2px;
    text-transform: uppercase;
    z-index: 1001;
}

/* Navigation MOBILE UNIQUEMENT avec burger menu */
nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 85%;
    max-width: 350px;
    background: var(--primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: right 0.3s ease;
    z-index: 999;
    box-shadow: -5px 0 20px rgba(0,0,0,0.3);
}

nav.active {
    right: 0;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 1.8rem;
    padding: 1rem;
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-normal);
}

nav a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

/* Bouton recherche */
.search-toggle {
    background: var(--accent);
    border: var(--border-width) solid var(--dark);
    box-shadow: 4px 4px 0 var(--dark);
    padding: 0.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--dark);
    transition: all 0.2s ease;
    z-index: 1001;
}

.search-toggle:hover {
    background: var(--primary);
    color: var(--white);
}

.search-toggle:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

.search-toggle svg {
    display: block;
}

/* Dropdown recherche */
.search-dropdown {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: var(--border-width) solid var(--dark);
    box-shadow: 0 6px 0 var(--dark);
    padding: 0;
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.search-dropdown.active {
    max-height: 100px;
    padding: 1.5rem;
}

.search-dropdown input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: var(--border-width) solid var(--dark);
    background: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    box-shadow: 4px 4px 0 var(--dark);
}

.search-dropdown input:focus {
    outline: none;
    box-shadow: 6px 6px 0 var(--accent);
}

.search-dropdown input::placeholder {
    color: var(--dark);
    opacity: 0.4;
}

.burger {
    display: block;
    font-size: 1.8rem;
    cursor: pointer;
    background: var(--primary);
    color: white;
    padding: 0.6rem 1rem;
    border: 3px solid var(--dark);
    box-shadow: 4px 4px 0 var(--dark);
    z-index: 1001;
}

/* === HERO SECTION - MOBILE ONLY (1 colonne) === */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-left {
    background: var(--primary);
    padding: 6rem 1.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    clip-path: none;
}

.hero-left::before {
    content: 'FOLK';
    position: absolute;
    font-size: 20rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    top: 50%;
    left: -10%;
    transform: translateY(-50%) rotate(-10deg);
    font-family: var(--font-display);
}

.hero-dates {
    background: var(--accent);
    color: var(--dark);
    padding: 0.6rem 1.2rem;
    display: inline-block;
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    border: 4px solid var(--dark);
    box-shadow: 6px 6px 0 var(--dark);
    transform: rotate(0deg);
}

.hero-left h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 12vw, 5rem);
    color: var(--white);
    line-height: 0.9;
    margin-bottom: 2rem;
    font-weight: 900;
    letter-spacing: -4px;
}

.hero-left p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    margin-bottom: 3rem;
    max-width: 500px;
}

.hero-left .btn {
    position: relative;
    z-index: 10;
}

.hero-right {
    background: var(--accent);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4rem 1.5rem;
}

/* Illustration graphique mobile */
.hero-graphic {
    width: 100%;
    max-width: 250px;
    height: auto;
}

.hero-graphic circle {
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { r: 100; opacity: 0.3; }
    50% { r: 120; opacity: 0.6; }
}

/* Chiffres énormes en overlay */
.hero-numbers {
    position: absolute;
    font-size: 25rem;
    font-weight: 900;
    color: rgba(10, 75, 160, 0.1);
    font-family: var(--font-display);
    line-height: 0.8;
    right: -5%;
    bottom: -10%;
    pointer-events: none;
}

/* === BOUTONS NEO-BRUTALIST === */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border: var(--border-width-thick) solid var(--dark);
    transition: all var(--transition-fast);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
}

.btn:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

.btn-primary {
    background: var(--white);
    color: var(--dark);
    box-shadow: var(--shadow-md) var(--dark);
}

.btn-primary:hover {
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0 var(--dark);
}

.btn-accent {
    background: var(--accent);
    color: var(--dark);
    box-shadow: var(--shadow-md) var(--dark);
}

.btn-accent:hover {
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0 var(--dark);
}

/* === SECTION VALEURS - MOBILE (1 colonne) === */
.values-section {
    padding: 4rem 1.5rem;
    background: var(--bg);
    position: relative;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.value-card {
    background: var(--white);
    padding: 3rem;
    border: 4px solid var(--dark);
    position: relative;
    transition: transform 0.3s;
}

.value-card:nth-child(1) {
    transform: rotate(0deg);
    background: var(--nature);
    color: white;
}

.value-card:nth-child(2) {
    transform: rotate(0deg);
    margin-top: 0;
}

.value-card:nth-child(3) {
    transform: rotate(0deg);
    background: var(--primary);
    color: white;
}

.value-card:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: var(--shadow-xl) var(--dark);
}

.value-card:focus-within {
    transform: rotate(0deg) scale(1.05);
    box-shadow: var(--shadow-xl) var(--dark);
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

.value-number {
    font-size: 4rem;
    font-weight: 900;
    opacity: 0.1;
    position: absolute;
    top: -1rem;
    right: 1rem;
    font-family: var(--font-display);
}

.value-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-family: var(--font-display);
    position: relative;
    z-index: 2;
}

.value-card p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* === SECTION ARTISTES - MOBILE (1 colonne) === */
.artists-section {
    background: var(--dark);
    color: white;
    padding: 0;
    position: relative;
}

.section-header {
    background: var(--accent);
    padding: 3rem 1.5rem;
    border-bottom: 6px solid var(--dark);
}

.section-header h2 {
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 900;
    font-family: var(--font-display);
    color: var(--dark);
    line-height: 0.9;
    letter-spacing: -3px;
    margin: 0;
}

.artists-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.artist-card {
    position: relative;
    overflow: hidden;
    min-height: 250px;
    border: 3px solid var(--dark);
    cursor: pointer;
    transition: all 0.3s;
    padding: 2rem;
}

.artist-card:hover {
    z-index: 10;
    transform: scale(1.05);
}

.artist-card:nth-child(1) {
    grid-column: span 1;
    grid-row: span 1;
    background: linear-gradient(135deg, #A8D5BA, #2E5E37);
}

.artist-card:nth-child(2) {
    background: linear-gradient(135deg, #89C2D9, #0A4BA0);
}

.artist-card:nth-child(3) {
    background: linear-gradient(135deg, #D4A373, #8B6F47);
}

.artist-card:nth-child(4) {
    grid-column: span 1;
    background: linear-gradient(135deg, #F5C400, #D4A373);
}

.artist-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.artist-badge {
    background: var(--accent);
    color: var(--dark);
    padding: 0.5rem 1rem;
    font-weight: 900;
    display: inline-block;
    margin-bottom: 1rem;
    border: 3px solid var(--dark);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.artist-info h3 {
    font-size: 3rem;
    font-family: var(--font-display);
    margin-bottom: 0.5rem;
    color: white;
}

.artist-info p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
}

/* === TYPOGRAPHIE GÉANTE === */
.big-text-section {
    padding: 10rem 3rem;
    text-align: center;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.big-text-section h2 {
    font-size: clamp(5rem, 15vw, 18rem);
    font-weight: 900;
    font-family: var(--font-display);
    line-height: 0.85;
    color: var(--primary);
    letter-spacing: -8px;
    margin-bottom: 2rem;
}

.big-text-section .highlight {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.big-text-section .highlight::after {
    content: '';
    position: absolute;
    bottom: 0.2em;
    left: 0;
    right: 0;
    height: 0.3em;
    background: var(--accent);
    z-index: -1;
}

/* === FOOTER MOBILE (1 colonne) === */
footer {
    background: var(--dark);
    color: white;
    padding: 4rem 1.5rem 2rem;
    border-top: 6px solid var(--accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 500px;
    margin: 0 auto 2rem;
    text-align: center;
}

.footer-col h4 {
    font-size: 2rem;
    font-family: var(--font-display);
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.footer-col p,
.footer-col li {
    font-size: 1.1rem;
    line-height: 2;
}

.footer-col a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    border-top: 2px solid rgba(255,255,255,0.1);
    opacity: 0.6;
}

/* === VERSION MOBILE UNIQUEMENT === */
/* Pas de media queries desktop - design optimisé pour mobile-first uniquement */

/* === ANIMATIONS === */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.float {
    animation: float 3s ease-in-out infinite;
}
