/* ——— Reset minimal ——— */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: sans-serif;
  line-height: 1.6;
  background: #f9f9f9;
  color: #333;
}

/* Header */
.site-header {
    background-color: #f5f5f5;
    border-bottom: 2px solid #ddd;
    padding: 20px 0;
}

/* Navbar en haut */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    border-bottom: 1px solid #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    z-index: 1000;
}

/* Logo */
.logo {
    height: 75px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}
/* Pour positionner le sous‑menu */
.services-item {
    position: relative;           /* référence pour le sous‑menu */
}

/* Sous‑menu caché par défaut */
.submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 100%;                    /* juste sous le lien parent */
    left: 0;
    background: #f5f5f5;
    border: 1px solid #ddd;
    min-width: 220px;
    display: none;                /* masqué */
    z-index: 10;
}

/* Style des liens du sous‑menu */
.submenu > li > a {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    color: #333;
    white-space: nowrap;
}

.submenu > li > a:hover {
    background: #eaeaea;
    color: #c62828;
}

/* Top-bar SOUS la navbar */
.top-bar {
    position: fixed;
    top: 105px; /* dépend de la hauteur de ta navbar */
    left: 0;
    width: 100%;
    background-color: #2e6613;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    z-index: 999; /* juste sous la navbar */
}

/* Top-bar liens */
.top-bar a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
}

.top-bar .right span {
    margin-left: 15px;
}

/* Icône Facebook dans la top‑bar */
.top-bar .social {
    margin-left: 12px;           /* espace après le téléphone */
    color: #ffffff;              /* assure la même couleur que le texte */
    text-decoration: none;
    font-size: 18px;             /* adapte la taille si besoin */
}

.top-bar .social:hover {
    color: #cfd8dc;              /* léger changement au survol (optionnel) */
}

/* Navigation links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #4caf50;
}

/* Burger menu */
.menu-icon {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

#menu-toggle {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        text-align: center;
        z-index: 998;
    }

    #menu-toggle:checked + .menu-icon + .nav-links {
        display: flex;
    }

    .menu-icon {
        display: block;
    }

    .main-nav {
        flex-wrap: wrap;
    }
}

/* ===== Hero Peinture Résidentielle ===== */
.hero-residentielle{
  position: relative;
  width: 100%;
  min-height: 50vh;          /* Ajuste la hauteur souhaitée */
  background: url("images/hero_peinture.jpg") center/cover no-repeat fixed;
  display: flex;             /* Permet d’aligner l’overlay sur toute la zone */
}

/* ===== Hero Huilage de Terrasses ===== */
.hero-terasse {
  position: relative;
  width: 100%;
  min-height: 50vh;
  background: url("images/hero_terasse_ipe.jpg") center/cover no-repeat fixed;
  display: flex;
}
/* ===== Hero Huilage de Terrasses ===== */
.hero-pression {
  position: relative;
  width: 100%;
  min-height: 50vh;
  background: url("images/hero_pression.jpg") center/cover no-repeat fixed;
  display: flex;
}

.hero-overlay{
  background: rgba(0,0,0,.55);   /* Assombrit l’image pour faire ressortir le texte */
  width: 100%;
  display: flex;
  align-items: center;           /* Centre verticalement */
}

.hero-container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 16rem 2rem;
  color: #fff;
  text-align: center;
}

.hero-container h1{
  font-size: clamp(2rem, 4vw + .5rem, 3.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-container .accent{
  color: #f5c542;               /* Accent couleur or Prestige */
}

.hero-container p{
  font-size: clamp(1rem, 1.5vw + .25rem, 1.25rem);
  margin-bottom: 2.5rem;
  max-width: 60ch;
  margin-inline: auto;
}

.btn-primary{
  background: #f5c542;
  color: #222;
  padding: .9rem 2.2rem;
  border-radius: 2rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}

.btn-primary:hover,
.btn-primary:focus{
  transform: translateY(-4px);
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,.3);
}

/* ——— Section Peinture ——— */
.service-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  background: #fff;
}

/* ——— Contenu texte ——— */
.service-content {
  flex: 1 1 500px;
  max-width: 650px;
  padding: 2rem;
}

.service-content h2 {
  font-size: 2.3rem;
  margin-bottom: 0.5rem;
  color: #1e1e1e;
}

.underline {
  width: 80px;
  height: 4px;
  background: #f5c542;
  margin: 1rem 0 2rem;
}

.service-content p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

/* ——— Image ——— */
.service-image {
  flex: 1 1 400px;
  max-width: 500px;
  padding: 2rem;
  text-align: center;
}
.service-image img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.12);
}

/* ——— Responsive ajustements ——— */
@media (max-width: 768px) {
  .service-content h2 {
    font-size: 1.9rem;
  }
  .btn-primary {
    padding: 0.7rem 1.6rem;
  }
}

/* ===== Section Pourquoi choisir Peinture Prestige ===== */
.choisir-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  background-color: #fafafa;
  border-top: 1px solid #eee;
}

.choisir-content {
  flex: 1 1 500px;
  max-width: 650px;
}

.choisir-content h2 {
  font-size: 2.2rem;
  color: #1e1e1e;
  margin-bottom: 0.5rem;
}

.underline {
  width: 80px;
  height: 4px;
  background-color: #f5c542;
  margin: 1rem 0 2rem;
}

.choisir-content p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
  color: #444;
}

/* ===== Formulaire de contact ===== */
.contact-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 4rem 2rem;
  text-align: center;
  border-top: 1px solid #eee;
}

/* Titre du formulaire centré */
.contact-section h2 {
  font-size: 2rem;
  margin: 0;                 /* retire l’ancien bottom margin */
  color: #1e1e1e;
  text-align: left;        /* le titre reste centré */
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr 1fr;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  grid-column: span 1;
}

.contact-form label {
  margin-bottom: 0.3rem;
  font-weight: 600;
  color: #444;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem 1rem;
  border: 1px solid #ccc;
  border-radius: 0.6rem;
  font-size: 1rem;
  font-family: inherit;
}

.form-content{
  flex: 1 1 500px;
  max-width: 650px;
}

.contact-form textarea {
  resize: vertical;
}

/* Fait occuper à .full toute la largeur de la grille (1 ère à dernière colonne) */
.contact-form .form-group.full {
  grid-column: 1 / -1;
}

.contact-section .btn-primary {
  grid-column: 1 / -1;
  justify-self: center;
  cursor: pointer;
}

.contact-section .btn-primary:hover {
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 640px) {
  .contact-form {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  background-color: #2e6613;
  color: white;
  text-align: center;
  padding: 20px 10px;
  font-size: 14px;
  margin-top: 60px;
}