/* CSS Document */

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

/* SCROLL FLUIDE */
html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    color: white;
}

/* FOND FIXE */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/fond-gite.jpg') no-repeat center center/cover; 
   
     /*background: url('../images/gite-vert2.jpg') no-repeat center center/cover; */
    z-index: -1;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    z-index: 1000;
}

.logo {
    font-size: 20px;
    font-weight: bold;
}

/* MENU */
.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s;
}

/* BURGER */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger div {
    height: 3px;
    width: 25px;
    background: white;
    margin: 4px;
}

/* SECTIONS */
.section {
    min-height: 100vh;
    padding: 120px 40px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    /* ANIMATION INITIALE */
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

/* visible quand scroll */
.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section:nth-child(even) {
    background: rgba(0,0,0,0.6);
}

.section:nth-child(odd) {
    background: rgba(0,0,0,0.6);
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .nav-links {
        position: absolute;
        right: 0;
        top: 60px;
        background: rgba(0,0,0,0.9);
        flex-direction: column;
        width: 100%;
        text-align: center;
        transform: translateY(-200%);
        transition: 0.3s;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .burger {
        display: flex;
    }
}
    
    
    .service-box h3 {
    color: #f0c040;
}
    
    /* CONTAINER SERVICES */
.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* BLOCS */
.service-box {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    transition: 0.3s;
}

/* HOVER */
.service-box:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.2);
}

/* MOBILE */
@media (max-width: 768px) {
    .service-box {
        width: 80%;
    }
}

/* TABLETTE / PC */
@media (min-width: 769px) {
    .service-box {
        width: 200px; /* ajuste ici (100px si tu veux vraiment compact) */
    }
}
    
    body {
    font-family: 'Poppins', sans-serif;
}
    
    h1, h2, h3 {
    font-weight: 600;
}

p {
    font-weight: 300;
}
    
    #s3 {

    flex-direction: column;

    gap: 30px;

}
    
/* BOUTON STYLE PREMIUM */

.btn-premium{

    display:inline-block;

    margin-top:35px;

    padding:18px 34px;

    border-radius:14px;

    text-decoration:none;

    font-size:18px;

    font-weight:600;

    color:white;

    background:

    linear-gradient(

        135deg,

        #f0c040,

        #c9981a

    );

    transition:0.3s;

    box-shadow:

    0 10px 30px rgba(240,192,64,0.25);

}

.btn-premium:hover{

    transform:translateY(-4px);

    box-shadow:

    0 18px 40px rgba(240,192,64,0.35);

}
/* ************************************************ */
/* SECTION BON CADEAU */
/* ************************************************ */

.gift-section{

    width:100%;

    padding:90px 20px;

    background:
    linear-gradient(
        180deg,
        rgba(255,255,255,0.03),
        rgba(255,255,255,0.02)
    );

}



/* CONTENEUR GLASS PLUS SOMBRE */



.gift-container{

    max-width:950px;

    margin:auto;

    display:flex;

    align-items:center;

    justify-content:center;

    text-align:center;

    background:

    rgba(20,20,20,0.50);

    border:

    1px solid rgba(255,255,255,0.12);

    border-radius:35px;

    overflow:hidden;

    backdrop-filter:blur(22px);

    -webkit-backdrop-filter:blur(22px);

    box-shadow:

    0 20px 60px rgba(0,0,0,0.45);

}


/* OVERLAY SOMBRE SUPPLÉMENTAIRE */

/* CONTENU CENTRÉ */

.gift-content{

    width:100%;

    padding:70px 60px;

    background:

    linear-gradient(

        135deg,

        rgba(0,0,0,0.20),

        rgba(0,0,0,0.08)

    );

}

.gift-badge{

    margin-left:auto;

    margin-right:auto;

}

.gift-button{

    margin-left:auto;

    margin-right:auto;

}

/* TEXTE PLUS LISIBLE */

.gift-content h2{

    color:#ffffff;

    text-shadow:
    0 5px 25px rgba(0,0,0,0.65);

}

.gift-content p{

    color:rgba(255,255,255,0.92);

    text-shadow:
    0 2px 12px rgba(0,0,0,0.55);

}






/* TEXTE */

.gift-content{

    flex:1;

    padding:60px;

}

.gift-badge{

    display:inline-block;

    padding:10px 18px;

    border-radius:50px;

    background:
    rgba(240,192,64,0.12);

    border:
    1px solid rgba(240,192,64,0.22);

    color:#f0c040;

    font-size:14px;

    font-weight:600;

    margin-bottom:25px;

    letter-spacing:0.5px;

    backdrop-filter:blur(10px);

}

.gift-content h2{

    font-size:46px;

    line-height:1.2;

    color:#ffffff;

    margin-bottom:25px;

    font-weight:600;

    text-shadow:
    0 5px 20px rgba(0,0,0,0.35);

}

.gift-content p{

    font-size:18px;

    line-height:1.9;

    color:rgba(255,255,255,0.82);

}


/* BOUTON */

