/* ==========================================
   BLOC : RESET & VARIABLES
   ========================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --primary: #02598C; --secondary: #6EA1C4;
  --black: #1D1D1B; --gray: #C3C2C2;
  --font-titles: "Neue Haas Grotesk Text Pro", sans-serif;
  --font-body: "Arial", sans-serif;
}

html, body {
  width: 100%;
  overflow-x: hidden; 
  margin: 0;
  padding: 0;
  font-size: 16px; 
  -webkit-text-size-adjust: 100%; 
}

body {
  font-family: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
  line-height: 1.5;
  color: #333;
  background: #f3f6f9;
}

/* ==========================================
   BLOC : HEADER
   ========================================== */

header {
  background: white;
  color: var(--primary);
  display: flex;
  align-items: center;
  padding: 0.6rem 1.2rem;
  position: fixed;       
  top: 0;              
  left: 0;               
  width: 100%;           
  z-index: 1000;         
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* LOGOS */
.logo-desktop,
.logo-mobile {
  height: auto;
  width: auto;
}

/* Desktop */
.logo-desktop { display: block; max-height: 70px; }
.logo-mobile { display: none; }

.logo-link {
  display: inline-block; 
  text-decoration: none; 
}
.logo-link:hover img {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* NAVIGATION */
nav {
  display: flex;
  align-items: center;
  margin-left: auto; 
}

nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
}

nav ul li {
  position: relative;
}

nav a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  transition: color 0.3s;
  font-size: 1rem;
}

nav a:hover {
  color: var(--secondary);
}

/* DROPDOWN */
.dropdown-content {
  display: none;
  position: absolute;
  background: white;
  color: var(--black);
  min-width: 180px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 6px;
  z-index: 10;
}

.dropdown-content a {
  display: block;
  padding: 0.7rem 1rem;
  color: var(--black);
  font-size: 0.95rem;
}

.dropdown-content a:hover {
  background: var(--gray);
}

li:hover .dropdown-content {
  display: block;
}

/* BOUTON */
.btn-devis {
  background: var(--primary);
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.3s;
  font-size: 1rem;
}

.btn-devis:hover {
  background: #4a7c9f;
}

/* BURGER */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: auto; 
}

.burger div {
  width: 25px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.translate-widget {
  margin-left: 15px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
}

.translate-widget select {
  font-weight: 500;
  cursor: pointer;
  padding: 5px;
  appearance: none;
  outline: none;
}

/* supprimer logo Google */
.goog-logo-link,
.goog-te-gadget span {
  display: none !important;
}

/* Réduire espace du widget */
.goog-te-gadget {
  font-size: 0 !important;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  header {
    padding: 0.6rem 1rem;
  }

  .logo-desktop { display: none; }
  .logo-mobile { display: block; max-height: 50px; }

  nav { margin-left: auto; }       
  .burger { margin-left: auto; }   
}

@media (max-width: 768px) {
  header {
    padding: 0.5rem 1rem;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.7);
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  nav.active {
    display: flex;
  }

  .burger {
    display: flex;
  }

  .dropdown-content {
    position: static;
    background: rgba(255, 255, 255, 0.7);
    width: 100%;
    box-shadow: none;
    border-radius: 0;
  }

  .dropdown-content a {
    color: var(--primary);
  }

  .dropdown-content a:hover {
    background: var(--primary);
  }

  .btn-devis {
    width: 100%;
    text-align: center;
    padding: 0.8rem;
  }
}

@media (max-width: 480px) {
  .logo-mobile {
    max-height: 40px; 
  }

  nav a {
    font-size: 0.95rem;
  }

  .btn-devis {
    font-size: 0.95rem;
  }
  .translate-widget select {
    font-size: 12px;
  }
}

/* Amélioration pour très petits écrans */
@media (max-width: 360px) {
  header {
    padding: 0.4rem 0.6rem;
  }

  .logo-mobile {
    max-height: 35px;
  }

  nav ul {
    gap: 0.5rem;
  }

  nav a {
    font-size: 0.85rem;
  }

  .btn-devis {
    font-size: 0.85rem;
    padding: 0.6rem;
  }

  .dropdown-content a {
    padding: 0.6rem;
  }

  
  .burger div {
    width: 20px;
    height: 2px;
  }


  nav {
    background: white;
  }
}

/* ==========================================
   BLOC : HOME
   ========================================== */

.home {
    margin-top: 80px; 
    background: var(--primary);
    color: white;
    padding: 60px 5%; 
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0; 
}

.home h1 {

    font-size: clamp(2rem, 8vw, 3rem); 
    font-weight: bold;
    font-style: italic;
    text-transform: uppercase;
    margin-bottom: 1rem;
    line-height: 1.1;
    word-wrap: break-word; 
    overflow-wrap: break-word;
}

@media (max-width: 480px) {
    .home {
        padding: 40px 5%;
    }
}

@media (max-width: 768px) {
  .home, 
  #pourquoi-nous-choisir, 
  #services, 
  #travaux, 
  #contact {
    padding-left: 5% !important;
    padding-right: 5% !important;
  }

  .home h1 {
    font-size: 2rem; 
  }

  .travaux-grid {
    grid-template-columns: 1fr; 
  }
}
@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr; 
  }
  
  .services-intro h2 {
    font-size: 1.5rem;
  }
}

