/* =====================================================================
   Charte graphique — Pages publiques ICC Limoges (hors page événement)
   Tokens + composants partagés. Toutes les règles de composants sont
   scopées sous .charte-scope pour ne jamais déborder sur les pages qui
   chargent encore Bootstrap/Tabler (accueil, à propos).
   ===================================================================== */

:root {
  --ink: #172333;
  --ink-soft: #4B5768;
  --ink-faint: #7C8797;
  --paper: #FBF9F5;
  --paper-2: #F1EBE0;
  --paper-3: #E9E1D2;
  --line: #E4DBCB;
  --line-strong: #D3C7AF;

  --flame: #FF5E14;
  --flame-text: #C4460E;
  --horizon: #2C9CD6;
  --horizon-text: #146690;
  --pousse: #6FAE3E;
  --pousse-text: #4F8A2C;
  --or: #F2B705;
  --or-text: #8C6304;
  --braise: #E14A38;
  --braise-text: #C22A1E;

  --font-display: 'Poppins', ui-rounded, -apple-system, "Segoe UI", sans-serif;
  --font-body: 'Inter', -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(23,35,51,.06), 0 1px 1px rgba(23,35,51,.04);
  --shadow: 0 10px 30px -12px rgba(23,35,51,.18), 0 2px 8px rgba(23,35,51,.06);
}

/* ============ PAGE SHELL (public/base.html.twig, public/minimal_base.html.twig) ============ */
.charte-scope { color-scheme: light; }
body.charte-scope {
  margin: 0;
  overflow-x: hidden; /* the closed Bootstrap offcanvas is transform:translateX(100%), which counts toward document scroll width otherwise */
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.charte-scope img { max-width: 100%; }
.charte-scope h1, .charte-scope h2, .charte-scope h3, .charte-scope h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0;
  color: var(--ink);
}
.charte-scope p { margin: 0 0 1em; }
.charte-scope a { color: var(--flame-text); text-decoration-color: color-mix(in oklab, var(--flame-text) 40%, transparent); }
.charte-scope a:hover { color: var(--ink); }

