/* ============================================================
   associations/page.css — Styles partagés pour les pages asso
   ============================================================ */

a {
    text-decoration: none;
    color: inherit;
}

.admin-bar {
    position: sticky;
    top: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 500;
}

.admin-bar span { opacity: 0.7; }

.admin-bar a {
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    background: rgba(255,255,255,0.12);
    text-decoration: none;
    transition: background 0.15s;
}

.admin-bar a:hover { background: rgba(255,255,255,0.25); }

/* ── Bouton crayon (style LinkedIn) ─────────────────────────── */
.edit-zone { position: relative; }

.edit-pencil {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #fff;
    border: 1.5px solid #ddd;
    border-radius: 50%;
    color: #555;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    text-decoration: none;
    transition: all 0.18s;
    cursor: pointer;
}

.edit-pencil:hover {
    background: #379CD0;
    color: #fff;
    border-color: #379CD0;
    transform: scale(1.08);
}

/* ── Messages flash ─────────────────────────────────────────── */
.messages-wrap {
    max-width: 920px;
    margin: 10px auto;
    padding: 0 20px;
}

.flash {
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
}

.flash--error { background: #ffebee; border-color: #f44336; }
.flash--warning { background: #fff8e1; border-color: #ff9800; }
.flash--info { background: #e3f2fd; border-color: #2196f3; }

/* ── Boutons inline ─────────────────────────────────────────── */
.btn-edit-inline {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 18px;
    background: #379CD0;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.18s;
}

.btn-edit-inline:hover { background: #2a7db0; }

.btn-follow {
    padding: 8px 20px;
    border-radius: 20px;
    border: 2px solid rgba(255,255,255,0.8);
    background: transparent;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.18s;
    font-family: inherit;
}

.btn-follow:hover { background: rgba(255,255,255,0.2); }

.btn-follow--active {
    background: rgba(255,255,255,0.25);
}

/* ── Assohead (header de l'association) ─────────────────────── */
assohead {
    display: block;
    width: 100%;
    color: white;
    padding: 40px 0;
}

assohead .container { max-width: 900px; margin: 0 auto; padding: 0 20px; }

.assohead-inner {
    display: flex;
    align-items: center;
    gap: 30px;
}

.assohead-logo-wrap {
    flex-shrink: 0;
}

.assohead-logo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.3);
}

.assohead-logo--placeholder {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    font-weight: 900;
    color: rgba(255,255,255,0.85);
    border: 4px solid rgba(255,255,255,0.2);
}

assohead infos {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

assohead infos h2 {
    margin: 0;
    font-size: 2.8rem;
    font-weight: 800;
}

assohead infos p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.4;
    opacity: 0.9;
}

.assohead-tagline {
    font-style: italic;
}

.assohead-campus {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(255,255,255,0.2);
    width: fit-content;
}

.assohead-follow { margin-top: 4px; }

/* ── Assodetails ────────────────────────────────────────────── */
assodetails {
    display: block;
    width: 100%;
    padding: 40px 0;
    color: #222;
}

assodetails .container {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 40px;
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

assodetails h3, assodetails h4 {
    margin-bottom: 20px;
    color: #379CD0;
    font-size: 2rem;
}

/* ── Menu de navigation ─────────────────────────────────────── */
.assodetails-menu {
    display: flex;
    justify-content: center;
    overflow-x: auto;
    gap: 20px;
    list-style: none;
    padding: 10px 0;
    scrollbar-width: none;
}

.assodetails-menu::-webkit-scrollbar { display: none; }

.assodetails-menu li {
    flex: 0 0 auto;
    width: 150px;
    text-align: center;
}

.assodetails-menu li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #222;
    font-weight: 500;
    transition: 0.2s;
    background: #f4f4f4;
    padding: 12px 10px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    height: 130px;
    gap: 8px;
}

.assodetails-menu li a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
    background: #fff;
}

.assodetails-menu li img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

/* ── Description complète ───────────────────────────────────── */
.asso-full-desc {
    line-height: 1.7;
    color: #333;
    font-size: 1rem;
}

/* ── Embed vidéo ────────────────────────────────────────────── */
.video-embed {
    position: relative;
    padding-top: 56.25%;
    border-radius: 12px;
    overflow: hidden;
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ── Stats ──────────────────────────────────────────────────── */
.assodetails-stats ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.assodetails-stats li {
    background: #f4f4f4;
    margin-bottom: 12px;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 500;
}

.assodetails-stats a {
    color: #379CD0;
    text-decoration: none;
    font-weight: 600;
}

.assodetails-stats a:hover { text-decoration: underline; }

/* ── Placeholder blocks ─────────────────────────────────────── */
.placeholder-block {
    text-align: center;
    padding: 50px 20px;
    color: #888;
}

.placeholder-block__icon {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin: 0 auto 16px;
    opacity: 0.5;
}
