/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* --- Stabilisation du header sur toutes les pages --- */
body {
  background: #fff;          /* même fond partout */
  padding-top: 85px;         /* espace réservé pour le header fixe */
}

.header {
  background: #fff !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f5f7;
    color: #333333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* === Header === */
.header {
    background-color:  #fff;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    transition: background-color 0.3s ease;
}

.header.scrolled {
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.header h1 {
    margin: 0;
    color: #000000;
    font-size: 1.5em;
    flex-shrink: 0;
}

.logo {
    height: 20px;
    vertical-align: middle;
}

/* === Navigation === */
.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    color: #000000;
    text-decoration: none;
    margin: 0 15px;
    padding: 5px 10px;
    font-size: 0.95em;
    font-weight: 500;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus {
    color: #cc0000;
    background-color: rgba(204, 0, 0, 0.1);
    border-radius: 4px;
    outline: none;
}

/* === Layout Accords === */
.page-accords {
    display: flex;
    gap: 20px;
    margin-top: 100px;
    padding: 20px;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

/* Sidebar catégories */
.sidebar {
    width: 280px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 20px;
    flex-shrink: 0;
}

.sidebar h2 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #cc0000;
    font-weight: 600;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-list li {
    list-style: none;
}

.category-list a {
    display: block;
    padding: 12px 15px;
    background: #f7f7f7;
    border-radius: 6px;
    color: #333;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.category-list a:hover {
    background: #fff;
    border: 1px solid #cc0000;
    box-shadow: 0 2px 8px rgba(204,0,0,0.15);
    transform: translateX(4px);
    color: #cc0000;
}

/* Zone de contenu accords */
.accords-content {
    flex: 1;
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    min-height: 400px;
}

.accords-content h1,
.accords-content h2 {
    margin-bottom: 20px;
    color: #222;
    font-weight: 600;
}

.accords-content p {
    margin-bottom: 20px;
    font-size: 1em;
    color: #555;
}

.accord-list {
    list-style: none;
    padding: 0;
}

.accord-list li {
    background: #fafafa;
    border: 1px solid #eee;
    border-left: 5px solid #cc0000;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    transition: all 0.25s ease;
}

.accord-list li:hover {
    background: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.accord-list a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
}

/* === Footer === */
.footer {
    background-color: #ffffff;
    padding: 20px;
    text-align: center;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
    width: 100%;
    margin-top: auto;
}

.footer h3 {
    color: #000000;
    margin: 0 0 10px;
    font-size: 1.2em;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
}

.footer ul li {
    display: inline;
    margin: 0 15px;
}

.footer ul li a {
    color: #000000;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer ul li a:hover {
    color: #cc0000;
    text-decoration: underline;
}

.footer p {
    margin: 0;
    font-size: 0.8em;
    color: #666;
}

/* === Responsive === */
@media (max-width: 900px) {
    .page-accords {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .header {
        padding: 10px;
        flex-direction: column;
    }

    .header h1 {
        margin-bottom: 10px;
    }

    .nav-links,
    .nav-links a {
        display: block;
        width: 100%;
        text-align: center;
        margin: 5px 0;
    }

    .nav-links a {
        padding: 10px;
    }

    .page-accords {
        margin-top: 120px;
        padding: 15px;
    }

    .footer {
        padding: 15px;
    }

    .footer ul li {
        display: block;
        margin: 5px 0;
    }

    .footer p {
        font-size: 0.75em;
    }
}


/* Bandeau adhérents — ultra compact */
.topbar{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.4rem;                 /* avant .6rem */
  background:#111;
  color:#fff;
  padding:2px 8px;           /* avant 8px 12px */
  border-bottom:1px solid #222;
  font-weight:700;
  font-size:.95rem;          /* avant .95rem */
  line-height:1.15;          /* compresse la hauteur */
  width:100%;
  white-space:nowrap;        /* évite le wrap sur grands écrans */
}
.topbar i{ font-size:.9rem; }                   /* icône plus fine */
.topbar .topbar-link,
.topbar a{ color:#fff; text-decoration:underline }

/* bouton fermer plus discret */
#topbarClose{
  margin-left:.4rem !important;
  background:none !important;
  border:0 !important;
  color:#fff !important;
  opacity:.65 !important;
  cursor:pointer !important;
  font-size:.9rem !important;
  line-height:1 !important;
  padding:0 !important;
}
#topbarClose:hover{ opacity:.9 !important; }

@media (max-width:768px){
  .topbar{ padding:2px 6px; font-size:.8rem; gap:.35rem; }
  #topbarClose{ font-size:.85rem !important; }
}


