/* =================================================================
   AU CŒUR DES VIGNES — Feuille de style
   -----------------------------------------------------------------
   Organisation :
   1. Variables (couleurs, polices) — modifiables ici en un endroit
   2. Base & réglages généraux
   3. Navigation
   4. Hero
   5. Sections de contenu
   6. Galerie
   7. Contact
   8. Pied de page
   9. Responsive (adaptations mobile / tablette)
   ================================================================= */

/* ============================= 1. VARIABLES ===================== */
:root {
  /* Palette — dérivée du vignoble, décalée des clichés habituels.
     Pour changer l'ambiance, modifiez ces valeurs. */
  --feuille:      #2f4a35;  /* vert profond de feuille de vigne (couleur principale) */
  --feuille-clair:#5a7355;  /* vert olive adouci */
  --rose:         #e5a597;  /* rosé de Provence (accent chaleureux) */
  --rose-fonce:   #c8735f;  /* rosé soutenu pour survols */
  --creme:        #f7f2e9;  /* crème chaud (fond) */
  --creme-fonce:  #ece3d3;  /* crème plus dense pour contrastes doux */
  --encre:        #26221d;  /* brun-noir pour le texte */
  --encre-doux:   #5b544a;  /* texte secondaire */
  --blanc:        #ffffff;

  /* Typographies */
  --titre: 'Fraunces', Georgia, serif;      /* serif à caractère, pour les titres */
  --corps: 'Outfit', 'Segoe UI', sans-serif; /* sans-serif sobre, pour le texte */

  /* Mesures */
  --largeur-max: 1180px;
  --rayon: 4px;
  --transition: 0.3s ease;
}

/* ============================= 2. BASE ========================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--corps);
  color: var(--encre);
  background: var(--creme);
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 4vw, 3rem);
}

/* Libellés en surtitre (eyebrow) */
.eyebrow {
  font-family: var(--corps);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--rose-fonce);
  margin-bottom: 0.8rem;
}
.eyebrow--light { color: var(--rose); }

/* Titres de section */
.section-title {
  font-family: var(--titre);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.15;
  color: var(--feuille);
  margin-bottom: 2.2rem;
  max-width: 20ch;
}
.section-title--light { color: var(--creme); }

/* Boutons */
.btn {
  display: inline-block;
  font-family: var(--corps);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.95em 1.8em;
  border-radius: var(--rayon);
  transition: var(--transition);
  cursor: pointer;
  border: 1.5px solid transparent;
}
.btn--light {
  background: var(--creme);
  color: var(--feuille);
}
.btn--light:hover { background: var(--blanc); transform: translateY(-2px); }

.btn--solid {
  background: var(--rose);
  color: var(--encre);
}
.btn--solid:hover { background: var(--rose-fonce); color: var(--blanc); transform: translateY(-2px); }

.btn--whatsapp {
  background: transparent;
  color: var(--creme);
  border-color: var(--creme);
}
.btn--whatsapp:hover { background: var(--creme); color: var(--feuille); transform: translateY(-2px); }

/* ============================= 3. NAVIGATION =================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(247, 242, 233, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(47, 74, 53, 0.1);
}
.nav__inner {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 0.9rem clamp(1.2rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  font-family: var(--titre);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--feuille);
}
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--encre-doux);
  transition: var(--transition);
}
.nav__links a:hover { color: var(--feuille); }
.nav__cta {
  background: var(--feuille);
  color: var(--creme) !important;
  padding: 0.55em 1.3em;
  border-radius: var(--rayon);
}
.nav__cta:hover { background: var(--feuille-clair); }

/* ============================= 4. HERO ========================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to bottom, rgba(38,34,29,0.25), rgba(47,74,53,0.55));
}
.hero__content { position: relative; z-index: 3; color: var(--creme); padding: 0 1.5rem; max-width: 760px; }
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1.3rem;
  opacity: 0.9;
}
.hero__title {
  font-family: var(--titre);
  font-weight: 500;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 1.05;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}
.hero__tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 300;
  max-width: 34ch;
  margin: 0 auto 2.2rem;
  line-height: 1.5;
}
.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--creme);
  font-size: 1.5rem;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ============================= 5. SECTIONS ===================== */
