/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1D1D1D;
    background-color: #ffffff;
}

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

/* ========== MOBILE FIRST ========== */

/* Navigation - Mobile */
.navbar {
    background-color: #1D1D1D;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: bold;
}

/* Hamburger Menu */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translateY(11px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translateY(-11px);
}

/* Navigation Links - Mobile */
.nav-links {
    display: none;
    list-style: none;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #1D1D1D;
    padding: 1.5rem 20px;
    border-bottom: 2px solid #D33436;
}

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

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

.nav-links a:hover {
    color: #D33436;
}

/* Hero Section - Mobile */
.hero {
    position: relative;
    color: #ffffff;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/images/hero-office.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
}

.hero-image {
    display: none;
}

.hero h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 10px;
    display: inline-block;
}

.hero p {
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 10px;
}

/* Formations Section - Mobile */
.formations {
    padding: 2rem 0;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.formations::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -150px;
    width: 280px;
    height: 280px;
    background-image: url('./assets/images/koi-black-vertical.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}

.formations::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -120px;
    width: 300px;
    height: 300px;
    background-image: url('./assets/images/koi-red-vertical.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}

.formations > .container::before {
    content: '';
    position: absolute;
    bottom: 100px;
    left: -180px;
    width: 350px;
    height: 350px;
    background-image: url('./assets/images/koi-three.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.07;
    z-index: 0;
    pointer-events: none;
}

.formations > .container::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -140px;
    width: 300px;
    height: 300px;
    background-image: url('./assets/images/koi-red-vertical.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.09;
    z-index: 0;
    pointer-events: none;
}

.formations .container {
    position: relative;
    z-index: 1;
}

.formations > .container > h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #1D1D1D;
}

/* Tabs Navigation */
.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 200px;
}

.tab-btn.tab-corporate {
    background-color: #e0e0e0;
    color: #1D1D1D;
    border-radius: 5px 0 0 5px;
}

.tab-btn.tab-corporate.active {
    background-color: #1D1D1D;
    color: #ffffff;
}

.tab-btn.tab-ecoles {
    background-color: #e0e0e0;
    color: #1D1D1D;
    border-radius: 0 5px 5px 0;
}

.tab-btn.tab-ecoles.active {
    background-color: #D33436;
    color: #ffffff;
}

.tab-btn:hover:not(.active) {
    background-color: #c0c0c0;
}

/* Category Sections */
.formations-category {
    display: none;
}

.formations-category.active {
    display: block;
}

.formations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.formation-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Entreprise Cards - Noir */
.card-corporate {
    border: 2px solid #1D1D1D;
}

.card-corporate:hover,
.card-corporate:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(29, 29, 29, 0.3);
}

.card-corporate .card-image {
    background-color: #1D1D1D;
}

.card-corporate .card-content h3 {
    color: #1D1D1D;
}

/* Enseignement supérieur Cards - Rouge */
.card-ecoles {
    border: 2px solid #D33436;
}

.card-ecoles:hover,
.card-ecoles:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(211, 52, 54, 0.3);
}

.card-ecoles .card-image {
    background-color: #D33436;
}

.card-ecoles .card-content h3 {
    color: #D33436;
}

.card-image {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 1.2rem;
}

