@font-face {
  font-family: "Gomme_Sans_Bold";
  src: url("assets/polices/Gomme_Sans_Bold.otf");
}

@font-face {
  font-family: "Ubuntu-Regular";
  src: url("assets/polices/Ubuntu-Regular.ttf");
}

/* Reset basique amélioré */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Améliorations globales responsive */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  line-height: 1.5;
  font-family: "Ubuntu-Regulard", sans-serif;
}

h2 {
font-family: "Gomme_Sans_Bold", sans-serif;
}

img {
  max-width: 100%;
  height: auto;
}

/* Header responsive */
header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 10px 5%;
  position: relative;
}

.span-header{
  color: #2d2e83;
}

header .logo {
  flex: 1 0 120px;
  min-width: 120px;
}

header .phrases {
  flex: 2 0 200px;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 10px 0;
  order: 3;
  width: 100%;
  text-align: center;
}

header .actions {
  flex: 1 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

header img {
  /*height: 40px;*/
  width: auto;
}

@media (max-width: 768px) {
  header {
    padding: 10px 15px;
  }
  
  header .phrases {
    flex-direction: column;
    gap: 5px;
    font-size: 0.9rem;
  }
  
  header .actions {
    gap: 8px;
  }
  
  .btn {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
}

/* Style bouton amélioré pour mobile */
.btn {
  display: inline-block;
  padding: 8px 16px;
  background-color: #2d2e83;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  user-select: none;
  text-align: center;
  white-space: nowrap;
}
.btn:hover,
.btn:focus {
  background-color: #0056b3;
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Navbar améliorée */
nav.navbar {
  display: flex;
  justify-content: center;
  background-color: #f2f2f2;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav.navbar > ul.desktop-menu {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 1200px;
  justify-content: center;
}

nav.navbar li {
  position: relative;
}

nav.navbar a {
  display: block;
  padding: 12px 15px;
  color: #000;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
}

nav.navbar a:hover,
nav.navbar a:focus {
  background-color: #ddd;
  outline: none;
}

/* Dropdown amélioré */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ccc;
  min-width: 200px;
  flex-direction: column;
  z-index: 10;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  border-radius: 0 0 4px 4px;
}

nav.navbar li:hover .dropdown-content,
nav.navbar li:focus-within .dropdown-content {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-content a {
  padding: 12px 15px;
  font-weight: 400;
  border-bottom: 1px solid #eee;
}

.dropdown-content a:hover,
.dropdown-content a:focus {
  background-color: #eee;
  outline: none;
}

/* Highlight devis amélioré */
.highlight-devis {
  border: 2px solid #2d2e83;
  border-radius: 4px;
  padding: 6px 14px;
  font-weight: 700;
  color: #d33;
  transition: all 0.3s ease;
  margin-left: 5px;
}

.highlight-devis:hover,
.highlight-devis:focus {
  background-color: #2d2e83;
  color: #95c11f;
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#tel-header {
  background-color: #2d2e83;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}

#tel-header a {
  color: #fff;
  text-decoration: none;
}

#tel-header a:hover {
  text-decoration: underline;
}


/* Hero full screen amélioré */
.hero {
  width: 100vw;
  height: 100vh;
  max-height: 800px;
  overflow: hidden;
  position: relative;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .hero {
    height: 70vh;
  }
}

/* Banderole améliorée */
.banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background-color: #f5f5f5;
  padding: 30px 5%;
  gap: 20px;
}

.banner h2 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  flex: 1 0 200px;
}

.banner a.btn {
  font-size: 1rem;
  padding: 12px 24px;
  flex: 0 0 auto;
}

@media (max-width: 480px) {
  .banner {
    padding: 20px 15px;
    justify-content: center;
    text-align: center;
  }
  
  .banner h2 {
    flex: 1 0 100%;
    margin-bottom: 15px;
  }
}

/* Sections alternées texte/image améliorées */
.alternated-sections .alternated-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 40px 5%;
}

.alternated-sections .alternated-section:nth-child(odd) {
  flex-direction: row;
}

.alternated-sections .alternated-section:nth-child(even) {
  flex-direction: row-reverse;
}

.alternated-sections img {
  width: 50%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  flex: 1 1 300px;
}

