/* Pages éditoriales — layout commun (main-read, back-bar, titres, levels) */

.logo-img {
  max-height: 48px;
  width: auto;
  height: auto;
  display: block;
}

.main-read{
  width: min(100% - 40px, 1100px);
  margin: 1.2rem auto 2rem;
  padding: 1.6rem;
  box-sizing: border-box;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(5,59,59,0.12);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}
.page-intro {
  margin-bottom: 1.25rem;
  padding-bottom: 1.15rem;
}
.page-intro .container {
  max-width: 100%;
  padding: 0;
}
.page-back-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 1rem;
}
.page-back-bar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-2);
  text-decoration: none;
  padding: 0.35rem 0.15rem 0.35rem 0;
  border-radius: 8px;
  transition: color 0.18s ease, transform 0.15s ease;
}
.page-back-bar__link:hover {
  color: var(--primary);
  transform: translateX(-2px);
}
.page-back-bar__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.page-back-bar__icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  opacity: 0.85;
}
.page-back-bar__sep {
  color: rgba(5, 59, 59, 0.35);
  font-weight: 600;
  user-select: none;
}
.page-back-bar__here {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}
.page-title{
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  color: var(--primary);
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
 .page-lead{font-size:1.05rem;line-height:1.65;color:#000;font-weight:600}
 .content-wrap { max-width: 1200px; margin: 0 auto; padding: 0 4px; box-sizing: border-box; }
 .content-grid{display:flex;gap:1.25rem;align-items:flex-start;max-width:1200px;margin:0 auto;padding:0}
 .content-grid--single .content-text{flex:1;min-width:0;max-width:100%}
 .content-text{flex:1}
 @media (max-width:900px){
   .content-grid{flex-direction:column;align-items:stretch}
 }
 /* Espacement et mise en forme des titres */
 .main-read h2{font-size:20px;color:var(--primary);margin-top:1.25rem}
 .main-read h3{margin-top:2rem;margin-bottom:0.85rem;line-height:1.3;font-size:1.05rem;color:var(--primary);font-weight:800}
 .content-text p{ text-align:justify; text-justify:inter-word; font-family:'Inter',system-ui,-apple-system,sans-serif; font-weight:300; color:#000; line-height:1.65; }
 .page-back-row {
   margin-top: 2.25rem;
   padding-top: 1.5rem;
   border-top: 1px solid rgba(5, 59, 59, 0.1);
   display: flex;
   justify-content: center;
 }
 .page-back-btn {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: 0.5rem;
   min-height: 48px;
   padding: 0 1.35rem;
   border-radius: 999px;
   border: 2px solid var(--primary-2);
   background: rgba(255, 255, 255, 0.95);
   color: var(--primary-2) !important;
   font-family: 'Inter', system-ui, sans-serif;
   font-size: 0.95rem;
   font-weight: 600;
   text-decoration: none;
   box-shadow: 0 4px 18px rgba(5, 59, 59, 0.08);
   transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
 }
 .page-back-btn:hover {
   background: var(--primary);
   color: #fff !important;
   border-color: var(--primary);
   transform: translateY(-2px);
   box-shadow: 0 10px 28px rgba(5, 59, 59, 0.14);
 }
 .page-back-btn:focus-visible {
   outline: none;
   box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.95), 0 0 0 6px rgba(2, 102, 102, 0.35);
 }
 .page-back-btn__icon {
   width: 1.15rem;
   height: 1.15rem;
   flex-shrink: 0;
 }

 /* Cards – niveaux de participation */
.levels-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 0.25rem;
}
@media (max-width: 900px){
  .levels-grid{ grid-template-columns: 1fr; }
}

.levels-grid + p {
  margin-top: 1.75rem;
}

.level-card{
  background: rgba(255,255,255,0.92);
  border: 2px solid #026666;
  border-radius: clamp(28px, 5vw, 40px);
  padding: 1rem 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.level-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #003333;
}

.level-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: .75rem;
  margin-bottom: .5rem;
}

.level-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(2,102,102,0.14);
  border: 1px solid rgba(5,59,59,0.14);
  color: var(--primary);
  font-weight: 800;
}

.level-title{
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.level-sub{
  margin: .1rem 0 0;
  color: var(--muted);
  font-weight: 600;
}

.level-card p{
  margin: .5rem 0 0;
  color: #000;
}
