/* CSS Document */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.0/css/all.min.css');

* {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #3C464C;
  margin: 0;
  padding: 0;
  font-size: 1em;
}

p { text-align: justify; }

#container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/*** header ***/
h1 span { display: none; }

#header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 1000;
  margin-bottom: 50px;
}

.header-center {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

#header h1 {
  display: flex;
  align-items: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #009DE0;
}

#header h1 img {
  width: 120px;
  height: auto;
  margin-left: 0.75rem;
}

#header ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
}

#header ul li a {
  text-decoration: none;
  color: #333;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease;
}

#header ul li a:hover {
  background-color: #009DE0;
  color: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

/* Socials */
.socials {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.socials a i {
  color: #333;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.socials a:hover i { color: #009DE0; }

/*** sections & containers ***/
.vertical-container {
  display: flex;
  gap: 15px;
}

.section {
  padding: 20px;
  flex: 1;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: 0.2s;
}

.section h2, #about h3, #contact h3, #mentions-legales h2, #politique-confidentialite h2 {
  color: #FFF;
  font-size: 1em;
  background-color: #009DE0;
  padding: 10px 0;
  text-align: center;
}

.section img {
  width: 100%;
  height: auto;
  display: block;
}

.section p { margin: 10px 0; }

.section ul {
  list-style: none;
  padding-left: 1.5em;
  margin-top: 20px;
}

.section ul li {
  position: relative;
  margin-bottom: 0.5em;
}

.section ul li:before {
  content: "";
  position: absolute;
  left: -1.2em;
  top: 0.4em;
  width: 0.6em;
  height: 0.6em;
  background-color: #009DE0;
}

/*** QUOTE ***/
.quote {
  font-size: 1.4rem;
  color: #009DE0;
  margin-top: 50px;
  text-align: center;
  quotes: "“" "”" "‘" "’";
}

.quote::before { content: open-quote; font-size: 2.5rem; vertical-align: top; margin-right: 0.2rem; }
.quote::after { content: close-quote; font-size: 2.5rem; vertical-align: bottom; margin-left: 0.2rem; }

/*** ABOUT & CARTE ***/
#about { margin-top: 50px; }
#about p { margin: 20px 0; }
#about iframe { margin-top: 20px; }

h2, h3 { font-size: 1em; text-align: center; }
h4 a { text-decoration: none; }
h4 svg { position: relative; top: 2px; }

.section.carte { position: relative; }
.section.carte img {
  position: absolute;
  top: 130px;
  right: 0;
  width: 350px;
  z-index: 1;
  pointer-events: none;
}
.section.carte h3, .section.carte p, .section.carte ul { position: relative; z-index: 2; }

/*** FOOTER ***/
#footer {
  width: 100%;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
  margin-top: 50px;
}

.footer-center { max-width: 1200px; margin: 0 auto; }
#footer .vertical-container { align-items: center; }
#footer .section { box-shadow: none; }
#footer .section i { color: #009DE0; }

#footer #legal {
  background-color: #009DE0;
  text-align: center;
  padding: 10px;
}

#footer #legal ul { list-style-type: none; }
#footer #legal ul li { display: inline; margin-right: 20px; }
#footer #legal ul li, #footer #legal ul li a { text-decoration: none; color: #FFF; }
#footer #legal ul li a:hover { text-decoration: underline; }

/*** FORMULAIRE ***/
#contact { margin: 50px 0; }
#contact p { margin: 20px 0; }
#contact form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
#contact label { display: block; margin-bottom: 5px; font-weight: bold; }
#contact input, #contact select, #contact textarea {
  width: 100%;
  padding: 10px 0px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}
#contact textarea { resize: vertical; min-height: 140px; }
#contact .full-width { grid-column: 1 / -1; }

#contact .success, #contact .errors {
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  text-align: center;
  border: 1px solid;
}
#contact .success { background: #d4edda; color: #155724; border-color: #c3e6cb; }
#contact .errors { background: #f8d7da; color: #721c24; border-color: #f5c6cb; }
#contact .errors ul { list-style-type: none; }

