/* ===== Light theme overrides for availability calendar ===== */
.disponibilites-aside {
  background: #ffffff;
  border: 1px solid #e5e7eb; /* gray-200 */
  color: #111827; /* gray-900 */
}
.disponibilites-aside h3 { color: #111827; }
.dispos-intro, .dispos-help { color: #4b5563; /* gray-600 */ }

.calendar { border-top: 1px solid #e5e7eb; }
.calendar-header .cal-title { color: #111827; }
.calendar-header .cal-nav {
  background: #ffffff;
  color: #111827;
  border: 1px solid #d1d5db; /* gray-300 */
}
.calendar-header .cal-nav:focus-visible { outline: 2px solid #2563eb; /* blue-600 */ }

.cal-cell {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #111827;
}
.cal-dow { color: #6b7280; /* gray-500 */ }
.cal-day.available:hover { background: #f3f4f6; /* gray-100 */ }
.cal-day.blocked {
  background: #fef2f2; /* red-50 */
  color: #991b1b; /* red-800 */
  border-color: #fecaca; /* red-200 */
}
.cal-day.today { outline: 1px dashed #2563eb; }
.calendar-legend { color: #374151; /* gray-700 */ }
.calendar-legend .today { background: #2563eb; }
j.paiement-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #f7f7f7;
}
/* Background align with homepage: clean white, no gradients */
body { background: #fff; }
html, body { overflow-x: hidden !important; }
.main-title {
    padding: 14px 16px;
    font-size: 2.7rem;
    transition: box-shadow 0.22s, transform 0.22s, border-color 0.22s;

    text-align: center;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    min-width: 56px;
    min-height: 56px;
    box-sizing: border-box;
    letter-spacing: 1.5px;
    font-weight: 700;
    text-shadow: 0 2px 12px #f5ede6;
}

/* Remove page-wide drop shadows */
.formules-grid { filter: none; }
.paypal-section {
    margin: 2.5rem auto 2rem auto;
    max-width: 700px;
    background: none;
    border-radius: 0;
    border: none;
    box-shadow: none;
    padding: 0;
    text-align: center;
    font-size: 1rem;
    transition: none;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 auto !important;
    padding: 0 !important;
    border-radius: 0 !important;
    display: flex !important;
    justify-content: center !important;
}
.paypal-section h3 {


    font-size: 1.15rem !important;
    color: #222 !important;
    font-weight: 500;
    margin-bottom: 0.7rem;
    letter-spacing: 0;
    text-shadow: none;
    background: none;
}
.paypal-section:hover {
    box-shadow: none;
    border-color: inherit;
}
#paypal-message-mobile {
    display: none;
    width: 100vw !important;
    max-width: 100vw !important;
}
#paypal-message-desktop {
    display: block;
    width: 1200px !important;
    max-width: 100vw !important;
    margin: 0 auto !important;
}
@media (max-width: 700px) {
    #paypal-message-desktop {
        display: none;
    }
    #paypal-message-mobile {
        display: block !important;
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        box-sizing: border-box;
    }
    .main-title {
        font-size: 2rem;
        margin-top: 1.2rem;
    }
    .bloc-formules {
        padding: 1.2rem 0.5rem 1rem 0.5rem;
        border-radius: 14px;
    }
    .paypal-section {
        padding: 1.5rem 0.7rem;
        border-radius: 10px;
        max-width: 98vw;
        position: fixed;
        left: 0;
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 9999;
        background: #fff;
        box-shadow: 0 -2px 12px rgba(76,174,76,0.12);
        justify-content: center !important;
        bottom: 60px;
        height: 60px;
    }
    #paypal-message-mobile {
        position: fixed;
        left: 0;
        width: 100vw !important;
        max-width: 100vw !important;
        z-index: 9999;
        background: #fff;
        box-shadow: 0 -2px 12px rgba(76,174,76,0.12);
        display: block !important;
        bottom: 60px;
        height: 60px;
    }
    main {
        padding-bottom: 120px !important; /* espace pour la bannière + footer */
    }
    #mainFooter {
        position: relative;
        z-index: 10000;
    }
    .formule-card.zoom-effect {
        transition: transform 0.25s cubic-bezier(.4,2,.3,1), box-shadow 0.25s;
        transform: scale(1.13);
        box-shadow: 0 12px 40px rgba(76,174,76,0.22), 0 0 0 6px #4cae4c;
    }
}
@media (min-width: 701px) {
    #paypal-message-mobile {
        display: none !important;
    }
}
/* Reset any previous card variant */
.formule-card { border: none; box-shadow: none; }
.formule-card.selected { background: #fff; box-shadow: none; border: none; }
#paypal-message-desktop {
    display: none !important;
}
@media (max-width: 700px) {
    #paypal-message-desktop {
        display: none !important;
    }
    #paypal-message-mobile {
        display: block !important;
    }
}
.add-to-cart {
  display: inline-flex;
  align-items: center;
  background: #4e6e7a;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.8rem 1.6rem;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.05);
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
  transition: background .2s, box-shadow .2s, transform .2s;
  letter-spacing: 0.3px;
  margin-top: 0.5rem;
  white-space: nowrap;
  min-height: 44px;
  cursor: pointer;
}
.add-to-cart::after {
  content: '→';
  display: inline-block;
  margin-left: .55rem;
  transform: translateX(0);
  transition: transform .2s ease;
}
.add-to-cart:hover,
.add-to-cart:focus {
  background: #39515a;
  box-shadow: 0 6px 18px rgba(78,110,122,0.18);
  transform: translateY(-2px) scale(1.04);
  color: #fff;
  outline: none;
}
.add-to-cart:hover::after,
.add-to-cart:focus::after { transform: translateX(3px); }
.add-to-cart:focus-visible { outline: 3px solid #b48c6e; outline-offset: 3px; }
/* Section container: transparent, thin top separator, aligned with homepage */
.bloc-formules {
  padding: 2.5rem 1rem;
  background: transparent;
  border-radius: 0;
  max-width: 1200px;
  margin: 2rem auto;
  border-top: 1px solid #e2d6cc;
}

.bloc-formules h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: #b48c6e;
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 700;
}
.formules-intro {
  font-size: 1.05rem;
  color: #666;
  text-align: center;
  margin: 0 0 1.4rem 0;
}

.bloc-formules p {
  font-size: 1.15rem;
  color: #555;
  text-align: center;
  margin-bottom: 2rem;
}

.formules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }

