/* ==========================================
   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: linear-gradient(135deg, #f5f7fa 0%, #dce6ee 100%);
}

/* ==========================================
   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;
  }

  /* Menu burger plus petit */
  .burger div {
    width: 20px;
    height: 2px;
  }

  /* Assurer que le menu couvre bien l'écran */
  nav {
    background: white;
  }
}

/* ==========================================
   BLOC : HOME
   ========================================== */
#home {
    margin-top: 80px;
    background: var(--primary); 
    color: white;
    padding: 80px 10%;
    text-align: left;
    border-radius: 0; 
}

#home h1 {
    font-size: 3rem;
    font-weight: bold;
    font-style: italic; 
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* ==========================================
   BLOC : Travaux
   ========================================== */
#travaux {
    padding: 80px 5%;
    background: #ffffff;
}

#travaux h2 {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    border-left: 5px solid var(--secondary);
    padding-left: 15px;
    margin-bottom: 3rem;
}

.container {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.card {
  display: flex;
  flex-direction: column; 
  background: white;
  border-radius: 0; 
  border: 1px solid #eee;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  overflow: hidden;
  height: 100%;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card img {
  width: 100%;
  height: 250px; 
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-content {
  padding: 1.5rem;
  background: white;
}

.card-content h3 {
  color: var(--primary);
  font-size: 1.2rem;
  text-transform: uppercase;
  font-style: italic; 
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.card-content p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* BOUTON CARRÉ ET SOLIDE */
.card-content .btn {
  display: block;
  width: 100%; 
  text-align: center;
  background: var(--primary);
  color: white;
  padding: 0.8rem;
  border-radius: 0; 
  text-transform: uppercase;
  font-weight: bold;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-decoration: none;
  transition: background 0.3s;
}

.card-content .btn:hover {
  background: var(--secondary);
}

/* Swiper */
.swiper {
  padding: 2rem 0;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--primary);
}

.swiper-pagination-bullet-active {
  background: var(--primary);
}

/* Responsive : petits écrans */
@media(max-width: 900px){
  .card {
    flex-direction: column; 
  }
  .card img {
    width: 100%;
    height: 200px; 
  }
}

/* ==========================================
   BLOC : Partners
   ========================================== */

.partners-section {
  padding: 6rem 2rem;
  background-color: #f9f9f9;
  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;
  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: #f9f9f9;
  font-family: 'Inter', sans-serif;
}

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

#contact .section-head h2 {
  font-family: 'Playfair Display', serif;
  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;
  }
}
