/* style.css pour Sebyachtingservices */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial;
    line-height: 1.6;
    background: #ffffff;
    color: #333;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #000000;
    color: white;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin: 0 10px;
    position: relative;
	z-index: 1000;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 2px;
    display: block;
	z-index: 1000;
}

nav ul li a:hover {
    background: #c2bfbf;
    border-radius: 4px;
}

.submenu {
    display: none;
    position: absolute;
    background: #000000;
    top: 100%;
    left: 0;
    width: 200px;
	z-index: 1000;
}

.submenu li {
    margin: 0;
}

.dropdown:hover .submenu {
    display: block;
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 2000;
}

.burger div {
    width: 25px;
    height: 3px;
    background: white;
    margin: 4px;
    transition: 0.3s;
}

#nav-links {
    display: flex;
}

#nav-links.show {
    display: flex;
    flex-direction: column;
}

.hero {
    width: 100%;
    max-height: 500px;
    aspect-ratio: 16 / 9;
    background: url('images/homepage.jpg') no-repeat center center;
    background-size: contain;
    background-color: #000;
}

.presentation {
    padding: 20px;
    text-align: center;
}

.devis {
    text-align: center;
    margin: 20px;
}

.devis a {
    background: #0c6e98;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.devis a:hover {
    background: #046792;
}

footer {
    background: #000000;
    color: white;
    text-align: center;
    padding: 10px;
}

@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    #nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        background: #000000;
        border-radius: 4px;
        z-index: 1500;
    }

    #nav-links.show {
        display: flex;
    }

    .dropdown .submenu {
        position: relative;
        width: 100%;
        left: 0;
    }
}

.gallery {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    margin-top: 20px;
}

.photo {
    text-align: center;
    width: 45%;
}

.photo img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 1.5em;
    margin-top: 10px;
}

.encadres {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    padding: 5px;
}

.box {
    flex: 1;
    background: white;
    border: 1px solid #ccc;
    padding: 15px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.box.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .encadres {
        flex-direction: column;
        align-items: center;
    }

    .box {
        width: 99%;
        margin-bottom: 15px;
    }
    .cadres {
        flex-direction: column;
        align-items: center;
    }

    .boxe {
        width: 99%;
        margin-bottom: 15px;
    }
}

* {box-sizing:border-box}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

.contact-form {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.contact-form h1 {
    text-align: center;
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin: 10px 0 5px;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-form button {
    display: block;
    margin: 20px auto 0;
    padding: 10px 30px;
    background: #0077a3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact-form button:hover {
    background: #005f7a;
}

#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: background 0.3s ease, transform 0.3s ease;
    z-index: 1500;
}

#backToTop:hover {
    background-color: #000000;
    transform: scale(1.1);
}

/* Personnalisation du widget Google Translate */
.goog-te-banner-frame.skiptranslate,
body {
    top: 0 !important;
}

.goog-te-gadget {
    color: white !important;
}

.goog-te-combo {
    background: #004b6b !important;
    color: white !important;
    border: none;
    padding: 5px;
    border-radius: 4px;
}

.language-selector a {
    font-size: 20px;
    margin: 0 5px;
    cursor: pointer;
    text-decoration: none;
}

.language-selector a:hover {
    opacity: 0.7;
}

.cadres {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding: 15px;
}

.boxe {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 300px;
  height: 300px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.boxe h3 {
    margin-top: 0;
    margin-bottom: 180px;
    color: #000;
}

.btn-en-savoir-plus {
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #000;
  color: white;
  border-radius: 10px;
  text-decoration: none;
}

.boxe:hover {
  transform: scale(1.05);
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* minimum 100% de la hauteur de la fenêtre */
}

.main-content {
    flex: 1; /* prend tout l'espace restant entre le header et le footer */
}

/* Ton footer peut rester simple */
footer {
    background-color: #000;
    color: white;
    text-align: center;
}
