/* =============================================================================
   AMIDAC — STYLES PROGRAMMES & ACCORDÉONS
   assets/css/programs.css
   
   Palette: Bleu #1A237E, Vert #2E7D32, Vert pale #a5d6a7
   ============================================================================= */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* HERO SECTION */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.amidac-programs-hero {
    position: relative;
    width: 100%;
    min-height: 500px;
    height: 100vh;
    max-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1A237E 0%, #2E7D32 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.50);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 40px;
    text-align: center;
    color: #ffffff;
}

.hero-inner {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background-color: rgba(165, 214, 167, 0.2);
    border: 1px solid rgba(165, 214, 167, 0.5);
    border-radius: 24px;
    margin-bottom: 24px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.9);
    animation: slideInDown 0.8s ease-out;
}

.badge-icon {
    font-size: 16px;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 24px 0;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.6;
    margin: 0 0 16px 0;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-description {
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 40px 0;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.btn-explore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background-color: #a5d6a7;
    color: #1A237E;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #a5d6a7;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(165, 214, 167, 0.3);
}

.btn-explore:hover {
    background-color: #81c784;
    border-color: #81c784;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.btn-explore:active {
    transform: translateY(-1px);
}

.arrow {
    display: inline-block;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.btn-explore:hover .arrow {
    transform: translateY(3px);
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.btn-explore .arrow {
    animation: bounce 2s infinite;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* PROGRAMMES SECTION */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.amidac-programs-section {
    width: 100%;
    padding: 60px 20px;
    background-color: #f8f7f4;
}

.programs-intro {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
}

.programs-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: #1A237E;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.programs-description {
    font-size: 16px;
    color: #555e6d;
    line-height: 1.6;
    margin: 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* ACCORDÉON */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.programs-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.program-accordion-item {
    background-color: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    overflow: hidden;
    transition: all 0.3s ease;
}

.program-accordion-item.active {
    border-color: #2E7D32;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.1);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* HEADER */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.program-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    cursor: pointer;
    background-color: #ffffff;
    transition: background-color 0.3s ease;
    border-left: 4px solid transparent;
    transition: border-color 0.3s ease;
}

.program-accordion-header:hover {
    background-color: #f9f9f9;
    border-left-color: #2E7D32;
}

.program-accordion-item.active .program-accordion-header {
    background-color: #f5f7fa;
    border-left-color: #2E7D32;
}

.header-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
}

.program-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e8f5e9;
    border-radius: 8px;
    margin-top: 2px;
}

.header-text {
    flex: 1;
}

.program-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: #1A237E;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.program-short-desc {
    font-size: 14px;
    color: #888;
    margin: 0;
    line-height: 1.5;
}

.toggle-icon {
    flex-shrink: 0;
    font-size: 20px;
    color: #2E7D32;
    font-weight: bold;
    transition: transform 0.3s ease;
    margin-left: 16px;
}

.program-accordion-item.active .toggle-icon {
    transform: rotate(180deg);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* CONTENU */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.program-accordion-content {
    padding: 0 28px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background-color: #ffffff;
}

.program-accordion-item.active .program-accordion-content {
    padding: 28px 28px;
}

.program-full-desc {
    font-size: 15px;
    color: #555e6d;
    line-height: 1.7;
    margin-bottom: 32px;
}

.program-full-desc p {
    margin: 0 0 12px 0;
}

.program-full-desc p:first-child {
    font-weight: 500;
    color: #1A237E;
}

.program-full-desc ul {
    margin: 12px 0 0 0;
    padding-left: 24px;
    list-style: none;
}

.program-full-desc ul li {
    margin: 8px 0;
    padding-left: 16px;
    position: relative;
}

.program-full-desc ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2E7D32;
    font-weight: bold;
    font-size: 14px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* ZONE PROJETS */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.program-projects-zone {
    margin: 32px 0;
    padding: 28px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #2E7D32;
}

.projects-subtitle {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: #1A237E;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.projects-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* CARTES PROJET */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.project-item {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-item:hover {
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.15);
    transform: translateY(-2px);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f0f0f0;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-item:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 16px;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: #1A237E;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-meta {
    font-size: 13px;
    color: #888;
    margin: 0;
}

.project-item-placeholder {
    grid-column: 1 / -1;
    padding: 40px;
    text-align: center;
    color: #aaa;
}

.text-muted {
    color: #999;
    font-size: 14px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* BOUTON CTA */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.program-cta {
    margin-top: 28px;
    text-align: center;
}

.btn-see-all-projects {
    display: inline-block;
    padding: 12px 28px;
    background-color: #2E7D32;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #2E7D32;
}

.btn-see-all-projects:hover {
    background-color: #1b5e20;
    border-color: #1b5e20;
    transform: translateX(4px);
}

.btn-see-all-projects:active {
    transform: translateX(2px);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* RESPONSIVE */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@media (max-width: 1024px) {
    .amidac-programs-hero {
        min-height: 450px;
        max-height: 600px;
    }

    .hero-title {
        font-size: 44px;
    }

    .hero-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .amidac-programs-hero {
        min-height: 400px;
        max-height: 500px;
    }

    .hero-content {
        padding: 40px 24px;
    }

    .hero-title {
        font-size: 36px;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .hero-description {
        font-size: 14px;
        margin-bottom: 32px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 8px 12px;
    }

    .btn-explore {
        padding: 14px 28px;
        font-size: 15px;
    }

    .amidac-programs-section {
        padding: 40px 16px;
    }

    .programs-title {
        font-size: 28px;
    }

    .programs-description {
        font-size: 15px;
    }

    .program-accordion-header {
        padding: 20px 16px;
    }

    .header-content {
        gap: 12px;
    }

    .program-icon {
        width: 40px;
        height: 40px;
    }

    .program-title {
        font-size: 16px;
    }

    .program-short-desc {
        font-size: 13px;
    }

    .program-accordion-content {
        padding: 0 16px;
    }

    .program-accordion-item.active .program-accordion-content {
        padding: 20px 16px;
    }

    .program-projects-zone {
        padding: 20px;
        margin: 24px 0;
    }

    .projects-grid-2 {
        grid-template-columns: 1fr;
    }

    .program-full-desc {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .programs-intro {
        margin-bottom: 30px;
    }

    .programs-title {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .program-accordion-header {
        padding: 16px 12px;
    }

    .header-content {
        flex-direction: column;
        gap: 8px;
    }

    .program-icon {
        width: 36px;
        height: 36px;
    }

    .toggle-icon {
        margin-left: 0;
    }

    .projects-grid-2 {
        gap: 16px;
    }

    .hero-title {
        font-size: 28px;
    }
}