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

/* Taille de base du texte */
html {
  font-size: 16px; /* 1rem = 16px partout */
  -webkit-text-size-adjust: 100%; /* évite que Safari agrandisse le texte */
}

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;
  }

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

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

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

.home {
  padding: 5rem 2rem;
}

.home-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.home-left {
  flex: 1 1 500px;
}

.home-left .subtitle {
  color: #6EA1C4;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.home-left h1 {
  font-size: 2.4rem;
  line-height: 1.3;
  margin-bottom: 20px;
}

.home-left .description {
  margin-bottom: 30px;
  color: #C2C2C2;
}

.home-buttons {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
}

.btn-primary {
  background-color: #12598C;
  color: #fff;
}

.btn-primary:hover {
  background-color: #0e476f;
}

.btn-secondary {
  border: 2px solid #6EA1C4;
  color: #6EA1C4;
}

.btn-secondary:hover {
  background-color: #6EA1C4;
  color: #000;
}

.home-right {
  flex: 1 1 450px;
  position: relative;
}

.image-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* Overlay Stats incrustés sur l’image */
.overlay-stats {
  position: absolute;
  bottom: 15px;
  left: 15px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: rgba(232, 238, 246, 0.9);
  background: rgba(18, 89, 140, 0.4);
  backdrop-filter: blur(6px);
  padding: 10px 15px;
  border-radius: 10px;
}

.overlay-stats div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.overlay-stats strong {
  font-size: 1.2rem;
  color: #fff;
}

.overlay-stats span {
  font-size: 0.75rem;
  color: #c2c2c2;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .home {
    padding: 6rem 1rem; 
  }

  .home-content {
    flex-direction: column;
    text-align: center;
  }

  /* On cible home-left au lieu de home-text pour que ça marche */
  .home-left {
    flex: 1 1 auto;
    margin-bottom: 2rem;
  }

  .home-left .description {
    margin-left: auto;
    margin-right: auto;
  }

  /* On cible home-buttons au lieu de buttons */
  .home-buttons {
    justify-content: center;
  }

  /* MASQUER L'IMAGE SUR PETIT ÉCRAN */
  .home-right {
    display: none; 
  }
}

@media (max-width: 576px) {
  .home {
    padding: 4rem 1rem;
  }

  .home-left h1 {
    font-size: 1.8rem; 
  }

  .home-left .description {
    font-size: 0.95rem;
  }

  .home-buttons {
    flex-direction: column; 
    gap: 10px;
  }
}
/* ==========================================
   BLOC HABILITATIONS 
   ========================================== */
.vp-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 5vw, 60px); 
  padding: clamp(30px, 8vw, 80px) 5%;
  margin-bottom: 6rem;
  max-width: 1300px;
  margin: 0 auto;
  background-color: #FFFFFF;
}

.vp-text-column {
  flex: 1 1 400px; 
}

.vp-title {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--black);
}

.vp-title span { color: var(--primary); }

