/* ============================================================
   TCF — Styles responsives modernes
   Couleurs : #116BAC (primaire), #00ADCC, #94358A, #AFC6E9,
              #2F5597, #F8B606, #EF811A, #E52E2E
   ============================================================ */

/* --- Variables --- */
:root {
  --tcf-blue:       #116BAC;
  --tcf-blue-dark:  #2F5597;
  --tcf-cyan:       #00ADCC;
  --tcf-purple:     #94358A;
  --tcf-light-blue: #AFC6E9;
  --tcf-yellow:     #F8B606;
  --tcf-orange:     #EF811A;
  --tcf-red:        #E52E2E;
  --tcf-white:      #ffffff;
  --tcf-gray-bg:    #f4f7fb;
  --tcf-text:       #1a2e44;
  --tcf-shadow:     0 4px 24px rgba(17,107,172,0.13);
  --tcf-radius:     12px;
}

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

/* ============================================================
   WIDGET ACCESSIBILITÉ (flottant bas-droite)
   ============================================================ */
.tcf-a11y-bar {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(17,107,172,0.2);
  border-radius: 40px;
  padding: 6px 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.tcf-a11y-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--tcf-blue-dark);
  padding: 5px 9px;
  border-radius: 24px;
  line-height: 1;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}
.tcf-a11y-btn:hover  { background: var(--tcf-blue); color: #fff; }
.tcf-a11y-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.tcf-a11y-btn:disabled:hover { background: none; color: var(--tcf-blue-dark); }
.tcf-a11y-sep {
  width: 1px;
  height: 20px;
  background: rgba(17,107,172,0.2);
  margin: 0 2px;
}
#tcfNightToggle { font-size: 17px; padding: 4px 7px; }

/* ============================================================
   MODE NUIT
   ============================================================ */
body.tcf-night {
  --tcf-gray-bg:    #111827;
  --tcf-text:       #c8d6e5;
  --tcf-shadow:     0 4px 24px rgba(0,0,0,0.4);
  background: #111827;
}

/* Navbar nuit */
body.tcf-night .tcf-navbar {
  background: #0d1424;
}

/* Hero nuit - atténuer le gradient */
body.tcf-night .tcf-hero {
  background: linear-gradient(135deg, #0d1424 0%, #162850 60%, #0a3a52 100%);
}
body.tcf-night .tcf-logo-cartouche {
  background: #1e2d45;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
body.tcf-night .tcf-fei-cartouche {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
}

/* Cartes groupes nuit */
body.tcf-night .tcf-group-card {
  background: #1a2236;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}
body.tcf-night .tcf-group--irn .tcf-group-header    { background: linear-gradient(100deg, #1a2e5a, #253d72); }
body.tcf-night .tcf-group--tp .tcf-group-header     { background: linear-gradient(100deg, #0d3d6e, #1455a0); }
body.tcf-night .tcf-group--canada .tcf-group-header { background: linear-gradient(100deg, #005570, #007a96); }
body.tcf-night .tcf-group--qc      .tcf-group-header { background: linear-gradient(100deg, #4a1a47, #6e2869); }
body.tcf-night .tcf-group--civique .tcf-group-header { background: linear-gradient(100deg, #1a4d32, #25653f); }

/* Tableau nuit */
body.tcf-night .tcf-table thead tr {
  background: #151e30;
}
body.tcf-night .tcf-table thead td {
  color: #7ea8cc !important;
  background: #151e30 !important;
}
body.tcf-night .tcf-table tbody tr {
  border-bottom-color: #1e2d42;
}
body.tcf-night .tcf-table tbody tr:hover {
  background: #1e2d42;
}
body.tcf-night .tcf-table tbody td {
  color: #c8d6e5 !important;
  background: transparent !important;
}
body.tcf-night .tcf-table tbody td[title="location_summary"] {
  color: #8aa3bb !important;
}

/* Boutons nuit — légèrement atténués */
body.tcf-night .tcf-group--irn    .tcf-table .btn.inscription { background: #253d72; }
body.tcf-night .tcf-group--tp     .tcf-table .btn.inscription { background: #0d4d8a; }
body.tcf-night .tcf-group--canada .tcf-table .btn.inscription { background: #006a87; }
body.tcf-night .tcf-group--qc      .tcf-table .btn.inscription { background: #5a1f56; }
body.tcf-night .tcf-group--civique .tcf-table .btn.inscription { background: #1f5c3c; }

/* Mobile cartes nuit */
body.tcf-night .tcf-table tbody tr {
  background: #1a2236;
  border-color: #243350;
}
body.tcf-night .tcf-table tbody td[title="service_cca_web"] {
  background: #151e30 !important;
}

/* Widget nuit */
body.tcf-night .tcf-a11y-bar {
  background: rgba(26,34,54,0.95);
  border-color: rgba(126,168,204,0.2);
}
body.tcf-night .tcf-a11y-btn {
  color: #7ea8cc;
}
body.tcf-night .tcf-a11y-btn:hover { background: #0d3d6e; color: #c8d6e5; }
body.tcf-night .tcf-a11y-sep { background: rgba(126,168,204,0.2); }

/* Footer nuit */
body.tcf-night .tcf-footer {
  background: #0d1424;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--tcf-text);
  background: var(--tcf-gray-bg);
  margin: 0;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.tcf-navbar {
  background: var(--tcf-blue-dark);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.tcf-navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.tcf-navbar .navbar-brand img { height: 36px; }
.tcf-navbar-title {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  flex: 1;
  padding: 0 12px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tcf-navbar .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background 0.2s;
}
.tcf-navbar .nav-link:hover {
  background: rgba(255,255,255,0.12);
  color: #fff !important;
}

/* ============================================================
   HERO
   ============================================================ */
.tcf-hero {
  background: linear-gradient(135deg, var(--tcf-blue-dark) 0%, var(--tcf-blue) 60%, var(--tcf-cyan) 100%);
  padding: 56px 0 48px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tcf-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='%23ffffff' fill-opacity='0.04'%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/svg%3E");
}
.tcf-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.tcf-hero-logos {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.tcf-hero-logos img.logo-tcf {
  height: 80px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.25));
}
.tcf-hero-logos .logo-sep {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.35);
}
.tcf-hero-logos img.logo-fei {
  height: 48px;
  filter: brightness(0) invert(1) drop-shadow(0 2px 6px rgba(0,0,0,0.2));
  opacity: 0.92;
}
.tcf-hero h1 {
  font-size: clamp(18px, 3.5vw, 30px);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Cartouche blanc arrondi pour le logo TCF */
.tcf-logo-cartouche {
  background: #fff;
  border-radius: 18px;
  padding: 16px 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tcf-logo-cartouche img.logo-tcf {
  height: 80px;
}

/* Texte équivalence */
.tcf-hero-equiv {
  font-size: clamp(15px, 2.5vw, 22px);
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0;
  text-shadow: 0 2px 6px rgba(0,0,0,0.2);
  text-align: center;
}

/* Cartouche "Centre agréé FEI" */
.tcf-fei-cartouche {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.18);
  border: 2px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 12px 24px;
}
.tcf-fei-cartouche img.logo-fei {
  height: 40px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
  flex-shrink: 0;
}
.tcf-fei-cartouche span {
  color: #fff;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.3;
}

.tcf-hero .tcf-hint {
  font-size: 1rem;
  font-weight: 700;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 24px;
  padding: 10px 24px;
  margin: 0;
  color: #fff;
}

/* ============================================================
   CONTENU PRINCIPAL
   ============================================================ */
.tcf-content {
  padding: 40px 0 60px;
}

/* ============================================================
   GROUPES (sections par type d'examen)
   ============================================================ */
.tcf-group {
  margin-bottom: 36px;
}
.tcf-group-card {
  background: #fff;
  border-radius: var(--tcf-radius);
  box-shadow: var(--tcf-shadow);
  overflow: hidden;
}

/* En-têtes de groupe */
.tcf-group-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  color: #fff;
  position: relative;
}
.tcf-group-header .tcf-group-icon {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
}
.tcf-group-header h2 {
  font-size: clamp(13px, 2vw, 17px);
  font-weight: 700;
  letter-spacing: 0.035em;
  color: #fff !important;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.35;
}

/* Couleurs et accents par type */
.tcf-group--irn .tcf-group-header {
  background: linear-gradient(100deg, var(--tcf-blue-dark) 0%, #3d6db5 100%);
  border-left: 5px solid var(--tcf-yellow);
}
.tcf-group--tp .tcf-group-header {
  background: linear-gradient(100deg, var(--tcf-blue) 0%, #1a82cc 100%);
  border-left: 5px solid var(--tcf-light-blue);
}
.tcf-group--canada .tcf-group-header {
  background: linear-gradient(100deg, var(--tcf-cyan) 0%, #00b8db 100%);
  border-left: 5px solid var(--tcf-orange);
}
.tcf-group--qc .tcf-group-header {
  background: linear-gradient(100deg, var(--tcf-purple) 0%, #b04aaa 100%);
  border-left: 5px solid #d4a0d0;
}
.tcf-group--civique .tcf-group-header {
  background: linear-gradient(100deg, #2e7d52 0%, #3da068 100%);
  border-left: 5px solid #a8d5b8;
}

/* ============================================================
   TABLEAU
   ============================================================ */
.tcf-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tcf-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.875rem;
}
.tcf-table thead tr {
  background: var(--tcf-gray-bg);
  border-bottom: 2px solid var(--tcf-light-blue);
}
.tcf-table thead td {
  padding: 12px 16px;
  font-weight: 700 !important;
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--tcf-blue-dark) !important;
  background: var(--tcf-gray-bg) !important;
  white-space: nowrap;
}
.tcf-table tbody tr {
  border-bottom: 1px solid #e8eef6;
  transition: background 0.15s;
}
.tcf-table tbody tr:last-child { border-bottom: none; }
.tcf-table tbody tr:hover { background: #f0f6ff; }
.tcf-table tbody td {
  padding: 14px 16px;
  vertical-align: middle;
  color: var(--tcf-text) !important;
  background: transparent !important;
}
.tcf-table tbody td[title="location_summary"] { color: #555 !important; font-size: 0.81rem; }
.tcf-table tbody td[title="service_cca_web"]  { text-align: center; }

/* Bouton inscription */
.tcf-table .btn.inscription,
.tcf-table a.btn {
  display: inline-block;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 0.81rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  min-width: 150px;
  color: #fff !important;
}
.tcf-group--irn    .tcf-table .btn.inscription { background: var(--tcf-blue-dark); box-shadow: 0 2px 8px rgba(47,85,151,0.3); }
.tcf-group--tp     .tcf-table .btn.inscription { background: var(--tcf-blue);      box-shadow: 0 2px 8px rgba(17,107,172,0.3); }
.tcf-group--canada .tcf-table .btn.inscription { background: var(--tcf-cyan);      box-shadow: 0 2px 8px rgba(0,173,204,0.3); }
.tcf-group--qc      .tcf-table .btn.inscription { background: var(--tcf-purple);    box-shadow: 0 2px 8px rgba(148,53,138,0.3); }
.tcf-group--civique .tcf-table .btn.inscription { background: #2e7d52;             box-shadow: 0 2px 8px rgba(46,125,82,0.3); }

.tcf-table .btn.inscription:hover { transform: translateY(-2px); filter: brightness(1.1); }
.tcf-table .btn.inscription.isDisabled {
  background: #bbb !important;
  box-shadow: none;
  transform: none;
  pointer-events: none;
  cursor: not-allowed;
}
.tcf-table .btn.inscription.isFull {
  background: var(--tcf-red) !important;
  box-shadow: 0 2px 8px rgba(229,46,46,0.25);
}

/* ============================================================
   FORMULAIRE TCF — Hero compact
   ============================================================ */
.tcf-form-hero {
  background: linear-gradient(135deg, var(--tcf-blue-dark) 0%, var(--tcf-blue) 70%, var(--tcf-cyan) 100%);
  padding: 28px 0;
  color: #fff;
}
.tcf-form-hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  flex-wrap: wrap;
}
.tcf-logo-badge {
  background: #fff;
  border-radius: 16px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  flex-shrink: 0;
}
.tcf-form-logo {
  height: 60px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
  flex-shrink: 0;
}
.tcf-form-hero h1 {
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 700;
  margin: 0 0 6px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.tcf-form-session-label {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.94rem;
  font-weight: 600;
  color: #fff;
  display: inline-block;
}

/* ============================================================
   FORMULAIRE TCF — Layout principal
   ============================================================ */
.tcf-form-main {
  padding: 32px 0 60px;
  background: var(--tcf-gray-bg);
}
.tcf-form-wrap {
  max-width: 820px;
  margin: 0 auto;
}

/* ============================================================
   CARTES DE SECTION
   ============================================================ */
.tcf-card {
  background: #fff;
  border-radius: var(--tcf-radius);
  box-shadow: var(--tcf-shadow);
  margin-bottom: 20px;
  overflow: hidden;
}
.tcf-card-header {
  background: linear-gradient(100deg, var(--tcf-blue-dark), var(--tcf-blue));
  color: #fff;
  font-size: 0.94rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 20px;
  border-left: 4px solid var(--tcf-yellow);
}
.tcf-card-body {
  padding: 20px;
}

/* Grille 2 colonnes pour les champs */
.tcf-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ============================================================
   CHAMPS DU FORMULAIRE
   ============================================================ */
.tcf-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.tcf-field--full {
  grid-column: 1 / -1;
}
.tcf-label {
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--tcf-blue-dark) !important;
  display: block !important;
  float: none !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}
.tcf-label sup { color: var(--tcf-red); }

.tcf-input {
  width: 100% !important;
  padding: 9px 12px;
  border: 1.5px solid #c8d6e5;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--tcf-text);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.tcf-input:focus {
  border-color: var(--tcf-blue);
  box-shadow: 0 0 0 3px rgba(17,107,172,0.12);
}
select.tcf-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232F5597' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}
textarea.tcf-input { resize: vertical; min-height: 80px; }

.tcf-invalid {
  font-size: 0.75rem;
  color: var(--tcf-red);
  display: none;
}
.was-validated .tcf-input:invalid ~ .tcf-invalid,
.tcf-input.is-invalid ~ .tcf-invalid { display: block; }

/* Boutons radio */
.tcf-radio-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.tcf-radio-label {
  display: flex !important;
  align-items: center;
  gap: 7px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--tcf-text) !important;
  float: none !important;
  width: auto !important;
  padding: 0 !important;
  cursor: pointer;
}
.tcf-radio-label input[type="radio"] {
  width: 18px !important;
  height: 18px !important;
  margin: 0;
  accent-color: var(--tcf-blue);
}

/* Texte d'info */
.tcf-info-text {
  margin: 0;
  font-size: 0.875rem;
  color: var(--tcf-text);
  line-height: 1.6;
}
.tcf-hint-text {
  font-size: 0.75rem;
  color: #888;
}
.tcf-certificat-dl {
  font-size: 1rem;
  font-weight: 600;
  color: var(--tcf-blue-dark);
  margin: 0 0 8px 0;
}
.tcf-hint-intro {
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--tcf-blue-dark);
  background: rgba(17,107,172,0.07);
  border-left: 4px solid var(--tcf-blue);
  border-radius: 8px;
  padding: 12px 20px;
  margin: 0 0 24px;
}
body.tcf-night .tcf-hint-intro {
  color: #c8d6e5;
  background: rgba(255,255,255,0.05);
  border-left-color: var(--tcf-cyan);
}

/* RGPD */
.tcf-rgpd-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.tcf-rgpd-row:last-child { margin-bottom: 0; }
.tcf-checkbox {
  width: 20px !important;
  height: 20px !important;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--tcf-blue);
  cursor: pointer;
}
.tcf-rgpd-label {
  font-size: 0.875rem;
  color: var(--tcf-text) !important;
  display: block !important;
  float: none !important;
  width: auto !important;
  flex: 1;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1.5;
  cursor: pointer;
}

/* Prix total */
.tcf-price-total {
  margin-top: 20px;
  text-align: right;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--tcf-blue-dark) !important;
  padding: 12px 0 4px;
  border-top: 2px solid var(--tcf-light-blue);
}
.tcf-price-total #final_price {
  color: var(--tcf-blue) !important;
  font-size: 1.25rem;
}
body.tcf-night .tcf-price-total { color: #c8d6e5 !important; border-top-color: #2a3a52; }
body.tcf-night .tcf-price-total #final_price { color: var(--tcf-cyan) !important; }
body.tcf-night p[style*="color:var(--tcf-blue-dark)"] { color: #7ea8cc !important; }

/* Bouton valider */
.tcf-submit-wrap {
  text-align: center;
  margin: 28px 0 8px;
}
.tcf-submit-btn {
  background: linear-gradient(100deg, var(--tcf-blue-dark), var(--tcf-blue));
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 48px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(17,107,172,0.3);
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}
.tcf-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17,107,172,0.4);
  filter: brightness(1.07);
}
.tcf-submit-price {
  display: block;
  font-size: 0.85em;
  font-weight: 600;
  opacity: 0.92;
  margin-top: 3px;
  letter-spacing: 0.01em;
}

/* Override style.css pour les fieldset restants injectés par JS */
.tcf-form-wrap fieldset,
#item fieldset {
  background: #fff !important;
  border: none !important;
  margin: 0 0 20px !important;
  padding: 0 !important;
  border-radius: var(--tcf-radius) !important;
  box-shadow: var(--tcf-shadow) !important;
  overflow: hidden !important;
}
.tcf-form-wrap fieldset legend,
#item fieldset legend {
  background: linear-gradient(100deg, var(--tcf-blue-dark), var(--tcf-blue)) !important;
  color: #fff !important;
  font-size: 0.94rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 14px 20px !important;
  margin: 0 !important;
  width: 100% !important;
  border-left: 4px solid var(--tcf-yellow) !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.tcf-form-wrap fieldset ol,
#item fieldset ol,
#item > div:not(.tcf-card) {
  padding: 16px 20px !important;
  margin: 0 !important;
  color: var(--tcf-text) !important;
}
.tcf-form-wrap fieldset li,
#item fieldset li {
  color: var(--tcf-text) !important;
  padding: 6px 0 !important;
}
.tcf-form-wrap fieldset label,
#item fieldset label {
  color: var(--tcf-blue-dark) !important;
  font-weight: 600 !important;
  float: none !important;
  width: auto !important;
  display: block !important;
  padding: 0 0 4px !important;
  font-size: 0.81rem !important;
}

/* ============================================================
   MODE NUIT — Formulaire
   ============================================================ */
body.tcf-night .tcf-form-hero {
  background: linear-gradient(135deg, #0d1424 0%, #162850 70%, #0a3a52 100%);
}
body.tcf-night .tcf-form-main { background: #111827; }
body.tcf-night .tcf-card { background: #1a2236; box-shadow: 0 4px 24px rgba(0,0,0,0.35); }
body.tcf-night .tcf-info-text,
body.tcf-night .tcf-rgpd-label { color: #c8d6e5 !important; }
body.tcf-night .tcf-label { color: #7ea8cc !important; }
body.tcf-night .tcf-input {
  background: #111827;
  border-color: #2a3a52;
  color: #c8d6e5;
}
body.tcf-night .tcf-input:focus { border-color: var(--tcf-cyan); box-shadow: 0 0 0 3px rgba(0,173,204,0.15); }
body.tcf-night .tcf-radio-label { color: #c8d6e5 !important; }
body.tcf-night .tcf-form-wrap fieldset,
body.tcf-night #item fieldset { background: #1a2236 !important; }
body.tcf-night .tcf-form-wrap fieldset ol,
body.tcf-night #item fieldset ol,
body.tcf-night #item > div:not(.tcf-card) { color: #c8d6e5 !important; }
body.tcf-night #item .tcf-card {
  background: #1a2236 !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35) !important;
}
body.tcf-night #item .tcf-card-header {
  background: linear-gradient(100deg, #1a2e5a, #0d3d6e) !important;
  color: #fff !important;
}
body.tcf-night #item .tcf-card-body {
  background: #1a2236 !important;
  color: #c8d6e5 !important;
}
body.tcf-night #item .tcf-rgpd-label { color: #c8d6e5 !important; }
body.tcf-night #item .tcf-price-total { color: #c8d6e5 !important; border-top-color: #2a3a52; }
body.tcf-night #item .tcf-price-total #final_price { color: var(--tcf-cyan) !important; }
body.tcf-night .tcf-form-wrap fieldset li,
body.tcf-night #item fieldset li { color: #c8d6e5 !important; }
body.tcf-night .tcf-form-wrap fieldset label,
body.tcf-night #item fieldset label { color: #7ea8cc !important; }
body.tcf-night .tcf-form-session-label { background: rgba(255,255,255,0.08); }

/* ============================================================
   RESPONSIVE — Formulaire mobile
   ============================================================ */
@media (max-width: 600px) {
  .tcf-grid-2 { grid-template-columns: 1fr; }
  .tcf-form-hero-inner { flex-direction: column; text-align: center; }
  .tcf-submit-btn { width: 100%; padding: 14px 20px; }
  .tcf-card-body { padding: 14px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.tcf-footer {
  background: var(--tcf-blue-dark);
  color: rgba(255,255,255,0.75);
  padding: 32px 0;
}
.tcf-footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.tcf-footer-brand img {
  height: 40px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  display: block;
}
.tcf-footer-info {
  flex: 1;
  min-width: 220px;
}
.tcf-footer-copy {
  margin: 0 0 10px !important;
  font-size: 0.81rem !important;
  color: rgba(255,255,255,0.85) !important;
  line-height: 1.55;
}
.tcf-footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.tcf-footer-contact span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.81rem;
  color: rgba(255,255,255,0.75);
}
.tcf-footer-contact .fa {
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
}
.tcf-footer-contact a {
  color: rgba(255,255,255,0.9) !important;
  text-decoration: none;
}
.tcf-footer-contact a:hover { color: #fff !important; text-decoration: underline; }
.tcf-footer-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-end;
  font-size: 0.81rem;
}
.tcf-footer-links a {
  color: rgba(255,255,255,0.65) !important;
  text-decoration: none;
  transition: color 0.2s;
}
.tcf-footer-links a:hover { color: #fff !important; text-decoration: underline; }
@media (max-width: 640px) {
  .tcf-footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .tcf-footer-brand { text-align: center; }
  .tcf-footer-brand img { margin: 0 auto; }
  .tcf-footer-contact { justify-content: center; }
  .tcf-footer-links { align-items: center; }
}

/* ============================================================
   #ITEM — Forcer .tcf-card identique aux autres sections
   ============================================================ */
#item .tcf-card {
  background: #fff !important;
  border-radius: var(--tcf-radius) !important;
  box-shadow: var(--tcf-shadow) !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 0 20px !important;
}
#item .tcf-card-header {
  background: linear-gradient(100deg, var(--tcf-blue-dark), var(--tcf-blue)) !important;
  color: #fff !important;
  font-size: 0.94rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 14px 20px !important;
  border-left: 4px solid var(--tcf-yellow) !important;
  border-radius: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
#item .tcf-card-body {
  padding: 20px !important;
  margin: 0 !important;
  background: #fff !important;
  color: var(--tcf-text) !important;
}

/* ============================================================
   RESPONSIVE — Tablette (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  .tcf-hero { padding: 36px 16px 30px; }
  .tcf-hero-logos .logo-sep { display: none; }
  .tcf-content { padding: 24px 0 40px; }
  .tcf-group { margin-bottom: 24px; }
  .tcf-group-header { padding: 14px 16px; }
  .tcf-table thead td { padding: 10px 12px; }
  .tcf-table tbody td { padding: 12px; }
}

/* ============================================================
   RESPONSIVE — Mobile (≤ 576px) : table → cartes
   ============================================================ */
@media (max-width: 576px) {
  .tcf-table thead { display: none; }

  .tcf-table,
  .tcf-table tbody,
  .tcf-table tbody tr,
  .tcf-table tbody td { display: block; width: 100%; }

  .tcf-table tbody tr {
    margin: 12px 12px;
    width: calc(100% - 24px);
    border: 1px solid #dde8f5;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(17,107,172,0.08);
    overflow: hidden;
  }

  .tcf-table tbody td {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid #eef2f8;
    font-size: 0.875rem;
    border-radius: 0;
  }
  .tcf-table tbody td:last-child { border-bottom: none; }

  .tcf-table tbody td::before {
    font-weight: 700;
    font-size: 0.69rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tcf-blue);
    min-width: 100px;
    flex-shrink: 0;
    padding-top: 2px;
  }
  .tcf-table tbody td[title="date_exam"]::before              { content: "Date d'examen"; }
  .tcf-table tbody td[title="date_limite_inscription"]::before { content: "Date limite"; }
  .tcf-table tbody td[title="location_summary"]::before       { content: "Lieu"; }
  .tcf-table tbody td[title="modalites_exam"]::before         { content: "Support"; }
  .tcf-table tbody td[title="service_cca_web"] {
    justify-content: center;
    padding: 14px;
    background: var(--tcf-gray-bg);
  }
  .tcf-table tbody td[title="service_cca_web"]::before { display: none; }
  .tcf-table .btn.inscription { width: 100%; min-width: unset; }

  .tcf-group-header { gap: 10px; }
  .tcf-group-header h2 { font-size: 0.75rem; }
  .tcf-hero h1 { font-size: 1.06rem; }
  .tcf-logo-cartouche img.logo-tcf { height: 60px; }
  .tcf-logo-cartouche { padding: 12px 24px; }
  .tcf-fei-cartouche { flex-direction: column; text-align: center; padding: 10px 16px; gap: 8px; }
  .tcf-fei-cartouche img.logo-fei { height: 30px; }
  .tcf-fei-cartouche span { font-size: 0.81rem; }
  .tcf-hero-equiv { font-size: 0.875rem; }
}

/* --- Encart Information Importante — Examen Civique --- */
.tcf-card--info-civique { border-left: 5px solid #e8a000; background: #fffbf0; }
.tcf-card--info-civique .tcf-card-header {
    background: linear-gradient(100deg, #b8690a, #e8a000);
    color: #fff;
}
.tcf-civique-steps {
    margin: 0;
    padding-left: 1.4em;
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: var(--tcf-text);
}
.tcf-civique-steps > li { line-height: 1.65; color: var(--tcf-text); }
.tcf-civique-steps > li strong { color: var(--tcf-blue-dark); }
.tcf-civique-detail {
    margin: 6px 0 0 0;
    padding-left: 1.2em;
    list-style: disc;
    color: var(--tcf-text);
}
.tcf-civique-detail li { margin-bottom: 2px; color: var(--tcf-text); }
.tcf-civique-steps a,
.tcf-card a { color: var(--tcf-blue); font-weight: 600; }
.tcf-civique-steps a:hover { text-decoration: underline; }
body.tcf-night .tcf-card--info-civique { background: #2a2010; border-left-color: #e8a000; }
body.tcf-night .tcf-civique-steps > li strong { color: var(--tcf-light-blue); }

/* Video embed responsive */
.tcf-video-title { margin: 1.2em 0 0.4em; }
.tcf-video-responsive { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 6px; margin-bottom: 1.2em; }
.tcf-video-responsive iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* Encart civique compact */
.tcf-card-body--compact { padding: 0.75em 1.2em; }
.tcf-civique-steps--compact { margin: 0.4em 0; padding-left: 1.4em; }
.tcf-civique-steps--compact > li { margin-bottom: 0.5em; line-height: 1.45; }

/* Navigation rapide par type TCF */
.tcf-type-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 2em 0;
}
.tcf-type-btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none !important;
  transition: filter 0.2s, transform 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.tcf-type-btn:hover { filter: brightness(1.12); transform: translateY(-2px); }
.tcf-type-btn--irn     { background: var(--tcf-blue-dark); }
.tcf-type-btn--tp      { background: var(--tcf-blue); }
.tcf-type-btn--civique { background: #2e7d52; }
.tcf-type-btn--canada  { background: var(--tcf-cyan); }
.tcf-type-btn--qc      { background: var(--tcf-purple); }
body.tcf-night .tcf-type-btn--irn     { background: #253d72; }
body.tcf-night .tcf-type-btn--tp      { background: #0d4d8a; }
body.tcf-night .tcf-type-btn--civique { background: #1f5c3c; }
body.tcf-night .tcf-type-btn--canada  { background: #006a87; }
body.tcf-night .tcf-type-btn--qc      { background: #5a1f56; }

/* Offset scroll pour navbar sticky (60px) */
.tcf-group { scroll-margin-top: 72px; }
