:root {
  --primary-color: #FFD700; /* Doré */
  --secondary-color: #1e3a8a; /* Bleu foncé */
  --logo-reserve: clamp(140px, 21vh, 230px); /* Espace réservé à gauche pour le logo qui dépasse (x1.3) */
  --carousel-focus-y: 5%; /* position verticale du focus de l'image de home */

}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Playfair Display';

}


header {
  background-color: #000000;
}

nav {
  /* Laisse la hauteur s'adapter pour éviter les chevauchements */
  min-height: 10vh;
  height: auto; /* au lieu d'une hauteur fixe */
  width: 100vw; /* Prend toute la largeur */
  background: #000000; /* Ou autre couleur */
  display: flex;
  align-items: center; /* Centrer les éléments verticalement */
  justify-content: space-between; /* Répartir les éléments */
  padding: 0 20px; /* Petit padding sur les côtés */
  position: fixed; /* Fixer en haut */
  top: 0;
  left: 0;
  z-index: 1000; /* Toujours au-dessus des autres éléments */
}

:root { --topbar-h: 28px; } /* plus compact */

nav.has-topbar{
  /* garde ton display/flex d’origine */
  position: fixed; /* ou fixed si c’était le cas chez toi */
  top: 0;
  z-index: 4000;
  padding-top: var(--topbar-h); /* décale le contenu du nav sous la topbar */
}

.nav-topbar{
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background-color: #81746b;
  color: #FFFFFF;
  display: flex; align-items: center;
  overflow: hidden;
  z-index: 1;
}

.nav-topbar .swiper{ width: 100%; height: 100%; }
.nav-topbar .swiper-slide{
  display:flex; align-items:center; justify-content:center;
  padding: 0 12px; text-align:center; font-size: 1.1rem; line-height:1.3;
}

/* Si ton nav est en position: fixed; ajoute un offset au premier bloc de page pour éviter l’écrasement */
body.has-fixed-nav .home-section{ margin-top: var(--topbar-h); }



body {
  padding-top: 0; /* décalage géré dynamiquement par JS (load-header.js) */
  overflow-x : hidden;
}
/* Logo en dépassement (comme avant) sans casser la hauteur du header */
nav.has-topbar { padding-left: calc(20px + var(--logo-reserve)); }
nav .logo {
  position: absolute; /* ne participe pas au flux, évite de pousser le header */
  left: 20px;
  top: calc(var(--topbar-h) - 8px); /* remonté légèrement */
  height: clamp(117px, 21vh, 208px); /* x1.3 */
  width: auto;
  z-index: 5;
}

.social-contact {
  height: auto;
  display: flex;
  flex-direction: row; /* Met en colonne */
  gap: clamp(5px, 1vw, 15px); /* Espacement entre icônes et numéro */
}

.social-links {
  display: flex;
  gap: 10px;
  padding-top: 5px;
}


/* Icônes SVG */
.social-links svg {
  height: clamp(20px, 5vw, 30px);
  width: clamp(20px, 5vw, 30px);
  fill: #f8f8f8; /* Couleur des icônes */
  transition: fill 0.3s ease;
}

.social-links svg:hover {
  fill: var(--primary-color); /* Changement de couleur au survol */
}

/* Numéro de téléphone */
.contact-info {
  align-items: center;
  display: flex;
  gap: 10px;
}
.contact-info a {
  text-decoration: none;
  color: var(--primary-color);
  font-size: clamp(0.8rem, 2vw, 1.1rem);
  padding-right: 1vw;
}


/* Style du menu */
.menu {
  list-style: none;
  display: flex;
  gap: 20px;
  flex-wrap: wrap; /* permet de passer à la ligne si manque d'espace */
}

.menu li {
  position: relative;
}

/* Style du lien principal */
.menu > li > a {
  text-decoration: none;
  color: var(--primary-color);
  padding: clamp(5px, 1.3vw, 14px) clamp(8px, 1.8vw, 14px);
  font-size: clamp(0.9rem, 2.2vw, 1.2rem);

}