.vp-intro {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.vp-details {
  font-size: 0.95rem;
  color: #555;
  border-left: 4px solid var(--secondary);
  padding-left: 1.2rem;
  background: #f9f9f9; 
  padding-top: 10px;
  padding-bottom: 10px;
}

/* GRILLE DE BADGES DYNAMIQUE */
.vp-badges-container {
  flex: 1.2 1 350px;
  display: grid;
  /* La magie : min 120px pour tenir à 2 sur les petits écrans type iPhone SE */
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 15px;
  width: 100%;
}

.vp-badge {
  background: #ffffff;
  padding: 1.2rem 0.8rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #eee;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vp-badge:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.vp-badge img {
  width: clamp(40px, 6vw, 60px); 
  height: auto;
  margin-bottom: 0.8rem;
}

.vp-badge p {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
  text-transform: uppercase;
}

.vp-badge p span {
  display: block;
  font-weight: 400;
  color: var(--primary);
  font-size: 0.7rem;
  margin-top: 5px;
}

/* AJUSTEMENTS SPECIFIQUES POUR MOBILE */
@media (max-width: 768px) {
  .vp-section {
    padding: 40px 20px;
    text-align: center;
  }
  
  .vp-details {
    text-align: left; 
    margin-top: 20px;
  }
}

@media (max-width: 400px) {
  .vp-badges-container {
    /* Forcer 2 colonnes même sur les téléphones très étroits */
    grid-template-columns: 1fr 1fr; 
    gap: 10px;
  }
  
  .vp-badge {
    padding: 1rem 0.5rem;
  }
  
  .vp-badge p {
    font-size: 0.7rem; 
  }
}
@media (min-width: 1440px) {
  .partners-section {
    /* La grosse marge s'active SEULEMENT ici */
    margin-bottom: 80px; 
  }
}

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

.services {
  padding: 80px 60px;
  background: #f3f6f9;
  border-radius: 24px;
  text-align: center;
}

.services-text h2 {
  font-size: 34px;
  color: var(--primary);
  font-family: var(--font-titles);
  font-style: italic;
  font-weight: bold;
}

.steps {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.step {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: transform 0.3s ease;
}

.circle {
  width: 280px;
  height: 280px;
  background: white;
  border-radius: 50%;
  padding: 30px 24px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; 
  border: 4px solid transparent;
  transition: all 0.4s ease; 
}

/* === TITRES AGRANDIS ET CENTRÉS === */
.circle h3 {
  font-size: 18px; 
  font-family: var(--font-titles);
  font-style: italic;
  font-weight: bold;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center; 
  transition: color 0.3s ease;
}

/* Description */
.circle .title {
  font-size: 16px; 
  color: var(--black);
  font-weight: 500;
  margin-bottom: 10px;
  line-height: 1.4;
  transition: color 0.3s ease;
}

/* === COULEURS DES CONTOURS ET SURVOL === */
/* Particulier (Secondary) */
.step.particulier .circle { border-color: var(--secondary); }
.step.particulier .circle h3 { color: var(--secondary); }
.step.particulier:hover .circle { background-color: var(--secondary); }

/* Entreprise (Gray) */
.step.entreprise .circle { border-color: var(--gray); }
.step.entreprise .circle h3 { color: #888; }
.step.entreprise:hover .circle { background-color: var(--gray); }

/* Marché Public (Primary) */
.step.mp .circle { border-color: var(--primary); }
.step.mp .circle h3 { color: var(--primary); }
.step.mp:hover .circle { background-color: var(--primary); }

/* Marché Public (Primary) */
.step.service4 .circle { border-color: var(--black); }
.step.service4 .circle h3 { color: var(--black); }
.step.service4:hover .circle { background-color: var(--black); }

/* Inversion des textes au survol */
.step:hover .circle h3, 
.step:hover .circle .title, 
.step:hover .circle a {
  color: #FFFFFF !important;
}

.circle a {
  margin-top: 10px;
  display: inline-block;
  text-decoration: none;
  font-weight: bold;
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 8px;
  transition: 0.3s;
}

.step:hover .circle a {
  border: 1px solid white;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .circle h3 {
  font-size: 12px; 
  }
  .circle {
    width: 220px;
    height: 220px;
    padding: 20px;
  }

  .circle .title {
    font-size: 16px;
  }
}

/* ==========================================
   BLOC : REALISATIONS
   ========================================== */

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

#realisations .realisations-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3rem;
  text-align: center;
}

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

#realisations .filters {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

#realisations .chip {
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 50px;
  background: #e0f2f1;
  color: var(--secondary);
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

#realisations .chip[aria-pressed="true"],
#realisations .chip:hover {
  background: var(--primary);
  color: #fff;
}

#realisations .grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 1.5rem;
}

#realisations .work {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: block;
  text-decoration: none;
}

.work.js-hidden { display: none !important; }

#realisations .work img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

#realisations .work:hover img { transform: scale(1.05); }

#realisations .badge {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.9rem;
  border-top-right-radius: 10px;
}

.card_overlay_v2 {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex; justify-content: center; align-items: center;
  opacity: 0; transition: opacity 0.4s ease;
}