.formule-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.6rem 1.1rem 1.2rem 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s;
  border: 1px solid #f0e9d8; /* soft border like gallery */
  position: relative;
}

.formule-card:hover { transform: translateY(-2px); }

.formule-card h2 { font-family: 'Montserrat', Arial, sans-serif; font-size: 1.2rem; color: #a06e4c; margin-bottom: 0.5rem; font-weight: 700; text-align: center; }

.prix { font-size: 1.35rem; color: #b48c6e; font-weight: 700; margin-bottom: 0.8rem; background: #f7f2ec; border-radius: 8px; padding: 0.35rem 1rem; border: 1px solid #efdfd2; box-shadow: none; }

.formule-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 0.7rem;
}

.formule-card ul li {
  font-size: 1rem;
  color: #555;
  margin-bottom: 0.5rem;
  padding-left: 1.2rem;
  position: relative;
}

.formule-card ul li:before {
  content: "✔";
  color: #b48c6e;
  font-size: 1rem;
  position: absolute;
  left: 0;
  top: 0;
}

/* Prestige et Grand Film styles */
/* Prestige: subtle highlight only */
.formule-card.prestige { border: 1.5px solid #e2d6cc; background: #fff; box-shadow: none; transform: none; }

.formule-card.prestige h2 { color: #b48c6e; }

.formule-card.prestige .prix { background: #f3eadf; border-color: #e7d7c7; color: #8b6a4a; }

.formule-card.prestige ul li:before { color: #b48c6e; }

/* Optionnel : badge "Populaire" */
/* Remove loud popularity badge for sobriety */
.formule-card.prestige::after { content: none; }

.formule-card.grand-film { border: 1.5px solid #e2d6cc; background: #fff; box-shadow: none; transform: none; }

.formule-card.grand-film h2 { color: #a06e4c; }

.formule-card.grand-film .prix { background: #f3eadf; border-color: #e7d7c7; color: #8b6a4a; }

.formule-card.grand-film ul li:before { color: #a06e4c; }

.formule-card.grand-film::after { content: none; }

/* Responsive */
@media (max-width: 700px) {
  .bloc-formules { padding: 1.2rem 0.5rem 1rem 0.5rem; border-radius: 0; border-top-width: 1px; }
  .formules-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .formule-card { padding: 1.2rem 0.7rem 1rem 0.7rem; }
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  #pageContent > section {
    width: 100vw !important;
    max-width: 100vw !important;
    padding: 0.5rem 0.2rem 1rem 0.2rem !important;
    box-sizing: border-box;
    border-radius: 0 !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
}

@media (min-width: 701px) {
  #pageContent > section {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2.5rem 1.5rem 2rem 1.5rem;
    border-radius: 0;
    box-sizing: border-box;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: none;
  }
  #pageContent > section > div { margin-bottom: 0 !important; }
}

.paypal-section {
    width: 100%;
    max-width: 1200px !important;
    margin: 2.5rem auto 2rem auto !important;
  #pageContent > section {
    padding: 0.2rem 0.1rem 0.7rem 0.1rem !important;
    border-radius: 7px !important;
  }
}
#paypal-message-desktop {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}



@media (max-width: 1200px) {
    #paypal-message-desktop,
    .paypal-section {
        width: 100vw !important;
        max-width: 100vw !important;
    }
}

.main-title {
  display: none !important;
}

    .paypal-message-desktop-fixed {
        position: fixed;
        top: 32px;
        right: 32px;
        z-index: 9999;
        width: 340px;
        max-width: 90vw;
        box-sizing: border-box;
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 4px 24px rgba(76,174,76,0.10);
        padding: 1.2rem 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }
    .paypal-message-desktop-fixed > div[data-pp-message] {
        width: 100%;
        max-width: 100%;
    }
@media (max-width: 430px) {
  .formule-card.prestige::after {
    top: 8px;
    left: 8px;
    right: auto;
    font-size: 0.78rem;
    padding: 0.18rem 0.7rem;
    border-radius: 8px;
  }
  .formule-card.grand-film::after {
    top: 10px;
    left: 10px;
    right: auto;
    font-size: 0.85rem;
    padding: 0.22rem 0.8rem;
    border-radius: 9px;
  }
}


/* Footer stylé et sobre */
/* Footer pleine largeur en bas de page */
/* Footer pleine largeur en bas de page, non fixe */
#mainFooter {
  width: 100vw;
  background: #f7f3ef;
  border-top: 1px solid #e2d6cc;
  padding: 2.2rem 1rem 1.2rem 1rem;
  font-family: 'Montserrat', sans-serif;
  color: #6d5c4d;
  text-align: center;
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: auto !important;
}

@media (max-width: 700px) {
  #mainFooter {
    position: static !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: auto !important;
  }
}


#contact-section {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

#contact-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: #b48c6e;
  margin-bottom: 0.7rem;
  font-weight: 700;
}

#contact-section p {
  font-size: 1rem;
  margin-bottom: 1.1rem;
}

#contact-section ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin-bottom: 1.2rem;
  text-align: center;
}

#contact-section ul li {
  display: flex;
  justify-content: center;
  align-items: center;
}

#contact-section ul li a img {
  width: 34px;
  height: 34px;
  transition: transform 0.2s, box-shadow 0.2s;
  border-radius: 50%;
  background: #fff;
}