/* ==========================================
   BLOC : POURQUOI NOUS CHOISIR
   ========================================== */

#pourquoi-nous-choisir {
    padding: 60px 10%;
    background: white;
    border-top: 5px solid var(--secondary);
}

#pourquoi-nous-choisir h2 {
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 30px;
}

#pourquoi-nous-choisir ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
}

#pourquoi-nous-choisir li {
    background: #f9f9f9;
    padding: 20px;
    border-left: 4px solid var(--primary);
    font-weight: bold;
    color: var(--primary);
}

/* ==========================================
   BLOC : SERVICES
   ========================================== */

#services {
    padding: 60px 5%; 
    background: #f3f6f9;
}

.services-wrapper {
    display: flex;
    gap: 40px; 
    align-items: center; 
    max-width: 1100px; 
    margin: 0 auto;
}

.services-intro {
    flex: 0 0 30%; 
}

.services-intro h2 {
    text-align: left;
    color: var(--primary);
    font-size: 20px; 
    font-style: italic;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0;
    border-left: 5px solid var(--secondary);
    padding-left: 15px;
}

.services-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px; 
}

.service-card {
    background: white;
    padding: 25px; 
    border: 1px solid #ddd;
    border-radius: 0;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card h3 {
    color: var(--primary);
    font-size: 1rem; 
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    margin: 0;
}

.service-card p {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    font-size: 0.85rem; 
    line-height: 1.4;
}

/* --- INTERACTION --- */
.service-card:hover {
    background: white; 
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.service-card:hover h3 {
    color: var(--primary);
    margin-bottom: 8px;
}

.service-card:hover p {
    opacity: 1;
    max-height: 80px;
    margin-top: 5px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .services-wrapper { 
        flex-direction: column; 
    }
    .services-intro { 
        flex: none; 
        width: 100%; 
        margin-bottom: 20px; 
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .services-intro h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 992px) {
    .services-wrapper { flex-direction: column; align-items: flex-start; }
    .services-intro { flex: 1; margin-bottom: 30px; }
    .services-grid { width: 100%; }
}

/* ==========================================
   BLOC : TRAVAUX 
   ========================================== */

#travaux {
    padding: 80px 10%;
    background: white;
}

.container h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.travaux-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.travail-card {
    border: 1px solid #eee;
    padding: 15px;
}

.travail-card h4 {
    margin-bottom: 15px;
    color: var(--primary);
    text-align: center;
}

.travail-images {
    display: flex;
    gap: 10px;
}

.travail-images img {
    width: 50%;
    border-radius: 0; 
    object-fit: cover;
}
/*PAGINATION*/
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  width: 100%; 
  flex-wrap: wrap; 
}

.page-btn {
  width: 45px;
  height: 45px;
  border-radius: 8px; 
  border: 1px solid #ddd;
  background: #fff;
  color: var(--primary);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.page-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
@media (max-width: 992px) {
    #travaux {
        padding: 60px 5%; /* On réduit les marges sur tablette */
    }
    
    .travaux-grid {
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .travaux-grid {
        /* Force une seule colonne sur smartphone */
        grid-template-columns: 1fr; 
    }

    .travail-card h4 {
        font-size: 1.1rem;
    }

    .page-btn {
        width: 40px;
        height: 40px;
    }
}

/* ==========================================
   BLOC : CLIENTS & MÉTHODES (HARMONISÉ)
   ========================================== */

#types-clients, 
#methode-utilisee {
  padding: 60px 5%;
  background: white;
}

/* On alterne les fonds comme le reste de la page */
#methode-utilisee {
  background: #f3f6f9;
}

/* Titres alignés sur le style de la section "Services" */
#types-clients h2,
#methode-utilisee h2 {
  text-align: left;
  color: var(--primary);
  font-size: 1.8rem;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 40px;
  border-left: 5px solid var(--secondary);
  padding-left: 15px;
}

/* --- SECTION CLIENTS (GRID SYNCHRONISÉE) --- */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.client-card {
  background: #f9f9f9;
  padding: 30px;
  border: 1px solid #ddd;
  border-left: 4px solid var(--primary); /* Rappel du style "Pourquoi nous choisir" */
  border-radius: 0; /* Strict & industriel */
  transition: all 0.3s ease;
}

