:root {
  --bg: #f5f1e8;
  --surface: #fffdf8;
  --ink: #1f2924;
  --muted: #706666;
  --green: #B03A23;
  --green-dark: #703124;
  --sage: #dce8df;
  --sand: #ebd8b7;
  --coral: #DE2A36;
  --line: rgba(31, 41, 36, 0.12);
  --shadow: 0 22px 60px rgba(39, 59, 49, 0.12);
  --radius: 26px;
}


* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

hr {
  margin: 0.70rem 0;
  color: inherit;
  border: 0;
  border-top:  1px solid;
  opacity: 0.25;
}

.text-center {
  text-align: center;
}

img { display: block; width: 100%; }
  a { color: inherit; text-decoration: none; }
  button { font: inherit; }
  .container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
  .section-pad { padding: 110px 0; }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(245, 241, 232, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: .25s ease;
  }
  .site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 35px rgba(31,41,36,.06); }
  .nav-wrap { height: 78px; display: flex; align-items: center; justify-content: space-between; }
  .brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; }
  .brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: white; font-family: "Playfair Display", serif; }
  .main-nav { display: flex; align-items: center; gap: 30px; font-size: .96rem; font-weight: 600; }
  .main-nav a { position: relative; }
  .main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: var(--coral); transition: .25s; }
  .main-nav a:hover::after, .main-nav a.active::after { right: 0; }
  .menu-toggle { display: none; border: 0; background: none; padding: 8px; }
  .menu-toggle span { display: block; width: 25px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

  .hero { padding-top: 76px; overflow: hidden; }
  .hero-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 72px; align-items: center; }
  .eyebrow { color: var(--coral); text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 700; margin: 0 0 16px; }
  h1, h2, h3 { font-family: "Playfair Display", serif; line-height: 1.12; margin-top: 0; }
  h1 { font-size: clamp(3.25rem, 6vw, 5.8rem); margin-bottom: 24px; letter-spacing: -.045em; }
  h2 { font-size: clamp(2.35rem, 4vw, 4.1rem); margin-bottom: 20px; letter-spacing: -.035em; }
  h3 { font-size: 1.45rem; margin-bottom: 0; }
  .hero-text { font-size: 1.15rem; color: var(--muted); max-width: 590px; }
  .mini-hero-text { font-size: 1rem; color: var(--muted); max-width: 590px; text-align: justify;}
  .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
  .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 23px; border-radius: 999px; font-weight: 700; transition: transform .2s, box-shadow .2s, background .2s; }
  .btn:hover { transform: translateY(-2px); }
  .btn-primary { color: white; background: var(--green); box-shadow: 0 12px 24px rgba(36,91,73,.2); }
  .btn-primary:hover { background: var(--green-dark); }
  .btn-secondary { border: 1px solid var(--line); background: rgba(255,255,255,.45); }
  .hero-visual { position: relative; }
  .hero-visual::before { content: ""; position: absolute; width: 65%; aspect-ratio: 1; border-radius: 50%; background: var(--sand); right: -12%; top: -12%; z-index: -1; }
  .hero-visual img { height: 640px; object-fit: cover; border-radius: 180px 180px 28px 28px; box-shadow: var(--shadow); }
  .floating-card { position: absolute; left: -38px; bottom: 44px; display: grid; gap: 4px; width: min(280px, 70%); padding: 22px 24px; border-radius: 18px; color: white; background: var(--green); box-shadow: var(--shadow); }
  .floating-card span { opacity: .8; font-size: .92rem; }

  .text-section { background: var(--surface); }
.text-section-darker { background: var(--sand); }
  .text-card { display: grid; grid-template-columns: 310px 1fr; align-items: center; gap: 72px; }
  .round-image { width: 310px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); }
  .text-card p:not(.eyebrow) { color: var(--muted); font-size: 1.06rem; max-width: 720px; }