#contact-section ul li a img:hover,
#contact-section ul li a img:focus {
  transform: scale(1.13);
  box-shadow: 0 4px 16px rgba(180,140,110,0.13);
}

#contact-section p:last-child {
  font-size: 0.98rem;
  color: #a07a5b;
  margin-top: 1.2rem;
}

#contact-section p a {
  color: #b48c6e;
  text-decoration: underline;
  margin: 0 0.3rem;
  transition: color 0.2s;
}

#contact-section p a:hover,
#contact-section p a:focus {
  color: #a07a5b;
}


.bloc-connexion,
.bloc-videos,
.bloc-galerie,
.bloc-poeme,
#mainFooter,
.video-bloc,
.galerie-item {
  box-shadow: none !important;
}

#contact-section ul li a img {
  box-shadow: none !important;
}

/* Fin */
@media (max-width: 700px) {
  /* Footer ergonomie mobile (global) */
  #mainFooter { padding-left: 0.8rem; padding-right: 0.8rem; }
  #mainFooter #contact-section h2 { font-size: 1.05rem; margin-bottom: 0.5rem; }
  #mainFooter #contact-section p { font-size: 0.95rem; margin-bottom: 0.8rem; line-height: 1.35; }
  #mainFooter #contact-section ul { gap: 1rem; flex-wrap: wrap; }
  #mainFooter #contact-section ul li a img { width: 28px; height: 28px; }
  #mainFooter > p { font-size: 0.9rem; line-height: 1.25; margin-top: 0.8rem; letter-spacing: 0; }
  #mainFooter > p a { margin: 0 0.2rem; }
  #mainFooter > p a[title*="À propos"] { white-space: nowrap; }
}