.gift-button{

    display:inline-block;

    margin-top:35px;

    padding:18px 34px;

    border-radius:14px;

    text-decoration:none;

    font-size:18px;

    font-weight:600;

    color:white;

    background:
    linear-gradient(
        135deg,
        #f0c040,
        #c9981a
    );

    transition:0.3s;

    box-shadow:
    0 10px 30px rgba(240,192,64,0.25);

}

.gift-button:hover{

    transform:translateY(-4px);

    box-shadow:
    0 18px 40px rgba(240,192,64,0.35);

}


/* ************************************************ */
/* RESPONSIVE */
/* ************************************************ */

@media(max-width:950px){

    .gift-container{

        flex-direction:column;

        gap:0;

    }

    .gift-image{

        width:100%;

        min-height:320px;

    }

    .gift-content{

        padding:40px 30px 50px 30px;

    }

    .gift-content h2{

        font-size:34px;

    }

    .gift-content p{

        font-size:17px;

        line-height:1.8;

    }

}

@media(max-width:600px){

    .gift-section{

        padding:60px 15px;

    }

    .gift-container{

        border-radius:25px;

    }

    .gift-content{

        padding:35px 22px 40px 22px;

    }

    .gift-content h2{

        font-size:28px;

        line-height:1.3;

    }

    .gift-content p{

        font-size:16px;

    }

    .gift-button{

        width:100%;

        text-align:center;

        padding:18px 20px;

    }

}


/* ************************************************ */
/* RESPONSIVE */
/* ************************************************ */

@media(max-width:950px){

    .gift-container{

        flex-direction:column;

        gap:0;

    }

    .gift-image{

        width:100%;

        min-height:320px;

    }

    .gift-content{

        padding:40px 30px 50px 30px;

    }

    .gift-content h2{

        font-size:34px;

    }

    .gift-content p{

        font-size:17px;

        line-height:1.8;

    }

}

@media(max-width:600px){

    .gift-section{

        padding:60px 15px;

    }

    .gift-container{

        border-radius:25px;

    }

    .gift-content{

        padding:35px 22px 40px 22px;

    }

    .gift-content h2{

        font-size:28px;

        line-height:1.3;

    }

    .gift-content p{

        font-size:16px;

    }

    .gift-button{

        width:100%;

        text-align:center;

        padding:18px 20px;

    }

}


    /*************************************************/
     /*************************************************/
    
  .slider-container {
  position:relative;
  max-width:1200px;
  margin:40px auto;
}

.slider {
  overflow-x:auto;
  scroll-behavior:smooth;
  scroll-snap-type:x mandatory;
  padding:10px 40px;
}

.slider::-webkit-scrollbar { display:none; }

.grid {
  display:grid;
  grid-auto-flow:column;
  grid-template-rows:repeat(2, auto);
  grid-auto-columns:280px;
  gap:12px;
}

.grid img {
  width:100%;
  border-radius:12px;
  cursor:pointer;
  scroll-snap-align:start;
  transition:0.3s;
}

.grid img:hover {
  transform:scale(1.05);
}

/* NAV FLÃˆCHES */
.nav {
  position:absolute;
  top:45%;
  transform:translateY(-50%);
  background:rgba(0,0,0,0.5);
  border:none;
  color:white;
  font-size:28px;
  padding:10px;
  cursor:pointer;
  z-index:2;
}
.prev { left:0; }
.next { right:0; }

/* LIGHTBOX */
.lightbox {
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.9);
  justify-content:center;
  align-items:center;
  z-index:999;
}

.lightbox img {
  max-width:90%;
  max-height:80%;
}

.close {
  position:absolute;
  top:20px;
  right:40px;
  font-size:40px;
  cursor:pointer;
}

.light-prev, .light-next {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  font-size:40px;
  background:none;
  border:none;
  color:white;
  cursor:pointer;
}

.light-prev { left:20px; }
.light-next { right:20px; }

/* ðŸ“± MOBILE */
@media (max-width:768px){
  .grid {
    grid-template-rows:1fr;
    grid-auto-columns:100%;
  }
  .nav { display:none; }
}
    
    
/* LIGHTBOX AMÃ‰LIORÃ‰E */

.lightbox {

  display: none;

  position: fixed;

  inset: 0;

  background: rgba(0,0,0,0.9);

  z-index: 9999;

  justify-content: center;

  align-items: center;

}

.lightbox-img {

  max-width: 90%;

  max-height: 85%;

  border-radius: 10px;

}

/* CROIX */

.close {

  position: absolute;

  top: 20px;

  right: 30px;

  font-size: 45px;

  color: white;

  cursor: pointer;

  z-index: 10000;

  transition: 0.3s;

}

.close:hover {

  transform: scale(1.2);

}

/* flÃ¨ches lightbox */

.light-prev, .light-next {

  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  font-size: 45px;

  background: none;

  border: none;

  color: white;

  cursor: pointer;

}

.light-prev { left: 20px; }

.light-next { right: 20px; }    
     /*************************************************/
     /*************************************************/
    
    /* =========================

   PORTFOLIO SECTION

========================= */

#s3 {

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 30px;

}

