/* --- Variables & Reset --- */
:root {
    --bg-color: #0b0b0b;
    --card-bg: #161616;
    --accent-color: #145C9D;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --font-weight-light: 200;
    --transition: all 0.3s ease;
}

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

a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 300;
}

a:hover {
    color: var(--text-secondary);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: var(--font-weight-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    width: 100%;
}

/* --- Layout --- */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 20px 60px;
    min-height: 80vh;
}

/* --- Navigation --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(11, 11, 11, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #222;
}

nav {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}



.nav-logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -1px;
    color: var(--accent-color);
    width: 300px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--text-primary);
}

/* --- Menu Burger CSS --- */

/* On cache le bouton par défaut sur desktop */
.burger-menu {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1100;
}

.burger-menu .bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background-color: var(--text-primary);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .burger-menu {
        display: block; /* On l'affiche sur mobile */
    }

    /* Animation du burger en "X" quand ouvert */
    .burger-menu.active .bar:nth-child(2) { opacity: 0; }
    .burger-menu.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .burger-menu.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 128px;
        flex-direction: column;
        background: var(--bg-color);
        justify-content: center;
        align-items: center;
        gap: 40px !important;
        transition: 0.4s ease-in-out;
        z-index: 1050;
        padding: 20px;
        border-left: 1px solid #222;
        border-bottom: 1px solid #222;
    }

    .nav-links.active {
        right: 0; /* On l'affiche */
    }

    .nav-links li a {
        font-size: 1.2rem; /* Plus gros sur mobile */
    }
}

/* --- Landing Page / Hero --- */
.hero {
    text-align: center;
    padding: 60px 0;
}

h1 {
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* --- Flux Actualités Unifié --- */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

/* Couleurs distinctes */
.badge-actu {
    background: rgba(20, 92, 157, 0.2);
    color: #4da3ff;
    border: 1px solid #145C9D;
}

.badge-pv {
    background: rgba(160, 160, 160, 0.1);
    color: #d1d1d1;
    border: 1px solid #666;
}

/* Cadres améliorés */
.card {
    background: #111; /* Un poil plus clair que le fond pour le relief */
    border: 1px solid #222;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* On change la bordure au survol selon le type via JS ou simple accent */
.card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card-content {
    padding-top: 20px;
}

.card-date {
    display: block;
    font-size: 0.8rem;
    color: #555;
    margin-top: 10px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}


.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    filter: grayscale(20%);
}

.card h3 {
    padding: 20px 0px 10px;
    font-weight: 600;
    text-transform: uppercase;

}

.card p {
    padding: 0 0px 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.card a {
    display: block;
    padding: 15px 20px;
    background: #1d1d1d;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    height: 100%;
}

/* --- Article Detail View --- */
.post-detail {
    max-width: 800px;
    margin: 0 auto;
}

.hero-img {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    object-fit: cover;
    margin-bottom: 40px;
}

.meta {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 300;
}

.content {
    font-size: 1.1rem;
    color: #e0e0e0;
}

.content p { margin-bottom: 20px; }

/* --- Section Hébergés --- */
.hosted-section {
    padding: 60px 0;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 300;
}

.hosted-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.hosted-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
    text-decoration: none;
    transition: var(--transition);
}

.hosted-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid transparent;
    transition: var(--transition);
}

.hosted-item span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.hosted-item:hover img {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.hosted-item:hover span {
    color: var(--text-primary);
}

/* --- Timeline Style --- */

.history-title {
    text-align: center;
}
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--accent-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    opacity: 0.9;
}

.timeline-item::after {
    
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -10px;
    background-color: var(--accent-color);
    border: 2px solid var(--accent-color);
    top: 72px;
    border-radius: 50%;
    z-index: 1;
}

.left { left: 0; text-align: right; }
.right { left: 50%; text-align: left; }

.right::after { left: -10px; }

.timeline-content {
    padding: 20px;
    background: var(--card-bg);
    border-radius: 8px;
}

.timeline-content h2 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.year {
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

@media screen and (max-width: 600px) {
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; text-align: left; }
    .timeline-item::after { left: 23px; }
    .right { left: 0%; }
}

/* --- Label Grid Style --- */
.label-intro {
    text-align: center;
    margin-bottom: 50px;
}

.podcast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 2fr));
    gap: 40px;
    padding: 20px 0;
}

.podcast-card {
    background: transparent;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

.cover-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.cover-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.podcast-card:hover .cover-wrapper img {
    transform: scale(1.1);
}

.podcast-card:hover .cover-wrapper {
    box-shadow: 0 0 25px rgba(20, 92, 157, 0.4);
}

.podcast-info {
    padding: 20px 0;
}

.podcast-info h2 {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.podcast-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-listen {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.btn-listen:hover {
    border-bottom-color: var(--accent-color);
    letter-spacing: 2px;
}

/* --- Page Contact --- */
.contact-container {
    max-width: 600px;
    margin: 40px auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #222;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--accent-color);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    background: #0b0b0b;
    border: 1px solid #333;
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* --- Captcha Thématique --- */
.spam-check {
    background: #1d1d1d;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
}

.icon-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
    font-size: 2rem;
}

.icon-btn {
    cursor: pointer;
    transition: transform 0.2s;
    opacity: 0.5;
    filter: grayscale(1);
}

.icon-btn:hover { transform: scale(1.2); opacity: 1; }
.icon-btn.selected { 
    opacity: 1; 
    filter: grayscale(0); 
    color: var(--accent-color);
    transform: scale(1.1);
}

.btn-contact {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color);
    color: var(--text-primary);
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Effet au survol : on soulève le bouton et on accentue l'ombre */
.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
    filter: brightness(1.1);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 40px;
    color: #444;
    font-size: 0.8rem;
    border-top: 1px solid #111;
}

/* Styles spécifiques au contenu du PV pour qu'il soit propre dans le site */
    .pv-document {
        line-height: 1.8;
        color: #ddd;
    }
    .pv-header {
        border-bottom: 2px solid var(--accent-color);
        padding-bottom: 20px;
        margin-bottom: 40px;
    }
    .pv-badge {
        font-size: 0.7rem;
        color: var(--accent-color);
        text-transform: uppercase;
        letter-spacing: 2px;
        font-weight: 600;
    }
    .pv-section {
        margin-bottom: 30px;
    }
    .pv-section h2 {
        color: #fff;
        font-size: 1.3rem;
        margin-bottom: 15px;
        font-weight: 400;
    }
    .pv-section ul {
        margin-left: 20px;
        margin-bottom: 20px;
    }
    .pv-section blockquote {
        border-left: 3px solid var(--accent-color);
        padding-left: 20px;
        font-style: italic;
        margin: 20px 0;
        color: #aaa;
    }
    .pv-footer {
        margin-top: 50px;
        padding-top: 20px;
        border-top: 1px solid #333;
        font-size: 0.9rem;
        color: #777;
    }


.content-body {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    line-height: 1.6;
    text-align: left;
}

.content-body h2 {
    margin-top: 30px;
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
}

.content-body p {
    margin-bottom: 15px;
}
/* --- Responsive --- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
}

@media (max-width: 540px) {
    main {
        padding: 100px 10px 60px;
    }

    .podcast-grid {
    grid-template-columns: repeat(auto-fill, minmax(156px, 2fr));
    gap: 10px;
    padding: 0;
}
}