/* Programme Page Styles - Version Premium */

:root {
    --gradient-kodesh: linear-gradient(135deg, #1a5490 0%, #2563eb 50%, #3b82f6 100%);
    --gradient-hol: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #fbbf24 100%);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.15);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Hero Section Premium */
.programme-hero {
    background: linear-gradient(135deg, rgba(26, 84, 144, 0.92) 0%, rgba(37, 99, 235, 0.85) 100%),
                url('../images/aron_hakodesh.webp') center/cover;
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.programme-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.programme-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, white 0%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.programme-hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.programme-hero .subtitle {
    font-size: 1.8rem;
    opacity: 0.95;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.4;
}

/* Premium Stats Section */
.stats-section {
    background: transparent;
    padding: 60px 0;
    position: relative;
    margin-top: -50px;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-kodesh);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    background: var(--gradient-kodesh);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 1.2rem;
    color: #666;
    font-weight: 500;
}

/* Main Programme Section */
.programme-content {
    padding: 100px 0;
    background: transparent;
    position: relative;
}

/* Suppression du background overlay pour laisser apparaître le background global */
.programme-content::before {
    display: none;
}

/* Programme Intro */
.programme-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 80px;
}

.section-title {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-hol);
    border-radius: 2px;
}

.lead {
    font-size: 1.3rem;
    color: #555;
    line-height: 1.8;
    margin-top: 30px;
}

/* Double Programme Premium */
.double-programme {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 80px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Programme Cards Premium */
.programme-card {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    transform-style: preserve-3d;
}

.programme-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-kodesh);
}

.programme-card.hol::before {
    background: var(--gradient-hol);
}

.programme-card:hover {
    transform: translateY(-15px) rotateX(2deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

/* Card Headers Premium - Enhanced */
.programme-header {
    padding: 34px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-attachment: fixed;
}

.programme-header.kodesh {
    background: var(--gradient-kodesh);
    color: white;
}

.programme-header.hol {
    background: var(--gradient-hol);
    color: var(--primary-color);
}

/* Header Pattern Background */
.header-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.05) 50%, transparent 60%);
    animation: headerFloat 6s ease-in-out infinite;
}

@keyframes headerFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.7; }
    50% { transform: translateY(-10px) scale(1.05); opacity: 1; }
}

/* Header Icon */
.header-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    display: inline-block;
    animation: iconPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.programme-header h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.programme-header .hebrew {
    font-size: 2.2rem;
    font-family: 'David Libre', serif;
    opacity: 0.95;
    display: block;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.header-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-top: 10px;
    position: relative;
    z-index: 2;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Card Content Premium */
.programme-body {
    padding: 50px;
}

.programme-description {
    font-size: 1.2rem;
    line-height: 1.9;
    color: #444;
    margin-bottom: 40px;
    text-align: justify;
}

/* Features Grid */
.features-grid {
    display: grid;
    gap: 25px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2rem;
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-content h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.feature-content p {
    color: #666;
    line-height: 1.6;
}

/* Subjects Grid Premium */
.subjects-section {
    margin-top: 50px;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 25px;
}

.subjects-section h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.subject-pill {
    background: white;
    padding: 15px 25px;
    border-radius: 50px;
    text-align: center;
    font-weight: 500;
    color: #555;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.subject-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--gold-color);
    color: var(--primary-color);
}

/* Moussar Section */
.moussar-section {
    margin-top: 50px;
    padding: 40px;
    background: linear-gradient(135deg, #f0f4f8 0%, #e3e9f3 100%);
    border-radius: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.moussar-section::before {
    content: '📖';
    position: absolute;
    font-size: 100px;
    opacity: 0.05;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.moussar-section h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.moussar-section p {
    font-size: 1.15rem;
    color: #555;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* Niveau Section */
.niveau-section {
    margin-top: 30px;
    padding: 40px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 25px;
    border: 2px solid rgba(26, 84, 144, 0.1);
}

.niveau-section h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.niveau-section p {
    font-size: 1.15rem;
    color: #555;
    line-height: 1.8;
    text-align: justify;
}

/* Director Section Premium - Enhanced */
.director-section {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 40px;
    border-radius: 25px;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.director-title-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(26, 84, 144, 0.1);
    position: relative;
}

.director-title-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--gradient-hol);
    border-radius: 1px;
}

.director-title-header h4 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.director-profile {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 10px;
    margin-bottom: 25px;
}

.director-photo {
    flex-shrink: 0;
}

.director-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: contain;
    background-color: white;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.15),
        0 0 0 4px white,
        0 0 0 6px rgba(26, 84, 144, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.director-photo img:hover {
    transform: scale(1.05);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.2),
        0 0 0 4px white,
        0 0 0 8px rgba(255, 215, 0, 0.4);
}

.director-name-only {
    flex: 1;
}

.director-name {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
    position: relative;
    display: inline-block;
}

.director-name::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-hol);
    border-radius: 2px;
    transform: scaleX(0.8);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.director-name-only:hover .director-name::after {
    transform: scaleX(1);
}

.director-description-full {
    margin-top: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(26, 84, 144, 0.1);
}

.director-description {
    color: #555;
    line-height: 1.8;
    font-size: 1.1rem;
    margin: 0;
    text-align: justify;
    width: 100%;
}

/* Planning Section Ultra Premium - Enhanced */
.planning-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    background: transparent;
}

/* Suppression du motif de fond pour laisser apparaître le background global */
.planning-bg-pattern {
    display: none;
}

/* Planning Wrapper with Beautiful Border */
.planning-wrapper {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 30px;
    padding: 60px 40px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(26, 84, 144, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 3px solid transparent;
    background-clip: padding-box;
    margin: 30px auto;
}

.planning-wrapper::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, 
        var(--gradient-kodesh) 0%, 
        var(--gradient-hol) 50%, 
        var(--gradient-kodesh) 100%);
    border-radius: 33px;
    z-index: -1;
    animation: borderGlow 4s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.01); }
}

