/* =========================================================================
   Le gîte du Cornet — feuille de style unique.
   Conçue à partir des photos du gîte : bois chaud, mur terracotta du salon,
   vert du label Accueil Vélo. Mobile d'abord, sans framework.
   ========================================================================= */

:root {
  /* Couleurs */
  --creme:        #faf6f0;
  --creme-fonce:  #f1e9df;
  --blanc:        #fffdfa;
  --encre:        #241d17;
  --encre-douce:  #5b4f45;
  --bois:         #a9703f;
  /* Terracotta repris du mur du salon, assombri juste ce qu'il faut pour que
     le texte blanc dessus atteigne le rapport de contraste 4,5:1 exigé par
     les règles d'accessibilité — boutons comme jours occupés du calendrier. */
  --terracotta:   #b35636;
  --terracotta-fonce: #96442a;
  --vert:         #2f6b4f;
  --vert-fonce:   #24523d;
  --bordure:      #e3d7c8;

  /* Typographie */
  --police-titre: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --police-texte: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Rythme */
  --large:   78rem;
  --etroit:  42rem;
  --marge:   clamp(1.15rem, 4vw, 2.5rem);
  --section: clamp(3.25rem, 8vw, 6rem);
  --rayon:   14px;
  --rayon-s: 9px;

  --ombre:      0 1px 2px rgb(36 29 23 / .06), 0 8px 24px -12px rgb(36 29 23 / .18);
  --ombre-forte:0 2px 6px rgb(36 29 23 / .1), 0 24px 48px -24px rgb(36 29 23 / .35);
}

/* ---- Base ------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font-family: var(--police-texte);
  font-size: clamp(1rem, .97rem + .18vw, 1.08rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--police-titre);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.5rem + 3vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.5vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--vert-fonce); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--terracotta-fonce); }

img, picture, svg { max-width: 100%; }
img { height: auto; display: block; }

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 3px;
}

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

.lien-evitement {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -140%);
  z-index: 200; background: var(--encre); color: var(--creme);
  padding: .7rem 1.2rem; border-radius: 0 0 var(--rayon-s) var(--rayon-s);
  text-decoration: none; transition: transform .18s ease;
}
.lien-evitement:focus { transform: translate(-50%, 0); color: var(--creme); }

/* ---- Structure --------------------------------------------------------- */

.conteneur {
  width: min(100% - 2 * var(--marge), var(--large));
  margin-inline: auto;
}
.conteneur-etroit { width: min(100% - 2 * var(--marge), var(--etroit)); }

main > section { padding-block: var(--section); }
main > section:first-child { padding-top: 0; }

.titre-section {
  position: relative;
  margin-bottom: 1.6rem;
  padding-bottom: .55rem;
}
.titre-section::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 3.2rem; height: 3px; border-radius: 3px;
  background: var(--terracotta);
}

.chapeau {
  font-size: 1.12em;
  color: var(--encre-douce);
  max-width: 46ch;
}

/* ---- Boutons ----------------------------------------------------------- */

.bouton {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em;
  padding: .72em 1.5em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit; font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, transform .16s ease, border-color .16s ease;
}
.bouton:active { transform: translateY(1px); }
.bouton-grand { padding: .85em 1.9em; font-size: 1.03em; }

.bouton-plein {
  background: var(--terracotta); color: var(--blanc); border-color: var(--terracotta);
}
.bouton-plein:hover { background: var(--terracotta-fonce); border-color: var(--terracotta-fonce); color: var(--blanc); }

.bouton-clair {
  background: rgb(255 253 250 / .92); color: var(--encre); border-color: rgb(255 253 250 / .92);
}
.bouton-clair:hover { background: var(--blanc); color: var(--encre); }

.bouton-contour {
  background: transparent; color: var(--vert-fonce); border-color: var(--bordure);
}
.bouton-contour:hover { background: var(--creme-fonce); color: var(--vert-fonce); }

.lien-fleche { font-weight: 600; text-decoration: none; }
.lien-fleche::after { content: " →"; }
.lien-fleche:hover { text-decoration: underline; }

/* ---- En-tête ----------------------------------------------------------- */

