/* ===========================
   STYLES GLOBAUX
=========================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background: #f7f7f7;
  color: #222;
  line-height: 1.6;
}

/* ===========================
   CONTAINERS
=========================== */

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ===========================
   HEADER
=========================== */

.header {
  background: white;
  border-bottom: 1px solid #e0e0e0;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 999;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-logo img {
  width: 60px;
  height: auto;
}

.header-title h1 {
  font-size: 22px;
  font-weight: 700;
}

.header-title p {
  font-size: 14px;
  color: #555;
}

/* ===========================
   NAVIGATION
=========================== */

.nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
  transition: 0.3s;
}

.nav a:hover {
  color: #0077ff;
}

.btn-nav {
  padding: 8px 14px;
  border: 2px solid #0077ff;
  border-radius: 6px;
  color: #0077ff !important;
  font-weight: 600;
}

.btn-nav:hover {
  background: #0077ff;
  color: white !important;
}

.nav-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
}

/* ===========================
   HERO SECTION
=========================== */

.hero {
  background: url("images/realisation001.jpg") center/cover no-repeat;
  color: white;
  padding: 80px 0;
  text-align: center;
  position: relative;
}

/* Effet assombrissant pour lisibilité du texte */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
}

.hero * {
  position: relative;
  z-index: 2;
}

.hero-content h2 {
  font-size: 32px;
  margin-bottom: 15px;
}

.hero-text {
  font-size: 18px;
  max-width: 700px;
  margin: auto;
  margin-bottom: 25px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.btn-primary,
.btn-outline {
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn-primary {
  background: white;
  color: #0077ff;
}

.btn-primary:hover {
  background: #e5e5e5;
}

.btn-outline {
  border: 2px solid white;
  color: white;
}

.btn-outline:hover {
  background: white;
  color: #0077ff;
}

/* ===========================
   SECTION
=========================== */

.section {
  padding: 60px 0;
  text-align: center;
}

.section h2 {
  font-size: 30px;
  margin-bottom: 10px;
}

.section-sub {
  margin-bottom: 30px;
  color: #555;
}

/* ===========================
   GRID CARDS
=========================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.10);
  text-align: left;
  transition: 0.3s;
}

.card h3 {
  margin-bottom: 10px;
}

.card:hover {
  transform: translateY(-4px);
}

/* ===========================
   REALISATIONS (CARROUSEL)
=========================== */

.swiper {
  width: 100%;
  padding-bottom: 40px;
}

.swiper-slide img {
  width: 100%;
  border-radius: 10px;
  cursor: pointer;
}

/* ===========================
   AVIS — CORRECTION ICI
=========================== */

.avis-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  margin: 20px 0 30px;
  flex-wrap: wrap;
}

.avis-buttons a {
  text-align: center;
}

/* ===========================
   MAP
=========================== */

.map iframe {
  border: none;
  border-radius: 12px;
  margin-top: 15px;
}

/* ===========================
   CONTACT FORM
=========================== */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 550px;
  margin: auto;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

.contact-form button {
  background: #0077ff;
  color: white;
  border: none;
  font-size: 18px;
  padding: 14px;
  border-radius: 8px;
  cursor: pointer;
}

.contact-form button:hover {
  background: #005fcc;
}

.contact-info {
  margin-top: 20px;
  color: #444;
}

/* ===========================
   FOOTER
=========================== */

.footer {
  background: #111;
  color: #bbb;
  padding: 35px 0;
  text-align: center;
}

.footer p {
  margin: 5px 0;
}

/* ===========================
   RESPONSIVE MOBILE
=========================== */

@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: 80px;
    right: 0;
    background: white;
    width: 70%;
    padding: 20px;
    flex-direction: column;
    gap: 18px;
    display: none;
    box-shadow: -2px 4px 15px rgba(0,0,0,0.15);
  }

  .nav.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  header {
    padding: 10px 0;
  }

  .hero-content h2 {
    font-size: 26px;
  }

  .hero {
    padding: 60px 0;
  }
}

/* ===========================
   ARTICLES / BLOG
   (à utiliser avec .article-container)
=========================== */

.article-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

/* Titres d'articles */
.article-container h2 {
  font-size: 26px;
  margin-bottom: 12px;
  margin-top: 25px;
  color: #111;
}

.article-container h3 {
  font-size: 20px;
  margin-top: 20px;
  margin-bottom: 8px;
  color: #222;
}

/* Paragraphes */
.article-container p {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

/* Paragraphes après titres plus d'air */
.article-container h2 + p,
.article-container h3 + p {
  margin-top: 5px;
}

/* Listes */
.article-container ul,
.article-container ol {
  margin: 10px 0 15px;
  padding-left: 22px;
}

.article-container li {
  margin-bottom: 6px;
}

/* Mots importants */
.article-container strong {
  font-weight: 700;
  color: #111;
}

/* Liens dans les articles */
.article-container a {
  color: #0077ff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-container a:hover {
  color: #005fcc;
}

/* Encadré d'information (optionnel) */
.article-callout {
  background: #eef5ff;
  border-left: 4px solid #0077ff;
  padding: 12px 14px;
  margin: 18px 0;
  border-radius: 6px;
  font-size: 15px;
}

/* Images dans les articles */
.article-container img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 18px auto;
}

/* Petites adaptations mobile */
@media (max-width: 600px) {
  .article-container {
    width: 100%;
  }

  .article-container h2 {
    font-size: 22px;
  }

  .article-container h3 {
    font-size: 18px;
  }

  .article-container p {
    font-size: 15px;
  }
}
/* ====== Boutons Avis Google ====== */

.avis-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.btn-avis {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid #0056ff;
  background-color: #0056ff;
  color: #ffffff;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
              background-color 0.15s ease, color 0.15s ease;
}

.btn-avis-outline {
  background-color: transparent;
  color: #0056ff;
}

.btn-avis:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-avis-outline:hover {
  background-color: #0056ff;
  color: #ffffff;
}

.avis-texte {
  text-align: center;
}

/* ===== Bandeau cookies ===== */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  color: #ffffff;
  padding: 1rem;
  display: none; /* visible seulement si pas encore choisi */
}

.cookie-banner-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.cookie-banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.cookie-banner-buttons button,
.cookie-banner-buttons a {
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

#cookie-accept {
  background: #1e88e5;
  color: #ffffff;
  font-weight: 600;
}

#cookie-refuse {
  background: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
}

.cookie-banner-buttons a {
  background: transparent;
  color: #ffffff;
  text-decoration: underline;
}

/* Lien "Gérer les cookies" dans le footer */
.cookie-settings-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* ===== Espacement texte / boutons ===== */

/* Espace sous les phrases juste avant les boutons */
.hero-text,
.section p,
.section .section-sub {
  margin-bottom: 1.2rem;
}

/* Espace au-dessus des boutons pour éviter qu'ils collent/chevauchent le texte */
.hero-buttons,
.section .btn-primary,
.section .btn-outline {
  margin-top: 0.8rem;
}

/* On s'assure que les boutons ne sont pas en position absolue */
.btn-primary,
.btn-outline {
  position: static;
  display: inline-block;
}

/* Sur mobile : les boutons passent bien à la ligne et ne chevauchent rien */
@media (max-width: 768px) {
  .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .hero-buttons a {
    flex: 1 1 100%;
    text-align: center;
  }
}












