/* ================= GLOBAL STYLING ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: #000;
    color: white;
    font-weight: 700; /* Texte global en gras */
}

/* ================= HEADERS UNIFORMES ================= */
h1, h2, h3, h4, h5, h6, nav a, .cta, .btn-primary, .btn-secondary {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: inherit;
    line-height: 1.2;
}

h1 {
    font-size: 64px;
}

h2 {
    font-size: 48px;
}

h3 {
    font-size: 26px;
}


.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 10px 70px;
    display: flex;
    align-items: center;
    z-index: 1000;

    background: rgba(15, 25, 20, 0.45); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-bottom: 1px solid rgba(255,255,255,0.06);
}


.logo img {
    height: 75px; 
    width: auto;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.35));
}


nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 34px;
}

nav a {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    font-weight: 500; 
    font-size: 14px;
    letter-spacing: 0.6px;
    transition: 0.25s ease;
}

nav a:hover {
    color: #ffffff;
}

.header-right {
    margin-left: auto; /* pousse le numéro complètement à droite */
}

.phone {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    white-space: nowrap;
}

/* ================= HERO ================= */
.hero {
    height: 100vh;
    background-image: url("images/acceuil.jpg");
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.85), rgba(0,0,0,0.25));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: auto;
    padding: 0 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.hero .left h1{
  background: linear-gradient(90deg, #fc9802 0%, #a0e62f 45%, #66ff9a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}


.right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.right p {
    font-size: 19px;
    opacity: 0.9;
    margin-bottom: 45px;
    max-width: 480px;
}

.buttons {
    display: flex;
    gap: 25px;
}

.btn-primary {
    background: #3c9a45;
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
}

.btn-primary:hover {
    background: #1dbf73;
}

.btn-secondary {
    border: 1px solid rgba(255,255,255,0.8);
    padding: 18px 40px;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: white;
    color: rgb(255, 255, 255);
}


/* ================= CONTACT ================= */
.contact-section {
    padding: 120px 10%;
    background: #f8f9f7;
    color: black;
}

.contact-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.contact-info h2 {
    margin-bottom: 15px;
}

.contact-info p {
    color: #555;
    margin-bottom: 30px;
}

.info-item {
    margin-bottom: 20px;
    font-size: 16px;
}

.contact-form {
    background: rgba(255, 255, 255, 0);
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.contact-form h3 {
    margin-bottom: 25px;
}

.contact-form .row {
    display: flex;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 18px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.contact-form button {
    background: #2E7D32;
    color: white;
    border: none;
    padding: 16px;
    width: 100%;
    border-radius: 10px;
    font-size: 16px;
}

/* ================= COMPARAISON ================= */
.comparaison {
    padding: 140px 10%;
    background: #f4f6f3;
    text-align: center;
}

.comparaison h2 {
    margin-bottom: 60px;
}

.before-after {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: 520px;
    margin: auto;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 40px 90px rgba(0,0,0,0.3);
}

/* ================= RESPONSIVE ================= */
@media(max-width:1000px){
    .hero-content{
        grid-template-columns:1fr;
        text-align:center;
    }

    .buttons{
        justify-content:center;
    }

    .right p, .left h1{
        margin:auto;
    }

    h1 { font-size: 48px; }
    h2 { font-size: 36px; }
    h3 { font-size: 22px; }
}

@media (max-width: 900px) {
    .hero-content {
        flex-direction: column;
        gap: 20px;
    }

    .hero-content .left,
    .hero-content .right {
        flex: 1 1 auto;
        max-width: 100%;
        min-width: 0;
    }

    .hero-content .left h1 {
        line-height: 1.1;
    }

    .hero-content .right {
        align-items: center;
        text-align: center;
    }

    .hero-content .right p {
        max-width: 600px;
    }

    .hero-content .buttons {
        margin-top: 20px;
    }
}

/* Section principale */
.services-showcase{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;

  background:url("images/realisation.jpg") no-repeat center center fixed;
  background-size:cover;
  position:relative;
  padding:120px 40px;
}

/* Voile sombre */
.services-showcase::before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.6);
  z-index:0;
}

/* Tout le contenu au-dessus */
.services-showcase > *{
  position:relative;
  z-index:1;
}

/* Titre */
.services-showcase h2{
  font-size:56px;
  font-weight:800;
  color:white;
  margin-bottom:10px;
}

.services-showcase .line{
  width:80px;
  height:4px;
  background:#3c9a45;
  margin:20px auto 70px;
  border-radius:10px;
}

/* Grille centrée */
.services-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:50px;
  width:100%;
  max-width:1100px;
}

/* Cartes */
.service-box{
  background:rgba(255,255,255,0.08);
  backdrop-filter:blur(12px);
  padding:45px 35px;
  border-radius:20px;
  box-shadow:0 30px 70px rgba(0,0,0,0.6);
  transition:.4s ease;
  color:white;
}

.service-box:hover{
  transform:translateY(-12px) scale(1.02);
  background:rgba(255,255,255,0.15);
}

/* Icônes */
.service-box .icon{
  width:70px;
  height:70px;
  background:rgba(255,255,255,0.15);
  color:#3c9a45;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:18px;
  font-size:32px;
  margin:0 auto 30px;
}

/* Textes */
.service-box h3{
  font-size:22px;
  margin-bottom:12px;
  color:rgb(255, 255, 255);
}

.service-box p{
  color:rgba(255,255,255,0.85);
  font-size:15px;
  line-height:1.7;
}

.hero-contact-page {
    height: 100vh;
    background-image: url("images/acceuil.jpg");
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-contact-page .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4); /* Couche sombre */
}

