/* Feuille de style — Les Libellules Estevelloises.
   Cascade conservée ; les réglages du hero sont regroupés en fin de fichier. */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap");

:root {
    --ink: #23282b;
    --muted: #626769;
    --paper: #f5f2ec;
    --white: #fffefa;
    --coral: #bc625f;
    --coral-dark: #99433e;
    --peach: #efd6cd;
    --sage: #e3e9e2;
    --line: #d9d5cd;
    --dark: #252d30;
    --max: 1300px;
    --radius: 2px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.75 "DM Sans",sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,input,textarea,select {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}

h1,h2,h3,h4,p {
    margin-top: 0;
}

h1,h2,h3,.footer-brand {
    font-family: "Playfair Display",Georgia,serif;
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: -.045em;
}

h1 em,h2 em {
    color: var(--coral);
    font-weight: 500;
}

h2 {
    font-size: clamp(2.5rem,5vw,5rem);
}

h3 {
    font-size: clamp(1.5rem,2.2vw,2.2rem);
}

p {
    color: var(--muted);
}

.container {
    width: min(var(--max),calc(100% - 100px));
    margin: auto;
}

.skip-link {
    position: fixed;
    left: 10px;
    top: -70px;
    z-index: 100;
    background: white;
    padding: 12px;
}

.skip-link:focus {
    top: 10px;
}

.eyebrow {
    display: inline-block;
    font-family: Manrope,sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .19em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 24px;
}

.section {
    padding: 130px 0;
    position: relative;
}

.section-sm {
    padding: 85px 0;
}

.soft {
    background: var(--white);
}

.section-head {
    max-width: 760px;
    margin-bottom: 65px;
}

.section-head h2 {
    margin-bottom: 22px;
}

.section-head p {
    font-size: 1.1rem;
}

.section-head.center {
    text-align: left;
}

.section-head.center:after {
    content: "";
    display: block;
    width: 80px;
    height: 2px;
    background: var(--coral);
    margin-top: 32px;
}

.lead {
    font-size: 1.2rem;
    line-height: 1.75;
}

.center-action {
    margin-top: 42px;
    text-align: right;
}

.text-link {
    font-family: Manrope,sans-serif;
    font-size: .9rem;
    font-weight: 800;
    border-bottom: 1px solid;
    padding-bottom: 10px;
}

.text-link span {
    padding-left: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 53px;
    padding: 15px 26px;
    border: 1px solid var(--ink);
    border-radius: 0;
    font-family: Manrope,sans-serif;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .015em;
    transition: background .25s,color .25s,transform .25s,border-color .25s;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.btn-primary:hover {
    background: var(--coral);
    border-color: var(--coral);
}

.btn-outline {
    background: transparent;
    color: var(--ink);
}

.btn-outline:hover {
    background: var(--ink);
    color: #fff;
}

.btn-light {
    background: var(--white);
    border-color: var(--white);
    color: var(--ink);
}

.btn-light:hover {
    background: var(--peach);
}

.site-header {
    height: 90px;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    transition: box-shadow .3s;
}

.site-header.scrolled {
    box-shadow: 0 10px 28px #2222;
}

.header-inner {
    height: 100%;
    width: min(1530px,calc(100% - 70px));
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-shrink: 0;
}

.brand-mark {
    font-size: 2.4rem;
    color: var(--coral);
    line-height: 1;
}

.brand-name {
    font-family: Manrope,sans-serif;
    font-weight: 800;
    font-size: .92rem;
    letter-spacing: .06em;
    line-height: 1.2;
}

.brand-name small {
    display: block;
    font-size: .57rem;
    letter-spacing: .21em;
    color: var(--coral);
    margin-top: 5px;
}

.nav {
    display: flex;
    align-items: center;
    gap: clamp(10px,1.45vw,25px);
}

.nav>a {
    position: relative;
    font-size: .76rem;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1.4;
}

.nav>a:not(.nav-donate):after {
    content: "";
    position: absolute;
    bottom: -9px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--coral);
    transition: width .25s;
}

.nav>a:hover:not(.nav-donate):after,.nav>a[aria-current=page]:not(.nav-donate):after {
    width: 100%;
}

.nav>a:hover {
    color: var(--coral);
}

.nav .nav-donate {
    padding: 14px 16px;
    background: var(--coral);
    color: #fff;
}

.nav .nav-donate:hover {
    background: var(--ink);
    color: #fff;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    width: 45px;
    height: 45px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.menu-toggle span {
    display: block;
    width: 27px;
    height: 2px;
    background: var(--ink);
    transition: transform .3s,opacity .3s;
}

.menu-open .menu-toggle span:first-child {
    transform: translateY(8px) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-toggle span:last-child {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero : magazine cover, not a full-bleed gradient */

.hero {
    display: grid;
    grid-template-columns: 46% 54%;
    background: #ece6dc;
    position: relative;
    overflow: hidden;
}

.hero-image {
    grid-column: 2;
    grid-row: 1;
    background: center center / cover no-repeat;
    min-height: 690px;
}

.hero-content {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    width: auto;
    margin: 0;
    position: relative;
    z-index: 2;
}

.hero .eyebrow {
    color: var(--coral-dark);
    margin-bottom: 34px;
}

.hero h1 {
    line-height: 1.04;
    margin-bottom: 34px;
}

.hero h1 em {
    display: block;
}

.hero p {
    max-width: 480px;
    color: #454a4b;
    font-size: 1.1rem;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 45px;
}

.hero .btn-outline {
    border-color: #8b8279;
}

.hero-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 46%;
    z-index: 2;
}

.hero-bottom .container {
    width: auto;
    margin: 0;
    padding: 0 clamp(35px,5vw,105px) 23px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: .64rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 800;
    color: #7a7069;
}

.hero:after {
    content: "";
    position: absolute;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    height: 150px;
    z-index: 2;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        #ffffff 100%
    );
    pointer-events: none;
}

/* Narrative editorial blocks */

.intro-grid {
    display: grid;
    grid-template-columns: 44% 1fr;
    gap: clamp(50px,8vw,140px);
    align-items: center;
}

.intro-photo {
    position: relative;
}

.intro-photo img {
    width: 100%;
    height: 690px;
    object-fit: cover;
    filter: saturate(.7);
}

.intro-photo:before {
    content: "LES LIBELLULES / ESTEVelles";
    position: absolute;
    left: -24px;
    top: 24px;
    z-index: 1;
    background: var(--coral);
    color: #fff;
    padding: 13px 18px;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.intro-copy h2 {
    margin-bottom: 32px;
}

.intro-copy>p {
    font-size: 1.05rem;
}

.value-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin: 40px 0;
    border-top: 1px solid var(--line);
    padding-top: 32px;
}

.value strong,.value span {
    display: block;
}

.value strong {
    font-size: .86rem;
    margin-bottom: 6px;
}

.value span {
    font-size: .82rem;
    color: var(--muted);
}

.teachers {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--sage);
    padding: 18px;
}

.teacher-avatar {
    height: 67px;
    width: 67px;
    object-fit: cover;
    border-radius: 50%;
}

.teachers strong,.teachers small {
    display: block;
}

.teachers small {
    font-size: .76rem;
    color: var(--muted);
    line-height: 1.5;
}

.course-grid {
    display: grid;
    grid-template-columns: 1.08fr .92fr .92fr;
    gap: 15px;
}

.course-card {
    position: relative;
    display: block;
    min-height: 560px;
    overflow: hidden;
    background: var(--dark);
    color: white;
}

.course-card:nth-child(2) {
    margin-top: 58px;
}

.course-card:nth-child(3) {
    margin-top: 116px;
}

.course-card img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    filter: grayscale(.45) brightness(.72);
    transition: transform .7s,filter .7s;
}

