/* CSS Document */
/* =====================================================
   MÉDIATION ADMINISTRATIVE — DROIT FRANÇAIS
   style.css — Feuille de styles principale
   ===================================================== */

/* -- Variables ---------------------------------------- */
:root {
  --bleu-rf:       #003189;   /* Bleu République Française */
  --bleu-clair:    #e8edf8;
  --rouge-rf:      #c1002b;
  --or:            #b8982a;
  --texte:         #1a1a2e;
  --texte-leger:   #4a4a6a;
  --fond:          #f9f9fc;
  --fond-card:     #ffffff;
  --bordure:       #d0d5e8;
  --font-titre:    'Cormorant Garamond', Georgia, serif;
  --font-corps:    'Source Serif 4', Georgia, serif;
  --font-ui:       'Outfit', sans-serif;
  --radius:        4px;
  --shadow:        0 2px 12px rgba(0,49,137,.09);
  --transition:    .25s ease;
}

/* -- Reset & base ------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-corps);
  font-size: 1.05rem;
  color: var(--texte);
  background: var(--fond);
  margin: 0;
  line-height: 1.75;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-titre);
  font-weight: 600;
  color: var(--bleu-rf);
  line-height: 1.25;
}

a {
  color: var(--bleu-rf);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--rouge-rf); text-decoration: underline; }

/* -- Barre tricolore en haut -------------------------- */
.bandeau-rf {
  height: 5px;
  background: linear-gradient(90deg, #002395 33.33%, #ffffff 33.33% 66.66%, #ed2939 66.66%);
}

/* -- Navbar ------------------------------------------- */
.navbar {
  background: var(--bleu-rf) !important;
  border-bottom: 3px solid var(--or);
  font-family: var(--font-ui);
  letter-spacing: .03em;
}

.navbar-brand {
  font-family: var(--font-titre);
  font-size: 1.35rem;
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.navbar-brand .marianne {
  font-size: 1.5rem;
}

.navbar-nav .nav-link {
  color: rgba(255,255,255,.85) !important;
  font-size: .92rem;
  padding: .5rem 1rem !important;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  background: rgba(255,255,255,.15);
  color: #fff !important;
}

/* -- Hero --------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--bleu-rf) 0%, #001a5c 100%);
  color: #fff;
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero h1, h2 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}
.hero .lead {
  color: rgba(255,255,255,.8);
  font-family: var(--font-ui);
  font-size: 1.05rem;
}
.hero .badge-rf {
  display: inline-block;
  background: var(--or);
  color: var(--bleu-rf);
  font-family: var(--font-ui);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 2px;
  margin-bottom: 1.2rem;
}

/* -- Cartes ------------------------------------------- */
.card-theme {
  background: var(--fond-card);
  border: 1px solid var(--bordure);
  border-top: 3px solid var(--bleu-rf);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
}
.card-theme:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0,49,137,.14);
}
.card-theme .card-body { padding: 1.5rem; }
.card-theme .card-title {
  font-family: var(--font-titre);
  font-size: 1.2rem;
  color: var(--bleu-rf);
  margin-bottom: .5rem;
}
.card-theme .card-icon {
  font-size: 1.8rem;
  margin-bottom: .8rem;
  display: block;
}

/* -- Section ------------------------------------------ */
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  border-bottom: 2px solid var(--or);
  padding-bottom: .5rem;
  margin-bottom: 1.5rem;
}

/* -- Table des matières ------------------------------- */
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc-counter;
}
.toc-list > li {
  counter-increment: toc-counter;
  border-bottom: 1px solid var(--bordure);
  padding: .6rem 0;
}
.toc-list > li > a::before {
  content: counter(toc-counter) ". ";
  color: var(--or);
  font-weight: 700;
}
.toc-list ul {
  list-style: disc;
  padding-left: 1.8rem;
  margin: .4rem 0 0;
}
.toc-list ul li { font-size: .95rem; padding: .2rem 0; }

/* -- Encadrés juridiques ------------------------------ */
.encadre {
  border-left: 4px solid var(--bleu-rf);
  background: var(--bleu-clair);
  padding: 1rem 1.2rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  font-size: .97rem;
}
.encadre.encadre-loi { border-color: var(--or); background: #fdf8ed; }
.encadre.encadre-attention { border-color: var(--rouge-rf); background: #fdeef1; }

.encadre-label {
  font-family: var(--font-ui);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .4rem;
}

/* -- Footer ------------------------------------------- */
footer {
  background: var(--bleu-rf);
  color: rgba(255,255,255,.75);
  font-family: var(--font-ui);
  font-size: .88rem;
  padding: 2.5rem 0 1.5rem;
  border-top: 3px solid var(--or);
}
footer h6 {
  color: #fff;
  font-family: var(--font-titre);
  font-size: 1.05rem;
  margin-bottom: .8rem;
}
footer a { color: rgba(255,255,255,.7); }
footer a:hover { color: var(--or); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top: 1.5rem;
  padding-top: 1rem;
  text-align: center;
  font-size: .82rem;
}
/* Mention Agent-Ready dans le footer */
.badge-agent-ready {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px;
  padding: .25rem .75rem;
  font-size: .78rem;
  color: rgba(255,255,255,.8);
  margin-top: .5rem;
}

/* -- Utilitaires -------------------------------------- */
.text-or { color: var(--or); }
.text-rf { color: var(--bleu-rf); }
.bg-rf-clair { background: var(--bleu-clair); }