.hero-contact-page .hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center; /* centre horizontalement */
  align-items: center;     /* centre verticalement */
  height: 100%;
  padding: 0 20px;
  text-align: center;      /* centre le texte à l'intérieur du bloc */
}

.hero-contact-page .hero-content .right p {
  color: #fff;
  font-size: 1.2rem;
  margin: 0;
}

/* Container parent du texte + formulaire */
.hero-content .right {
  display: flex;
  flex-direction: column;
  align-items: center; /* centre horizontalement tous les éléments */
}

/* Formulaire lui-même */
#devisForm{margin-top:28px}

#devisForm form{
  max-width:520px !important;
  padding:28px !important;
  border-radius:22px !important;
  background:rgba(20,24,28,.72) !important;
  border:1px solid rgba(255,255,255,.14) !important;
  box-shadow:0 18px 55px rgba(0,0,0,.55) !important;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

#devisForm label{
  display:block !important;
  margin:14px 0 6px !important;
  letter-spacing:.04em;
  text-transform:uppercase;
  font-size:12px;
  opacity:.85;
}

#devisForm input,
#devisForm textarea,
#devisForm select{
  width:100% !important;
  padding:12px 14px !important;
  border-radius:14px !important;
  border:1px solid rgba(255,255,255,.16) !important;
  background:rgba(0,0,0,.26) !important;
  color:#fff !important;
  outline:none;
}

#devisForm textarea{min-height:120px; resize:vertical}

#devisForm input::placeholder,
#devisForm textarea::placeholder{color:rgba(255,255,255,.55)}

#devisForm input:focus,
#devisForm textarea:focus,
#devisForm select:focus{
  border-color:rgba(191,255,200,.55) !important;
  box-shadow:0 0 0 4px rgba(48,184,7,.18) !important;
}

#devisForm button.btn-primary{
  width:100% !important;
  margin-top:16px !important;
  padding:14px 18px !important;
  border-radius:16px !important;
  font-weight:700;
}

#devisForm p{
  margin-top:12px !important;
  font-size:13px !important;
  opacity:.78 !important;
}

.hero-contact-page .hero-content .right > div{
  display:flex;
  gap:15px;
  flex-wrap:wrap;
}

.hero-contact-page .hero-content .right > div > a.btn-primary,
.hero-contact-page .hero-content .right > div > button.btn-primary{
  width:260px !important;
  height:52px !important;
  padding:0 24px !important;
  border-radius:12px !important;
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-weight:700 !important;
  box-sizing:border-box;
  border:none !important;
  outline:none !important;
}

.hero-contact-page .hero-content .right > div > a.btn-primary{
  background:#2dc653 !important;
  color:#fff !important;
}

.hero-contact-page .hero-content .right > div > button.btn-primary{
  background:#2dc653 !important;
  color:#fff !important;
  appearance:none !important;
  -webkit-appearance:none !important;
}

.hero-contact-page .hero-content .right > div > a.btn-primary:hover,
.hero-contact-page .hero-content .right > div > button.btn-primary:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 26px rgba(0,0,0,.35);
  filter:brightness(1.05);
}




/* ================= MOBILE / TABLET (AJOUT) ================= */
body{ overflow-x:hidden; }

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

/* Tablette */
@media (max-width: 1024px){
  .header{ padding:10px 22px; }
  nav{ gap:18px; }
  .hero-content{ padding:0 24px; }
  .right p{ font-size:17px; max-width: 620px; }
}

