/* =========================
   Fondations CSS
   ========================= */

/* Commentaire CSS : styles de base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    font-family: 'Roboto', Arial, sans-serif;
    color: #222;
    background-color: #f5f5f5;
}

/* Sélecteur d'élément */
body {
    line-height: 1.6;
}

/* Sélecteur de classe + spécificité */
.site-header {
    position: fixed; /* Positionnement fixed */
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, #111827, #1f2937);
    color: #ffffff;
    z-index: 1000; /* Z-index */
}

/* Sélecteur d'attribut */
a[href^="http"] {
    /* Liens externes */
    text-decoration: underline;
}

/* =========================
   Header & navigation
   ========================= */

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
}

.logo i {
    color: #f97316;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap; /* flex-wrap pour responsive */
    gap: 0.5rem;
    padding: 0.5rem 1rem 0.75rem 1rem;
}

.main-nav a {
    color: #e5e7eb;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.95rem;
    display: inline-block; /* inline-block */
}

.main-nav a:hover {
    background-color: #374151;
}

.main-nav a.active {
    background-color: #f97316;
    color: #111827;
}

/* Pour compenser le header fixed */
main {
    padding-top: 5rem;
}

/* =========================
   Sections générales
   ========================= */

.section-light {
    background-color: #ffffff;
    padding: 3rem 1.5rem;
}

.section-dark {
    background-color: #111827;
    color: #e5e7eb;
    padding: 3rem 1.5rem;
}

.section-light h1,
.section-light h2,
.section-light h3 {
    color: #111827;
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
    color: #f9fafb;
}

.section-light p,
.section-dark p {
    max-width: 900px;
    margin-bottom: 1rem;
}

/* =========================
   Hero (Accueil)
   ========================= */

.hero {
    display: flex; /* Flexbox obligatoire */
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    padding: 3rem 1.5rem;
    background: radial-gradient(circle at top left, #1f2937, #020617);
    color: #e5e7eb;
}

.hero-text {
    flex: 1 1 280px;
}

.hero-text h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.hero-text h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #f97316;
}

.hero-text p {
    margin-bottom: 0.75rem;
}

blockquote {
    border-left: 4px solid #f97316;
    padding-left: 0.75rem;
    margin: 0.75rem 0 1rem 0;
    font-style: italic;
}

.hero-image {
    flex: 1 1 260px;
    position: relative; /* Position relative pour badge absolu */
}

.hero-image img {
    width: 100%;
    border-radius: 0.75rem;
    display: block;
}

/* Badge positionné en absolute */
.badge-date {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background-color: #f97316;
    color: #111827;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

/* Bouton principal */
.btn-primary {
    background-color: #f97316;
    color: #111827;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block; /* inline-block */
    margin-top: 0.5rem;
}

.btn-primary:hover {
    background-color: #fb923c;
}

/* =========================
   Float / clear
   ========================= */

.highlight-box {
    background-color: #e5e7eb;
    border-left: 4px solid #f97316;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    float: right; /* Float */
    width: 260px;
}

.text-after-float {
    clear: both; /* Clear */
    margin-top: 1rem;
}

/* =========================
   Galerie / Grid
   ========================= */

.gallery-grid {
    display: grid; /* Grid obligatoire */
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.session-card {
    background-color: #1f2937;
    border-radius: 0.75rem;
    overflow: hidden; /* Overflow */
    display: flex;
    flex-direction: column;
}

.session-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.session-card h2 {
    font-size: 1.1rem;
    margin: 0.75rem 1rem 0.25rem 1rem;
}

.session-card p {
    margin: 0 1rem 1rem 1rem;
    font-size: 0.95rem;
}

/* =========================
   Tableau (schedule)
   ========================= */

.schedule-table {
    width: 100%;
    max-width: 900px;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

.schedule-table th,
.schedule-table td {
    border: 1px solid #d1d5db;
    padding: 0.6rem 0.8rem;
    text-align: left;
}

.schedule-table thead {
    background-color: #111827;
    color: #f9fafb;
}

/* =========================
   Vidéo / iframe
   ========================= */

.media-section {
    text-align: center;
}

.video-wrapper {
    position: relative;
    max-width: 900px;
    margin: 1.5rem auto 0 auto;
    padding-top: 56.25%; /* 16:9 */
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* =========================
   À propos / Contact
   ========================= */

.about-section {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
}

.about-image {
    flex: 1 1 260px;
}

.about-image img {
    width: 100%;
    border-radius: 0.75rem;
}

.about-text {
    flex: 2 1 320px;
}

.about-text ul {
    margin-left: 1.2rem;
    margin-top: 0.5rem;
}

.about-text li {
    margin-bottom: 0.3rem;
}

/* Mise en page contact */

.contact-section {
    padding-bottom: 4rem;
}

.contact-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1.5rem;
}

.contact-form {
    flex: 1 1 280px;
    background-color: #1f2937;
    padding: 1.5rem;
    border-radius: 0.75rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border-radius: 0.4rem;
    border: 1px solid #4b5563;
    background-color: #020617;
    color: #e5e7eb;
}

/* Contact info + map */

.contact-info {
    flex: 1 1 280px;
}

.map-wrapper {
    margin: 1rem 0;
    border-radius: 0.75rem;
    overflow: hidden;
}

.map-wrapper iframe {
    width: 100%;
    height: 220px;
    border: none;
}

/* Boîte avec overflow (scroll) */

.scroll-box {
    max-height: 160px;
    overflow-y: auto; /* Overflow */
    padding: 0.75rem;
    background-color: #020617;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

/* =========================
   Footer
   ========================= */

.site-footer {
    text-align: center;
    padding: 1rem;
    background-color: #020617;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* =========================
   Responsive Design
   ========================= */

/* Desktop par défaut, ajustements pour tablettes / mobiles */

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* Grid responsive */
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .about-section {
        flex-direction: column;
    }

    .contact-layout {
        flex-direction: column;
    }

    .site-header {
        position: relative; /* Sur mobile, on peut éviter le fixed si tu veux, mais on le garde ici */
    }
}

@media (max-width: 480px) {
    .logo span {
        font-size: 0.95rem;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }
}