.entete {
  position: sticky; top: 0; z-index: 100;
  background: rgb(250 246 240 / .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bordure);
}
.entete-corps {
  display: flex; align-items: center; gap: 1rem;
  min-height: 4.25rem;
}

.marque {
  display: flex; align-items: center;
  margin-right: auto;
  padding: .35rem 0;
  text-decoration: none;
}
/* Le logo est large (rapport 2,9) : on le dimensionne par la largeur pour que
   la barre reste basse, et le sous-titre du logo reste lisible sur ordinateur. */
.marque img {
  width: 172px; height: auto;
  transition: opacity .16s ease;
}
.marque:hover img { opacity: .82; }

@media (min-width: 40rem) {
  .marque img { width: 220px; }
}

.bascule-nav {
  display: grid; place-items: center;
  width: 2.75rem; height: 2.75rem;
  background: none; border: 1px solid var(--bordure); border-radius: 10px;
  cursor: pointer; color: var(--encre);
}
.barres { display: grid; gap: 4px; }
.barres i { display: block; width: 19px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.bascule-nav[aria-expanded="true"] .barres i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.bascule-nav[aria-expanded="true"] .barres i:nth-child(2) { opacity: 0; }
.bascule-nav[aria-expanded="true"] .barres i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.navigation ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: .35rem;
}
.navigation a {
  display: block; padding: .5rem .8rem;
  border-radius: 999px;
  color: var(--encre); text-decoration: none; font-weight: 500;
}
.navigation a:hover { background: var(--creme-fonce); }
.navigation a[aria-current="page"] { color: var(--vert-fonce); font-weight: 700; }
.nav-langue a {
  border: 1px solid var(--bordure);
  font-size: .88rem; padding-inline: .75rem;
}

/* Le bouton « Réserver » est un lien dans la navigation : sans ces deux règles,
   la couleur de texte des liens du menu l'emporterait sur celle du bouton et le
   libellé sortirait en brun foncé sur fond terracotta, presque illisible. */
.navigation .bouton-plein {
  color: var(--blanc);
  border-color: var(--terracotta);
}
.navigation .bouton-plein:hover {
  background: var(--terracotta-fonce);
  border-color: var(--terracotta-fonce);
  color: var(--blanc);
}

/* Navigation repliée sur petit écran */
@media (max-width: 60rem) {
  .navigation {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--creme);
    border-bottom: 1px solid var(--bordure);
    box-shadow: var(--ombre);
    display: none;
  }
  .navigation.ouverte { display: block; }
  .navigation ul {
    flex-direction: column; align-items: stretch;
    gap: .15rem;
    padding: .75rem var(--marge) 1.25rem;
  }
  .navigation a { padding: .7rem .8rem; border-radius: var(--rayon-s); }
  .nav-action { margin-top: .5rem; }
  .nav-action a { justify-content: center; }
}

@media (min-width: 60.001rem) {
  .bascule-nav { display: none; }
}

/* Sans JavaScript, le menu reste accessible en permanence. */
.sans-js .bascule-nav { display: none; }
.sans-js .navigation { display: block; position: static; box-shadow: none; border: 0; background: none; }
.sans-js .navigation ul { flex-direction: row; flex-wrap: wrap; padding: 0; }

/* ---- Bandeau d'accueil ------------------------------------------------- */

.bandeau {
  position: relative;
  display: grid;
  min-height: min(78vh, 40rem);
  isolation: isolate;
  padding-block: clamp(3rem, 10vw, 6rem) !important;
  place-items: center;
  text-align: center;
  color: var(--blanc);
}
.bandeau-image { position: absolute; inset: 0; z-index: -2; }
.bandeau-image img { width: 100%; height: 100%; object-fit: cover; }
.bandeau::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(36 29 23 / .5) 0%, rgb(36 29 23 / .35) 45%, rgb(36 29 23 / .68) 100%);
}

.bandeau-sur-titre {
  text-transform: uppercase; letter-spacing: .18em;
  font-size: .8rem; font-weight: 600;
  margin-bottom: .9rem;
  color: rgb(255 253 250 / .88);
}
.bandeau h1 { color: var(--blanc); margin-bottom: .35em; text-shadow: 0 2px 24px rgb(36 29 23 / .45); }
.bandeau-accroche {
  font-size: clamp(1.05rem, 1rem + .5vw, 1.35rem);
  max-width: 34ch; margin-inline: auto;
  color: rgb(255 253 250 / .95);
}
.bandeau-actions {
  display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center;
  margin-top: 2rem; margin-bottom: 0;
}

