/* ═══════════════════════════════════════
   MEDOC LONG RANGE — Feuille de style
   ═══════════════════════════════════════ */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

/* ── Navigation ───────────────────────── */
header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.6rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover { color: #ff6b35; }
.nav-links a.active { color: #ff6b35; }

/* ── Hamburger mobile ─────────────────── */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

/* ── Boutons ──────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.9rem 1.8rem;
    margin: 0.4rem;
    background-color: #ff6b35;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
}

.btn:hover { background-color: #e55a25; transform: translateY(-2px); }
.btn:disabled { background-color: #aaa; cursor: not-allowed; transform: none; }

/* ── Hero ─────────────────────────────── */
.hero {
    position: relative;
    color: white;
    text-align: center;
    padding: 12rem 2rem;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
        url(../Images/Img2.png);
    background-size: cover;
    background-position: center;
    filter: blur(6px);
    transform: scale(1.1);
    z-index: 0;
}

.hero * { position: relative; z-index: 1; }
.hero h1 { font-size: 2.8rem; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; margin-bottom: 2rem; }

/* ── Présentation accueil ─────────────── */
.presentation-stand { background: #f5f5f5; padding: 4rem 2rem; }

.presentation-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.presentation-container h2 { font-size: 2rem; margin-bottom: 2rem; color: #1a1a1a; }
.presentation-container p { font-size: 1.05rem; margin-bottom: 1.5rem; color: #444; line-height: 1.8; }
.presentation-container a:not(.btn) { color: #ff6b35; }

/* ── Cards accueil ────────────────────── */
.sections {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover { transform: translateY(-5px); }
.card h3 { margin-bottom: 1rem; color: #1a1a1a; }

/* ── Footer ───────────────────────────── */
footer {
    background: #1a1a1a;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    font-size: 0.9rem;
}

/* ── Page À propos ────────────────────── */
.apropos-header {
    background: #1a1a1a;
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.apropos-header h1 { font-size: 2.2rem; margin-bottom: 0.5rem; }
.apropos-header p { color: #aaa; font-size: 1.05rem; }

.apropos-content {
    max-width: 960px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.apropos-content p {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.9;
    margin-bottom: 1.4rem;
}

.apropos-content strong { color: #1a1a1a; }

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    margin: 3rem 0;
}

.photo-grid img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    transition: transform 0.3s;
}

.photo-grid img:hover { transform: scale(1.02); }

.photo-grid img.large {
    grid-column: span 2;
    height: 320px;
}

/* ── Formulaire d'inscription ─────────── */
.formulaire {
    max-width: 540px;
    margin: 3rem auto;
    padding: 2rem;
}

.formulaire h1 { margin-bottom: 1.5rem; color: #1a1a1a; font-size: 1.8rem; }

.formulaire form { display: flex; flex-direction: column; gap: 1rem; }

.formulaire label { font-weight: bold; font-size: 0.95rem; color: #444; }

.formulaire input[type="text"],
.formulaire input[type="email"] {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.formulaire input[type="text"]:focus,
.formulaire input[type="email"]:focus { outline: none; border-color: #ff6b35; }

/* ── Page header ──────────────────────── */
.page-header { background: #f5f5f5; padding: 3rem 2rem; text-align: center; border-bottom: 1px solid #e0e0e0; }
.page-header h1 { font-size: 2rem; color: #1a1a1a; margin-bottom: 0.5rem; }
.page-header p { color: #666; font-size: 1.05rem; }

/* ── Workflow info ────────────────────── */
.workflow-info { max-width: 860px; margin: 2rem auto 0; padding: 0 2rem; }

.workflow-info .info-box {
    background: #fff8f5;
    border: 1px solid #ffd5c2;
    border-radius: 8px;
    padding: 1.2rem 1.5rem;
    font-size: 0.95rem;
    color: #7a3a1a;
    line-height: 1.7;
}

.workflow-info .info-box strong { display: block; margin-bottom: 0.4rem; font-size: 1rem; }

/* ── Sessions calendrier ──────────────── */
.sessions-container {
    max-width: 860px;
    margin: 2rem auto 3rem;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.session-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    border-left: 5px solid #ff6b35;
    transition: box-shadow 0.3s;
}

.session-card.complet { border-left-color: #aaa; opacity: 0.75; }
.session-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.13); }

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.4rem 1.8rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.session-info h3 { font-size: 1.1rem; color: #1a1a1a; margin-bottom: 0.2rem; }
.session-info .horaire { color: #666; font-size: 0.95rem; }

.session-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.spots-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    white-space: nowrap;
}

.spots-badge.dispo  { background: #e6f5ee; color: #1a7a46; }
.spots-badge.limite { background: #fff3e0; color: #b36000; }
.spots-badge.complet { background: #f0f0f0; color: #888; }

/* Formulaire intégré calendrier */
.inscription-form { display: none; padding: 1.5rem 1.8rem; background: #fafafa; border-top: 1px solid #f0f0f0; }
.inscription-form.visible { display: block; }
.inscription-form h4 { margin-bottom: 1.2rem; color: #1a1a1a; font-size: 1rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.85rem; color: #555; font-weight: bold; }
.form-group input {
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
}
.form-group input:focus { outline: none; border-color: #ff6b35; }

.form-actions { display: flex; gap: 0.8rem; margin-top: 1.2rem; flex-wrap: wrap; }

.btn-annuler {
    background: none;
    border: 1px solid #ccc;
    color: #666;
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: inherit;
    transition: background 0.2s;
}
.btn-annuler:hover { background: #f0f0f0; }

.btn-submit {
    padding: 0.7rem 1.8rem;
    background-color: #ff6b35;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: inherit;
    transition: background-color 0.2s;
}
.btn-submit:hover { background-color: #e55a25; }

.confirmation-msg { display: none; padding: 1.2rem 1.8rem; background: #e6f5ee; border-top: 1px solid #c3e6d3; }
.confirmation-msg.visible { display: block; }
.confirmation-msg p { color: #1a7a46; font-size: 0.97rem; }
.confirmation-msg strong { display: block; font-size: 1.05rem; margin-bottom: 0.3rem; }

/* ═══════════════════════════════════════
   PAGE CONNEXION
   ═══════════════════════════════════════ */
body.page-connexion {
    background: #0f0f0f;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.site-logo { font-size: 1.4rem; font-weight: bold; color: #e8e8e8; margin-bottom: 2rem; text-align: center; }
.site-logo a { color: inherit; text-decoration: none; transition: opacity 0.2s; }
.site-logo a:hover { opacity: 0.75; }

.login-card {
    background: #1a1a1a;
    border: 1px solid #2e2e2e;
    border-radius: 14px;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
}

.card-title { font-size: 1.25rem; font-weight: bold; color: #fff; margin-bottom: 0.3rem; }
.card-sub { font-size: 0.87rem; color: #888; margin-bottom: 2rem; }

.field-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.field-group label { font-size: 0.82rem; color: #aaa; font-weight: normal; }
.field-group input {
    padding: 0.75rem 1rem;
    background: #111;
    border: 1px solid #333;
    border-radius: 7px;
    color: #e8e8e8;
    font-size: 0.97rem;
    font-family: inherit;
    transition: border-color 0.2s;
}
.field-group input:focus { outline: none; border-color: #ff6b35; }

.btn-main {
    width: 100%;
    padding: 0.85rem;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 7px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    margin-top: 0.4rem;
    transition: background 0.2s, transform 0.15s;
}
.btn-main:hover { background: #e55a25; transform: translateY(-1px); }
.btn-main:active { transform: none; }

.error-msg {
    display: none;
    background: #2a1414;
    border: 1px solid #5a2020;
    color: #e05555;
    font-size: 0.85rem;
    padding: 0.7rem 1rem;
    border-radius: 7px;
    margin-top: 1rem;
}

.success-msg {
    display: none;
    background: #1a3a28;
    border: 1px solid #1a5c35;
    color: #4caf80;
    font-size: 0.85rem;
    padding: 0.7rem 1rem;
    border-radius: 7px;
    margin-top: 1rem;
}

.separator { display: flex; align-items: center; gap: 1rem; margin: 1.8rem 0 1.4rem; }
.separator::before, .separator::after { content: ''; flex: 1; height: 1px; background: #2e2e2e; }
.separator span { font-size: 0.78rem; color: #555; white-space: nowrap; }

.secondary-actions { display: flex; flex-direction: column; gap: 0.7rem; }

.btn-secondary {
    width: 100%;
    padding: 0.75rem;
    background: none;
    border: 1px solid #2e2e2e;
    border-radius: 7px;
    color: #ccc;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    display: block;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: #555; color: #fff; background: #222; }

.btn-secondary.admin { border-color: #3a2a10; color: #e8a030; }
.btn-secondary.admin:hover { border-color: #e8a030; background: #2a1e08; }

.back-link { margin-top: 2rem; font-size: 0.83rem; color: #555; text-align: center; }
.back-link a { color: #888; text-decoration: none; transition: color 0.2s; }
.back-link a:hover { color: #e8e8e8; }

/* ═══════════════════════════════════════
   PAGE ADMIN
   ═══════════════════════════════════════ */
body.page-admin { background: #0f0f0f; color: #e8e8e8; min-height: 100vh; }

#login-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 2rem; }

.login-box {
    background: #1a1a1a;
    border: 1px solid #2e2e2e;
    border-radius: 12px;
    padding: 2.5rem;
    width: 100%;
    max-width: 380px;
}

.login-logo { text-align: center; font-size: 1.5rem; font-weight: bold; margin-bottom: 0.3rem; color: #e8e8e8; }
.login-sub { text-align: center; color: #888; font-size: 0.85rem; margin-bottom: 2rem; }

.login-box label { display: block; font-size: 0.85rem; color: #aaa; margin-bottom: 0.4rem; font-weight: normal; }

.login-box input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    color: #e8e8e8;
    font-size: 1rem;
    font-family: inherit;
    margin-bottom: 1.2rem;
    transition: border-color 0.2s;
}
.login-box input[type="password"]:focus { outline: none; border-color: #ff6b35; }

.btn-login {
    width: 100%;
    padding: 0.85rem;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-login:hover { background: #e55a25; }

.login-error { color: #e05555; font-size: 0.85rem; text-align: center; margin-top: 0.8rem; display: none; }
.login-back { margin-top: 1.5rem; text-align: center; font-size: 0.83rem; }
.login-back a { color: #888; text-decoration: none; transition: color 0.2s; }
.login-back a:hover { color: #e8e8e8; }

#admin-screen { display: none; }

.admin-header {
    background: #1a1a1a;
    border-bottom: 1px solid #2e2e2e;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.admin-header .logo { font-size: 1.1rem; font-weight: bold; color: #e8e8e8; }
.admin-header .logo span { color: #ff6b35; }

.admin-header-actions { display: flex; align-items: center; gap: 0.8rem; }

.btn-home {
    background: none;
    border: 1px solid #333;
    color: #aaa;
    padding: 0.4rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}
.btn-home:hover { border-color: #ff6b35; color: #ff6b35; }

.btn-logout {
    background: none;
    border: 1px solid #444;
    color: #aaa;
    padding: 0.4rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    transition: all 0.2s;
}
.btn-logout:hover { border-color: #888; color: #e8e8e8; }

.admin-main { max-width: 1000px; margin: 0 auto; padding: 2rem 2rem; }

.tabs { display: flex; gap: 0.5rem; margin-bottom: 2rem; border-bottom: 1px solid #2e2e2e; flex-wrap: wrap; }

.tab-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 0.9rem;
    font-family: inherit;
    padding: 0.6rem 1.1rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s;
    white-space: nowrap;
}
.tab-btn.active { color: #ff6b35; border-bottom-color: #ff6b35; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.section-title { font-size: 1.2rem; font-weight: bold; margin-bottom: 1.5rem; color: #fff; }

.add-session-box {
    background: #1a1a1a;
    border: 1px solid #2e2e2e;
    border-radius: 10px;
    padding: 1.8rem;
    margin-bottom: 2rem;
}

.add-session-box h3 { color: #aaa; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.78rem; margin-bottom: 1.2rem; }

.form-row-admin { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 1rem; align-items: end; }

.form-row-admin .field-group { margin-bottom: 0; }
.form-row-admin .field-group label { font-size: 0.78rem; color: #888; display: block; margin-bottom: 0.3rem; }
.form-row-admin .field-group input {
    padding: 0.6rem 0.9rem;
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    color: #e8e8e8;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s;
    width: 100%;
}
.form-row-admin .field-group input:focus { outline: none; border-color: #ff6b35; }

.btn-add {
    padding: 0.6rem 1.3rem;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.btn-add:hover { background: #e55a25; }

.session-list { display: flex; flex-direction: column; gap: 1rem; }

.admin-session-card { background: #1a1a1a; border: 1px solid #2e2e2e; border-radius: 10px; overflow: hidden; }
.admin-session-card.passee { opacity: 0.45; border-left: 3px solid #444; }

.admin-session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.admin-session-info h3 { font-size: 1rem; color: #fff; margin-bottom: 0.2rem; }
.admin-session-info .meta { font-size: 0.85rem; color: #888; }

.admin-session-actions { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }

.badge-places { font-size: 0.82rem; padding: 0.3rem 0.8rem; border-radius: 20px; font-weight: bold; white-space: nowrap; }
.badge-places.ok   { background: #1a3a28; color: #4caf80; }
.badge-places.low  { background: #3a2a10; color: #e8a030; }
.badge-places.full { background: #2a2a2a; color: #888; }
.badge-passee { font-size: 0.78rem; padding: 0.2rem 0.7rem; border-radius: 20px; background: #2a2a2a; color: #666; white-space: nowrap; }

.btn-voir, .btn-edit {
    background: none;
    border: 1px solid #444;
    color: #ccc;
    padding: 0.4rem 0.9rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.82rem;
    font-family: inherit;
    transition: all 0.2s;
}
.btn-voir:hover { border-color: #888; color: #fff; }
.btn-edit:hover { border-color: #ff6b35; color: #ff6b35; }

.btn-delete {
    background: none;
    border: 1px solid #5a2020;
    color: #e05555;
    padding: 0.4rem 0.9rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.82rem;
    font-family: inherit;
    transition: all 0.2s;
}
.btn-delete:hover { background: #5a2020; color: #fff; }

/* Panel modifier session */
.edit-session-panel {
    display: none;
    padding: 1.2rem 1.5rem;
    background: #111;
    border-top: 1px solid #2e2e2e;
    gap: 0.8rem;
    flex-wrap: wrap;
    align-items: flex-end;
}
.edit-session-panel.visible { display: flex; }
.edit-session-panel .field-group { flex: 1; min-width: 120px; }
.edit-session-panel .field-group label { font-size: 0.78rem; color: #888; display: block; margin-bottom: 0.3rem; }
.edit-session-panel .field-group input {
    width: 100%;
    padding: 0.5rem 0.8rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 5px;
    color: #e8e8e8;
    font-size: 0.9rem;
    font-family: inherit;
}
.edit-session-panel .field-group input:focus { outline: none; border-color: #ff6b35; }

.btn-save {
    padding: 0.5rem 1.2rem;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    font-weight: bold;
    transition: background 0.2s;
    white-space: nowrap;
}
.btn-save:hover { background: #e55a25; }

/* Inscriptions panel */
.inscriptions-panel { display: none; background: #111; border-top: 1px solid #2e2e2e; padding: 1.2rem 1.5rem; }
.inscriptions-panel.visible { display: block; }
.inscriptions-panel h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: #666; margin-bottom: 1rem; }

.inscription-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0;
    border-bottom: 1px solid #1e1e1e;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.inscription-row:last-child { border-bottom: none; }

.inscription-identity { font-size: 0.92rem; color: #ccc; }
.inscription-email    { font-size: 0.82rem; color: #888; }

.inscription-status { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }

.status-badge { font-size: 0.75rem; padding: 0.2rem 0.7rem; border-radius: 20px; font-weight: bold; }
.status-badge.attente { background: #3a2a10; color: #e8a030; }
.status-badge.valide  { background: #1a3a28; color: #4caf80; }
.status-badge.refuse  { background: #2a1414; color: #e05555; }

.btn-valider {
    background: none;
    border: 1px solid #1a5c35;
    color: #4caf80;
    padding: 0.3rem 0.7rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: inherit;
    transition: all 0.2s;
}
.btn-valider:hover { background: #1a5c35; }

.btn-refuser {
    background: none;
    border: 1px solid #5a2020;
    color: #e05555;
    padding: 0.3rem 0.7rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: inherit;
    transition: all 0.2s;
}
.btn-refuser:hover { background: #5a2020; }

.btn-devalider {
    background: none;
    border: 1px solid #3a2a10;
    color: #e8a030;
    padding: 0.3rem 0.7rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: inherit;
    transition: all 0.2s;
}
.btn-devalider:hover { background: #3a2a10; }

.btn-envoyer-mail {
    background: none;
    border: 1px solid #1a3a5c;
    color: #4a9fe8;
    padding: 0.3rem 0.7rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: inherit;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}
.btn-envoyer-mail:hover { background: #1a3a5c; }

.no-inscriptions { color: #555; font-size: 0.9rem; font-style: italic; padding: 0.5rem 0; }

.all-inscriptions { display: flex; flex-direction: column; gap: 0.8rem; }

.all-insc-card {
    background: #1a1a1a;
    border: 1px solid #2e2e2e;
    border-radius: 8px;
    padding: 1rem 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.all-insc-left .name   { font-size: 0.95rem; color: #e8e8e8; }
.all-insc-left .detail { font-size: 0.82rem; color: #888; margin-top: 0.15rem; }

.empty-state { text-align: center; color: #555; padding: 3rem; font-style: italic; }

/* Modale admin */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 1000; align-items: center; justify-content: center; }
.modal-overlay.visible { display: flex; }

.modal-box {
    background: #1a1a1a;
    border: 1px solid #2e2e2e;
    border-radius: 12px;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    margin: 1rem;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-box h3 { color: #fff; margin-bottom: 1.2rem; font-size: 1.1rem; }
.modal-box p  { color: #aaa; font-size: 0.9rem; margin-bottom: 1rem; line-height: 1.6; }

.modal-box .info-ligne {
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 0.8rem 1rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: #e8e8e8;
}
.modal-box .info-ligne span { color: #ff6b35; font-weight: bold; }

.modal-actions { display: flex; gap: 0.8rem; margin-top: 1.5rem; flex-wrap: wrap; }

.btn-mail {
    flex: 1;
    padding: 0.75rem 1rem;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;
}
.btn-mail:hover { background: #e55a25; }

.btn-fermer {
    padding: 0.75rem 1rem;
    background: none;
    border: 1px solid #444;
    color: #aaa;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.btn-fermer:hover { border-color: #888; color: #fff; }

.pwd-box {
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    color: #4caf80;
    font-weight: bold;
    letter-spacing: 0.05em;
    margin: 0.5rem 0 1rem;
}

.realtime-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4caf80;
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse 2s infinite;
}

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ═══════════════════════════════════════
   RESPONSIVE MOBILE
   ═══════════════════════════════════════ */
@media (max-width: 768px) {

    /* Nav mobile */
    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1a1a1a;
        padding: 1rem 2rem 1.5rem;
        gap: 1rem;
        border-top: 1px solid #2e2e2e;
        z-index: 99;
    }

    .nav-links.open { display: flex; }
    header { position: relative; }

    /* Hero */
    .hero { padding: 6rem 1.5rem; }
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 1rem; }
    .btn { padding: 0.75rem 1.4rem; font-size: 0.9rem; }

    /* Sections */
    .sections { grid-template-columns: 1fr; padding: 0 1rem; }
    .presentation-stand { padding: 2.5rem 1.5rem; }
    .presentation-container h2 { font-size: 1.6rem; }

    /* À propos */
    .photo-grid { grid-template-columns: 1fr; }
    .photo-grid img.large { grid-column: span 1; height: 240px; }

    /* Formulaire */
    .formulaire { padding: 1.5rem 1rem; }

    /* Calendrier */
    .sessions-container { padding: 0 1rem; }
    .session-header { flex-direction: column; align-items: flex-start; }
    .session-actions { width: 100%; justify-content: space-between; }
    .form-row { grid-template-columns: 1fr; }
    .workflow-info { padding: 0 1rem; margin-top: 1.5rem; }

    /* Page header */
    .page-header { padding: 2rem 1rem; }
    .page-header h1 { font-size: 1.6rem; }

    /* Admin */
    .admin-main { padding: 1.5rem 1rem; }
    .form-row-admin { grid-template-columns: 1fr 1fr; }
    .btn-add { grid-column: span 2; }
    .admin-session-header { flex-direction: column; align-items: flex-start; }
    .admin-session-actions { width: 100%; flex-wrap: wrap; }
    .all-insc-card { flex-direction: column; align-items: flex-start; }
    .inscription-row { flex-direction: column; align-items: flex-start; }

    /* Connexion */
    body.page-connexion { padding: 1.5rem 1rem; }
    .login-card { padding: 1.8rem 1.5rem; }
}

@media (max-width: 480px) {
    .logo { font-size: 1.2rem; }
    .hero h1 { font-size: 1.5rem; }
    .tabs { gap: 0; }
    .tab-btn { padding: 0.5rem 0.7rem; font-size: 0.8rem; }
    .admin-header { padding: 0.8rem 1rem; }
}

/* ═══════════════════════════════════════
   PAGE 404
   ═══════════════════════════════════════ */
.error-page {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
}

.error-code {
    font-size: 7rem;
    font-weight: bold;
    color: #ff6b35;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-title {
    font-size: 1.6rem;
    color: #1a1a1a;
    margin-bottom: 0.8rem;
}

.error-text {
    font-size: 1rem;
    color: #888;
    margin-bottom: 2.5rem;
    max-width: 420px;
}

/* ═══════════════════════════════════════
   PAGE MON COMPTE
   ═══════════════════════════════════════ */
.compte-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.compte-header h1 { font-size: 1.8rem; margin-bottom: 0.3rem; }
.compte-header p  { color: #aaa; font-size: 0.95rem; }

.compte-main {
    max-width: 760px;
    margin: 2.5rem auto 3rem;
    padding: 0 2rem;
}

.compte-section-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.resa-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    padding: 1.2rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    border-left: 4px solid #ff6b35;
}

.resa-card.passee   { border-left-color: #ccc; opacity: 0.7; }
.resa-card.valide   { border-left-color: #4caf80; }
.resa-card.refuse   { border-left-color: #e05555; }

.resa-info h3       { font-size: 1rem; color: #1a1a1a; margin-bottom: 0.2rem; }
.resa-info .horaire { font-size: 0.88rem; color: #888; }

.resa-status {
    font-size: 0.82rem;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    font-weight: bold;
    white-space: nowrap;
}

.resa-status.en_attente { background: #fff3e0; color: #b36000; }
.resa-status.valide     { background: #e6f5ee; color: #1a7a46; }
.resa-status.refuse     { background: #fde8e8; color: #a33; }

.empty-resa {
    text-align: center;
    color: #aaa;
    padding: 3rem;
    font-style: italic;
    background: #fafafa;
    border-radius: 10px;
}

.compte-info-box {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 1.4rem 1.6rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.compte-info-box .info-ligne      { font-size: 0.95rem; color: #555; }
.compte-info-box .info-ligne strong { color: #1a1a1a; }

.btn-deconnexion {
    background: none;
    border: 1px solid #ddd;
    color: #888;
    padding: 0.5rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.2s;
}
.btn-deconnexion:hover { border-color: #e05555; color: #e05555; }

.section-gap { margin-top: 2.5rem; }

/* ═══════════════════════════════════════
   PAGE PARTENAIRES
   ═══════════════════════════════════════ */

.partenaires-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 3.5rem 2rem;
    text-align: center;
}

.partenaires-header h1 { font-size: 2rem; margin-bottom: 0.4rem; }
.partenaires-header p  { color: #aaa; font-size: 1rem; }

.partenaires-grid {
    max-width: 960px;
    margin: 3rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.partenaire-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.09);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.partenaire-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 24px rgba(0,0,0,0.14);
}

.partenaire-banner {
    background: #0a0a0a;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.partenaire-banner img {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
        }

.partenaire-banner .partenaire-nom {
    color: white;
    font-size: 1.4rem;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.partenaire-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.partenaire-body h3 {
    font-size: 1.1rem;
    color: #1a1a1a;
    margin-bottom: 0.3rem;
}

.partenaire-body p {
    font-size: 0.92rem;
    color: #666;
    line-height: 1.7;
    flex: 1;
}

.partenaire-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.partenaire-tag {
    background: #f5f5f5;
    color: #555;
    font-size: 0.78rem;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
}

.partenaire-footer {
    padding: 0 1.5rem 1.5rem;
}

.partenaire-footer a {
    display: block;
    text-align: center;
    padding: 0.75rem;
    background: #ff6b35;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background 0.2s;
}

.partenaire-footer a:hover { background: #e55a25; }

.partenaire-contact {
    font-size: 0.85rem;
    color: #888;
    margin-top: 0.5rem;
    text-align: center;
}

@media (max-width: 600px) {
    .partenaires-grid { grid-template-columns: 1fr; }
}