:root {
  --bg: #f8f4ee;
  --surface: #fffdf9;
  --surface-alt: #f3eadf;
  --primary: #b96d57;
  --primary-dark: #8f4a37;
  --text: #1d1a17;
  --muted: #70675f;
  --line: #e7dccc;
  --shadow: 0 18px 50px rgba(42, 28, 18, 0.09);
  --dark: #1d1a17;
  --red: #e95e3a;
  --red-dark: #c2492b;
  --bg-soft: #ece7e1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg-soft);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(248, 244, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.top-strip {
  background: #171412;
  color: #f3e7dc;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.top-strip-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 34px;
}

.top-strip a {
  color: #ffd7c8;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-box img {
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.brand-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-text small {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
}

.navlinks {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 0.96rem;
}

.navlinks a:hover { color: var(--text); }
.navlinks a[aria-current="page"] { color: var(--red-dark); font-weight: 700; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--red);
  color: white;
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--red-dark); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.ticker-wrap {
  overflow: hidden;
  background: #f1ddd1;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: scrollTicker 28s linear infinite;
  padding: 12px 0;
}

.ticker-item {
  display: inline-block;
  padding: 0 28px;
  color: var(--text);
  font-weight: 700;
}

@keyframes scrollTicker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero {
  padding: 52px 0 32px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.eyebrow,
.card-kicker {
  display: inline-block;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-kicker.light {
  background: rgba(255,255,255,0.1);
  color: #f2d7c4;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.96;
  margin: 18px 0 18px;
  letter-spacing: -0.06em;
}

.subtitle {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 560px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.hero-side {
  display: grid;
  gap: 18px;
}

.hero-banner {
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: #f5efe9;
  box-shadow: var(--shadow);
}

.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.event-box {
  background: linear-gradient(135deg, #ffefe7, #f6d7c9);
  border: 2px solid var(--red);
  border-radius: 18px;
  padding: 18px 18px 10px;
  box-shadow: var(--shadow);
}

.event-box-header {
  background: var(--red);
  color: white;
  font-weight: 800;
  text-align: center;
  border-radius: 12px 12px 0 0;
  padding: 14px 8px;
  margin: -18px -18px 12px;
  font-size: 1.2rem;
}

.event-item + .event-item {
  border-top: 1px solid rgba(185, 109, 87, 0.2);
  padding-top: 14px;
  margin-top: 14px;
}
.event-empty {
  text-align: center;
  opacity: 0.7;
  padding: 20px;
}
.event-date {
  color: var(--red-dark);
  font-weight: 700;
  margin-bottom: 6px;
}

.event-title {
  font-weight: 800;
  margin-bottom: 4px;
}

.event-desc {
  color: var(--muted);
  font-size: 0.92rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.pill {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.section {
  padding: 52px 0;
}

.accent-section {
  background: rgba(255,255,255,0.35);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 12px;
  letter-spacing: -0.04em;
}

.section-subtitle {
  color: var(--muted);
  max-width: 700px;
  margin-bottom: 28px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.schedule-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.schedule-card-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.schedule-card-heading h3 {
  margin: 8px 0 0;
  font-size: 1.6rem;
}

.schedule-teacher {
  color: var(--red-dark);
  font-weight: 700;
}

.schedule-course-list {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.schedule-course-list li {
  display: grid;
  grid-template-columns: minmax(125px, auto) 1fr;
  gap: 12px;
}

.schedule-course-list time {
  font-weight: 700;
  white-space: nowrap;
}

.schedule-venue {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.card p { margin: 0; color: var(--muted); }

.stats {
  background: linear-gradient(135deg, #f0e5d8, #fffaf5);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 24px 0;
}

.stat {
  flex: 1 1 220px;
  max-width: 284px;
  text-align: center;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 10px;
}

.stat strong {
  display: block;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: center;
}

.photo-box {
  min-height: 420px;
  background: linear-gradient(135deg, #d7c1ad, #eadbc8);
  border-radius: 30px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.photo-box[src] {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-box::before {
  content: "";
  position: absolute;
  inset: 18% 22% 18% 22%;
  border-radius: 40% 60% 50% 50% / 46% 42% 58% 54%;
  background: rgba(255,255,255,0.45);
}

.contact-box {
  background: var(--dark);
  color: white;
  border-radius: 28px;
  padding: 30px;
}

.contact-box p,
.contact-box li {
  color: rgba(255,255,255,0.75);
}

.contact-form {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: white;
  font: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.6);
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-form select option {
  color: var(--text);
}

.privacy-consent {
  grid-template-columns: auto 1fr;
  align-items: start;
  font-size: 0.9rem;
  font-weight: 400 !important;
}

.privacy-consent input {
  margin: 5px 0 0;
  accent-color: var(--red);
}

.form-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
}

.form-status.success {
  background: #e5f4e8;
  color: #20582b;
}

.form-status.error {
  background: #fde9e4;
  color: #872d1c;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.contact-page {
  min-height: calc(100vh - 130px);
  padding: 54px 0 72px;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(233, 94, 58, 0.08), transparent 40%),
    var(--bg);
}

.contact-page-heading {
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: center;
}

.contact-page-heading h1 {
  margin: 14px 0;
}

.contact-page-heading .subtitle {
  max-width: 620px;
  margin: 0 auto;
}

.contact-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.contact-panel,
.contact-details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(22px, 4vw, 36px);
  box-shadow: var(--shadow);
}

.contact-panel h2,
.contact-details h2 {
  margin: 0 0 18px;
  font-size: 1.5rem;
}

.contact-panel .contact-form {
  margin-top: 0;
}

.contact-panel .contact-form label {
  color: var(--text);
}

.contact-panel .contact-form input,
.contact-panel .contact-form textarea,
.contact-panel .contact-form select {
  width: 100%;
  border-color: var(--line);
  background: #fff;
  color: var(--text);
}

.contact-panel .contact-form input:focus,
.contact-panel .contact-form textarea:focus,
.contact-panel .contact-form select:focus {
  outline: 2px solid rgba(233, 94, 58, 0.35);
  border-color: var(--red);
}

.contact-panel .privacy-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  font-weight: 400;
}

.contact-panel .privacy-consent input {
  width: auto;
}

.contact-details {
  border-top: 5px solid var(--red);
}

.contact-details p {
  color: var(--muted);
}

.contact-detail-label {
  color: var(--text) !important;
  font-weight: 700;
}

.contact-details address {
  margin: 20px 0;
  color: var(--muted);
  font-style: normal;
  line-height: 1.8;
}

.contact-details a:not(.text-link) {
  overflow-wrap: anywhere;
}

.text-link {
  color: var(--red-dark);
  font-weight: 700;
}

.information-page {
  min-height: calc(100vh - 130px);
  padding: 48px 0 72px;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(233, 94, 58, 0.08), transparent 40%),
    var(--bg);
}

.information-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.information-heading h1 {
  margin: 14px 0;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

.information-heading .subtitle {
  max-width: 700px;
  margin: 0 auto;
}

.membership-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: center;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.membership-copy h2,
.course-venues h2,
.friendly-section h2 {
  margin: 12px 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.04em;
}

.membership-copy > p:not(.eyebrow) {
  margin-bottom: 22px;
  color: var(--muted);
}

.membership-image-link {
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.membership-image {
  width: 100%;
  height: auto;
}

.membership-image-link > span {
  display: block;
  padding: 10px;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}

.course-venues,
.friendly-section {
  padding-top: 56px;
}

.venue-grid,
.friendly-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.venue-card,
.friendly-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.venue-card h3,
.friendly-card h3 {
  margin: 0 0 10px;
}

.venue-card address {
  color: var(--muted);
  font-style: normal;
  line-height: 1.8;
}

.friendly-section > .section-subtitle {
  margin-bottom: 20px;
}

.friendly-card p {
  margin: 6px 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.friendly-card a {
  color: var(--red-dark);
  font-weight: 600;
}

ul.clean {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 12px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  text-align: center;
}

.footer-info p {
  margin: 0;
}

.footer-title {
  font-weight: 700;
  margin-bottom: 4px !important;
  color: var(--text);
}

footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 40px;
  color: var(--muted);
}

.planning-page {
  min-height: calc(100vh - 130px);
  padding: 42px 0 60px;
  background: rgba(255,255,255,0.2);
}

.planning-page-heading {
  margin-bottom: 24px;
}

.planning-page-heading h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 12px 0;
}

.planning-page-heading p:last-child {
  color: var(--muted);
}

.planning-image-card {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.planning-image-card img {
  width: 100%;
  height: auto;
}

.planning-image-card figcaption {
  padding: 12px 6px 2px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .hero-inner,
  .about,
  .grid-3,
  .schedule-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .navlinks {
    order: 3;
    flex: 1 0 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
  }

  .navbar {
    flex-wrap: wrap;
  }

  .contact-page-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .contact-form-row {
    grid-template-columns: 1fr;
  }

  .top-strip-content {
    justify-content: center;
  }

  .top-strip-content > span {
    display: none;
  }

  .membership-section,
  .venue-grid,
  .friendly-grid,
  .schedule-course-list li {
    grid-template-columns: 1fr;
  }
}

.administration-auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(233, 94, 58, 0.1), transparent 40%),
    var(--bg);
}

.administration-card {
  width: min(100%, 480px);
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.administration-card h1 {
  margin: 12px 0;
  font-size:3.5em;
}

.administration-card > p {
  color: var(--muted);
}

.administration-form,
.administration-form label {
  display: grid;
  gap: 8px;
}

.administration-form {
  gap: 18px;
  margin-top: 24px;
}

.administration-form input,
.admin-fields input,
.admin-fields textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  background: white;
  font: inherit;
}

.admin-fields textarea {
  resize: vertical;
}

.administration-link,
.admin-link {
  margin-top: 18px;
  border: 0;
  padding: 0;
  color: var(--primary-dark);
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.admin-page {
  min-height: 100vh;
  padding: 34px 0 72px;
  background: var(--bg);
}

.admin-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
}

.admin-header,
.admin-header-actions,
.admin-toolbar,
.admin-section-heading,
.admin-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-header {
  margin-bottom: 24px;
}

.admin-header h1 {
  margin: 0;
}

.admin-header p:last-child,
.admin-toolbar p {
  color: var(--muted);
}

.admin-header-actions {
  flex-wrap: wrap;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.admin-sidebar {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: var(--surface);
}

.admin-page-nav,
.admin-section-nav {
  display: grid;
  gap: 8px;
}

.admin-page-nav,
.admin-section-nav {
  margin-top: 20px;
}

.admin-page-nav h2,
.admin-section-nav h2 {
  margin: 0 0 4px;
  font-size: 0.95rem;
}

.admin-page-nav button,
.admin-section-nav a {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--text);
  background: transparent;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.admin-page-nav button:hover,
.admin-section-nav a:hover {
  background: var(--surface-alt);
}

.admin-page-nav button.selected {
  color: white;
  background: var(--red);
}

.admin-content {
  min-width: 0;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.admin-tabs button,
.admin-item-actions button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text);
  background: white;
  font: inherit;
  cursor: pointer;
}

.admin-tabs button.selected {
  border-color: var(--red);
  color: white;
  background: var(--red);
}

.admin-toolbar {
  margin: 22px 0;
}

.admin-section {
  margin-top: 26px;
  scroll-margin-top: 24px;
}

.admin-section-heading h2 {
  margin: 0;
  text-transform: capitalize;
}

.admin-item {
  min-width: 0;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: var(--surface);
}

.admin-item-actions {
  justify-content: flex-end;
  margin-bottom: 12px;
}

.admin-item-actions span {
  margin-right: auto;
  color: var(--muted);
  font-weight: 700;
}

.admin-item-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.admin-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-fields label {
  display: grid;
  align-content: start;
  gap: 7px;
  font-weight: 700;
}

.admin-fields label.wide,
.admin-image-preview {
  grid-column: 1 / -1;
}

.admin-image-preview {
  max-width: min(100%, 480px);
  max-height: 280px;
  border: 1px solid var(--line);
  border-radius: 12px;
  object-fit: contain;
  background: white;
}

.admin-preview {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  background: var(--surface-alt);
}

.admin-preview h2 {
  margin-top: 0;
}

.admin-preview li {
  margin: 8px 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.admin-password {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  background: var(--surface);
}

.admin-password summary {
  color: var(--primary-dark);
  font-weight: 700;
  cursor: pointer;
}

.admin-password .administration-form {
  min-width: min(340px, 80vw);
}

.admin-page .form-status {
  margin-top: 14px;
}

.texte-avec-retours {
  white-space: pre-line;
}

img.photo-box {
  display: block;
  height: 420px;
}

@media (max-width: 700px) {
  .admin-header,
  .admin-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 850px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    max-height: none;
  }

  .admin-page-nav {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }

  .admin-page-nav h2,
  .admin-section-nav h2 {
    grid-column: 1 / -1;
  }

  .admin-section-nav {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }
}
