@font-face { font-family: "Sansita"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/sansita-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; }
@font-face { font-family: "Sansita"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/sansita-700-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: "Public Sans"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/public-sans-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: "Public Sans"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/public-sans-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; }

:root {
  /* La varangue de la case créole. Rouge anthurium = action, vert = jardin, bois = cadres. */
  --jaune: #F1C24B;
  --jaune-pale: #F8DC8C;
  --chaux: #FFFFFF;
  --bois: #8A5A35;
  --bois-clair: #B07A4A;
  --bois-fonce: #5E3B20;
  --vert: #2E5E36;
  --nuit: #1F2A3D;
  --rouge: #B3162B;
  --rouge-fonce: #8E1022;
  --encre: #2A2118;
  --encre-douce: #5A4A38;
  --ombre: 0 22px 34px -22px rgba(60, 35, 10, .65), 0 4px 10px -4px rgba(60, 35, 10, .3);
  --peint: "Sansita", "Trebuchet MS", sans-serif;
  --texte: "Public Sans", system-ui, sans-serif;
  --g: clamp(1rem, 4vw, 3rem);
  /* Lambrequin : planche découpée en pointes et gouttes, percée d'un trou rond */
  --lambrequin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 30'%3E%3Cpath fill='%23FFFFFF' fill-rule='evenodd' d='M0 0h44v12h-3c-1 6-4 11-8 13-4-2-7-7-8-13h-6c-1 6-4 11-8 13-4-2-7-7-8-13H0z M11 15.5a2.6 2.6 0 1 0 .01 0z M33 15.5a2.6 2.6 0 1 0 .01 0z M22 4a2 2 0 1 0 .01 0z'/%3E%3C/svg%3E");
  /* Persienne : lames de bois inclinées */
  --lames: repeating-linear-gradient(180deg, var(--bois-clair) 0 9px, var(--bois) 9px 11px, var(--bois-fonce) 11px 12px);
}
*, *::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; background: var(--chaux); color: var(--encre); font: 400 1.0625rem/1.65 var(--texte); caret-color: var(--rouge); }
::selection { background: var(--jaune); color: var(--encre); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--rouge); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--peint); font-weight: 700; margin: 0; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
main { overflow-x: clip; }

