/* ============================================================
   CSE ACADEM'IA — Patch de conformité (styles)
   Couvre : footer légal, bandeau cookies, pages légales, modal
   Palette : MARINE #1A2744, ROUGE #C8102E, CRÈME #FAF7F2, GRIS #757575
   ============================================================ */

/* ───── FOOTER LÉGAL ───── */
.cse-footer {
  background: #1A2744;
  color: rgba(255,255,255,0.85);
  padding: 48px 24px 24px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  margin-top: 80px;
}
.cse-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.cse-footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 16px;
  font-family: 'Playfair Display', serif;
}
.cse-footer-col a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  display: block;
  padding: 6px 0;
  transition: color 0.2s;
  font-size: 0.85rem;
}
.cse-footer-col a:hover {
  color: #fff;
}
.cse-footer-brand img {
  width: 56px;
  height: auto;
  margin-bottom: 16px;
  filter: brightness(1.2);
}
.cse-footer-brand p {
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  font-size: 0.82rem;
}
.cse-footer-bar {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
}
@media (max-width: 900px) {
  .cse-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .cse-footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ───── BANDEAU COOKIES ───── */
.cse-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1A2744;
  color: #fff;
  padding: 20px 24px;
  z-index: 99999;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Montserrat', sans-serif;
}
.cse-cookie-banner.show { transform: translateY(0); }
.cse-cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.cse-cookie-text {
  flex: 1;
  min-width: 260px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
}
.cse-cookie-text strong { color: #fff; }
.cse-cookie-text a {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
}
.cse-cookie-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cse-cookie-btn {
  padding: 11px 22px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s;
}
.cse-cookie-btn:hover { transform: translateY(-1px); }
.cse-cookie-btn-accept {
  background: #C8102E;
  color: #fff;
}
.cse-cookie-btn-accept:hover { background: #E0142F; }
.cse-cookie-btn-reject {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.cse-cookie-btn-reject:hover { background: rgba(255,255,255,0.18); }
.cse-cookie-btn-settings {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.cse-cookie-btn-settings:hover { color: #fff; border-color: rgba(255,255,255,0.5); }
@media (max-width: 680px) {
  .cse-cookie-inner { flex-direction: column; align-items: stretch; }
  .cse-cookie-buttons { justify-content: stretch; }
  .cse-cookie-btn { flex: 1; min-width: 0; }
}

/* ───── PAGES LÉGALES ───── */
.cse-legal-page {
  min-height: 100vh;
  background: #FAF7F2;
  font-family: 'Montserrat', sans-serif;
  color: #2C2C2C;
}
.cse-legal-header {
  background: #1A2744;
  color: #fff;
  padding: 64px 24px 48px;
  text-align: center;
}
.cse-legal-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0 0 12px;
}
.cse-legal-header p {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  margin: 0;
}
.cse-legal-container {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 24px 96px;
  line-height: 1.75;
  font-size: 0.95rem;
}
.cse-legal-container h2 {
  font-family: 'Playfair Display', serif;
  color: #1A2744;
  font-size: 1.5rem;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid #C8102E;
  display: inline-block;
}
.cse-legal-container h3 {
  color: #1A2744;
  font-size: 1.08rem;
  font-weight: 700;
  margin: 28px 0 10px;
}
.cse-legal-container p { margin: 0 0 14px; color: #2C2C2C; }
.cse-legal-container ul { margin: 0 0 16px 20px; padding: 0; }
.cse-legal-container li { margin-bottom: 6px; }
.cse-legal-container strong { color: #1A2744; }
.cse-legal-container a { color: #C8102E; text-decoration: underline; }
.cse-legal-placeholder {
  color: #C8102E;
  font-weight: 700;
  font-family: monospace;
  background: #FFEBEE;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.88em;
}
.cse-legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  color: #C8102E;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.9rem;
}
.cse-legal-back:hover { text-decoration: underline; }
.cse-legal-updated {
  font-size: 0.82rem;
  color: #757575;
  font-style: italic;
  margin-bottom: 32px;
}
.cse-legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.88rem;
}
.cse-legal-table th, .cse-legal-table td {
  border: 1px solid #DDD;
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
.cse-legal-table th {
  background: #1A2744;
  color: #fff;
  font-weight: 600;
}
.cse-legal-table tr:nth-child(even) td { background: #F8F5F0; }
.cse-legal-callout {
  background: #FFF8E1;
  border-left: 4px solid #E65100;
  padding: 14px 18px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
}
.cse-legal-callout strong { color: #E65100; }
