/* ================================
   CPAR – main.css
   Identity: Samaritan (titles), Balsamiq Sans (body)
   Colors: #FFFFFF, #000000, #1A3E71, #CDE2FF, #CBA961
   ================================ */

/* 1) Font faces — remplace les URLs par tes fichiers réels */
@font-face {
  font-family: "Samaritan";
  src: url("/assets/fonts/Samaritan.woff2") format("woff2"),
       url("/assets/fonts/Samaritan.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: fallback;
}

@font-face {
  font-family: "Balsamiq Sans";
  src: url("/assets/fonts/BalsamiqSans-Regular.woff2") format("woff2"),
       url("/assets/fonts/BalsamiqSans-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: fallback;
}
@font-face {
  font-family: "Balsamiq Sans";
  src: url("/assets/fonts/BalsamiqSans-Bold.woff2") format("woff2"),
       url("/assets/fonts/BalsamiqSans-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: fallback;
}

/* 2) Design tokens */
:root {
  /* Brand colors */
  --cpar-white: #FFFFFF;
  --cpar-black: #000000;
  --cpar-blue-700: #1A3E71;  /* primaire */
  --cpar-blue-100: #CDE2FF;  /* fond clair / hover */
  --cpar-gold: #CBA961;      /* accent */

  /* Text colors */
  --text: var(--cpar-black);
  --text-inverse: var(--cpar-white);
  --muted: color-mix(in srgb, var(--text) 65%, transparent);

  /* Surfaces */
  --bg: var(--cpar-white);
  --surface: #f7f9fc;
  --border: color-mix(in srgb, var(--cpar-blue-700) 20%, #ffffff 80%);

  /* Effects */
  --shadow: 0 8px 24px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.06);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;

  /* Typography */
  --font-display: "Samaritan", Georgia, "Times New Roman", serif;
  --font-body: "Balsamiq Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Sizing (fluid scale) */
  --step--1: clamp(0.85rem, 0.80rem + 0.2vw, 0.95rem);
  --step-0: clamp(1.00rem, 0.95rem + 0.4vw, 1.10rem);
  --step-1: clamp(1.30rem, 1.10rem + 0.9vw, 1.60rem);
  --step-2: clamp(1.70rem, 1.30rem + 1.4vw, 2.10rem);
  --step-3: clamp(2.10rem, 1.60rem + 2.0vw, 2.70rem);
  --step-4: clamp(2.60rem, 2.00rem + 2.6vw, 3.40rem);
}

/* 3) Reset chic (sans casser les formulaires) */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
}
img, svg, video, canvas { max-width: 100%; height: auto; }
a { color: var(--cpar-blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--cpar-gold); outline-offset: 2px; }

/* 4) Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 0.4em;
  line-height: 1.15;
  color: var(--cpar-blue-700);
}
h1 { font-size: var(--step-4); letter-spacing: 0.5px; }
h2 { font-size: var(--step-3); letter-spacing: 0.3px; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { margin: 0 0 1rem; }
.small { font-size: var(--step--1); color: var(--muted); }
.lead { font-size: var(--step-1); color: color-mix(in srgb, var(--text) 85%, transparent); }

/* 5) Layout helpers */
.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
  padding-block: 2rem;
}
.grid {
  display: grid;
  gap: 1.2rem;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* 6) Components */
/* Header / Nav */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--cpar-white);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(1.2) blur(6px);
}
.navbar .inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.8rem 0;
}
.navbar a.brand {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem);
  color: var(--cpar-blue-700);
}
.navbar .menu { display: flex; gap: 1rem; align-items: center; }
.navbar .menu a {
  padding: .5rem .8rem; border-radius: var(--radius-sm);
}
.navbar .menu a:hover {
  background: var(--cpar-blue-100);
  text-decoration: none;
}

/* Hero */
.hero {
  background:
    radial-gradient(1200px 400px at 10% -10%, var(--cpar-blue-100), transparent 60%),
    radial-gradient(900px 300px at 90% -20%, color-mix(in srgb, var(--cpar-gold) 35%, white), transparent 60%),
    var(--bg);
  padding: clamp(2.5rem, 5vw, 5rem) 0;
}
.hero .title { margin-bottom: .6rem; }
.hero .subtitle { color: var(--muted); max-width: 60ch; }

