/* NAVBAR */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid #eee;
    padding: 0.5rem 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

/* Menu desktop */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

/* Menu mobile */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: #333;
    height: 3px;
    width: 25px;
    border-radius: 3px;
    position: relative;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle-label span::before {
    top: -8px;
}

.nav-toggle-label span::after {
    top: 8px;
}

/* Responsive */
@media (max-width: 768px) {

    .nav-toggle-label {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 60px;
        right: 0;
        background: white;
        width: 200px;
        flex-direction: column;
        padding: 1rem;
        border: 1px solid #eee;
        display: none;
    }

    .nav-toggle:checked + .nav-toggle-label + .nav-menu {
        display: flex;
    }
}

/* FOOTER */
.footer {
    background: #f5f5f5;
    padding: 2rem 1rem;
    margin-top: 3rem;
    border-top: 1px solid #ddd;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    color: #333;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    text-decoration: none;
    color: #333;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #666;
}

/* LAYOUT GÉNÉRAL */
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #333;
    background: #fafafa;
}

main {
    min-height: 60vh;
}

/* SECTIONS */
.section {
    padding: 3rem 1rem;
}

.section-alt {
    background: #f5f5f5;
}

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

.section-center {
    text-align: center;
}

/* TITRES */
h1, h2, h3 {
    margin-top: 0;
}

/* HERO */
.hero {
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #e3f2fd, #f1f8e9);
    border-bottom: 1px solid #ddd;
}

.hero-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* HERO MEDIA */
.hero-media {
    display: flex;
    justify-content: center;
}

.hero-video-placeholder {
    width: 100%;
    max-width: 420px;
    height: 240px;
    border-radius: 12px;
    border: 2px dashed #bbb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    background: #fff;
}

/* GRIDS & CARDS */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.card h3 {
    margin-top: 0;
}

.link {
    color: #1e88e5;
    text-decoration: none;
    font-weight: 500;
}

/* VIDÉOS PLACEHOLDER */
.video-placeholder {
    width: 100%;
    height: 160px;
    border-radius: 10px;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    margin-bottom: 1rem;
}

/* BOUTONS */
.btn {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-primary {
    background: #1e88e5;
    color: #fff;
}

.btn-secondary {
    background: #fff;
    color: #1e88e5;
    border: 1px solid #1e88e5;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
    }
}

/* HERO SMALL */
.hero-small {
    padding: 2.5rem 1rem;
    background: linear-gradient(135deg, #e8f5e9, #e3f2fd);
}

/* LISTE SIMPLE */
.list {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}

.list li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
    border-left: 4px solid #1e88e5;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
}

/* GRID 2 */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* EMBED VIDEO */
.video-embed {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.video-embed iframe {
    width: 100%;
    max-width: 900px;
    height: 500px;
    border-radius: 12px;
}

/* Placeholder vidéo */
.video-card .video-placeholder {
    width: 100%;
    height: 160px;
    border-radius: 10px;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    margin-bottom: 1rem;
}

/* GRID 3 déjà existant */
/* GRID 2 déjà existant */

/* Amélioration visuelle des cartes ressources */
.card h3 {
    margin-bottom: 0.5rem;
}

.card p {
    margin-bottom: 1rem;
}

/* FORMULAIRE DE CONTACT */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.7rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    background: #fff;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 1.3rem;
}

.logo-img {
    width: 38px;
    height: 38px;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

@media (max-width: 480px) {
    .logo-img {
        width: 38px;
        height: 38px;
    }
}


/* TABLEAU ADMIN */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.admin-table th,
.admin-table td {
    padding: 0.8rem;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.admin-table th {
    background: #f0f0f0;
    font-weight: 600;
}

.logo-img {
    display: block;
}
