/* Site vitrine — aucune police ni ressource externe. La couleur d'accent vient de site.json (--accent). */
:root {
  --accent: #1f6f78;
  --texte: #1d2327;
  --doux: #5b6670;
  --fond: #f7f5f1;
  --carte: #ffffff;
  --ligne: #e3dfd8;
  --rayon: 14px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--texte);
  background: var(--fond);
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
.conteneur { width: min(1100px, 92vw); margin: 0 auto; }

/* En-tête */
.entete { background: var(--carte); border-bottom: 1px solid var(--ligne); position: sticky; top: 0; z-index: 10; }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; }
.marque { font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--texte); }
.nav { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--doux); font-size: .95rem; }
.nav a:hover { color: var(--accent); }
.langue { border: 1px solid var(--ligne); border-radius: 999px; padding: .1rem .6rem; }

/* Accueil */
.hero { position: relative; color: #fff; background: #2a2f33; }
.hero img { width: 100%; height: min(62vh, 520px); object-fit: cover; opacity: .72; }
.hero .texte { position: absolute; inset: auto 0 2.2rem 0; }
.hero h1 { font-size: clamp(1.8rem, 4.5vw, 3rem); margin: 0 0 .3rem; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.hero p { font-size: 1.15rem; margin: 0; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.section { padding: 2.6rem 0; }
.section h2 { margin-top: 0; font-size: 1.6rem; }
.grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; }
.fiche { background: var(--carte); border-radius: var(--rayon); overflow: hidden; border: 1px solid var(--ligne); display: flex; flex-direction: column; }
.fiche img { aspect-ratio: 4 / 3; object-fit: cover; }
.fiche .corps { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.fiche h3 { margin: 0; font-size: 1.2rem; }
.meta { color: var(--doux); font-size: .92rem; }
.bouton { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; border: 0; border-radius: 999px; padding: .7rem 1.3rem; font-size: 1rem; font-weight: 600; cursor: pointer; text-align: center; }
.bouton:hover { filter: brightness(1.08); }
.bouton.secondaire { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.fiche .bouton { margin-top: auto; align-self: flex-start; }

/* Page logement */
.titre-logement { padding: 1.6rem 0 .6rem; }
.titre-logement h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.galerie { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 180px; gap: .5rem; border-radius: var(--rayon); overflow: hidden; }
.galerie img { width: 100%; height: 100%; object-fit: cover; }
.galerie img:first-child { grid-row: span 2; }
.galerie.une img:first-child { grid-column: 1 / -1; grid-row: span 2; }
.disposition { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2.2rem; padding: 1.8rem 0 3rem; align-items: start; }
.chiffres { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; color: var(--doux); margin: 0 0 1rem; padding: 0; list-style: none; }
.bloc { border-top: 1px solid var(--ligne); padding-top: 1.2rem; margin-top: 1.2rem; }
.bloc h2 { font-size: 1.25rem; margin: 0 0 .6rem; }
.liste-equipements { columns: 2; padding-left: 1.1rem; margin: 0; }
.avis { background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 1rem 1.2rem; margin: 0 0 .8rem; }
.avis footer { color: var(--doux); font-size: .9rem; margin-top: .4rem; }
.mention-enregistrement { color: var(--doux); font-size: .9rem; }

/* Encadré réservation */
.reservation { background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 1.3rem; position: sticky; top: 5rem; box-shadow: 0 8px 28px rgba(0,0,0,.06); }
.reservation h2 { margin: 0 0 .9rem; font-size: 1.2rem; }
.reservation label { display: block; font-size: .85rem; color: var(--doux); margin-bottom: .2rem; }
.reservation input, .reservation select { width: 100%; padding: .55rem .6rem; border: 1px solid var(--ligne); border-radius: 10px; font: inherit; background: #fff; }
.reservation .champs { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: 1rem; }
.reservation .champs .large { grid-column: 1 / -1; }
.reservation .bouton { width: 100%; }
.reservation .note { font-size: .82rem; color: var(--doux); margin: .7rem 0 0; }
.conditions { margin-top: 1rem; background: #fdf6ec; border: 1px solid #f0dcc0; border-radius: 10px; padding: .8rem 1rem; font-size: .9rem; }
.conditions h3 { margin: 0 0 .4rem; font-size: 1rem; }
.conditions ul { margin: 0; padding-left: 1.1rem; }
.conditions li { margin: .2rem 0; }
.conditions li:first-child { font-weight: 600; }
.conditions p { margin: .5rem 0 0; }

/* Jaune « Réserver » */
:root { --jaune: #ffd400; --jaune-fonce: #f2c200; }
.bouton.jaune, .onglet-jaune { background: var(--jaune); color: #1d2327 !important; font-weight: 700; }
.bouton.jaune:hover, .onglet-jaune:hover { background: var(--jaune-fonce); filter: none; }
.nav a.onglet-jaune { padding: .38rem .95rem; border-radius: 999px; text-decoration: none; }

/* Bandeau photos (diaporama sans script) */
.hero { position: relative; color: #fff; background: #2a2f33; height: min(70vh, 560px); overflow: hidden; }
.hero .diapo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .78; }
.hero.anime .diapo { opacity: 0; animation-name: fondu; animation-iteration-count: infinite; animation-timing-function: ease-in-out; }
@keyframes fondu { 0% { opacity: 0; transform: scale(1.04); } 4% { opacity: .78; } 18% { opacity: .78; } 23% { opacity: 0; transform: scale(1); } 100% { opacity: 0; } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.45)); }
.hero .texte { position: absolute; inset: auto 0 4.2rem 0; z-index: 1; }
.hero .sous-titre { font-size: 1.35rem; font-weight: 600; margin-bottom: .2rem; }
@media (prefers-reduced-motion: reduce) { .hero.anime .diapo { animation: none; opacity: 0; } .hero.anime .diapo:first-of-type { opacity: .78; } }

/* Cartes logements */
.fiche .type-logement { margin: 0; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--doux); font-weight: 600; }
.fiche h3 a { color: var(--texte); text-decoration: none; }
.fiche .adresse { margin: 0; color: var(--doux); font-size: .92rem; }
.fiche .meta { margin: 0; }
.fiche .prix { margin: .3rem 0 .4rem; font-size: 1rem; }
.fiche .prix strong { font-size: 1.35rem; }
.fiche .bouton.jaune { align-self: stretch; margin-top: auto; }
.fiche .lien-detail { font-size: .9rem; text-align: center; }
.fiche .lien-residence { font-size: .82rem; text-align: center; color: var(--doux); }
.presentation p { max-width: 820px; }

/* Barre de recherche */
.bloc-recherche { background: var(--carte); border: 1px solid var(--ligne); border-radius: var(--rayon); padding: 1.3rem 1.4rem 1.4rem; margin-top: -2.2rem; position: relative; z-index: 2; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.bloc-recherche.premier { margin-top: 2rem; }
.bloc-recherche h1, .bloc-recherche h2 { margin: 0 0 .2rem; font-size: 1.4rem; }
.bloc-recherche .aide { margin: 0 0 1rem; color: var(--doux); font-size: .95rem; }
.recherche { display: grid; grid-template-columns: 1.3fr 1.3fr 1fr 1fr auto; gap: .8rem; align-items: end; }
.recherche label { display: block; font-size: .85rem; color: var(--doux); margin-bottom: .2rem; }
.recherche input, .recherche select { width: 100%; height: 2.7rem; padding: 0 .6rem; border: 1px solid var(--ligne); border-radius: 10px; font: inherit; background: #fff; }
.recherche .bouton { padding: .68rem 1.6rem; }

/* Choix de la langue */
.langues { position: relative; }
.langues summary { list-style: none; cursor: pointer; border: 1px solid var(--ligne); border-radius: 999px; padding: .1rem .7rem; color: var(--doux); font-size: .9rem; }
.langues summary::-webkit-details-marker { display: none; }
.menu-langues { position: absolute; right: 0; top: calc(100% + .4rem); background: var(--carte); border: 1px solid var(--ligne); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.1); display: flex; flex-direction: column; min-width: 9rem; padding: .3rem 0; z-index: 20; }
.menu-langues a { padding: .4rem .9rem; color: var(--texte); text-decoration: none; }
.menu-langues a:hover { background: var(--fond); }
.avert-langue { background: #fdf6ec; border: 1px solid #f0dcc0; border-radius: 10px; padding: .6rem .9rem; font-size: .92rem; }

/* Pied de page */
.pied { background: #22282c; color: #cfd6db; padding: 2rem 0; font-size: .92rem; }
.pied a { color: #fff; }
.pied .conteneur { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.texte-legal { padding: 2rem 0 3rem; max-width: 760px; }
.texte-legal h2 { font-size: 1.2rem; margin-top: 1.6rem; }

/* Mobile */
@media (max-width: 860px) {
  .disposition { grid-template-columns: 1fr; }
  .reservation { position: static; }
  .galerie { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
  .galerie img:first-child { grid-column: 1 / -1; }
  .liste-equipements { columns: 1; }
  .recherche { grid-template-columns: 1fr 1fr; }
  .recherche .bouton { grid-column: 1 / -1; }
  .bloc-recherche { margin-top: 1.2rem; }
  .barre-mobile { display: block; }
}
@media (max-width: 600px) {
  .entete { position: static; }
  .entete .conteneur { padding: .6rem 0; }
  .marque { font-size: 1rem; }
  .nav { gap: .7rem; }
  .nav a { font-size: .85rem; }
}
.barre-mobile { display: none; position: sticky; bottom: 0; background: var(--carte); border-top: 1px solid var(--ligne); padding: .7rem 4vw; z-index: 10; }
.barre-mobile .bouton { width: 100%; }

/* Pastille « Animaux acceptés » */
.photo-fiche, .galerie-cadre { position: relative; display: block; }
.pastille-animaux { position: absolute; top: .7rem; left: .7rem; z-index: 2; display: inline-flex; align-items: center; gap: .35rem; background: var(--jaune); color: #1d2327; font-size: .82rem; font-weight: 700; padding: .3rem .75rem; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.pastille-animaux .patte { flex: none; }

/* Logement d'exception hors Finistère (Disneyland) : violet, bien distinct du jaune */
:root { --violet: #5b2a86; --violet-fonce: #4a2170; --violet-clair: #f1eaf8; }
.pastille-exception { position: absolute; top: .7rem; left: .7rem; z-index: 2; display: inline-flex; align-items: center; gap: .35rem; background: var(--violet); color: #fff; font-size: .85rem; font-weight: 700; padding: .38rem .85rem; border-radius: 999px; box-shadow: 0 2px 10px rgba(0,0,0,.28); letter-spacing: .01em; }
.pastille-animaux + .pastille-exception { top: 2.9rem; }
.pastille-exception .etoile { flex: none; color: #ffd400; }
.bouton.exception { background: var(--violet); color: #fff !important; font-weight: 700; }
.bouton.exception:hover { background: var(--violet-fonce); filter: none; }
.fiche .bouton.exception { align-self: stretch; margin-top: auto; }
.message-exception { margin: .2rem 0; padding: .55rem .75rem; background: var(--violet-clair); border-left: 4px solid var(--violet); border-radius: 8px; color: #3b1c58; font-size: .9rem; line-height: 1.4; }
.bandeau-exception { margin: 0 0 1rem; padding: .85rem 1.1rem; background: var(--violet-clair); border-left: 5px solid var(--violet); border-radius: 10px; color: #3b1c58; font-weight: 600; }
.reservation.exception { border: 2px solid var(--violet); }

/* Variante verte (ex. Martinique) */
:root { --vert: #1e7a46; --vert-fonce: #17633a; --vert-clair: #e8f5ec; }
.pastille-exception.vert { background: var(--vert); }
.bouton.exception.vert { background: var(--vert); }
.bouton.exception.vert:hover { background: var(--vert-fonce); }
.message-exception.vert, .bandeau-exception.vert { background: var(--vert-clair); border-left-color: var(--vert); color: #14472a; }
.reservation.exception.vert { border-color: var(--vert); }

/* ===== Version 2 (ui-ux-pro-max, 01/12/2026) : filtres, résidences, galerie à glisser, 44 px, focus visible ===== */
a:focus-visible, button:focus-visible, summary:focus-visible, select:focus-visible, input:focus-visible, .galerie:focus-visible { outline: 3px solid #0b7285; outline-offset: 2px; }
.bouton { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.nav a, .langues summary { min-height: 44px; display: inline-flex; align-items: center; }
.nav a { padding: 0 .3rem; }
.nav a.onglet-jaune { padding: 0 1rem; }
.langues summary { padding: 0 .8rem; }
.menu-langues a { min-height: 44px; display: flex; align-items: center; }
.marque { white-space: nowrap; }

/* Filtres + réassurance */
.outils-liste { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1.2rem; margin: 0 0 1.2rem; }
.puces { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.puce { flex: none; min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 1px solid #cfc8bc; background: var(--carte); color: var(--texte); font: inherit; font-size: .95rem; cursor: pointer; }
.puce:hover { border-color: var(--accent); }
.puce[aria-pressed="true"] { background: var(--texte); color: #fff; border-color: var(--texte); }
.rassure { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .92rem; color: #3d474f; }
.rassure li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.aucun { color: var(--doux); }
.fiche[hidden] { display: none; }

/* Cartes : prix sur la photo, résidences regroupées */
.fiche img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.prix-photo { position: absolute; right: .7rem; bottom: .7rem; background: rgba(255,255,255,.95); color: #1d2327; border-radius: 999px; padding: .3rem .8rem; font-weight: 700; font-size: .95rem; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.fiche .type-logement { font-size: .85rem; }
.resume-residence { font-weight: 600; color: var(--texte) !important; }
.liens-residence { display: flex; flex-wrap: wrap; gap: .4rem; margin: .2rem 0 .6rem; }
.liens-residence a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 .8rem; border: 1px solid var(--ligne); border-radius: 10px; background: var(--fond); color: var(--texte); text-decoration: none; font-size: .92rem; }
.liens-residence a:hover { border-color: var(--accent); color: var(--accent); }
.fiche .bouton { align-self: stretch; margin-top: auto; }

/* Fiche logement : galerie à faire glisser */
.galerie-cadre { position: relative; }
.galerie { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .5rem; grid-template-columns: none; border-radius: var(--rayon); scrollbar-width: none; }
.galerie::-webkit-scrollbar { display: none; }
.galerie img, .galerie img:first-child, .galerie.une img:first-child { flex: 0 0 62%; height: min(52vh, 440px); width: auto; object-fit: cover; scroll-snap-align: start; border-radius: 0; grid-row: auto; grid-column: auto; }
.galerie.une img:first-child { flex-basis: 100%; }
.fleche { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #1d2327; font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.2); z-index: 2; }
.fleche.g { left: .7rem; } .fleche.d { right: .7rem; }
.compteur { position: absolute; right: .8rem; bottom: .8rem; background: rgba(0,0,0,.62); color: #fff; border-radius: 999px; padding: .2rem .7rem; font-size: .9rem; z-index: 2; }
.prix-resa { margin: -.4rem 0 .9rem; color: var(--doux); }
.prix-resa b { font-size: 1.45rem; color: var(--texte); }

/* Barre de réservation en bas (téléphone) */
.barre-mobile { padding: .6rem 4vw calc(.6rem + env(safe-area-inset-bottom)); }
.barre-mobile .barre-prix { flex: none; }
.barre-prix b { font-size: 1.15rem; white-space: nowrap; display: block; }
.barre-prix small { color: var(--doux); font-size: .82rem; }
@media (max-width: 860px) {
  .barre-mobile { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
  .barre-mobile .bouton { width: auto; flex: 1; max-width: 16rem; }
  .galerie img, .galerie img:first-child { flex-basis: 100%; height: min(56vw, 360px); }
}
@media (max-width: 600px) {
  .entete .conteneur { flex-wrap: wrap; gap: .2rem .6rem; }
  .nav { gap: .2rem; }
  .nav a.onglet-jaune { padding: 0 .8rem; }
  .outils-liste { margin-bottom: .9rem; }
  .rassure { font-size: .88rem; }
  .bloc-recherche .aide { display: none; }
}
@media (prefers-reduced-motion: reduce) { .galerie { scroll-behavior: auto; } }
@media (max-width: 600px) {
  .nav a[href$="logements.html"]:not(.onglet-jaune) { display: none; }
  .entete .conteneur { flex-wrap: nowrap; }
  .marque { font-size: .98rem; }
  .nav { flex-wrap: nowrap; }
  .nav a.onglet-jaune { font-size: .88rem; padding: 0 .7rem; }
  .nav a { font-size: .88rem; }
}
@media (max-width: 380px) { .nav a[href$="contact.html"] { display: none; } }
/* Adresse (nom de rue, sans numéro) sur les cartes et les fiches */
.fiche .adresse { margin: -.1rem 0 0; color: #3d474f; font-size: .92rem; }
.adresse-fiche a { min-height: 44px; display: inline-flex; align-items: center; }
