/* -------- STYLE UNIFIÉ POUR INAISS CÂBLAGE -------- */

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f9f9f9;
    color: #222;
    margin: 0;
    line-height: 1.6;
}
  
section {
    padding: 3em 1.5em;
    max-width: 1000px;
    margin: auto;
}
  
header {
    padding: 0;
}
  
.hero {
    background-image: url('logo-inaiss-rj45-noir.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    color: white;
    text-align: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
  
.hero-content {
    background: rgba(0, 0, 0, 0.6);
    padding: 2em;
    border-radius: 10px;
}
  
.hero h1 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
}
  
.scroll-down {
    font-size: 2em;
    margin-top: 1em;
    animation: bounce 2s infinite;
}
  
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}
  
nav {
    background-color: #014b6e;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5em;
    padding: 1em;
    position: sticky;
    top: 0;
    z-index: 1000;
}
  
nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s, transform 0.3s;
}
  
nav a:hover {
    color: #ffd700;
    transform: scale(1.05);
}
  
ul {
    list-style: none;
    padding: 0;
}
  
li {
    background: white;
    margin-bottom: 1em;
    padding: 1em;
    border-left: 5px solid #006699;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 1em;
}
  
li i {
    font-size: 1.5em;
    color: #006699;
    min-width: 30px;
    text-align: center;
}
  
.cta {
    background-color: #006699;
    color: white;
    padding: 2em;
    text-align: center;
    margin-top: 2em;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
  
.cta strong {
    font-size: 1.2em;
}
  
form {
    background: white;
    padding: 2em;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 1em;
}
  
form input, form textarea, form button {
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    padding: 0.8em;
    border: 1px solid #ccc;
    border-radius: 6px;
}
  
form button {
    background-color: #006699;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
  
form button:hover {
    background-color: #004d66;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
  
footer {
    background-color: #002b45;
    color: white;
    text-align: center;
    padding: 1.5em 1em;
    margin-top: 3em;
}
  
.zoom-gallery img {
    transition: transform 0.3s ease;
}
  
.zoom-gallery img:hover {
    transform: scale(1.05);
}
  
#realisations {
    background-attachment: fixed;
    background-color: #fff;
}
  
#apropos {
    background: linear-gradient(180deg, #f9f9f9 0%, #e8f0f7 100%);
}
  
#services {
    background: linear-gradient(180deg, #e8f0f7 0%, #f9f9f9 100%);
}
  
/* Dark mode toggle */
.dark-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    background: #006699;
    color: white;
    border: none;
    padding: 0.5em 1em;
    cursor: pointer;
    z-index: 2000;
    border-radius: 5px;
}
  
.dark-mode body {
    background-color: #1c1c1c;
    color: #f1f1f1;
}
  
.dark-mode nav {
    background-color: #222;
}
  
.dark-mode section,
.dark-mode .cta,
.dark-mode form {
    background-color: #333;
    color: white;
}
  
/* Boutons flottants */
.floating-buttons {
    position: fixed;
    bottom: 120px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 1em;
    z-index: 1001;
}
  
.floating-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    font-size: 24px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}
  
.floating-buttons a:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}
  
.whatsapp-button {
    background-color: #25D366;
}
  
.call-button {
    background-color: #007bff;
}
  
#back-to-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background-color: #006699;
    color: white;
    padding: 0.6em 0.8em;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    display: none;
    z-index: 1001;
}
  
#back-to-top:hover {
    background-color: #004d66;
}
  
/* Menu responsive */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-left: auto;
}
  
.menu-toggle span {
    height: 3px;
    width: 25px;
    background-color: white;
    margin: 4px 0;
    transition: 0.4s;
}
  
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
  
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
  
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}
  
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }
    nav a {
        display: none;
        width: 100%;
        padding: 0.5em 1em;
    }
    nav.active a {
        display: block;
    }
    .menu-toggle {
        display: flex;
    }
}

/* Animation douce au chargement */
body {
  opacity: 0;
  animation: fadeInBody 0.8s ease-in-out forwards;
}

@keyframes fadeInBody {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Transition fluide entre les ancres */
html {
  scroll-behavior: smooth;
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.8em;
  }

  .hero-content {
    padding: 1.2em;
  }

  form input,
  form textarea,
  form button {
    font-size: 1em;
  }

  .floating-buttons a {
    width: 60px;
    height: 60px;
    font-size: 26px;
  }

  section {
    padding: 2em 1em;
  }
}

img, video {
  max-width: 100%;
  height: auto;
}

@media (max-width: 480px) {
  .hero {
    height: 60vh;
    background-attachment: scroll;
  }

  .hero-content {
    padding: 1em;
    font-size: 0.95em;
    width: 90%;
  }

  .hero h1 {
    font-size: 1.6em;
  }

  .menu-toggle span {
    width: 30px;
    height: 4px;
  }

  .menu-toggle {
    margin: 1em;
  }
}