:root {
    --primary: #0ea5e9; /* Vibrant sky blue for vacation and joy */
    --primary-hover: #0284c7;
    --primary-light: #e0f2fe;
    --dark: #1e293b;
    --dark-muted: #475569;
    --light: #f8fafc;
    --gray-bg: #f1f5f9;
    --white: #ffffff;
    
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Playfair Display', serif;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Admin Layout (Sidebar style) */
.admin-layout {
    display: flex;
    min-height: 100vh;
}
.admin-sidebar {
    width: 260px;
    background: var(--dark);
    color: var(--white);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}
.admin-sidebar .logo {
    color: var(--white) !important;
    margin-bottom: 2.5rem;
    display: block;
    font-size: 1.5rem;
}
.admin-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.admin-nav li {
    margin-bottom: 0.5rem;
}
.admin-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    color: #a1a1aa;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}
.admin-nav a:hover, .admin-nav a.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}
.admin-main {
    flex: 1;
    padding: 2rem 3rem;
    background-color: var(--gray-bg);
    overflow-y: auto;
}
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}
.tab-content.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    font-weight: 800;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.text-accent { color: var(--primary); }
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.w-full { width: 100%; }
.bg-light { background-color: var(--gray-bg); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--dark);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled .logo, 
.navbar.scrolled .nav-links a:not(.btn) {
    color: var(--dark);
}

.navbar.scrolled .btn-outline {
    color: var(--primary);
    border-color: var(--primary);
}

.navbar.scrolled .btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--white);
    margin: 5px 0;
    transition: var(--transition);
}

.navbar.scrolled .mobile-menu-btn span {
    background-color: var(--dark);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    padding: 2rem;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu .mobile-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    margin: 1rem 0;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    padding: 0 2rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: slowZoom 20s ease-out infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(30, 30, 36, 0.6) 0%, rgba(30, 30, 36, 0.8) 100%);
}

.hero-content {
    max-width: 800px;
    z-index: 1;
    animation: fadeInUp 1s ease-out forwards;
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: clamp(1.125rem, 2vw, 1.35rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-inline: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

/* Mission Section */
.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.lead {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}

.mission-text p:not(.lead) {
    margin-bottom: 2rem;
}

.stats-container {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    position: relative;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1rem;
    width: 4px;
    height: 100%;
    background-color: var(--primary);
    border-radius: 4px;
}

.stat-number {
    font-size: 2.5rem;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 3rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.image-card {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, #38bdf8 100%);
    color: var(--white);
    border: none;
    overflow: hidden;
}

.image-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" stroke="rgba(255,255,255,0.1)" stroke-width="2" fill="none"/></svg>') repeat;
    opacity: 0.5;
    z-index: 0;
}

.quote-icon {
    font-family: var(--font-heading);
    font-size: 6rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: -2rem;
    position: relative;
    z-index: 1;
}

.quote-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.quote-author {
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

/* Actions Section */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.action-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #38bdf8 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.action-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.action-card:hover::before {
    transform: scaleX(1);
}

.action-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: var(--primary-light);
    border-radius: 16px;
}

.action-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-card {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background: var(--white);
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.contact-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.icon-box {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--dark);
}

.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--gray-bg);
}

.form-group input:not([type="checkbox"]):not([type="radio"]):focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 4rem 0 2rem 0;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    max-width: 400px;
    margin: 0 auto 3rem auto;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Animations */
@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 992px) {
    .mission-grid, .contact-card {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-card {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .glass-card {
        padding: 1.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Adhesion Highlight */
.adhesion-highlight { border: 2px solid var(--primary); box-shadow: 0 0 20px rgba(14, 165, 233, 0.3); transition: var(--transition); }
.adhesion-highlight:hover { box-shadow: 0 0 30px rgba(14, 165, 233, 0.5); transform: translateY(-5px); }


/* Mobile layout utilities for alternating blocks */
@media (max-width: 992px) {
    .order-1-mobile { order: 1; }
    .order-2-mobile { order: 2; }
}

/* Subscription Tabs & Cards */
.donate-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.tab-btn {
    padding: 0.75rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    background: transparent;
    border: 2px solid #e2e8f0;
    color: var(--dark-muted);
    transition: var(--transition);
}
.tab-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
}
.donate-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}
.donate-panel.active {
    display: block;
}
.subs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}
.sub-card {
    background: var(--white);
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.sub-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}
.sub-card.popular {
    border-color: var(--primary);
    box-shadow: 0 10px 25px -5px rgba(14, 165, 233, 0.2);
}
.sub-card.popular::before {
    content: 'Recommandé';
    position: absolute;
    top: 15px;
    right: -35px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 35px;
    transform: rotate(45deg);
}
.sub-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-weight: 800;
}
.sub-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: baseline;
}
.sub-price span {
    font-size: 1rem;
    color: var(--dark-muted);
    font-weight: 600;
    margin-left: 0.2rem;
}
.sub-features {
    text-align: left;
    margin-bottom: 2rem;
    flex-grow: 1;
}
.sub-features li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--dark-muted);
}
.sub-features li::before {
    content: '✓';
    color: #10b981;
    font-weight: bold;
}
.sub-action {
    margin-top: auto;
}

/* Responsive adjustments for Don, Benevolat, and Agenda */
@media (max-width: 576px) {
    .donate-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    .tab-btn {
        width: 100%;
        font-size: 1rem;
        padding: 0.8rem;
        white-space: normal;
        height: auto;
    }
    .subs-grid {
        grid-template-columns: 1fr;
    }
    .sub-card {
        padding: 1.5rem 1rem;
    }
    .fc .fc-toolbar {
        flex-direction: column;
        gap: 0.5rem;
    }
    .fc .fc-toolbar-title {
        font-size: 1.2rem !important;
    }
    #calendar {
        padding: 0.5rem !important;
    }
    .submit-form, .contact-form {
        padding: 2rem 1rem !important;
        margin: 0 -1rem !important;
        border-radius: 0 !important;
        width: calc(100% + 2rem) !important;
        max-width: none !important;
        border-left: none !important;
        border-right: none !important;
        box-shadow: none !important;
        border-top: 1px solid #e2e8f0;
        border-bottom: 1px solid #e2e8f0;
    }
    .modal-content {
        padding: 1.5rem 1rem !important;
        border-radius: 0 !important;
        width: 100% !important;
        max-width: none !important;
        margin: auto 0 0 0 !important;
    }

    .form-group input:not([type="checkbox"]):not([type="radio"]),
    .form-group textarea,
    .form-group select {
        width: calc(100% + 2rem) !important;
        margin-left: -1rem !important;
        margin-right: -1rem !important;
        border-left: none !important;
        border-right: none !important;
        border-radius: 0 !important;
    }
    .form-group input:not([type="checkbox"]):not([type="radio"]):focus,
    .form-group textarea:focus,
    .form-group select:focus {
        box-shadow: none !important;
        border-left: none !important;
        border-right: none !important;
    }

    .glass-card, .action-card, .contact-card, .sub-card, .project-card, .admin-card {
        margin-left: -1rem !important;
        margin-right: -1rem !important;
        width: calc(100% + 2rem) !important;
        max-width: none !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }
}


/* Fix long text overflow on mobile */
.contact-info, .contact-list li div, .contact-list, p, a, div {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Additional mobile layout fixes */
iframe { max-width: 100%; }
@media (max-width: 768px) {
    .container { padding: 0 1rem; }
    .contact-card { padding: 1.5rem; }
}
@media (max-width: 480px) {
    .container { padding: 0 0.5rem; }
    .contact-card, .glass-card { padding: 1rem; }
}
