@charset "UTF-8";

/* Palette & base */
:root {
  --bg: #EDC79F;      /* fond principal */
  --text: #FF925C;    /* texte */
  --accent: #FDE68A;  /* boutons / détails */
  --white: #ffffff;
  --black: #111111;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Nunito, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif;
  line-height: 1.6;
  padding-top: 64px; /* offset for fixed navbar */
}

a { color: var(--text); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Layout helpers */
.section { padding: 4rem 0; }
.section-tight { padding: 2rem 0; }

/* Navbar */
.navbar { background: var(--white); border-bottom: 1px solid rgba(0,0,0,.05); z-index: 1030; }
.navbar .navbar-brand { color: var(--text); font-weight: 700; letter-spacing: .02em; }
.navbar .nav-link { color: var(--text); }
.navbar .nav-link.active { border-bottom: 2px solid var(--accent); }
.navbar .navbar-toggler { border-color: var(--accent); color: var(--text); }

/* Hero */
.hero {
  position: relative;
  min-height: 80vh;
  display: grid;
  place-items: center;
  text-align: center;
  background: url('../assets/img/bg-masthead1.jpg') center/cover no-repeat;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(237, 199, 159, .55); /* voile uni (sans dégradé) pour lisibilité */
}
.hero > .hero-inner { position: relative; z-index: 1; }
.hero h1 { font-family: 'Varela Round', Nunito, Arial, sans-serif; font-size: clamp(2rem, 6vw, 4rem); letter-spacing: .3rem; text-transform: uppercase; margin: 0 0 .5rem; }
.hero p { margin: 0 0 1.5rem; opacity: .9; }

/* Buttons */
.btn-primary { background: var(--accent); color: var(--text); border: 0; padding: .9rem 1.4rem; text-transform: uppercase; letter-spacing: .1rem; border-radius: .5rem; }
.btn-primary:hover { filter: brightness(0.95); }

/* Cards / simple blocks */
.card-clean { background: var(--white); color: var(--text); border-radius: .75rem; box-shadow: 0 2px 8px rgba(0,0,0,.06); border: 1px solid rgba(0,0,0,.05); }
.card-clean .card-body { padding: 1.25rem; }

/* Headings */
h2.section-title { font-family: 'Varela Round', Nunito, Arial, sans-serif; text-align: center; margin: 0 0 2rem; font-size: clamp(1.4rem, 3.5vw, 2rem); text-transform: none; }
#avis .section-title .stars { font-size: .9em; letter-spacing: .15em; opacity: .7; }

/* Tighter spacing for Avis title */
#avis .section-title { margin-bottom: .75rem; }

/* Section spacing tighter for avis */
#avis.section { padding: 3rem 0; }

/* Framed standalone images (white border) */
.image-framed { background: var(--white); border: 6px solid var(--white); border-radius: .75rem; box-shadow: 0 2px 10px rgba(0,0,0,.08); }

/* Avis carousel (simple) */
.avis-wrapper { max-width: 640px; margin: 0 auto; position: relative; overflow: hidden; }
/* Laisse la hauteur s'adapter à l'image active */
.avis-track { position: relative; width: 100%; min-height: 200px; }
.avis-item { position: absolute; inset: 0; display: grid; place-items: center; padding: .5rem; opacity: 0; transition: opacity .4s ease; }
.avis-item.active { position: relative; inset: auto; opacity: 1; }
.avis-item img {
  /* Ne rogne jamais; suit la largeur dispo */
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--white); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.carousel-btn:hover { filter: brightness(0.95); }
.carousel-btn.prev { left: .5rem; }
.carousel-btn.next { right: .5rem; }

/* Contact */
.contact .icon { font-size: 1.5rem; margin-bottom: .5rem; }
.contact .divider { height: 3px; width: 48px; background: var(--accent); margin: .5rem auto 1rem; border-radius: 2px; }
/* Empêche les longues adresses (mail) de déborder */
.contact a {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Footer */
footer { background: #000; color: rgba(255,255,255,.75); padding: 1.25rem 0; font-size: .9rem; }
footer a { color: rgba(255,255,255,.9); text-decoration: underline; }

@media (min-width: 768px) {}

/* Mobile tuning for avis: reduce overlap of arrows */
@media (max-width: 767.98px) {
  .avis-wrapper { padding: 0 1.25rem; }
  .carousel-btn { width: 32px; height: 32px; }
}
@media (max-width: 575.98px) {
  .avis-wrapper { padding: 0 1.75rem; }
  .carousel-btn.prev { left: 0; }
  .carousel-btn.next { right: 0; }
}

/* Small utilities */
.text-muted { opacity: .75; }
.text-center { text-align: center !important; }
.mt-3 { margin-top: 1rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* Responsive tweaks when no Bootstrap grid available
   (we still include Bootstrap, but keep this for resilience) */
@media (max-width: 991.98px) {
  .navbar .nav-link { padding: .5rem 0; display: block; }
}
/* promoted to styles.css */