.alternated-sections div {
  width: 50%;
  flex: 1 1 300px;
}

.alternated-sections p {
  margin: 0 0 20px 0;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.6;
}

.alternated-sections a.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
  background-color: #2d2e83;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  user-select: none;
}

.alternated-sections a.btn:hover,
.alternated-sections a.btn:focus {
  background-color: #95c11f;
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .alternated-sections .alternated-section {
    padding: 30px 15px;
    gap: 30px;
  }
  
  .alternated-sections img,
  .alternated-sections div {
    flex: 1 1 100%;
  }
  
  .alternated-sections p {
    margin-bottom: 15px;
  }
}

.map {
  width: 100%;
  background-color: #f0f0f0;
  justify-content: center;
  align-items: center;
}

.map img {
  width: 100%;
  height: auto;
  max-width: 1200px;
  margin: 0 auto;
  display: block;
}

.map h2 {
  text-align: center;
  font-size: 1.5rem;
  margin: 20px 0;
  padding-top: 40px;
}

.map p {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 20px;
}

/* Carousel clients amélioré */
.clients-banner {
  background-color: #ffffff;
  padding: 40px 5%;
  text-align: center;
}

.clients-banner h2 {
  margin-bottom: 24px;
  font-size: clamp(1.5rem, 2.5vw, 1.75rem);
  font-weight: 700;
}

.carousel-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  width: max-content;
  animation: scroll-left 30s linear infinite;
  will-change: transform;
}

.carousel-track:hover,
.carousel-track:focus-within {
  animation-play-state: paused;
}

.carousel-item {
  flex: 0 0 auto;
  width: 150px;
  margin-right: 30px;
  padding: 10px;
}

.carousel-item img {
  width: 100%;
  height: 60px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: all 0.3s ease;
  display: block;
}

.carousel-item img:hover,
.carousel-item img:focus {
  filter: grayscale(0%);
  outline: none;
  transform: scale(1.05);
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50%));
  }
}

@media (max-width: 768px) {
  .clients-banner {
    padding: 30px 15px;
  }
  
  .carousel-item {
    width: 120px;
    margin-right: 20px;
  }
  
  .carousel-item img {
    height: 50px;
  }
}

/* Footer amélioré */
footer {
  background-color: #222;
  color: #ccc;
  padding: 25px 5%;
  text-align: center;
  font-size: 0.9rem;
  user-select: none;
}

footer a {
  color: #aaa;
  text-decoration: none;
  margin: 0 10px;
  transition: all 0.3s ease;
  display: inline-block;
}

footer a:hover,
footer a:focus {
  color: #fff;
  text-decoration: underline;
  outline: none;
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  footer {
    padding: 20px 15px;
  }
  
  footer a {
    display: block;
    margin: 8px 0;
  }
}

/* Menu Hamburger - Version Mobile améliorée */
@media (max-width: 992px) {
  nav.navbar > ul.desktop-menu {
    display: none;
  }
  
  .navbar-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0 0 0 auto;
    position: relative;
    z-index: 1001;
  }
  
  .navbar-toggle:focus {
    outline: none;
  }
  
  .navbar-toggle .icon-bar {
    width: 100%;
    height: 3px;
    background-color: #000;
    transition: all 0.3s ease;
    transform-origin: center;
  }
  
  nav.navbar {
    padding: 15px 5%;
    justify-content: flex-end;
  }
  
  .mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(242, 242, 242, 0.98);
    z-index: 1000;
    padding: 80px 5% 20px;
    overflow-y: auto;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.4s ease;
  }
  
  .mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .mobile-menu li {
    border-bottom: 1px solid #ddd;
    position: relative;
  }
  
  .mobile-menu a {
    display: block;
    padding: 15px 0;
    color: #000;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
  }
  
  .mobile-menu .dropdown-content {
    position: static;
    display: none;
    border: none;
    box-shadow: none;
    background-color: rgba(230, 230, 230, 0.5);
    margin: 5px 0 10px;
    border-radius: 4px;
  }
  
  .mobile-menu .dropdown-content a {
    padding: 12px 20px;
    font-size: 1rem;
  }
  
  .mobile-menu li.active .dropdown-content {
    display: flex;
    animation: fadeIn 0.3s ease;
  }
  
  .navbar-open .mobile-menu {
    display: block;
    transform: translateY(0);
    opacity: 1;
  }
  
  .navbar-open .navbar-toggle .icon-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .navbar-open .navbar-toggle .icon-bar:nth-child(2) {
    opacity: 0;
  }
  
  .navbar-open .navbar-toggle .icon-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  
  .highlight-devis {
    margin-left: 0;
  }
}