.course-card:hover img {
    transform: scale(1.07);
    filter: grayscale(0) brightness(.65);
}

.course-card:after {
    content: "";
    position: absolute;
    inset: 40% 0 0;
    background: linear-gradient(transparent,#111a1ce8);
}

.course-card>div {
    position: absolute;
    z-index: 2;
    bottom: 32px;
    left: 30px;
    right: 30px;
}

.course-card h3 {
    font-size: clamp(2rem,3vw,3.2rem);
    margin: 15px 0;
}

.course-card p {
    color: #f5eeee;
    margin: 0;
}

.tag {
    font-size: .67rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    font-weight: 800;
}

.course-card .arrow {
    position: absolute;
    z-index: 3;
    right: 22px;
    top: 22px;
    font-size: 1.5rem;
    border: 1px solid #fff8;
    width: 43px;
    height: 43px;
    text-align: center;
    line-height: 40px;
}

/* Scheduling intentionally dark, timetable editorial */

#planning {
    background: var(--dark);
    color: #fff;
}

#planning .eyebrow {
    color: #e3b8a7;

}


#planning p {
    color: #c8d0cd;
}

#planning .section-head {
    max-width: 820px;
}

#planning h2 {
    color: #fff;
}

.schedule-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    align-items: start;
}

.schedule-panel {
    padding: 42px;
    background: #303a3d;
    border-top: 5px solid var(--coral);
}

.schedule-panel:nth-child(2) {
    background: #38413f;
    border-color: #b6c5a8;
}

.schedule-panel h3 {
    margin: 0 0 18px;
    font-size: 2.3rem;
}

.schedule-panel>p {
    font-size: .9rem;
}

.slot {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 20px;
    border-top: 1px solid #ffffff26;
    padding: 20px 0;
}

.slot time {
    font-size: .83rem;
    color: #e8b5a7;
    font-weight: 800;
    white-space: nowrap;
}

.slot strong,.slot small {
    display: block;
}

.slot strong {
    font-size: .88rem;
}

.slot small {
    color: #bbc6c4;
    font-size: .79rem;
    margin-top: 4px;
}




.note {
    background: #ffffff12;
    padding: 18px;
    font-size: .85rem;
    color: #d5dfdb;
}

/* Pricing as graphic columns */

.price-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.price-card {
    background: var(--paper);
    padding: 46px 34px;
    min-height: 300px;
}

.price-card.featured {
    background: var(--peach);
}

.price-card h3 {
    font-size: 1.9rem;
}

.price {
    font-family: "Playfair Display",serif;
    font-size: 3.7rem;
    color: var(--ink);
    margin: 24px 0;
}

.price small {
    font-family: "DM Sans",sans-serif;
    font-size: .9rem;
}

.price-card p {
    font-size: .83rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 45px;
    margin: 85px 0 30px;
}

.step {
    border-top: 2px solid var(--ink);
    padding-top: 23px;
}

.step b {
    font-family: "Playfair Display",serif;
    color: var(--coral);
    font-size: 3rem;
    font-weight: 500;
}

.step h3 {
    font-size: 1.55rem;
    margin: 15px 0;
}

.step p {
    font-size: .88rem;
}

/* News cards */

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

.news-card,.actualite-card {
    background: var(--paper);
    overflow: hidden;
}

.news-card img,.actualite-card img {
    width: 100%;
    height: 255px;
    object-fit: cover;
}

.news-card>div,.actualite-card>div {
    padding: 24px;
}

.news-card h3,.actualite-card h3 {
    font-size: 1.6rem;
}

.news-card p,.actualite-card p {
    font-size: .88rem;
}

.news-card time,.actualite-card time {
    font-size: .7rem;
    color: var(--coral);
    font-weight: 800;
    letter-spacing: .1em;
}

.news-card a,.actualite-card a {
    font-size: .85rem;
    font-weight: 800;
}

/* gallery preview */

.gallery-preview {
    display: grid;
    grid-template-columns: 1.2fr .8fr .8fr 1fr;
    gap: 10px;
    min-height: 320px;
}

.gallery-preview img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    filter: saturate(.65);
    transition: filter .3s;
}

.gallery-preview img:nth-child(even) {
    margin-top: 35px;
}

.gallery-preview img:hover {
    filter: saturate(1);
}

.donation {
    background: var(--coral);
    color: #fff;
}

.donation .eyebrow {
    color: #fce6df;
}

.donation-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.donation h2 {
    font-size: clamp(2.5rem,4vw,4.4rem);
    max-width: 780px;
}

.donation p {
    color: #f7e9e5;
}

.social-inner {
    text-align: center;
    max-width: 830px;
}

.social-inner h2 {
    font-size: clamp(2.4rem,4.2vw,4.3rem);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 32px 0;
}

.social-links a {
    border: 1px solid var(--ink);
    padding: 12px 22px;
    font-weight: 800;
    font-size: .86rem;
}

.social-links a:hover {
    background: var(--ink);
    color: #fff;
}

.placeholder-note {
    font-size: .74rem;
    color: #8b7772;
}

/* contact */

