body {
   background-color: #DFF6FF;
   text-align:left;
   font-size: 1.1em;
   font-family: "Montserrat", sans-serif;
}

header {
  padding-top: 60px;
}

.logo {
  width: 60px;
  height: auto;
}

.titre-site {
  font-size: smaller;
  position: relative;
  top: -45px;
  color: rgb(3, 141, 233);
}

/* Bannière */

.banniere {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.banniere img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Menu navigation FIXED */

nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  padding: 10px 0;
  background-color: #DFF6FF;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav a {
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
}

h1 { 
  text-align: center; 
  font-family: 'Montserrat', sans-serif; 
  color: aquamarine; 
  background-color: dodgerblue; 
  width: fit-content;
  margin: auto;
  opacity: 0.8; 
  border-radius: 10px; 
  border: 2px solid black; 
  margin-top: 55px;
}

.slogan {
  font-size: 1.5em;
  color: #0077b6;
  text-align: center;
  font-weight: 350;
  font-family: "Montserrat", sans-serif;
  margin-top: 10px;
}

p {
  text-align: justify;
  padding: 10px;
  margin: 5px 0;
}

.contact {
  text-decoration: underline;  
  background-color: aliceblue;
}

a:hover {
    color: blue;
}

/* CTA */

.cta {
  display: block;
  background-color: beige;
  justify-content: center;
  margin: auto;
  width: fit-content;
  border: 2px solid blueviolet;
  border-radius: 8px;
  font-size: x-large;
  padding: 10px;
  text-decoration: none;
  margin-top: 50px;
  color: black;
  transition: transform 0.3s;
}

/* Animation keyframes */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(138, 43, 226, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 15px 10px rgba(138, 43, 226, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(138, 43, 226, 0);
  }
}

.cta:hover {
  animation: pulse 2s infinite;
}

/*À propos*/

.a_propos_container {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  padding: 40px 20px;
  width: 100%;
  box-sizing: border-box;
}

.pisciniste {
  width: 290px;
  margin-top: 20px;
  display: block;
  border: 1px solid black;
  border-radius: 8px;
}

.texte_apropos {
  flex: 1;
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  text-align: justify;
}

/*Formulaire*/

.eau_piscine {
  background-image: url("Photos/eau.jpg");
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 400px;
  opacity: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  max-width: 950px;
  margin: 40px auto;
}

.infos-contact, .formulaire-section {
  flex: 1 1 350px;
  background-color: #E6F7FF;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 10px 10px 10px rgba(0,0,0,0.1);
  border: 1px solid black;
}

.infos-contact p {
  margin: 30px 0;
  line-height: 1.5;
}

.formulaire-contact label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

.formulaire-contact input,
.formulaire-contact textarea {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

.formulaire-contact button {
  margin-top: 15px;
  background-color: #00AEEF;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1em;
}

.formulaire-contact button:hover {
  background-color: #007BBE;
}

.contact-container section {
  margin-bottom: 40px;
}

@media (min-width: 800px) {
  .contact-container {
    gap: 110px;
  }
}

.contact-piscine {
    font-size: 1em;
    line-height: 1.8;
    margin-bottom: 0.5em;
    margin-top: 3em;
}

.photo-contact {
  width: 340px;
  display: block;
  margin: 40px auto;
  border: 1px solid black;
  border-radius: 8px;
}

/* Section Google Maps */

.map-section {
  max-width: 1000px;
  margin: 50px auto;
  padding: 20px;
  text-align: center;
}

.map-section h2 {
  color: #0077b6;
  margin-bottom: 20px;
  font-size: 1.8em;
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 2px solid #0077b6;
}

/*Page services*/

.intro-services {
  max-width: 900px;
  margin: 40px auto;
  font-size: 1.1em;
  text-align: justify;
  line-height: 1.8;
  padding: 0 20px;
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin: 40px auto;
  max-width: 1100px;
}

.service-card {
  background-color: #E6F7FF;
  border: 1px solid #0077b6;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 320px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.service-card h2 {
  color: #0077b6;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.95em;
  text-align: left;
  line-height: 1.6;
}

.cta-container {
  text-align: center;
  margin: 50px 0;
}

/*Page footer*/

footer {
  text-align: center;
  padding: 20px;
  color: #004E89;
  font-size: 0.9em;
}

/* Réseaux sociaux footer */

.reseaux {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}

.reseaux img {
  width: 35px;
  height: 35px;
  transition: transform 0.3s;
}

.reseaux img:hover {
  transform: scale(1.2);
}

/*Page tarifs*/

.table-tarifs {
  margin: 40px auto;
  max-width: 800px;
  padding: 10px;
}

.table-tarifs table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.05em;
}

