/* ==========================================================
   BUNGALOW 50 — Site vitrine
   ========================================================== */

/* ---- Reset / Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---- Tokens (modifie ces variables pour repeindre tout le site) ---- */
:root {
  --color-bg: #FFFFFF;
  --color-cream: #F5F1EA;        /* fond crème des sections "douces"   */
  --color-text: #1A1A1A;         /* corps de texte principal           */
  --color-text-soft: #4A4A4A;    /* paragraphes longs, légèrement gris */
  --color-muted: #8C8678;        /* labels, eyebrow, infos secondaires */
  --color-accent: #B89968;       /* étoiles, hover, accents            */
  --color-dark: #1F1D1A;         /* section services + footer          */
  --color-line: rgba(26, 26, 26, 0.12); /* séparateurs                 */

  --font-serif: 'Playfair Display', 'Georgia', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1280px;   /* largeur max du contenu                     */
  --header-h: 80px;      /* hauteur du header fixe (utilisée en scroll)*/

  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition);
}

a:hover {
  opacity: 0.65;
}

button {
  cursor: pointer;
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  font-family: var(--font-sans);
}

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.65);
}

.lead {
  font-size: 1.1rem;
  color: var(--color-text-soft);
  max-width: 720px;
  line-height: 1.7;
}

.muted {
  color: var(--color-muted);
}

/* ---- Container / Layout ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

.section-cream {
  background: var(--color-cream);
}

.section-dark {
  background: var(--color-dark);
  color: #F5F1EA;
}

.section-dark h2,
.section-dark h3 {
  color: #FFFFFF;
}

.section-head {
  margin-bottom: 4rem;
  max-width: 800px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.header.scrolled {
  border-bottom-color: var(--color-line);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 1;
}

.logo img {
  height: 48px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 2.25rem;
  margin-left: auto;
  margin-right: 2rem;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  position: relative;
  padding: 0.5rem 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width var(--transition);
}

.nav a:hover {
  opacity: 1;
}

.nav a:hover::after {
  width: 100%;
}

.social {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--color-text);
  transition: all var(--transition);
}

.social a:hover {
  background: var(--color-cream);
  opacity: 1;
}

.menu-toggle {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  position: relative;
  z-index: 200;
}

.menu-toggle span {
  display: block;
  height: 1.5px;
  background: var(--color-text);
  transition: all var(--transition);
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  /* dvh = dynamic viewport height (corrige la barre Safari iOS).
     Le 100vh ci-dessus reste en fallback pour les vieux navigateurs. */
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #FFFFFF;
  overflow: hidden;
  padding: var(--header-h) 1.5rem 3rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-logo {
  margin: 0 0 1.5rem 0;
  line-height: 0;
  display: inline-block;
}

.hero-logo img {
  width: clamp(280px, 60vw, 700px);
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 30px rgba(0, 0, 0, 0.3));
}

.hero-tagline {
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 300;
  opacity: 0.95;
}

.hero-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 400;
  margin-bottom: 3rem;
  opacity: 0.95;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
}

.hero-cta:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #FFFFFF;
  opacity: 1;
}

/* ---- Grids ---- */
.grid {
  display: grid;
  gap: 1.5rem;
}

/* Grille 3 colonnes (boutique) — align-items:start pour que les photos
   de hauteurs différentes alignent leurs hauts plutôt que de s'étirer. */
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
}

.photo {
  overflow: hidden;
  background: var(--color-cream);
}

.photo img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.photo:hover img {
  transform: scale(1.03);
}