/* Cards */
.card {
  background: var(--cpar-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}
.card--soft {
  background: linear-gradient(180deg, #fff, var(--cpar-blue-100));
}

/* Buttons */
.btn {
  --_bg: var(--cpar-blue-700);
  --_fg: var(--cpar-white);
  --_bd: var(--cpar-blue-700);

  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .7rem 1rem;
  border: 2px solid var(--_bd);
  background: var(--_bg); color: var(--_fg);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none; cursor: pointer;
  transition: transform .06s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--secondary {
  --_bg: var(--cpar-gold);
  --_bd: var(--cpar-gold);
  --_fg: var(--cpar-black);
}
.btn--outline {
  --_bg: transparent;
  --_fg: var(--cpar-blue-700);
  --_bd: var(--cpar-blue-700);
}
.btn--ghost {
  --_bg: transparent;
  --_fg: var(--cpar-black);
  --_bd: transparent;
}
.btn--light {
  --_bg: var(--cpar-blue-100);
  --_fg: var(--cpar-blue-700);
  --_bd: var(--cpar-blue-100);
}

/* Badges / Tags */
.tag {
  display: inline-block;
  padding: .25rem .6rem;
  border-radius: 999px;
  background: var(--cpar-blue-100);
  color: var(--cpar-blue-700);
  font-weight: 700;
  font-size: .85em;
}
.tag--gold { background: color-mix(in srgb, var(--cpar-gold) 22%, white); color: #6b520e; }

/* Forms */
.input, select, textarea {
  width: 100%;
  padding: .8rem .9rem;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--cpar-white);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  font: inherit;
}
.input:focus, select:focus, textarea:focus {
  border-color: var(--cpar-blue-700);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--cpar-blue-100) 80%, transparent);
}

/* Links */
.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 700;
}
.link-arrow::after {
  content: "→";
  transition: transform .2s ease;
}
.link-arrow:hover::after { transform: translateX(3px); }

/* Footer */
.footer {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--cpar-blue-100), transparent);
  padding: 2rem 0;
  color: color-mix(in srgb, var(--cpar-blue-700) 85%, black);
}

/* 7) Tables (si besoin) */
.table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.table th, .table td {
  text-align: left;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
}
.table thead th {
  background: var(--cpar-blue-700);
  color: var(--cpar-white);
  font-family: var(--font-display);
}
.table tr:nth-child(even) td { background: #fafcff; }

/* 8) Utilities */
.mt-0{margin-top:0}.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}
.mb-0{margin-bottom:0}.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}
.p-0{padding:0}.p-1{padding:.5rem}.p-2{padding:1rem}.p-3{padding:1.5rem}
.center { text-align: center; }
.maxw-60ch { max-width: 60ch; }
.hidden { display: none !important; }

/* 9) Optional dark mode (si tu veux un thème sombre) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0f14;
    --text: #e7ecf2;
    --surface: #121722;
    --border: #1f2740;
    --shadow: 0 10px 30px rgba(0,0,0,.5);
  }
  body { background: var(--bg); color: var(--text); }
  .navbar, .card { background: var(--surface); border-color: var(--border); }
  .hero {
    background:
      radial-gradient(1200px 400px at 10% -10%, rgba(205,226,255,.12), transparent 60%),
      radial-gradient(900px 300px at 90% -20%, rgba(203,169,97,.12), transparent 60%),
      var(--bg);
  }
  .table thead th { background: color-mix(in srgb, var(--cpar-blue-700) 75%, black); }
}

/* Logo en haut à droite */
.navbar .logo {
  height: 25%;
  width: 25%;
}