.contact-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(50px,8vw,130px);
}

.contact-grid h2 {
    margin-bottom: 26px;
}

.contact-info {
    margin: 45px 0;
    border-top: 1px solid var(--line);
}

.contact-info>div {
    display: grid;
    grid-template-columns: 155px 1fr;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
}

.contact-info strong {
    font-size: .8rem;
}

.contact-info span,.contact-info a {
    font-size: .87rem;
    color: var(--muted);
}

.contact-form {
    background: var(--white);
    padding: clamp(24px,4vw,55px);
    border-top: 5px solid var(--coral);
}

.contact-form h3 {
    font-size: 2.1rem;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    font-size: .77rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.field input,.field select,.field textarea {
    display: block;
    width: 100%;
    border: 1px solid #d2d1cb;
    background: #f8f7f3;
    padding: 13px 14px;
    outline: 0;
    color: var(--ink);
    border-radius: 0;
}

.field textarea {
    min-height: 145px;
    resize: vertical;
}

.field input:focus,.field select:focus,.field textarea:focus {
    border-color: var(--coral);
    box-shadow: 0 0 0 2px #bc625f22;
}

.check {
    display: flex;
    align-items: start;
    gap: 10px;
    font-size: .76rem;
    line-height: 1.5;
    margin: 12px 0 25px;
}

.form-status {
    font-size: .85rem;
    margin-top: 15px;
    color: var(--coral-dark);
}

/* footer */

.site-footer {
    background: #1d2528;
    color: #fff;
    padding: 90px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr .7fr .9fr 1fr;
    gap: 55px;
}

.footer-brand {
    font-size: 2.7rem;
    line-height: 1.1;
}

.site-footer p {
    color: #abb7b5;
    font-size: .85rem;
}

.site-footer h4 {
    font-family: Manrope,sans-serif;
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: 23px;
    color: #e8b5a7;
}

.site-footer a {
    display: block;
    font-size: .84rem;
    margin-bottom: 12px;
    color: #d8dedc;
}

.site-footer a:hover {
    color: #f4a9a0;
}

.footer-bottom {
    border-top: 1px solid #ffffff25;
    padding-top: 26px;
    margin-top: 75px;
    display: flex;
    justify-content: space-between;
    gap: 25px;
    flex-wrap: wrap;
    color: #aab3b1;
    font-size: .7rem;
}

.footer-bottom a {
    display: inline;
    font-size: inherit;
    margin: 0;
}

/* inner pages */

.page-hero {
    padding: 115px 0 100px;
    background: var(--peach);
    position: relative;
    overflow: hidden;
}

.page-hero:after {
    content: "✳";
    position: absolute;
    right: 6%;
    top: -90px;
    color: #ffffff77;
    font-size: 30rem;
    line-height: 1;
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: clamp(3.8rem,8vw,8rem);
    max-width: 900px;
    margin-bottom: 25px;
}

.page-hero p {
    max-width: 630px;
    font-size: 1.13rem;
    color: #4d4b48;
}

.page-hero .btn {
    margin-top: 25px;
}

.discipline-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7vw;
    align-items: center;
    padding: 70px 0;
    border-bottom: 1px solid var(--line);
}

.discipline-row:nth-child(even) .discipline-photo {
    order: 2;
}

.discipline-photo {
    height: 570px;
    width: 100%;
    object-fit: cover;
    filter: saturate(.75);
}

.discipline-text h2 {
    font-size: clamp(2.7rem,4vw,4.6rem);
}

.discipline-text ul {
    padding-left: 20px;
    color: var(--muted);
    margin: 30px 0;
}

.discipline-text li {
    margin-bottom: 10px;
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 45px;
}

.filter-btn {
    border: 1px solid var(--line);
    background: transparent;
    padding: 11px 18px;
    font-size: .78rem;
    font-weight: 800;
}

.filter-btn:hover,.filter-btn.active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    border: 0;
    padding: 0;
    background: var(--dark);
    overflow: hidden;
    aspect-ratio: 4/5;
}

.gallery-item:nth-child(5n/**/+2) {
    aspect-ratio: 4/4;
}

.gallery-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform .5s;
    filter: saturate(.75);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: left;
    padding: 32px 20px 16px;
    background: linear-gradient(transparent,#000a);
    color: white;
    font-weight: 800;
    font-size: .85rem;
}

.gallery-item[hidden] {
    display: none;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: #0a0d0df0;
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-height: 83vh;
    max-width: 80vw;
    object-fit: contain;
}

.lightbox button {
    position: absolute;
    background: #fff;
    border: 0;
    color: #111;
    font-size: 2rem;
    width: 45px;
    height: 45px;
}

.lightbox-close {
    right: 25px;
    top: 25px;
}

.lightbox-prev {
    left: 25px;
}

.lightbox-next {
    right: 25px;
}

