/* Variables */
:root {
    --tech-blue: #2575fc;
    --power-red: #e63946;
    --titan-gold: #ffd700;
    --carbon: #1a1a2e;
    --ivory: #fffff5;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Base Styles */
.programme-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--carbon);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hero Section */
.programme-hero {
    display: flex;
    min-height: 80vh;
    background: linear-gradient(135deg, var(--carbon) 0%, var(--tech-blue) 100%);
    color: white;
    padding: 4rem 8%;
    margin-top: 3%;
    position: relative;
    overflow: hidden;
}


.programme-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/bg-circuit.png') center/cover no-repeat;
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    flex: 1;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: fadeInUp 1s ease-out;
}

.hero-titre {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-titre span {
    color: var(--titan-gold);
    position: relative;
}

.hero-titre span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--titan-gold);
    opacity: 0.5;
    z-index: -1;
}

.hero-slogan {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 80%;
}

.hero-infos {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.info-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 250px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.info-card i {
    font-size: 1.8rem;
    color: var(--titan-gold);
}

.info-card h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--titan-gold);
}

.info-card p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.bouton {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
    font-size: 1rem;
}

.bouton i {
    font-size: 1rem;
}

.bouton-primaire {
    background-color: var(--power-red);
    color: white;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

.bouton-primaire:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(230, 57, 70, 0.5);
    background-color: #d63031;
}

.bouton-secondaire {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.bouton-secondaire:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-3px);
}

.bouton-large {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
}

.hero-visuel {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.tech-orb {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    animation: float 6s ease-in-out infinite;
    opacity: 0.8;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.tech-orb::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-orb:hover::after {
    opacity: 1;
}

.html {
    background: #e34c26;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.css {
    background: #264de4;
    top: 30%;
    right: 15%;
    animation-delay: 1s;
}

.js {
    background: #f0db4f;
    color: #323330 !important;
    bottom: 25%;
    left: 20%;
    animation-delay: 2s;
}

.arduino {
    background: #00979d;
    bottom: 30%;
    right: 20%;
    animation-delay: 3s;
}

.ai {
    background: #ff6b6b;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

.visuel-anime {
    max-width: 100%;
    height: auto;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

/* Navigation */
.programme-nav {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-item {
    padding: 1.2rem 1.5rem;
    text-decoration: none;
    color: var(--dark-gray);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    font-weight: 500;
}

.nav-item i {
    font-size: 1.3rem;
}

.nav-item span {
    font-size: 0.9rem;
}

.nav-item:hover, .nav-item.active {
    color: var(--tech-blue);
    border-bottom-color: var(--tech-blue);
    background-color: rgba(37, 117, 252, 0.05);
}

/* Module Sections */
.module-section {
    padding: 5rem 8%;
    background-color: white;
}

.module-section:nth-child(even) {
    background-color: var(--light-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.module-badge {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--tech-blue) 0%, var(--power-red) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(37, 117, 252, 0.3);
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header h2 span {
    color: var(--tech-blue);
    position: relative;
}

.section-header h2 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--tech-blue);
    opacity: 0.3;
    z-index: -1;
}

.module-description {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #666;
}

/* Competences Grid */
.competences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.competence-card {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--tech-blue);
}

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

.competence-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(37, 117, 252, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--tech-blue);
    margin-bottom: 1.5rem;
}

.competence-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--carbon);
}

.competence-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.progress-bar {
    height: 6px;
    background-color: #eee;
    border-radius: 3px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--tech-blue), var(--power-red));
    border-radius: 3px;
}

/* Projet Final */
.projet-titre {
    text-align: center;
    font-size: 1.8rem;
    margin: 3rem 0 1.5rem;
    color: var(--carbon);
}

.projet-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.projet-description {
    flex: 1;
}

.projet-description p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.projet-description ul {
    list-style: none;
    margin-bottom: 2rem;
}

.projet-description li {
    margin-bottom: 0.8rem;
    padding-left: 1.8rem;
    position: relative;
}

.projet-description li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 10px;
    height: 10px;
    background-color: var(--tech-blue);
    border-radius: 50%;
}

