:root {
  --fg: #111827;
  --muted: #374151;
}
html,
body {
  height: 100%;
  margin: 0;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  color: var(--fg);
  font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: repeating-linear-gradient(90deg, #d50000 0 12.5%, #ffcc00 12.5% 25%);
  background-size: 100% 100%;
}
.main-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 16px rgba(0,0,0,.12);
}
.nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  width: 100%;
  padding: .85rem clamp(.75rem, 2vw, 2.25rem);
  padding-left: 0;
  max-width: none;
  margin: 0;
  font-weight: 600;
}
.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  font-weight: 900;
  letter-spacing: .28em;
  text-transform: uppercase;
  text-decoration: none;
  margin-left: 50px;
  padding-left: 2.5rem;
  color: transparent;
  background: linear-gradient(120deg, #d50000, #ffcc00 55%, #fb7185);
  background-clip: text;
  -webkit-background-clip: text;
}
.brand-mark::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) rotate(12deg);
  width: 34px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(120deg, #d50000, #ffcc00);
  box-shadow: 0 0 15px rgba(0,0,0,.15);
}
.brand-mark::after {
  content: '';
  position: absolute;
  left: 6px;
  top: calc(50% - 4px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  opacity: .6;
}
.brand-mark:hover,
.brand-mark:focus {
  background: linear-gradient(120deg, #ffcc00, #f97316, #d50000);
  -webkit-background-clip: text;
  background-clip: text;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  max-width: 900px;
}
.main-nav a {
  display: inline-block;
  padding: .25rem 0;
  color: #b91c1c;
  text-decoration: none;
  letter-spacing: .03em;
  text-transform: uppercase;
  font-size: .875rem;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #7f1d1d;
}
.main-nav a.is-active {
  color: #7f1d1d;
  border-bottom: 2px solid #7f1d1d;
  padding-bottom: .2rem;
}
.hero {
  display: grid;
  place-items: center;
  min-height: 100vh;
}
.hero.is-hidden {
  display: none;
}
.wrap {
  text-align: center;
  padding: 4rem 1.25rem;
  max-width: 860px;
  width: 100%;
  background: rgba(255,255,255,0.9);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.logo {
  width: min(420px, 70vw);
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.15));
}
h1 {
  margin: 1.75rem 0 0.25rem;
  font-size: clamp(1.5rem, 1rem + 2.2vw, 2.5rem);
}
p.tagline {
  margin: .25rem 0 0;
  font-size: clamp(1rem, .9rem + .4vw, 1.25rem);
  color: var(--muted);
}
section.services {
  background: rgba(255,255,255,0.95);
  padding: 3rem 2rem;
  border-radius: 1rem 1rem 0 0;
  box-shadow: 0 -4px 12px rgba(0,0,0,.15);
}
section.services h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #b91c1c;
}
.service-category {
  margin-bottom: 2rem;
}
.service-category h3 {
  color: #b91c1c;
  margin-bottom: .5rem;
  border-bottom: 2px solid #ffcc00;
  display: inline-block;
  padding-bottom: .25rem;
}
ul { list-style: none; padding-left: 0; margin: 0; }
li {
  position: relative;
  padding-left: 1.25rem;
}
li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: #b91c1c;
  font-weight: bold;
}
footer {
  text-align: center;
  padding: 1rem;
  font-size: .875rem;
  color: var(--muted);
  background: rgba(255,255,255,0.85);
}
.content-area {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.content-area.is-loading {
  opacity: .5;
}
.content-panel {
  background: rgba(255,255,255,0.9);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  text-align: center;
}
.content-panel h2 {
  margin: 0;
  color: #b91c1c;
}
.content-panel.error {
  border: 2px solid #b91c1c;
}
.story-panel {
  text-align: left;
}
.story-illustration {
  margin: 0 auto 2rem;
  max-width: 540px;
  text-align: center;
}
.story-illustration img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 15px 35px rgba(0,0,0,.15);
}
.story-illustration figcaption {
  margin-top: .75rem;
  font-size: .95rem;
  color: #6b7280;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.account-panel {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.account-card {
  background: rgba(255,255,255,0.95);
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}
.login-card h2 {
  margin-top: 0;
}
.account-form {
  display: grid;
  gap: 1rem;
}
.account-form label {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  font-weight: 600;
  width: 100%;
}
.account-form input {
  font: inherit;
  padding: .85rem 1rem;
  border-radius: .65rem;
  border: 1px solid #d1d5db;
  background: #fff;
  width: 100%;
}
.account-form input:focus {
  outline: none;
  border-color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(185,28,28,.15);
}
.account-submit {
  width: fit-content;
  border: none;
  cursor: pointer;
}
.account-link {
  font-size: .9rem;
  color: #b91c1c;
  text-decoration: none;
}
.account-link:hover {
  text-decoration: underline;
}
.register-card h3 {
  margin-top: 0;
}
.is-hidden {
  display: none !important;
}
.cta.secondary {
  background: transparent;
  color: #b91c1c;
  border: 2px solid #b91c1c;
}
.cta.secondary:hover {
  background: rgba(185,28,28,.08);
}
.contact-panel {
  text-align: left;
  font-size: 1.05rem;
  line-height: 1.65;
}
.contact-panel h2 {
  font-size: clamp(1.8rem, 1.2rem + 1.5vw, 2.4rem);
  text-align: left;
}
.contact-intro {
  margin: 0 auto 1.5rem;
  max-width: 560px;
  line-height: 1.55;
  text-align: left;
}
.contact-intro a {
  color: #b91c1c;
  font-weight: 600;
  text-decoration: none;
}
.contact-intro a:hover,
.contact-intro a:focus {
  text-decoration: underline;
}
.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 560px;
  margin: 0 auto;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.form-field label {
  font-weight: 600;
  color: #0f172a;
}
.form-field input,
.form-field textarea {
  font: inherit;
  padding: .85rem 1rem;
  border-radius: .65rem;
  border: 1px solid #d1d5db;
  background: rgba(255,255,255,0.95);
  transition: border .2s ease, box-shadow .2s ease;
}
.form-field textarea {
  resize: vertical;
  min-height: 140px;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(185,28,28,.15);
}
.contact-submit {
  width: fit-content;
  align-self: flex-start;
  border: none;
  cursor: pointer;
}
.cta {
  display:inline-block;
  margin-top: 1.25rem;
  padding: .8rem 1.1rem;
  border-radius: .75rem;
  background: #b91c1c;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
}
.cta:hover { filter: brightness(1.05); }
.cta:active { transform: translateY(1px); }
.scroll-indicator {
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  gap:.5rem;
  margin-top:2rem;
  color:#b91c1c;
  text-decoration:none;
  font-weight:600;
  letter-spacing:.05em;
}
.scroll-indicator span {
  display:inline-flex;
  width:70px;
  height:70px;
  border-radius:50%;
  border:3px solid #b91c1c;
  align-items:center;
  justify-content:center;
  font-size:2.25rem;
  transition:transform .3s ease, background .3s ease, color .3s ease;
}
.scroll-indicator:hover span {
  transform:translateY(4px);
  background:#b91c1c;
  color:#fff;
}
.intervenant-register-flow {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed #e5e7eb;
  display: grid;
  gap: 1rem;
  text-align: left;
}
.inline-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.form-hint {
  margin: 0;
  font-size: .95rem;
  color: #6b7280;
}
.status-message {
  margin: 0;
  padding: .75rem 1rem;
  border-radius: .65rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #111827;
}
.status-message.error {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #7f1d1d;
}
.status-message.success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}
.hero-panel {
  display: flex;
  justify-content: center;
  padding: 3rem 1.5rem;
}
.hero-panel .wrap {
  margin: 0;
}
