/* assets/styles.css */

#navbarCollapse{
  height: 80px;
}

/* On cible les liens de la navbar */
.navbar-nav .nav-item {
  position: relative; /* nécessaire pour positionner le ::after */
}

.navbar-logo {
  width: 110px;
  height: auto;
  max-height: inherit !important;
}

.navbar-title{
  display: flex;
}

.quarto-title{
  display: none;
}

.nav-tabs .nav-link{
  color: grey;
}

/* État initial : pas de soulignement visible */
.navbar-nav .nav-item::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #562b59; /* couleur du soulignement */
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

/* Au survol ou si actif : on étend la barre */
.navbar-nav .nav-item:hover::after{
  transform: scaleX(1);
  transform-origin: bottom left;
}



.dropdown-item{
  text-align: center;
}


/* Reset léger */
* { 
  box-sizing: border-box; 
  }
  
img {
  max-width: 100%; display: block;
  }

/* Hero plein écran */
.hero {
  position: relative;
  height: 70vh;
  overflow: hidden;
  /*margin-top: 102%;*/
  }
  
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.05); 
}

.hero-overlay {
  position: absolute; 
  inset: 0; 
  display: flex; 
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 4rem;
  background: linear-gradient(to top, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 60%);
  color: #fff;
}

.hero-overlay2 {
  position: absolute; 
  inset: 0; 
  display: flex; 
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 4rem;
  background: linear-gradient(to top, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 60%);
  color: #fff;
}

.oasi {
  position: relative;
  width: 100%;
  height: 500px;
  background-image: url('../images/cuisines/Oasi/oasi_20.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.oasi-overlay, .scacco-overlay, .viacondotti-overlay, .sipario-overlay, .guadalupe-overlay, .vitabella-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.3); /* voile semi-transparent */
}

.oasi-content, .scacco-content, .viacondotti-content, .sipario-content, .guadalupe-content, .vitabella-content {
  position: relative;
  text-align: center;
  z-index: 1;
}

.scacco {
  position: relative;
  width: 100%;
  height: 500px;
  background-image: url('../images/cuisines/Scacco-matto/Scacco-Matto_04.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.viacondotti{
  position: relative;
  width: 100%;
  height: 500px;
  background-image: url('../images/salle_de_bains/ViaCondotti/ideagroup-viacondotti-04-1024x794.jpg.webp');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.sipario {
  position: relative;
  width: 100%;
  height: 500px;
  background-image: url('../images/cuisines/Sipario/sipario_soluzionifascino_aran_low-min.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.guadalupe {
  position: relative;
  width: 100%;
  height: 500px;
  background-image: url('../images/cuisines/Guadalupe/02_GUADALUPE_Plus.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.vitabella {
  position: relative;
  width: 100%;
  height: 500px;
  background-image: url('../images/cuisines/Vitta_Bella/03_Vita-Bella_header-min.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.hero img {
  transition: transform 0.6s ease; /* durée + easing */
}

.hero:hover img{
  transform: scale(1.05);
}

.hero-overlay h1 {
  font-weight: 600; letter-spacing: .5px; 
}

.hero-overlay .btn {
  margin-top: 1rem; 
  }

/* Grilles et cartes */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; padding: 2rem 0; 
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  }
  
.grid-1 {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem; padding: 2rem 0; 
}
  
.card {
  border: 1px solid #eee; 
  border-radius: 12px;
  padding: 1.25rem;
  background: #fff;
  border-bottom-color: burlywood;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15); /* ombre douce */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card.product img {
  border-radius: 12px 12px 0 0; 
}

.card-body {
  padding-top: .75rem; 
}

/* Mosaïque de collections */
.mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr); gap: 1rem;
  }
  
.mosaic2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr); gap: 1rem;
  }
  
.mosaic3 {
  display: grid;
  grid-template-columns: repeat(6, 1fr); gap: 1rem;
  }
  
.tile {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  }
  
.tile img {
  height: auto;
  width: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  }
  
.tile:hover img {
  transform: scale(1.03); 
  }
  
.tile-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1rem 1.25rem; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0));
  font-weight: 600;
}


