/* ==========================================================================
   Terra Vigneronne — blocs : en-tete, heros, cartes, tarifs, formulaire, pied
   ========================================================================== */

/* --- 1. En-tete --------------------------------------------------------- */
.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--vert-profond);
  color: var(--creme);
  transition: box-shadow var(--normal) var(--entree);
}

.entete[data-defile="oui"] { box-shadow: var(--ombre-2); }

.entete .enveloppe {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--e-3);
  min-height: 5.5rem;
  transition: min-height var(--normal) var(--entree);
}

.entete[data-defile="oui"] .enveloppe { min-height: 4.5rem; }

.marque {
  display: flex;
  align-items: center;
  gap: .875rem;
  text-decoration: none;
  color: inherit;
  margin-right: auto;
}

.marque img {
  width: 3.25rem;
  height: 3.25rem;
  flex: none;
  transition: width var(--normal) var(--entree), height var(--normal) var(--entree);
}

.entete[data-defile="oui"] .marque img { width: 2.75rem; height: 2.75rem; }

.marque-texte { display: grid; gap: .15rem; line-height: 1.1; }

.marque-nom {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.marque-baseline {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--taupe-clair);
}

.nav ul {
  display: flex;
  align-items: center;
  gap: var(--e-3);
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav a {
  position: relative;
  display: inline-block;
  padding: .4rem 0;
  font-size: var(--t-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--creme);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--taupe-clair);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--normal) var(--sortie);
}

.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] { color: var(--taupe-clair); }

.tel-entete {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1rem;
  border: 1px solid rgba(217, 190, 156, .45);
  border-radius: var(--rayon);
  font-size: var(--t-sm);
  font-weight: 600;
  text-decoration: none;
  color: var(--taupe-clair);
  white-space: nowrap;
  transition: background var(--normal) var(--entree), color var(--normal) var(--entree);
}

.tel-entete:hover { background: var(--taupe); color: var(--encre); border-color: var(--taupe); }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: none;
  border: 1px solid rgba(217, 190, 156, .45);
  border-radius: var(--rayon);
}

.burger span {
  display: block;
  width: 1.25rem;
  height: 1.5px;
  margin-inline: auto;
  background: var(--creme);
  transition: transform var(--normal) var(--sortie), opacity var(--rapide);
}

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.entete__progression {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--taupe);
  transform: scaleX(var(--progression, 0));
  transform-origin: left;
}

@media (max-width: 62rem) {
  .burger { display: flex; }
  .tel-entete { padding: .55rem .7rem; }

  /* Le numero disparait a l oeil mais reste le nom accessible du lien :
     en display:none, le lien telephone n a plus de nom du tout. */
  .tel-entete span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--vert-profond);
    border-top: 1px solid rgba(217, 190, 156, .2);
    display: none;
    box-shadow: var(--ombre-2);
  }

  .nav[data-ouvert] { display: block; }

  .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--e-1) clamp(1.25rem, 4vw, 3rem) var(--e-3);
  }

  .nav a { padding: .85rem 0; border-bottom: 1px solid rgba(217, 190, 156, .14); }
  .nav a::after { display: none; }
}

@media (max-width: 30rem) {
  .marque-nom { font-size: 1rem; letter-spacing: .05em; }
  .marque-baseline { display: none; }
  .marque img { width: 2.5rem; height: 2.5rem; }
  .entete .enveloppe { min-height: 4.5rem; gap: var(--e-2); }
}

/* --- 2. Heros ----------------------------------------------------------- */
.heros {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(84vh, 46rem);
  padding-block: var(--e-6) var(--e-6);
  color: var(--creme);
  background: var(--vert-profond);
  overflow: hidden;
  isolation: isolate;
}

.heros__fond {
  position: absolute;
  inset: -7% 0;
  z-index: -2;
}

.heros__fond img { width: 100%; height: 100%; object-fit: cover; }

.heros::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(34, 56, 42, .92) 0%, rgba(34, 56, 42, .74) 38%, rgba(34, 56, 42, .18) 78%, rgba(34, 56, 42, .1) 100%),
    linear-gradient(180deg, rgba(34, 56, 42, .55) 0%, rgba(34, 56, 42, .2) 42%, rgba(34, 56, 42, .8) 100%);
}

.heros .enveloppe { width: 100%; }
.heros__texte { max-width: 44rem; }
.heros h1 { color: var(--creme); }
.heros .sur-titre { color: var(--taupe-clair); }
.heros .sur-titre::before { background: var(--taupe-clair); }
.heros .lede { color: rgba(251, 246, 242, .9); max-width: 42ch; margin-top: var(--e-3); }
.heros .actions { margin-top: var(--e-4); }

.heros__reperes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-3) var(--e-5);
  margin-top: var(--e-5);
  padding-top: var(--e-3);
  border-top: 1px solid rgba(217, 190, 156, .3);
  list-style: none;
}

.heros__reperes li {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: var(--t-sm);
  color: rgba(251, 246, 242, .92);
}

.heros__reperes svg { flex: none; width: 1.05rem; height: 1.05rem; color: var(--taupe-clair); }

