/* Global */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #000000;
    background: #ffffff;
}
a { text-decoration: none; color: inherit; }
a:hover { text-decoration: underline; }

/* Header */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: linear-gradient(90deg, #FF0000, #001aff);
    transition: top 0.3s;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 20px;
}
.logo-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-title img { max-width: 70px; height: auto; }
.logo-title h1 { font-size: 1.8rem; color: #fff; }

/* Navigation */
nav {
    display: flex;
    gap: 20px;
    transition: max-height 0.3s ease;
    overflow: hidden;
}
nav a {
    color: #fff;
    padding: 10px 15px;
    font-weight: 500;
    display: block;
    border-radius: 6px;
    transition: background 0.3s;
}
nav a:hover { background: rgba(255, 255, 255, 0.1); }
nav a.cta { background: #fff; color: #0400ff; font-weight: 700; text-align: center; }
nav a.cta:hover { background: #e0e0e0; }

/* Onglet actif */
nav a.active { background: #0044ff; color: #fff; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}

/* Main */
main { max-width: 1200px; margin: 160px auto 2rem; padding: 0 2rem; }

/* Hero */
.hero {
    background-color: #030558;
    color: #fff;
    border-radius: 10px;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.hero h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.hero p { color: #b8b7b7; font-size: 1.1rem; margin-bottom: 1.5rem; }
.hero img { max-width: 100%; height: auto; border-radius: 16px; }

/* Flex-block */
.flex-block { display: flex; gap: 20px; align-items: center; }
.flex-block img { max-width: 300px; height: auto; }
.flex-block .text { flex: 1; }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.card {
    background-color: #1c0580;
    color: #fff;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.card img { width: 100%; height: auto; object-fit: cover; border-radius: 8px; }
.card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }

/* Boutons dans les cards */
.hero a.btn {
    display: inline-block;
    background-color: #004080;
    color: #fff;
    border-radius: 12px;
    padding: 10px 20px;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
}
.hero a.btn:hover { background-color: #003366; transform: translateY(-2px); }

/* Footer */
footer {
    background: #222;
    color: #bbb;
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}
footer a { color: #bbb; }
footer a:hover { text-decoration: underline; }

/* Desktop */
@media(min-width: 769px){
    nav { display: flex !important; flex-direction: row; max-height: none; position: static; width: auto; }
    .hamburger { display: none; }
}

/* Mobile */
@media(max-width: 768px){
    .hamburger { display: flex; }
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100vw;
        background: #004080;
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 999;
    }
    nav.open { max-height: 1000px; }
    nav a { width: 100%; text-align: center; padding: 15px 0; }
    nav a.cta { width: 100%; margin: 0; }
    .flex-block { flex-direction: column; }
    main { padding: 0 1rem; }
    .hero h2 { font-size: 1.8rem; }
    .logo-title h1 { font-size: 1.5rem; }
}

/* Très petits écrans */
@media(max-width: 480px){
    .grid { grid-template-columns: 1fr; gap: 1rem; }
    .hero { padding: 2rem 1rem; }
    .card { padding: 1.5rem 1rem; }
}

/* Formulaire d'adhésion */
.contact-form {
    max-width: 600px;
    margin: 3rem auto;
    padding: 2.5rem;
    background: rgba(30,30,30,0.95);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    color: #fff;
    font-family: 'Segoe UI', sans-serif;
}
.contact-form h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.contact-form fieldset {
    border: 1px solid #333;
    border-radius: 12px;
    padding: 1.5rem;
    background: #1a1a1a;
}
.contact-form legend {
    padding: 0 10px;
    font-weight: 700;
    color: #ff6666;
}
.contact-form label { font-weight: 600; margin-bottom: 0.4rem; color: #ddd; }
.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 0.8rem;
    border-radius: 10px;
    border: 1px solid #333;
    background-color: #2a2a2a;
    color: #fff;
    width: 100%;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #aaa; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    box-shadow: 0 0 10px #1100ff;
    border-color: #0004ff;
    background-color: #3a3a3a;
}
.contact-form button {
    padding: 0.9rem;
    border-radius: 12px;
    border: none;
    background: linear-gradient(90deg, #1e1aff, #ff0000);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.contact-form button:hover {
    background: linear-gradient(90deg, #1e1aff, #ff0000);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 4, 255, 0.5);
}
.contact-form input[type="checkbox"] { width: auto; margin-right: 10px; accent-color: #2f00ff; }

/* Responsive formulaire */
@media(max-width:768px){
    .contact-form { padding: 1.5rem; margin: 2rem 1rem; }
}
@media(max-width:480px){
    .contact-form { padding: 1rem; margin: 2rem 0.5rem; }
}

/* Conteneur custom select */
.custom-select {
    position: relative;
    width: 100%;
    font-size: 1rem;
    user-select: none;
}

/* Sélection visible */
.select-selected {
    background-color: #2a2a2a;
    color: #fff;
    padding: 0.8rem;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid #333;
    transition: all 0.3s ease;
}
.select-selected:focus {
    outline: none;
    box-shadow: 0 0 10px #ffffff;
    transform: scale(1.02);
}

/* Liste des options */
.select-items {
    position: absolute;
    background-color: #2a2a2a;
    top: 100%;
    left: 0;
    right: 0;
    border-radius: 10px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    z-index: 99;
}

/* Option individuelle */
.select-items div {
    padding: 0.8rem;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}
.select-items div:hover {
    background-color: #3a3a3a;
}

/* Affichage menu déroulant */
.select-items.show {
    max-height: 500px;
    opacity: 1;
}