/* ---- Vision ---- */
.vision-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.vision-photos {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.vision-photos picture {
  display: block;
  overflow: hidden;
}

.vision-photos img {
  width: 100%;
  height: auto;
  display: block;
}

/* Décalage horizontal des 2 photos secondaires pour créer un effet
   "magazine" en quinconce dans les colonnes latérales (desktop only). */
.vision-photos-left picture:nth-child(2) {
  margin-left: 1.5rem;
}

.vision-photos-right picture:nth-child(1) {
  margin-right: 1.5rem;
}

.vision-text {
  text-align: center;
  padding: 0 1rem;
}

.vision-text p {
  color: var(--color-text-soft);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.vision-meta {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-text);
  margin-top: 2rem !important;
}

.vision-bottom {
  max-width: 600px;
  margin: 0 auto;
}

.vision-bottom img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- Founders ---- */
.founders-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.founders-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.founders-text h2 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.founders-role {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.founders-text p {
  color: var(--color-text-soft);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.founders-text strong {
  color: var(--color-text);
  font-weight: 600;
}

/* ---- Services (dark) ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.service {
  position: relative;
  padding-top: 1rem;
}

.service-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
  font-weight: 400;
  font-style: italic;
}

.service h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service p {
  color: rgba(245, 241, 234, 0.75);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---- Reviews ---- */
.reviews {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto 3rem;
}

.review {
  background: var(--color-bg);
  padding: 2.5rem;
  border-radius: 4px;
  text-align: center;
}

.stars {
  color: var(--color-accent);
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  margin-bottom: 1.25rem;
}

.review p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-text);
  line-height: 1.7;
}

.reviews-cta {
  text-align: center;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.85rem 1.75rem;
  border-radius: 100px;
  transition: all var(--transition);
}

.btn-outline {
  border: 1px solid var(--color-text);
  color: var(--color-text);
  background: transparent;
}

.btn-outline:hover {
  background: var(--color-text);
  color: #FFFFFF;
  opacity: 1;
}

.btn-text {
  padding: 0.5rem 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.btn-text:hover {
  opacity: 1;
  color: var(--color-accent);
}

/* ---- Contact ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-block h3 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.contact-block p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.contact-block a {
  color: var(--color-text);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.contact-block a:hover {
  border-bottom-color: var(--color-accent);
  color: var(--color-accent);
  opacity: 1;
}

.contact-social {
  display: flex;
  gap: 1rem;
}

.contact-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-line);
}

.contact-social a:hover {
  background: var(--color-text);
  color: #FFFFFF;
  border-color: var(--color-text);
  opacity: 1;
}

/* La carte s'étire pour matcher la hauteur de la colonne contact-info,
   plutôt qu'une hauteur fixe (qui laissait un espace blanc). */
.contact-map {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
  background: var(--color-cream);
  min-height: 500px;
  display: flex;
}

.contact-map iframe {
  flex: 1;
  width: 100%;
  border: 0;
  display: block;
}

/* ---- Footer ---- */
.footer {
  background: var(--color-dark);
  color: rgba(245, 241, 234, 0.85);
  padding: 4rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  width: 180px;
  height: auto;
  display: block;
  margin-bottom: 0.75rem;
}

.footer-tag {
  margin-top: 0.75rem;
  color: rgba(245, 241, 234, 0.6);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-cols h4 {
  color: #FFFFFF;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.footer-cols p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(245, 241, 234, 0.7);
}

.footer-cols a:hover {
  color: var(--color-accent);
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(245, 241, 234, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(245, 241, 234, 0.5);
}

/* ==========================================================
   RESPONSIVE — Tablette
   ========================================================== */
@media (max-width: 1024px) {
  .vision-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .vision-photos {
    flex-direction: row;
  }

  .vision-photos picture {
    flex: 1;
  }

  .vision-photos-left picture:nth-child(2),
  .vision-photos-right picture:nth-child(1) {
    margin: 0;
  }

  .founders-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .founders-photo {
    max-width: 500px;
    margin: 0 auto;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .nav {
    gap: 1.5rem;
  }
}

/* ==========================================================
   RESPONSIVE — Mobile
   ========================================================== */
@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }

  .section-head {
    margin-bottom: 2.5rem;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 80%;
    max-width: 360px;
    background: var(--color-cream);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    margin: 0;
    z-index: 150;
    padding: 2rem;
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav a {
    font-size: 1.4rem;
    font-family: var(--font-serif);
    font-weight: 500;
  }

  .menu-toggle {
    display: flex;
  }

  .social {
    display: none;
  }

  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .vision-photos {
    flex-direction: column;
  }

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

  .review {
    padding: 2rem 1.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-cols {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-map {
    min-height: 350px;
  }

  .contact-map iframe {
    min-height: 350px;
  }

  .hero-cta {
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .header-inner {
    padding: 0 1.25rem;
  }

  .hero {
    padding: var(--header-h) 1rem 2rem;
  }
}

/* ---- Reveal animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}
