/* Domaine Les Grands Vents — site refait hors Wix.
   Couleurs reprises du site actuel : vert sauge des boutons, sable rosé des cartes, vert profond du nom. */
@font-face { font-family: 'Trirong'; src: url('fonts/trirong-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Trirong'; src: url('fonts/trirong-400i.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Trirong'; src: url('fonts/trirong-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('fonts/montserrat-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('fonts/montserrat-400i.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Montserrat'; src: url('fonts/montserrat-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --vert: #2f5d50;
  --vert-fonce: #21443a;
  --sauge: #5f8c88;
  --sauge-clair: #e9f0ef;
  --sable: #f6ece4;
  --terre: #c9a58e;
  --encre: #26302c;
  --gris: #5c6662;
  --papier: #fdfbf8;
  --trait: #e3dcd3;
  --rayon: 14px;
  --ombre: 0 10px 30px rgba(33, 68, 58, .10);
  --titre: 'Trirong', Georgia, 'Times New Roman', serif;
  --texte: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--papier); color: var(--encre); font: 400 1rem/1.7 var(--texte); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--vert); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--titre); font-weight: 400; color: var(--vert-fonce); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.passer { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.passer:focus { left: 8px; }
.centre { text-align: center; }
.large { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.etroit { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.etroit.centre { margin-bottom: 2rem; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 26px; border-radius: 999px;
  background: var(--vert); color: #fff; text-decoration: none; font-weight: 700; font-size: .92rem; letter-spacing: .02em; border: 2px solid var(--vert);
  transition: background .2s, color .2s, transform .2s; cursor: pointer; }
.btn:hover { background: var(--vert-fonce); border-color: var(--vert-fonce); transform: translateY(-1px); }
.btn-ligne { background: transparent; color: var(--vert); }
.btn-ligne:hover { background: var(--vert); color: #fff; }
.btn-petit { min-height: 40px; padding: 8px 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.actions.centre { justify-content: center; }

/* En-tête du site */
.haut { position: sticky; top: 0; z-index: 50; background: rgba(253, 251, 248, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--trait); }
.barre { max-width: 1280px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 24px; }
.logo { display: flex; flex-direction: column; text-decoration: none; margin-right: auto; }
.logo .nom { font-family: var(--titre); font-size: 1.35rem; color: var(--vert-fonce); letter-spacing: .02em; }
.logo .sous-nom { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--sauge); font-weight: 700; }
nav { display: flex; align-items: center; gap: 18px; }
nav > ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
nav a, nav button { font: 600 .9rem var(--texte); color: var(--encre); text-decoration: none; padding: 10px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer; }
nav a:hover, nav button:hover, nav [aria-current] { color: var(--vert); }
nav > ul > li > [aria-current] { box-shadow: inset 0 -2px 0 var(--sauge); border-radius: 0; }
.sous { position: relative; }
.sous > button::after { content: ''; display: inline-block; margin-left: 6px; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.sous ul { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border-radius: 12px; box-shadow: var(--ombre); display: none; }
.sous ul a { display: block; }
.sous:hover ul, .sous:focus-within ul, .sous [aria-expanded="true"] + ul { display: block; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.burger span:first-child, .burger span:first-child::before, .burger span:first-child::after { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--vert-fonce); content: ''; transition: transform .2s; }
.burger span:first-child { top: 21px; }
.burger span:first-child::before { left: 0; top: -7px; }
.burger span:first-child::after { left: 0; top: 7px; }
.burger[aria-expanded="true"] span:first-child { background: transparent; }
.burger[aria-expanded="true"] span:first-child::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:first-child::after { transform: translateY(-7px) rotate(-45deg); }

/* Grandes photos d'en-tête */
.entete { position: relative; min-height: 62vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--vert-fonce); }
.entete.haute { min-height: calc(100vh - 70px); min-height: calc(100svh - 70px); }
.entete.basse { min-height: 0; padding: 90px 0 50px; background: var(--sauge-clair); color: var(--encre); }
.entete.basse h1 { color: var(--vert-fonce); }
.entete .fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.entete .voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 36, 31, .05) 30%, rgba(20, 36, 31, .72)); }
.entete.basse .voile { display: none; }
.entete .contenu { position: relative; max-width: 1200px; width: 100%; margin: 0 auto; padding: 60px 24px; }
.entete h1 { color: #fff; max-width: 850px; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.entete.basse h1 { text-shadow: none; }
.entete p { max-width: 680px; font-size: 1.06rem; }
.entete .btn-ligne { color: #fff; border-color: #fff; }
.entete .btn-ligne:hover { background: #fff; color: var(--vert-fonce); }
.surtitre { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 700; margin-bottom: .8rem; }
.entete .surtitre { color: #e8efe9; }

/* Réservation en direct */
.reserver { position: relative; z-index: 2; margin-top: -40px; scroll-margin-top: 90px; }
.reserver-carte { background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre); padding: 26px 30px; display: grid; grid-template-columns: minmax(240px, 1fr) 2fr; gap: 28px; align-items: center; }
.reserver-carte h2 { font-size: 1.5rem; margin-bottom: .3em; }
.reserver-carte p { margin: 0; color: var(--gris); font-size: .92rem; }
.reserver-carte .surtitre { color: var(--sauge); margin-bottom: .3rem; }
.moteur { min-height: 64px; }
.moteur iframe { width: 100%; border: 0; min-height: 120px; }
.moteur-repli { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 10px; align-items: end; }
.moteur-repli label { display: flex; flex-direction: column; font-size: .78rem; font-weight: 700; color: var(--gris); gap: 4px; }
.moteur-repli input, .moteur-repli select { font: inherit; padding: 10px 12px; border: 1px solid var(--trait); border-radius: 10px; min-height: 48px; background: var(--papier); }

/* Sections */
.bloc { padding: 90px 0; }
.bloc.teinte { background: var(--sauge-clair); }
.bloc.sable { background: var(--sable); }
.bloc + .bloc:not(.teinte):not(.sable) { padding-top: 40px; }
.bloc .etroit + .large { margin-top: 36px; }
.duo { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.duo.inverse .texte { order: 2; }
.duo .photo { display: grid; gap: 16px; }
.duo .photo img { border-radius: var(--rayon); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--ombre); }
.duo .photo img + img { aspect-ratio: 16 / 9; }
.texte > h3 { margin-top: 1.4em; }
.atouts { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.atouts.colonnes { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 1.6rem 0; }
.atouts li { position: relative; padding-left: 28px; font-size: .95rem; }
.atouts li::before { content: ''; position: absolute; left: 0; top: .42em; width: 16px; height: 16px; border-radius: 50%; background: var(--sauge-clair) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%232f5d50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.teinte .atouts li::before { background-color: #fff; }

/* Cartes des hébergements (accueil) */
.hebergements { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 10px; }
.hebergement { background: #fff; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); display: flex; flex-direction: column; }
.hebergement .photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s; }
.hebergement .photo { overflow: hidden; display: block; }
.hebergement:hover .photo img { transform: scale(1.04); }
.hebergement .texte { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.hebergement .texte p { font-size: .95rem; }
.hebergement .btn { margin-top: auto; align-self: flex-start; }
.pastilles { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; flex-wrap: wrap; gap: 6px; }
.pastilles li { font-size: .76rem; font-weight: 700; color: var(--vert); background: var(--sauge-clair); padding: 4px 10px; border-radius: 999px; }

.cartes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 2rem; }
.carte { background: var(--sable); border-radius: var(--rayon); padding: 26px 22px; }
.carte h3 { font-size: 1.15rem; }
.carte p { font-size: .93rem; margin: 0; }

/* Avis */
.avis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 2rem; }
.avis figure { margin: 0; background: #fff; border-radius: var(--rayon); padding: 30px 28px; box-shadow: var(--ombre); display: flex; flex-direction: column; }
.avis blockquote { margin: 0 0 1.2rem; font-family: var(--titre); font-style: italic; font-size: 1.08rem; color: var(--vert-fonce); line-height: 1.55; flex: 1; }
.avis figcaption { font-weight: 700; font-size: .9rem; color: var(--sauge); }
.avis figcaption::before { content: '★★★★★'; display: block; color: #c9a227; letter-spacing: 2px; margin-bottom: 4px; }

/* Galerie et visionneuse */
.galerie { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.vignette { display: block; overflow: hidden; border-radius: 10px; aspect-ratio: 1; background: var(--sauge-clair); }
.vignette img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.vignette:hover img { transform: scale(1.06); }
.visionneuse { position: fixed; inset: 0; z-index: 200; background: rgba(15, 22, 20, .94); display: flex; align-items: center; justify-content: center; }
.visionneuse[hidden] { display: none; }
.visionneuse img { max-width: 92vw; max-height: 88vh; border-radius: 6px; }
.visionneuse button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; }
.visionneuse .fermer { top: 18px; right: 18px; }
.visionneuse .prec { left: 18px; }
.visionneuse .suiv { right: 18px; }

/* Bandeau de réservation */
.bandeau { position: relative; overflow: hidden; color: #fff; padding: 120px 0; }
.bandeau .fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bandeau .voile { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 36, 31, .82), rgba(20, 36, 31, .35)); }
.bandeau .contenu { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.bandeau .contenu > * { max-width: 620px; }
.bandeau h2 { color: #fff; }
.bandeau .btn-ligne { color: #fff; border-color: #fff; }
.bandeau .btn-ligne:hover { background: #fff; color: var(--vert-fonce); }
.bandeau .btn { background: #fff; color: var(--vert-fonce); border-color: #fff; }
.bandeau .btn.btn-ligne { background: transparent; color: #fff; }

/* Questions fréquentes */
.faq details { border-bottom: 1px solid var(--trait); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 12px; font-size: 1.6rem; color: var(--sauge); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--gris); padding-bottom: 8px; }

/* Tarifs */
.tarifs { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.tarif { background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre); padding: 36px; border-top: 5px solid var(--sauge); }
.tarif .prix { font-family: var(--titre); font-size: 1.4rem; color: var(--vert); }
.lignes { list-style: none; padding: 0; margin: 0 0 1rem; }
.lignes li { padding: 12px 0; border-bottom: 1px dashed var(--trait); }
.note { font-size: .88rem; color: var(--gris); font-style: italic; }

/* Contact */
.portrait { width: 220px; border-radius: 50%; aspect-ratio: 1; object-fit: cover; margin-bottom: 1.4rem; filter: grayscale(1); }
.tel { font-size: 1.3rem; font-weight: 700; text-decoration: none; }
.carte iframe { width: 100%; height: 260px; border: 0; border-radius: var(--rayon); }
.formulaire { background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre); padding: 34px; display: grid; gap: 16px; }
.formulaire label { display: grid; gap: 6px; font-weight: 700; font-size: .88rem; }
.formulaire input, .formulaire textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid var(--trait); border-radius: 10px; background: var(--papier); min-height: 48px; }
.formulaire input:focus, .formulaire textarea:focus { outline: 2px solid var(--sauge); border-color: var(--sauge); }
.formulaire .piege { position: absolute; left: -9999px; }
.formulaire .btn { justify-self: start; }
.etat { margin: 0; font-weight: 700; color: var(--vert); }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal p { color: var(--gris); }

/* Pied de page */
.bas { background: var(--vert-fonce); color: #dfe9e4; padding: 60px 0 40px; font-size: .92rem; }
.bas a { color: #fff; }
.bas .nom { font-family: var(--titre); font-size: 1.4rem; color: #fff; }
.colonnes-bas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

/* Apparition douce au défilement */
@media (prefers-reduced-motion: no-preference) {
  .apparait { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s; }
  .apparait.vu { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Tablette et mobile */
@media (max-width: 1080px) {
  .burger { display: block; }
  nav { position: fixed; inset: 64px 0 auto 0; background: var(--papier); flex-direction: column; align-items: stretch; padding: 16px 24px 28px; border-bottom: 1px solid var(--trait); box-shadow: var(--ombre); display: none; max-height: calc(100vh - 64px); overflow: auto; }
  nav.ouvert { display: flex; }
  nav > ul { flex-direction: column; }
  nav a, nav button { display: block; width: 100%; text-align: left; padding: 14px 8px; font-size: 1rem; }
  .sous ul { position: static; box-shadow: none; display: block; padding: 0 0 0 14px; min-width: 0; }
  .sous > button::after { display: none; }
  nav > ul > li > [aria-current] { box-shadow: none; }
  .cartes { grid-template-columns: repeat(2, 1fr); }
  .atouts.colonnes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .bloc { padding: 64px 0; }
  .duo { grid-template-columns: 1fr; gap: 32px; }
  .duo.inverse .texte { order: 0; }
  .hebergements, .avis, .tarifs, .colonnes-bas { grid-template-columns: 1fr; }
  .galerie { grid-template-columns: repeat(2, 1fr); }
  .reserver-carte { grid-template-columns: 1fr; padding: 22px; }
  .moteur-repli { grid-template-columns: 1fr 1fr; }
  .moteur-repli .btn { grid-column: 1 / -1; }
  .atouts.colonnes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entete { min-height: 52vh; }
  .bandeau { padding: 80px 0; }
}
@media (max-width: 520px) {
  .large, .etroit, .duo, .barre, .entete .contenu, .bandeau .contenu { padding-left: 16px; padding-right: 16px; }
  .cartes, .atouts { grid-template-columns: 1fr; }
  .logo .nom { font-size: 1.12rem; }
  .logo .sous-nom { font-size: .62rem; letter-spacing: .08em; }
  .tarif, .formulaire { padding: 24px; }
  .actions .btn { flex: 1 1 100%; }
}
.bloc + .reserver, .reserver:last-child { margin-top: 0; padding-bottom: 80px; }
.duo + .large > h3 { margin-top: 3rem; }
.entete.haute .voile { background: linear-gradient(180deg, rgba(20, 36, 31, .15) 20%, rgba(20, 36, 31, .78)); }
@media (max-width: 860px) { .entete .voile { background: linear-gradient(180deg, rgba(20, 36, 31, .35), rgba(20, 36, 31, .82)); } .entete { min-height: 0; padding-top: 120px; } }
.moteur-liens { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin: 14px 0 0; }
.moteur-liens a:not(.btn) { color: var(--vert); font-weight: 700; }
