/* ================================
   VARIABLES & DESIGN SYSTEM
   ================================ */
:root {
    --primary-color: #8B5CF6;
    --secondary-color: #EC4899;
    --accent-color: #F59E0B;
    --dark-bg: #1F2937;
    --light-bg: #F9FAFB;
    --text-dark: #111827;
    --text-light: #6B7280;
    --border-color: #E5E7EB;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    
    --font-primary: 'Poppins', sans-serif;
    --font-display: 'Playfair Display', serif;
}

/* ================================
   RESET & GENERAL STYLES
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: white;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ================================
   TYPOGRAPHY
   ================================ */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* ================================
   BUTTONS
   ================================ */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* ================================
   NAVIGATION
   ================================ */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo .logo-text {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    display: inline-block;
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.logo:hover .logo-text {
    transform: rotate(0deg) scale(1.03);
}

.logo-mark {
    -webkit-text-fill-color: var(--accent-color);
    color: var(--accent-color);
}

.logo-brush {
    display: inline-block;
    width: 22px;
    height: 8px;
    border-radius: 50% 50% 50% 10% / 100% 100% 100% 60%;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    opacity: 0.85;
    transform: rotate(-4deg);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding-bottom: 6px;
    transition: var(--transition);
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-links a:hover {
    -webkit-text-fill-color: var(--accent-color);
    color: var(--accent-color);
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-cta {
    margin-left: 2rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    z-index: 1100;
    padding: 8px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

body.nav-open {
    overflow: hidden;
}

/* ================================
   HERO SECTION
   ================================ */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 4rem 40px;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.hero-location {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-quote {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-style: italic;
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-light);
}

.hero-image-container {
    position: relative;
}

.hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.hero-badge {
    position: absolute;
    bottom: -20px;
    left: 20px;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 280px;
}

.badge-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.badge-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
}

.badge-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

/* ================================
   METHODE SECTION (8 PILLARS)
   ================================ */
.methode {
    padding: 4rem 0;
    background: var(--light-bg);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pillar-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
}

.pillar-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.pillar-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.pillar-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
}

/* ================================
   GALLERY SECTION
   ================================ */
.gallery-section {
    padding: 4rem 0;
}

.gallery-viewport {
    margin-top: 3rem;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
    mask-image: linear-gradient(to right, transparent, black 3%, black 97%, transparent);
}

.gallery-grid {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: gallery-marquee 50s linear infinite;
}

.gallery-viewport:hover .gallery-grid,
.gallery-viewport:focus-within .gallery-grid {
    animation-play-state: paused;
}

@keyframes gallery-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-grid {
        animation: none;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex: 0 0 280px;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
    transform: scale(1.06);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1.2rem;
    background: linear-gradient(to top, rgba(17, 24, 39, 0.75) 0%, rgba(17, 24, 39, 0) 55%);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay,
.gallery-item:focus-visible .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ================================
   CONTACT SECTION
   ================================ */
.contact {
    padding: 4rem 0;
    background: var(--light-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.contact-info {
    padding: 2rem 0;
}

.contact-info h3 {
    margin-bottom: 2rem;
}

.info-item {
    margin-bottom: 2rem;
}

.info-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.info-item p {
    color: var(--text-light);
    margin: 0;
}

.info-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.info-item a:hover {
    text-decoration: underline;
}

/* ================================
   MAP / LOCALISATION
   ================================ */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    line-height: 0;
}

.map-directions-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

/* ================================
   COOKIE BANNER
   ================================ */
.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: -120px;
    z-index: 2000;
    max-width: 720px;
    margin: 0 auto;
    background: var(--dark-bg);
    color: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    padding: 1.25rem 1.5rem;
    opacity: 0;
    transition: bottom 0.4s ease, opacity 0.4s ease;
}

.cookie-banner.visible {
    bottom: 20px;
    opacity: 1;
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1 1 380px;
}

.cookie-banner a {
    color: var(--accent-color);
    text-decoration: underline;
}

.cookie-banner-actions {
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        padding: 1rem;
    }

    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .cookie-banner-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* ================================
   LEGAL PAGES
   ================================ */
.legal-page {
    padding: 3rem 0 5rem;
}

.legal-content {
    max-width: 780px;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.legal-updated {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
}

.legal-content h2 {
    font-size: 1.4rem;
    text-align: left;
    margin: 2.5rem 0 1rem;
    scroll-margin-top: 100px;
}

.legal-content ul {
    margin: 0 0 1rem 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--primary-color);
}

.legal-back {
    margin-top: 3rem;
}

.legal-back a {
    font-weight: 600;
    text-decoration: none;
}

.legal-back a:hover {
    text-decoration: underline;
}

/* ================================
   FOOTER
   ================================ */
.footer {
    background: var(--dark-bg);
    color: rgba(255, 255, 255, 0.75);
    border-top: 3px solid;
    border-image: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color)) 1;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding: 4rem 40px 3rem;
}

.footer-col h4 {
    font-family: var(--font-primary);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: white;
    margin-bottom: 0.75rem;
}

.footer-tagline {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    max-width: 320px;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links li {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-hours li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.footer-hours li span:first-child {
    color: rgba(255, 255, 255, 0.45);
}

.footer-hours li span:last-child {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-3px);
}

.social-links svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1.5rem 40px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-inner p {
    margin: 0;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* ================================
   SECTION HELPERS
   ================================ */
section {
    padding: 4rem 0;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: -2.5rem auto 2rem;
}

/* ================================
   LIGHTBOX MODAL
   ================================ */
#lightbox {
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    max-width: 92vw;
    max-height: 92vh;
}

.lightbox-close,
.lightbox-nav {
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.lightbox-close {
    position: absolute;
    top: -48px;
    right: 0;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
}

.lightbox-close:hover {
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
}

.lightbox-nav:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    margin: 0;
}

@media (max-width: 640px) {
    .lightbox-close {
        top: -40px;
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .lightbox-nav {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }

    .lightbox-prev {
        left: 6px;
    }

    .lightbox-next {
        right: 6px;
    }

    .lightbox-counter {
        bottom: -30px;
        font-size: 0.8rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: white;
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.08);
        max-height: 80vh;
        overflow-y: auto;
        z-index: 1050;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 1rem 40px;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links a::after {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
        margin-left: auto;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 2rem 40px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-image {
        height: 300px;
    }
    
    .hero-badge {
        bottom: -30px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item {
        flex-basis: 220px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        padding: 3rem 40px 2rem;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .navbar .container {
        padding: 1rem 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-quote {
        font-size: 1rem;
    }
    
    .hero {
        padding: 2rem 15px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-badge {
        max-width: calc(100% - 20px);
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
        padding: 2.5rem 15px 2rem;
        gap: 2rem;
    }

    .footer-bottom-inner {
        padding: 1.5rem 15px;
    }
}

/* ================================
   PRINT STYLES
   ================================ */
@media print {
    .navbar,
    .auth-modal {
        display: none;
    }
}