.nav-tabs {
  border-bottom: none;
}

.nav-tabs .nav-link {
  border: none;
  background: none;
  color: #333;
}

/* Bordure uniquement sous l’onglet actif */
.nav-tabs .nav-link.active {
  border: none; 
  border-bottom: 1px solid #777A7D; 
  color: #7F848A; 
}

.tab-content{
  border:none;
}

/* Typo premium */
h1, h2, h3 {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  }
  
body { 
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #222;
  }
  
blockquote {
  font-style: italic;
  border-left: 4px solid #000;
  padding-left: 1rem;
  color: #444; 
  }

.contact-bg {
  position: relative;
  background-image: url('../images/bassin_1.png'); /* ton image */
  background-size: cover;
  background-position: center;
  padding: 60px 20px;
}

.contact-bg .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(255,255,255,0.3); /* voile clair */
  z-index: 0;
}

.contact-info {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  z-index: 1;
}

.contact-info h2, .contact-info h3 {
  font-family: 'Bodoni Moda', serif;
  margin-bottom: 15px;
}

.contact-info label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.contact-info input, 
.contact-info textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #000;
  border-radius:8px;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.submit {
  text-align: right;
  margin-top: 20px;
}

.submit button {
  background: #a14a4a;
  color: #fff;
  padding: 12px 30px;
  border: none;
  cursor: pointer;
  border-radius: 8px;
}

.infos {
  /*background: #f9f9f9;*/
  padding: 20px;
  /*border-radius: 8px;*/
}

#popupMessage {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 300px;
    padding-right: 20px;
    background: #682f2f;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    display: none; /* caché par défaut */
    z-index: 9999;
  }
  #popupMessage.success {
    /*border: 2px solid #4CAF50;*/
    color: #FFF;
    font-family: 'Bodoni Moda', serif;
  }
  #popupMessage.error {
    border: 2px solid #f44336;
    color: #f44336;
  }
  
  .popup-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.popup-content img {
  width: 150px;
  height: 180px;
  border-radius: 8px;
  border-top-right-radius: inherit;
  border-bottom-right-radius: inherit;
}
  
  .confidentialite {
    margin: 15px 0;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #333;
  }

  .confidentialite input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
  }

  .confidentialite label {
    cursor: pointer;
  }

  .confidentialite a {
    color: #2B619B;
    text-decoration: none;
    font-weight: bold;
    background-color: white;
    border-radius: 8px;
    padding: 8px;
  }

  .confidentialite a:hover {
    text-decoration: underline;
  }
  
  
  textarea{
    resize: none !important;
  }
  
#quarto-navbar-collapse {
    display: flex !important;  
  }
  #site-offcanvas {
    display: none !important;   
  }
  
.navbar-nav.navbar-nav-scroll.ms-auto > li:last-child > a {
  border: 1px solid black;
  border-radius: 8px;
}

.navbar-nav.navbar-nav-scroll.ms-auto > li:last-child > a:hover {
  background-color: white;
}

@media (max-width: 1200px){
  #navbarCollapse{
    height: initial;
    text-align: center;
  }
  
  #quarto-search{
    display: none;
  }
  
  .navbar .navbar-container > .navbar-brand-container {
  margin-left: 0 !important;
  margin-right: inherit !important;
}
  
  .navbar-nav.navbar-nav-scroll.ms-auto > li:last-child > a {
  border: none;
  border-radius: 0;
}

.navbar-nav.navbar-nav-scroll.ms-auto > li:last-child > a:hover {
  background: rgba(255,255,255,0.3);
}
  
    /* Offcanvas global avec effet verre */
.site-offcanvas {
  width: auto;
  background: rgba(255, 255, 255, 0.4); /* transparence */
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-right: 1px solid rgba(255, 255, 255, 0.3); /* contour subtil */
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);           /* ombre douce */
  display: flex;
  flex-direction: column;
  height: 100vh;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.offcanvas.offcanvas-start {
  text-align: center;
}

/* Header avec logo */
.site-offcanvas .offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

.site-offcanvas .offcanvas-header img {
  max-height: 80px !important;
  object-fit: contain;
  background-color: floralwhite;
}