/* ============ BUTTONS ============ */
.charte-scope .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 600 .92rem/1 var(--font-body); padding: .85em 1.4em; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, filter .12s ease, background-color .12s ease, border-color .12s ease, color .12s ease;
}
.charte-scope .btn:active { transform: translateY(1px); }
.charte-scope .btn-primary { background: var(--flame); color: #fff; }
.charte-scope .btn-primary:hover { filter: brightness(1.06); color: #fff; }
.charte-scope .btn-secondary { background: var(--ink); color: var(--paper); }
.charte-scope .btn-secondary:hover { filter: brightness(1.15); color: var(--paper); }
.charte-scope .btn-outline { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.charte-scope .btn-outline:hover { border-color: var(--flame); color: var(--flame-text); }
.charte-scope .btn-ghost { background: transparent; color: var(--ink-soft); }
.charte-scope .btn-ghost:hover { background: var(--paper-2); color: var(--ink); }
.charte-scope .btn-danger { background: transparent; border-color: var(--braise); color: var(--braise-text); }
.charte-scope .btn-danger:hover { background: var(--braise); color: #fff; }
.charte-scope .btn-danger-solid { background: var(--braise); border-color: var(--braise); color: #fff; }
.charte-scope .btn-danger-solid:hover { filter: brightness(1.08); }
.charte-scope .btn-block { width: 100%; }
.charte-scope .btn-link {
  background: none; border: none; padding: 0; color: var(--flame-text); font: 600 .92rem/1 var(--font-body);
  text-underline-offset: 3px; text-decoration: underline; cursor: pointer;
}
.charte-scope .btn[disabled], .charte-scope .btn:disabled { opacity: .5; cursor: not-allowed; }

/* ============ STATUS CHIPS ============ */
.charte-scope .chip {
  display: inline-flex; align-items: center; gap: .4em; font: 600 .78rem/1 var(--font-body);
  padding: .45em .8em; border-radius: 999px; letter-spacing: .02em;
}
.charte-scope .chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.charte-scope .chip-success { background: color-mix(in oklab, var(--pousse) 16%, transparent); color: var(--pousse-text); }
.charte-scope .chip-warn { background: color-mix(in oklab, var(--or) 20%, transparent); color: var(--or-text); }
.charte-scope .chip-danger { background: color-mix(in oklab, var(--braise) 14%, transparent); color: var(--braise-text); }
.charte-scope .chip-info { background: color-mix(in oklab, var(--horizon) 14%, transparent); color: var(--horizon-text); }
.charte-scope .chip-neutral { background: var(--paper-3); color: var(--ink-soft); }

/* ============ CALLOUTS ============ */
.charte-scope .callout { display: flex; gap: .9rem; padding: 1.05rem 1.2rem; border-radius: var(--radius); border: 1px solid; text-align: left; }
.charte-scope .callout svg { flex: none; width: 19px; height: 19px; margin-top: .15rem; }
.charte-scope .callout h4 { font: 700 .92rem/1.3 var(--font-display); margin-bottom: .2rem; }
.charte-scope .callout p { font-size: .85rem; color: var(--ink-soft); line-height: 1.55; margin: 0; }
.charte-scope .callout-info { background: color-mix(in oklab, var(--horizon) 8%, var(--paper-2)); border-color: color-mix(in oklab, var(--horizon) 30%, var(--line)); }
.charte-scope .callout-info svg { color: var(--horizon-text); }
.charte-scope .callout-success { background: color-mix(in oklab, var(--pousse) 8%, var(--paper-2)); border-color: color-mix(in oklab, var(--pousse) 30%, var(--line)); }
.charte-scope .callout-success svg { color: var(--pousse-text); }
.charte-scope .callout-warn { background: color-mix(in oklab, var(--or) 10%, var(--paper-2)); border-color: color-mix(in oklab, var(--or) 35%, var(--line)); }
.charte-scope .callout-warn svg { color: var(--or-text); }
.charte-scope .callout-danger { background: color-mix(in oklab, var(--braise) 8%, var(--paper-2)); border-color: color-mix(in oklab, var(--braise) 30%, var(--line)); }
.charte-scope .callout-danger svg { color: var(--braise-text); }

/* ============ FORM FIELDS ============ */
.charte-scope .field { display: flex; flex-direction: column; gap: .4rem; text-align: left; margin-bottom: 1rem; }
.charte-scope .field label { font: 600 .82rem/1 var(--font-body); color: var(--ink); }
.charte-scope .field .hint { font-size: .76rem; color: var(--ink-faint); }
.charte-scope .field .error { font-size: .78rem; color: var(--braise-text); }
.charte-scope .input,
.charte-scope select.input,
.charte-scope textarea.input {
  font: 500 .95rem/1 var(--font-body); padding: .8em .95em; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong); background: var(--paper); color: var(--ink);
  width: 100%; transition: border-color .12s ease, box-shadow .12s ease;
}
.charte-scope .input:focus,
.charte-scope select.input:focus,
.charte-scope textarea.input:focus {
  outline: none; border-color: var(--flame); box-shadow: 0 0 0 4px color-mix(in oklab, var(--flame) 18%, transparent);
}
.charte-scope textarea.input { min-height: 5.2em; resize: vertical; font-family: var(--font-body); }
.charte-scope .form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 1rem; }
.charte-scope .checkline { display: flex; align-items: center; gap: .55rem; font-size: .88rem; color: var(--ink-soft); }
.charte-scope .checkline input { width: 1.05rem; height: 1.05rem; accent-color: var(--flame); }

/* ============ CARDS ============ */
.charte-scope .card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.charte-scope .card-pad { padding: 1.4rem 1.5rem; }
.charte-scope .card-header { padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.charte-scope .card-header h3 { font-size: 1.02rem; display: flex; align-items: center; gap: .5em; }
.charte-scope .card.card-danger { border-color: color-mix(in oklab, var(--braise) 35%, var(--line)); }

/* =====================================================================
   HEADER — repris du composant public_navbar d'origine (Bootstrap
   offcanvas + dropdown), recoloré avec les tokens de la charte.
   Par défaut (pas de hero) : bandeau plein, encre, toujours visible.
   Sur l'accueil (overlay) : transparent sur la vidéo, devient identique
   au bandeau plein une fois le scroll dépassé (classe .fixed, gérée par
   public/js/index/custom.js déjà en place).
   ===================================================================== */
#header_sec {
  position: absolute;
  width: 100%;
  z-index: 99;
}
#header_sec .logo_section img { height: 64px; width: auto; }
#header_sec .nav-link {
  font: 600 15px/15px var(--font-body);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #fff;
  padding: 0 !important;
  margin: 0 13px;
}
#header_sec li.nav-item:last-child a.nav-link { margin-right: 0; }
#header_sec .nav-link:hover,
#header_sec .nav-link:focus { color: var(--flame) !important; }
#header_sec.fixed,
#header_sec.header-solid {
  position: fixed;
  z-index: 1030;
  background: var(--ink);
  width: 100%;
  top: 0;
  left: 0;
  box-shadow: 0 0 22px -4px rgba(0, 0, 0, .17);
}
#header_sec.header-solid { position: sticky; }
#header_sec.fixed .logo_section img,
#header_sec.header-solid .logo_section img { height: 54px; transition: height .2s ease; }
#header_sec .dropdown-menu {
  background: var(--ink); border: 1px solid rgba(255, 255, 255, .12); padding: .4rem;
}
#header_sec .dropdown-item {
  color: #D8DEE8; font: 500 .88rem/1 var(--font-body); border-radius: 6px; padding: .55rem .8rem;
}
#header_sec .dropdown-item:hover,
#header_sec .dropdown-item:focus { background: rgba(255, 255, 255, .08); color: #fff; }
#header_sec .dropdown-divider { border-top-color: rgba(255, 255, 255, .12); }
#header_sec .offcanvas { background: var(--ink); color: #fff; }
#header_sec .offcanvas .nav-link { color: #fff; margin: 0; padding: .7rem 0 !important; display: block; }
#header_sec .offcanvas .nav-link:hover,
#header_sec .offcanvas .nav-link:focus { color: var(--flame) !important; }
#header_sec .offcanvas .dropdown-menu { background: transparent; border: none; padding-left: 1rem; }
#header_sec .offcanvas .dropdown-item { color: #D8DEE8; }