.lightbox-caption {
    position: absolute;
    bottom: 15px;
    color: #fff;
    font-size: .8rem;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .65s,transform .65s;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

@media (max-width:1350px) {
    .nav {
        gap: 12px;
    }

    .nav>a {
        font-size: .7rem;
    }

    .brand-name {
        font-size: .75rem;
    }

    .header-inner {
        width: calc(100% - 38px);
    }
}

@media (max-width:1350px) {
    .menu-toggle {
        display: flex;
        z-index: 52;
    }

    .nav {
        display: none;
        position: fixed;
        inset: 90px 0 0;
        background: var(--white);
        padding: 40px 8vw;
        overflow-y: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        z-index: 51;
    }

    .menu-open .nav {
        display: flex;
    }

    .nav>a {
        font-size: 1.12rem;
        border-bottom: 1px solid var(--line);
        padding: 14px 0;
    }

    .nav .nav-donate {
        margin-top: 24px;
        padding: 18px;
        text-align: center;
    }

    .hero {
        grid-template-columns: 1fr 1fr;
    }

    .hero-bottom {
        width: 50%;
    }

    .hero-bottom .container {
        padding: 0 30px 15px;
    }

    .hero-bottom .container span:first-child {
        display: none;
    }

    .intro-grid {
        gap: 45px;
    }

    .intro-photo img {
        height: 590px;
    }

    .course-card {
        min-height: 450px;
    }

    .course-card:nth-child(2) {
        margin-top: 30px;
    }

    .course-card:nth-child(3) {
        margin-top: 60px;
    }

    .schedule-grid {
        gap: 15px;
    }

    .schedule-panel {
        padding: 25px;
    }

    .slot {
        grid-template-columns: 110px 1fr;
        gap: 12px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width:700px) {
    .container {
        width: calc(100% - 38px);
    }

    .site-header {
        height: 72px;
    }

    .nav {
        top: 72px;
    }

    .header-inner {
        width: calc(100% - 30px);
    }

    .hero {
        display: flex;
        flex-direction: column;
    }

    .hero-image {
        order: 1;
        min-height: 400px;
        width: 100%;
    }

    .hero-content {
        order: 2;
        width: 100%;
    }

    .hero-bottom {
        display: none;
    }

    .hero:after {
        top: 345px;
        bottom: auto;
    }

    .section {
        padding: 80px 0;
    }

    .section-sm {
        padding: 60px 0;
    }

    .section-head {
        margin-bottom: 38px;
    }

    .section-head h2 {
        font-size: clamp(2.7rem,11vw,4rem);
    }

    .intro-grid,.schedule-grid,.contact-grid,.discipline-row {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .intro-photo img {
        height: 430px;
    }

    .intro-copy h2 {
        font-size: 3.1rem;
    }

    .value-grid {
        gap: 18px;
    }

    .course-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .course-card,.course-card:nth-child(2),.course-card:nth-child(3) {
        margin-top: 0;
        min-height: 440px;
    }

    .course-card h3 {
        font-size: 2.8rem;
    }

    .slot {
        grid-template-columns: 115px 1fr;
    }

    .price-grid,.steps,.news-grid,.actualites-grid {
        grid-template-columns: 1fr;
    }

    .price-card {
        min-height: 0;
    }

    .steps {
        gap: 25px;
        margin: 55px 0 20px;
    }

    .donation-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .gallery-preview {
        grid-template-columns: 1fr 1fr;
        min-height: 0;
    }

    .gallery-preview img,.gallery-preview img:nth-child(even) {
        height: 210px;
        margin-top: 0;
    }

    .field-row {
        grid-template-columns: 1fr;
    }

    .contact-info>div {
        grid-template-columns: 115px 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-grid>div:first-child {
        grid-column: 1/-1;
    }

    .footer-brand {
        font-size: 2.4rem;
    }

    .footer-bottom {
        margin-top: 50px;
    }

    .page-hero {
        padding: 85px 0;
    }

    .page-hero h1 {
        font-size: clamp(3.5rem,13vw,6rem);
    }

    .discipline-row {
        padding: 35px 0;
    }

    .discipline-row:nth-child(even) .discipline-photo {
        order: 0;
    }

    .discipline-photo {
        height: 420px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .gallery-item {
        aspect-ratio: 3/4;
    }

    .gallery-item:nth-child(5n/**/+2) {
        aspect-ratio: 3/4;
    }

    .gallery-item span {
        font-size: .68rem;
    }

    .lightbox img {
        max-width: 82vw;
    }

    .lightbox-prev {
        left: 5px;
    }

    .lightbox-next {
        right: 5px;
    }

    .lightbox button {
        width: 35px;
        height: 40px;
    }
}

@media (max-width:430px) {
    .brand-name {
        font-size: .68rem;
    }

    .brand-mark {
        font-size: 1.9rem;
    }

    .hero-image {
        min-height: 335px;
    }

    .hero:after {
        top: 280px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .value-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid>div:first-child {
        grid-column: auto;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        aspect-ratio: 5/4;
    }

    .gallery-item:nth-child(5n/**/+2) {
        aspect-ratio: 5/4;
    }
}



/* Refonte : composition classique, rose clair, images régulières */

:root {
    --ink: #44323d;
    --muted: #786b73;
    --paper: #fffafc;
    --white: #fff;
    --coral: #b95b82;
    --coral-dark: #914264;
    --peach: #f9e7ee;
    --sage: #fff0f5;
    --line: #ecdce4;
    --dark: #684157;
    --radius: 14px;
}

body {
    background: var(--paper);
}

.section {
    padding: 88px 0;
}

.soft {
    background: #fff0f5;
}

.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 42px;
}

.section-head h2,.intro-copy h2,.contact-grid h2 {
    font-size: clamp(2.3rem,4vw,3.6rem);
    line-height: 1.2;
}

.section-head p {
    margin-left: auto;
    margin-right: auto;
}

.eyebrow {
    color: var(--coral-dark);
}

.site-header {
    background: #fffafcf5;
    box-shadow: 0 2px 20px #5d284112;
}

.brand-mark {
    color: var(--coral);
}

.hero,.hero.hero-editorial {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #f8dbe5;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    min-height: 0;
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: block;
    grid-column: auto;
    grid-row: auto;
    width: min(var(--max),calc(100% - 72px));
    margin: 0 auto;
    align-self: auto;
}

.hero-content>* {
    max-width: 570px;
}

.hero h1 {
    line-height: 1.08;
    color: #49303e;
    margin: 20px 0;
}

.hero h1 em {
    color: #a54870;
}

.hero-content p {
    color: #594550;
    max-width: 475px;
}

.hero .eyebrow {
    color: #8c4966;
}

.hero .btn-outline {
    color: #6c3d55;
    border-color: #a65c7a;
}

.hero .btn-light {
    background: #b95b82;
    color: #fff;
    border-color: #b95b82;
}

.hero-bottom {
    display: none;
}

.intro-grid {
    grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
    gap: 65px;
}

.intro-photo img {
    height: 510px;
    filter: none;
    border-radius: 16px;
}

.intro-photo:before {
    display: none;
}

.value-grid {
    gap: 14px;
}

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

.course-card,.course-card:nth-child(2),.course-card:nth-child(3) {
    margin: 0;
    min-height: 0;
    height: 335px;
    border-radius: 14px;
    box-shadow: 0 10px 26px #703d5514;
}

.course-card img {
    filter: none;
}

.course-card h3 {
    font-size: clamp(1.45rem,2.3vw,2.2rem);
}

.course-card p {
    font-size: .82rem;
}

.course-card:hover {
    transform: translateY(-4px);
}

#planning {
    background: #fff;
    color: var(--ink);
}

#planning h2 {
    color: var(--ink);
}

#planning p {
    color: var(--muted);
}

#planning .eyebrow {
    color: var(--coral-dark);
}

.schedule-grid {
    gap: 24px;
}

.schedule-panel {
    background: #fff7fa;
    border: 1px solid var(--line);
    border-top: 4px solid var(--coral);
    border-radius: 14px;
    padding: 34px;
}

.schedule-panel h3,.schedule-panel strong,.schedule-panel time {
    color: var(--ink);
}

.schedule-panel p,.schedule-panel small {
    color: var(--muted);
}


.note {
    background: #fff;
    border-radius: 10px;
}

.price-grid {
    gap: 22px;
    background: none;
    border: 0;
}

.price-card,.price-card.featured {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    min-height: 0;
    box-shadow: 0 7px 24px #7040580a;
}

.price-card.featured {
    border-color: #d69bb4;
    background: #fff4f8;
}

.news-card,.actualite-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.news-card img,.actualite-card img {
    height: 210px;
}

.gallery-preview {
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 14px;
    min-height: 0;
}

.gallery-preview img,.gallery-preview img:nth-child(even) {
    height: 230px;
    margin: 0;
    border-radius: 12px;
    filter: none;
}

.donation {
    background: #f4dce7;
    color: var(--ink);
}

.donation .eyebrow {
    color: var(--coral-dark);
}

.donation p {
    color: #624b58;
}

.social-links a {
    border-color: #d7a5bb;
    border-radius: 999px;
}

.contact-grid {
    gap: 55px;
}

.contact-form {
    border: 1px solid var(--line);
    border-top: 4px solid var(--coral);
    border-radius: 16px;
    box-shadow: 0 10px 28px #65354a0a;
}

.field input,.field select,.field textarea {
    background: #fff;
    border: 1px solid #e5cad7;
    border-radius: 8px;
}

.site-footer {
    background: #653d52;
}

.site-footer h4 {
    color: #f8d5e5;
}

.site-footer p,.site-footer a {
    color: #f8e8ef;
}

.page-hero {
    background: #f9e7ee;
    padding: 85px 0;
}

.page-hero:after {
    display: none;
}

.page-hero h1 {
    font-size: clamp(3rem,5vw,5rem);
}

.discipline-row {
    gap: 55px;
}

.discipline-photo {
    height: 440px;
    filter: none;
    border-radius: 14px;
}

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

.gallery-item,.gallery-item:nth-child(5n/**/+2) {
    aspect-ratio: 4/3;
    height: auto;
    border-radius: 12px;
}

.gallery-item img {
    filter: none;
}

.filter-btn {
    border-radius: 999px;
}

.filter-btn:hover,.filter-btn.active {
    background: var(--coral);
    border-color: var(--coral);
}

@media (max-width:980px) {
    .hero,.hero.hero-editorial {
        display: flex;
    }

    .hero-content {
        width: calc(100% - 52px);
    }

    .course-card,.course-card:nth-child(2),.course-card:nth-child(3) {
        height: 280px;
        min-height: 0;
        margin: 0;
    }

    .intro-grid {
        gap: 35px;
    }
}

@media (max-width:700px) {
    .section {
        padding: 65px 0;
    }

    .hero,.hero.hero-editorial {
        display: flex;
    }

    .hero-image {
        position: absolute;
        inset: 0;
        min-height: 0;
        order: 0;
    }

    .hero-content {
        order: 0;
        width: calc(100% - 42px);
    }

    .hero-content p {
        max-width: 340px;
    }

    .intro-grid,.schedule-grid,.contact-grid,.discipline-row {
        grid-template-columns: 1fr;
    }

    .intro-photo img {
        height: 340px;
    }

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

    .course-card,.course-card:nth-child(2),.course-card:nth-child(3) {
        height: 235px;
        min-height: 0;
    }

    .course-card h3 {
        font-size: 1.2rem;
    }

    .course-card>div {
        padding: 14px;
    }

    .course-card .tag,.course-card p {
        display: none;
    }

    .gallery-preview {
        grid-template-columns: repeat(2,1fr);
    }

    .gallery-preview img,.gallery-preview img:nth-child(even) {
        height: 180px;
    }

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

    .gallery-item,.gallery-item:nth-child(5n/**/+2) {
        aspect-ratio: 4/3;
    }

    .discipline-photo {
        height: 330px;
    }
}

@media (max-width:430px) {
    .course-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .course-card,.course-card:nth-child(2),.course-card:nth-child(3) {
        height: 225px;
    }

    .course-card h3 {
        font-size: 1.9rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .gallery-item,.gallery-item:nth-child(5n/**/+2) {
        aspect-ratio: 1/1;
    }
}

/* Ajustements validés : hero utilisateur, tarifs, don, Facebook */

/* Hero : modifier la deuxième valeur de background-position pour ajuster le cadrage. */
.hero-image {
    background-image: linear-gradient(90deg,rgba(255,244,249,.90) 0%,rgba(255,244,249,.72) 25%,rgba(255,244,249,.05) 54%,transparent 75%),url("../assets/images/heroimg.png");
    background-position: center center;
}

.hero {
    min-height: 790px;
}

.hero-content {
    padding: 90px 0;
}

.hero-content>* {
    max-width: 530px;
}

.hero h1 {
    font-size: clamp(3rem,5.1vw,3.3rem);
}

.tarifs-panel {
    max-width: 930px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #eed8e2;
    border-radius: 16px;
    padding: clamp(18px,3vw,40px);
    box-shadow: 0 10px 30px #a96a8410;
}

.tarifs-table-wrap {
    overflow-x: auto;
}

.tarifs-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.tarifs-table th {
    background: #f9e9f0;
    color: #633b50;
    font-size: .85rem;
    letter-spacing: .03em;
}

.tarifs-table th,.tarifs-table td {
    padding: 20px 24px;
    border-bottom: 1px solid #efdce5;
}

.tarifs-table td:last-child,.tarifs-table th:last-child {
    text-align: right;
    font-weight: 700;
}

.tarifs-table tr:last-child td {
    border-bottom: 0;
}

.tarifs-panel .placeholder-note {
    margin: 17px 0 0;
}

.inscription-box {
    max-width: 930px;
    margin: 26px auto 0;
    background: #f6dfe9;
    border-radius: 16px;
    padding: clamp(24px,4vw,44px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.inscription-box h3 {
    font-family: "Playfair Display",serif;
    font-size: clamp(1.7rem,2.8vw,2.4rem);
    margin: 6px 0 12px;
}

.inscription-box p {
    max-width: 590px;
    margin: 0;
}

.inscription-box p a {
    color: #8e3f62;
    text-decoration: underline;
}

.inscription-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.inscription-actions .btn {
    text-align: center;
    white-space: nowrap;
}

.donation-strip {
    padding: 26px 0;
    background: #fff9fb;
}

.donation-banner {
    background: linear-gradient(105deg,#f7e6e8,#f4dce5);
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 38px;
    padding: 32px clamp(22px,4vw,55px);
    min-height: 112px;
}

.donation-icon {
    color: #b77b90;
    font-size: 3.9rem;
    line-height: 1;
    width: 80px;
    text-align: center;
    flex-shrink: 0;
}

.donation-copy {
    flex: 1;
}

.donation-copy h2 {
    font-family: "Playfair Display",serif;
    font-size: clamp(1.55rem,2.2vw,2.2rem);
    font-weight: 500;
    color: #673c51;
    margin: 0 0 6px;
}

.donation-copy p {
    font-size: .86rem;
    color: #805d6d;
    margin: 0;
}

.donation-cta {
    background: #c66d8e;
    color: white;
    padding: 15px 24px;
    border-radius: 999px;
    white-space: nowrap;
    font-size: .85rem;
    font-weight: 700;
    box-shadow: 0 8px 18px #b85b7b24;
    transition: background .2s,transform .2s;
}

.donation-cta:hover {
    background: #ab5274;
    transform: translateY(-2px);
}

.donation-cta span {
    margin-left: 10px;
    font-size: 1.2rem;
}

.social-strip {
    padding: 22px 0;
    background: #fff9fb;
}

.facebook-banner {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 22px 30px;
    border: 1px solid #f0dbe5;
    background: white;
    border-radius: 14px;
    box-shadow: 0 8px 24px #a96a840a;
}

.facebook-logo {
    width: 60px;
    height: 60px;
    color: #1877f2;
    flex-shrink: 0;
}

.facebook-logo img {
    width: 100%;
    height: 100%;
}

.facebook-copy {
    flex: 1;
}

.facebook-copy h2 {
    font-family: "Playfair Display",serif;
    font-size: clamp(1.35rem,2vw,1.9rem);
    margin: 0 0 4px;
    color: #633b50;
}

.facebook-copy p {
    margin: 0;
    font-size: .85rem;
    color: #806777;
}

.facebook-cta {
    display: inline-flex;
    padding: 12px 19px;
    border: 1px solid #d7a5bb;
    border-radius: 999px;
    color: #8e4264;
    font-size: .84rem;
    font-weight: 750;
    white-space: nowrap;
    transition: background .2s;
}

.facebook-cta:hover {
    background: #f8e8f0;
}

.site-footer .footer-facebook {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 15px;
}

.facebook-mini {
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: #1877f2;
    color: white;
    display: inline-grid;
    place-items: center;
    font-family: Arial,sans-serif;
    font-size: 17px;
    font-weight: 800;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

@media (max-width:800px) {
    .inscription-box {
        flex-direction: column;
        align-items: stretch;
    }

    .inscription-actions {
        flex-direction: row;
    }

    .donation-banner {
        gap: 18px;
    }

    .donation-icon {
        width: 40px;
        font-size: 2.8rem;
    }

    .facebook-banner {
        flex-wrap: wrap;
    }

    .facebook-cta {
        margin-left: 82px;
    }
}

@media (max-width:700px) {
    .hero {
        min-height: 560px;
    }

    .hero-image {
        background-image: linear-gradient(90deg,rgba(255,244,249,.90),rgba(255,244,249,.5) 48%,rgba(255,244,249,.05)),url("../assets/images/hero-choisi.webp");
        background-position: 60% center;
    }

    .hero-content {
        padding: 55px 0;
    }

    .hero h1 {
        font-size: clamp(2.7rem,10vw,4rem);
    }

    .donation-banner {
        flex-wrap: wrap;
        padding: 24px;
    }

    .donation-copy {
        flex-basis: calc(100% - 65px);
    }

    .donation-cta {
        margin-left: 0;
    }

    .facebook-banner {
        padding: 18px;
        gap: 14px;
    }

    .facebook-logo {
        width: 50px;
        height: 50px;
    }

    .facebook-copy {
        flex-basis: calc(100% - 68px);
    }

    .facebook-cta {
        margin-left: 0;
    }

    .inscription-actions {
        flex-direction: column;
    }
}

@media (max-width:430px) {
    .hero {
        min-height: 540px;
    }

    .hero h1 {
        font-size: 2.7rem;
    }

    .tarifs-table th,.tarifs-table td {
        padding: 16px 12px;
    }

    .donation-cta {
        white-space: normal;
    }

    .facebook-cta {
        white-space: normal;
    }
}

/* Finitions : texture légère, en-têtes compacts et actualités */

main>.section:not(.soft),main>.section-sm:not(.soft) {
    background-color: #fff;
    background-image: url("../assets/images/grain.png");
}

main>.section.soft,main>.section-sm.soft {
    background-color: #fff5f8;
    background-image: url("../assets/images/grain.png"),radial-gradient(ellipse at 8% 20%,#f2d4e480,transparent 55%),radial-gradient(ellipse at 95% 85%,#f4dbe880,transparent 55%);
}

#association,#contact {
    background-image: url("../assets/images/libellule.png"),url("../assets/images/grain.png"),radial-gradient(ellipse at right top,#fceaf280,transparent 50%);
    background-size: 240px,160px,auto;
    background-position: right 2% top 25px,0 0,center;
    background-repeat: no-repeat,repeat,no-repeat;
}

.site-footer {
    background-image: url("../assets/images/grain.png");
}

.page-hero {
    min-height: 0;
    padding: 42px 0 36px;
    text-align: center;
    background-color: #faeaf1;
    background-image: url("../assets/images/libellule.png"),url("../assets/images/grain.png"),linear-gradient(180deg,#f9e6ee,#fff);
    background-size: 190px,160px,auto;
    background-repeat: no-repeat,repeat,no-repeat;
    background-position: right 7% center,0 0,center;
    overflow: hidden;
}

.page-hero .container {
    position: relative;
    max-width: 900px;
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(2rem,4vw,3.1rem);
    line-height: 1.15;
    margin: 0 0 12px;
    color: #633b50;
}

.page-hero p {
    max-width: 680px;
    margin: 0 auto;
    font-size: 1rem;
    color: #765568;
}

.page-hero .container::after {
    content: "";
    display: block;
    width: 48px;
    height: 2px;
    background: #c88aa5;
    margin: 18px auto 0;
}

.action-icon {
    object-fit: contain;
    width: 1.15em;
    height: 1.15em;
    flex: none;
    vertical-align: middle;
}

.btn,.nav-donate,.facebook-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65em;
}

.tarif-note {
    font-size: .9rem;
    margin: 20px 0 0;
    color: #674c5b;
}

.news-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: none;
    color: #934366;
    font: inherit;
    font-weight: 700;
    padding: 10px 0;
    cursor: pointer;
}

.news-more:hover {
    text-decoration: underline;
}

.news-dialog {
    border: 0;
    border-radius: 18px;
    padding: 0;
    width: min(650px,calc(100% - 32px));
    max-height: 85vh;
    overflow: auto;
    background: #fff url("../assets/images/grain.png");
    color: #49303e;
    box-shadow: 0 20px 80px #39232e44;
}

.news-dialog::backdrop {
    background: #34202b88;
    backdrop-filter: blur(4px);
}

.news-dialog-inner {
    position: relative;
}

.news-dialog img {
    width: 100%;
    height: clamp(130px,30vw,240px);
    object-fit: cover;
    display: block;
}

.news-dialog-copy {
    padding: clamp(20px,5vw,38px);
}

.news-dialog-copy h2 {
    font-size: clamp(1.7rem,4vw,2.5rem);
    margin: 12px 0;
}

.news-close {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #633b50;
    font-size: 28px;
    cursor: pointer;
}

.news-dialog[open] {
    animation: news-in .22s ease-out;
}

@keyframes news-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width:768px) {
    .page-hero {
        padding: 30px 0 26px;
        background-size: 120px,160px,auto;
    }

    .page-hero p {
        font-size: .92rem;
    }

    #association,#contact {
        background-size: 130px,160px,auto;
    }

    .tarifs-table th,.tarifs-table td {
        padding: 12px 8px;
        font-size: .85rem;
    }
}

@media (prefers-reduced-motion:reduce) {
    .news-dialog[open] {
        animation: none;
    }
}

/* Tarifs compacts et informations pratiques */

#tarifs.section {
    padding-block: clamp(38px,5vw,68px);
}

#tarifs .section-head {
    margin-bottom: 24px;
}

.tarifs-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 20px;
    align-items: stretch;
    max-width: 1050px;
    margin: auto;
}

.tarifs-grid .tarifs-panel,.tarifs-grid .inscription-box {
    margin: 0;
    max-width: none;
    padding: clamp(18px,2.5vw,28px);
    min-width: 0;
    border-radius: 16px;
}

.tarifs-grid .inscription-box {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid #eed8e2;
}

.tarifs-grid h3 {
    font-family: "Playfair Display",serif;
    font-size: 1.55rem;
    margin: 0 0 14px;
}

.tarifs-grid .tarifs-table th,.tarifs-grid .tarifs-table td {
    padding: 12px 10px;
}

.tarifs-grid .tarif-note {
    margin: 12px 0 0;
    line-height: 1.5;
}

.tarifs-grid .registration-phone {
    margin-top: 10px;
}

.tarifs-grid .inscription-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
}

