/* =========================
   DOCTRINES.CSS (moderne)
   ========================= */

:root{
  --bg-img: url("bg_Parole.png");
  --panel: rgba(255,255,255,.92);
  --panel2: rgba(255,255,255,.78);
  --text: #1f2937;
  --muted: #4b5563;
  --link: #1d4ed8;
  --linkHover: #b91c1c;
  --border: rgba(0,0,0,.10);
  --shadow: 0 14px 40px rgba(0,0,0,.25);
  --shadow2: 0 8px 20px rgba(0,0,0,.18);
  --radius: 16px;
  --radius2: 14px;
}

/* Base */
*{ box-sizing: border-box; }
html, body{ height:100%; }
body{
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.65;
  background: var(--bg-img) repeat;
}

/* Neutralise les vieux <center> sans casser */
center{ display:block; text-align:center; }

/* Layout global */
#main{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Conteneur 3 colonnes (garde ton HTML) */
.container{
  flex: 1;
  display: grid;
  grid-template-columns: 1fr minmax(0, 980px) 1fr;
  gap: 0;
  padding: 18px 16px 28px;
}

.sidebar-left,
.sidebar-right{
  /* ces zones sont vides chez toi, mais on les garde pour centrer */
  min-width: 0;
}

.content{
  grid-column: 2;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(16px, 2.8vw, 28px);
  overflow: hidden;
}

/* Titres */
h1{
  margin: 0 0 14px;
  font-weight: 900;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.9px;
  color: #111827;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

/* Ta classe existante sur le h1 */
.textShadow2{
  text-shadow: 0 1px 0 rgba(255,255,255,.75);
}

h1::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  height:4px;
  width:min(420px, 100%);
  border-radius: 999px;
  background: linear-gradient(90deg, #375594, #c01818, transparent);
  box-shadow: 0 10px 26px rgba(55,85,148,.20);
}

/* Paragraphes */
p{
  margin: 0 0 14px;
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--muted);
}

/* Liens */
a{
  color: var(--link);
  text-decoration: none;
  text-underline-offset: 3px;
}
a:hover{
  color: var(--linkHover);
  text-decoration: underline;
}

/* Image principale */
img{
  max-width: 100%;
  height: auto;
  display: block;
}
.shadow{
  border-radius: var(--radius2);
  box-shadow: var(--shadow2);
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
}

/* Mise en valeur des phrases importantes */
.ombre{
  display: inline;
  color: #111827;
  font-weight: 700;
  padding: 0 .2em;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(55,85,148,.18), rgba(192,24,24,.12));
}

/* Tables de vidéos (tu as des <table align=center>) */
table{
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
}
td{
  text-align: center;
  padding: 0;
}

/* Vidéos responsive + jolies */
video{
  width: min(100%, 860px);
  height: auto;
  border-radius: var(--radius2);
  box-shadow: var(--shadow2);
  border: 1px solid rgba(0,0,0,.15);
  background: #0b0f19;
}

/* Petite séparation “respirante” */
.content > p:has(img),
.content > center:has(img){
  margin-bottom: 16px;
}

/* Footer moderne */
footer{
  padding: 18px 12px;
  background: rgba(17,24,39,.94);
  border-top: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

footer p{
  margin: 0;
  color: rgba(255,255,255,.86);
  font-size: 16px;
  line-height: 1.4;
}

footer a{
  color: #e7e5e4;
  font-weight: 800;
  letter-spacing: .2px;
}
footer a:hover{
  color: #fff;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px){
  .container{
    grid-template-columns: 1fr;
    padding: 14px 12px 24px;
  }
  .content{
    grid-column: 1;
  }
  h1{
    display:block;
    text-align:center;
  }
  h1::after{
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 520px){
  .content{
    padding: 14px;
    border-radius: 14px;
  }
  p{
    font-size: 17px;
  }
  video{
    width: 100%;
  }
}

/* Accessibilité: réduit les animations si demandé */
@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior: auto !important; transition: none !important; }
}


.article-layout{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
  margin-top: 10px;
}

.article-main{
  min-width: 0;
}

.article-aside{
  position: sticky;
  top: 18px;
  align-self: start;
}

/* Hero image */
.hero{
  display: grid;
  place-items: center;
  margin: 10px 0 18px;
}
.hero img{
  width: min(720px, 100%);
}

/* Sections */
.article-main h2{
  margin: 22px 0 10px;
  font: 800 22px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: -0.3px;
  color: #111827;
  position: relative;
  padding-left: 12px;
}
.article-main h2::before{
  content:"";
  position:absolute;
  left:0;
  top: 0.12em;
  bottom: 0.12em;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #375594, #c01818);
  box-shadow: 0 6px 16px rgba(55,85,148,.18);
}

/* Cards */
.card{
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
  padding: 14px 14px 12px;
  margin-bottom: 14px;
}

.card-title{
  font: 900 14px/1.1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: #111827;
  opacity: .85;
  margin-bottom: 10px;
}

/* Facts list */
.facts{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.facts li{
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.03);
}

.facts .k{
  font: 800 12px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: rgba(17,24,39,.72);
}

.facts .v{
  font: 650 14px/1.25 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #111827;
}

.card-note{
  margin-top: 10px;
  font-size: 14px;
  color: rgba(17,24,39,.78);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.badge{
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(192,24,24,.12);
  border: 1px solid rgba(192,24,24,.22);
}

/* TOC */
.toc-list{
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}
.toc-list a{
  color: #1f2937;
  text-decoration: none;
  font: 650 14px/1.25 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.toc-list a:hover{
  color: #c01818;
  text-decoration: underline;
}
.toc-empty{
  display: none;
  margin-top: 6px;
  font-size: 13px;
  color: rgba(17,24,39,.65);
}
.toc code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

/* Share buttons (cohérents) */
.sharebar{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.share-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(0,0,0,.04);
  color: #111827;
  font: 800 13px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: .2px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.share-btn:hover{
  transform: translateY(-1px);
  background: rgba(0,0,0,.06);
  box-shadow: 0 10px 20px rgba(0,0,0,.12);
}
.share-btn:active{ transform: translateY(0); }

.share-btn.facebook{
  border-color: rgba(24,119,242,.28);
  background: rgba(24,119,242,.10);
}
.share-btn.twitter{
  border-color: rgba(0,0,0,.22);
  background: rgba(0,0,0,.06);
}
.share-btn.copy{
  border-color: rgba(55,85,148,.28);
  background: rgba(55,85,148,.10);
}

/* Responsive : aside passe sous l’article */
@media (max-width: 980px){
  .article-layout{
    grid-template-columns: 1fr;
  }
  .article-aside{
    position: static;
  }
}