/* Polices hébergées avec le site (variables : un fichier couvre toutes les graisses) */
@font-face {
  font-family: "Cormorant Garamond";
  src: url(polices/cormorant-garamond.woff2) format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url(polices/jost.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --sauge: #98a086;
  --rose: #a76d5e;
  --rose-poudre: #ecd8cf;
  --foin: #c4a071;
  --beige: #dfccb1;
  --terre: #846044;
  --encre: #4e4038;
  --encre-douce: #7a6a5e;
  --fond: #f7f1e8;
  --bande: #ede2d1;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font: 400 17px/1.6 var(--sans);
  /* le pied de page reste en bas même sur une page courte (Avis) */
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; width: 100%; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

h2 {
  font: 600 clamp(32px, 4vw, 42px)/1.1 var(--serif);
  text-align: center;
  margin: 0 0 28px;
}

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

.origine {
  margin: 0;
  padding: 7px 16px;
  background: var(--sauge);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6em;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.drapeau {
  width: 18px;
  height: 12px;
  flex: none;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.entete { text-align: center; }
.entete .logo { display: inline-block; margin: 20px 0 14px; }
.entete .logo img { width: 150px; height: 150px; }

.nav { background: var(--bande); border-block: 1px solid var(--beige); }
.nav > ul {
  list-style: none;
  margin: 0;
  padding: 0 16px;
  display: flex;
  justify-content: center;
  gap: clamp(14px, 5vw, 56px);
}
.nav li { position: relative; }
.nav a {
  display: block;
  padding: 14px 2px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover, .nav a[aria-current] { color: var(--rose); }

.a-sous > a::after { content: " ▾"; font-size: 0.8em; }
.sous {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  min-width: 190px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--fond);
  border: 1px solid var(--beige);
  box-shadow: 0 10px 24px rgba(78, 64, 56, 0.1);
}
.sous a { padding: 9px 18px; font-size: 13px; letter-spacing: 0.1em; }
@media (hover: hover) {
  .a-sous:hover > .sous, .a-sous:focus-within > .sous { display: block; }
}
@media (hover: none) {
  .a-sous > a::after { content: none; }
}

/* ---------- Bandeau de photos ---------- */

.bandeau { overflow: hidden; margin-top: 32px; }
.bandeau-piste, .bandeau-piste .double { display: flex; gap: 12px; }
.bandeau-piste { width: max-content; }
.bandeau-piste img {
  height: clamp(280px, 36vw, 460px);
  width: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 3px;
}
.bandeau-piste.anime { animation: defile 130s linear infinite; will-change: transform; }
.bandeau:hover .anime { animation-play-state: paused; }
/* une moitié de piste + un écart, pour retomber pile sur la photo de départ */
@keyframes defile { to { transform: translateX(calc(-50% - 6px)); } }
@media (prefers-reduced-motion: reduce) {
  .bandeau { overflow-x: auto; }
  .bandeau-piste.anime { animation: none; }
}

/* ---------- Catégories ---------- */

.categories { max-width: 1120px; margin: 64px auto 80px; padding: 0 16px; }
.grille-cat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.carte-cat { display: block; text-decoration: none; }
.carte-cat .cadre { display: block; overflow: hidden; border-radius: 3px; }
.carte-cat img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 0.6s; }
.carte-cat:hover img { transform: scale(1.04); }
.carte-cat .nom {
  display: block;
  margin-top: 12px;
  text-align: center;
  font: 600 25px/1.2 var(--serif);
  color: var(--rose);
}
@media (max-width: 760px) {
  .grille-cat { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .carte-cat .nom { font-size: 21px; }
}

/* ---------- Genèse ---------- */

.genese { max-width: 1120px; margin: 64px auto 88px; padding: 0 16px; }
.genese-haut {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.genese img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; }

.genese-texte { position: relative; isolation: isolate; }
/* le logo en filigrane derrière le texte */
.genese-texte::before {
  content: "";
  position: absolute;
  inset: -24px 0;
  z-index: -1;
  background: url(logo-filigrane.png) center / contain no-repeat;
  opacity: 0.09;
}
.surtitre {
  margin: 0 0 8px;
  color: var(--sauge);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
h1 {
  font: 600 clamp(36px, 4.4vw, 50px)/1.1 var(--serif);
  margin: 0 0 26px;
}
.genese-texte p:not(.surtitre) { margin: 0 0 1.1em; max-width: 34em; }
.genese-mail a { color: var(--rose); font-weight: 500; text-underline-offset: 3px; }

.bouton {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 28px;
  background: var(--rose);
  color: #fff;
  border-radius: 2px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s;
}
.bouton:hover { background: var(--terre); }

.genese-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: clamp(40px, 6vw, 72px);
}
/* la photo en largeur occupe 2 colonnes, à la hauteur des photos voisines */
.genese-photos .large { grid-column: span 2; aspect-ratio: auto; height: 0; min-height: 100%; }

@media (max-width: 760px) {
  .genese-haut { grid-template-columns: 1fr; }
  .genese-haut img { aspect-ratio: 4 / 5; }
  .genese-photos { gap: 8px; }
}

/* ---------- Réalisations ---------- */

.realisations { max-width: 1120px; margin: 56px auto 88px; padding: 0 16px; }
.titre-page { text-align: center; margin-bottom: 18px; }

.onglets {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 30px;
  margin-bottom: 40px;
}
.onglets a {
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 500;
  color: var(--encre-douce);
  transition: color 0.2s, border-color 0.2s;
}
.onglets a:hover { color: var(--rose); }
.onglets a[aria-current] { color: var(--rose); border-color: var(--rose); }

.grille-crea { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 22px; }
.carte-crea {
  display: block;
  align-self: start;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
}
.carte-crea[hidden] { display: none; }
.carte-crea .cadre { display: block; overflow: hidden; border-radius: 3px; }
.carte-crea img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 0.6s; }
.carte-crea:hover img { transform: scale(1.04); }
.carte-crea .nom { display: block; margin-top: 12px; font: 600 21px/1.2 var(--serif); }
.prix { color: var(--rose); font-size: 15px; }
.carte-crea .prix { display: block; margin-top: 4px; }

/* fiche en grand */
html:has(.fiche[open]) { overflow: hidden; }
.fiche {
  width: min(920px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: var(--fond);
  color: var(--encre);
  box-shadow: 0 24px 60px rgba(40, 30, 25, 0.25);
}
.fiche::backdrop { background: rgba(60, 48, 40, 0.55); }
.fiche-corps {
  position: relative;
  display: grid;
  grid-template-columns: min(46vh, 420px) 1fr;
  gap: 40px;
  padding: 28px;
}
.fiche-grande { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; background: var(--bande); }
.fiche-miniatures { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fiche-miniatures button {
  width: 58px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 3px;
  background: none;
  cursor: pointer;
}
.fiche-miniatures button[aria-pressed="true"] { border-color: var(--rose); }
.fiche-miniatures img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 1px; }
.fiche-infos { align-self: center; padding-right: 12px; }
.fiche-infos .surtitre { margin-bottom: 6px; }
.fiche h2 { text-align: left; margin: 0 0 10px; }
.fiche .prix { margin: 0 0 22px; font-size: 19px; }
.fiche-description { margin: 0 0 22px; }
.fiche-fermer {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 1;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  /* fond clair pour rester visible quand la croix passe sur la photo (téléphone) */
  background: rgba(247, 241, 232, 0.9);
  color: var(--encre);
  font-size: 20px;
  cursor: pointer;
}
.fiche-fermer:hover { color: var(--rose); }

@media (max-width: 760px) {
  .onglets { gap: 6px 14px; margin-bottom: 28px; }
  .onglets a { font-size: 11.5px; letter-spacing: 0.06em; }
  .grille-crea { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; }
  .carte-crea .nom { font-size: 18px; }
  .fiche-corps { grid-template-columns: 1fr; gap: 18px; padding: 18px; }
  .fiche-grande { aspect-ratio: 4 / 5; }
  .fiche-infos { padding-right: 0; }
}

/* ---------- Avis ---------- */

.avis { max-width: 1120px; margin: 56px auto 88px; padding: 0 16px; text-align: center; }
.grille-avis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin: 12px 0 40px;
  text-align: left;
}
.grille-avis:empty { display: none; }
.carte-avis { margin: 0; padding: 26px 28px; background: var(--bande); border-radius: 3px; }
.carte-avis blockquote { margin: 0 0 14px; font: 500 21px/1.4 var(--serif); }
.carte-avis figcaption {
  color: var(--rose);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.etoiles { color: var(--foin); letter-spacing: 2px; white-space: nowrap; }
.etoiles .vides { color: var(--beige); }
.carte-avis .etoiles { display: block; margin-bottom: 10px; font-size: 17px; }
.avis-resume {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: -4px 0 22px;
  color: var(--encre-douce);
  font-size: 15px;
}
.avis-resume[hidden] { display: none; }
.avis-resume .etoiles { font-size: 20px; }
.avis-resume strong { font: 600 26px var(--serif); color: var(--encre); }
.avis-haut { margin: 0 0 36px; }

.form-avis { max-width: 640px; margin: 56px auto 0; text-align: left; }
.form-avis h2 { margin-bottom: 22px; }
.form-avis .champs { grid-template-columns: 1fr auto; }
.etoiles-choix { min-width: 0; margin: 0; padding: 0; border: 0; }
.etoiles-choix legend {
  margin-bottom: 2px;
  padding: 0;
  color: var(--encre-douce);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
/* les étoiles sont écrites de 5 à 1 : row-reverse les remet de 1 à 5 */
.etoiles-boutons { display: flex; flex-direction: row-reverse; justify-content: flex-end; }
.etoiles-boutons input { position: absolute; width: 1px; height: 1px; opacity: 0; }
/* .form-avis devant : passe avant le style des étiquettes du formulaire de contact (.champs label) */
.form-avis .etoiles-boutons label {
  display: inline-block;
  padding: 0 2px;
  color: var(--beige);
  font-size: 32px;
  line-height: 1.25;
  cursor: pointer;
  transition: color 0.15s;
}
.form-avis .etoiles-boutons label:hover,
.form-avis .etoiles-boutons label:hover ~ label,
.form-avis .etoiles-boutons input:checked ~ label { color: var(--foin); }
.etoiles-boutons input:focus-visible + label { outline: 2px solid var(--sauge); outline-offset: 1px; border-radius: 2px; }
.lecteur { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.piege { position: absolute; left: -9999px; }
.turnstile { min-height: 65px; margin-top: 22px; }
.form-avis .bouton { margin-top: 16px; border: 0; cursor: pointer; font-family: var(--sans); }
.form-avis .bouton:disabled { opacity: 0.6; cursor: wait; }
.avis-mention { margin: 16px 0 0; color: var(--encre-douce); font-size: 13px; }
@media (max-width: 760px) {
  .form-avis .champs { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */

.contact { max-width: 1040px; margin: 56px auto 88px; padding: 0 16px; }
.contact-corps {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
  margin-top: 36px;
}
.champs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.champs label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--encre-douce);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.champs .large { grid-column: 1 / -1; }
.facultatif { font-weight: 400; letter-spacing: 0; text-transform: none; }
.champs input, .champs select, .champs textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--beige);
  border-radius: 3px;
  background: #fffdf9;
  color: var(--encre);
  font: 400 16px/1.4 var(--sans);
  letter-spacing: 0;
  text-transform: none;
}
.champs select {
  appearance: none;
  padding-right: 36px;
  background: #fffdf9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237a6a5e' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 13px center / 12px 8px;
}
.champs textarea { min-height: 150px; resize: vertical; }
.champs :focus { outline: 2px solid var(--sauge); outline-offset: 1px; border-color: var(--sauge); }
.formulaire .bouton { margin-top: 24px; border: 0; cursor: pointer; font-family: var(--sans); }
.formulaire .bouton:disabled { opacity: 0.6; cursor: wait; }
.retour { margin: 14px 0 0; min-height: 1.6em; color: var(--encre-douce); }

.coordonnees {
  display: grid;
  gap: 24px;
  padding: 26px 28px;
  background: var(--bande);
  border-radius: 3px;
}
.coordonnees:empty { display: none; }
.coordonnees p { margin: 0; }
.coordonnees .surtitre { margin-bottom: 4px; }
.coordonnees a { text-decoration: none; }
.coordonnees a:hover { color: var(--rose); }
.a-completer { color: var(--encre-douce); font-style: italic; }

@media (max-width: 760px) {
  .contact-corps { grid-template-columns: 1fr; margin-top: 24px; }
  .coordonnees { order: -1; }
  .champs { grid-template-columns: 1fr; }
}

/* ---------- Mentions légales ---------- */

.mentions { max-width: 760px; margin: 56px auto 88px; padding: 0 16px; }
.mentions .maj { margin: -6px 0 24px; text-align: center; color: var(--encre-douce); font-size: 14px; }
.mentions h2 { margin: 40px 0 14px; text-align: left; font-size: 28px; }
.mentions dl { display: grid; grid-template-columns: 210px 1fr; gap: 8px 20px; margin: 0; }
.mentions dt {
  padding-top: 3px;
  color: var(--encre-douce);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.mentions dd { margin: 0; }
.mentions p { margin: 0 0 1em; }
.mentions a { color: var(--rose); }
@media (max-width: 520px) {
  .mentions dl { grid-template-columns: 1fr; gap: 2px; }
  .mentions dd { margin-bottom: 12px; }
}

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

.pied {
  background: var(--rose-poudre);
  text-align: center;
  padding: 36px 16px 30px;
  font-size: 14px;
}
.pied p { margin: 0; }
.pied-nom { font: 600 24px var(--serif); }
.pied nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 14px 0 18px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12.5px;
}
.pied a { text-decoration: none; }
.pied a:hover { color: var(--rose); }
.pied-mentions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5em;
  color: var(--encre-douce);
  font-size: 13px;
}

/* ---------- Téléphone ---------- */

@media (max-width: 520px) {
  body { font-size: 16px; }
  .origine { font-size: 11.5px; }
  .entete .logo { margin: 16px 0 10px; }
  .entete .logo img { width: 112px; height: 112px; }
  .nav > ul { gap: 14px; }
  .nav a { font-size: 12px; letter-spacing: 0.08em; padding: 12px 0; }
  .bandeau { margin-top: 22px; }
  .categories { margin: 44px auto 56px; }
}