.flag { padding: .45rem 1rem; text-align: center; font-size: .8125rem; background: var(--bois-fonce); color: #F7EAD3; }

/* La navigation : le bord du toit */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 1.6rem; padding: .65rem var(--g); background: var(--bois-fonce); color: #FBEFD9; }
.logo { font-family: var(--peint); font-weight: 700; font-size: 1.45rem; color: var(--jaune); text-decoration: none; white-space: nowrap; }
.nav nav { display: flex; gap: 1.3rem; margin-left: auto; font-size: .98rem; }
.nav nav a { text-decoration: none; padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav nav a:hover { border-color: var(--jaune); }
.nav :focus-visible { outline-color: var(--jaune); }
@media (max-width: 860px) { .nav nav { display: none; } .nav .btn-small { margin-left: auto; } }

/* Boutons : rouge anthurium */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .8rem 1.5rem; border: 0; border-radius: 8px; background: var(--rouge); color: #fff; font: 700 1.02rem/1.1 var(--texte); text-decoration: none; cursor: pointer; white-space: nowrap; box-shadow: 0 10px 18px -10px rgba(142, 16, 34, .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%; }

/* Champs */
.field { display: grid; gap: .3rem; font-size: .9rem; font-weight: 700; color: var(--encre-douce); min-width: 0; }
input, textarea { font: 400 1rem/1.4 var(--texte); color: var(--encre); background: #fff; border: 1.5px solid #C9B48F; border-radius: 6px; padding: .65rem .75rem; min-height: 2.9rem; width: 100%; min-width: 0; accent-color: var(--rouge); }
input::placeholder, textarea::placeholder { color: #6E604E; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--rouge); outline-offset: 1px; border-color: var(--rouge); }
input:user-invalid { border-color: var(--rouge); background: #FFF1F1; }
.coche { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .98rem; cursor: pointer; }
.coche input { width: 1.3rem; height: 1.3rem; min-height: 0; padding: 0; flex: none; }

/* Le bord découpé du toit en haut de chaque pièce */
.varangue, .piece { position: relative; }
.varangue::before, .piece::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 26px; background: var(--lambrequin) 0 0 / 40px 26px repeat-x; filter: drop-shadow(0 4px 3px rgba(60, 35, 10, .28)); z-index: 1; pointer-events: none; }

/* Persiennes et cadres de fenêtre */
.cadre { margin: 0; background: var(--bois); padding: 7px; border-radius: 3px; box-shadow: var(--ombre); }
.cadre img { width: 100%; object-fit: cover; border-radius: 1px; }
.cadre figcaption { color: #FBEFD9; font-size: .8rem; padding: .4rem .2rem .1rem; }

/* La varangue : premier écran */
.varangue { background: var(--jaune); padding: clamp(2.6rem, 5vw, 3.6rem) var(--g) clamp(2rem, 4vw, 3rem); }
.varangue-in { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; grid-template-areas: "accueil fenetre" "table fenetre"; gap: 1.4rem clamp(2rem, 5vw, 4rem); align-items: center; }
.accueil { grid-area: accueil; align-self: end; }
.accueil h1 { font-size: clamp(2.3rem, 4.6vw, 4rem); color: var(--encre); }
.accroche { margin-top: 1rem; font-size: 1.15rem; max-width: 42ch; }
.note { margin-top: .9rem; font-size: 1rem; color: var(--encre-douce); }
.note strong { color: var(--encre); }
.fenetre { grid-area: fenetre; display: flex; align-items: stretch; justify-content: center; perspective: 900px; }
.vitre { margin: 0; width: min(440px, 78%); background: var(--bois); padding: 9px; border-radius: 3px; box-shadow: var(--ombre); }
.vitre img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.persienne { width: 18%; max-width: 72px; background: var(--lames); border: 5px solid var(--bois-fonce); border-radius: 2px; box-shadow: var(--ombre); }
.persienne-g { transform: rotateY(38deg); transform-origin: right center; margin-right: -4px; }
.persienne-d { transform: rotateY(-38deg); transform-origin: left center; margin-left: -4px; }
.table-courte { grid-area: table; align-self: start; background: var(--chaux); border-radius: 10px; padding: 1.2rem 1.3rem 1.3rem; box-shadow: var(--ombre); display: grid; grid-template-columns: 1fr 1fr .7fr; gap: .8rem 1rem; align-items: end; }
.table-courte .coche, .table-courte .btn { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .varangue-in { grid-template-columns: 1fr; grid-template-areas: "accueil" "table" "fenetre"; }
  .vitre { width: min(300px, 66%); }
}
@media (max-width: 640px) {
  .varangue { padding-top: 2.1rem; }
  .accueil h1 { font-size: 1.95rem; }
  .accroche { font-size: 1.02rem; margin-top: .6rem; }
  .accroche .plus { display: none; }
  .note { margin-top: .4rem; font-size: .95rem; }
  .varangue-in { gap: 1rem; }
  .table-courte { grid-template-columns: 1fr 1fr; padding: 1rem; gap: .6rem .8rem; }
  .field-pers { grid-column: 1 / -1; }
}

/* Les pièces de la maison */
.piece { padding: clamp(3.4rem, 7vw, 5.4rem) var(--g) clamp(2.8rem, 6vw, 4.4rem); }
.piece-chaux { background: var(--chaux); }
.piece-jaune { background: var(--jaune); }
.piece-vert { background: var(--vert); color: #F4F1E6; }
.piece-vert h2 { color: #FBE7A8; }
.piece-aube { background: var(--nuit); color: #FFF7EA; }
.piece-vert, .piece-aube { --ombre: 0 22px 34px -20px rgba(0, 0, 0, .55), 0 4px 10px -4px rgba(0, 0, 0, .35); }
.piece-in { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.6rem, 4vw, 3.5rem); align-items: center; }
.piece-inverse .piece-texte { order: 2; }
.piece h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.piece-texte > p { margin-top: 1rem; font-size: 1.08rem; max-width: 44ch; }
.plaque { margin: 1.5rem 0 0; padding: 1rem 1.2rem; background: var(--bois-fonce); color: #FFF4DA; border-radius: 6px; box-shadow: var(--ombre); max-width: 44ch; rotate: -1deg; position: relative; }
.plaque::before { content: ""; position: absolute; top: .55rem; left: 50%; width: .55rem; height: .55rem; border-radius: 50%; background: #3A2412; translate: -50% 0; box-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.plaque p { font-family: var(--peint); font-size: 1.25rem; line-height: 1.35; padding-top: .5rem; color: var(--jaune); }
.plaque footer { margin-top: .4rem; font-size: .85rem; color: #F1DFC0; }
.fenetres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: start; }
.cadre-large { grid-column: 1 / -1; }
.cadre-large img { aspect-ratio: 4 / 3; }
#maido .cadre-large img { aspect-ratio: 16 / 9; }
.fenetres .cadre:not(.cadre-large) img { aspect-ratio: 4 / 5; }
.fenetres .cadre-moitie { grid-column: span 1; }
#chambres .fenetres { grid-template-columns: 1fr 1fr; }
#chambres .fenetres .cadre-moitie img { aspect-ratio: 4 / 3; }
#jardin .fenetres .cadre:last-child img { aspect-ratio: 4 / 5; }
.piece-duo { margin-top: clamp(2rem, 4vw, 3rem); grid-template-columns: 1fr 1fr; align-items: start; }
.duo { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1.2rem; align-items: center; }
.duo .cadre img { aspect-ratio: 4 / 3; }
.duo h3 { font-size: 1.5rem; }
.duo p { margin-top: .4rem; }
@media (max-width: 900px) {
  .piece-in, .piece-duo { grid-template-columns: 1fr; }
  .piece-inverse .piece-texte { order: 0; }
}
@media (max-width: 520px) { .duo { grid-template-columns: 1fr; } }

/* Les avis : plaques accrochées au mur jaune */
.piece-avis { grid-template-columns: 1fr; }
.plaques { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 2rem); align-items: start; }
.plaques .plaque { margin: 0; max-width: none; }
.plaques .plaque:nth-child(2) { rotate: 1.2deg; margin-top: 1rem; }
.plaques .plaque:nth-child(3) { rotate: -.6deg; }
@media (max-width: 900px) { .plaques { grid-template-columns: 1fr; } .plaques .plaque:nth-child(2) { margin-top: 0; } }

/* Demande */
.piece-demande { grid-template-columns: .8fr 1.2fr; align-items: start; }
.demande-side > p { margin-top: .9rem; max-width: 36ch; }
.contact { list-style: none; padding: 0; margin: 1.3rem 0 0; display: grid; gap: .45rem; color: var(--encre-douce); }
.tel { font-family: var(--peint); font-size: 1.7rem; color: var(--rouge); text-decoration: none; }
.demande-form { display: grid; gap: 1rem; background: #fff; border-radius: 10px; padding: clamp(1.2rem, 3vw, 2rem); box-shadow: var(--ombre); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: .86rem; color: var(--encre-douce); }
@media (max-width: 900px) { .piece-demande { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }

/* Pied de page */
.site-foot { background: var(--bois-fonce); color: #FBEFD9; text-align: center; padding: 2.4rem 1rem 3rem; display: grid; gap: .45rem; font-size: .95rem; }
.site-foot .logo { font-size: 1.6rem; }
.site-foot .small { font-size: .82rem; max-width: 62ch; margin: .2rem auto 0; color: #E7D6B8; }

/* Un seul mouvement : les persiennes s'ouvrent */
@media (prefers-reduced-motion: no-preference) {
  .varangue .persienne-g { animation: ouvrir-g 1.1s cubic-bezier(.16, 1, .3, 1) .2s both; }
  .varangue .persienne-d { animation: ouvrir-d 1.1s cubic-bezier(.16, 1, .3, 1) .2s both; }
  @keyframes ouvrir-g { from { transform: rotateY(0deg); } }
  @keyframes ouvrir-d { from { transform: rotateY(0deg); } }
}
.merci-page .piece-in { grid-template-columns: 1fr; max-width: 46rem; }

/* La pièce commence sous l'avant-toit : planche de rive, puis lambrequin */
.piece::before { height: 36px; background: var(--lambrequin) 0 10px / 40px 26px repeat-x, linear-gradient(var(--bois-fonce), var(--bois-fonce)) 0 0 / 100% 10px no-repeat; }
.piece-aube::before { background: var(--lambrequin) 0 10px / 40px 26px repeat-x, linear-gradient(var(--bois), var(--bois)) 0 0 / 100% 10px no-repeat; }
/* Fenêtres des pièces : persiennes fixes (seules celles de la varangue s'ouvrent) */
.fenetre-piece { grid-area: auto; grid-column: 1 / -1; grid-row: 1; display: flex; perspective: 900px; }
.fenetre-piece .cadre-large { flex: 1; min-width: 0; }
.fenetre-piece .persienne { width: 11%; max-width: 54px; }
.fenetre-piece .persienne-g { transform: rotateY(32deg); }
.fenetre-piece .persienne-d { transform: rotateY(-32deg); }
@media (max-width: 640px) { .fenetre-piece .persienne { width: 9%; border-width: 3px; } }
.cadre-enseigne { margin-top: 1.4rem; max-width: 220px; rotate: -1.5deg; }
.cadre-enseigne img { aspect-ratio: 1; }
html { scrollbar-color: var(--bois) var(--chaux); }
