@font-face { font-family: Inter; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Caveat; src: url("fonts/caveat.ttf") format("truetype"); font-weight: 400 700; font-display: swap; }

:root {
  --papier: #f3ead8;
  --papier-2: #faf5ea;
  --encre: #2b3a2e;
  --encre-2: #5c6b5e;
  --mousse: #6b7f4e;
  --mousse-2: #9db07a;
  --eau: #7ea7b8;
  --brique: #b5563a;
  --ardoise: #5b6670;
  --trait: rgba(43, 58, 46, 0.18);
  --max: 1180px;
  --marge: 20px;
}
@media (min-width: 720px) { :root { --marge: 44px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font: 400 17px/1.55 Inter, system-ui, sans-serif; color: var(--encre); background: var(--papier); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 600; }
.demonstration { margin: 0; padding: 10px 16px; text-align: center; font: 600 14px/1.4 Inter, sans-serif; background: #f2c14e; color: #2a1c0e; }

.titre, .haut__nom, .carnet__titre, .chambre-fiche h3, .carte__titre { font-family: Caveat, cursive; font-weight: 600; line-height: 1; }
.titre { font-size: clamp(38px, 5vw, 56px); margin-bottom: 18px; }
.chapeau { font-size: 19px; max-width: 60ch; color: var(--encre-2); margin-bottom: 32px; }
.note { font-size: 14px; color: var(--encre-2); }
.lien { font-weight: 600; }

.bouton { display: inline-block; padding: 12px 22px; border-radius: 4px; border: 1.5px solid var(--encre); text-decoration: none; font: 600 15.5px Inter, sans-serif; background: transparent; color: var(--encre); cursor: pointer; }
.bouton:hover { background: var(--encre); color: var(--papier); }
.bouton--plein { background: var(--mousse); border-color: var(--mousse); color: #fff; }
.bouton--plein:hover { background: var(--encre); border-color: var(--encre); }
.bouton--trait { font-size: 14.5px; padding: 9px 16px; }

/* ---------- En-tête ---------- */
.haut { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--marge); background: rgba(243, 234, 216, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--trait); }
.haut__marque { text-decoration: none; display: flex; flex-direction: column; }
.haut__nom { font-size: 30px; }
.haut__sous { font-size: 13px; color: var(--encre-2); }
.haut__nav { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.haut__nav a { text-decoration: none; font-weight: 500; font-size: 15px; }
.haut__tel { padding: 8px 14px; border-radius: 999px; background: var(--brique); color: #fff !important; }
@media (max-width: 720px) { .haut__nav a:not(.haut__tel) { display: none; } .haut__tel { white-space: nowrap; font-size: 14px; padding: 7px 12px; } .haut__nom { font-size: 26px; } }

/* ---------- La carte ---------- */
.carte { padding: 28px var(--marge) 56px; }
.carte__cadre { position: relative; max-width: var(--max); margin: 0 auto; }
.carte__titre { font-size: clamp(40px, 6vw, 72px); margin-bottom: 6px; }
.carte__titre em { font-style: normal; color: var(--mousse); }
.carte__invite { color: var(--encre-2); margin-bottom: 14px; }
.carte__ciel { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 8px 14px; border: 1px solid var(--trait); border-radius: 999px; background: var(--papier-2); font-size: 14.5px; }
.ciel__icone { width: 22px; height: 22px; border-radius: 50%; background: #f2c14e; box-shadow: 0 0 0 4px rgba(242, 193, 78, 0.25); }
.ciel__icone.nuage { background: #cfd5d9; box-shadow: 6px 0 0 -2px #cfd5d9, -6px 0 0 -2px #cfd5d9; border-radius: 50%; }
.ciel__icone.pluie { background: var(--eau); box-shadow: none; }
.ciel__icone.nuit { background: #2b3a4e; box-shadow: inset -6px -3px 0 0 #f3ead8; }

.plan { width: 100%; height: auto; display: block; background: var(--papier-2); border: 1px solid var(--trait); border-radius: 6px; box-shadow: 0 24px 50px rgba(43, 58, 46, 0.12); }
.plan text { font-family: Caveat, cursive; font-weight: 600; fill: var(--encre); }
.plan .etiquette { font-size: 30px; }
.plan .etiquette.petite { font-size: 22px; fill: var(--encre-2); }
.plan .etiquette.mini { font-size: 18px; }
.plan .t, .plan path, .plan rect, .plan circle { stroke: var(--encre); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.plan .t.fin, .plan .fin { stroke-width: 1; opacity: .7; }
.plan .ciel-fond { fill: #dfe9ee; stroke: none; transition: fill 1s; }
.plan .ciel-fond.nuit { fill: #2b3a4e; }
.plan .ciel-fond.gris { fill: #cfd5d9; }
.plan .soleil circle { fill: #f2c14e; stroke: var(--encre); }
.plan .soleil .rayons path { stroke-width: 1.6; }
.plan .lune path { fill: #f3ead8; }
.plan .nuage { fill: #fff; stroke: var(--encre); stroke-width: 1.6; }
.plan .pluie path { stroke: var(--eau); stroke-width: 1.6; }
.plan .sol-foret { fill: #cfd9bd; stroke: none; }
.plan .arbres path { fill: var(--mousse-2); }
.plan .arbres path.sombre { fill: var(--mousse); }
.plan .prairie { fill: #e4ead0; stroke: none; }
.plan .eau { fill: var(--eau); }
.plan .eau-ondes { stroke: none; }
.plan .roseaux path { stroke-width: 1.4; }
.plan .chemin { stroke: var(--encre-2); stroke-width: 3; stroke-dasharray: 2 9; }
.plan .pommiers path.tronc { stroke-width: 2.4; }
.plan .pommiers circle { fill: var(--mousse-2); }
.plan .pommiers circle.pomme { fill: var(--brique); stroke: none; }
.plan .terre { stroke: none; fill: #d8c4a4; }
.plan .terre-bord { fill: #d8c4a4; fill-opacity: 0; }
.plan .legumes path { fill: var(--mousse-2); stroke-width: 1.2; }
.plan .four path { fill: #c7b4a0; }
.plan .porte-four { fill: #3b2b22; }
.plan .cheminee { fill: #c7b4a0; }
.plan .fumee { stroke: var(--encre-2); stroke-width: 1.2; opacity: .6; }
.plan .pelouse { fill: #dde6c6; stroke: none; }
.plan .haies path { stroke: var(--mousse); stroke-width: 7; opacity: .8; stroke-dasharray: 10 6; }
.plan .hortensias circle { fill: #8aa0d6; stroke: var(--encre); stroke-width: 1.2; }
.plan .hortensias circle.rose { fill: #d99cb5; }
.plan .banc rect, .plan .banc path { stroke-width: 1.6; }
.plan .banc rect { fill: #c7b4a0; }
.plan .mur { fill: #e9dcc3; }
.plan .toit { fill: var(--ardoise); }
.plan .ardoises path { stroke: #c9d0d6; stroke-width: 1; opacity: .5; }
.plan .cheminees { fill: #d6c3a8; }
.plan .porte { fill: var(--brique); }
.plan .porte-cintre { fill: none; }
.plan .lucarnes path { fill: #d6c3a8; }
.plan .fenetre { fill: #cfe3ea; }
.plan .croisillon { stroke-width: 1.2; }
.plan .rose circle { fill: var(--papier-2); }
.plan .rose path { fill: var(--brique); }
.plan .marcheur circle { fill: var(--brique); stroke: none; }

/* les lieux qu'on peut toucher */
.plan [data-lieu] { cursor: pointer; transition: filter .25s; }
.plan [data-lieu]:hover, .plan [data-lieu]:focus-visible { filter: drop-shadow(0 0 6px rgba(181, 86, 58, 0.55)); outline: none; }
.plan [data-lieu].actif .etiquette { fill: var(--brique); }
.plan .chambre:hover .fenetre, .plan .chambre.actif .fenetre { fill: #f2c14e; }
.plan.sombre [data-lieu]:not(.actif) { opacity: .55; }
.plan [data-lieu] { transition: opacity .35s, filter .25s; }

/* le carnet */
.carnet {
  position: absolute; right: 18px; bottom: 18px; width: min(380px, calc(100% - 36px)); z-index: 5;
  background: var(--papier-2); border: 1px solid var(--trait); border-left: 6px solid var(--brique); border-radius: 6px;
  padding: 18px 20px 20px; box-shadow: 0 20px 50px rgba(43, 58, 46, 0.25);
  transform: rotate(-1deg);
}
.carnet[hidden] { display: none; }
.carnet__fermer { position: absolute; right: 8px; top: 6px; border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--encre-2); }
.carnet__image { margin: -18px -20px 14px -14px; border-radius: 4px 4px 0 0; overflow: hidden; aspect-ratio: 16 / 9; background: #e4ead0; }
.carnet__image img, .carnet__image svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.carnet__image:empty { display: none; }
.carnet__sur { font-size: 13px; color: var(--encre-2); margin-bottom: 2px; }
.carnet__titre { font-size: 34px; margin-bottom: 8px; }
.carnet__texte { font-size: 15px; margin-bottom: 12px; }
.carnet__actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
@media (max-width: 720px) {
  .carnet { position: fixed; left: 12px; right: 12px; bottom: 12px; width: auto; transform: none; max-height: 70vh; overflow: auto; }
}

/* ---------- Blocs ---------- */
.bloc { max-width: var(--max); margin: 0 auto; padding: 64px var(--marge); border-top: 1px solid var(--trait); }
.deux { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }

/* chambres */
.chambres { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.chambre-fiche { background: var(--papier-2); border: 1px solid var(--trait); border-radius: 6px; padding: 18px 20px 22px; }
.chambre-fiche .dessin { width: 100%; height: auto; margin-bottom: 10px; }
.chambre-fiche h3 { font-size: 38px; margin-bottom: 2px; }
.chambre-fiche__quoi { font-size: 14px; color: var(--encre-2); margin-bottom: 10px; }
.chambre-fiche p { font-size: 15.5px; }
.prix { font-size: 16px; }
.prix strong { font-family: Caveat, cursive; font-size: 34px; font-weight: 600; color: var(--brique); margin-right: 4px; }
.dessin-chambre .cadre { fill: var(--papier-2); stroke: var(--encre); stroke-width: 1.5; }
.dessin-chambre .t, .dessin-chambre path, .dessin-chambre rect, .dessin-chambre circle { stroke: var(--encre); stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.dessin-chambre .fin { stroke-width: 1; opacity: .6; }
.dessin-chambre .lit { fill: #fff; }
.dessin-chambre .oreiller { fill: #fff; }
.dessin-chambre .fenetre { fill: #cfe3ea; }
.dessin-chambre .fauteuil { fill: #e9dcc3; }
.dessin-chambre .plante circle { fill: #c7b4a0; }
[data-chambre="bruyere"] .dessin-chambre .lit { fill: #f1d4dc; }
[data-chambre="ajonc"] .dessin-chambre .lit { fill: #f5e7b8; }
[data-chambre="fougere"] .dessin-chambre .lit { fill: #d8e4c4; }
.chambre-fiche .dessin text { font-family: Caveat, cursive; font-weight: 600; font-size: 16px; fill: var(--encre-2); }

/* calendrier */
.dates { max-width: 860px; }
.dates__choix { display: flex; gap: 10px 22px; flex-wrap: wrap; margin-bottom: 20px; font-weight: 500; }
.dates__choix input { accent-color: var(--brique); margin-right: 6px; }
.calendrier { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.mois { background: var(--papier-2); border: 1px solid var(--trait); border-radius: 6px; padding: 14px; }
.mois h3 { font-family: Caveat, cursive; font-weight: 600; font-size: 28px; margin-bottom: 8px; text-transform: capitalize; }
.mois__grille { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.mois__grille span { font-size: 11px; color: var(--encre-2); text-align: center; padding-bottom: 4px; }
.jour { aspect-ratio: 1; border: 0; border-radius: 4px; background: #e4ead0; font: 500 13px Inter, sans-serif; color: var(--encre); cursor: pointer; }
.jour:hover:not([disabled]) { outline: 2px solid var(--mousse); }
.jour[disabled] { cursor: not-allowed; }
.jour.pris { background: repeating-linear-gradient(135deg, #dfd3bf 0 4px, #cdbfa6 4px 8px); color: var(--encre-2); }
.jour.passe { background: transparent; color: #b8b2a3; }
.jour.choisi { background: var(--brique); color: #fff; }
.jour.entre { background: #e5a98f; color: #fff; }
.jour.vide { background: transparent; cursor: default; }
.calendrier__legende { display: flex; gap: 18px; margin: 14px 0 0; font-size: 14px; color: var(--encre-2); flex-wrap: wrap; }
.l::before { content: ""; display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; background: #e4ead0; }
.l--pris::before { background: repeating-linear-gradient(135deg, #dfd3bf 0 3px, #cdbfa6 3px 6px); }
.l--choisi::before { background: var(--brique); }
.recap { margin-top: 24px; padding: 18px 22px; border: 1.5px solid var(--encre); border-radius: 6px; background: var(--papier-2); }
.recap[hidden] { display: none; }
.recap__texte { font-size: 18px; margin-bottom: 14px; }
.recap__texte strong { font-family: Caveat, cursive; font-size: 32px; font-weight: 600; color: var(--brique); }
.recap .note { margin: 12px 0 0; }

/* cartes postales */
.postales { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.carte-postale { margin: 0; background: #fff; padding: 10px 10px 12px; box-shadow: 0 12px 30px rgba(43, 58, 46, 0.14); transform: rotate(-1.2deg); }
.postales .carte-postale:nth-child(2n) { transform: rotate(1deg); }
.carte-postale img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.carte-postale figcaption { font-family: Caveat, cursive; font-size: 22px; line-height: 1.1; margin-top: 10px; color: var(--encre); }
.petite-carte { max-width: 320px; margin-top: 14px; }
.adresse { font-size: 18px; font-weight: 500; }

/* pied */
.pied { max-width: var(--max); margin: 0 auto; padding: 28px var(--marge) 48px; border-top: 1px solid var(--trait); font-size: 14px; color: var(--encre-2); }
.pied__credits { font-size: 12.5px; opacity: .8; }

/* ---------- Mouvement ---------- */
html.anime .plan .fumee { stroke-dasharray: 40; animation: fumee 3s linear infinite; }
@keyframes fumee { to { stroke-dashoffset: -80; } }
html.anime .plan .nuage.n1 { animation: derive 60s linear infinite; }
html.anime .plan .nuage.n2 { animation: derive 80s linear infinite; animation-delay: -30s; }
html.anime .plan .nuage.n3 { animation: derive 70s linear infinite; animation-delay: -50s; }
@keyframes derive { from { transform: translateX(-200px); } to { transform: translateX(1300px); } }
html.anime .plan .eau-ondes { animation: ondes 6s linear infinite; }
@keyframes ondes { to { transform: translateX(60px); } }
html.anime .plan .pluie path { animation: goutte 1s linear infinite; }
@keyframes goutte { from { transform: translateY(-20px); opacity: 0; } 20% { opacity: 1; } to { transform: translateY(120px); opacity: 0; } }
html.anime .plan [data-chemin].trace { stroke-dasharray: 2 9; animation: marche 1.2s linear infinite; }
@keyframes marche { to { stroke-dashoffset: -22; } }
html.anime .carnet { animation: ouvre .35s cubic-bezier(.2,.7,.2,1); }
@keyframes ouvre { from { opacity: 0; transform: rotate(-1deg) translateY(16px); } }