.menu a.active {
  color: var(--primary-color); /* Doré */
  font-weight: bold;
  border-bottom: 2px solid var(--primary-color); /* Ligne dorée sous l'onglet actif */
  padding-bottom: 5px;
}


/* Style du sous-menu */
.submenu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #ddd;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  display: none;
  width: 200px;
  z-index: 1000;
}

.submenu li {
  padding: 10px;
}

.submenu li a {
  text-decoration: none;
  color: black;
  display: block;
}

/* Affichage du sous-menu au survol */
.dropdown:hover .submenu {
  display: block;
}

/* Effet au survol */
.submenu li a:hover {
  background: var(--primary-color);
  color: white;
}

.menu > li > a.btn-commande {
  background: var(--primary-color);
  color: #000;
  font-weight: 700;
  padding: 8px 14px; /* hauteur stable */
  border: 2px solid var(--primary-color);
  line-height: 1; /* aide à garder la même hauteur que le texte */
  font-size: 1.2rem;
}

/* état au survol / focus */
.menu > li > a.btn-commande:hover,
.menu > li > a.btn-commande:focus {
  background: transparent;            /* inverse au survol */
  color: var(--primary-color);
  text-decoration: none;
}


html , body {
  margin: 0;
  padding: 0;
  height:100%;
}


/* Chaque section prend toute la hauteur de l'écran */
/* Style général pour les sections */
section {
  height: 90vh; /* Chaque section prend 90% de la hauteur de la fenêtre */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Conteneur du carousel */
.carousel-container {
  position: relative;
  width: 100%; /* pleine largeur du contenu */
  height: calc(100vh - var(--header-h, 0px)); /* plein écran visible sous le header */
  margin-top: 0; /* le body a déjà un padding-top dynamique */
  overflow: hidden;
}

.carousel {
  width: 100%;
  position: relative;
  overflow: hidden;
  height: 100%; /* occupe toute la hauteur de .carousel-container */
}

.carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* remplissage, accepte un léger recadrage */
  object-position: center var(--carousel-focus-y, 45%); /* focus vertical ajustable */
  display: none;
  block-size: 100%;
 }

.carousel img.active {
  display: block; /* supprime l’espace inline */
}

/* Spécifique à la home: ne pas contraindre la hauteur du wrapper */
.home-section.section-1 {
  height: auto;
  display: block;
  padding: 0;
}

.cta-carousel {
  position: absolute;
  left: 50%;
  bottom: 1vh;                 /* ajuste la hauteur si besoin */
  transform: translateX(-50%);
  z-index: 3;                  /* > flèches (z-index:2) et images */
  background: var(--primary-color);
  color: #000;
  font-weight: 700;
  text-decoration: none;
  padding: 1rem 1.6rem;
  border: 2px solid var(--primary-color);
  border-radius: 999px;        /* pastille */
  line-height: 1;
  font-size: 1.7rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

.cta-carousel:hover,
.cta-carousel:focus {
  background: black;
  color: var(--primary-color);
  outline: none;
}


/* Flèches de navigation (scopées au carousel uniquement) */
.carousel-container > button {
  position: absolute;
  top: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 2;
  transform: translateY(-50%);
}
.carousel-container > .prev {
  left: 10px;
  color : var(--primary-color);
}
.carousel-container > .next {
  right: 10px;
  color : var(--primary-color);
}

/* Points de navigation */
.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot {
  height: 15px;
  width: 15px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background-color: var(--primary-color); /* Point actif plus grand */
  transform: scale(1.5);
}


.carousel-text {
  position: absolute;
  top: 75%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 215, 0, 0.8); /* Couleur primaire avec opacité */
  color: black;
  padding: 20px;
  text-align: center;
  width: 50%;
  max-width: 600px;
}

.carousel-text h2 {
  font-size: 2rem;
  color: black;
  margin-bottom: 10px;
}

.carousel-text p {
  font-size: 1.2rem;
}







.section-2 {
  display: flex;
  height: 100vh;
  width: 100vw;
}

