/* Home Page Styles */

/* Main Programs Section */
.main-programs-section {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, 
        rgba(var(--nav-base-rgb), 0.05) 0%, 
        rgba(var(--nav-mid-rgb), 0.05) 50%, 
        rgba(var(--nav-accent-rgb), 0.05) 100%);
}

.main-programs-container {
    max-width: 1400px;
    margin: 0 auto;
}

.title-with-badges {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    min-height: 80px;
    padding: 0 150px;
}

.main-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
    z-index: 2;
    position: relative;
}

.service-badge {
    position: absolute;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0 20px 20px 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    animation: pulse 2s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
    white-space: nowrap;
}

.service-badge-left {
    left: 0;
    top: 0;
    transform: rotate(-15deg);
}

.service-badge-right {
    right: 0;
    top: 0;
    transform: rotate(15deg);
}

.service-badge:hover {
    transform: rotate(-15deg) scale(1.1);
    box-shadow: 0 6px 18px rgba(255, 107, 53, 0.6);
}

.service-badge-right:hover {
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 6px 18px rgba(255, 107, 53, 0.6);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .title-with-badges {
        padding: 0 120px;
    }
    .main-title {
        font-size: 2.4rem;
    }
    .service-badge {
        font-size: 0.65rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 768px) {
    .title-with-badges {
        padding: 0 80px;
        flex-direction: column;
        gap: 1rem;
    }
    .main-title {
        font-size: 2rem;
        order: 2;
    }
    .service-badge-left {
        order: 1;
        position: relative;
        left: auto;
        top: auto;
        transform: rotate(-5deg);
    }
    .service-badge-right {
        order: 3;
        position: relative;
        right: auto;
        top: auto;
        transform: rotate(5deg);
    }
}

@media (max-width: 480px) {
    .title-with-badges {
        padding: 0 20px;
    }
    .main-title {
        font-size: 1.6rem;
    }
    .service-badge {
        font-size: 0.6rem;
        padding: 0.3rem 0.6rem;
    }
}

.intro-text {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.main-programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Main Program Cards */
.main-program-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.main-program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(0,0,0,0.15);
    border-color: rgba(var(--nav-accent-rgb), 0.3);
}

.main-program-card.featured {
    background: linear-gradient(135deg, 
        rgba(var(--nav-base-rgb), 0.02) 0%, 
        rgba(var(--nav-accent-rgb), 0.02) 100%);
    border-color: rgba(var(--nav-accent-rgb), 0.2);
}

.program-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.program-image img,
.program-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-program-card:hover .program-image img,
.main-program-card:hover .program-image video {
    transform: scale(1.05);
}

.program-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.program-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.program-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.program-content .program-button {
    margin-top: auto;
    align-self: center;
}

/* NOUVEAU Badge - Style Performance 2 */
.nouveau-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0 20px 20px 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    animation: pulse 2s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    transform: rotate(-5deg);
}

.nouveau-badge:hover {
    transform: rotate(-5deg) scale(1.1);
    box-shadow: 0 6px 18px rgba(255, 107, 53, 0.6);
}

@keyframes pulse {
    0% { transform: rotate(-5deg) scale(1); }
    50% { transform: rotate(-5deg) scale(1.05); }
    100% { transform: rotate(-5deg) scale(1); }
}

.program-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature {
    background: rgba(var(--nav-accent-rgb), 0.1);
    color: var(--primary-medium);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.program-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 240px;
    text-align: center;
    background: linear-gradient(120deg,
        rgba(var(--nav-mid-rgb), 1),
        rgba(var(--nav-accent-rgb), 1));
    color: #fff;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    font-size: 1rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: 0.2px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    box-shadow: 0 6px 18px rgba(18, 57, 90, 0.18);
}

.program-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(18, 57, 90, 0.25);
}

.program-button:active {
    transform: translateY(0);
}

.program-button:focus-visible {
    outline: 3px solid rgba(var(--nav-accent-rgb), 0.35);
    outline-offset: 2px;
}

/* Call to Action Section */
.cta-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, 
        rgba(var(--nav-base-rgb), 0.02) 0%, 
        rgba(var(--nav-accent-rgb), 0.02) 100%);
    text-align: center;
}

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

.camps-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 2.25rem;
    background: linear-gradient(120deg,
        rgba(var(--nav-mid-rgb), 1),
        rgba(var(--nav-accent-rgb), 1));
    color: white;
    text-decoration: none;
    border-radius: 9999px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    box-shadow: 0 8px 25px rgba(18, 57, 90, 0.22);
    position: relative;
}

.camps-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(18, 57, 90, 0.28);
}

.camps-cta-button:active { transform: translateY(0); }
.camps-cta-button:focus-visible {
    outline: 3px solid rgba(var(--nav-accent-rgb), 0.35);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .program-button, .camps-cta-button { transition: box-shadow 0.18s ease; }
  .program-button:hover, .program-button:active,
  .camps-cta-button:hover, .camps-cta-button:active { transform: none; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.2rem;
    }
    
    .intro-text {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }
    
    .main-programs-section,
    .cta-section {
        padding: 2rem 1rem;
    }
    
    .main-programs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .camps-cta-button {
        font-size: 1rem;
        padding: 1rem 2.5rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.8rem;
    }
    
    .intro-text {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }
    
    .program-content {
        padding: 1.5rem;
    }
    
    .camps-cta-button {
        font-size: 0.95rem;
        padding: 0.9rem 2rem;
    }
}

/* Newsletter Popup */
.newsletter-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.newsletter-popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.popup-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 450px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(50px);
    transition: all 0.3s ease;
}

.newsletter-popup.show .popup-content {
    transform: scale(1) translateY(0);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: #f5f5f5;
    color: #333;
}

.popup-header {
    text-align: center;
    margin-bottom: 2rem;
}

.popup-logo {
    height: 50px;
    margin-bottom: 1rem;
}

.popup-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.popup-header p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.95rem;
}

.popup-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-input:focus {
    outline: none;
    border-color: rgba(var(--nav-accent-rgb), 0.6);
    background: white;
    box-shadow: 0 0 0 4px rgba(var(--nav-accent-rgb), 0.1);
}

.popup-submit-btn {
    padding: 1rem 2rem;
    background: linear-gradient(120deg, 
        rgba(var(--nav-base-rgb), 1), 
        rgba(var(--nav-mid-rgb), 1), 
        rgba(var(--nav-accent-rgb), 0.9));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.popup-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--nav-base-rgb), 0.3);
    background: linear-gradient(120deg, 
        rgba(var(--nav-mid-rgb), 1), 
        rgba(var(--nav-accent-rgb), 1), 
        rgba(var(--nav-accent-rgb), 0.8));
}

.popup-disclaimer {
    font-size: 0.8rem;
    color: #999;
    text-align: center;
    line-height: 1.4;
    margin-top: 0.5rem;
}

/* Responsive pour popup */
@media (max-width: 480px) {
    .popup-content {
        padding: 2rem 1.5rem;
        border-radius: 15px;
    }
    
    .popup-header h3 {
        font-size: 1.5rem;
    }
    
    .form-input {
        padding: 0.9rem 1rem;
    }
}
