/* ============================= */
/* styles.css - Clinique St Pierre Ottignies Theme */
/* ============================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Couleurs CSPO basées sur le logo */
    --cspo-red: #E31E24;
    --cspo-red-dark: #C41E23;
    --cspo-red-light: #F44E52;
    --cspo-gray: #6B6B6B;
    --cspo-gray-dark: #4A4A4A;
    --cspo-gray-light: #8C8C8C;
    --cspo-gray-lighter: #B8B8B8;
    --cspo-bg-light: #F8F8F8;
    --cspo-white: #FFFFFF;
    --cspo-black: #1A1A1A;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, Arial, sans-serif;
    line-height: 1.6;
    color: var(--cspo-gray-dark);
    background-color: var(--cspo-bg-light);
}

/* Header */
.header {
    background-color: var(--cspo-white);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    background-color: var(--cspo-red);
    color: var(--cspo-white);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.logo-text {
    color: var(--cspo-gray);
    font-size: 1.1rem;
}

.logo-text sup {
    font-size: 0.7em;
}

.progress-indicator {
    display: none;
    font-size: 0.9rem;
    color: var(--cspo-gray-light);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

/* Welcome Page */
.welcome-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    text-align: center;
    animation: fadeIn 0.8s ease-in;
}

.welcome-content {
    background-color: var(--cspo-white);
    padding: 4rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    max-width: 800px;
    border-top: 4px solid var(--cspo-red);
}

.welcome-title {
    font-size: 2.5rem;
    color: var(--cspo-gray-dark);
    margin-bottom: 2rem;
    font-weight: 300;
}

.welcome-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--cspo-gray);
    margin-bottom: 3rem;
}

/* Buttons */
.btn-primary {
    background-color: var(--cspo-red);
    color: var(--cspo-white);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(227, 30, 36, 0.3);
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--cspo-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 30, 36, 0.4);
}

.btn-secondary {
    background-color: var(--cspo-white);
    color: var(--cspo-gray-dark);
    border: 2px solid var(--cspo-gray-lighter);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
}

.btn-secondary:hover {
    border-color: var(--cspo-red);
    color: var(--cspo-red);
    background-color: rgba(227, 30, 36, 0.05);
}

/* Formations List */
.formations-page {
    display: none;
    animation: fadeIn 0.8s ease-in;
}

.page-title {
    font-size: 2rem;
    color: var(--cspo-gray-dark);
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 300;
}

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

.formation-card {
    background-color: var(--cspo-white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.formation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--cspo-red);
    transition: width 0.3s ease;
}

.formation-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--cspo-red-light);
}

.formation-card:hover::before {
    width: 100%;
    opacity: 0.05;
}

.formation-card.completed::after {
    content: '✓';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--cspo-red);
    color: var(--cspo-white);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.formation-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--cspo-red);
    color: var(--cspo-white);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: bold;
    margin-bottom: 1rem;
}

.formation-title {
    font-size: 1.2rem;
    color: var(--cspo-gray-dark);
    margin-bottom: 0.5rem;
}

.formation-description {
    color: var(--cspo-gray);
    font-size: 0.95rem;
}

/* Video Page */
.video-page {
    display: none;
    animation: fadeIn 0.8s ease-in;
}