.client-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  background: white;
}

.client-card h3 {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.client-card p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #333;
  line-height: 1.5;
}

/* --- SECTION MÉTHODE (TIMELINE INDUSTRIELLE) --- */
.method-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.method-step {
  background: white;
  border: 1px solid #ddd;
  border-left: 4px solid var(--secondary); /* Accentuation de l'étape */
  border-radius: 0;
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.method-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-left-color: var(--primary);
}

.method-step-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  color: var(--primary);
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.method-step p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 10px;
}

.method-details {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.method-details li {
  font-size: 0.9rem;
  position: relative;
  padding-left: 15px;
  color: #333;
}

/* Puce carrée personnalisée pour le côté technique */
.method-details li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  background: var(--secondary);
}

.method-details li strong {
  color: var(--primary);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  #types-clients, 
  #methode-utilisee {
    padding-left: 5% !important;
    padding-right: 5% !important;
  }
  
  #types-clients h2,
  #methode-utilisee h2 {
    font-size: 1.4rem;
  }
}

/* ==========================================
   BLOC : PARTNERS
   ========================================== */

.partners-section {
  padding: 6rem 2rem;
  background-color: white;
  text-align: center;
  border-radius: 16px;
  overflow: hidden;
}

.partners-head h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.partners-head p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Carousel */
.partners-carousel {
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: scroll 20s linear infinite;
}

.partner {
  flex: 0 0 auto;
}

.partner img {
  max-width: 120px;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(50%);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.partner img:hover {
  transform: scale(1.1);
  filter: grayscale(0%);
}

/* Animation horizontale */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } 
}

/* Responsive */
@media (max-width: 768px) {
  .carousel-track {
    gap: 1.5rem;
  }
  .partner img {
    max-width: 90px;
    max-height: 60px;
  }
}

/* ==========================================
   BLOC : CONTACT
   ========================================== */

#contact {
  padding: 6rem 2rem;
  background: #f3f6f9;
  font-family: 'Inter', sans-serif;
}

#contact .section-head {
  flex-direction: column;
  text-align: center;
  margin-bottom: 3rem;
}

#contact .section-head h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
   margin-left: auto;
  margin-right: auto;
}

#contact .section-head p {
  font-size: 1rem;
  color: #555;
  max-width: 650px;
  margin: 0 auto;
}

/* ===== Form & Panel ===== */
#contact .two {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

#contact form,
#contact aside.panel {
  background: #ffffff;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  flex: 1 1 320px;
  max-width: 500px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#contact form:hover,
#contact aside.panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ===== Form Fields ===== */
#contact form div {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

#contact label {
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--primary);
}

#contact input,
#contact select,
#contact textarea {
  padding: 0.6rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contact input:focus,
#contact select:focus,
#contact textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 5px rgba(27,67,50,0.3);
}

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

/* ===== Full width button ===== */
#contact .full button.btn.primary {
  width: 100%;
  padding: 0.8rem 1.5rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

#contact .full button.btn.primary:hover {
  background: var(--secondary);
}

/* ===== Form note ===== */
#contact #formNote {
  font-size: 0.85rem;
  color: #555;
  margin-top: 0.5rem;
}

/* ===== Aside panel ===== */
#contact aside.panel h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

#contact aside.panel p,
#contact aside.panel address {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

/* ===== Responsiveness ===== */
@media (max-width: 768px) {
  #contact .two {
    flex-direction: column;
    gap: 1.5rem;
  }
  #contact form,
  #contact aside.panel {
    max-width: 100%;
  }
}

/* ==========================================
   BLOC : FOOTER
   ========================================== */
footer {
  background: var(--primary);
  color: #fff;
  padding: 4rem 2rem 2rem;
  font-family: 'Inter', sans-serif;
}

footer a {
  color: #e0f2f1;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Structure de la Grille principale */
footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr 1fr; 
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto 2rem auto;
}

footer .brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

footer h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin: 0 0 1rem 0;
  color: #fff;
}

footer p, footer address {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 0.5rem 0;
}

footer p.small {
  font-size: 0.9rem;
  opacity: 0.9;
}

footer .footnote {
  text-align: center;
  font-size: 0.85rem;
  color: #cfd8dc;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  list-style: none; 
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px; 
}

/* ===== RESPONSIVE PARFAIT ===== */

/* Mobiles */
@media (max-width: 768px) {
  footer .footer-grid {
    grid-template-columns: 1fr; /* Tout sur une colonne */
    text-align: center;
  }
  
  .footer-coordonnees {
    grid-column: span 1;
  }

  footer .brand {
    justify-content: center;
  }
}