/* En-tete des pages interieures */
.entete-page {
  position: relative;
  padding-block: var(--e-6) var(--e-5);
  background: var(--sable);
  border-bottom: 1px solid var(--bordure);
  overflow: hidden;
}

.entete-page::after {
  content: "";
  position: absolute;
  right: -6rem;
  top: -6rem;
  width: 20rem;
  height: 20rem;
  border: 1px solid var(--sable-moyen);
  border-radius: 50%;
  pointer-events: none;
}

.entete-page .lede { margin-top: var(--e-3); }

/* --- 3. Cartes ---------------------------------------------------------- */
.carte {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: var(--e-4);
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  transition: transform var(--normal) var(--sortie), box-shadow var(--normal) var(--sortie);
}

.carte:hover { transform: translateY(-4px); box-shadow: var(--ombre-2); }

.carte__icone {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: .35rem;
  border-radius: 50%;
  background: var(--sable);
  color: var(--vert-sombre);
}

.carte__icone svg { width: 1.4rem; height: 1.4rem; }
.carte h2 { font-size: var(--t-xl); letter-spacing: 0; }
.carte h2, .carte h3 { margin-bottom: .1rem; }

.carte__prix {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--taupe-sombre);
}

.carte p:not(.carte__prix) { color: var(--texte-doux); font-size: var(--t-sm); }

.carte--sable { background: var(--sable); }

/* --- 4. Etapes ---------------------------------------------------------- */
.etapes { counter-reset: etape; }

.etape {
  position: relative;
  padding-top: var(--e-4);
  border-top: 1px solid var(--bordure);
}

.etape::before {
  counter-increment: etape;
  content: counter(etape, decimal-leading-zero);
  display: block;
  margin-bottom: .75rem;
  font-family: var(--serif);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--taupe);
}

.etape p { color: var(--texte-doux); font-size: var(--t-sm); margin-top: .4rem; }

/* --- 5. Galerie --------------------------------------------------------- */
.galerie { display: grid; gap: var(--e-3); }

@media (min-width: 48rem) {
  .galerie { grid-template-columns: 1fr 1fr; }
}

.galerie figure { margin: 0; }

.galerie img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--rayon);
}

.vignette {
  border-radius: var(--rayon);
  box-shadow: var(--ombre-1);
}

/* --- 6. Offre et tarifs ------------------------------------------------- */
.offre {
  display: grid;
  gap: var(--e-4);
  padding: var(--e-5);
  background: var(--vert-profond);
  color: var(--creme);
  border-radius: var(--rayon);
}

@media (min-width: 52rem) {
  .offre--duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--e-6); align-items: center; }
}

.offre h2, .offre h3 { color: var(--creme); }
.offre .sur-titre { color: var(--taupe-clair); }
.offre .sur-titre::before { background: var(--taupe-clair); }

.offre__montant {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: var(--e-2);
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1;
  color: var(--taupe-clair);
}

.offre__montant small {
  font-family: var(--sans);
  font-size: var(--t-sm);
  font-weight: 500;
  letter-spacing: .04em;
  color: rgba(251, 246, 242, .82);
}

.offre__note { margin-top: var(--e-2); color: rgba(251, 246, 242, .82); font-size: var(--t-sm); }

.liste-cochee { list-style: none; padding: 0; display: grid; gap: .7rem; }

.liste-cochee li {
  position: relative;
  padding-left: 1.85rem;
  font-size: var(--t-sm);
}

.liste-cochee li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: .85rem;
  height: .5rem;
  border-left: 1.5px solid var(--taupe-sombre);
  border-bottom: 1.5px solid var(--taupe-sombre);
  transform: rotate(-45deg);
}

.offre .liste-cochee li::before,
.section--sombre .liste-cochee li::before { border-color: var(--taupe-clair); }

.liste-cochee strong { font-weight: 600; }

.tarifs { width: 100%; border-collapse: collapse; text-align: left; }

.tarifs caption { text-align: left; color: var(--texte-doux); font-size: var(--t-sm); padding-bottom: var(--e-2); }

.tarifs th {
  padding: .9rem 1rem;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--vert-profond);
  border-bottom: 1px solid var(--vert-profond);
}

.tarifs td { padding: 1.3rem 1rem; border-bottom: 1px solid var(--bordure); vertical-align: top; }
.tarifs tbody tr { transition: background var(--rapide) var(--entree); }
.tarifs tbody tr:hover { background: var(--creme); }
.tarifs td strong { display: block; font-size: var(--t-base); color: var(--vert-profond); }
.tarifs td span { display: block; margin-top: .35rem; font-size: var(--t-sm); color: var(--texte-doux); }

.tarifs td:last-child {
  white-space: nowrap;
  font-weight: 600;
  color: var(--taupe-sombre);
  text-align: right;
}

@media (max-width: 42rem) {
  .tarifs thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tarifs tr { display: block; border-bottom: 1px solid var(--bordure); padding-block: var(--e-2); }
  .tarifs td { display: block; border: 0; padding: .3rem 0; }
  .tarifs td:last-child { text-align: left; }
}