.video-container {
    background-color: var(--cspo-white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.video-placeholder {
    width: 100%;
    height: 500px;
    background-color: var(--cspo-black);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--cspo-white);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* Styles pour les thumbnails avec les images Instagram */
.video-thumbnail-1 {
    /* Remplacez 'gabrielia-hopital.jpg' par le chemin réel de votre image */
    background-image: url('video1.png');
}

.video-thumbnail-2 {
    /* Utilisez différentes images ou la même selon vos besoins */
    background-image: url('video2.png');
}

.video-thumbnail-3 {
    background-image: url('video3.png');
}

/* Overlay sombre pour améliorer la visibilité du bouton play */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.video-placeholder:hover .video-overlay {
    background-color: rgba(0, 0, 0, 0.4);
}

.play-button {
    width: 80px;
    height: 80px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
}

.video-placeholder:hover .play-button {
    transform: scale(1.1);
    color: rgba(255, 255, 255, 0.9);
}

.video-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

/* QCM Page */
.qcm-page {
    display: none;
    animation: fadeIn 0.8s ease-in;
}

.qcm-container {
    background-color: var(--cspo-white);
    border-radius: 10px;
    padding: 3rem;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.question {
    margin-bottom: 2.5rem;
}

.question-title {
    font-size: 1.2rem;
    color: var(--cspo-gray-dark);
    margin-bottom: 1rem;
    font-weight: 500;
}

.answers {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.answer-option {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    background-color: var(--cspo-white);
}

.answer-option:hover {
    border-color: var(--cspo-red-light);
    background-color: rgba(227, 30, 36, 0.05);
}

.answer-option input[type="radio"] {
    margin-right: 1rem;
    accent-color: var(--cspo-red);
}

.answer-option.selected {
    border-color: var(--cspo-red);
    background-color: rgba(227, 30, 36, 0.08);
}

.qcm-footer {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.btn-submit {
    background-color: var(--cspo-red);
    color: var(--cspo-white);
    padding: 1rem 3rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-submit:hover {
    background-color: var(--cspo-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 30, 36, 0.4);
}

/* Results Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease-in;
}

.modal-content {
    background-color: var(--cspo-white);
    border-radius: 15px;
    padding: 3rem;
    max-width: 500px;
    margin: 10% auto;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease-out;
    border-top: 4px solid var(--cspo-red);
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.8rem;
    color: var(--cspo-gray-dark);
    margin-bottom: 1rem;
}

.modal-text {
    color: var(--cspo-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Progress Bar */
.progress-bar-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--cspo-white);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem 2rem;
    z-index: 99;
    display: none;
    animation: slideUp 0.5s ease-out;
}

.progress-bar-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--cspo-gray-lighter);
    border-radius: 50px;
    height: 20px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cspo-red) 0%, var(--cspo-red-light) 100%);
    border-radius: 50px;
    width: 0%;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(227, 30, 36, 0.3);
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.3) 50%, 
        rgba(255,255,255,0) 100%);
    animation: shimmer 2s infinite;
}

.progress-percentage {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cspo-white);
    font-weight: bold;
    font-size: 0.85rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.progress-bar-label {
    text-align: center;
    margin-top: 0.8rem;
    color: var(--cspo-gray);
    font-size: 0.9rem;
}

/* Adjust container bottom padding when progress bar is visible */
.container.with-progress {
    padding-bottom: 120px;
}

/* Animations for progress bar */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(200%);
    }
}

/* Progress milestones */
.progress-milestones {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    pointer-events: none;
}

.milestone {
    position: absolute;
    width: 2px;
    height: 100%;
    background-color: rgba(255,255,255,0.3);
    top: 0;
}

.logo-image {
    height: 40px; /* Ajustez selon la taille souhaitée */
    margin-right: 10px;
    vertical-align: middle;
}

.logo {
    display: flex;
    align-items: center;
}
.logo-link {
            text-decoration: none;
            color: inherit;
            display: flex;
            align-items: center;
        }
        .logo-link:hover {
            text-decoration: none;
        }

/* Responsive */
@media (max-width: 768px) {
    .welcome-content {
        padding: 2rem;
    }

    .welcome-title {
        font-size: 2rem;
    }

    .video-placeholder {
        height: 300px;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
    }

    .formations-grid {
        grid-template-columns: 1fr;
    }

    .header-content {
        padding: 0 1rem;
    }

    .logo-text {
        font-size: 0.9rem;
    }

    .container {
        padding: 1rem;
    }

    .qcm-container {
        padding: 1.5rem;
    }

    .btn-primary, .btn-submit {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .progress-bar-container {
        padding: 1rem;
    }

    .progress-bar-label {
        font-size: 0.8rem;
    }

    .container.with-progress {
        padding-bottom: 100px;
    }
}