/* --- Sticky footer base (short pages) --- */
html, body { height: 100%; }
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body > header.header-container, #mainFooter { flex: 0 0 auto; }
main#pageContent, body > main { flex: 1 0 auto; }

/* ===== Bloc Guides (aside) ===== */
.guide-box { margin:1.3rem 0 1.4rem; padding:1.1rem 1rem 1.25rem; background:#faf9f7; border:1px solid #e6e0d8; border-radius:16px; font-family:'Montserrat',sans-serif; line-height:1.45; }
.guide-box__title { margin:0 0 .55rem; font-size:1.02rem; letter-spacing:.5px; text-transform:uppercase; font-weight:600; color:#a67b37; text-align:center; }
.guide-box__intro { margin:0 0 .85rem; font-size:.8rem; color:#4b433d; text-align:center; }
.guide-list { list-style:none; margin:0 0 .8rem; padding:0; display:flex; flex-direction:column; gap:.55rem; }
.guide-link { display:flex; gap:.7rem; text-decoration:none; background:#fff; border:1px solid #e5ddd3; padding:.6rem .7rem .65rem; border-radius:12px; position:relative; transition:.25s background,.25s border-color,.25s box-shadow; align-items:flex-start; }
.guide-link:hover,.guide-link:focus-visible { background:#fffdf9; border-color:#d4c4b1; box-shadow:0 2px 6px rgba(0,0,0,.04); outline:none; }
.guide-link__icon { font-size:1.1rem; line-height:1; display:flex; align-items:center; justify-content:center; width:1.5rem; }
.guide-link__icon svg { width:18px; height:18px; display:block; color:#a67b37; }
.guide-link:hover .guide-link__icon svg, .guide-link:focus-visible .guide-link__icon svg { color:#8f6323; }
.guide-link__text { display:flex; flex-direction:column; font-size:.72rem; line-height:1.2; }
.guide-link__text strong { font-size:.86rem; font-weight:600; color:#2a1f18; line-height:1.15; }
.guide-link__text em { font-style:normal; font-size:.63rem; opacity:.72; letter-spacing:.3px; }
.guide-box__all { display:block; font-size:.64rem; letter-spacing:.55px; text-transform:uppercase; text-decoration:none; font-weight:600; color:#a67b37; text-align:center; }
.guide-box__all:hover,.guide-box__all:focus-visible { text-decoration:underline; }
@media (min-width:861px){
  .guide-box { margin-top:1.6rem; }
}
@media (prefers-reduced-motion:reduce){ .guide-link { transition:none; } }

/* --- Mobile: move bottom-nav reserve to footer to avoid visible gap --- */
@media (max-width: 700px) {
  /* Don’t override global bottom reserve accidentally */
  main#pageContent, body > main { padding-bottom: 0 !important; }
  #mainFooter { padding-bottom: calc(0.6rem + var(--bottom-nav-h, 56px)) !important; }
}


#contact-section p {
  font-size: 1rem;
  margin-bottom: 1.1rem;
}

#contact-section ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin-bottom: 1.2rem;
  text-align: center;
}

#contact-section ul li {
  display: flex;
  justify-content: center;
  align-items: center;
}

#contact-section ul li a img {
  width: 34px;
  height: 34px;
  transition: transform 0.2s, box-shadow 0.2s;
  border-radius: 50%;
  background: #fff;
}

#contact-section ul li a img:hover,
#contact-section ul li a img:focus {
  transform: scale(1.13);
  box-shadow: 0 4px 16px rgba(180,140,110,0.13);
}

#contact-section p:last-child {
  font-size: 0.98rem;
  color: #a07a5b;
  margin-top: 1.2rem;
}

#contact-section p a {
  color: #b48c6e;
  text-decoration: underline;
  margin: 0 0.3rem;
  transition: color 0.2s;
}

#contact-section p a:hover,
#contact-section p a:focus {
  color: #a07a5b;
}


.bloc-connexion,
.bloc-videos,
.bloc-galerie,
.bloc-poeme,
#mainFooter,
.video-bloc,
.galerie-item {
  box-shadow: none !important;
}

#contact-section ul li a img {
  box-shadow: none !important;
}