.tech-tags {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.tech-tag {
    background-color: rgba(37, 117, 252, 0.1);
    color: var(--tech-blue);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

.projet-visuel {
    flex: 1;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.projet-slider {
    position: relative;
    height: 300px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slider-controls {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

.slider-prev, .slider-next {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.slider-prev:hover, .slider-next:hover {
    background-color: var(--tech-blue);
}

/* Robotique Section */
.materiel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.materiel-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.materiel-visuel {
    height: 200px;
    position: relative;
}

.materiel-visuel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.materiel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0;
    transition: var(--transition);
}

.materiel-card:hover .materiel-overlay {
    opacity: 1;
}

.materiel-card h3 {
    padding: 1rem 1rem 0.5rem;
    font-size: 1.2rem;
    color: var(--carbon);
}

.materiel-card p {
    padding: 0 1rem 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

.projets-robotique {
    margin-top: 4rem;
}

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

.projet-robot {
    height: 250px;
    perspective: 1000px;
}

.projet-front, .projet-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: transform 0.6s ease;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.projet-front {
    background-color: white;
    transform: rotateY(0deg);
}

.projet-back {
    background: linear-gradient(135deg, var(--tech-blue) 0%, var(--power-red) 100%);
    color: white;
    padding: 1.5rem;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.projet-robot:hover .projet-front {
    transform: rotateY(180deg);
}

.projet-robot:hover .projet-back {
    transform: rotateY(0deg);
}

.projet-front img {
    width: 100%;
    height: 70%;
    object-fit: cover;
}

.projet-front h4 {
    padding: 1rem;
    text-align: center;
    font-size: 1.2rem;
    color: var(--carbon);
}

.projet-back p {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* IA Section */
.ia-content {
    display: flex;
    gap: 3rem;
    margin: 3rem 0;
}

.ia-tools, .ia-applications {
    flex: 1;
}

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

.tool-card {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.tool-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.tool-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--carbon);
}

.tool-card p {
    color: #666;
    font-size: 0.9rem;
}

.applications-list {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.app-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.app-item:last-child {
    border-bottom: none;
}

.app-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(37, 117, 252, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tech-blue);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.app-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--carbon);
}

.app-content p {
    color: #666;
    font-size: 0.9rem;
}

.projet-ia {
    margin-top: 3rem;
}

.projet-ia-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.ia-visuel {
    flex: 1;
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 2rem;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ia-animation {
    width: 100%;
}

.code-line {
    height: 20px;
    background-color: #2d2d2d;
    margin-bottom: 10px;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.code-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--tech-blue);
    animation: codeTyping 3s infinite;
}

.code-line:nth-child(1) {
    width: 80%;
}

.code-line:nth-child(2) {
    width: 60%;
    animation-delay: 0.3s;
}

.code-line:nth-child(3) {
    width: 70%;
    animation-delay: 0.6s;
}

.ia-suggestion {
    position: absolute;
    right: 0;
    bottom: 20%;
    animation: iaFloat 4s infinite;
}

.suggestion-bubble {
    background-color: #f8f9fa;
    color: var(--carbon);
    padding: 0.8rem 1.2rem;
    border-radius: 20px 20px 0 20px;
    max-width: 250px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    position: relative;
}

.suggestion-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-top: 15px solid #f8f9fa;
}

.ia-description {
    flex: 1;
}

.ia-description p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.ia-description ul {
    list-style: none;
    margin-bottom: 2rem;
}

.ia-description li {
    margin-bottom: 0.8rem;
    padding-left: 1.8rem;
    position: relative;
}

.ia-description li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 10px;
    height: 10px;
    background-color: var(--tech-blue);
    border-radius: 50%;
}

/* Emploi du temps */
.emploi-section {
    padding: 5rem 8%;
    background-color: var(--light-gray);
}

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

.week-title {
    font-size: 1.8rem;
    color: var(--carbon);
    margin: 3rem 0 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--tech-blue);
    display: inline-block;
}

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

.day-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.day-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.day-header {
    background: linear-gradient(135deg, var(--tech-blue) 0%, var(--power-red) 100%);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.day-header h4 {
    font-size: 1.3rem;
    margin: 0;
}

.day-header span {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.9rem;
}

.day-content {
    padding: 1.5rem;
}

.activity {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(37, 117, 252, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tech-blue);
    flex-shrink: 0;
}

.activity-details h5 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--carbon);
}

.activity-details p {
    color: #666;
    font-size: 0.9rem;
}

.activity-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 1rem;
}

.general {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.web {
    background-color: rgba(37, 117, 252, 0.1);
    color: var(--tech-blue);
}

.robotique {
    background-color: rgba(0, 151, 157, 0.1);
    color: #00979d;
}

.ia {
    background-color: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
}

.mixed {
    background: linear-gradient(90deg, rgba(37,117,252,0.1) 0%, rgba(255,107,107,0.1) 100%);
    color: var(--carbon);
}

/* CTA Section */
.programme-cta {
    padding: 5rem 8%;
    background: linear-gradient(135deg, var(--carbon) 0%, var(--tech-blue) 100%);
    color: white;
}

.cta-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 3rem;
    align-items: center;
}

.cta-content {
    flex: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-features {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.7rem 1.2rem;
    border-radius: 50px;
}

.feature i { 
    color: var(--titan-gold);
}

.cta-visuel {
    flex: 1;
    position: relative;
}

.cta-visuel img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cta-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    background-color: var(--power-red);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.5);
    transform: rotate(15deg);
    animation: badgePulse 2s infinite;
}

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

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

@keyframes codeTyping {
    0% {
        width: 0;
    }
    50% {
        width: 100%;
    }
    100% {
        width: 0;
    }
}

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

@keyframes badgePulse {
    0% {
        transform: rotate(15deg) scale(1);
    }
    50% {
        transform: rotate(15deg) scale(1.1);
    }
    100% {
        transform: rotate(15deg) scale(1);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .projet-content, .projet-ia-content, .ia-content, .cta-container {
        flex-direction: column;
    }
    
    .projet-visuel, .ia-visuel {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .programme-hero {
        flex-direction: column;
        padding: 3rem 5%;
        text-align: center;
        padding-top: 20%;
    }
    
    .hero-slogan {
        max-width: 100%;
    }
    
    .hero-infos {
        justify-content: center;
    }
    
    .module-section {
        padding: 3rem 5%;
    }
}

@media (max-width: 768px) {
    .hero-titre {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .nav-container {
        flex-wrap: wrap;
    }
    
    .nav-item {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .competences-grid, .tools-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-titre {
        font-size: 2rem;
    }
    
    .hero-slogan {
        font-size: 1.2rem;
    }
    
    .info-card {
        min-width: 100%;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .bouton {
        width: 100%;
    }
}