.card_overlay_v2 p {
  color: #fff; border: 1px solid #fff; padding: 8px 15px; border-radius: 50px;
}

#realisations .work:hover .card_overlay_v2 { opacity: 1; }

/* ====== POPUPS ====== */
.popup_v2 {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  justify-content: center; align-items: center;
}

/* Affiche le popup quand l'ID est ciblé */
.popup_v2:target { display: flex; }

.popup_v2__container {
  background-color: white; padding: 2rem; border-radius: 15px;
  max-width: 700px; width: 90%; max-height: 90vh; overflow-y: auto;
  position: relative; animation: fade-in-up 0.4s ease-out;
}

.popup_v2__close {
  position: absolute; top: 15px; right: 20px; font-size: 2.5rem;
  text-decoration: none; color: #333;
}

.popup_v2__title {
  font-family: 'Playfair Display', serif; font-size: 2rem;
  color: #1a1a1a; border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem; margin-bottom: 1.5rem; display: inline-block;
}

/* --- SLIDER  --- */
.workimg_slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory; 
  gap: 10px;
  margin-bottom: 0.5rem;
  padding-bottom: 10px;
  scrollbar-width: thin; 
  scrollbar-color: var(--primary) #eee;
}


.workimg_slider .workimg {
  flex: 0 0 100%; 
  scroll-snap-align: center;
  display: flex;
  justify-content: center;
}

.workimg_slider img {
  width: 100%;
  max-height: 300px;
  object-fit: contain; 
  border-radius: 10px;
  background: #f4f4f4;
}

.slider_hint {
  text-align: center;
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 1.5rem;
  font-style: italic;
}

/* --- GRILLE DE DÉTAILS --- */
.project_details {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 10px;
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--primary);
}

.detail_item {
  font-size: 0.9rem;
  color: var(--black);
}

.project_description h4 {
  font-family: var(--font-titles);
  color: var(--primary);
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 480px) {
  .project_details {
    grid-template-columns: 1fr; 
  }
  .workimg_slider img {
    max-height: 200px;
  }
}

/* Ajustement pour les petits écrans (Mobile) */
@media (max-width: 768px) {
  .popup_workimg img {
    max-height: 180px; 
  }
}
.badge_small {
  padding: 0.3rem 0.8rem; background: var(--primary); color: #fff;
  border-radius: 50px; font-size: 0.8rem;
}

@keyframes fade-in-up {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}


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

/* ===== Responsive ===== */

/* Tablettes / écrans moyens */
@media (max-width: 1024px) {
  #realisations .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
  #realisations .work img {
    height: 200px;
  }
}

/* Smartphones */
@media (max-width: 768px) {
  #realisations {
    padding: 4rem 1.5rem;
  }
  #realisations .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  #realisations .work img {
    height: 180px;
  }
  #realisations .realisations-head h2 {
    font-size: 2rem;
  }
  #realisations .realisations-head p {
    font-size: 0.95rem;
    max-width: 90%;
  }
  #realisations .chip {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
  }
}

/* Très petits écrans */
@media (max-width: 480px) {
  #realisations {
    padding: 3rem 1rem;
  }
  #realisations .work img {
    height: 150px;
  }
  #realisations .realisations-head h2 {
    font-size: 1.7rem;
  }
  #realisations .realisations-head p {
    font-size: 0.9rem;
  }
  #realisations .chip {
    font-size: 0.85rem;
    padding: 0.35rem 0.8rem;
  }
}

/* Ultra petits écrans <360px */
@media (max-width: 360px) {
  #realisations {
    padding: 2.5rem 0.8rem;
  }
  #realisations .work img {
    height: 130px;
  }
  #realisations .realisations-head h2 {
    font-size: 1.5rem;
  }
  #realisations .realisations-head p {
    font-size: 0.85rem;
  }
  #realisations .chip {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }
}

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

.partners-section {
  padding: 6rem 2rem;
  background-color: white;
  text-align: center;
  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 : PARTNERS
   ========================================== */

#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 : footers
   ========================================== */

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 1fr; /* La colonne 2 prend deux fois plus de place */
  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;
  }
}