/* Fin */

@media (max-width: 700px) {
  .paypal-message-mobile {
    display: block !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    box-sizing: border-box;
  }
}
@media (min-width: 701px) {
  .paypal-message-desktop {
    display: block !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    box-sizing: border-box;
  }
}

/* Responsive, accessible typography for Formules */
:root {
  --f-step--1: clamp(1rem, 0.92rem + 0.2vw, 1.05rem); /* base text ≥ 1rem */
  --f-step-0:  clamp(1.15rem, 1rem + 0.6vw, 1.35rem); /* card headings / section p */
  --f-step-1:  clamp(1.4rem, 1.1rem + 1vw, 1.8rem);   /* prices / sub-titles */
  --f-step-2:  clamp(1.8rem, 1.4rem + 1.6vw, 2.4rem); /* main section title */
}

/* Body text within Formules section */
.bloc-formules p,
.formule-card ul li { font-size: var(--f-step--1); line-height: 1.6; }

/* Card titles */
.formule-card h2 { font-size: var(--f-step-0); line-height: 1.3; }

/* Price badge */
.prix { font-size: var(--f-step-1); line-height: 1.2; }

/* Main title if displayed */
.main-title { font-size: var(--f-step-2); line-height: 1.2; }

/* Buttons keep touch target and readable size */
.add-to-cart { font-size: 1rem; min-height: 44px; }

/* ===== Disposition formules + aside disponibilités ===== */
.formules-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: stretch; /* stretch both columns to equal height */
}

.disponibilites-aside {
  background: #ffffff;
  border: 1px solid #e2d6cc; /* warm border to match cards */
  border-radius: 12px;
  padding: 1rem 1rem 1.25rem;
  position: sticky;
  top: 1rem;
  color: #6d5c4d; /* warm text */
}
.disponibilites-aside h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.25rem;
  font-family: 'Playfair Display', serif;
  color: #b48c6e; /* section accent */
  text-align: center;
}
.dispos-intro, .dispos-help {
  color: #6d5c4d;
  font-size: 0.95rem;
  margin: 0.25rem 0 0.75rem 0;
  text-align: center;
}