.image-container {
  width: 50%;
  height: 100%;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text-container {
  width: 50%;
  padding: 5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.text-container h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.text-container p {
  font-size: 1.3rem;
  color: black;
  line-height: 1.5;
}

.cta-section2 {
  display: inline-block;     /* ← clé : pour que la largeur suive le texte */
  margin-top: 1.5rem;
  background: var(--primary-color);
  color: #000;
  font-weight: 700;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border: 2px solid var(--primary-color);
  border-radius: 999px;
  font-size: 1.7rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  width: auto;              /* ← empêche l’élargissement à 100% */
  text-align: center;
}

.cta-section2:hover,
.cta-section2:focus {
  background: black;
  color: var(--primary-color);
  outline: none;
}



/* 1) Section pleine largeur, fond marbré, centré */
.instagram-section {
  background: url('../images/marbre.jpeg') center/cover no-repeat;
  display: flex;
  justify-content: center;
  padding: 2rem 0;      /* espace haut/bas */
  width: 100%;          /* 100% du parent, pas de 100vw */
  box-sizing: border-box;
  height: auto;
  overflow-x : hidden;
}

/* 2) Conteneur limité et centré */
.instagram-container {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: none;    /* ajustez selon largeur Insta */
  margin: 0 auto;
  box-sizing: border-box;
}

/* 3) L’iframe remplit son conteneur, sans débordement */
.lightwidget-widget {
  display: block;       /* pour que margin auto fonctionne */
  width: 100%;
  height: auto;
  border: none;
}




/* Section avis */
.avis-section {
  display: block;      /* au lieu de flex */
  height: auto;        /* pas de 90vh */
  padding: 5vh 10vw;   /* ton padding */
  background: #fff;
  color: #000;
  text-align: center;
}

.avis-section h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 2rem;
}

/* Conteneur responsive */
.avis-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  justify-items: stretch; /* les cartes prennent la largeur de leur colonne */
}

/* Carte individuelle */
.avis-card {
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  border-radius: 12px;
  padding: 1.5rem;
  width: 100%;
  display: flex;                /* active le centrage interne */
  flex-direction: column;       /* empile les éléments verticalement */
  align-items: center;          /* centre horizontalement */
  text-align: center;           /* centre le texte */
  transition: transform .3s ease;
}

.avis-card:hover {
  transform: translateY(-5px);
}

/* Nom + étoiles centrés */
.avis-header {
  display: flex;
  flex-direction: column;       /* place le nom au-dessus des étoiles */
  align-items: center;
  margin-bottom: .5rem;
}

.avis-card h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #000;
}

.stars {
  color: var(--primary-color);
  font-size: 1.1rem;
  letter-spacing: 1px;
  margin-top: 0.25rem;
}

.avis-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
  margin-top: 0.75rem;
}


/* Style pour le texte */
h2 {
  font-size: 2rem;
  color: var(--primary-color); /* Couleur principale */
}




  /* Footer */
  .footer {
    background-color: #000; /* Fond noir */
    color: var(--primary-color);
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    padding: 10px 5vw;
  }
  
  .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .footer-maps {
    margin-top: 3vh;
    margin-right: 9vw;
  }
  
  .footer-slogan {
    display: flex;
    font-size: 1.4rem;
    margin-bottom: 10px;
  }

  /* Logo à gauche */
  .footer-logo img {
    height: 30vh; /* Ajuste la taille du logo */
  }
  .footer-logo p {
    font-size:1.2rem;
  }
  
  /* Informations de contact */
  .footer-contact p {
    margin: 3px 0;
    font-size:1.2rem;
  }
  
  /* Numéro de téléphone cliquable */
  .footer-contact a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
  }
  
  .footer-contact a:hover {
    text-decoration: underline;
  }
  
  /* Mentions légales en bas */
  .footer-legal {
    text-align: center;
    font-size: 1rem;
    margin-top: 10px;
  }
  
  .footer-legal a {
    color: white;
    text-decoration: none;
  }
  
  .footer-legal a:hover {
    text-decoration: underline;
  }