.tarifs-grid .inscription-actions .btn {
    padding: 10px 14px;
    font-size: .85rem;
}

.event-details {
    display: grid;
    gap: 8px;
    background: #f9edf2;
    border: 1px solid #eed8e2;
    border-radius: 12px;
    padding: 14px;
    margin: 18px 0;
}

.event-details>div {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 10px;
    align-items: start;
}

.event-details dt {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #934366;
}

.event-details dd {
    margin: 0;
}

.event-example {
    font-size: .8rem;
    color: #674c5b;
}

.news-dismiss {
    cursor: pointer;
}

@media (min-width:1351px) {
    .nav {
        gap: clamp(7px,1vw,16px);
    }

    .nav>a {
        font-size: .72rem;
    }

    .header-inner {
        gap: 14px;
    }
}

@media (max-width:767px) {
    .tarifs-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

@media (max-width:380px) {
    .event-details>div {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

/* Navigation et présentation */

.association-stats {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
    margin: 22px 0;
    text-align: center;
}

.association-stats strong {
    display: block;
    font-size: 1.5rem;
    color: var(--coral-dark);
}

.association-stats span {
    font-size: .82rem;
    display: block;
}

.news-card {
    display: flex;
    flex-direction: column;
}

.news-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-more {
    margin-top: auto;
    align-self: flex-start;
}

.news-preview {
    overflow-wrap: anywhere;
}

@media (min-width:1201px) {
    .nav>a {
        font-size: 16px;
    }

    .nav {
        gap: clamp(10px,1.2vw,20px);
    }
}



/* Menu élargi : bascule anticipée pour éviter le débordement. */

@media (min-width:1351px) {
    .nav>a {
        font-size: 16px;
    }

    .nav {
        gap: clamp(8px,0.9vw,16px);
    }

    .header-inner {
        gap: 12px;
    }
}

@media (min-width:701px) and (max-width:1350px) {
    .nav>a {
        font-size: 1.12rem;
    }

    .nav {
        gap: 0;
    }
}

/* Contact : lien Facebook */

.contact-info > .contact-facebook-row {
    grid-template-columns: 1fr;
}

.contact-info .contact-facebook-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-self: start;
    color: #1765c1;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease;
}

.contact-facebook-link img {
    flex-shrink: 0;
}

.contact-info .contact-facebook-link:hover {
    text-decoration: underline;
    color: #124b91;
}

.contact-facebook-link:focus-visible {
    outline: 2px solid #1765c1;
    outline-offset: 4px;
    border-radius: 3px;
}

/* Simplification et nouvelle identité du pied de page */

#association .intro-grid {
    align-items: center;
}

#association .intro-photo img {
    height: clamp(300px,38vw,460px);
}

