/* Public visual language. Loaded only by the three public page endpoints.
   The existing grids, form hooks and availability renderer remain authoritative. */
body.theme-dark {
    --color-bg: #070f20;
    --color-surface: #0d1c32;
    --color-surface-elevated: #102139;
    --color-surface-muted: #162d49;
    --color-field: #0a182b;
    --color-border: #223954;
    --color-border-strong: #395472;
    --color-text: #e0eaf7;
    --color-muted: #a9bdd3;
    --color-heading: #f2f7ff;
    --color-primary: #74aeff;
    --color-primary-hover: #a9cfff;
    --color-primary-soft: #173555;
    --color-success: #6ed7bd;
    --color-accent: #64d8e4;
    --focus-ring: 0 0 0 3px #64d8e466;
    --shadow-sm: 0 4px 14px #02071326;
    --shadow-md: 0 16px 40px #02071340;
    --radius-md: 8px;
    --radius-lg: 12px;
    --container-max: 1240px;
    background: radial-gradient(ellipse at 75% 0, #12345a66, transparent 65%), var(--color-bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.icon { display: inline-block; flex: 0 0 auto; vertical-align: middle; }
a, button, input, select, textarea { transition: background-color 150ms, border-color 150ms, color 150ms, box-shadow 150ms; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }
.site-main:focus { outline: none; }

.site-header { background: #091426ed; border-color: #223954; }
.site-header__inner { min-height: 76px; padding-block: 12px; }
.site-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.site-logo { display: block; flex: 0 0 42px; width: 42px; height: 42px; overflow: hidden; border-radius: 50%; }
.site-logo img { width: 100%; height: 100%; object-fit: cover;  }
.site-title { font-size: 22px; font-weight: 650; letter-spacing: -.7px; }
.site-nav { gap: 6px; }
.site-nav a { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; font-size: 14px; font-weight: 600; border-radius: 7px; }
.site-nav a:not(:last-child)::after { content: none; }
.site-nav a:hover { background: #142941; text-decoration: none; }
.site-nav a[aria-current="page"] { background: #173555; color: #d9efff; }
.site-nav a[aria-current="page"]::before { content: ''; position: absolute; bottom: 0; left: 16px; right: 16px; height: 2px; background: #64d8e4; }
.site-main { padding-top: 24px; }
.site-footer { margin-top: 6px; padding-block: 16px; color: #8fa8c2; }
section h2 { font-size: 19px; font-weight: 650; letter-spacing: -.35px; }

/* Home: the original two columns and all existing copy. */
body.accueil .site-header__inner, body.accueil .site-main { zoom: 1; }
body.accueil .hero {
    padding: 24px 0 26px;
    margin-bottom: 20px;
    border: 0;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    box-shadow: none;
    background: none;
}
body.accueil .hero h2 { font-size: clamp(30px, 3.2vw, 42px); font-weight: 650; letter-spacing: -1.5px; margin-bottom: 8px; }
body.accueil .home-hero-subtitle { color: #8ebeff; font-size: 13px; letter-spacing: .11em; margin: 0; }
body.accueil .cta button, body.reservation .reservation-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #2463df;
    color: white;
    border: 1px solid #538cf0;
    border-radius: 8px;
    box-shadow: 0 4px 14px #02071333, inset 0 1px #ffffff1a;
    font-weight: 600;
}
body.accueil .cta button { min-height: 46px; padding: 10px 18px; font-size: 14px; }
body.accueil .cta button:hover, body.reservation .reservation-actions button:hover { background: #3074f0; border-color: #90bbff; }
body.accueil .cta .icon:last-child { width: 17px; margin-left: 10px; }
body.accueil .home-content-grid { grid-template-columns: minmax(0, 1fr) minmax(330px, 400px); gap: 18px; }
body.accueil .home-main-content, body.accueil .home-side-panel { gap: 18px; }
body.accueil .home-main-content { grid-template-rows: auto 1fr; }
body.accueil .home-side-panel { grid-template-rows: auto 1fr; }
body.accueil .home-card { padding: 20px; background: linear-gradient(135deg, #142941, #0e1e34); border-color: #29405b; box-shadow: var(--shadow-sm); }
body.accueil .section-title-row { margin-bottom: 18px; }
body.accueil .price-pill { color: #a6eaf1; background: #173b4d; font-size: 18px; font-weight: 600; padding: 4px 12px; border-radius: 6px; }
body.accueil .course-mode-grid { gap: 18px; }
body.accueil .course-mode-grid article { background: none; border: 0; border-radius: 0; padding: 0; }
body.accueil .course-mode-grid article + article { border-left: 1px solid #2a435e; padding-left: 18px; }
body.accueil .course-mode-grid .icon { color: #71c9e3; width: 23px; height: 23px; margin-bottom: 10px; }
body.accueil .course-mode-grid strong { font-size: 15px; font-weight: 600; }
body.accueil .course-mode-grid span { font-size: 13px; }
body.accueil .presentation h2 { margin-bottom: 16px; }
body.accueil .presentation p { font-size: 15px; line-height: 1.6; margin-bottom: 10px; }
body.accueil .presentation p:first-of-type { color: #c2dcff; font-size: 17px; font-weight: 500; }
body.accueil .home-video-card { padding: 0; background: #02070d; box-shadow: var(--shadow-sm); border: 1px solid #29405b; }
body.accueil .home-video { width: 100%; margin: 0; aspect-ratio: 16 / 9; }
body.accueil .floating-contact h2 { margin-bottom: 18px; font-size: 19px; }
body.accueil .floating-contact p { font-size: 13px; line-height: 1.6; }
body.accueil .floating-contact a { color: #c2dcff; text-decoration: none; }
body.accueil .floating-contact a:hover { color: #83dfeb; text-decoration: underline; }
body.accueil .floating-contact .icon { height: 15px; width: 15px; margin-right: 5px; color: #7dc3eb; }
body.accueil .contact-avatar { width: 124px; height: 124px; flex-basis: 124px; border: 2px solid #4a6b8c; }

/* Booking: same dense multieweek calendar, same adjacent form. */
body.reservation .site-header__inner { min-height: 58px; padding-block: 7px; }
body.reservation .site-main { padding-top: 12px; }
body.reservation .reservation-layout { gap: 14px; }
body.reservation .booking-panel { background: #102139; border-color: #29405b; padding: 10px; }
body.reservation .panel-heading { margin-bottom: 8px; }
body.reservation .panel-heading h2 { font-size: 18px; font-weight: 600; letter-spacing: -.4px; }
body.reservation .form-section { border: 0; background: none; border-radius: 0; padding: 4px 0; }
body.reservation .form-section + .form-section { border-top: 1px solid #223954; }
body.reservation .reservation-form label { color: #c1d2e5; font-weight: 500; }
body.reservation .reservation-form input, body.reservation .reservation-form select, body.reservation .reservation-form textarea { border-radius: 6px; }
body.reservation .reservation-form input::placeholder, body.reservation .reservation-form textarea::placeholder { color: #8fa8c2; opacity: 1; }
body.reservation .selected-slot-card { background: #183956; border-color: #315b80; font-weight: 500; }
body.reservation .selected-slot-card strong { font-weight: 600; }
body.reservation .required-marker { color: #79cddd; }
body.reservation .choice-card { font-weight: 500 !important; min-height: 32px; }
body.reservation .choice-card.is-selected { background: #1a4263; border-color: #77c6e7; }
body.reservation .field-hint { color: #9cb2cb; }
body.reservation .reservation-actions button { min-height: 36px; }
body.reservation .secondary-action { color: #c4dcff; background: #172f4c; border-color: #365473; border-radius: 6px; box-shadow: none; font-weight: 500; }
body.reservation .secondary-action:hover { background: #244a70; color: #fff; }
body.reservation .slot-feedback { background: none; border: 0; padding: 0 0 6px; font-size: 12px; }
body.reservation .slot-week-header { padding-bottom: 2px; }
body.reservation .slot-week-header span { color: #a0bddc; font-size: 10px; letter-spacing: .08em; font-weight: 600; }
body.reservation .slot-week-row { min-height: 7.5rem; grid-auto-rows: 7.5rem; }
body.reservation .slot-day-card { background: #132c46; border-color: #2a4561; border-radius: 6px; padding: 4px 3px; }
body.reservation .slot-day-heading { margin-bottom: 4px; }
body.reservation .slot-day-heading h3 { color: #c9ddf3; font-size: 10.5px; font-weight: 600; }
body.reservation .slot-buttons { gap: 2px; }
body.reservation .slot-button { color: #d9ebff; background: #1d4063; border: 1px solid #3d6387; min-height: 22px; font-size: 10px; font-variant-numeric: tabular-nums; border-radius: 4px; box-shadow: none; }
body.reservation .slot-button:hover { background: #295b86; border-color: #80c6ee; transform: none; }
body.reservation .slot-button.is-selected { background: #2463df; border-color: #a5d4ff; color: #fff; box-shadow: 0 0 0 1px #a5d4ff; }
body.reservation .slot-day-card:has(.is-selected) { border-color: #72aceb; }
body.reservation .slot-day-card.is-empty:not(.is-past) { background: #0b192c; opacity: 1; border-color: #1c3049; }
body.reservation .slot-empty-note { color: #8da6c3; font-size: 9px; }
body.reservation .slot-day-card.is-past { background: #0b192c; opacity: .55; }
body.reservation .reservation-form input[type="file"] { font-size: 12px; padding: 4px; }
body.reservation input::file-selector-button { background: #234361; color: #dfedff; border: 0; border-radius: 3px; padding: 4px 8px; margin-right: 8px; cursor: pointer; }

/* Resources: retain category order and every real resource in compact lists. */
body.ressources .site-main { max-width: 1050px; padding-top: 28px; }
body.ressources .site-main > section { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 26px; margin: 0; padding: 16px 0; border-bottom: 1px solid #263d57; }
body.ressources .site-main > section:first-of-type { padding-top: 0; }
body.ressources section h2 { display: flex; align-items: flex-start; gap: 12px; margin: 0; border: 0; padding: 10px 0; font-size: 17px; line-height: 1.4; }
body.ressources h2 .icon { color: #7bcbdc; width: 22px; height: 22px; margin-top: 1px; }
body.ressources ul { list-style: none; padding: 0; margin: 0; min-width: 0; border: 1px solid #29405b; border-radius: 9px; overflow: hidden; background: #102139; }
body.ressources li { margin: 0; color: #a9bdd3; font-size: 14px; }
body.ressources li + li { border-top: 1px solid #223954; }
body.ressources li a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 5px 14px; color: #d5e7ff; overflow-wrap: anywhere; }


body.ressources li a:hover { color: #f0f7ff; background: #1b3858; text-decoration: none; }
body.ressources li:not(:has(a)) { padding: 12px 14px; }

@media (min-width: 981px) and (max-height: 800px) {
    .site-header__inner { min-height: 66px; padding-block: 8px; }
    .site-main { padding-top: 16px; }
    body.accueil .hero { padding-top: 12px; padding-bottom: 20px; margin-bottom: 18px; }
    body.accueil .home-card { padding: 18px; }
    body.accueil .home-video-card { padding: 0; }
    body.accueil .presentation h2 { margin-bottom: 12px; }
    body.accueil .presentation p { margin-bottom: 8px; }
}
@media (max-width: 980px) {
    body.accueil .home-content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .site-header__inner { gap: 12px; padding: 14px 16px 10px; }
    .site-title { font-size: 21px; }
    .site-nav { width: 100%; gap: 4px; }
    .site-nav a { flex: 1; justify-content: center; font-size: 14px; padding: 8px 12px; min-height: 42px; }
    .site-nav a[aria-current="page"]::before { left: 20px; right: 20px; }
    .site-main { padding: 20px 16px; }
    body.accueil .hero { padding: 4px 0 20px; gap: 18px; }
    body.accueil .hero h2 { font-size: 32px; letter-spacing: -1px; }
    body.accueil .home-hero-subtitle { font-size: 11px; letter-spacing: .06em; }
    body.accueil .cta, body.accueil .cta form, body.accueil .cta button { width: 100%; }
    body.accueil .cta button { min-height: 46px; }
    body.accueil .home-card { padding: 18px; }
    body.accueil .section-title-row { flex-direction: row; align-items: center; }
    body.accueil .course-mode-grid { gap: 14px; }
    body.accueil .course-mode-grid article { display: grid; grid-template-columns: 28px 1fr; column-gap: 10px; }
    body.accueil .course-mode-grid article + article { border: 0; padding: 0; }
    body.accueil .course-mode-grid .icon { grid-row: span 2; margin: 0; }
    body.accueil .course-mode-grid strong { margin: 0 0 3px; }
    body.accueil .home-video-card { padding: 0; }
    body.accueil .contact-wrapper { flex-direction: row-reverse; align-items: center; }
    body.accueil .contact-avatar { width: 94px; height: 94px; flex-basis: 94px; }
    body.accueil .floating-contact h2 { margin-bottom: 14px; }
    body.accueil .presentation p { font-size: 15px; }
    body.reservation .site-main { padding: 16px 12px; }
    body.reservation .booking-panel { padding: 14px; }
    body.reservation .panel-heading h2 { font-size: 17px; }
    body.reservation .slots-panel-heading { align-items: flex-start; gap: 12px; }
    body.reservation .custom-request-action { white-space: normal; max-width: 142px; min-height: 40px; font-size: 12px !important; }
    body.reservation .slot-calendar-grid { gap: 10px; }
    body.reservation .slot-week-row { min-height: 0; }
    body.reservation .slot-day-card { padding: 12px; }
    body.reservation .slot-day-card.is-empty:not(.is-past) { display: none; }
    body.reservation .slot-day-heading h3 { font-size: 14px; margin-bottom: 10px; }
    body.reservation .slot-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    body.reservation .slot-button { min-height: 44px; font-size: 13px; }
    body.reservation .choice-card { min-height: 44px; }
    body.reservation .reservation-form input[type="text"], body.reservation .reservation-form input[type="email"], body.reservation .reservation-form input[type="date"], body.reservation .reservation-form select, body.reservation .reservation-form textarea { font-size: 16px; min-height: 42px; }
    body.reservation .reservation-actions button { min-height: 46px; }
    body.ressources .site-main { padding: 20px 16px; }
    body.ressources .site-main > section { display: block; padding: 18px 0; }
    body.ressources section h2 { padding: 0; margin-bottom: 12px; }
    body.ressources li a { min-height: 46px; }
}

body.accueil .floating-contact a { overflow-wrap: anywhere; }

.home-rates { display:grid; gap:2px; color:var(--color-muted); font-size:12px; text-align:right; }
.home-rates strong { color:#a6eaf1; margin-left:8px; font-weight:600; white-space:nowrap; }
body.reservation .reservation-actions { flex-direction:column; align-items:stretch; gap:6px; }
.price-summary { font-size:12px; color:#c2dcff; line-height:1.4; }
body.reservation .reservation-form textarea { min-height:3rem; }
@media (min-width: 901px) {
    body.reservation .form-section-person { display:grid; grid-template-columns: 1fr 1fr; gap:8px; }
    body.reservation .form-section-person label { margin-bottom:0; }
}
body.reservation .course-level-field { margin:0 0 2px; }
@media(max-width:768px) { body.accueil .section-title-row { flex-wrap:wrap; gap:8px; } .home-rates{text-align:left;font-size:12px;} }