/* Corps scrollable */
.site-offcanvas .offcanvas-body {
  flex: 1;
  overflow-y: hidden;
  padding: 3rem 0.75rem;
}

/* Liens */
.site-offcanvas .nav-link {
  display: block;          /* occupe toute la largeur */
  width: 100%;             /* s'étend sur la cellule */
  padding: 0.6rem 0.75rem; /* garde ton padding */
  border-radius: 6px;      /* coins arrondis si besoin */
  transition: background 0.3s ease, border-radius 0.3s ease;
}

.site-offcanvas .nav-link:hover {
  background: rgba(255,255,255,0.3); /* halo translucide */
  text-decoration: none;
  border-radius: 8px;
}

.nav-link.dropdown-toggle.show:hover{
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}


/* Dropdowns intégrés dans le flux */
.site-offcanvas .dropdown-menu {
  position: static !important;        /* intégré dans le flux */
  transform: inherit !important;
  width: 100%;
  margin: 0;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 0;
  background: rgba(255,255,255,0.25); /* effet verre */
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  padding: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: all 0.25s ease;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}
  
  .navbar-nav .nav-item {
  border: 1px solid rgba(36, 35, 35, 0.6);
    border-radius: 8px;
    margin-top: 8px;
    box-shadow: 0 3px 7px rgba(0,0,0,0.1);
    color: black;
}

.navbar-nav-scroll {
  overflow-y: inherit;
}

.navbar ul.dropdown-menu {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

#site-offcanvas {
    display: flex !important;
  }
  
  /* Bouton burger + texte */
.navbar-toggler {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.25); /* translucide */
  backdrop-filter: blur(6px) saturate(180%);
  -webkit-backdrop-filter: blur(6px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar-toggler:hover {
  background: rgba(255,255,255,0.35);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Texte "Menu" */
.navbar-toggler .menu-text {
  font-weight: 600;
  font-size: 1rem;
  color: #000;
}

/* Variante verre renforcé */
.navbar-toggler .glass-text {
  color: #000;
  text-shadow: 0 1px 2px rgba(255,255,255,0.6);
}

.navbar-toggler:focus{
  box-shadow: none;
}

}

/* Responsive */
/*@media (min-width: 993px) and (max-width: 1040px) {
  .hero {
   margin-top: 102%; 
  }
}*/

@media (max-width: 992px) {
  
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  
  .hero {
    height: 60vh; 
  }
}

@media (max-width: 991px) {
  .grid-3, .grid-1 {
    margin-top: 15px;
  }
}

@media (max-width: 640px) {
  .grid-3, .grid-2, .mosaic {
    grid-template-columns: 1fr; 
  }
  .mosaic2{
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .mosaic3{
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .hero {
    height: 50vh;
    }
}

.cards {
  max-width: 988px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (max-width: 768px) {
  .cards {
    max-width: 100%;   /* pleine largeur sur tablette/mobile */
    padding: 0 0.5rem;
  }
}

@media (max-width: 850px) {
  .row {
    display: block !important;
  }
  
  .couleurs-finitions{
    display: block !important;
  }
  
  .couleurs-finitions-texte{
    margin: 25px auto!important;
  }
}



@media (max-width: 520px) {
  .hero-overlay {
    color: black;
    padding: 3rem;
  }
  
  .hero-overlay h1{
    letter-spacing: 0;
  }
}

@media (max-width: 850px) {
  #img_cuisine {
    max-width: inherit !important;
  }
}

@media (max-width: 792px){
  .contact-info {
 display: block;
}
}

@media (min-width: 641px) and (max-width: 850px){
  .mosaic2{
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .mosaic3{
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 746px) {
  .popup-content {
    flex-direction: column;   /* bascule en colonne */
    text-align: center;       /* texte centré */
  }

  .popup-content img {
    width: 100%;              /* occupe toute la largeur */
    height: auto;             /* conserve proportions */
    border-radius: 0;         /* supprime les arrondis latéraux */
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    margin-bottom: 10px;      /* espace sous l’image */
  }
  
  #popupMessage {
    padding-bottom: 20px;
    padding-right: 0;
  }
}