/* --- 7. FAQ ------------------------------------------------------------- */
.faq { max-width: 52rem; }

.faq details {
  border-bottom: 1px solid var(--bordure);
}

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--e-2);
  padding: 1.35rem 0;
  font-family: var(--serif);
  font-size: var(--t-xl);
  font-weight: 600;
  color: var(--vert-profond);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  flex: none;
  width: .7rem;
  height: .7rem;
  margin-top: .45em;
  border-right: 1.5px solid var(--taupe-sombre);
  border-bottom: 1.5px solid var(--taupe-sombre);
  transform: rotate(45deg);
  transition: transform var(--normal) var(--sortie);
}

.faq details[open] summary::after { transform: rotate(-135deg); }
.faq__corps { overflow: hidden; }
.faq__corps p { padding-bottom: 1.35rem; color: var(--texte-doux); max-width: 62ch; }

/* --- 8. Formulaire ------------------------------------------------------ */
.formulaire { display: grid; gap: var(--e-3); }
.formulaire .duo-champs { display: grid; gap: var(--e-3); }

@media (min-width: 40rem) {
  .formulaire .duo-champs { grid-template-columns: 1fr 1fr; }
}

.champ { display: grid; gap: .4rem; }

.champ label {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--vert-profond);
}

.champ input, .champ select, .champ textarea {
  width: 100%;
  padding: .8rem .95rem;
  font: inherit;
  font-size: var(--t-sm);
  color: var(--texte);
  background: var(--surface);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  transition: border-color var(--rapide) var(--entree), box-shadow var(--rapide) var(--entree);
}

.champ textarea { resize: vertical; min-height: 9rem; }

.champ input:focus, .champ select:focus, .champ textarea:focus {
  border-color: var(--vert-sombre);
  box-shadow: 0 0 0 3px rgba(51, 87, 64, .12);
}

.champ input::placeholder, .champ textarea::placeholder { color: #7B8478; }

.consentement {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-size: var(--t-sm);
  font-weight: 400;
  color: var(--texte-doux);
  cursor: pointer;
}

.consentement input { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .22rem; accent-color: var(--vert-sombre); }
.consentement a { color: var(--vert-sombre); }

.pot-de-miel { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alerte {
  padding: .95rem 1.15rem;
  border-left: 3px solid var(--rouge);
  border-radius: var(--rayon);
  background: #FBEDEC;
  color: #7A1C16;
  font-size: var(--t-sm);
}

.alerte--succes { border-left-color: var(--vert); background: #EDF3EE; color: #244A2C; }

.obligatoire { color: var(--taupe-sombre); }

.liste-contact { list-style: none; padding: 0; display: grid; gap: var(--e-2); }

.liste-contact li { display: grid; gap: .15rem; }

.liste-contact strong {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--taupe-sombre);
}

.liste-contact a { color: var(--vert-sombre); text-decoration: none; border-bottom: 1px solid var(--sable-moyen); }
.liste-contact a:hover { border-bottom-color: var(--taupe); color: var(--taupe-sombre); }

/* --- 9. Bandeau d'appel ------------------------------------------------- */
.appel {
  display: grid;
  gap: var(--e-3);
  align-items: center;
  padding: var(--e-5);
  background: var(--vert-profond);
  color: var(--creme);
  border-radius: var(--rayon);
}

@media (min-width: 52rem) {
  .appel { grid-template-columns: minmax(0, 1fr) auto; gap: var(--e-5); }
}

.appel h2 { color: var(--creme); }
.appel p { color: rgba(251, 246, 242, .85); margin-top: .5rem; }

/* --- 10. Prose ---------------------------------------------------------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: var(--t-2xl); margin-top: var(--e-5); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--e-4); }
.prose p, .prose ul, .prose ol { margin-top: var(--e-2); color: var(--texte-doux); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-top: .4rem; }
.prose a { color: var(--vert-sombre); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--taupe); }
.prose a:hover { color: var(--taupe-sombre); }
.prose em { color: var(--texte-doux); }
.prose strong { color: var(--texte); }

/* --- 11. Pied ----------------------------------------------------------- */
.pied {
  padding-block: var(--e-6) var(--e-3);
  background: var(--vert-profond);
  color: rgba(251, 246, 242, .84);
}

.pied__grille {
  display: grid;
  gap: var(--e-4);
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.pied h3 {
  margin-bottom: var(--e-2);
  font-family: var(--sans);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--taupe-clair);
}

.pied ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.pied a { color: rgba(251, 246, 242, .84); text-decoration: none; transition: color var(--rapide) var(--entree); }
.pied a:hover { color: var(--taupe-clair); }
.pied p { font-size: var(--t-sm); }

.pied__marque { display: grid; gap: .75rem; }
.pied__marque img { width: 3.75rem; height: 3.75rem; }

.pied__bas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--e-1) var(--e-3);
  justify-content: space-between;
  margin-top: var(--e-5);
  padding-top: var(--e-3);
  border-top: 1px solid rgba(217, 190, 156, .2);
  font-size: var(--t-xs);
  color: rgba(251, 246, 242, .7);
}

.pied__bas a { color: rgba(251, 246, 242, .7); }
