/* La Ferme ô Mimosas : mise en page des pages rubriques et des cartes de l'accueil */

/* Bandeau titre des pages rubriques */
.page-hero {
  position: relative; overflow: hidden;
    padding: 3rem 0 3.5rem;
}
@media (min-width: 1024px) { .page-hero { padding: 4.5rem 0 5rem; } }
.page-hero::after { /* fine bande arc-en-ciel en bas du bandeau */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, #E53935, #FB8C00, #FDD835, #43A047, #00ACC1, #1E88E5, #5E35B1);
}
.breadcrumb { font-size: .85rem; font-weight: 700; color: #334155; display: flex; align-items: center; justify-content: center; gap: .5rem; }
.breadcrumb a { color: #E05D00; text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb i { font-size: .65rem; opacity: .6; }

.badge {
  display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .85rem; border-radius: .5rem;
  color: #fff; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
}
.hero-chip {
  display: inline-flex; align-items: baseline; gap: .35rem; padding: .6rem 1.25rem; border-radius: 9999px;
  background: #fff; border: 2px solid #FF7A00; font-family: 'Lexend', sans-serif; font-weight: 800; font-size: 1.15rem; color: #0f172a;
  box-shadow: 0 6px 16px -6px rgba(255,122,0,.45);
}
.hero-chip span { font-size: .85rem; font-weight: 700; color: #334155; }

/* Mosaïque de 3 photos : une grande à gauche, deux à droite */
.mosaic {
  display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: .75rem;
  height: 22rem;
}
@media (min-width: 640px) { .mosaic { gap: 1rem; height: 30rem; } }
.mosaic-tall { grid-row: span 2; }
.mosaic-cell {
  display: block; padding: 0; border: 0; overflow: hidden; border-radius: 1.25rem; cursor: zoom-in;
  background: #FFF9C4; box-shadow: 0 10px 25px -12px rgba(15,23,42,.35);
}
.mosaic-cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.mosaic-cell:hover img { transform: scale(1.05); }
.mosaic-cell:focus-visible { outline: 3px solid #7C3AED; outline-offset: 3px; }

/* Liste d'atouts avec pastille d'icône */
.features { display: grid; gap: .9rem; }
.feature { display: flex; align-items: flex-start; gap: .9rem; font-size: 1.05rem; font-weight: 500; color: #1e293b; line-height: 1.55; }
.feature-ic {
  flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: .9rem; display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.features-lg .feature { padding: 1rem 1.1rem; background: #FFFDF5; border: 2px solid #FFF176; border-radius: 1.25rem; }

/* Petits encarts de tarif (chambre) */
.offer { background: #FFF9C4; border: 2px solid #FFDE00; border-radius: 1.25rem; padding: 1rem 1.25rem; }
.offer-label { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #334155; display: flex; align-items: center; gap: .4rem; }
.offer-label i { color: #E05D00; }
.offer-price { font-family: 'Lexend', sans-serif; font-weight: 800; font-size: 1.75rem; color: #0f172a; margin-top: .25rem; }
.offer-price span { font-size: .9rem; font-weight: 700; color: #334155; }
.offer-price-sm { font-size: 1.25rem; }
.offer-note { font-size: .9rem; font-weight: 700; color: #334155; margin-top: .35rem; display: flex; align-items: center; gap: .4rem; }
.offer-note i { color: #E05D00; }

/* Cartes de prix du camping : deux cartes identiques */
.price-card {
  position: relative; text-align: center; background: #fff; border: 3px solid #FFDE00; border-radius: 1.75rem;
  padding: 2.75rem 1.5rem 1.75rem; box-shadow: 0 14px 30px -14px rgba(255,122,0,.45);
  display: flex; flex-direction: column; align-items: center; gap: .15rem;
  transition: transform .3s ease, box-shadow .3s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: 0 20px 36px -14px rgba(255,122,0,.55); }
.price-card .offer-label { justify-content: center; font-size: .85rem; }
.price-card .offer-price { font-size: 2.25rem; }
.price-card .offer-note { justify-content: center; }
.price-ic {
  position: absolute; top: -1.6rem; left: 50%; transform: translateX(-50%);
  width: 3.25rem; height: 3.25rem; border-radius: 1rem; color: #fff; font-size: 1.35rem;
  display: flex; align-items: center; justify-content: center; border: 3px solid #fff; box-shadow: 0 8px 18px -6px rgba(15,23,42,.35);
}
@media (max-width: 639px) { .price-card + .price-card { margin-top: 1rem; } }

/* Cartes rubriques (accueil + « Découvrir aussi ») */
.teasers { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.teasers > .teaser { flex: 1 1 18rem; max-width: 24rem; }
.teaser {
  display: flex; flex-direction: column; background: #fff; border: 2px solid #FFDE00; border-radius: 1.5rem; overflow: hidden;
  box-shadow: 0 10px 30px -5px rgba(255,222,0,.35), 0 4px 12px -2px rgba(255,122,0,.15);
  transition: transform .3s ease, box-shadow .3s ease;
}
.teaser:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -8px rgba(255,122,0,.3); }
.teaser-img { height: 13rem; overflow: hidden; background: #FFF9C4; }
.teaser-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.teaser:hover .teaser-img img { transform: scale(1.06); }
.teaser-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; padding: 1.25rem 1.4rem 1.4rem; }
.teaser-foot { margin-top: auto; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-top: .25rem; }
.teaser-price { font-family: 'Lexend', sans-serif; font-weight: 800; font-size: 1.2rem; color: #0f172a; }
.teaser-price span { font-size: .8rem; font-weight: 700; color: #334155; }
.teaser-more { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #E05D00; display: inline-flex; align-items: center; gap: .35rem; margin-left: auto; }
.teaser:hover .teaser-more i { transform: translateX(3px); }
.teaser-more i { transition: transform .25s; }
/* version courte dans « Découvrir aussi » */
.grid > .teaser .teaser-img { height: 10rem; }
.grid > .teaser .teaser-body { gap: .6rem; }
.grid > .teaser h3 { font-size: 1.1rem; }

/* Lien actif du menu (page courante) */
header nav a.is-active, #mobile-menu a.is-active { color: #E05D00; text-decoration: none; }

/* Mobile : cartes « Découvrir aussi » en format horizontal, plus compactes */
@media (max-width: 639px) {
  .grid > .teaser { flex-direction: row; }
  .grid > .teaser .teaser-img { width: 7.5rem; height: auto; min-height: 8.5rem; flex-shrink: 0; }
  .grid > .teaser .teaser-body { padding: .9rem 1rem; gap: .45rem; }
  .grid > .teaser .badge { font-size: .65rem; padding: .25rem .6rem; }
  .grid > .teaser h3 { font-size: 1rem; }
  .price-card .offer-price { font-size: 1.9rem; }
}

/* Fonds alternés : 1re section blanche, puis jaune, blanche, jaune... */
.sec-white { background: #FFFFFF; }
.sec-yellow { background: #FFEE58; }
/* Sur fond jaune, les encarts jaune pâle passent en blanc pour rester visibles */
.sec-yellow .bg-poussin-100, .sec-yellow .offer, .sec-yellow .features-lg .feature { background: #FFFFFF; }
.sec-yellow .border-poussin-300, .sec-yellow .offer { border-color: #FF9100; }
.sec-yellow a.bg-poussin-400 { background: #FFFFFF; }
.sec-yellow a.bg-poussin-400:hover { background: #FFF9C4; }
.sec-yellow [class*="-rotate-2"].bg-poussin-500 { background: #FFFFFF; }
.sec-yellow .teaser, .sec-yellow .price-card { border-color: #FFFFFF; }
.sec-yellow .feature-ic { background: #FFFFFF; }
.sec-yellow .text-slate-700 { color: #334155; }
.sec-yellow .breadcrumb a, .sec-yellow .teaser-more { color: #C2410C; }

/* Menu : fond jaune avec un bas en vague */
.site-header {
  background: #FFDE00;
}
.site-header::after { /* bas du menu en vague */
  content: ""; position: absolute; left: 0; right: 0; top: calc(100% - 1px); height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath fill='%23FFDE00' d='M0 0H1200V16C1100 40 1000 40 900 22S700 0 600 18 400 40 300 22 100 0 0 16Z'/%3E%3C/svg%3E") center top / 100% 100% no-repeat;
  pointer-events: none;
}
@media (max-width: 639px) { .site-header::after { height: 16px; } }
/* Menu mobile ouvert : même jaune que la barre, la courbe continue en dessous */
.site-header #mobile-menu { background: #FFDE00; border-bottom: 0; border-top: 1px solid rgba(224, 93, 0, .25); }
.site-header #mobile-menu a { border-color: rgba(224, 93, 0, .25); }

/* ---------- Textes des rubriques plus grands ---------- */
.feature { font-size: 1.0625rem; }
@media (min-width: 640px) { .feature { font-size: 1.15rem; } }
.features-lg .feature { font-size: 1.0625rem; }
.offer-label { font-size: .8rem; }
.offer-note { font-size: 1rem; }
.price-card .offer-label { font-size: .95rem; }
.grid > .teaser h3 { font-size: 1.25rem; }
#histoire .prose p, #region li span { font-size: 1.125rem; }

/* ---------- Bouton burger animé ---------- */
.burger {
  position: relative; width: 48px; height: 48px; border-radius: 9999px; flex-shrink: 0;
  background: #0f172a; box-shadow: 0 6px 14px -6px rgba(15,23,42,.55);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  transition: background-color .25s, transform .25s;
}
.burger:hover { background: #FF7A00; }
.burger:active { transform: scale(.94); }
.burger span { display: block; width: 22px; height: 2.5px; border-radius: 3px; background: #FFDE00; transition: transform .35s cubic-bezier(.16,1,.3,1), opacity .2s, width .3s; }
.burger span:nth-child(2) { width: 14px; margin-left: 8px; }
.burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.burger:focus-visible { outline: 3px solid #7C3AED; outline-offset: 3px; }

/* ---------- Menu mobile plein écran ---------- */
.mm {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column;
  background: #FFDE00; overflow-y: auto; overscroll-behavior: contain;
  visibility: hidden; opacity: 0; clip-path: circle(0 at calc(100% - 40px) 40px);
  transition: clip-path .6s cubic-bezier(.65,0,.35,1), opacity .3s, visibility 0s linear .6s;
}
.mm.is-open { visibility: visible; opacity: 1; clip-path: circle(150% at calc(100% - 40px) 40px); transition: clip-path .6s cubic-bezier(.65,0,.35,1), opacity .2s, visibility 0s; }
.mm::before { /* bande arc-en-ciel en haut */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, #E53935, #FB8C00, #FDD835, #43A047, #00ACC1, #1E88E5, #5E35B1);
}
.mm-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1rem .5rem; min-height: 5rem; }
.mm-logo { display: flex; align-items: center; gap: .6rem; }
.mm-logo svg { height: 2.25rem; width: auto; }
.mm-name { display: block; font-family: 'Lexend', sans-serif; font-weight: 900; font-size: 1.15rem; color: #0f172a; line-height: 1; white-space: nowrap; }
.mm-tag { display: block; font-size: .8rem; font-style: italic; font-weight: 600; color: #334155; margin-top: .25rem; }
.mm-nav { display: flex; flex-direction: column; gap: .6rem; padding: .75rem 1rem 1.5rem; }
.mm-link {
  display: flex; align-items: center; gap: .9rem; padding: .7rem .9rem .7rem .7rem; border-radius: 1.25rem;
  background: rgba(255,255,255,.75); border: 2px solid transparent; color: #0f172a;
  box-shadow: 0 6px 16px -10px rgba(224,93,0,.6);
  opacity: 0; transform: translateX(24px);
  transition: opacity .45s ease, transform .45s cubic-bezier(.16,1,.3,1), background-color .2s, border-color .2s;
}
.mm.is-open .mm-link { opacity: 1; transform: none; transition-delay: calc(.18s + var(--d) * .05s), calc(.18s + var(--d) * .05s), 0s, 0s; }
.mm-link:hover, .mm-link:focus-visible { background: #fff; border-color: #FF7A00; outline: none; }
.mm-link.is-active { background: #fff; border-color: #FF7A00; }
.mm-link.is-active .mm-label { color: #E05D00; }
.mm-ic { flex-shrink: 0; width: 2.9rem; height: 2.9rem; border-radius: .95rem; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem; }
.mm-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mm-label { font-family: 'Lexend', sans-serif; font-weight: 800; font-size: 1.2rem; line-height: 1.2; }
.mm-sub { font-size: .85rem; font-weight: 600; color: #475569; margin-top: .15rem; }
.mm-arrow { color: #E05D00; font-size: .95rem; transition: transform .25s; }
.mm-link:hover .mm-arrow { transform: translateX(4px); }
.mm-foot {
  position: relative; margin-top: auto; background: #fff; padding: 2.25rem 1rem 1.5rem; display: grid; gap: .7rem;
}
.mm-foot::before { /* vague au-dessus du pied du menu */
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 22px; margin-bottom: -1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath fill='%23FFFFFF' d='M0 40H1200V24C1100 0 1000 0 900 18S700 40 600 22 400 0 300 18 100 40 0 24Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}
.mm-call, .mm-mail {
  display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 52px; border-radius: 9999px;
  font-family: 'Lexend', sans-serif; font-weight: 800; font-size: 1.05rem;
}
.mm-call { background: #FF7A00; color: #fff; box-shadow: 0 10px 20px -10px rgba(255,122,0,.8); }
.mm-call span { font-weight: 600; font-size: .85rem; opacity: .9; }
.mm-mail { background: #fff; color: #0f172a; border: 2px solid #0f172a; }
body.mm-lock { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .mm, .mm-link, .burger span { transition: none !important; } }
#mobile-menu a.mm-link, #mobile-menu a.mm-link.is-active { text-decoration: none; }

/* ---------- Widget d'accessibilité (œil) aux couleurs de la Ferme ---------- */
.a11y-widget {
  --a11y-accent: #C2410C;      /* orange foncé, contraste 5,2:1 sur blanc */
  --a11y-focus: #7C3AED;
  --a11y-trigger-bg: #0f172a;
  --a11y-trigger-fg: #FFDE00;
  font-family: 'Inter', system-ui, sans-serif;
}
.a11y-trigger { border-color: #FFDE00; }
/* Les deux boutons flottants disparaissent quand le menu mobile est ouvert */
body.mm-lock .a11y-trigger, body.mm-lock .call-fab { opacity: 0; pointer-events: none; }

/* ---------- Bouton téléphone fixe (mobile) ---------- */
.call-fab {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 80;
  width: 60px; height: 60px; border-radius: 9999px; display: none; align-items: center; justify-content: center;
  background: #FF7A00; color: #fff; font-size: 1.5rem; border: 3px solid #fff;
  box-shadow: 0 12px 26px -8px rgba(224, 93, 0, .7);
  transition: transform .25s, opacity .25s;
}
.call-fab::before { /* halo qui pulse doucement */
  content: ""; position: absolute; inset: -3px; border-radius: inherit; border: 3px solid #FF7A00; animation: call-pulse 2.4s ease-out infinite;
}
.call-fab:active { transform: scale(.92); }
.call-fab:focus-visible { outline: 3px solid #7C3AED; outline-offset: 4px; }
@keyframes call-pulse { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(1.55); opacity: 0; } }
@media (max-width: 767px) { .call-fab { display: inline-flex; } }
@media (prefers-reduced-motion: reduce) { .call-fab::before { animation: none; } }

/* ---------- Mode sombre à contraste élevé (option du widget) adapté au site ---------- */
body.a11y-contrast { background: #0a0a0a; color: #fff; }
body.a11y-contrast :is(.sec-white, .sec-yellow, .page-hero, .site-header, footer, .teaser, .price-card, .offer, .features-lg .feature,
  .mm, .mm-link, .mm-foot, .mosaic-cell, .bg-white, .bg-poussin-100, .bg-poussin-300, .bg-poussin-400, .bg-poussin-500, .bg-slate-800, .bg-sorore-warmBg, .feature-ic, .hero-chip) {
  background: #0a0a0a !important; color: #fff !important; border-color: rgba(255, 255, 255, .55) !important; box-shadow: none !important;
}
body.a11y-contrast [class*="text-slate-"], body.a11y-contrast .teaser-price span, body.a11y-contrast .offer-price span, body.a11y-contrast .hero-chip span,
body.a11y-contrast .mm-sub, body.a11y-contrast .mm-tag, body.a11y-contrast .offer-label, body.a11y-contrast .offer-note { color: #fff !important; }
body.a11y-contrast :is(.text-vibrantOrange-600, .text-vibrantOrange-400, .text-poussin-400, .teaser-more, .breadcrumb a, .is-active, .mm-link.is-active .mm-label, .offer-label i, .offer-note i, .mm-arrow) { color: #ffd23f !important; }
body.a11y-contrast .site-header::after, body.a11y-contrast .mm-foot::before { display: none; }
body.a11y-contrast .site-header { border-bottom: 2px solid #fff; }
body.a11y-contrast .gallery-btn, body.a11y-contrast .mm-call, body.a11y-contrast .call-fab, body.a11y-contrast header a.bg-vibrantOrange-500, body.a11y-contrast footer a.bg-vibrantOrange-500 { background: #ffd23f !important; color: #000 !important; border-color: #ffd23f !important; }
body.a11y-contrast .more-btn, body.a11y-contrast .mm-mail, body.a11y-contrast footer a.bg-poussin-500 { background: #000 !important; color: #fff !important; border: 2px solid #fff !important; }
body.a11y-contrast .burger { background: #ffd23f; }
body.a11y-contrast .burger span { background: #000; }
body.a11y-contrast [class*="-rotate-2"], body.a11y-contrast .rotate-2 { background: #333 !important; }
/* Texte agrandi (widget) : le logo du menu garde une taille fixe sur mobile pour ne pas déborder */
@media (max-width: 639px) {
  body:is(.a11y-text-lg, .a11y-text-xl) .site-header .font-heading { font-size: 19px; }
  body:is(.a11y-text-lg, .a11y-text-xl) .site-header .italic { font-size: 12px; }
  body:is(.a11y-text-lg, .a11y-text-xl) .site-header svg { height: 30px; }
}
body:is(.a11y-text-lg, .a11y-text-xl) .site-header > div { height: auto; min-height: 5rem; }
body.a11y-contrast .breadcrumb, body.a11y-contrast .breadcrumb span { color: #fff !important; }
body.a11y-contrast .site-header a, body.a11y-contrast .mm a, body.a11y-contrast .teaser, body.a11y-contrast .gallery-btn, body.a11y-contrast .more-btn { text-decoration: none !important; }

/* ---------- Plan d'accès ---------- */
.venir-addr { display: flex; gap: 1rem; align-items: flex-start; font-size: 1.15rem; line-height: 1.6; color: #1e293b; }
.map-frame { border-radius: 1.75rem; overflow: hidden; border: 4px solid #FFDE00; box-shadow: 0 18px 40px -18px rgba(224,93,0,.5); background: #FFF9C4; aspect-ratio: 4 / 3; }
.map-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 639px) { .map-frame { aspect-ratio: 1 / 1; } }
.btn-pair.justify-start { justify-content: flex-start; }
body.a11y-contrast .venir-addr { color: #fff; }