/* TITRE */

 h1 {

    font-size: 42px;

    letter-spacing: 2px;

    text-transform: uppercase;

    margin-bottom: 10px;

    position: relative;

}

/* petite ligne dÃ©co sous le titre */

 h1::after {

    content: "";

    display: block;

    width: 200px;

    height: 3px;

    background: #f0c040;

    margin: 12px auto 0;

    border-radius: 2px;
     margin-bottom:25px;

}

/* CONTAINER SLIDER */

.slider-container {

    position: relative;

    width: 100%;

    max-width: 1200px;

    margin: 0 auto;

}

/* SLIDER */

.slider {

    overflow-x: auto;

    scroll-behavior: smooth;

    scroll-snap-type: x mandatory;

    padding: 10px 40px;

}

/* GRID */

.grid {

    display: grid;

    grid-auto-flow: column;

    grid-template-rows: repeat(2, auto);

    grid-auto-columns: 280px;

    gap: 12px;

}

/* IMAGES */

.grid img {

    width: 100%;

    border-radius: 12px;

    cursor: pointer;

    transition: 0.3s;

    scroll-snap-align: start;

}

.grid img:hover {

    transform: scale(1.05);

}

/* FLÃˆCHES */

.nav {

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    background: rgba(0,0,0,0.5);

    border: none;

    color: white;

    font-size: 32px;

    padding: 12px 14px;

    cursor: pointer;

    z-index: 2;

    border-radius: 50%;

    transition: 0.3s;

}

.nav:hover {

    background: rgba(0,0,0,0.8);

}

.prev { left: 10px; }

.next { right: 10px; }

/* MOBILE */

@media (max-width: 768px) {

    #s3 h1 {

        font-size: 30px;

    }

    .grid {

        grid-template-rows: 1fr;

        grid-auto-columns: 85%;

    }

    .nav {

        font-size: 24px;

        padding: 10px;

    }

}
    
    .slide-item {

    position: relative;

}

/* texte sur image dans le slider (optionnel) */

.caption {

    position: absolute;

    bottom: 8px;

    left: 8px;

    right: 8px;

    padding: 6px 10px;

    background: rgba(0,0,0,0.6);

    color: white;

    font-size: 13px;

    border-radius: 6px;

    opacity: 0;

    transition: 0.3s;

}

.slide-item:hover .caption {

    opacity: 1;

}
#lightbox {

    position: fixed;

    inset: 0;

    background: rgba(0,0,0,0.9);

    display: none;

    justify-content: center;

    align-items: center;

    flex-direction: column;

    z-index: 9999;

}

#lightbox-img {

    max-width: 90%;

    max-height: 80%;

    border-radius: 10px;

}

/* TEXTE SUR IMAGE */

#lightbox-caption {

    margin-top: 15px;

    color: white;

    font-size: 18px;

    text-align: center;

    background: rgba(0,0,0,0.5);

    padding: 8px 14px;

    border-radius: 8px;

    max-width: 80%;

}
    
    .lightbox img {

    pointer-events: none; /* ðŸ‘ˆ clÃ© du problÃ¨me */

}

.light-prev,

.light-next {

    z-index: 10001; /* au-dessus de l'image */

}

.close {

    z-index: 10002;

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

  .light-prev,

  .light-next {

      font-size: 34px;

      padding: 10px;

  }

  .lightbox img {

      max-height: 70%;

  }

}
    
    html, body {

    touch-action: manipulation;

}
    
    * {

    -webkit-touch-callout: none;

    -webkit-tap-highlight-color: transparent;

}
    
    
    #lightbox-img {

    transition: transform 0.25s ease;

}


    /* =======================
   FORMULAIRE CONTACT
======================= */

.contact-form {
    max-width: 700px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.form-group {
    position: relative;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px 12px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.4);
    color: #ffffff;
    font-size: 1rem;
    outline: none;
}
.form-group textarea {
    resize: none;
}
.form-group label {
    position: absolute;
    left: 12px;
    top: 14px;
    /*color: rgba(255,255,255,0.6);*/
    color : #f0c040;
    font-size: 0.9rem;
    pointer-events: none;
    transition: 0.3s ease;
}

/* Animation du label */
.form-group input:focus + label, .form-group input:valid + label, .form-group textarea:focus + label, .form-group textarea:valid + label {
top: -10px;
font-size: 0.75rem;
color: #ffffff;
}
/* Bouton */
.contact-form button {
    margin-top: 20px;
    padding: 14px;
    background: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s ease;
}
.contact-form button:hover {
    background: #ffffff;
    color: #0f1e32;
}


/* FOOTER */

.containerFooter {

        display: flex;

        gap: 20px;

        padding: 20px;
    
     max-width: 1100px;   /* largeur max */

        margin: 0 auto;      /* centrage horizontal */

    }

    .boxFooter {

        flex: 1;

        background-color: #f0c040;

        padding: 40px;

        text-align: left;

        border-radius: 10px;

    }

    /* Responsive : en dessous de 768px, les blocs passent en colonne */

    @media (max-width: 768px) {

        .containerFooter {

            flex-direction: column;

        }