#contact button {
  background: #007bff;
  color: white;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  padding: 8px 20px;
  border-radius: 5px;
  font-size: 14px;
}
#contact button:hover { background: #0056b3; }
.button-container { grid-column: 1 / -1; text-align: right; }

/*** GRIDS (Services & About) ***/
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.services-grid .section-large {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 55% 45%;
  align-items: center;
}
.services-grid .section-large h2 {grid-column: 1 / -1;}
.services-grid .section-large img { grid-column: 1; grid-row: 2 / span 4; }
.services-grid .section-large p, .services-grid .section-large ul { grid-column: 2; margin: 10px; }


.about-grid { display: grid; grid-template-columns: 1.5fr 2fr; gap: 20px; }

/*** MISC & UTILS ***/
.bleu { color: #009DE0; }
.call-container { display: flex; flex-direction: column; align-items: center; margin-top: 10px; }

.btn-call {
  display: inline-block;
  background-color: #0078d7;
  color: white;
  padding: 10px 18px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  margin-left: 20px;
  transition: background-color 0.3s ease;
}
.btn-call i { margin-right: 8px; color: #FFF; }
.btn-call:hover { background-color: #005ea6; }

.free-banner {
  margin-top: 6px;
  padding: 4px 15px;
  background-color: #fff;
  color: #0073e6;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 500;
  text-align: center;
  width: max-content;
  margin-left: 20px;
}

#scrollTopBtn {
  position: fixed;
  bottom: 100px;
  right: 100px;
  z-index: 100;
  background-color: #009DE0;
  color: white;
  border: none;
  padding: 18px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  transition: background-color 0.3s;
}
#scrollTopBtn i { color: #FFF; }

/*** COOKIES ***/
#cookie-banner {
  position: fixed;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  padding: 20px 30px;
  border-radius: 15px;
  max-width: 800px;
  width: 90%;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  z-index: 1000;
  opacity: 0;
  transition: all 0.6s ease-in-out;
}
#cookie-banner.show { bottom: 50px; opacity: 1; }
#cookie-banner button {
  background: #ff9800;
  border: none;
  padding: 12px 30px;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}
#cookie-banner .cookie-icon {
  font-size: 40px;
  transition: transform 0.5s ease;
}
/* --- MEDIA QUERIES --- */

@media (max-width: 1024px) {
  .header-center { padding: 1rem; }
  #header ul { gap: 1rem; font-size: 0.95rem; }
  #header h1 { font-size: 1.2rem; }
  .vertical-container { flex-direction: column; gap: 10px; }
  .section.carte img { width: 250px; top: 120px; }
}

@media (max-width: 768px) {
  #header { position: relative; }
  .header-center { flex-direction: column; gap: 1rem; }
  #header h1 img { width: 200px !important; }
  #header ul { flex-direction: column; width: 100%; text-align: center; gap: 8px; }
  #header ul li a { font-size: 1.2rem; padding: 0.5rem 0; }
  
  .socials { position: absolute; top: 20px; right: 20px; }
  
  .quote { font-size: 1.2rem; }
  .quote::before, .quote::after { font-size: 1.4rem; }

  .section.carte img { position: relative; width: 100%; top: 0; margin-bottom: 1rem; }
  
  #contact { padding: 20px; }
  #contact form { grid-template-columns: 1fr; padding-right: 10px; }
  .button-container { text-align: center; }

  #footer .vertical-container { flex-direction: column; }
  #footer #legal ul li { display: block; margin-bottom: 10px; }

  #scrollTopBtn { bottom: 10px; right: 10px; }

  .btn-call { margin: 10px 0; width: 90%; text-align: center; }
  .free-banner { margin: -5px 0 10px 0; }

  .services-grid, .about-grid { grid-template-columns: 1fr; }
  .services-grid .section-large { display: block; }
  .services-grid .section-large img { margin-bottom: 20px; }
}

@media (max-width: 480px) {
  #about iframe { width: 100%; }
  #cookie-banner { flex-direction: column; text-align: center; }
}