/* Base styles */
body { 
    font-family: Arial, sans-serif; 
    background-image: url('../images/fond.jpeg');
    background-size: 50% 30%;
    background-repeat: repeat;
}

/* Layout */
.container { 
    display: flex; 
    flex-direction: row; 
    max-width: 1200px; 
    margin: 0 auto; 
}

/* Sidebar */
.sidebar { 
    background-color: #82a0aa; 
    color: white; 
    padding: 20px; 
    width: 30%; 
}

.sidebar img { 
    width: 100px; 
    border-radius: 50%; 
}

.sidebar a {
    color: white;
    text-decoration: none;
}

.sidebar a:hover {
    text-decoration: underline;
}

/* Main content */
.main-content { 
    background: rgba(255, 255, 255, 0.9);
    padding: 20px; 
    width: 70%; 
}

/* Typography */
h1, h2 { 
    color: #005580; 
}

.section { 
    margin-bottom: 30px; 
}

.section h2 { 
    border-bottom: 2px solid #005580; 
    padding-bottom: 5px; 
}

/* Publication sections */
.publication-category {
    margin-bottom: 25px;
}

.experience-item {
    margin-bottom: 20px;
}

.specialites-list {
    display: flex; /* Les éléments sont alignés sur une ligne */
    flex-wrap: wrap; /* Autorise le passage à la ligne si nécessaire */
    gap: 20px; /* Espace entre les éléments */
    list-style: none; /* Supprime les puces */
    padding: 10;
    margin: 0;
    justify-content: left; /* Centrer la liste si nécessaire */
}

.specialites-list li {
    white-space: nowrap; /* Empêche le retour à la ligne dans un élément */
    transform: scale(1.2); /* Conserve la mise en forme actuelle */
}

/* Media tabs */
.media-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 0.5rem;
    background: #f5f5f5;
    border-radius: 8px;
}

.media-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    font-weight: 500;
    color: #4a5568;
    position: relative;
}

.media-tab:hover {
    background: rgba(0, 85, 128, 0.1);
}

.media-tab.active {
    background: #005580;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 85, 128, 0.2);
}

/* Media content animation */
.media-content {
    display: none;
}

.media-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

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

/* Video components */
.video-container { 
    position: relative; 
    padding-bottom: 56.25%; 
    height: 0; 
    margin-bottom: 20px;
}

.video-container iframe { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.video-title {
    font-weight: bold;
    margin: 10px 0;
    color: #005580;
}

/* Radio components */
.radio-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    background: white;
}

.radio-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #005580;
}

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

.radio-date {
    font-size: 0.875rem;
    color: #6b7280;
    min-width: 120px;
}

.radio-type {
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    min-width: 100px;
    text-align: center;
}

.radio-title {
    font-weight: 500;
    color: #1a202c;
    flex-grow: 1;
}

/* Radio type colors */
.radio-type.table-ronde { 
    background-color: #bfdbfe;
    color: #1e40af;
}

.radio-type.interview { 
    background-color: #e9d5ff; 
    color: #6b21a8;
}

.radio-type.reportages { 
    background-color: #bbf7d0;
    color: #166534;
}

/* Player container */
.player-container {
    display: none;
    margin-top: 0.5rem;
    margin-left: 120px;
    max-width: 600px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.radio-item:hover .player-container {
    display: block;
    opacity: 1;
}



#print-button {
    display: block;
    padding: 10px 20px;
    background-color: #005580;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin: 15px auto; /* Centrer le bouton et ajouter de l'espace */
    text-align: center;
    width: auto; /* Ajuster la largeur au texte */
}

#print-button:hover {
    background-color: #003c5a;
    transform: scale(1.05); /* Légère animation au survol */
}

@media print {
    #print-button {
        display: none; /* Masquer le bouton d'impression */
    }

    .social-icons {
        display: none; /* Masquer les réseaux sociaux */
    }

    #contact-info {
        display: block; /* Afficher les informations de contact */
        font-size: 16px;
        color: black;
        margin-top: 20px;
    }
}

/* Activities section */
.unlock-button {
    background: #005580;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    margin-left: 10px;
    font-size: 0.8em;
}

.unlock-button:hover {
    background: #003c5a;
}

.activities-category {
    margin-bottom: 20px;
}

.activities-category h3 {
    color: #005580;
    margin-bottom: 10px;
}

.activities-category ul {
    list-style-type: none;
    padding-left: 20px;
}

.activities-category li {
    margin-bottom: 8px;
    position: relative;
}

.activities-category li:before {
    content: "•";
    color: #005580;
    position: absolute;
    left: -15px;
}

/* Accessibility */
.media-tab:focus {
    outline: 2px solid #005580;
    outline-offset: 2px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar, .main-content {
        width: 100%;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* Print styles */
@media print {
    .media-tabs, .video-container, .radio-item iframe {
        display: none;
    }
    
    body {
        font-size: 12pt;
    }
    
    .container {
        display: block;
    }
    
    .sidebar {
        background: none;
        color: black;
        width: 100%;
    }
    
    a {
        color: black;
        text-decoration: none;
    }
}
.social-icons img, .social-icons i {
    width: 24px;
    height: 24px;
    margin-right: 5x;
    transition: transform 1.3s;
}

.social-icons a:hover img, .social-icons a:hover i {
    transform: scale(1.4);
}
.sidebar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

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

.video-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

.video-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.video-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.video-thumbnail:hover img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-thumbnail:hover .play-overlay {
    opacity: 1;
}

.play-icon {
    width: 48px;
    height: 48px;
    fill: white;
}

.video-title {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.photo-name {
    text-align: center;
    width: 160px;
}

.social-text {
    justify-content: left;
    font-size: 14px; 
    margin-right: 10px;
}

.social-icons {
    margin-left: -90px;
    display: right;
    flex-wrap: nowrap;
    justify-content: center;
}

.social-icons a {
    margin-bottom: 0px; /* Espacement vertical entre les icônes */
}


.social-icons ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.social-icons ul li {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.social-icons ul li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #000;
    font-size: 16px;
}

.medium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.medium-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.medium-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.medium-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.medium-thumbnail {
    position: relative;
    height: 120px;
    overflow: hidden;
}

.medium-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.medium-item:hover .medium-thumbnail img {
    transform: scale(1.05);
}

.medium-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.medium-icon {
    width: 20px;
    height: 20px;
    fill: #000;
}

.medium-title {
    padding: 15px 15px 5px;
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}

.medium-excerpt {
    padding: 0 15px;
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.medium-date {
    padding: 5px 15px 15px;
    margin: 0;
    font-size: 13px;
    color: #999;
}

/* Adaptation pour mobile */
@media (max-width: 768px) {
    .medium-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .medium-grid {
        grid-template-columns: 1fr;
    }
}

.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.language-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.language-button:hover {
    background-color: #e9ecef;
    border-color: #ccc;
}

.flag-icon {
    margin-right: 8px;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

  /* Adaptation pour mobile */
@media (max-width: 768px) {
    .language-selector {
        position: relative;
        top: 0;
        right: 0;
        margin: 10px 0;
        text-align: right;
    }
    
    /* Ensure container has relative positioning for mobile */
    .container {
        position: relative;
    }
}