/* ---- Atouts ------------------------------------------------------------ */

.atouts { background: var(--blanc); border-bottom: 1px solid var(--bordure); }
.atouts-grille {
  display: grid; gap: clamp(1.5rem, 4vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.atout { text-align: center; }
.atout-icone {
  display: grid; place-items: center;
  width: 3rem; height: 3rem; margin: 0 auto .85rem;
  border-radius: 50%;
  background: var(--creme-fonce); color: var(--vert);
}
.atout-icone svg { width: 1.6rem; height: 1.6rem; }
.atout h2 { font-size: 1.2rem; margin-bottom: .3em; }
.atout p { color: var(--encre-douce); font-size: .96em; }

/* ---- Présentation ------------------------------------------------------ */

.presentation-corps {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 52rem) {
  .presentation-corps { grid-template-columns: minmax(0, 1fr) auto; }
}

.regles {
  list-style: none; margin: 1.6rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.regles li {
  padding: .35em .9em;
  border: 1px solid var(--bordure); border-radius: 999px;
  background: var(--blanc);
  font-size: .88rem; color: var(--encre-douce);
}

.presentation-labels {
  display: flex; gap: 1rem; flex-wrap: wrap;
  align-items: center;
}
.presentation-labels img { width: 4.5rem; height: auto; border-radius: 10px; }

/* ---- Galerie ----------------------------------------------------------- */

.galerie-section { background: var(--blanc); }
.galerie {
  list-style: none; margin: 0; padding: 0;
  width: min(100% - 2 * var(--marge), var(--large));
  margin-inline: auto;
  display: grid; gap: .85rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.galerie-vue { margin: 0; }
.galerie-declencheur {
  display: block; position: relative;
  width: 100%; padding: 0;
  border: 0; border-radius: var(--rayon);
  overflow: hidden; cursor: zoom-in;
  background: var(--creme-fonce);
  box-shadow: var(--ombre);
}
.galerie-declencheur img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .4s ease;
}
.galerie-declencheur:hover img { transform: scale(1.045); }
.galerie-legende {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.6rem .9rem .7rem;
  background: linear-gradient(180deg, transparent, rgb(36 29 23 / .78));
  color: var(--blanc); font-size: .9rem; font-weight: 500;
  text-align: left;
}

/* Visionneuse plein écran.
   Le sélecteur porte sur [open] : sans cela, la mise en page ci-dessous
   écraserait le « display: none » que le navigateur applique à un dialogue
   fermé, et ses boutons resteraient visibles par-dessus la page. */
.visionneuse {
  max-width: none; max-height: none;
  width: 100%; height: 100%;
  padding: 0; border: 0;
  background: transparent;
  overflow: hidden;
}
.visionneuse[open] {
  position: fixed; inset: 0; z-index: 300;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .5rem;
  padding: clamp(.75rem, 3vw, 2rem);
  background: rgb(28 22 18 / .94);
}
.visionneuse::backdrop { background: rgb(28 22 18 / .94); }

.visionneuse figure {
  grid-column: 2;
  margin: 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: .9rem;
}
.visionneuse img {
  max-width: 100%; max-height: 76vh;
  width: auto; height: auto;
  border-radius: var(--rayon-s);
  box-shadow: var(--ombre-forte);
  background: rgb(255 253 250 / .06);
}
.visionneuse figcaption {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: center; gap: .3rem .8rem;
  color: var(--creme); font-size: .95rem;
  text-align: center;
}
.visionneuse-compteur {
  color: rgb(250 246 240 / .6);
  font-variant-numeric: tabular-nums; font-size: .88em;
}

/* Boutons de la visionneuse */
.visionneuse button {
  display: grid; place-items: center;
  background: rgb(255 253 250 / .13);
  color: var(--creme);
  border: 0; border-radius: 50%;
  cursor: pointer;
  transition: background-color .16s ease, opacity .16s ease;
}
.visionneuse button:hover:not(:disabled) { background: rgb(255 253 250 / .3); }
.visionneuse button:disabled { opacity: .25; cursor: default; }

.visionneuse-fermer {
  position: absolute; top: .75rem; right: .75rem;
  width: 2.85rem; height: 2.85rem;
  font-size: 1.6rem; line-height: 1;
  z-index: 2;
}
.visionneuse-nav {
  width: 3.1rem; height: 3.1rem;
  flex: none;
}
.visionneuse-nav svg { width: 1.5rem; height: 1.5rem; }
.visionneuse-prec { grid-column: 1; }
.visionneuse-suiv { grid-column: 3; }

/* Sur téléphone, les flèches passent sous la photo pour lui laisser la largeur. */
@media (max-width: 38rem) {
  .visionneuse[open] {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    justify-items: center;
  }
  .visionneuse figure { grid-column: 1; grid-row: 1; }
  .visionneuse img { max-height: 66vh; }
  .visionneuse-prec, .visionneuse-suiv { grid-column: 1; grid-row: 2; }
  .visionneuse-prec { justify-self: start; }
  .visionneuse-suiv { justify-self: end; }
}

/* ---- Équipements ------------------------------------------------------- */

.equipements-grille {
  display: grid; gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}
.equipement {
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 1.4rem 1.35rem;
}
.equipement h3 {
  color: var(--vert-fonce);
  margin-bottom: .7em;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--bordure);
}
.equipement ul { list-style: none; margin: 0; padding: 0; }
.equipement li {
  position: relative;
  padding-left: 1.45rem;
  margin-bottom: .4rem;
  color: var(--encre-douce);
}
.equipement li::before {
  content: ""; position: absolute; left: .25rem; top: .62em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--bois);
}

/* ---- Tarifs ------------------------------------------------------------ */

.tarifs-section { background: var(--blanc); }

.tableau-defilant { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.tarifs {
  width: 100%; min-width: 26rem;
  border-collapse: collapse;
  background: var(--creme);
  border-radius: var(--rayon);
  overflow: hidden;
}
.tarifs th, .tarifs td {
  padding: .9rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--bordure);
}
.tarifs thead th {
  background: var(--vert); color: var(--creme);
  font-size: .9rem; letter-spacing: .03em; font-weight: 600;
  border-bottom: 0;
}
.tarifs tbody th { font-weight: 600; }
.tarifs tbody tr:last-child th,
.tarifs tbody tr:last-child td { border-bottom: 0; }
.tarifs td { white-space: nowrap; }
.prix { font-family: var(--police-titre); font-size: 1.3em; font-weight: 600; color: var(--terracotta-fonce); }

.tarifs-note { margin-top: 1rem; color: var(--encre-douce); font-size: .93em; }
.tarifs-action { margin-top: 1.6rem; }

/* ---- Situation --------------------------------------------------------- */

.situation-corps {
  display: grid; gap: clamp(1.75rem, 5vw, 3rem);
  align-items: center;
}
@media (min-width: 52rem) {
  .situation-corps { grid-template-columns: 1fr 1fr; }
}
.situation-image img {
  width: 100%; border-radius: var(--rayon);
  box-shadow: var(--ombre);
}

/* ---- Carte et localisation --------------------------------------------- */

.carte-section { background: var(--blanc); }

.carte-corps {
  display: grid; gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}
@media (min-width: 52rem) {
  .carte-corps { grid-template-columns: 1.55fr 1fr; }
}

.carte-cadre {
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  overflow: hidden;
  background: var(--creme-fonce);
  box-shadow: var(--ombre);
}
.carte-cadre iframe {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
}
@media (min-width: 52rem) {
  .carte-cadre iframe { aspect-ratio: 3 / 2; }
}

.carte-adresse {
  font-size: 1.08em;
  line-height: 1.7;
}
.carte-adresse strong { font-family: var(--police-titre); font-size: 1.15em; }

.carte-actions {
  display: flex; flex-wrap: wrap; gap: .65rem;
  margin-top: 1.4rem;
}
.carte-mention {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--bordure);
  color: var(--encre-douce); font-size: .93em;
}

