/* =====================================================================
   ERREUR 502 — Thème Hackcess
   Inspiré de https://hackcess.org : header noir, bannière rouge en
   dégradé, cartes blanches, titres Raleway en majuscules.
   Ce fichier est chargé APRÈS les anciennes feuilles de style.
   ===================================================================== */

:root {
  --hc-red: #cd3333;
  --hc-red-2: #611110;
  --hc-red-3: #e04848;
  --hc-green: #5fb759;
  --hc-ink: #1e1e1e;
  --hc-text: #3a3a42;
  --hc-muted: #7a7a85;
  --hc-line: #e7e7ec;
  --hc-bg: #f4f4f7;
  --hc-card: #ffffff;
  --hc-black: #0b0b0d;
  --hc-radius: 14px;
  --hc-shadow: 0 6px 24px rgba(20, 20, 30, .07);
  --hc-shadow-lg: 0 14px 40px rgba(20, 20, 30, .14);
  --hc-header-h: 72px;
  --hc-font: 'Raleway', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --bs-body-font-family: var(--hc-font);
  --bs-primary: var(--hc-red);
  --bs-link-color: var(--hc-red);
  --bs-link-hover-color: var(--hc-red-2);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
html body {
  margin: 0;
  background: var(--hc-bg);
  color: var(--hc-text);
  font-family: var(--hc-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html body p { font-family: var(--hc-font); font-size: 1rem; font-weight: 500; line-height: 1.7; }
.hc-main h1, .hc-main h2, .hc-main h3, .hc-main h4, .hc-main h5, .hc-main h6,
.hc-auth h1, .hc-auth h2 {
  font-family: var(--hc-font);
  color: var(--hc-ink);
  font-weight: 800;
  letter-spacing: .2px;
}
.hc-main a { color: var(--hc-red); text-decoration: none; transition: color .2s, background .2s, opacity .2s; }
.hc-main a:hover { color: var(--hc-red-2); }
::selection { background: var(--hc-red); color: #fff; }
:focus-visible { outline: 3px solid rgba(205, 51, 51, .45); outline-offset: 2px; }

.hc-wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.hc-header a, .hc-footer a, .hc-auth a.hc-auth__logo { text-decoration: none !important; }
.hc-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--hc-header-h);
  background: rgba(11, 11, 13, .94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 2px solid transparent;
  transition: background .3s, box-shadow .3s;
}
.hc-header.is-scrolled { background: rgba(11, 11, 13, .98); box-shadow: 0 4px 24px rgba(0, 0, 0, .35); }
.hc-header__in { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.hc-logo {
  display: inline-flex; align-items: center; gap: 12px;
  color: #fff !important; font-weight: 800; font-size: 18px; letter-spacing: 1.5px; text-transform: uppercase; margin-right: 12px;
  white-space: nowrap;
}
.hc-logo:hover { color: #fff !important; opacity: .9; }
.hc-logo__img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; background: #fff; }

.hc-nav ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.hc-nav a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 14px; height: 40px; line-height: 40px;
  color: #fff !important; font-weight: 600; font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
  border-radius: 999px; opacity: .78; transition: all .25s;
}
.hc-nav a i { font-size: 13px; opacity: .85; }
.hc-nav a:hover { opacity: 1; color: var(--hc-green) !important; }
.hc-nav a.is-active { opacity: 1; color: #fff !important; background: var(--hc-red); }
.hc-nav a.is-active i { color: #fff; }
.hc-nav__logout a { margin-left: 8px; border: 1.5px solid rgba(255, 255, 255, .35); opacity: 1; }
.hc-nav__logout a:hover { border-color: var(--hc-red-3); background: rgba(205, 51, 51, .15); color: #fff !important; }

.hc-burger {
  display: none; background: transparent; border: 1.5px solid rgba(255, 255, 255, .35); color: #fff;
  width: 44px; height: 44px; border-radius: 10px; font-size: 18px; cursor: pointer;
}
.hc-burger:hover { background: rgba(255, 255, 255, .08); }

@media (max-width: 991px) {
  .hc-burger { display: inline-flex; align-items: center; justify-content: center; }
  .hc-nav {
    position: absolute; top: var(--hc-header-h); left: 0; right: 0;
    background: rgba(11, 11, 13, .98); border-top: 1px solid rgba(255, 255, 255, .08);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .hc-nav.is-open { max-height: 80vh; overflow-y: auto; box-shadow: 0 18px 30px rgba(0, 0, 0, .4); }
  .hc-nav ul { flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 18px; }
  .hc-nav a { width: 100%; border-radius: 10px; padding: 0 16px; height: 46px; line-height: 46px; }
  .hc-nav__logout a { margin: 8px 0 0; justify-content: center; }
}

/* ---------- Bannière de page ---------- */
.hc-hero {
  position: relative; margin-top: var(--hc-header-h);
  padding: 54px 0 62px; color: #fff; overflow: hidden;
  background:
    radial-gradient(900px 300px at 85% -10%, rgba(255, 255, 255, .14), transparent 60%),
    linear-gradient(135deg, #cd3333 0%, #9c2323 45%, #611110 100%);
}
.hc-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .10) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%);
}
.hc-hero .hc-wrap { position: relative; z-index: 1; }
.hc-hero__eyebrow { margin: 0 0 6px; font-size: 12px !important; font-weight: 700 !important; letter-spacing: 3px; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.hc-hero__eyebrow span { opacity: .7; font-weight: 500; }
html body .hc-hero__title { margin: 0; color: #fff; font-size: clamp(28px, 4.6vw, 44px); font-weight: 800; letter-spacing: 1px; text-transform: uppercase; line-height: 1.15; }

.hc-main { display: block; min-height: 50vh; padding-top: 0; }
.hc-main > .container, .hc-main > .containerr, .hc-main > .hc-wrap { margin-top: 32px; margin-bottom: 0; }
.hc-main > .container { max-width: 1140px; }
.hc-main > .containerr { max-width: 1140px; margin-left: auto; margin-right: auto; text-align: left; padding: 0 20px; }
.hc-main > .container { margin-left: auto; margin-right: auto; }

/* ---------- Cartes ---------- */
.hc-card, .hc-main .card {
  background: var(--hc-card); border: 1px solid var(--hc-line) !important; border-radius: var(--hc-radius) !important;
  box-shadow: var(--hc-shadow); color: var(--hc-text);
}
.hc-main .card-header { background: #fafafc; border-bottom: 1px solid var(--hc-line); border-radius: var(--hc-radius) var(--hc-radius) 0 0 !important; }
.hc-main .card-header h4, .hc-main .card-header h5 { margin: 0; font-size: 16px; text-transform: uppercase; letter-spacing: 1px; }
.hc-main .card-body p, .hc-main .card-text { color: var(--hc-text); }
.hc-main .card-title { color: var(--hc-ink); text-transform: uppercase; letter-spacing: 1px; font-size: 15px; }
.hc-main .card.user-stats, .hc-main .card.ranking-list, .hc-main .card.admin-moderator-ranking,
.hc-main .card.challenges-section, .hc-main .card.challenges-chart { padding: 28px; }
.hc-main .card .card-content h2.title { font-size: 20px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--hc-line); position: relative; }
.hc-main .card .card-content h2.title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 56px; height: 2px; background: var(--hc-red); }

/* ---------- Boutons ---------- */
.hc-main .btn, .hc-auth .btn, .hc-btn {
  font-family: var(--hc-font); font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
  border-radius: 999px; padding: 11px 24px; border: 2px solid transparent; transition: all .25s; line-height: 1.2;
}
.hc-main .btn-primary, .hc-auth .btn-primary, .hc-btn {
  background: var(--hc-red) !important; border-color: var(--hc-red) !important; color: #fff !important;
  box-shadow: 0 6px 16px rgba(205, 51, 51, .28);
}
.hc-main .btn-primary:hover, .hc-auth .btn-primary:hover, .hc-btn:hover {
  background: var(--hc-red-2) !important; border-color: var(--hc-red-2) !important; transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(97, 17, 16, .32);
}
.hc-main .btn-primary a, .hc-main .btn-danger a, .hc-main .btn-warning a, .hc-main .btn-success a { color: inherit !important; }
.hc-btn--ghost, .hc-main .btn-outline-primary { background: transparent !important; color: var(--hc-red) !important; border-color: var(--hc-red) !important; box-shadow: none; }
.hc-btn--ghost:hover, .hc-main .btn-outline-primary:hover { background: var(--hc-red) !important; color: #fff !important; }
.hc-main .btn-secondary { background: var(--hc-ink); border-color: var(--hc-ink); color: #fff; border-radius: 999px; }
.hc-main .btn-secondary:hover { background: #000; }
.hc-main .btn-success { background: var(--hc-green); border-color: var(--hc-green); color: #fff; }
.hc-main .btn-success:hover { background: #4a9c46; border-color: #4a9c46; }
.hc-main .btn-danger { background: #fff; color: var(--hc-red) !important; border-color: var(--hc-red); }
.hc-main .btn-danger:hover { background: var(--hc-red); color: #fff !important; border-color: var(--hc-red); }
.hc-main .btn-warning { background: #f6b93b; border-color: #f6b93b; color: #1e1e1e !important; }
.hc-main .btn-sm { padding: 7px 16px; font-size: 12px; }
.hc-main .btn-lg { padding: 14px 32px; font-size: 14px; }

/* ---------- Formulaires ---------- */
.hc-main label, .hc-auth label { font-weight: 700; font-size: 13px; letter-spacing: .5px; text-transform: uppercase; color: var(--hc-ink); margin-bottom: 6px; }
.hc-main .form-control, .hc-main .form-select, .hc-main input[type=text], .hc-main input[type=email], .hc-main input[type=password],
.hc-main input[type=number], .hc-main input[type=search], .hc-main select, .hc-main textarea,
.hc-auth .form-control {
  width: 100%; background: #fff; color: var(--hc-ink); border: 1.5px solid var(--hc-line); border-radius: 10px;
  padding: 11px 14px; font-family: var(--hc-font); font-size: 15px; font-weight: 500; box-shadow: none; transition: border-color .2s, box-shadow .2s;
}
.hc-main .form-control:focus, .hc-main .form-select:focus, .hc-main input:focus, .hc-main select:focus, .hc-main textarea:focus,
.hc-auth .form-control:focus {
  border-color: var(--hc-red); box-shadow: 0 0 0 4px rgba(205, 51, 51, .14); outline: none; background: #fff; color: var(--hc-ink);
}
.hc-main input::placeholder, .hc-main textarea::placeholder, .hc-auth input::placeholder { color: #a5a5b0; }
.hc-main input[type=checkbox], .hc-main input[type=radio] { width: auto; accent-color: var(--hc-red); }
.hc-main input[type=file] { padding: 9px 12px; background: #fafafc; }
.hc-main .form-group, .hc-main .mb-3 { margin-bottom: 18px; }
.hc-main .invalid-feedback, .hc-main .form-error-message, .hc-main ul li.error { color: var(--hc-red); font-size: 13px; font-weight: 600; }

/* ---------- Alertes ---------- */
.hc-main .alert, .hc-auth .alert { border: 0; border-left: 5px solid; border-radius: 10px; padding: 14px 18px; font-weight: 600; box-shadow: var(--hc-shadow); }
.hc-main .alert-success, .hc-auth .alert-success { background: #eaf7ea; border-color: var(--hc-green); color: #1f5a1c; }
.hc-main .alert-danger, .hc-auth .alert-danger, .hc-main .flash-error { background: #fdecec; border-color: var(--hc-red); color: #7a1c1c; }
.hc-main .alert-warning { background: #fff6e0; border-color: #f6b93b; color: #6b4b00; }
.hc-main .alert-info { background: #e9f1fb; border-color: #3b82c4; color: #1d3f66; }
.hc-main .flash-error { padding: 14px 18px; border-left: 5px solid var(--hc-red); border-radius: 10px; max-width: 1100px; margin: 24px auto 0; }

/* ---------- Fil d'Ariane ---------- */
.hc-main .breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--hc-line); border-radius: 999px;
  padding: 10px 20px; margin: 0 0 24px; font-size: 13px; font-weight: 600; letter-spacing: .5px; color: var(--hc-muted); text-align: left;
  box-shadow: var(--hc-shadow);
}
.hc-main .breadcrumb a { color: var(--hc-red); font-weight: 700; }
.hc-main .breadcrumb a::after { content: none !important; }
.hc-main .breadcrumb span { color: var(--hc-muted); }
.hc-main > .breadcrumb { max-width: 1100px; margin: 28px auto 0; }

/* ---------- Tableaux ---------- */
.hc-main .table-wrap, .hc-main .column { background: #fff; border: 1px solid var(--hc-line); border-radius: var(--hc-radius); box-shadow: var(--hc-shadow); overflow: auto; padding: 0; width: 100%; }
.hc-main table, .hc-main .table {
  width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; background: #fff; box-shadow: none;
  color: var(--hc-text); font-size: 14.5px;
}
.hc-main table thead th, .hc-main .table thead th {
  background: var(--hc-black); color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 12px;
  padding: 14px 18px; border: 0; text-align: left; white-space: nowrap;
}
.hc-main table tbody td, .hc-main .table tbody td { padding: 14px 18px; border: 0; border-bottom: 1px solid var(--hc-line); vertical-align: middle; background: #fff; }
.hc-main table tbody tr:nth-child(even) td { background: #fafafc; }
.hc-main table tbody tr:hover td { background: #fff3f3; }
.hc-main table tbody tr:last-child td { border-bottom: 0; }
.hc-main .linkchall { color: var(--hc-ink) !important; font-weight: 700; }
.hc-main .linkchall:hover { color: var(--hc-red) !important; }

/* ---------- Badges ---------- */
.hc-main .badge, .hc-main .badge-success, .hc-main .badge-warning {
  display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 11px; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase; line-height: 1.3;
}
.hc-main .badge-success, .hc-main .badge.bg-success { background: #e6f5e5 !important; color: #2c7a28 !important; }
.hc-main .badge-warning, .hc-main .badge.bg-warning { background: #fdeede !important; color: #a35a0a !important; }

/* ---------- Pagination (KnpPaginator) ---------- */
.hc-main .pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 22px 0 0; padding: 0; list-style: none; }
.hc-main .pagination > span, .hc-main .pagination a, .hc-main .pagination .page-link {
  display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px;
  border: 1.5px solid var(--hc-line) !important; border-radius: 999px; background: #fff; color: var(--hc-ink) !important;
  font-weight: 700; font-size: 13px; margin: 0 !important;
}
.hc-main .pagination a:hover { border-color: var(--hc-red) !important; color: var(--hc-red) !important; }
.hc-main .pagination .current, .hc-main .pagination .active .page-link { background: var(--hc-red) !important; color: #fff !important; border-color: var(--hc-red) !important; }

/* ---------- Challenges : tuiles ---------- */
.hc-main .cards-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px;
  max-width: 1140px; margin: 40px auto 56px; padding: 0 20px; width: 100%;
}
.hc-main .cards-list > a { display: block; }
.hc-main .cards-list .card {
  position: relative; margin: 0; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 18px !important; overflow: hidden;
  border: 0 !important; box-shadow: var(--hc-shadow); cursor: pointer; transition: transform .35s ease, box-shadow .35s ease;
  background: var(--hc-black);
}
.hc-main .cards-list .card:hover { transform: translateY(-6px); box-shadow: var(--hc-shadow-lg); }
.hc-main .cards-list .card .card_image { width: 100%; height: 100%; border-radius: 0; }
.hc-main .cards-list .card .card_image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.hc-main .cards-list .card:hover .card_image img { transform: scale(1.07); }
.hc-main .cards-list .card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(97, 17, 16, .92) 0%, rgba(97, 17, 16, .35) 38%, rgba(0, 0, 0, 0) 68%);
}
.hc-main .cards-list .card .card_title {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; margin: 0; height: auto; text-align: left;
  padding: 0 22px 20px; border-radius: 0; background: transparent;
}
.hc-main .cards-list .card .card_title p.textchall {
  margin: 0; color: #fff; font-size: 21px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; line-height: 1.2;
}
.hc-main .cards-list .card .card_title p.textchall::after { content: "\f061"; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 13px; margin-left: 10px; opacity: 0; transform: translateX(-6px); display: inline-block; transition: all .3s; }
.hc-main .cards-list .card:hover .card_title p.textchall::after { opacity: 1; transform: none; }

/* ---------- Liste de challenges (page catégorie) ---------- */
.hc-main .h1challenges { display: none; }
.hc-main .containerr .column.is-6 { margin-top: 0; }

/* ---------- Fiche challenge ---------- */
.hc-main .col-md-8.offset-md-2 h1.text-center { display: none; }
.hc-main form[name=flag_submission] .btn, .hc-main form .btn[type=submit] { margin-top: 14px; }
.hc-main .col-md-8.offset-md-2 h2 { font-size: 20px; text-transform: uppercase; letter-spacing: 1px; margin: 32px 0 14px; position: relative; padding-bottom: 12px; }
.hc-main .col-md-8.offset-md-2 h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; background: var(--hc-red); border-radius: 2px; }
.hc-main .card-body a[download] { color: var(--hc-red) !important; font-weight: 700; }

/* ---------- Accueil connecté ---------- */
.hc-main .hc-home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.hc-panel { background: #fff; border: 1px solid var(--hc-line); border-radius: var(--hc-radius); box-shadow: var(--hc-shadow); padding: 28px 30px; }
.hc-panel__title { display: flex; align-items: center; gap: 12px; margin: 0 0 18px !important; font-size: 18px !important; text-transform: uppercase; letter-spacing: 1.2px; }
.hc-panel__title i { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: #fdeaea; color: var(--hc-red); font-size: 16px; }
.hc-list { margin: 0; padding: 0; list-style: none; }
.hc-list li { padding: 12px 0; border-bottom: 1px solid var(--hc-line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hc-list li:last-child { border-bottom: 0; }
.hc-list a { font-weight: 700; color: var(--hc-ink) !important; }
.hc-list a:hover { color: var(--hc-red) !important; }
.hc-list .hc-tag { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--hc-red); background: #fdeaea; border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.hc-empty { color: var(--hc-muted); font-style: italic; margin: 0; }
.hc-partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.hc-partner { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1.5px solid var(--hc-line); border-radius: 12px; font-weight: 700; color: var(--hc-ink); background: #fafafc; transition: all .25s; }
.hc-partner i { color: var(--hc-red); }
a.hc-partner:hover { border-color: var(--hc-red); background: #fff; transform: translateY(-2px); box-shadow: var(--hc-shadow); }

/* ---------- Profil / statistiques ---------- */
.hc-profile { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hc-profile__avatar, .hc-main .profile-picture img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 0 0 3px var(--hc-red), var(--hc-shadow); background: #fff; }
.hc-profile h1, .hc-main .profile-header h1 { margin: 16px 0 4px; font-size: 26px; }
.hc-main .profile-header { text-align: center; }
.hc-main .profile-header hr, .hc-main .profile-separator { width: 60px; height: 3px; background: var(--hc-red); opacity: 1; border: 0; margin: 14px auto; }
.hc-main .profile-details p { color: var(--hc-muted); }
.hc-detail { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--hc-line); }
.hc-detail:last-child { border-bottom: 0; }
.hc-detail .label { color: var(--hc-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 12px; }
.hc-detail .value { color: var(--hc-ink); font-weight: 700; text-align: right; word-break: break-word; }
.hc-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.hc-main .list-group { border-radius: 12px; overflow: hidden; border: 1px solid var(--hc-line); }
.hc-main .list-group-item { background: #fff !important; color: var(--hc-text) !important; border: 0; border-bottom: 1px solid var(--hc-line); margin: 0 !important; padding: 14px 18px; font-weight: 600; }
.hc-main .list-group-item:last-child { border-bottom: 0; }
.hc-main .list-group-item a { color: var(--hc-ink); font-weight: 800; }
.hc-main .list-group-item a:hover { color: var(--hc-red); }
.hc-main .list-group-numbered > .list-group-item::before { color: var(--hc-red); font-weight: 800; }
.hc-main .jumbotron { background: #fff; border: 1px solid var(--hc-line); border-radius: var(--hc-radius); box-shadow: var(--hc-shadow); padding: 32px; text-align: center; }
.hc-main .statof { color: var(--hc-ink) !important; }
.hc-main .jumbotron ul.statof { list-style: none; padding: 0; }
.hc-main .jumbotron ul.statof li { padding: 8px 0; border-bottom: 1px solid var(--hc-line); }
.hc-main canvas { max-width: 100%; }

/* ---------- Cours ---------- */
.hc-main .titlecours { display: none; }
.hc-main .search-container { display: flex; max-width: 520px; margin: 0 auto 26px; background: #fff; border: 1.5px solid var(--hc-line); border-radius: 999px; box-shadow: var(--hc-shadow); overflow: hidden; }
.hc-main .search-container:focus-within { border-color: var(--hc-red); }
.hc-main .search-input { flex: 1; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; padding: 13px 22px !important; background: transparent !important; }
.hc-main .search-button { border: 0; background: var(--hc-red); color: #fff; width: 58px; cursor: pointer; transition: background .2s; }
.hc-main .search-button:hover { background: var(--hc-red-2); }
.hc-main .custom-accordion .accordion-item, .hc-main .accordion-item {
  background: #fff; border: 1px solid var(--hc-line) !important; border-radius: var(--hc-radius) !important; margin-bottom: 16px; overflow: hidden; box-shadow: var(--hc-shadow);
}
.hc-main .accordion-button, .hc-main .custom-accordion-button {
  background: #fff !important; color: var(--hc-ink) !important; font-family: var(--hc-font); font-weight: 800; font-size: 15px;
  letter-spacing: 1.2px; text-transform: uppercase; padding: 18px 24px; text-align: left; box-shadow: none !important; border-left: 5px solid var(--hc-red); border-radius: 0 !important;
}
.hc-main .accordion-button::after { filter: none; }
.hc-main .accordion-button:not(.collapsed) { background: #fff7f7 !important; color: var(--hc-red) !important; }
.hc-main .accordion-body { background: #fff; padding: 8px 24px 20px; }
.hc-main .accordion-body ul { list-style: none; margin: 0; padding: 0; }
.hc-main .accordion-body li { border-bottom: 1px solid var(--hc-line); }
.hc-main .accordion-body li:last-child { border-bottom: 0; }
.hc-main a.cours { display: flex; align-items: center; gap: 12px; padding: 13px 4px; color: var(--hc-ink); font-weight: 700; }
.hc-main a.cours::before { content: "\f02d"; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--hc-red); font-size: 14px; }
.hc-main a.cours:hover { color: var(--hc-red); padding-left: 10px; }
.hc-main .accordion-body .accordion-item { box-shadow: none; margin: 14px 0 0; background: #fafafc; }

.hc-main .container-cours { max-width: 100%; background: #fff; border: 1px solid var(--hc-line); border-radius: var(--hc-radius); box-shadow: var(--hc-shadow); padding: 34px 38px; margin: 24px 0; overflow-x: auto; }
.hc-main md-block, .hc-main #courscontent { display: block; color: var(--hc-text); font-size: 16.5px; line-height: 1.85; }
.hc-main md-block h1, .hc-main md-block h2, .hc-main md-block h3 { margin: 1.6em 0 .6em; }
.hc-main md-block h1 { font-size: 30px; padding-bottom: 12px; border-bottom: 3px solid var(--hc-red); }
.hc-main md-block h2 { font-size: 23px; }
.hc-main md-block img { max-width: 100%; height: auto; border-radius: 10px; }
.hc-main md-block pre { border-radius: 12px; }
.hc-main md-block code:not([class*=language-]) { background: #fdeaea; color: var(--hc-red-2); padding: 2px 7px; border-radius: 6px; font-size: .9em; }
.hc-main md-block blockquote { border-left: 4px solid var(--hc-red); background: #fafafc; padding: 12px 20px; margin: 1.2em 0; border-radius: 0 10px 10px 0; }
.hc-main md-block table { margin: 1.2em 0; }

/* Fenêtres modales maison (cours) */
.hc-main .modal, body .modal:not(.fade) {
  display: none; position: fixed; inset: 0; z-index: 2000; overflow: auto; padding: 6vh 16px;
  background: rgba(11, 11, 13, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.hc-main .modal-content { background: #fff; margin: 0 auto; max-width: 560px; border: 0; border-radius: 18px; padding: 32px; box-shadow: var(--hc-shadow-lg); position: relative; }
.hc-main .closeModal { position: absolute; top: 12px; right: 18px; font-size: 28px; line-height: 1; color: var(--hc-muted); cursor: pointer; }
.hc-main .closeModal:hover { color: var(--hc-red); }

/* ---------- Administration ---------- */
.hc-main .h1admin { display: none; }
.hc-main .admin-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; max-width: 1140px; margin: 40px auto 56px; padding: 0 20px; }
.hc-main .admin-card { background: #fff; border: 1px solid var(--hc-line); border-radius: var(--hc-radius); box-shadow: var(--hc-shadow); overflow: hidden; margin: 0; width: auto; transition: transform .3s, box-shadow .3s; }
.hc-main .admin-card:hover { transform: translateY(-4px); box-shadow: var(--hc-shadow-lg); }
.hc-main .admin-card-title { background: var(--hc-black); color: #fff; padding: 18px 24px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; font-size: 14px; border-bottom: 3px solid var(--hc-red); }
.hc-main .admin-card-content { padding: 14px 24px 20px; }
.hc-main .admin-card-content p { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--hc-line); }
.hc-main .admin-card-content p:last-child { border-bottom: 0; }
.hc-main .admin-link { font-weight: 700; color: var(--hc-ink) !important; display: flex; align-items: center; justify-content: space-between; }
.hc-main .admin-link::after { content: "\f054"; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 11px; color: var(--hc-red); }
.hc-main .admin-link:hover { color: var(--hc-red) !important; }

/* ---------- Footer ---------- */
.hc-footer { background: var(--hc-black); color: rgba(255, 255, 255, .72); margin-top: 60px; padding: 60px 0 0; border-top: 4px solid var(--hc-red); }
.hc-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.1fr 1fr; gap: 40px; }
.hc-footer__brand p { margin: 18px 0; font-size: 14.5px !important; color: rgba(255, 255, 255, .6); max-width: 320px; }
.hc-footer h4 { margin: 4px 0 18px; color: #fff; font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; position: relative; padding-bottom: 12px; }
.hc-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; background: var(--hc-red); border-radius: 2px; }
.hc-footer ul { list-style: none; margin: 0; padding: 0; }
.hc-footer li { margin: 0 0 10px; }
.hc-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: all .2s; }
.hc-footer a:hover { color: #fff; padding-left: 4px; }
.hc-footer .hc-logo { color: #fff; padding-left: 0; }
.hc-footer .hc-logo:hover { padding-left: 0; }
.hc-social { display: flex; gap: 10px; flex-wrap: wrap; }
.hc-social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; font-size: 15px; padding: 0 !important; }
.hc-social a:hover { background: var(--hc-red); color: #fff; transform: translateY(-3px); padding-left: 0; }
.hc-footer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 44px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: rgba(255, 255, 255, .5); }
.hc-footer__bar i { color: var(--hc-red-3); }
@media (max-width: 991px) { .hc-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .hc-footer__grid { grid-template-columns: 1fr; gap: 30px; } .hc-footer { padding-top: 44px; } }

/* ---------- Pages d'authentification ---------- */
.hc-auth-body { background: var(--hc-black) !important; min-height: 100vh; display: flex; flex-direction: column; }
.hc-auth {
  flex: 1; display: flex; align-items: center; justify-content: center; padding: 110px 16px 50px; position: relative;
  background:
    radial-gradient(800px 420px at 15% 0%, rgba(205, 51, 51, .55), transparent 60%),
    radial-gradient(700px 420px at 100% 100%, rgba(97, 17, 16, .75), transparent 60%),
    var(--hc-black);
}
.hc-auth::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 24px 24px; pointer-events: none; }
.hc-auth__box { position: relative; width: 100%; max-width: 440px; background: #fff; border-radius: 20px; padding: 40px 38px 34px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.hc-auth__box--wide { max-width: 560px; }
.hc-auth__logo { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 8px; color: var(--hc-ink) !important; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; font-size: 18px; }
.hc-auth__logo img { width: 40px; height: 40px; border-radius: 10px; }
.hc-auth h1 { text-align: center; font-size: 26px; margin: 10px 0 6px; text-transform: uppercase; letter-spacing: 1.5px; }
.hc-auth__lead { text-align: center; color: var(--hc-muted); margin: 0 0 26px; font-size: 14.5px !important; }
.hc-auth__alt { text-align: center; margin: 22px 0 0; font-size: 14px; color: var(--hc-muted); }
.hc-auth__alt a, .hc-auth .link { color: var(--hc-red) !important; font-weight: 700; }
.hc-auth__alt a:hover, .hc-auth .link:hover { color: var(--hc-red-2) !important; }
.hc-auth .btn { width: 100%; }
.hc-auth .form-group { margin-bottom: 18px; text-align: left; }
.hc-auth .form-check { display: flex; gap: 10px; align-items: flex-start; text-align: left; font-size: 13.5px; }
.hc-auth .form-check input { margin-top: 4px; accent-color: var(--hc-red); }
.hc-auth .container { max-width: none; padding: 0; margin: 0; background: transparent; color: inherit; border-radius: 0; text-align: left; }
.hc-auth ul { padding-left: 18px; }
.hc-auth .help-text, .hc-auth small { color: var(--hc-muted); }

/* ---------- Pages d'erreur ---------- */
.hc-error { text-align: center; color: #fff; }
.hc-error__code { font-size: clamp(90px, 20vw, 170px); font-weight: 800; line-height: 1; margin: 0; letter-spacing: 6px; background: linear-gradient(135deg, #fff 0%, #ff9a9a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hc-error__title { font-size: 22px; text-transform: uppercase; letter-spacing: 3px; margin: 6px 0 12px; color: #fff !important; }
.hc-error__text { color: rgba(255, 255, 255, .7); max-width: 460px; margin: 0 auto 28px; }
.hc-error .hc-btn { display: inline-block; text-decoration: none; }

/* ---------- Mentions légales ---------- */
.hc-legal { max-width: 900px; margin: 40px auto 56px; padding: 40px 44px; background: #fff; border: 1px solid var(--hc-line); border-radius: var(--hc-radius); box-shadow: var(--hc-shadow); }
.hc-legal h1 { font-size: 28px; text-transform: uppercase; letter-spacing: 1px; }
.hc-legal h2[style*=center] { border-left: 0; padding-left: 0; }
.hc-legal h2, .hc-legal h3 { font-size: 18px; margin-top: 32px; text-transform: uppercase; letter-spacing: 1px; padding-left: 14px; border-left: 4px solid var(--hc-red); }
.hc-legal p, .hc-legal li { color: var(--hc-text); }

/* ---------- Divers ---------- */
.hc-main hr { border-color: var(--hc-line); opacity: 1; }
.hc-main .swal2-popup { font-family: var(--hc-font); border-radius: 18px; }
.hc-main pre { border-radius: 12px; }

@media (max-width: 767px) {
  .hc-hero { padding: 38px 0 44px; }
  .hc-main > .container, .hc-main > .containerr { margin-top: 24px; margin-bottom: 32px; }
  .hc-panel { padding: 22px 20px; }
  .hc-main .container-cours { padding: 22px 18px; }
  .hc-auth__box { padding: 32px 22px 26px; }
  .hc-legal { padding: 26px 20px; margin: 24px 14px 40px; }
  .hc-main .cards-list { grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 0 14px; margin-top: 24px; }
  .hc-main .cards-list .card .card_title { padding: 0 12px 12px; }
  .hc-main .cards-list .card .card_title p.textchall { font-size: 14px; letter-spacing: .8px; }
  .hc-main table thead th, .hc-main table tbody td { padding: 11px 12px; }
  .hc-main .breadcrumb { border-radius: 14px; }
}
@media (max-width: 380px) { .hc-main .cards-list { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }

/* ---------- Header simplifié (pages publiques) ---------- */
.hc-header--simple .hc-nav { position: static; max-height: none; overflow: visible; background: transparent; border: 0; box-shadow: none; }
.hc-header--simple .hc-nav ul { flex-direction: row; padding: 0; gap: 4px; }
.hc-header--simple .hc-nav a { width: auto; height: 40px; line-height: 40px; }
.hc-auth-body .hc-footer { margin-top: 0; }
.hc-auth ul:not(.hc-list) { list-style: none; padding: 0; margin: 6px 0 0; }
.hc-auth ul li { color: var(--hc-red); font-size: 13px; font-weight: 700; }
.hc-auth .form-error-message, .hc-auth .invalid-feedback { color: var(--hc-red); font-size: 13px; font-weight: 700; display: block; }
.hc-legal-body { background: var(--hc-bg); }
.hc-legal p, .hc-legal li { font-size: 15.5px; line-height: 1.8; }
.hc-legal .row { margin: 0; }
@media (max-width: 575px) { .hc-header--simple .hc-logo span { display: none; } }

/* ---------- Administration : listes & formulaires ---------- */
.hc-main .textuser, .hc-main .adminchall, .hc-main h1.mb-4, .hc-main h2.adminchall { display: none; }
.hc-main .search-form { display: flex; gap: 10px; align-items: stretch; margin: 0 0 22px; max-width: 560px; }
.hc-main .search-form .form-group, .hc-main .search-form .input-group { display: flex; gap: 10px; flex: 1; margin: 0; width: 100%; }
.hc-main .search-form .input-group-append { display: contents; }
.hc-main .search-form input[type=text] { flex: 1; }
.hc-main .search-form button[type=submit] {
  background: var(--hc-red); color: #fff; border: 2px solid var(--hc-red); border-radius: 999px; padding: 0 24px;
  font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; transition: all .25s; white-space: nowrap;
}
.hc-main .search-form button[type=submit]:hover { background: var(--hc-red-2); border-color: var(--hc-red-2); }
.hc-main .linkback {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; padding: 11px 22px; border-radius: 999px;
  border: 2px solid var(--hc-ink); color: var(--hc-ink) !important; font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
}
.hc-main .linkback::before { content: "\f060"; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 12px; }
.hc-main .linkback:hover { background: var(--hc-ink); color: #fff !important; }
.hc-main td form { display: inline; margin: 0; }
.hc-main td .btn { margin: 2px 4px 2px 0; }
.hc-main td span + span { margin-left: 4px; }
.hc-main td > span:not(.badge) { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .6px; background: #f1f1f5; color: var(--hc-text); border-radius: 999px; padding: 3px 10px; margin: 2px 4px 2px 0; }
.hc-main .content-list { margin-top: 18px; }
.hc-main .column.is-8, .hc-main .column.is-6 { padding: 0; }
.hc-main .column.is-8, .hc-main .column.is-8 .title { box-shadow: none; border: 0; background: transparent; overflow: visible; }
.hc-main .column.is-8 h1.title { display: none; }
.hc-main .content-list ul.list-group { padding: 0; }
.hc-main .content-list .list-group-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.hc-main .content-list .course-name { font-weight: 800; color: var(--hc-ink); }
.hc-main .field.is-grouped { display: flex; gap: 8px; margin: 0; }
.hc-main .field.is-grouped p.control { margin: 0; }
.hc-main .no-results { color: var(--hc-red) !important; font-weight: 700; }
.hc-main .custom-textarea, .hc-main textarea { min-height: 140px; resize: vertical; }
.hc-main form .form-group > div { margin-top: 2px; }
.hc-main > .container > form:not(.search-form):not(.hc-inline) { background: #fff; border: 1px solid var(--hc-line); border-radius: var(--hc-radius); box-shadow: var(--hc-shadow); padding: 30px 32px; max-width: 760px; margin: 0 auto; }
.hc-main .container pre, .hc-main .card pre { background: #1e1e1e; color: #eaeaea; padding: 18px; }
@media (max-width: 767px) { .hc-main > .container > form:not(.search-form) { padding: 22px 18px; } .hc-main .search-form { max-width: none; } }

/* =====================================================================
   PAGE D'ACCUEIL PUBLIQUE
   ===================================================================== */
.hc-landing { background: #fff !important; }
.hc-landing a { text-decoration: none; }
.hc-landing__hero {
  position: relative; margin-top: var(--hc-header-h); color: #fff; overflow: hidden;
  padding: 110px 0 130px; min-height: calc(100vh - var(--hc-header-h)); display: flex; align-items: center;
  background:
    linear-gradient(135deg, rgba(205, 51, 51, .94) 0%, rgba(140, 28, 28, .93) 50%, rgba(97, 17, 16, .96) 100%),
    url('../img/banner.png') center / cover no-repeat;
}
.hc-landing__hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at 80% 30%, #000 0, transparent 70%); mask-image: radial-gradient(ellipse at 80% 30%, #000 0, transparent 70%); }
.hc-landing__hero .hc-wrap { position: relative; z-index: 1; }
.hc-landing__eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 8px 18px; border-radius: 999px;
  background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .2); font-size: 12px !important; font-weight: 700 !important; letter-spacing: 2.5px; text-transform: uppercase; }
.hc-landing__hero h1 { margin: 0 0 22px; color: #fff; font-family: var(--hc-font); font-weight: 800; text-transform: uppercase; letter-spacing: 2px;
  font-size: clamp(36px, 7vw, 80px); line-height: 1.05; }
.hc-landing__hero h1 span { background: linear-gradient(90deg, #fff, #ffc9c9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hc-landing__lead { max-width: 640px; margin: 0 0 34px; font-size: 19px !important; font-weight: 500; color: rgba(255, 255, 255, .88); }
.hc-landing__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }
.hc-btn--light { background: #fff !important; color: var(--hc-red) !important; border-color: #fff !important; box-shadow: 0 10px 26px rgba(0, 0, 0, .25) !important; }
.hc-btn--light:hover { background: #ffecec !important; border-color: #ffecec !important; color: var(--hc-red-2) !important; }
.hc-btn--outline { background: transparent !important; color: #fff !important; border-color: rgba(255, 255, 255, .7) !important; box-shadow: none !important; }
.hc-btn--outline:hover { background: #fff !important; color: var(--hc-red) !important; }
.hc-btn { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; text-decoration: none; }
.hc-landing__stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 0; padding: 0; list-style: none; }
.hc-landing__stats li { display: flex; flex-direction: column; }
.hc-landing__stats strong { font-size: 30px; font-weight: 800; line-height: 1.1; }
.hc-landing__stats span { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; opacity: .75; font-weight: 600; }
.hc-landing__down { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .35); color: #fff; border: 1px solid rgba(255, 255, 255, .35); animation: hcBounce 2s infinite; z-index: 2; }
@keyframes hcBounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

.hc-section { padding: 96px 0; background: #fff; scroll-margin-top: var(--hc-header-h); }
.hc-section--alt { background: var(--hc-bg); }
.hc-section--dark { background: radial-gradient(800px 360px at 15% 0%, rgba(205, 51, 51, .5), transparent 60%), var(--hc-black); color: #fff; }
.hc-section__head { text-align: center; margin: 0 auto 52px; max-width: 700px; }
.hc-kicker { margin: 0 0 8px; color: var(--hc-red); font-size: 13px !important; font-weight: 800 !important; letter-spacing: 3px; text-transform: uppercase; }
.hc-section h2 { margin: 0; font-family: var(--hc-font); font-weight: 800; font-size: clamp(26px, 4vw, 38px); color: var(--hc-ink); letter-spacing: .5px; line-height: 1.2; }
.hc-section--dark h2 { color: #fff; }
.hc-section--dark .hc-kicker { color: #ff9a9a; }

.hc-points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.hc-point { text-align: center; padding: 34px 20px; border: 1px solid var(--hc-line); border-radius: 18px; background: #fff; box-shadow: var(--hc-shadow); transition: transform .3s, box-shadow .3s; }
.hc-point:hover { transform: translateY(-6px); box-shadow: var(--hc-shadow-lg); }
.hc-point i { display: inline-flex; align-items: center; justify-content: center; width: 70px; height: 70px; border-radius: 20px; margin-bottom: 18px; font-size: 28px;
  color: #fff; background: linear-gradient(135deg, var(--hc-red), var(--hc-red-2)); box-shadow: 0 10px 22px rgba(205, 51, 51, .35); }
.hc-point h3 { margin: 0; font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; color: var(--hc-ink); }

.hc-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.hc-feature { background: #fff; border-radius: 18px; padding: 34px 30px; border: 1px solid var(--hc-line); box-shadow: var(--hc-shadow); display: flex; flex-direction: column; }
.hc-feature__icon { width: 54px; height: 54px; border-radius: 14px; background: #fdeaea; color: var(--hc-red); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 18px; }
.hc-feature h3 { margin: 0 0 12px; font-size: 19px; font-weight: 800; color: var(--hc-ink); }
.hc-feature p { font-size: 15px !important; color: var(--hc-text); flex: 1; }
.hc-feature p a, .hc-landing .hc-contact a { color: var(--hc-red); font-weight: 700; }
.hc-more { margin-top: 10px; align-self: flex-start; color: var(--hc-red) !important; font-weight: 800; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.hc-more i { margin-left: 6px; transition: transform .25s; }
.hc-more:hover i { transform: translateX(5px); }

.hc-projects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.hc-project { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; background: var(--hc-black); box-shadow: var(--hc-shadow); transition: transform .35s, box-shadow .35s; }
.hc-project:hover { transform: translateY(-6px); box-shadow: var(--hc-shadow-lg); }
.hc-project img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.hc-project:hover img { transform: scale(1.07); }
.hc-project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(97, 17, 16, .92), rgba(0, 0, 0, 0) 60%); }
.hc-project span { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 18px; color: #fff; font-weight: 800; font-size: 17px; text-transform: uppercase; letter-spacing: 1px; line-height: 1.25; }

.hc-partners-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.hc-pcard { text-align: center; padding: 30px 18px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #fff !important; transition: all .3s; display: flex; flex-direction: column; align-items: center; }
.hc-pcard:hover { background: rgba(255, 255, 255, .12); border-color: var(--hc-red-3); transform: translateY(-5px); }
.hc-pcard img, .hc-pcard__icon { width: 92px; height: 92px; border-radius: 20px; object-fit: cover; margin-bottom: 16px; background: #fff; }
.hc-pcard__icon { display: inline-flex; align-items: center; justify-content: center; font-size: 36px; color: var(--hc-red); }
.hc-pcard h3 { margin: 0 0 4px; font-size: 17px; font-weight: 800; color: #fff; }
.hc-pcard span { font-size: 13px; color: rgba(255, 255, 255, .65); font-weight: 500; }

.hc-contact { display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: start; }
.hc-contact h2 { margin-bottom: 26px; }
.hc-contact ul { list-style: none; padding: 0; margin: 0; }
.hc-contact li { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; font-weight: 700; }
.hc-contact li span { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--hc-red); color: #fff; }
.hc-contact__form { background: #fff; border: 1px solid var(--hc-line); border-radius: 20px; padding: 30px; box-shadow: var(--hc-shadow); display: flex; flex-direction: column; gap: 14px; }
.hc-contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hc-contact__form input, .hc-contact__form textarea { width: 100%; background: #fff; border: 1.5px solid var(--hc-line); border-radius: 10px; padding: 12px 14px; font-family: var(--hc-font); font-size: 15px; font-weight: 500; color: var(--hc-ink); }
.hc-contact__form input:focus, .hc-contact__form textarea:focus { outline: none; border-color: var(--hc-red); box-shadow: 0 0 0 4px rgba(205, 51, 51, .14); }
.hc-contact__form .hc-btn { align-self: flex-start; border: 2px solid var(--hc-red); }

.hc-landing .hc-footer { margin-top: 0; }
.hc-landing .hc-nav a.is-active { background: transparent; }

@media (max-width: 991px) {
  .hc-points { grid-template-columns: repeat(2, 1fr); }
  .hc-features { grid-template-columns: 1fr; }
  .hc-projects { grid-template-columns: repeat(2, 1fr); }
  .hc-partners-grid { grid-template-columns: repeat(2, 1fr); }
  .hc-contact { grid-template-columns: 1fr; gap: 34px; }
  .hc-section { padding: 70px 0; }
}
@media (max-width: 575px) {
  .hc-landing__hero { padding: 70px 0 110px; min-height: 0; }
  .hc-landing__lead { font-size: 16.5px !important; }
  .hc-points, .hc-projects { gap: 14px; }
  .hc-point { padding: 24px 12px; }
  .hc-point i { width: 56px; height: 56px; font-size: 22px; }
  .hc-point h3 { font-size: 12.5px; }
  .hc-partners-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hc-pcard { padding: 20px 10px; }
  .hc-pcard img, .hc-pcard__icon { width: 70px; height: 70px; }
  .hc-contact__row { grid-template-columns: 1fr; }
  .hc-contact__form { padding: 20px; }
  .hc-project span { font-size: 14px; left: 12px; right: 12px; bottom: 12px; }
}

.hc-project--logo { background: radial-gradient(circle at 50% 35%, #2a0c0c, var(--hc-black)); }
.hc-project--logo img { object-fit: contain; padding: 16% 16% 30%; }

@media (max-width: 767px) {
  .hc-main table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .hc-main .column { overflow-x: auto; }
}

.hc-main label.col-sm-2, .hc-main label.control-label { width: auto; max-width: none; flex: none; display: block; }
.hc-main .form-horizontal .form-group > div[class*=col-] { width: 100%; max-width: none; padding: 0; }

/* Boutons générés par Symfony sans classe Bootstrap */
.hc-main form[name] button[type=submit]:not(.btn), .hc-main .modal-content button[type=submit]:not(.btn) {
  background: var(--hc-red); color: #fff; border: 2px solid var(--hc-red); border-radius: 999px; padding: 11px 26px; cursor: pointer;
  font-family: var(--hc-font); font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; transition: all .25s; margin-top: 8px;
  box-shadow: 0 6px 16px rgba(205, 51, 51, .28);
}
.hc-main form[name] button[type=submit]:not(.btn):hover, .hc-main .modal-content button[type=submit]:not(.btn):hover { background: var(--hc-red-2); border-color: var(--hc-red-2); }