/* Suppression du background overlay */
.planning-wrapper::after {
    display: none;
}

.planning-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.title-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: inline-block;
    animation: iconFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.planning-title h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.planning-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: var(--gradient-hol);
    border-radius: 2px;
}

.title-decoration {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-color) 50%, transparent 100%);
    margin: 20px auto;
    border-radius: 1px;
}

.planning-title p {
    font-size: 1.3rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 300;
}

/* Modern Timeline Design */
.timeline-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Deux colonnes pour le planning - Enhanced */
.timeline-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 20px;
}

/* Container pour chaque partie de la journée */
.timeline-morning, .timeline-afternoon {
    display: grid;
    gap: 10px;
}

/* Titres des sections matin/après-midi */
.timeline-morning::before, .timeline-afternoon::before {
content: 'Matin';
font-size: 1.4rem;
font-weight: 600;
color: var(--primary-color);
padding: 15px 0;
text-align: center;
margin-bottom: 15px;
border-bottom: 3px solid rgba(26, 84, 144, 0.2);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.timeline-afternoon::before {
    content: 'Après-midi';
}



.time-slot {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 15px;
    align-items: center;
    position: relative;
}

.time-badge {
    background: var(--gradient-kodesh);
    color: white;
    padding: 10px 15px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    box-shadow: 0 3px 10px rgba(26, 84, 144, 0.3);
    position: relative;
    z-index: 2;
}

.activity-wrapper {
    position: relative;
}

.activity-card {
    background: white;
    padding: 12px 20px;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 5px;
    background: var(--gradient-kodesh);
}

.activity-card.hol::before {
    background: var(--gradient-hol);
}

.activity-card.tefila::before {
    background: linear-gradient(180deg, #8e44ad 0%, #9b59b6 100%);
}

.activity-card.repas::before {
    background: linear-gradient(180deg, #e74c3c 0%, #c0392b 100%);
}

.activity-card.pause::before {
    background: linear-gradient(180deg, #27ae60 0%, #229954 100%);
}

.activity-card:hover {
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.activity-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.activity-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
}

.activity-info {
    flex: 1;
}

.activity-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.activity-details {
    font-size: 1rem;
    color: #666;
    font-style: italic;
}

.activity-lieu {
    font-size: 0.95rem;
    color: #999;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Connection Lines */
.time-slot:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 45px;
    top: 100%;
    bottom: -20px;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--gold-color) 100%);
    opacity: 0.3;
}

/* Excellence Banner */
.excellence-banner {
    background: var(--gradient-kodesh);
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
    margin-top: 60px;
}

.excellence-banner::before,
.excellence-banner::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.excellence-banner::before {
    top: -250px;
    left: -250px;
}

.excellence-banner::after {
    bottom: -250px;
    right: -250px;
}

.excellence-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.excellence-banner h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.excellence-banner p {
    font-size: 1.4rem;
    line-height: 1.8;
    opacity: 0.95;
    margin-bottom: 40px;
}

/* Removed excellence-stats section */

.excellence-stat {
    text-align: center;
}

.excellence-number {
    font-size: 4rem;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.excellence-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .double-programme {
        gap: 30px;
    }
    
    .programme-header {
        padding: 26px 30px;
    }
    
    .programme-body {
        padding: 40px 30px;
    }
    
    .planning-wrapper {
        padding: 50px 30px;
    }
}

@media (max-width: 768px) {
    .programme-hero h1 {
        font-size: 2.5rem;
    }
    
    .programme-hero .subtitle {
        font-size: 1.3rem;
    }
    
    .double-programme {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .programme-header {
        padding: 23px 25px;
    }
    
    .programme-header h2 {
        font-size: 2.2rem;
    }
    
    .header-icon {
        font-size: 3rem;
    }
    
    .programme-body {
        padding: 30px 25px;
    }
    
    /* Timeline responsive - Stack vertically */
    .timeline-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .time-slot {
        grid-template-columns: 80px 1fr;
        gap: 12px;
    }
    
    .time-badge {
        padding: 8px 12px;
        font-size: 1rem;
    }
    
    .activity-title {
        font-size: 1.1rem;
    }
    
    .director-profile {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .director-photo {
        margin-bottom: 5px;
    }
    
    .director-name::after {
        left: 50%;
        transform: translateX(-50%) scaleX(0.8);
    }
    
    .director-name-only:hover .director-name::after {
        transform: translateX(-50%) scaleX(1);
    }
    
    .director-description-full {
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .planning-section {
        padding: 60px 0;
    }
    
    .planning-wrapper {
        padding: 40px 20px;
        margin: 0 15px;
        border-radius: 20px;
    }
    
    .planning-title h2 {
        font-size: 2.2rem;
    }
    
    .title-icon {
        font-size: 3rem;
    }
    
    .subjects-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .features-grid {
        gap: 20px;
    }
    
    .feature-item {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .programme-header {
        padding: 19px 20px;
    }
    
    .programme-header h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .header-icon {
        font-size: 2.5rem;
    }
    
    .programme-body {
        padding: 25px 20px;
    }
    
    .time-slot {
        grid-template-columns: 70px 1fr;
        gap: 10px;
    }
    
    .time-badge {
        padding: 6px 8px;
        font-size: 0.9rem;
    }
    
    .activity-card {
        padding: 10px 15px;
    }
    
    .activity-title {
        font-size: 1rem;
    }
    
    .planning-wrapper {
        padding: 30px 15px;
        margin: 0 10px;
    }
    
    .planning-title h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
}