.table-tarifs th, .table-tarifs td {
  border: 1px solid #0096c7;
  padding: 12px 15px;
  text-align: left;
}

.table-tarifs th {
  background-color: #CAF0F8;
  color: #03045E;
  text-transform: uppercase;
}

.table-tarifs tr:nth-child(even) {
  background-color: #E6F7FF;
}

.table-tarifs tr:hover {
  background-color: #ADE8F4;
  transition: background-color 0.3s;
}

/************************************************
RESPONSIVE GÉNÉRAL POUR TOUT LE SITE
************************************************/

@media (max-width: 900px) {

  header {
    padding-top: 120px;
  }

  /* Bannière plus basse sur mobile */
  .banniere {
    height: 200px;
  }

  /* Menu en pile */
  nav {
    flex-direction: column;
    gap: 10px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
  }

  nav a {
    font-size: 1em;
  }

  /* Titre centré et descendu correctement */
  h1 {
    font-size: 1.3em;
    margin-top: 20px;
  }

  .slogan {
    font-size: 1.2em;
  }

  /* Page À propos */
  .a_propos_container {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .pisciniste {
    width: 100%;
    max-width: 350px;
    margin: auto;
  }

  .texte_apropos {
    text-align: justify;
    padding: 10px;
  }

  /* Page contact */
  .contact-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .infos-contact,
  .formulaire-section {
    width: 90%;
    max-width: 480px;
  }

  .photo-contact {
    display: block;
    margin: 30px auto;
    width: 300px;
    border: 1px solid black;
    border-radius: 8px;
  }

  /* Carte Google Maps responsive */
  .map-section {
    padding: 15px;
  }

  .map-section h2 {
    font-size: 1.4em;
  }

  .map-container iframe {
    height: 350px;
  }

  /* Services */
  .services-container {
    flex-direction: column;
    align-items: center;
  }

  .service-card {
    width: 90%;
    max-width: 360px;
  }

  /* Tableaux tarifs */
  .table-tarifs table,
  .table-tarifs th,
  .table-tarifs td {
    font-size: 0.9em;
  }

  .table-tarifs table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/************************************************
RESPONSIVE TRÈS PETITS ÉCRANS (téléphones < 480px)
************************************************/
@media (max-width: 480px) {

  header {
    padding-top: 150px;
  }

  nav a {
    font-size: 0.9em;
  }

  .banniere {
    height: 150px;
  }

  h1 {
    font-size: 1.1em;
    padding: 5px 10px;
  }

  .service-card img {
    height: 150px;
  }

  .cta {
    font-size: 1.1em;
  }
}


/************************************************
RESPONSIVE SPÉCIFIQUE POUR LE HEADER + NAV
************************************************/

@media (max-width: 900px) {

  /* Navigation devient verticale */
  nav {
    flex-wrap: wrap;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
  }

  nav a {
    font-size: 1em;
    display: block;
  }

  /* Logo + titre mieux centrés */
  .logo {
    width: 50px;
  }

  .titre-site {
    position: static;
    font-size: 1em;
    margin-top: 5px;
    display: block;
    text-align: center;
  }

  /* Bannière plus petite */
  .banniere {
    height: 180px;
  }

  /* Titre H1 */
  h1 {
    font-size: 1.3em;
    margin-top: 20px;
    padding: 5px 10px;
  }

  .slogan {
    font-size: 1.2em;
  }

  /* Contenu */
  section {
    padding: 10px 15px;
  }

  /* CTA */
  .cta {
    font-size: 1.1em;
    padding: 10px 20px;
  }

  /* Footer icônes plus petites */
  footer img {
    width: 30px;
  }
}


/************************************************
TRÈS PETITS TÉLÉPHONES < 480px
************************************************/
@media (max-width: 480px) {

  nav a {
    font-size: 0.9em;
  }

  .banniere {
    height: 140px;
  }

  h1 {
    font-size: 1.1em;
  }

  .logo {
    width: 45px;
  }
}

/* Pour éviter les espaces entre les mots sur mobile */
@media (max-width: 700px) {
  p, .texte_apropos {
    text-align: left;
  }
}

@media (min-width: 900px) {
  .infos-contact,
  .formulaire-section {
    flex: 0 0 380px;
  }
}