/* Calendar */
.calendar { border-top: 1px solid #e2d6cc; padding-top: 0.75rem; }
.calendar-header { display:flex; align-items:center; justify-content:space-between; gap: .5rem; margin-bottom: .5rem; }
.calendar-header .cal-title { font-weight: 600; font-family: 'Playfair Display', serif; color: #a06e4c; }
.calendar-header .cal-nav { background:#ffffff; color:#a06e4c; border:1px solid #e7d7c7; width:32px; height:32px; border-radius:8px; font-size:18px; line-height:1; display:grid; place-items:center; cursor:pointer; }
.calendar-header .cal-nav:hover { background:#f7f2ec; }
.calendar-header .cal-nav:focus-visible { outline: 2px solid #b48c6e; outline-offset: 2px; }
.calendar-grids { display:grid; grid-template-columns: 1fr; gap: 16px; }
.month-block { display: flex; flex-direction: column; gap: 6px; }
.month-block .month-title { font-weight: 700; font-family: 'Playfair Display', serif; color: #a06e4c; text-align: center; }
.calendar-grid { display:flex; flex-direction:column; gap: 4px; }
.cal-row { display:grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-cell { background:#ffffff; border:1px solid #f0e9d8; border-radius:8px; padding:.5rem; text-align:center; color:#6d5c4d; }
.cal-dow { background: transparent; border: none; color: #a07a5b; font-size: .8rem; padding: .25rem; }
.cal-day { cursor: default; }
.cal-day.available { cursor: pointer; background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.cal-day.available:hover { background:#d1fae5; }
.cal-day.blocked { background: #f3f4f6; color: #6b7280; border-color: #e5e7eb; cursor: not-allowed; }
.cal-day.blocked:hover { background: #f3f4f6; }
.cal-day.today { outline: none; border-color: #14b8a6; box-shadow: inset 0 0 0 2px #99f6e4; }
.cal-day.muted { opacity:.35; }
.cal-day:disabled { opacity:.55; cursor:not-allowed; }

.calendar-legend { display:flex; align-items:center; gap: 1rem; margin-top: .5rem; color: #6d5c4d; font-size: .85rem; flex-wrap: wrap; }
.calendar-legend .dot { display:inline-block; width:10px; height:10px; border-radius:50%; margin-right: .35rem; vertical-align: middle; }
.calendar-legend .available { background:#10b981; }
.calendar-legend .blocked { background:#9ca3af; }
.calendar-legend .today { background:#14b8a6; }

/* Responsive */
@media (max-width: 1024px) {
  .formules-layout { grid-template-columns: 1.4fr .9fr; }
  /* Mobiles et tablettes: afficher un seul mois */
  .calendar-grids .month-block.right { display: none; }
}
@media (max-width: 860px) {
  .formules-layout { grid-template-columns: 1fr; }
  .disponibilites-aside { 
    position: static; 
    /* Enable flex layout to allow reordering of children on mobile/tablette */
    display: flex; 
    flex-direction: column; 
  }
  .calendar-grids { grid-template-columns: 1fr; }
  /* Reorder: show calendrier avant le bloc "Guides utiles" sur mobiles & tablettes */
  .disponibilites-aside .calendar { order: 2; }
  .disponibilites-aside .guide-box { order: 3; }
  .disponibilites-aside .dispos-help { order: 4; }
  /* Heading + intro conservent l'ordre source (order:0 par défaut) */
}
@media (min-width: 861px) {
  /* On desktop, stack months vertically to fill height and avoid side gaps */
  .calendar-grids { grid-template-columns: 1fr; }
}
@media (min-width: 861px) {
  /* Ensure aside visually matches the height of the formules grid */
  .disponibilites-aside {
    height: 100%;
    align-self: stretch;
    display: flex;
    flex-direction: column;
  }
  .calendar {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .calendar-grid { flex: 1; }
}
@media (max-width: 430px) {
  /* Very small devices: keep minimum readable sizes */
  .formule-card h2 { font-size: max(1.15rem, var(--f-step-0)); }
  .prix { font-size: max(1.35rem, var(--f-step-1)); }
}

/* Uniformisation couleur du texte dans le footer  */
#mainFooter > p {
  color: #6d5c4d; 
}
#mainFooter > p a {
  color: inherit; 
  text-decoration: underline;
}
#mainFooter > p a:hover,
#mainFooter > p a:focus {
  color: #4f4035; 
}