/* Cache le toggle en desktop */
@media (min-width: 993px) {
  .navbar-toggle {
    display: none;
  }
  .mobile-menu {
    display: none !important;
  }
}

/* Améliorations pour très petits écrans */
@media (max-width: 360px) {
  header .logo {
    flex: 1 0 100px;
  }
  
  header .actions {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
  }
  
  .alternated-sections a.btn {
    width: 100%;
    text-align: center;
  }
}

#err404 {
  margin: 50px;
  text-align: center;
}

/*CSS de la page en construction */
  .en-construction-wrapper {
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80vh;
    text-align: center;
    color: #333;
  }

  .en-construction-wrapper .construction-box {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    padding: 40px 60px;
    max-width: 500px;
    width: 90%;
    animation: fadeIn 1s ease-in-out;
  }

  .en-construction-wrapper h1 {
    font-size: 2em;
    margin-bottom: 10px;
    color: #ff9900;
  }

  .en-construction-wrapper p {
    font-size: 1.2em;
    margin-bottom: 20px;
  }

  .en-construction-wrapper .countdown {
    font-size: 2.5em;
    font-weight: bold;
    color: #ff5500;
    animation: pulse 1s infinite;
  }

  .en-construction-wrapper .btn-home {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #ff9900;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s;
  }

  .en-construction-wrapper .btn-home:hover {
    background-color: #e57c00;
  }

  .en-construction-wrapper .spinner {
    margin: 30px auto 0;
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top: 4px solid #ff9900;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }

  @keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Fin du CSS de la page en construction */

  /* Début CSS de la page CGV */

#cgv {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

#cgv h1 {
  text-align: center;
}

#cgv h1,
#cgv h2,
#cgv h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #111;
}

#cgv p {
  margin-bottom: 1rem;
}

#cgv ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
  list-style-type: disc;
}

#cgv a {
  color: #0066cc;
  text-decoration: none;
}

#cgv a:hover {
  text-decoration: underline;
}

.cgv-download {
  margin: 1.5rem 0;
  text-align: right;
  font-size: 0.95rem;
}

.cgv-download a {
  color: #0066cc;
  text-decoration: none;
  border: 1px solid #0066cc;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.cgv-download a:hover {
  background-color: #0066cc;
  color: white;
}

  /* Fin CSS page CGV */

  /* Début CSS mentions légales */

  #mentions-legales {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
  color: #333;
  line-height: 1.6;
}

#mentions-legales h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #222;
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.5rem;
}

#mentions-legales h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  color: #444;
}

#mentions-legales p {
  margin: 0.5rem 0 1rem;
}

#mentions-legales a {
  color: #0066cc;
  text-decoration: underline;
}

@media screen and (max-width: 600px) {
  #mentions-legales {
    padding: 1rem;
  }

  #mentions-legales h1 {
    font-size: 1.5rem;
  }

  #mentions-legales h2 {
    font-size: 1.2rem;
  }
}

  /* Fin CSS mentions légales */

  /* Début CSS page contact */
  #contact-page {
    max-width: 900px;
    margin: auto;
    padding: 2rem;
}

#contact-page h2 {
  margin-top: 25px;
}

.banner-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    filter: brightness(0.8) contrast(1.1) saturate(1.1);
    margin-bottom: 1.5rem;
}

.contact-infos,
.contact-form,
.google-maps {
    margin-bottom: 2.5rem;
}

.contact-form form {
    display: grid;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}

.contact-form button {
    background-color: #0077cc;
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #005fa3;
}

.google-maps iframe {
    width: 100%;
    border-radius: 8px;
    border: none;
}

/* Messages d'information */
.success, .errors {
  max-width: 800px;
  margin: 20px auto;
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 500;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}

.success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
}

.errors {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #ef4444;
}

.errors ul {
  padding-left: 20px;
  margin: 0;
}

/* Fin CSS page contact */