/* ============ FOOTER ============ */
/* Styles propres au composant, voir partials/public_footer.html.twig */

/* =====================================================================
   GABARIT ① — Page de contenu (mentions légales, confidentialité, à propos)
   ===================================================================== */
.charte-scope .content-page { max-width: 760px; margin: 0 auto; padding: clamp(2.2rem, 5vw, 3.6rem) clamp(1.25rem, 4vw, 2.5rem) 5rem; }
.charte-scope .content-page__kicker {
  display: block; font: 600 .74rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .12em;
  color: var(--flame-text); margin-bottom: .8rem;
}
.charte-scope .content-page__intro { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.7; }
.charte-scope .content-page h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 1.2rem; }
.charte-scope .content-page h2 { font-size: 1.2rem; margin: 2.1rem 0 .8rem; }
.charte-scope .content-page h3 { font-size: 1.02rem; margin: 1.5rem 0 .5rem; }
.charte-scope .content-page p,
.charte-scope .content-page li { color: var(--ink-soft); line-height: 1.75; font-size: .96rem; }
.charte-scope .content-page ol,
.charte-scope .content-page ul { padding-left: 1.3rem; margin: 0 0 1em; }
.charte-scope .content-page li { margin-bottom: .35rem; }
.charte-scope .content-page strong { color: var(--ink); }
.charte-scope .content-page a { text-decoration: underline; text-underline-offset: 2px; }
.charte-scope .content-page .id-box {
  border-left: 3px solid var(--flame); background: var(--paper-2); padding: 1rem 1.2rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1rem 0 1.6rem;
}
.charte-scope .content-page .id-box p { margin: 0; font-size: .92rem; }
.charte-scope .content-page section + section { margin-top: .2rem; }

/* =====================================================================
   GABARIT ③ — Confirmation (remerciement, e-mails newsletter)
   ===================================================================== */
