@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-700-latin.woff2") format("woff2"); }
@font-face { font-family: "Young Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/young-serif-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Young Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/young-serif-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("fonts/source-serif-4-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("fonts/source-serif-4-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Kalam"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/kalam-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Kalam"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/kalam-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Kalam"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/kalam-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Une carte postale posée sur le deck de la piscine. Rouge = action, bleu = liens et cachets, turquoise = photos et timbre. */
  --carte: #FBFAF6;
  --deck: #6E4E3A;
  --deck-joint: #553A2A;
  --rouge: #B8232F;
  --rouge-fonce: #931B25;
  --bleu: #1F4E9C;
  --cachet: #5B4E7A;
  --stylo: #1E2A44;
  --encre: #22201C;
  --encre-douce: #57524A;
  --filet: #D9D3C6;
  --ombre: 0 28px 44px -26px rgba(25, 12, 4, .75), 0 6px 12px -6px rgba(25, 12, 4, .4);
  --titre: "Young Serif", Georgia, serif;
  --texte: "Source Serif 4", Georgia, serif;
  --main: "Kalam", "Segoe Print", cursive;
  --g: clamp(1rem, 4vw, 3rem);
  --par-avion: repeating-linear-gradient(-45deg, var(--rouge) 0 12px, var(--carte) 12px 18px, var(--bleu) 18px 30px, var(--carte) 30px 36px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; color: var(--encre); font: 400 1.0625rem/1.6 var(--texte); caret-color: var(--rouge);
  background-color: var(--deck);
  background-image: radial-gradient(120% 80% at 50% 0%, rgba(255, 236, 210, .08), transparent 60%); }
::selection { background: #BFE6E8; color: var(--encre); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--bleu); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: 3px; }
.nav :focus-visible, .site-foot :focus-visible { outline-color: #F3E3B5; }
h1, h2 { font-family: var(--titre); font-weight: 400; margin: 0; line-height: 1.18; text-wrap: balance; color: var(--encre); }
p { margin: 0; text-wrap: pretty; }

.flag { padding: .45rem 1rem; text-align: center; font-size: .8125rem; background: #2C1E15; color: #F1E8DA; }

/* Navigation, sur le bois */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 1.6rem; padding: .7rem var(--g); background: color-mix(in srgb, #4A3326 94%, transparent); backdrop-filter: blur(8px); color: #F6EEE2; }
.logo { font-family: var(--titre); font-size: 1.3rem; color: inherit; text-decoration: none; white-space: nowrap; }
.nav nav { display: flex; gap: 1.3rem; margin-left: auto; font-size: .98rem; }
.nav nav a { color: inherit; text-decoration: none; padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav nav a:hover { border-color: #F6EEE2; }
@media (max-width: 900px) { .nav nav { display: none; } .nav .btn-small { margin-left: auto; } }

/* Boutons : rouge par avion */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .8rem 1.5rem; border: 0; border-radius: 6px; background: var(--rouge); color: #fff; font: 600 1.02rem/1.1 var(--texte); text-decoration: none; cursor: pointer; white-space: nowrap; box-shadow: 0 10px 18px -10px rgba(147, 27, 37, .9); transition: background .2s, transform .2s cubic-bezier(.16, 1, .3, 1); }
.btn:hover { background: var(--rouge-fonce); transform: translateY(-2px); }
.btn:active { transform: none; }
.btn-small { min-height: 2.5rem; padding: .5rem 1.1rem; font-size: .95rem; }
.btn-wide { width: 100%; }

/* La carte postale : bristol, liseré par avion, filet central */
.carte { position: relative; background: var(--carte); border-radius: 6px; box-shadow: var(--ombre); }
.carte::after { content: ""; position: absolute; inset: 0; border-radius: 6px; pointer-events: none; padding: 9px; background: var(--par-avion); -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }

/* Le premier écran : une seule carte, verso visible */
.pont { padding: clamp(1.2rem, 3vw, 2.4rem) var(--g) clamp(1.5rem, 3vw, 2.5rem); }
.carte-une { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; rotate: -.6deg; padding: clamp(1.8rem, 3.4vw, 2.8rem) clamp(1.6rem, 3.4vw, 3rem); }
.verso-gauche { padding-right: clamp(1.2rem, 3vw, 2.6rem); background: linear-gradient(var(--filet), var(--filet)) right / 1.5px 100% no-repeat; }
.verso-droite { padding-left: clamp(1.2rem, 3vw, 2.6rem); }
.carte-une h1 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
.legende { margin-top: .9rem; color: var(--encre-douce); font-size: 1.06rem; max-width: 42ch; }
.manuscrit { margin: 1.4rem 0 0; padding: 0; font-family: var(--main); color: var(--stylo); }
.manuscrit p { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.45; }
.manuscrit footer { margin-top: .3rem; font-size: 1rem; color: var(--encre-douce); }
.note-avis { margin-top: 1.2rem; font-size: .98rem; color: var(--encre-douce); }
.note-avis strong { color: var(--encre); }

/* Le timbre dentelé */
.timbre { margin: 0; filter: drop-shadow(0 3px 4px rgba(40, 25, 10, .28)); }
.timbre picture { display: block; padding: 11px; background: #fff;
  -webkit-mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle at 6px 6px, #0000 4.5px, #000 5px) -6px -6px / 12px 12px round;
  mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle at 6px 6px, #0000 4.5px, #000 5px) -6px -6px / 12px 12px round; }
.timbre img { width: 100%; object-fit: cover; }
.timbre-zone { position: relative; display: flex; justify-content: flex-end; align-items: flex-start; min-height: 11rem; }
.timbre-une { width: min(230px, 46%); rotate: 2deg; }
.timbre-une img { aspect-ratio: 4 / 5; }
.cachet { position: absolute; left: 0; top: .6rem; width: min(300px, 62%); color: var(--cachet); opacity: .9; rotate: -8deg; font-family: var(--titre); }
.cachet text { fill: currentColor; }

/* Les lignes d'adresse : la demande de dates */
.adresse { margin-top: 1.2rem; display: grid; gap: .2rem; }
.adresse-a { font-family: var(--main); font-size: 1.15rem; color: var(--stylo); padding-bottom: .35rem; border-bottom: 1.5px solid var(--filet); }
.ligne { display: grid; grid-template-columns: 6.5rem 1fr; align-items: end; gap: .6rem; border-bottom: 1.5px solid var(--filet); padding-top: .35rem; font-size: .92rem; color: var(--encre-douce); }
.ligne span { padding-bottom: .55rem; }
input, textarea { font: 400 1.15rem/1.3 var(--main); color: var(--stylo); background: transparent; border: 0; border-radius: 3px; padding: .5rem .3rem; min-height: 2.6rem; width: 100%; min-width: 0; accent-color: var(--rouge); }
input::placeholder, textarea::placeholder { color: #6E6A78; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--bleu); outline-offset: 0; background: #F1F4FA; }
input:user-invalid { background: #FCEDEE; }
.adresse .btn { margin-top: 1rem; }

@media (max-width: 860px) {
  .carte-une { grid-template-columns: 1fr; rotate: 0deg; }
  .verso-gauche { padding: 0 0 1.2rem; background: linear-gradient(var(--filet), var(--filet)) bottom / 100% 1.5px no-repeat; }
  .verso-droite { padding: 1.2rem 0 0; }
}
@media (max-width: 640px) {
  .pont { padding-top: .8rem; }
  .carte-une { padding: 1.7rem 1.6rem 1.7rem; }
  .carte-section, .carte-demande { padding: 1.8rem 1.6rem; }
  .carte-message { padding: 1.9rem 1.6rem 1.5rem; }
  .carte-une h1 { font-size: 1.7rem; }
  .legende { font-size: .98rem; margin-top: .6rem; }
  .carte-une .manuscrit { margin-top: .8rem; }
  .carte-une .manuscrit p { font-size: 1.2rem; }
  .carte-une .manuscrit footer, .note-avis { font-size: .9rem; }
  .note-avis { margin-top: .5rem; }
  .verso-gauche { padding-bottom: .9rem; }
  .carte-une .verso-droite { padding-top: .9rem; display: grid; grid-template-columns: 1fr 7rem; gap: 0 .8rem; }
  .timbre-zone { order: 2; min-height: 0; display: block; }
  .timbre-une { width: 100%; }
  .cachet { display: none; }
  .adresse { margin-top: 0; }
  .ligne { grid-template-columns: 5rem 1fr; }
  .adresse-a { display: none; }
}

/* Les cartes des sections : recto en timbres, verso en texte */
.carte-section { max-width: 1180px; margin: clamp(1.6rem, 4vw, 2.8rem) auto 0; width: calc(100% - 2 * var(--g)); display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding: clamp(1.8rem, 4vw, 3rem); }
.carte-section:nth-of-type(odd) { rotate: .5deg; }
.carte-section:nth-of-type(even) { rotate: -.4deg; }
.carte-inverse .planche-timbres { order: 2; }
.carte-texte { padding-left: clamp(1rem, 3vw, 2.4rem); background: linear-gradient(var(--filet), var(--filet)) left / 1.5px 100% no-repeat; }
.carte-inverse .carte-texte { padding: 0 clamp(1rem, 3vw, 2.4rem) 0 0; background: linear-gradient(var(--filet), var(--filet)) right / 1.5px 100% no-repeat; }
.carte-section h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.carte-texte > p { margin-top: .9rem; font-size: 1.06rem; max-width: 44ch; color: var(--encre-douce); }
.planche-timbres { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.1rem; align-items: start; }
.planche-timbres .timbre:nth-child(1) { grid-column: 1 / 4; rotate: -1.5deg; }
.planche-timbres .timbre:nth-child(2) { grid-column: 4 / 7; rotate: 2deg; margin-top: 1.4rem; }
.planche-timbres .timbre:nth-child(3) { grid-column: 2 / 5; rotate: -1deg; }
.planche-timbres .timbre img { aspect-ratio: 4 / 5; }
.planche-timbres .timbre-large { grid-column: 1 / 7 !important; rotate: -1deg; margin: 0; }
.planche-timbres .timbre-large img { aspect-ratio: 4 / 3; }
.planche-timbres .timbre-large ~ .timbre:nth-child(2) { grid-column: 1 / 4; margin-top: 0; }
.planche-timbres .timbre-large ~ .timbre:nth-child(3) { grid-column: 4 / 7; }
.planche-timbres .timbre-large ~ .timbre img { aspect-ratio: 4 / 3; }
#chambres .planche-timbres .timbre:nth-child(3) img { aspect-ratio: 4 / 3; }
@media (max-width: 860px) {
  .carte-section { grid-template-columns: 1fr; rotate: 0deg !important; }
  .carte-inverse .planche-timbres { order: 0; }
  .carte-texte, .carte-inverse .carte-texte { padding: 1.2rem 0 0; background: linear-gradient(var(--filet), var(--filet)) top / 100% 1.5px no-repeat; }
}

/* Le paquet de cartes reçues */
.messages { max-width: 1180px; margin: clamp(2.5rem, 6vw, 4rem) auto 0; padding: 0 var(--g); }
.messages h2 { color: #F8F1E5; font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.paquet { margin-top: 1.6rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 2rem); }
.carte-message { margin: 0; padding: 2rem 1.7rem 1.6rem; font-family: var(--main); color: var(--stylo); }
.carte-message p { font-size: 1.22rem; line-height: 1.5; }
.carte-message footer { margin-top: .6rem; color: var(--encre-douce); font-size: .95rem; }
.carte-message:nth-child(1) { rotate: -1.6deg; } .carte-message:nth-child(2) { rotate: 1.2deg; margin-top: 1.2rem; } .carte-message:nth-child(3) { rotate: -.6deg; }
@media (max-width: 860px) { .paquet { grid-template-columns: 1fr; } .carte-message:nth-child(2) { margin-top: 0; } }

/* La demande */
.carte-demande { max-width: 1180px; margin: clamp(2rem, 5vw, 3.5rem) auto clamp(2rem, 5vw, 3.5rem); width: calc(100% - 2 * var(--g)); display: grid; grid-template-columns: .85fr 1.15fr; padding: clamp(1.8rem, 4vw, 3rem); }
.carte-demande h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.carte-demande .verso-gauche > p { margin-top: .9rem; color: var(--encre-douce); max-width: 36ch; }
.contact { list-style: none; padding: 0; margin: 1.3rem 0 0; display: grid; gap: .45rem; color: var(--encre-douce); font-size: .98rem; }
.tel { font-family: var(--titre); font-size: 1.6rem; color: var(--rouge); text-decoration: none; }
.demande-form { display: grid; gap: .2rem; align-content: start; }
.message-libre { display: grid; gap: .3rem; margin-top: .8rem; font-size: .92rem; color: var(--encre-douce); }
.message-libre textarea { border: 1.5px solid var(--filet); background: rgba(255, 255, 255, .6); }
.demande-form .btn { margin-top: 1rem; }
.form-note { margin-top: .5rem; font-size: .86rem; color: var(--encre-douce); }
@media (max-width: 860px) { .carte-demande { grid-template-columns: 1fr; } .carte-demande .verso-gauche { padding: 0 0 1.2rem; background: linear-gradient(var(--filet), var(--filet)) bottom / 100% 1.5px no-repeat; } .carte-demande .verso-droite { padding: 1.2rem 0 0; } }

/* Pied de page, sur le bois */
.site-foot { color: #F6EEE2; text-align: center; padding: .5rem 1rem 3rem; display: grid; gap: .45rem; font-size: .95rem; }
.site-foot .logo { font-size: 1.5rem; }
.site-foot .small { font-size: .82rem; max-width: 62ch; margin: .2rem auto 0; color: #E3D6C4; }

/* Un seul mouvement : le cachet tombe sur la carte */
@media (prefers-reduced-motion: no-preference) {
  .cachet { animation: tamponner .7s cubic-bezier(.16, 1, .3, 1) .35s both; }
  @keyframes tamponner { from { opacity: 0; scale: 1.25; } }
}
.merci { grid-template-columns: 1fr; max-width: 46rem; }
.carte-une > *, .carte-une .verso-droite > *, .ligne > * { min-width: 0; }
main { overflow-x: clip; }
@media (max-width: 640px) { .carte-une .verso-droite { grid-template-columns: 1fr 5.6rem; } .carte-une .ligne { grid-template-columns: 4.4rem 1fr; gap: .3rem; } .timbre-une { rotate: 3deg; } }

/* Relecture : le timbre, son oblitération, sa légende */
.timbre-une { position: relative; }
.timbre-legende { position: absolute; left: 11px; right: 11px; bottom: 15px; padding: .25rem .4rem; text-align: center; font: 700 .7rem/1.1 "Barlow Condensed", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: rgba(9, 70, 76, .72); }
.cachet { font-family: "Barlow Condensed", sans-serif; z-index: 2; mix-blend-mode: multiply; width: min(340px, 72%); }
@media (max-width: 640px) {
  .cachet { display: block; width: 8.5rem; left: auto; right: 2.2rem; top: -1.2rem; rotate: -12deg; }
  .timbre-zone { position: relative; }
}
/* Une seule photo dans la planche des hôtes */
.planche-une .timbre-large img { aspect-ratio: 16 / 9; }
/* Le paquet : cartes reçues, déployées en éventail */
.paquet { grid-template-columns: repeat(3, 1fr); gap: 0; padding: 1rem 0 1.5rem; }
.carte-message:nth-child(1) { rotate: -4deg; translate: 1.2rem .4rem; z-index: 1; }
.carte-message:nth-child(2) { rotate: 1.5deg; translate: 0 -.6rem; z-index: 2; margin-top: 0; }
.carte-message:nth-child(3) { rotate: 5deg; translate: -1.2rem .8rem; z-index: 3; }
@media (max-width: 860px) {
  .paquet { grid-template-columns: 1fr; gap: 0; }
  .carte-message:nth-child(1) { translate: 0; rotate: -2deg; }
  .carte-message:nth-child(2) { translate: 0 -.4rem; rotate: 1.5deg; }
  .carte-message:nth-child(3) { translate: 0 -.8rem; rotate: -1deg; }
}
/* Le calendrier natif, à l'encre de la carte */
input::-webkit-calendar-picker-indicator { opacity: .55; filter: sepia(1) hue-rotate(190deg) saturate(2); cursor: pointer; }
@media (max-width: 640px) {
  .cachet { width: 5.6rem; right: -1rem; top: -2.6rem; rotate: -16deg; }
  .timbre-legende { display: none; }
}

/* Relecture 2 : pas d'anneaux vides, l'oblitération frappe le timbre */
.cachet { width: min(380px, 86%); }
.cachet text { font-weight: 700; }
@media (max-width: 640px) { .cachet { width: 7.5rem; left: -1.1rem; right: auto; top: -.9rem; rotate: -10deg; } }