/* Image principale (affiche) */
.main-image {
  margin-top: 2rem;
  max-width: 600px;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Image des horaires */
.schedule-image {
  margin-top: 2rem;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Light gray background section */
.second-section {
    background-color: var(--cpar-blue-100);
}

.center {
    align-items: center;
    text-align: center;
}

/* ================================
   ADMIN LOGIN REDIRECT
   ================================ */
.admin-layout--login {
  background: linear-gradient(135deg, var(--cpar-blue-700) 0%, #0f2a4d 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-login-redirect {
  width: 100%;
  max-width: 500px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.redirect-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(26, 62, 113, 0.3);
  padding: 3rem 2rem;
  text-align: center;
  animation: slideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.redirect-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
}

.redirect-card h1 {
  font-size: 1.8rem;
  color: var(--cpar-blue-700);
  margin: 0 0 0.5rem 0;
}

.redirect-card p {
  color: var(--muted);
  font-size: 1rem;
  margin: 0 0 2rem 0;
}

.btn-redirect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--cpar-blue-700), #0f2a4d);
  color: white;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

.btn-redirect:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(26, 62, 113, 0.35);
  text-decoration: none;
}

.btn-redirect .icon {
  font-size: 1.1em;
}

/* ================================
   TOPBAR - Navigation moderne
   ================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(26, 62, 113, 0.08);
  transition: all 0.3s ease;
}

.topbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.topbar-left {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.topbar-brand:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.topbar-logo {
  height: 45px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.topbar-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--cpar-blue-700);
  font-weight: 700;
  letter-spacing: 0.3px;
  display: none;
}

@media (min-width: 640px) {
  .topbar-title {
    display: block;
  }
}

.topbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.toggle-line {
  width: 100%;
  height: 3px;
  background: var(--cpar-blue-700);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.topbar-toggle.active .toggle-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.topbar-toggle.active .toggle-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.topbar-toggle.active .toggle-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.topbar-menu {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 1.5rem);
}

.topbar-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

.topbar-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--cpar-blue-700);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.topbar-link:hover {
  background: var(--cpar-blue-100);
  color: var(--cpar-blue-700);
  text-decoration: none;
  transform: translateY(-1px);
}

.topbar-link:hover::before {
  width: 80%;
}

.topbar-link.active {
  background: linear-gradient(135deg, var(--cpar-blue-700), var(--cpar-blue-700));
  color: white;
}

.topbar-link.active .link-icon {
  filter: brightness(0) invert(1);
}

.topbar-link--admin {
  background: linear-gradient(135deg, var(--cpar-gold), #b89550);
  color: var(--cpar-black);
}

.topbar-link--admin:hover {
  background: linear-gradient(135deg, #d4af6f, var(--cpar-gold));
  color: var(--cpar-black);
}

  .topbar-link--login {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
  }

  .topbar-link--login:hover {
    background: linear-gradient(135deg, #229954, #1e8449);
    color: white;
  }

  .topbar-link--logout {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
  }

  .topbar-link--logout:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
  }

  .topbar-logout-form {
    display: contents;
  }

/* Responsive Menu */
@media (max-width: 900px) {
  .topbar-toggle {
    display: flex;
  }

  .topbar-menu {
    position: fixed;
    top: 70px;
    right: 0;
    width: 100%;
    max-width: 320px;
    height: calc(100vh - 70px);
    background: white;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
  }

  .topbar-menu.active {
    transform: translateX(0);
  }

  .topbar-link {
    padding: 1rem 1.2rem;
    border-radius: 12px;
    justify-content: flex-start;
  }

  .topbar-link::before {
    display: none;
  }
}

/* ================================
   FOOTER - Footer moderne
   ================================ */
.footer-main {
  margin-top: 5rem;
  position: relative;
  background: linear-gradient(180deg, var(--cpar-blue-700) 0%, #0f2a4d 100%);
  color: white;
}

.footer-wave {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 100px;
  overflow: hidden;
  line-height: 0;
}

.footer-wave svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 100px;
}

.footer-content {
  position: relative;
  padding-top: 80px;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem 2rem;
  padding-bottom: 3rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-about {
  grid-column: span 1;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-logo h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: white;
  margin: 0;
}

.footer-description {
  color: var(--cpar-blue-100);
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
  font-size: 0.95rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--cpar-gold);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(203, 169, 97, 0.4);
}

.footer-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: white;
  margin: 0 0 1rem 0;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--cpar-blue-100);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.footer-links a::before {
  content: '→';
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: white;
  transform: translateX(4px);
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--cpar-blue-100);
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-icon {
  font-size: 1.2em;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact a {
  color: var(--cpar-blue-100);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: white;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.5rem 0;
  background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  color: var(--cpar-blue-100);
  font-size: 0.9rem;
  margin: 0;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.footer-legal a {
  color: var(--cpar-blue-100);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: white;
  text-decoration: underline;
}

.footer-legal .separator {
  color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-wave {
    height: 60px;
  }

  .footer-wave svg {
    height: 60px;
  }

  .footer-content {
    padding-top: 50px;
  }

  .footer-logo img {
    height: 40px;
  }

  .footer-logo h3 {
    font-size: 1.2rem;
  }
}

/* ================================
   HOME PAGE STYLES
   ================================ */

/* Hero moderne avec gradient animé */
.hero {
  position: relative;
  background: linear-gradient(135deg, #1a3e71 0%, #0f2a4d 50%, #1e4976 100%);
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(203, 169, 97, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(205, 226, 255, 0.08) 0%, transparent 50%);
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.8; transform: translateY(-20px); }
}

.hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero__content {
  max-width: 850px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__title {
  color: #ffffff !important;
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 0.5rem;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero__tagline {
  color: #CBA961 !important;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero__subtitle {
  color: #ffffff !important;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
  margin: 0 auto 2.5rem;
  max-width: 700px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section--soft {
  background: linear-gradient(180deg, rgba(26, 62, 113, 0.03) 0%, rgba(203, 169, 97, 0.03) 100%);
  color: var(--text);
}

.section--soft .section__title,
.section--soft h2,
.section--soft h3 {
  color: var(--cpar-blue-700);
}

.section--soft .muted {
  color: var(--muted);
}

.section--blue {
  background: linear-gradient(135deg, #1a3e71, #1e4976);
  color: #ffffff !important;
}

.section--blue * {
  color: inherit;
}

.section--blue .muted {
  color: rgba(255, 255, 255, 0.9) !important;
}

.section--blue .section__title,
.section--blue h2,
.section--blue h3 {
  color: #ffffff !important;
}

.section--blue .section__subtitle {
  color: #CBA961 !important;
}

.section--blue .section__lead {
  color: rgba(255, 255, 255, 0.95) !important;
}

.section--rounded {
  border-radius: 24px;
  margin: 3rem auto;
  max-width: 1140px;
}

.section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--cpar-blue-700);
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.section__title--light {
  color: white;
}

.section__subtitle {
  color: var(--cpar-gold);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.section__lead {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.section--blue .section__lead {
  color: rgba(255, 255, 255, 0.95);
}

/* Layout */
.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  align-items: center;
}

.two-col--wide {
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .cards-2, .cards-3 {
    grid-template-columns: 1fr;
  }
}

/* Cards améliorées */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(26, 62, 113, 0.15);
}

.card--center {
  text-align: center;
  padding: 2.5rem 2rem;
}

/* Tips cards avec bordures colorées */
.tip {
  position: relative;
  overflow: hidden;
}

.tip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: currentColor;
}

.tip--gold { color: var(--cpar-gold); }
.tip--blue { color: var(--cpar-blue-700); }
.tip--cyan { color: #3498db; }
.tip--green { color: #2ecc71; }

.tip h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.tip--gold h3 { color: var(--cpar-gold); }
.tip--blue h3 { color: var(--cpar-blue-700); }
.tip--cyan h3 { color: #3498db; }
.tip--green h3 { color: #2ecc71; }

.tip p {
  color: var(--text);
  margin: 0;
}

/* Emojis */
.emoji {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.emoji-sm {
  font-size: 1.8rem;
}

/* Quote */
.quote {
  background: linear-gradient(135deg, rgba(203, 169, 97, 0.1), rgba(26, 62, 113, 0.05));
  padding: 1.5rem 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--cpar-gold);
  margin: 2rem 0;
}

.quote p {
  font-style: italic;
  color: var(--cpar-gold);
  font-weight: 600;
  margin: 0;
  font-size: 1.1rem;
}

/* Image avec effet */
.image-card {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(26, 62, 113, 0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.image-card:hover {
  transform: scale(1.03) rotate(1deg);
  box-shadow: 0 40px 80px rgba(26, 62, 113, 0.25);
}

/* Panel pour l'offre */
.panel {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.panel--gold {
  border: 2px solid #CBA961;
}

.panel__big {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #ffffff !important;
}

.panel__text {
  color: rgba(255, 255, 255, 0.95) !important;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* FAQ */
.faq__item {
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 3px solid #CBA961;
  transition: transform 0.2s ease, background 0.2s ease;
}

.faq__item:hover {
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.08);
}

.faq__q,
.faq__a {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.faq__a {
  margin-bottom: 0;
}

.faq__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.faq__badge--q {
  background: linear-gradient(135deg, #CBA961, #d4b66f);
  color: #1a3e71;
  box-shadow: 0 4px 12px rgba(203, 169, 97, 0.3);
}

.faq__badge--a {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.faq__q {
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff !important;
  line-height: 1.5;
}

.faq__q span:last-child {
  color: #ffffff;
}

.faq__a {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85) !important;
  line-height: 1.7;
  font-size: 1rem;
}

.faq__a span:last-child {
  color: rgba(255, 255, 255, 0.9);
}

/* CTA */
.cta {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta__title {
  color: white;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.cta__text {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.15rem;
  line-height: 1.7;
  margin: 0 auto 2rem;
  max-width: 600px;
}

/* Boutons spéciaux pour hero/CTA */
.btn--light {
  background: white;
  color: var(--cpar-blue-700);
  border-color: white;
  font-weight: 700;
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn--light:hover {
  background: var(--cpar-gold);
  color: white;
  border-color: var(--cpar-gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn--outline-light {
  background: transparent;
  color: white;
  border-color: white;
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn--outline-light:hover {
  background: white;
  color: var(--cpar-blue-700);
  transform: translateY(-2px);
}

/* Text utilities */
.text-lg {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.muted {
  color: var(--muted);
  line-height: 1.7;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }
  
  .hero {
    min-height: 500px;
  }
  
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero__actions .btn {
    width: 100%;
  }
}

/* ================================
   DARK MODE – overrides additionnels
   ================================ */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0f14;
    --text: #e7ecf2;
    --surface: #121722;
    --border: #1f2740;
    --shadow: 0 10px 30px rgba(0,0,0,.5);

    --cpar-white: #121722;
    --cpar-black: #0c0f14;
    --cpar-blue-100: #1e2a44;
  }

  body { color-scheme: dark; }

  a { color: color-mix(in srgb, var(--cpar-blue-700) 85%, white); }

  .navbar {
    background: var(--surface);
    border-bottom-color: var(--border);
  }

  .card,
  .card--soft,
  .table,
  .table tr:nth-child(even) td {
    background: var(--surface);
  }

  .card--soft {
    background: linear-gradient(180deg, #0f1420, #182033);
  }

  .tag {
    background: #1d2a45;
    color: #cfe0ff;
  }

  .tag--gold {
    background: color-mix(in srgb, var(--cpar-gold) 18%, #0c0f14);
    color: #f0d9a2;
  }

  .input,
  select,
  textarea {
    background: #0f1420;
    border-color: var(--border);
    color: var(--text);
  }

  .input:focus,
  select:focus,
  textarea:focus {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--cpar-blue-700) 35%, transparent);
  }

  .btn--ghost {
    --_fg: var(--text);
  }

  .btn--light {
    background: #1a2436;
    color: #cfe0ff;
    border-color: #1a2436;
  }

  .second-section {
    background-color: #141c2b;
  }

  .topbar {
    background: rgba(12, 15, 20, 0.9);
    border-bottom-color: var(--border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  }

  .topbar-link {
    color: var(--text);
  }

  .topbar-link:hover {
    background: color-mix(in srgb, var(--cpar-blue-700) 25%, transparent);
    color: var(--text);
  }

  .topbar-link::before {
    background: var(--cpar-gold);
  }

  .topbar-menu {
    background: #0f1420;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.35);
  }

  .toggle-line {
    background: var(--text);
  }

  .topbar-title {
    color: #cfe0ff;
  }

  .footer-description,
  .footer-links a,
  .footer-contact li,
  .footer-contact a,
  .footer-copyright,
  .footer-legal a {
    color: #b8cff7;
  }

  .footer-links a:hover,
  .footer-contact a:hover,
  .footer-legal a:hover {
    color: #ffffff;
  }

  .redirect-card {
    background: #101624;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  }
}

