/* =========================================
   VARIABLES & BASE
   ========================================= */
:root {
  --color-primary: #006196;      /* Bleu Majorelle (titres, boutons et accents) */
  --color-primary-dark: #00476e;
  --color-text: #734d3f;         /* Brun terre (texte courant et gras) */
  --color-text-dark: #734d3f;
  --color-bg: #f3ede8;           /* Fond principal beige sable */
  --color-bg-alt: #eae1d9;       /* Fond secondaire pour alterner les sections */
  --color-card: #faf7f5;         /* Fond clair lumineux pour les cartes */
  --color-border: #dcd0c6;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-display: 'Berkshire Swash', cursive;
  --max-width: 1100px;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.65;
  font-size: 16px;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-dark);
}

.accent-font {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 400;
}

/* =========================================
   EN-TÊTE & NAVIGATION
   ========================================= */
.site-header {
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-primary);
}

.brand img {
  height: 40px;
  width: auto;
  border-radius: 4px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.nav-links a.btn-nav {
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border-bottom: none;
}

.nav-links a.btn-nav:hover {
  background-color: var(--color-primary-dark);
}

/* =========================================
   BANNIÈRES HERO
   ========================================= */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.35)), url('images/hero-riad.jpg');
  background-size: cover;
  background-position: center;
  padding: 3rem 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  color: var(--color-primary);
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.9);
}

.hero-subpage {
  min-height: 280px;
}

.hero-subpage .hero-title {
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

/* =========================================
   SECTIONS, TITRES & TEXTES
   ========================================= */
.section {
  padding: 3.5rem 1.5rem;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

h1 {
  font-size: 1.9rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  line-height: 1.3;
  font-weight: 700;
}

h2 {
  font-size: 1.35rem;
  color: var(--color-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

h2:first-child {
  margin-top: 0;
}

h3 {
  font-size: 1.15rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

p {
  margin-bottom: 1rem;
  color: var(--color-text);
}

strong {
  color: var(--color-text);
  font-weight: 700;
}

.feature-list {
  list-style-type: square;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.feature-list li {
  margin-bottom: 0.75rem;
}

.feature-list li::marker {
  color: var(--color-text);
}

.feature-list strong {
  color: var(--color-text);
}

/* =========================================
   BOUTONS DE RÉSERVATION
   ========================================= */
.cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin: 2.5rem 0;
}

.btn-primary {
  display: inline-block;
  width: 100%;
  max-width: 520px;
  background-color: var(--color-primary);
  color: #ffffff;
  font-weight: 600;
  text-align: center;
  padding: 0.85rem 1.8rem;
  border-radius: 5px;
  font-size: 0.98rem;
  box-shadow: 0 2px 6px rgba(0, 97, 150, 0.25);
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--color-primary);
  color: #ffffff;
  border: none;
}

.btn-secondary:hover {
  background-color: var(--color-primary-dark);
  color: #ffffff;
}

/* =========================================
   GRILLES (2 COLONNES)
   ========================================= */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
}

.grid-2:last-child {
  margin-bottom: 0;
}

.grid-2 img {
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  width: 100%;
  object-fit: cover;
}

.floor-block {
  margin-bottom: 1.5rem;
}

/* =========================================
   CARROUSELS & LÉGENDES
   ========================================= */
.carousel-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  aspect-ratio: 1 / 1;
  background-color: var(--color-card);
}

.carousel-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.carousel-slide.active {
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.75);
}

.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

.carousel-caption,
.img-caption {
  background-color: rgba(44, 30, 24, 0.85);
  color: #ffffff;
  text-align: center;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
}

.carousel-wrapper .carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: none;
}

.carousel-wrapper .carousel-caption.active {
  display: block;
}

.carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
}

.carousel-dot.active {
  background: #ffffff;
  transform: scale(1.2);
}

/* =========================================
   PAGE CHAMBRES (le-riad-chambres.html)
   ========================================= */
.room-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.room-card:last-child {
  margin-bottom: 0;
}

.room-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.room-header h3 {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.config-label {
  text-align: center;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.room-media {
  max-width: 480px;
  margin: 1.5rem auto;
}

.room-single-img {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  background-color: var(--color-card);
}

.room-cta {
  text-align: center;
  margin-top: 1.5rem;
}

.room-cta .btn-primary {
  width: auto;
  min-width: 160px;
}

/* =========================================
   PAGE GALERIE (galerie.html)
   ========================================= */
.gallery-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.gallery-nav a {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.gallery-nav a:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

.gallery-section {
  scroll-margin-top: 90px;
}

.gallery-section h2 {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.gallery-carousel {
  max-width: 820px;
  margin: 0 auto;
  aspect-ratio: 16 / 10;
}

.gallery-carousel-portrait {
  max-width: 520px;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* =========================================
   GUIDES & ACCORDÉONS (guide-du-riad.html / guide-du-riad-en.html)
   ========================================= */
.guide-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.guide-accordion {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.guide-accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background-color 0.2s ease;
}

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

.guide-accordion summary:hover {
  background-color: var(--color-bg-alt);
}

.guide-accordion summary::after {
  content: "▾";
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}

.guide-accordion[open] summary {
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-bg-alt);
}

.guide-accordion[open] summary::after {
  transform: rotate(180deg);
}

.accordion-body {
  padding: 1.5rem;
}

.accordion-body h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.accordion-body h3:first-child {
  margin-top: 0;
}

.accordion-body ul,
.accordion-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.accordion-body li {
  margin-bottom: 0.5rem;
}

.info-box {
  background-color: var(--color-bg);
  border-left: 4px solid var(--color-primary);
  padding: 1rem 1.25rem;
  border-radius: 0 6px 6px 0;
  margin: 1rem 0;
}

.guide-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.guide-images-grid img {
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.rating-list {
  list-style: none;
  padding-left: 0;
}

.rating-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border);
}

.rating-list li:last-child {
  border-bottom: none;
}

/* =========================================
   CARTE GOOGLE MAPS & PLAN DU SITE
   ========================================= */
.map-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.sitemap-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.sitemap-list a {
  text-decoration: underline;
  font-size: 0.95rem;
}

/* =========================================
   PIED DE PAGE
   ========================================= */
.site-footer {
  background-color: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 1.5rem;
  color: var(--color-text);
  font-size: 0.95rem;
}

.footer-contact {
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.footer-contact a {
  text-decoration: underline;
}

.copyright {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-text);
}

/* =========================================
   RESPONSIVE (MOBILE / TABLETTE)
   ========================================= */
@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    gap: 1rem;
  }

  .map-container {
    padding-top: 75%;
  }

  .room-card,
  .guide-card {
    padding: 1.5rem;
  }
}