/*
Theme Name: Boxe RDL
Description: Thème de l’École de boxe olympique de Rivière-du-Loup.
Version: 2.0.1
Text Domain: boxe-rdl
*/

:root { --ink: #141414; --paper: #f5f3ee; --red: #ab242c; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a:focus-visible { outline: 3px solid #da555e; outline-offset: 5px; }
.rdl-header, .rdl-footer { background: var(--ink); color: white; padding: 1rem clamp(1.25rem, 6vw, 6rem); }
.rdl-header a, .rdl-footer a { color: inherit; }
.rdl-brand img { display: block; width: 112px; height: auto; }
.rdl-hero { min-height: 650px; align-items: center; padding: 5rem clamp(1.25rem, 8vw, 9rem); }
.rdl-hero .wp-block-cover__inner-container { width: 100%; }
.rdl-hero h1 { max-width: 13ch; font-size: clamp(3.1rem, 8vw, 8rem); line-height: .88; letter-spacing: -.06em; }
.rdl-hero p { max-width: 32rem; }
.rdl-kicker { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .85rem; }
.rdl-section { padding: clamp(3.5rem, 8vw, 7rem) clamp(1.25rem, 8vw, 9rem); }
.rdl-section h2 { font-size: clamp(2.3rem, 5vw, 4.5rem); line-height: .98; letter-spacing: -.045em; }
.rdl-section h3 { font-size: clamp(1.35rem, 2vw, 1.9rem); line-height: 1.1; }
.rdl-card { border-top: 3px solid var(--red); padding: 1.4rem; background: white; }
.rdl-dark { background: var(--ink); color: white; }
.rdl-dark a { color: inherit; }
.rdl-red { background: var(--red); color: white; }
.rdl-red a { color: inherit; }
.wp-block-button__link { font-weight: 700; }
.rdl-red .wp-block-button__link { background: white; color: var(--ink); }
.rdl-footer { border-top: 1px solid #555; }
@media (max-width: 781px) {
  .rdl-hero { min-height: 540px; }
  .rdl-hero .wp-block-cover__image-background { object-position: 65% center; }
  .rdl-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--ink); color: white; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

:root { --ink: #171613; --paper: #eee8dc; --red: #a72d24; --coal: #211e1a; --warm: #a89e90; }
body { background: var(--paper); color: var(--ink); }
.wp-site-blocks > .rdl-main, .wp-site-blocks > .rdl-footer { margin-block-start: 0; }
.rdl-header { padding: 1rem clamp(1.2rem, 5vw, 5.5rem); min-height: 76px; border-bottom: 1px solid #534a3f; }
.rdl-header .rdl-brand { flex: none; margin: 0; }
.rdl-brand img { width: 114px; border-radius: 2px; }
.rdl-header .wp-block-navigation { margin-left: auto; font-size: .9rem; font-weight: 650; }
.rdl-header .wp-block-navigation a:hover { text-decoration: underline; text-underline-offset: 5px; }
.rdl-header .wp-block-buttons { margin-left: clamp(.5rem, 2vw, 2rem); }
.rdl-header .wp-block-button__link { padding: .75rem 1.05rem; font-size: .87rem; }
.rdl-main > .wp-block-group { margin-block-start: 0; }
.rdl-shell { max-width: 1280px; margin-inline: auto; }
.rdl-hero { min-height: max(36rem, min(51rem, 76svh)); padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 7vw, 8rem); }
.rdl-hero .wp-block-cover__background { background: linear-gradient(90deg, #15120ff5 0%, #17130fed 25%, #17130fa0 51%, #17130f20 80%) !important; opacity: 1; }
.rdl-hero .wp-block-cover__inner-container { max-width: 1280px; margin-inline: auto; }
.rdl-hero-content { max-width: 45rem; color: #fff6e8; }
.rdl-kicker { color: #9e3027; font-weight: 800; font-size: .76rem; letter-spacing: .15em; line-height: 1.4; }
.rdl-hero .rdl-kicker, .rdl-dark .rdl-kicker, .rdl-first .rdl-kicker { color: #ff9b85; }
.rdl-hero h1, .rdl-section h2 { font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: -.028em; }
.rdl-hero h1 { font-size: clamp(4.15rem, 9.6vw, 9.3rem); max-width: 8.3ch; line-height: .9; margin-block: .85rem 1.3rem; }
.rdl-hero p:not(.rdl-kicker) { max-width: 31rem; color: #f2e9db; font-size: clamp(1.04rem, 1.35vw, 1.22rem); }
.rdl-hero .wp-block-buttons { margin-top: 1.8rem; }
.wp-block-button__link { border-radius: 3px; }
.wp-block-button:not(.is-style-outline) .wp-block-button__link { background: var(--red); color: white; }
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { background: #842419; }
.wp-block-button.is-style-outline .wp-block-button__link { border-width: 1px; padding: .77em 1.55em; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background-color: #ffffff14; }
.rdl-section { padding: clamp(3.5rem, 7vw, 7rem) clamp(1.25rem, 7vw, 8rem); }
.rdl-section h2 { font-size: clamp(2.8rem, 6.3vw, 6rem); line-height: .94; max-width: 13ch; margin-block: .65rem 1.2rem; }
.rdl-section h3 { letter-spacing: -.035em; }
.rdl-section-intro { margin-bottom: 2rem; }
.rdl-section-intro p:not(.rdl-kicker), .rdl-editorial-copy p { max-width: 40rem; }
.rdl-courses { background: var(--paper); }
.rdl-course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #c8beb0; border: 1px solid #c8beb0; }
.rdl-card { margin: 0 !important; padding: clamp(1.4rem, 3vw, 3rem); background: #f7f2e9; border-top: 0; }
.rdl-card h3 { margin-top: .65rem; font-size: clamp(1.7rem, 2.6vw, 2.5rem); }
.rdl-card p:not(.rdl-kicker) { max-width: 37rem; }
.rdl-editorial { gap: clamp(1.5rem, 5vw, 5.5rem); align-items: center !important; margin-bottom: 0; }
.rdl-editorial-photo { position: relative; margin: 0; }
.rdl-editorial-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; display: block; }
.rdl-first { background: #762820; color: #fff4e6; }
.rdl-first a { color: inherit; }
.rdl-first .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: #f3ebdd; color: var(--ink); }
.rdl-first .wp-block-button__link:hover { background: white !important; }
.rdl-note { font-size: .94rem; }
.rdl-club { background: var(--coal); color: #fff4e6; }
.rdl-hours { background: #ded4c3; }
.rdl-hours .wp-block-columns { align-items: center !important; margin-bottom: 0; }
.rdl-hours-aside { border-left: 2px solid var(--red); padding: 1rem clamp(1.2rem, 3.6vw, 3rem); }
.rdl-social { background: #f5ede0; }
.rdl-social .wp-block-columns { gap: 1rem; margin-bottom: 0; }
.rdl-social .wp-block-column { display: flex; }
.rdl-social-card { width: 100%; min-height: 16rem; background: var(--coal); color: #fff7ea; padding: clamp(1.35rem, 3vw, 2.6rem); }
.rdl-social-card h3 { margin-block: .9rem .4rem; font-size: clamp(1.7rem, 3vw, 2.9rem); }
.rdl-social-card p { color: #f2e6d6; }
.rdl-facebook { background: #22394b; }
.rdl-instagram { background: #60312f; }
.rdl-social-icon .wp-social-link, .rdl-footer-social .wp-social-link { background: #fff5e7 !important; color: var(--ink) !important; }
.rdl-footer { padding: 3.5rem clamp(1.25rem, 7vw, 8rem); background: var(--ink); }
.rdl-footer .wp-block-columns { margin-bottom: 0; }
.rdl-footer h3 { margin-top: 0; font-size: 1.2rem; }
.rdl-footer-brand p { max-width: 16rem; }
.rdl-footer a:hover { text-decoration-thickness: 2px; }
.wpcf7 form { background: #f8f2e9; border: 1px solid #c8beb0; padding: clamp(1.2rem, 4vw, 2.5rem); }
.wpcf7 label { display: block; font-weight: 700; }
.wpcf7 :is(input:not([type="submit"]):not([type="hidden"]), select, textarea) {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: .4rem 0 1rem;
  padding: .65rem .8rem;
  font: inherit;
  background: white;
  border: 1px solid #8b8174;
  border-radius: 3px;
}
.wpcf7 input[type="submit"] { padding: .8rem 1.3rem; border: 0; border-radius: 3px; background: var(--red); color: white; font: inherit; font-weight: 700; cursor: pointer; }
[id] { scroll-margin-top: 1rem; }
@media (max-width: 900px) {
  .rdl-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--ink); color: white; }
  .rdl-header { gap: .7rem; }
}
@media (max-width: 781px) {
  .rdl-header > .wp-block-buttons { display: none; }
  .rdl-header .wp-block-navigation__responsive-container-open {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    min-height: 44px;
    padding: .55rem .85rem;
    border: 1px solid #796b59;
    border-radius: 3px;
    color: #fff5e7;
  }
  .rdl-header .wp-block-navigation__responsive-container-open::before {
    content: "Menu";
    font-size: .9rem;
    font-weight: 700;
  }
  .rdl-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
  .rdl-header .wp-block-navigation__responsive-container.is-menu-open {
    padding: max(1.25rem, env(safe-area-inset-top)) clamp(1.25rem, 6vw, 3rem) 2rem;
    background: var(--ink);
    color: #fff5e7;
  }
  .rdl-header .is-menu-open .wp-block-navigation__responsive-dialog {
    padding-top: 3.75rem;
  }
  .rdl-header .is-menu-open .wp-block-navigation__responsive-container-close {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid #796b59;
    border-radius: 3px;
  }
  .rdl-header .is-menu-open .wp-block-navigation__responsive-container-content,
  .rdl-header .is-menu-open .wp-block-navigation__container {
    align-items: stretch;
    width: 100%;
    padding-top: 0;
    gap: 0;
  }
  .rdl-header .is-menu-open .wp-block-navigation-item {
    width: 100%;
    border-bottom: 1px solid #534a3f;
  }
  .rdl-header .is-menu-open .wp-block-navigation-item__content {
    display: block;
    width: 100%;
    padding-block: .9rem;
    font-size: clamp(1.2rem, 5vw, 1.6rem);
    line-height: 1.25;
  }
  .rdl-hero { min-height: 35rem; }
  .rdl-hero .wp-block-cover__inner-container { min-width: 0; }
  .rdl-hero h1 {
    max-width: 100%;
    font-size: clamp(2.5rem, 12vw, 4.6rem);
    overflow-wrap: anywhere;
  }
  .rdl-hero .wp-block-cover__image-background { object-position: 79% center; }
  .rdl-hero .wp-block-cover__background { background: linear-gradient(90deg, #15120fe8, #15120f8c 75%, #15120f4d) !important; }
  .rdl-editorial { gap: 2rem; }
  .rdl-club .rdl-editorial > .wp-block-column:first-child { order: 2; }
  .rdl-footer .wp-block-columns { gap: 2rem; }
}
@media (max-width: 560px) {
  .rdl-course-grid { grid-template-columns: 1fr; }
  .rdl-hero .wp-block-buttons { align-items: flex-start; gap: .65rem; }
  .rdl-hero .wp-block-button__link { font-size: .95rem; }
  .rdl-hours-aside { padding-block: .25rem; }
}