.intro { padding: clamp(3.5rem, 8vw, 6rem) 0; background: var(--creme); }
.intro__lead {
  font-family: var(--titre);
  font-weight: 400;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1.5;
  color: var(--feuille);
  text-align: center;
  max-width: 30ch;
  margin: 0 auto;
}

/* Fil narratif vertical = signature visuelle (rappel des rangs de vigne) */
.logement {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background: var(--creme-fonce);
  position: relative;
}
.logement__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.logement__text p { margin-bottom: 1.3rem; color: var(--encre-doux); font-size: 1.05rem; }

.atouts { list-style: none; display: grid; gap: 0.9rem; }
.atouts li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.1rem;
  background: var(--creme);
  border-left: 3px solid var(--rose);
  border-radius: var(--rayon);
  font-size: 0.98rem;
  transition: var(--transition);
}
.atouts li:hover { border-left-color: var(--feuille); transform: translateX(4px); }
.atouts__ico { font-size: 1.2rem; }

/* ============================= 6. GALERIE ===================== */
.galerie { padding: clamp(3.5rem, 8vw, 6rem) 0; background: var(--creme); }
.galerie__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: var(--largeur-max);
  margin: 2.5rem auto 0;
  padding: 0 clamp(1.2rem, 4vw, 3rem);
}
.galerie__item {
  overflow: hidden;
  border-radius: var(--rayon);
  aspect-ratio: 4 / 3;
}
.galerie__item--wide { grid-column: span 2; aspect-ratio: 8 / 3; }
.galerie__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.galerie__item:hover img { transform: scale(1.05); }

/* ============================= 7. RÉGION ====================== */
.region { padding: clamp(3.5rem, 8vw, 6rem) 0; background: var(--feuille); color: var(--creme); }
.region .eyebrow { color: var(--rose); }
.region .section-title { color: var(--creme); }
.region__intro { max-width: 55ch; margin-bottom: 3rem; opacity: 0.9; font-size: 1.08rem; }
.cartes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.carte {
  background: rgba(247, 242, 233, 0.07);
  border: 1px solid rgba(247, 242, 233, 0.15);
  border-radius: var(--rayon);
  padding: 1.8rem;
  transition: var(--transition);
}
.carte:hover { background: rgba(247, 242, 233, 0.12); transform: translateY(-3px); }
.carte h3 { font-family: var(--titre); font-weight: 500; font-size: 1.3rem; margin-bottom: 0.6rem; color: var(--rose); }
.carte p { opacity: 0.88; font-size: 0.98rem; }

/* ============================= 8. CONTACT ==================== */
.contact { padding: clamp(3.5rem, 8vw, 6rem) 0; background: var(--encre); color: var(--creme); text-align: center; }
.contact__lead { max-width: 48ch; margin: 0 auto 2.5rem; opacity: 0.85; font-size: 1.08rem; }
.contact__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.contact__note {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  opacity: 0.6;
  text-transform: uppercase;
}

/* ============================= 9. PIED DE PAGE =============== */
.footer { background: var(--feuille); color: var(--creme); padding: 2.5rem 0; text-align: center; }
.footer__brand { font-family: var(--titre); font-size: 1.3rem; font-weight: 500; margin-bottom: 0.4rem; }
.footer__meta { opacity: 0.8; font-size: 0.92rem; margin-bottom: 0.8rem; }
.footer__legal { opacity: 0.5; font-size: 0.8rem; }

/* ============================= 10. RESPONSIVE ================ */

/* Tablette */
@media (max-width: 900px) {
  .logement__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .cartes { gap: 1.2rem; }
}

/* Mobile */
@media (max-width: 640px) {
  /* Navigation : on masque les liens de section, on garde la marque et Réserver */
  .nav__links a:not(.nav__cta) { display: none; }

  .galerie__grid { grid-template-columns: 1fr 1fr; }
  .galerie__item--wide { grid-column: span 2; aspect-ratio: 3 / 2; }

  .cartes { grid-template-columns: 1fr; }

  .contact__actions { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; }

  .hero { height: 90vh; }
}

/* Accessibilité : respect de la préférence "mouvement réduit" */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