.card-content h3 {
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.card-content p {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.duration, .prerequisites {
    color: #1D1D1D;
    font-size: 0.85rem;
}

.description {
    margin-top: 0.8rem;
    color: #555;
    font-size: 0.9rem;
}

/* Formation Tags */
.formation-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.formation-tag {
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

.card-corporate .formation-tag {
    background-color: rgba(29, 29, 29, 0.1);
    color: #1D1D1D;
    border: 1px solid #1D1D1D;
}

.card-ecoles .formation-tag {
    background-color: rgba(211, 52, 54, 0.1);
    color: #D33436;
    border: 1px solid #D33436;
}

/* About Section - Mobile */
.about {
    padding: 2.5rem 0;
    background-color: #ffffff;
    color: #1D1D1D;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 80px;
    left: -130px;
    width: 270px;
    height: 270px;
    background-image: url('./assets/images/koi-red-vertical.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

.about::after {
    content: '';
    position: absolute;
    bottom: 50px;
    right: -140px;
    width: 300px;
    height: 300px;
    background-image: url('./assets/images/koi-black-vertical.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.09;
    z-index: 0;
    pointer-events: none;
}

.about > .container::before {
    content: '';
    position: absolute;
    bottom: 150px;
    left: -220px;
    width: 400px;
    height: 400px;
    background-image: url('./assets/images/koi-three.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}

.about > .container::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -150px;
    width: 320px;
    height: 320px;
    background-image: url('./assets/images/koi-red-vertical.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}


.about .container {
    position: relative;
    z-index: 1;
}

.about h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #D33436;
}

.about-intro,
.about-team,
.about-vision {
    max-width: 900px;
    margin: 0 auto 3rem;
    position: relative;
}

.about-intro {
    background-color: rgba(211, 52, 54, 0.08);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #D33436;
    overflow: hidden;
}

.about-intro p:first-child {
    font-weight: 500;
    font-size: 1.05rem;
}

.about-intro > *,
.about-team > *,
.about-vision > * {
    position: relative;
    z-index: 1;
}

.about-team {
    overflow: hidden;
}

.about-vision {
    overflow: hidden;
}

.about p {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #1D1D1D;
}

.about ul {
    color: #1D1D1D;
}

.about ul {
    list-style: none;
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.about ul li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
}

.about ul li {
    color: #1D1D1D;
}

.about ul li::before {
    content: "•";
    color: #D33436;
    position: absolute;
    left: 0;
}

.about-team h3 {
    color: #D33436;
    font-size: 1.6rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.about-vision h3 {
    color: #D33436;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Team Member Cards */
.team-member {
    background-color: rgba(211, 52, 54, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(211, 52, 54, 0.3);
    border-left: 3px solid #D33436;
    color: #1D1D1D;
}

/* Photo placeholder */
.member-photo {
    width: 80px;
    height: 80px;
    background-color: rgba(211, 52, 54, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 2px solid #D33436;
    overflow: hidden;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-photo svg {
    width: 40px;
    height: 40px;
    color: #D33436;
    flex-shrink: 0;
}

/* Team Lead - Antoine */
.team-lead {
    border-left: none;
    border: 2px solid #D33436;
    padding: 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(211, 52, 54, 0.1) 0%, rgba(211, 52, 54, 0.04) 100%);
    transition: all 0.3s ease;
    color: #1D1D1D;
}

.team-lead:hover {
    border-color: #D33436;
    box-shadow: 0 5px 20px rgba(211, 52, 54, 0.2);
}

.team-lead .member-photo {
    width: 140px;
    height: 140px;
    border-width: 3px;
    margin-bottom: 1.5rem;
}

.team-lead .member-photo svg {
    width: 70px;
    height: 70px;
}

/* Team Grid for other members */
.team-grid {
    display: none;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.team-grid .team-member {
    margin-bottom: 0;
}

.team-member h4 {
    color: #D33436;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    text-align: center;
    font-weight: 700;
}

.member-title {
    color: #666;
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.team-lead .member-title {
    color: #D33436;
    font-size: 1rem;
    font-weight: 600;
    opacity: 1;
}

/* Tags */
.member-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.tag {
    background-color: rgba(211, 52, 54, 0.15);
    color: #D33436;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid #D33436;
}

/* Button En savoir plus */
.btn-more {
    display: block;
    width: 100%;
    padding: 0.8rem 1.5rem;
    background-color: #D33436;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.8rem;
}

.btn-more:hover {
    background-color: #b02a2c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 52, 54, 0.3);
}

.btn-more[aria-expanded="true"] {
    background-color: rgba(211, 52, 54, 0.2);
    border: 1px solid #D33436;
}

/* Member details (hidden by default) */
.member-details {
    display: none;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(211, 52, 54, 0.3);
    color: #1D1D1D;
}

.member-details.active {
    display: block;
}

.member-details ul {
    color: #1D1D1D;
}

.member-details ul li::before {
    color: #D33436;
}

.team-member p {
    margin-bottom: 0.8rem;
    color: #1D1D1D;
}

.team-member ul {
    margin-bottom: 0.8rem;
    color: #1D1D1D;
}

.team-member ul li::before {
    color: #D33436;
}

.about-vision {
    text-align: center;
    background-color: rgba(211, 52, 54, 0.08);
    padding: 2rem;
    border-radius: 10px;
}

.about-vision ul {
    display: inline-block;
    text-align: left;
}

.vision-objective {
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 1rem;
    color: #D33436;
    position: relative;
    z-index: 1;
}

/* Contact Section - Mobile */
.contact {
    padding: 2rem 0;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 50px;
    left: -140px;
    width: 260px;
    height: 260px;
    background-image: url('./assets/images/koi-red-vertical.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}

.contact::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -120px;
    width: 300px;
    height: 300px;
    background-image: url('./assets/images/koi-black-vertical.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.07;
    z-index: 0;
    pointer-events: none;
}

.contact > .container::before {
    content: '';
    position: absolute;
    top: 80px;
    left: -200px;
    width: 380px;
    height: 380px;
    background-image: url('./assets/images/koi-three.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.06;
    z-index: 0;
    pointer-events: none;
}

.contact > .container::after {
    content: '';
    position: absolute;
    top: -120px;
    right: -160px;
    width: 340px;
    height: 340px;
    background-image: url('./assets/images/koi-red-vertical.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #1D1D1D;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1D1D1D;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #1D1D1D;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #D33436;
}

.btn-submit {
    background-color: #D33436;
    color: #ffffff;
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    min-height: 44px;
}

.btn-submit:hover,
.btn-submit:focus {
    background-color: #b02a2c;
    outline: none;
}

/* Footer - Mobile */
.footer {
    background-color: #1D1D1D;
    color: #ffffff;
    padding: 2rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    color: #D33436;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: #ffffff;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.4rem;
}

.footer-section ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-section ul li a:hover {
    color: #D33436;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #444;
}

.footer-bottom p {
    color: #ffffff;
    font-size: 0.85rem;
}

/* ========== MODAL RESPONSIVE ========== */
@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        width: 90%;
        max-height: 95vh;
    }

    .modal-content h2 {
        font-size: 1.5rem;
        padding-right: 1.5rem;
    }

    .modal-close {
        right: 1rem;
        top: 1rem;
        font-size: 1.5rem;
    }

    .session {
        padding: 1rem;
    }
}

/* ========== TABLET (768px+) ========== */
@media (min-width: 768px) {
    .logo {
        font-size: 1.5rem;
    }

    /* Hide hamburger menu */
    .menu-toggle {
        display: none;
    }

    /* Show nav links */
    .nav-links {
        display: flex;
        flex-direction: row;
        position: static;
        background-color: transparent;
        padding: 0;
        border: none;
        gap: 2rem;
    }

    .nav-links a {
        font-size: 1rem;
    }

    /* Hero Section */
    .hero {
        min-height: 500px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    /* Sections */
    .formations,
    .about,
    .contact {
        padding: 3.5rem 0;
    }

    .about-intro {
        padding: 2.5rem;
    }

    .formations > .container > h2,
    .about h2,
    .contact h2 {
        font-size: 2.2rem;
        margin-bottom: 2.5rem;
    }

    .tab-btn {
        font-size: 1.2rem;
        padding: 1rem 2.5rem;
    }

    /* Team Lead layout for tablet */
    .team-lead {
        display: flex;
        gap: 2.5rem;
        align-items: flex-start;
        padding: 2.5rem;
    }

    .team-lead .member-photo {
        flex-shrink: 0;
        margin: 0;
        width: 160px;
        height: 160px;
    }

    .team-lead .member-info {
        flex: 1;
    }

    .team-lead h4 {
        text-align: left;
        font-size: 1.5rem;
    }

    .team-lead .member-title {
        text-align: left;
    }

    .team-lead .member-tags {
        justify-content: flex-start;
    }

    /* Team grid for tablet */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .team-member {
        padding: 2rem;
        transition: all 0.3s ease;
    }

    .team-member:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(211, 52, 54, 0.15);
    }

    .team-member .member-photo {
        width: 110px;
        height: 110px;
        margin-bottom: 1.5rem;
    }

    .team-member .member-photo svg {
        width: 55px;
        height: 55px;
    }

    .team-member h4 {
        text-align: left;
    }

    .team-member .member-title {
        text-align: left;
    }

    .team-member .member-tags {
        justify-content: flex-start;
    }

    /* Formations Grid */
    .formations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .card-image {
        height: 200px;
    }

    .card-content h3 {
        font-size: 1.3rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* ========== DESKTOP (1024px+) ========== */
@media (min-width: 1024px) {
    .hero {
        min-height: 600px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .formations-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .formations > .container > h2,
    .about h2,
    .contact h2 {
        font-size: 2.5rem;
    }

    .tab-btn {
        font-size: 1.3rem;
        max-width: 250px;
    }

    .team-lead .member-photo {
        width: 180px;
        height: 180px;
    }

    .team-lead .member-photo svg {
        width: 90px;
        height: 90px;
    }

    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .team-grid .team-member .member-photo {
        width: 140px;
        height: 140px;
    }

    .team-grid .team-member .member-photo svg {
        width: 70px;
        height: 70px;
    }

    .about p {
        font-size: 1.1rem;
    }
}

/* ========== EXTRA LARGE (1400px+) ========== */
@media (min-width: 1400px) {
    .container {
        padding: 0 40px;
    }

    .formations-grid {
        gap: 2.5rem;
    }
}

/* ========== LEGAL PAGES ========== */
.legal-page {
    padding: 3rem 0;
    min-height: calc(100vh - 300px);
    background-color: #ffffff;
}

.legal-page h1 {
    font-size: 2rem;
    color: #1D1D1D;
    margin-bottom: 2rem;
    text-align: center;
}

.legal-page p {
    max-width: 800px;
    margin: 0 auto 1rem;
    line-height: 1.7;
    color: #333;
}

.legal-placeholder {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 3rem;
    background-color: #f5f5f5;
    border-radius: 10px;
}

/* Logo as link */
a.logo {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: bold;
}

a.logo:hover {
    color: #D33436;
}

/* ========== MODAL ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 10px;
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #D33436;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #b02a2c;
}

.modal-content h2 {
    color: #1D1D1D;
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-right: 2rem;
}

.modal-section {
    margin-bottom: 2rem;
}

.modal-section h3 {
    color: #D33436;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.modal-section h4 {
    color: #1D1D1D;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.modal-section p {
    color: #1D1D1D;
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.modal-section ul {
    list-style: none;
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.modal-section ul li {
    color: #1D1D1D;
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    line-height: 1.6;
}

.modal-section ul li::before {
    content: "•";
    color: #D33436;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.session {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #D33436;
    margin-bottom: 1.5rem;
}

/* Details button on cards */
.btn-details {
    display: block;
    width: 100%;
    padding: 0.8rem 1.5rem;
    background-color: #D33436;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-details:hover {
    background-color: #b02a2c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 52, 54, 0.3);
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: more) {
    .btn-submit:focus {
        outline: 3px solid #D33436;
    }

    .nav-links a:focus {
        outline: 2px solid #D33436;
    }
}