.charte-scope .status-page {
  min-height: calc(100vh - 2px); display: flex; align-items: center; justify-content: center;
  padding: 3rem 1.5rem; background: linear-gradient(180deg, var(--paper), var(--paper-2));
}
.charte-scope .status-page__box { width: 100%; max-width: 400px; text-align: center; }
.charte-scope .status-page__brand { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.6rem; font: 700 1rem/1 var(--font-display); color: var(--ink); text-decoration: none; }
.charte-scope .status-page__brand img { height: 40px; }
.charte-scope .status-page__card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2.3rem 1.9rem; box-shadow: var(--shadow); }
.charte-scope .status-page__badge {
  width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.3rem;
}
.charte-scope .status-page__badge svg { width: 26px; height: 26px; }
.charte-scope .status-page__badge--success { background: color-mix(in oklab, var(--pousse) 18%, white); color: var(--pousse-text); }
.charte-scope .status-page__badge--warn { background: color-mix(in oklab, var(--or) 22%, white); color: var(--or-text); }
.charte-scope .status-page__badge--danger { background: color-mix(in oklab, var(--braise) 16%, white); color: var(--braise-text); }
.charte-scope .status-page__badge--info { background: color-mix(in oklab, var(--horizon) 16%, white); color: var(--horizon-text); }
.charte-scope .status-page__card h1 { font-size: 1.3rem; margin-bottom: .7rem; }
.charte-scope .status-page__card p { color: var(--ink-soft); font-size: .92rem; line-height: 1.65; }
.charte-scope .status-page__card .callout { text-align: left; margin: 1.2rem 0; }
.charte-scope .status-page__actions { display: flex; gap: .6rem; justify-content: center; margin-top: 1.4rem; flex-wrap: wrap; }
.charte-scope .status-page__foot { margin-top: 1.3rem; font-size: .82rem; color: var(--ink-faint); }

/* =====================================================================
   GABARIT ④ — Espace participant (accès, tableau de bord, modifier, annuler)
   ===================================================================== */
.charte-scope .dash-page { max-width: 720px; margin: 0 auto; padding: clamp(1.8rem, 4vw, 2.8rem) clamp(1.25rem, 4vw, 2rem) 4rem; }
.charte-scope .dash-page__back {
  display: inline-flex; align-items: center; gap: .4rem; font: 600 .85rem/1 var(--font-body);
  color: var(--ink-soft); text-decoration: none; margin-bottom: 1.2rem;
}
.charte-scope .dash-page__back:hover { color: var(--flame-text); }
.charte-scope .dash-page__back svg { width: 16px; height: 16px; }

.charte-scope .status-card { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 1.5rem 1.6rem; margin-bottom: 1.2rem; }
.charte-scope .status-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .6rem; }
.charte-scope .status-card h1 { color: #fff; font-size: 1.25rem; margin-bottom: .25rem; }
.charte-scope .status-card p { color: #B9C1CF; font-size: .86rem; margin: 0; }
.charte-scope .status-card .chip { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.charte-scope .status-card .chip-success { background: color-mix(in oklab, var(--pousse) 30%, transparent); color: #B9EFA0; }
.charte-scope .status-card .chip-warn { background: color-mix(in oklab, var(--or) 30%, transparent); color: #F5E29B; }
.charte-scope .status-card .chip-danger { background: color-mix(in oklab, var(--braise) 30%, transparent); color: #FFC0B6; }

.charte-scope .waiting-note {
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.14);
  font-size: .82rem; color: #D8DEE8; line-height: 1.55;
}

.charte-scope .info-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin-bottom: 1rem; }
.charte-scope .info-card__title { font: 700 .9rem/1 var(--font-display); margin-bottom: .7rem; display: flex; align-items: center; gap: .5em; }
.charte-scope .info-card .row { display: flex; justify-content: space-between; gap: 1rem; font-size: .87rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); color: var(--ink-soft); }
.charte-scope .info-card .row:last-child { border-bottom: none; }
.charte-scope .info-card .row b { color: var(--ink); font-weight: 600; text-align: right; }
.charte-scope .info-card code { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--paper-2); padding: .1em .4em; border-radius: 4px; }

.charte-scope .actions-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.charte-scope .actions-card__title { font: 700 .9rem/1 var(--font-display); margin-bottom: .9rem; display: flex; align-items: center; gap: .5em; }
.charte-scope .actions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .7rem; }

.charte-scope .access-card { width: 100%; max-width: 420px; margin: 3rem auto; text-align: center; }
.charte-scope .access-card__icon { width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%; background: color-mix(in oklab, var(--horizon) 15%, white); color: var(--horizon-text); display: flex; align-items: center; justify-content: center; }
.charte-scope .access-card__icon svg { width: 26px; height: 26px; }
.charte-scope .access-card .card { padding: 2rem 1.8rem; text-align: left; }
.charte-scope .access-card h1 { font-size: 1.3rem; text-align: center; margin-bottom: .35rem; }
.charte-scope .access-card__sub { text-align: center; color: var(--ink-soft); font-size: .9rem; margin-bottom: 1.5rem; }
.charte-scope .access-card__help { text-align: center; font-size: .82rem; color: var(--ink-faint); margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }

@media (max-width: 560px) {
  .charte-scope .status-card__top { flex-direction: column; }
}
