/**
 * Styles principaux pour CVStreet
 */

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

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #000;
    color: #d0d0d0;
    overflow-x: hidden;
}

/* Conteneur principal */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
    text-align: center; /* Centrer le contenu */
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    margin-top: 0;
}

h2 {
    font-size: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

p {
    margin-bottom: 20px;
}

a {
    color: #d0d0d0;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
}

a:hover {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}

/* Conteneur du contenu principal */
#main-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s;
    background: url('../images/screen.jpg') no-repeat center center fixed;
    background-size: cover;
    padding-top: 20px;
}

#main-content.visible {
    opacity: 1;
    visibility: visible;
}

/* Bouton de retour */
.return-button {
    position: fixed;
    top: 15px;
    right: 20px;
    z-index: 100;
    background-color: rgba(208, 208, 208, 0.1);
    color: rgba(36, 34, 34, 0.7);
    border: 1px solid rgba(208, 208, 208, 0.3);
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Masquer le bouton de retour sur mobile */
@media (max-width: 768px) {
    .return-button {
        display: none;
    }
}

.return-button:hover {
    background-color: rgba(208, 208, 208, 0.9);
    color: #fff;
    text-decoration: none;
}

/* Section chapeau / présentation */
.cvstreet-chapeau {
    background: #111;
    color: #f0f0f0;
    border-left: 4px solid #d0d0d0;
    padding: 25px 20px;
    margin: 20px 0 30px;
    line-height: 1.6;
    max-width: 800px;
}

/* Panneau de contenu noir (par défaut) */
.content-panel {
    display: none;
    position: relative;
    width: 85%;
    max-width: 900px;
    margin: 60px auto 30px;
    background-color: rgba(0, 0, 0, 0.85);
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    overflow: auto;
    padding: 40px;
    color: #e0e0e0;
    z-index: 10;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Panneau Actions : fond blanc et texte foncé */
.actions-panel {
    background-color: #fff !important;
    color: #2a2100 !important;
    border: 1.5px solid #e0e0e0 !important;
    box-shadow: 0 5px 25px rgba(180, 180, 180, 0.10);
}

.actions-panel .section-content {
    font-family: Helvetica, sans-serif !important;
    text-align: justify !important;
    width: 90% !important;
    margin: 0 !important;
    background-color: rgba(0, 0, 0, 0.3) !important;
    padding: 1rem !important;
    box-sizing: border-box !important;
}

/* Panneau Radio : fond blanc cassé et texte foncé */
.radio-panel {
    background-color: #ffeebc !important;
    color: #2a2100 !important;
    border: 1.5px solid #e5c97a !important;
    box-shadow: 0 5px 25px rgba(200, 180, 100, 0.14);
}

.radio-panel h2, .radio-panel h3, .radio-panel h4, .radio-panel h5, .radio-panel h6 {
    color: #2a2100 !important;
    text-shadow: none;
}

.radio-panel a {
    color: #b07c00;
    border-bottom: 1px dotted #b07c00;
}

.radio-panel a:hover {
    color: #ff9900;
    border-bottom: 1px solid #ff9900;
}

.radio-panel blockquote {
    border-left: 3px solid #e5c97a;
    color: #7d5a00;
}

.actions-panel h2, .actions-panel h3, .actions-panel h4, .actions-panel h5, .actions-panel h6 {
    color: #2a2100 !important;
    text-shadow: none;
}

.actions-panel a {
    color: #b07c00;
    border-bottom: 1px dotted #b07c00;
}

.actions-panel a:hover {
    color: #ff9900;
    border-bottom: 1px solid #ff9900;
}

.actions-panel blockquote {
    border-left: 3px solid #e5c97a;
    color: #7d5a00;
}


.content-panel.active {
    display: block;
}

.content-panel h2 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Conteneur pour les sections */
.sections-container {
    position: relative;
    z-index: 10;
    padding-bottom: 50px;
}

/* Styles pour les sections */
.section-content {
    margin-top: 20px;
}

.section-content h3 {
    color: #fff;
    margin: 25px 0 15px;
    font-size: 1.5rem;
    border-bottom: 1px solid #444;
    padding-bottom: 8px;
}

.section-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.section-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.section-content blockquote {
    font-style: italic;
    border-left: 3px solid #d0d0d0;
    padding-left: 15px;
    margin: 20px 0;
    color: #ccc;
}

/* Styles spécifiques pour la section film */
.video-container {
    margin-bottom: 25px;
    background-color: #000;
    padding: 10px;
    border-radius: 5px;
}

.highlight {
    color: #ffffff;
    font-weight: bold;
}

.credits p {
    margin-bottom: 8px;
}

/* Styles pour les liens de section */
.section-link {
    color: #d0d0d0;
    text-decoration: underline;
    cursor: pointer;
}

.section-link:hover {
    color: #fff;
}

/* Adaptations pour le mobile */
@media (max-width: 768px) {
    .content-panel {
        width: 95%;
        padding: 20px;
        margin: 30px auto;
    }
}

.cvstreet-chapeau h2 {
    color: #d0d0d0;
    font-size: 1.8rem;
    border-bottom: none;
    margin-top: 0;
}

.cvstreet-chapeau blockquote {
    margin: 20px 0 0;
    color: #ccc;
    font-style: italic;
    padding-left: 15px;
    border-left: 2px solid #d0d0d0;
}

/* Système d'accordéon */
.accordion-section {
    margin-bottom: 12px;
    clear: both;
}

.accordion-title {
    background-color: #111;
    color: #d0d0d0;
    cursor: pointer;
    padding: 15px;
    width: 100%;
    text-align: left;
    outline: none;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-left: 3px solid #d0d0d0;
    position: relative;
}

.accordion-title:hover {
    background-color: #222;
}

.accordion-title::after {
    content: '+';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.accordion-title.active::after {
    transform: translateY(-50%) rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    background-color: #000;
    border-left: 1px solid rgba(208, 208, 208, 0.1);
}

.accordion-content-inner {
    padding: 20px;
}

/* Bouton pour tout afficher/réduire */
.toggle-all-btn {
    background-color: rgba(208, 208, 208, 0.1);
    color: #d0d0d0;
    border: 1px solid rgba(208, 208, 208, 0.3);
    border-radius: 4px;
    padding: 8px 16px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.toggle-all-btn:hover {
    background-color: rgba(208, 208, 208, 0.2);
    transform: translateY(-2px);
}

.toggle-all-btn i {
    margin-right: 6px;
}

/* Conteneurs d'images */
.image-container {
    margin: 20px 0;
    max-width: 100%;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 3px;
    transition: transform 0.3s ease;
}

.image-container img:hover {
    transform: scale(1.01);
}

.image-caption {
    font-size: 0.9rem;
    color: #aaa;
    font-style: italic;
    margin-top: 8px;
    display: block;
}

/* Media queries */
@media (max-width: 768px) {
    .main-container {
        padding: 0 15px;
    }
    
    .cvstreet-chapeau {
        padding: 20px 15px;
    }
    
    .cvstreet-chapeau h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .accordion-title {
        font-size: 0.9rem;
        padding: 12px;
    }
    
    .accordion-content-inner {
        padding: 15px;
    }
}