#cours .course-card {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    background: #fff;
    color: var(--ink);
    cursor: default;
    transform: none;
    overflow: hidden;
}

#cours .course-card img {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    transform: none;
}

#cours .course-card:after,#cours .course-card:before {
    display: none;
}

#cours .course-card>div {
    position: static;
    padding: 18px;
    text-align: center;
    background: white;
    width: 100%;
}

#cours .course-card h3 {
    color: var(--ink);
    margin: 0;
}

#cours .course-card:hover {
    transform: none;
}

#planning {
    background: #fdf2f5;
    color: #362a31;
}

#planning .schedule-panel {
    background: white;
    color: #362a31;
    border-color: #e8cbd8;
    box-shadow: 0 6px 20px #81506a0a;
}

#planning .schedule-panel>.eyebrow {
    display: block;
    background: #f8e4ed;
    padding: 10px 14px;
    border-radius: 8px;
}

#planning .slot {
    background: white;
    border-color: #ead6df;
}

#planning .slot time,#planning .slot strong {
    color: #362a31;
}

#planning .week-switch,#planning .week-switch span,#planning .note {
    background: #f8e4ed;
    color: #513747;
}

.site-footer.new-footer {
    background-color: #f6e5ed;
    color: #503748;
    padding: 48px 0 24px;
}