.text-card ul:not(.eyebrow) { color: var(--muted); font-size: 1.06rem; max-width: 720px; }

  .section-heading { max-width: 720px; margin-bottom: 48px; }
  .section-heading > p:last-child { color: var(--muted); font-size: 1.05rem; }
  .gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 16px; }
  .gallery-item { overflow: hidden; border: 0; border-radius: 20px; padding: 0; cursor: zoom-in; background: var(--sage); }
  .gallery-item-large { grid-column: span 2; grid-row: span 2; }
  .gallery-item img { height: 100%; object-fit: cover; transition: transform .55s ease, filter .3s; }
  .gallery-item:hover img { transform: scale(1.045); filter: saturate(1.08); }

  .schedule-section { background: var(--green-dark); color: white; }
  .schedule-section .eyebrow { color: #f4b497; }
  .schedule-section .section-heading > p:last-child { color: rgba(255,255,255,.68); }
  .schedule-card { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 30px; box-shadow: 0 30px 80px rgba(0,0,0,.18); }
  .schedule-legend { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 22px; color: var(--muted); font-size: .92rem; }
  .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
  .dot.afternoon { background: var(--sand); }
  .dot.evening { background: var(--sage); }
  .schedule-table-wrap { overflow-x: auto; }
  .schedule-table { width: 100%; border-collapse: separate; border-spacing: 8px; min-width: 900px; }
  .schedule-table th, .schedule-table td { padding: 20px 16px; text-align: left; vertical-align: top; border-radius: 14px; }
  .schedule-table thead th { padding-top: 8px; padding-bottom: 12px; color: var(--muted); font-size: .86rem; text-transform: uppercase; letter-spacing: .08em; }
  .schedule-table tbody th { width: 130px; background: var(--ink); color: white; }
  .schedule-table tbody th span { display: block; font-size: 1.15rem; }
  .schedule-table tbody th small { display: block; opacity: .68; font-weight: 400; }
  .schedule-table td { background: #f4f0e7; }
  /*.schedule-table tbody tr:last-child td { background: var(--sage); }*/
  .schedule-table td strong, .schedule-table td span { display: block; }
  .schedule-table td span { margin-top: 1px; color: var(--muted); font-size: .88rem; }
 td.pas-de-cours { background-color: var(--surface); border: solid 2px var(--bg);}
  td.lieu-rennes { background:  var(--sage); }
td span.info-niveau{   font-size: 80%; }
td span.info-horaire{   font-weight: bold; }
  .location-note { display: flex; gap: 14px; align-items: flex-start; border-top: 1px solid var(--line); margin-top: 18px; padding-top: 22px; color: var(--muted); }
  .location-note span { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 50%; background: var(--sage); color: var(--green); font-weight: 700; }
  .location-note p { margin: 4px 0 0; }

  .videos-section { background: var(--surface); }
  .video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .video-card { overflow: hidden; border-radius: 22px; background: white; border: 1px solid var(--line); box-shadow: 0 16px 45px rgba(31,41,36,.07); }
  .video-frame { aspect-ratio: 16 / 9; background: #111; }
  .video-frame iframe { width: 100%; height: 100%; border: 0; }
  .video-copy { padding: 23px 24px 27px; }
  .video-copy span { color: var(--coral); font-size: .78rem; text-transform: uppercase; letter-spacing: .15em; font-weight: 700; }
  .video-copy h3 { margin-top: 8px; }

  .site-footer { padding: 42px 0; background: var(--ink); color: white; }
  .footer-inner { display: flex; justify-content: space-between; gap: 30px; align-items: center; }
  .footer-inner p { color: rgba(255,255,255,.62); margin: 5px 0 0; }
  .footer-inner a { color: #f4b497; font-weight: 700; }

  .lightbox { width: min(1100px, 92vw); padding: 0; border: 0; border-radius: 20px; background: transparent; overflow: visible; }
  .lightbox::backdrop { background: rgba(10,18,14,.87); backdrop-filter: blur(5px); }
  .lightbox img { max-height: 82vh; object-fit: contain; border-radius: 18px; }
  .lightbox-close { position: absolute; right: -10px; top: -48px; border: 0; background: transparent; color: white; font-size: 2.4rem; cursor: pointer; }

  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
  .reveal.visible { opacity: 1; transform: translateY(0); }

  @media (max-width: 900px) {
    .section-pad { padding: 82px 0; }
    .menu-toggle { display: block; z-index: 2; }
    .main-nav { position: fixed; inset: 78px 0 auto; display: grid; gap: 0; padding: 14px 20px 24px; background: var(--bg); border-bottom: 1px solid var(--line); transform: translateY(-140%); transition: .3s; }
    .main-nav.open { transform: translateY(0); }
    .main-nav a { padding: 14px 0; }
    .hero-grid { grid-template-columns: 1fr; gap: 52px; }
    .hero-visual { max-width: 700px; }
    .hero-visual img { height: min(620px, 78vw); }
    .text-card { grid-template-columns: 220px 1fr; gap: 42px; }
    .round-image { width: 220px; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
  }

  @media (max-width: 640px) {
    .container { width: min(100% - 26px, 1160px); }
    .section-pad { padding: 68px 0; }
    h1 { font-size: 3rem; }
    h2 { font-size: 2.45rem; }
    .hero { padding-top: 42px; }
    .hero-visual img { height: 440px; border-radius: 120px 120px 24px 24px; }
    .floating-card { left: 12px; bottom: 18px; }
    .text-card { grid-template-columns: 1fr; text-align: center; }
    .round-image { margin: 0 auto; }
    .gallery { grid-auto-rows: 170px; gap: 10px; }
    .gallery-item-large { grid-column: span 2; grid-row: span 2; }
    .schedule-card { padding: 18px 10px 20px; border-radius: 20px; }
    .schedule-legend, .location-note { margin-left: 8px; margin-right: 8px; }
    .video-grid { grid-template-columns: 1fr; }
    .footer-inner { align-items: flex-start; flex-direction: column; }
  }

  /* Carrousel de la page d'accueil */
  .hero-carousel {
    position: relative;
    height: 640px;
    overflow: hidden;
    border-radius: 180px 180px 28px 28px;
    box-shadow: var(--shadow);
    background: var(--sage);
  }
  .hero-carousel .hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.025);
    transition: opacity .8s ease, transform 5s ease;
  }
  .hero-carousel .hero-slide.active {
    opacity: 1;
    transform: scale(1);
  }
  .hero-dots {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 22px;
    display: flex;
    gap: 9px;
    transform: translateX(-50%);
  }
  .hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 2px solid rgba(255,255,255,.95);
    border-radius: 50%;
    background: rgba(255,255,255,.35);
    cursor: pointer;
    transition: width .25s ease, border-radius .25s ease, background .25s ease;
  }
  .hero-dot.active {
    width: 28px;
    border-radius: 999px;
    background: white;
  }

  @media (max-width: 900px) {
    .hero-carousel { height: min(620px, 78vw); }
  }

  @media (max-width: 640px) {
    .hero-carousel { height: 440px; border-radius: 120px 120px 24px 24px; }
  }

  @media (prefers-reduced-motion: reduce) {
    .hero-carousel .hero-slide { transition: opacity .2s ease; transform: none; }
  }