/* ---- En-tête de page intérieure --------------------------------------- */

.entete-page {
  background: var(--blanc);
  border-bottom: 1px solid var(--bordure);
  padding-block: clamp(2.5rem, 6vw, 4rem) !important;
}
.entete-page-centree { text-align: center; }
.code-erreur {
  font-family: var(--police-titre);
  font-size: clamp(4rem, 14vw, 8rem);
  line-height: 1; color: var(--bordure); margin: 0;
}

/* ---- Calendrier -------------------------------------------------------- */

.legende-calendrier {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1.1rem;
  margin-top: 1.25rem; margin-bottom: 0;
  font-size: .92rem; color: var(--encre-douce);
}
.pastille {
  display: inline-block; width: .95rem; height: .95rem;
  border-radius: 4px; vertical-align: -.15em; margin-right: .15rem;
}
.pastille-libre  { background: var(--blanc); border: 1px solid var(--bordure); }
.pastille-occupe { background: var(--terracotta); }

.calendrier {
  display: grid; gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.mois {
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 1.1rem 1rem 1.2rem;
}
.mois-titre {
  font-size: 1.05rem; text-align: center;
  margin-bottom: .75rem; color: var(--vert-fonce);
}
.mois-titre span { color: var(--encre-douce); font-weight: 400; }

.mois-grille { width: 100%; border-collapse: collapse; table-layout: fixed; }
.mois-grille th {
  padding-bottom: .45rem;
  font-size: .72rem; font-weight: 600;
  color: var(--encre-douce); text-transform: uppercase; letter-spacing: .06em;
}
.mois-grille th abbr { text-decoration: none; border: 0; }
.mois-grille td { padding: 1.5px; }

.jour {
  text-align: center;
}
.jour .jour-num {
  display: grid; place-items: center;
  aspect-ratio: 1; width: 100%;
  border-radius: 7px;
  font-size: .85rem; font-variant-numeric: tabular-nums;
  background: var(--creme);
  color: var(--encre);
}
.jour.occupe .jour-num { background: var(--terracotta); color: var(--blanc); font-weight: 600; }
.jour.passe .jour-num { opacity: .38; }
.jour.aujourdhui .jour-num { box-shadow: inset 0 0 0 2px var(--vert); font-weight: 700; }

.sejours { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.sejours li {
  background: var(--blanc); border: 1px solid var(--bordure);
  border-left: 4px solid var(--terracotta);
  border-radius: var(--rayon-s);
  padding: .75rem 1rem;
}
.sejour-dates { font-weight: 500; }

.appel-section { background: var(--vert); color: var(--creme); }
.appel-corps { text-align: center; }
.appel-corps h2 { color: var(--creme); }
.appel-corps p { color: rgb(250 246 240 / .88); }
.appel-corps .bouton-plein { background: var(--creme); color: var(--vert-fonce); border-color: var(--creme); }
.appel-corps .bouton-plein:hover { background: var(--blanc); color: var(--vert-fonce); border-color: var(--blanc); }

/* ---- Formulaire -------------------------------------------------------- */

.formulaire {
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: clamp(1.35rem, 4vw, 2.25rem);
}

.champ { margin-bottom: 1.15rem; }
.champ label {
  display: block; margin-bottom: .4rem;
  font-weight: 600; font-size: .93rem;
}
.requis { color: var(--terracotta); }
.facultatif {
  font-weight: 400; font-size: .85em; color: var(--encre-douce);
}
.facultatif::before { content: "— "; }

.champ input, .champ select, .champ textarea {
  width: 100%;
  padding: .72rem .85rem;
  font: inherit; color: inherit;
  background: var(--creme);
  border: 1.5px solid var(--bordure);
  border-radius: var(--rayon-s);
  transition: border-color .15s ease, background-color .15s ease;
}
.champ textarea { resize: vertical; min-height: 8rem; }
.champ input:focus, .champ select:focus, .champ textarea:focus {
  background: var(--blanc);
  border-color: var(--vert);
}
.champ-erreur input, .champ-erreur select, .champ-erreur textarea { border-color: var(--terracotta); }

.message-erreur {
  margin: .4rem 0 0;
  color: var(--terracotta-fonce); font-size: .88rem; font-weight: 500;
}

.champs-ligne {
  display: grid; gap: 0 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 34rem) {
  .champs-ligne { grid-template-columns: 1fr 1fr auto; }
  .champ-court { min-width: 6rem; }
}

.leurre { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.formulaire-actions { margin: 1.5rem 0 0; }
.formulaire-actions .bouton { width: 100%; }
@media (min-width: 34rem) { .formulaire-actions .bouton { width: auto; } }

.formulaire-mention {
  margin: 1.25rem 0 0;
  font-size: .85rem; color: var(--encre-douce);
}

.contact-direct { margin-top: 1.5rem; text-align: center; color: var(--encre-douce); }

.contact-telephone,
.contact-adresse {
  margin-top: 2rem;
  padding: 1.35rem 1.5rem;
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
}
.contact-telephone h2,
.contact-adresse h2 { font-size: 1.2rem; margin-bottom: .4em; }
.contact-adresse .carte-actions { margin-top: 1.1rem; }

.contact-telephone { border-left: 4px solid var(--vert); }
.contact-telephone p { margin-bottom: .3em; color: var(--encre-douce); }
.numero {
  display: inline-block;
  font-family: var(--police-titre);
  font-size: clamp(1.5rem, 1.3rem + 1vw, 1.95rem);
  font-weight: 600;
  color: var(--vert-fonce);
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
}
.numero:hover { color: var(--terracotta-fonce); text-decoration: underline; }

.pied-precision { color: rgb(250 246 240 / .55); font-size: .85em; }

.alerte {
  padding: 1rem 1.15rem;
  border-radius: var(--rayon-s);
  margin-bottom: 1.5rem;
  border-left: 4px solid;
}
.alerte-succes { background: #edf6f0; border-color: var(--vert); color: var(--vert-fonce); }
.alerte-erreur { background: #fbeee9; border-color: var(--terracotta); color: var(--terracotta-fonce); }

/* ---- Liens utiles ------------------------------------------------------ */

.liens { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.lien-carte a {
  display: flex; align-items: center; gap: 1.15rem;
  padding: 1.1rem 1.25rem;
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  text-decoration: none; color: inherit;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.lien-carte a:hover {
  border-color: var(--vert);
  transform: translateY(-2px);
  box-shadow: var(--ombre);
}
.lien-carte img { width: 3.5rem; height: 3.5rem; flex: none; border-radius: 10px; object-fit: contain; }
.lien-corps { display: flex; flex-direction: column; gap: .12rem; }
.lien-titre { font-family: var(--police-titre); font-size: 1.2rem; font-weight: 600; }
.lien-texte { color: var(--encre-douce); font-size: .95rem; }
.lien-hote { color: var(--vert); font-size: .82rem; letter-spacing: .02em; }

/* ---- Pied de page ------------------------------------------------------ */

.pied {
  background: var(--encre); color: var(--creme-fonce);
  padding-top: clamp(2.5rem, 6vw, 3.5rem);
}
.pied-corps {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  padding-bottom: 2rem;
}
.pied a { color: var(--creme); }
.pied a:hover { color: var(--blanc); }
.pied-nom { font-family: var(--police-titre); font-size: 1.3rem; color: var(--blanc); margin-bottom: .3em; }
.pied-bloc p { margin-bottom: .3em; font-size: .95rem; }
.pied-bloc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.pied-bloc ul a { text-decoration: none; font-size: .95rem; }
.pied-bloc ul a:hover { text-decoration: underline; }
.pied-labels { display: flex; gap: .85rem; align-items: flex-start; }
.pied-labels img { width: 3.25rem; height: auto; border-radius: 8px; }

.pied-mention {
  margin: 0;
  padding: 1.1rem var(--marge);
  border-top: 1px solid rgb(250 246 240 / .12);
  text-align: center; font-size: .85rem;
  color: rgb(250 246 240 / .6);
}

/* ---- Impression -------------------------------------------------------- */

@media print {
  .entete, .pied, .bandeau-actions, .appel-section, .bouton { display: none !important; }
  body { background: #fff; }
  .mois { break-inside: avoid; }
}