.new-footer .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 35px;
}

.new-footer .footer-brand,.new-footer h4,.new-footer a,.new-footer p,.new-footer .footer-bottom {
    color: #503748;
}

.new-footer .footer-bottom {
    border-color: #d8b8c8;
    margin-top: 30px;
}

.legal-copy {
    max-width: 850px;
}

.legal-copy h2 {
    font-size: clamp(1.5rem,3vw,2.1rem);
    margin: 32px 0 12px;
}

.legal-copy a,.video-grid+a {
    text-decoration: underline;
}

.legal-copy p {
    line-height: 1.8;
}

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

.video-card {
    background: white;
    border: 1px solid #ead3df;
    border-radius: 12px;
    overflow: hidden;
}

.video-frame {
    aspect-ratio: 16/9;
    background: #f5dce8;
    position: relative;
    display: grid;
    place-items: center;
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Consentement YouTube : commandes regroupées au-dessus des vidéos. */
.video-consent {
    text-align: center;
    margin: 0 auto 24px;
    max-width: 760px;
}
.video-consent p { margin: 0 0 12px; }
.video-consent [hidden], .video-frame [hidden] { display: none; }
.video-consent #video-consent-status:empty { display: none; }
.video-consent #video-consent-status { margin: 10px 0 0; font-size: .9rem; }
.video-revoke {
    background: none;
    border: 0;
    color: #633b50;
    text-decoration: underline;
    font: inherit;
    padding: 10px;
    cursor: pointer;
}
.video-preview {
    text-align: center;
    color: #633b50;
    font-size: 2rem;
}
.video-preview span { display: block; font-size: .9rem; }

.video-card h3 {
    padding: 10px 15px;
    margin: 0;
    font-size: 1rem;
}


@media (max-width:900px) {
    .video-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width:700px) {
    .new-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .new-footer .footer-grid>div:first-child {
        grid-column: auto;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    #cours .course-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* Horaires : descriptions intégrées aux créneaux du mercredi */

#planning .groups-help {
    font-size: .85rem;
    margin: 0 0 16px;
    line-height: 1.6;
}

#planning .group-item summary.slot {
    display: grid;
    grid-template-columns: minmax(0,115px) minmax(0,1fr) 16px;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 15px 8px;
    cursor: pointer;
    list-style: none;
    transition: background .2s ease;
}

#planning .group-item summary::-webkit-details-marker {
    display: none;
}