/* Mobile */
@media (max-width: 768px){
  .header{
    padding:10px 16px;
    flex-wrap:wrap;
    align-items:center;
  }

  .logo img{ height:58px; }

  nav{
    position:static;
    left:auto;
    transform:none;
    width:100%;
    justify-content:center;
    flex-wrap:wrap;
    gap:14px;
    margin-top:10px;
    order:3;
  }

  .header-right{
    margin-left:auto;
    order:2;
  }

  .phone{ font-size:13px; }

  h1{ font-size: clamp(32px, 7vw, 46px); }
  h2{ font-size: clamp(26px, 6vw, 38px); }
  h3{ font-size: clamp(18px, 4.5vw, 22px); }

  .hero{
    height:auto;
    min-height:100vh;
    padding-top:110px; /* compense le header fixed */
    padding-bottom:40px;
    align-items:flex-start;
  }

  .hero-content{
    grid-template-columns:1fr;
    gap:22px;
    padding:0 18px;
  }

  .right{
    align-items:center;
    text-align:center;
  }

  .right p{
    font-size:16px;
    margin-bottom:26px;
    max-width: 680px;
  }

  .buttons{
    width:100%;
    flex-direction:column;
    gap:12px;
  }

  .btn-primary, .btn-secondary{
    width:100%;
    text-align:center;
  }

  /* Avis clients (home) */
  .avis-group{ gap:18px; padding:0 10px; }
  .avis-card{
    width: 280px;
    height: auto;
    padding:18px 18px;
  }
  .avis-card p{
    font-size:14px;
    -webkit-line-clamp:7;
  }

  /* Contact */
  .contact-section{ padding:90px 6%; }
  .contact-container{
    grid-template-columns:1fr;
    gap:28px;
  }
  .contact-form{ padding:24px; }

  .contact-form .row{
    flex-direction:column;
    gap:0;
  }

  /* Page contact hero : boutons + formulaire */
  .hero-contact-page{ padding-top:110px; height:auto; min-height:100vh; }
  .hero-contact-page .hero-content{ padding:0 16px; }
  .hero-contact-page .hero-content .right > div{
    width:100%;
    justify-content:center;
  }
  .hero-contact-page .hero-content .right > div > a.btn-primary,
  .hero-contact-page .hero-content .right > div > button.btn-primary{
    width:100% !important;
    max-width:420px;
  }
  #devisForm form{ max-width:420px !important; }

  /* Services */
  .services-showcase{ padding:140px 16px 80px; }
  .services-grid{ gap:22px; }

  /* Footer */
  footer{ padding:18px 16px; }
}

/* Petits téléphones */
@media (max-width: 420px){
  nav a{ font-size:13px; }
  .logo img{ height:52px; }
  .avis-card{ width: 260px; }
}



/* ================= MOBILE/TABLET FIXES (minimal) ================= */
/* Objectif: ne toucher au contenu, uniquement corriger l'affichage mobile/tablette */

@media (max-width: 768px){
  /* Avis clients (page Accueil) : empêcher le texte d'être coupé (override du <style> inline de index.html) */
  .avis-card{
    height:auto !important;
    min-height:0 !important;
  }
  .avis-card p{
    overflow:visible !important;
    display:block !important;
    -webkit-line-clamp:unset !important;
    -webkit-box-orient:unset !important;
  }

  /* Page Contact : boutons même largeur + même typo (override du margin-right inline sur le <a>) */
  .hero-contact-page .hero-content .right > div{
    display:flex;
    flex-direction:column;
    gap:12px;
    align-items:center;
  }
  .hero-contact-page a.btn-primary,
  .hero-contact-page button.btn-primary{
    width:100% !important;
    max-width:420px;
    margin:0 auto !important;
    font-size:16px !important;
    line-height:1.1;
    padding:16px 18px !important;
    display:flex;
    align-items:center;
    justify-content:center;
    box-sizing:border-box;
  }
  .hero-contact-page button.btn-primary{
    border:0;
    -webkit-appearance:none;
    appearance:none;
    font: inherit;
  }
}


/* --- iOS: enlève le bleu automatique (numéros, SIRET, etc.) --- */
a[x-apple-data-detectors],
a[x-apple-data-detectors]:link,
a[x-apple-data-detectors]:visited,
a[x-apple-data-detectors]:hover,
a[x-apple-data-detectors]:active {
  color: inherit !important;
  text-decoration: none !important;
  -webkit-text-fill-color: currentColor !important;
}

a[href^="tel"],
a[href^="mailto"]{
  color: inherit !important;
  text-decoration: none !important;
  -webkit-text-fill-color: currentColor !important;
}