#planning .group-item summary::marker {
    content: "";
}

#planning .group-time {
    font-size: .83rem;
    font-weight: 800;
    white-space: nowrap;
    color: #362a31;
}

#planning .group-item summary:hover,#planning .group-item[open] summary {
    background: #f8e4ed;
}

#planning .group-item summary:focus-visible {
    outline: 2px solid #934366;
    outline-offset: -2px;
}

#planning .group-chevron {
    width: 9px;
    height: 9px;
    border-right: 2px solid #934366;
    border-bottom: 2px solid #934366;
    transform: rotate(45deg);
    transition: transform .2s ease;
    justify-self: center;
}

#planning .group-item[open] .group-chevron {
    transform: rotate(225deg);
}

#planning .group-description {
    padding: 16px;
    background: #fdf2f5;
    border-top: 1px solid #ead6df;
}

#planning .group-description p {
    margin: 0;
    color: #513747;
    font-size: .88rem;
    line-height: 1.7;
}

#planning .group-item[open] .group-description {
    animation: group-appear .24s ease-out;
}

@keyframes group-appear {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width:430px) {
    #planning .group-item summary.slot {
        grid-template-columns: minmax(0,105px) minmax(0,1fr) 14px;
        gap: 6px;
        padding-inline: 4px;
    }

    #planning .group-time {
        font-size: .78rem;
    }
}

@media (prefers-reduced-motion:reduce) {
    #planning .group-item summary,#planning .group-chevron {
        transition: none;
    }

    #planning .group-item[open] .group-description {
        animation: none;
    }
}

/* Accessibilité : réduction des mouvements, après les styles des composants. */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .btn,
    .site-header,
    .nav>a:not(.nav-donate):after,
    .menu-toggle span,
    .course-card img,
    .gallery-preview img,
    .gallery-item img,
    .reveal,
    .donation-cta,
    .facebook-cta,
    .news-dialog[open],
    .contact-info .contact-facebook-link,
    #planning .group-item summary.slot,
    #planning .group-chevron,
    #planning .group-item[open] .group-description {
        animation-duration: .01ms;
        transition-duration: .01ms;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Désactivation du dégradé du Hero sur mobile */
@media (max-width: 767px) {
    .hero:after {
    content: "";
    position: absolute;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70px;
    z-index: 2;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        #ffffff 100%
    );
    pointer-events: none;
}
}
/* Icônes PNG : conserver le contraste des boutons au survol. */
.btn-outline:hover .action-icon {
    filter: brightness(0) invert(1);
}

/* Actualités : affiches centrées, sans recadrage ni JavaScript. */
.actualites {
    background: #fdf2f5;
    padding: 64px 0;
    scroll-margin-top: 100px;
}
.actualites[hidden], .nav > a[hidden] {
    display: none;
}
.flyers-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    max-width: 1080px;
    margin: 0 auto;
}
.flyer {
    flex: 0 1 340px;
    min-width: 0;
    margin: 0;
    text-align: center;
}
.flyer a {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px #5d28411a;
}
.flyer img {
    display: block;
    width: 100%;
    height: auto;
}
.flyer figcaption {
    margin-top: 12px;
    font-size: .85rem;
    color: var(--muted);
}
@media (max-width: 767px) {
    .actualites { padding: 42px 0; }
    .flyer { flex-basis: 340px; }
    .flyers-grid { flex-direction: column; align-items: center; }
    .flyer { flex: none; width: min(100%, 340px); }
}
