/* -------------------- */
/* style-contact.css v3 */
/* Page Contact dynamique et créative */
/* -------------------- */

/* Import global */
@import url('style-global.css');

/* -------------------- */
/* Arrière-plan général  */
/* -------------------- */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  margin: 0;
  background: linear-gradient(120deg, #a1c4fd, #c2e9fb);
  background-size: 400% 400%;
  animation: bgShift 25s ease infinite;
  overflow-x: hidden;
}

@keyframes bgShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Overlay subtil pour lisibilité */
.hero-contact::before,
.additional-info::before {
  content: "";
  position: absolute;
  top:0; left:0; right:0; bottom:0;
  background: rgba(255,255,255,0.2);
  z-index: 0;
  border-radius: 1rem;
}

/* -------------------- */
/* Header correction    */
/* -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Correction spécifique des liens dans la barre */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  z-index: 10002;
}

.nav-links a {
  position: relative;
  display: inline-block;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.6rem;
  color: #fff;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  transition: all 0.3s ease;
}

.nav-links a:hover {
  background: linear-gradient(135deg, #ff6600, #ff9966);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.nav-links a.active {
  background: linear-gradient(135deg, #00b09b, #96c93d);
}

/* -------------------- */
/* Hero Contact         */
/* -------------------- */
.hero-contact {
  position: relative;
  padding: 5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  border-radius: 1rem;
}

.hero-contact .hero-text {
  position: relative;
  z-index: 1;
  max-width: 600px;
  animation: slideInLeft 1s ease forwards;
}

.hero-contact h1 {
  font-size: 3rem;
  color: #005fa3;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.15);
}

.hero-contact .lead {
  font-size: 1.2rem;
  color: #333;
}

.hero-contact .hero-visual {
  position: relative;
  z-index: 1;
  animation: slideInRight 1s ease forwards;
}

.hero-contact .hero-visual img {
  max-width: 400px;
  border-radius: 1.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  transition: transform 0.5s ease;
}

.hero-contact .hero-visual img:hover {
  transform: rotate(-2deg) scale(1.05);
}

/* Animations Hero */
@keyframes slideInLeft {
  0% { opacity: 0; transform: translateX(-50px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  0% { opacity: 0; transform: translateX(50px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* -------------------- */
/* Formulaire Contact   */
/* -------------------- */
:root {
  --form-primary: linear-gradient(135deg, #00c6ff, #0072ff);
  --form-secondary: linear-gradient(135deg, #ff9a9e, #fad0c4);
}

.form-contact {
  background: var(--form-primary);
  color: #fff;
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  max-width: 650px;
  margin: 3rem auto;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-contact:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 35px rgba(0,0,0,0.3);
}

.form-contact input,
.form-contact textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 0.6rem;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-contact input::placeholder,
.form-contact textarea::placeholder {
  color: rgba(255,255,255,0.7);
}

.form-contact input:focus,
.form-contact textarea:focus {
  background: rgba(255,255,255,0.25);
  box-shadow: 0 0 12px rgba(255,255,255,0.6);
  outline: none;
}

.form-contact button {
  background: #fff;
  color: #0072ff;
  font-weight: bold;
  padding: 1rem 2rem;
  border: none;
  border-radius: 0.7rem;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-contact button:hover {
  background: #f0f8ff;
  transform: translateY(-3px);
}

/* Variations de formulaire */
.form-bg-purple { --form-primary: linear-gradient(135deg, #6a11cb, #2575fc); }
.form-bg-orange { --form-primary: linear-gradient(135deg, #ff6600, #ff9966); }
.form-bg-green  { --form-primary: linear-gradient(135deg, #00b09b, #96c93d); }

/* -------------------- */
/* Coordonnées & Infos  */
/* -------------------- */
.contact-info {
  background: rgba(255,255,255,0.95);
  padding: 2rem;
  border-radius: 1.2rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  max-width: 700px;
  margin: 2rem auto;
  animation: fadeInUp 1s ease forwards;
}

.contact-info h2 {
  color: #005fa3;
  margin-bottom: 1rem;
}

.contact-info p {
  font-size: 1rem;
  margin: 0.5rem 0;
}

.contact-info i {
  color: #0072ff;
  margin-right: 0.5rem;
}

/* -------------------- */
/* Sections additionnelles */
/* -------------------- */
.additional-info {
  background: rgba(255,255,255,0.97);
  border-radius: 1.2rem;
  padding: 2rem;
  margin: 2rem auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  max-width: 900px;
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease forwards;
}

.additional-info h2 {
  color: #0072ff;
  margin-bottom: 1rem;
}

.additional-info p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.additional-info a {
  color: #0072ff;
  text-decoration: none;
}

.additional-info a:hover {
  text-decoration: underline;
  color: #005fa3;
}

/* Réseaux sociaux - liens */
.additional-info .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #0072ff;
  font-size: 1.5rem;
  margin-right: 1rem;
  transition: transform 0.3s, color 0.3s;
  pointer-events: auto; /* s'assure que le lien est cliquable */
  z-index: 10;
}

.additional-info .social-links a i {
  margin-right: 0.5rem;
}

/* Hover */
.additional-info .social-links a:hover {
  color: #ff6600;
  transform: scale(1.3) rotate(-10deg);
}


/* Carte Google Maps */
.additional-info iframe {
  border-radius: 1rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  margin-top: 1rem;
  transition: transform 0.5s ease;
}

.additional-info iframe:hover {
  transform: scale(1.02);
}

/* -------------------- */
/* Footer enrichi       */
/* -------------------- */
.site-footer {
  background: linear-gradient(135deg, #0072ff, #00c6ff);
  color: #fff;
  padding: 3rem 1rem;
  position: relative;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.site-footer a:hover {
  color: #ffdd57;
}

/* -------------------- */
/* Animations globales  */
/* -------------------- */
@keyframes fadeInUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* -------------------- */
/* Responsive           */
/* -------------------- */
@media (max-width: 992px) {
  .hero-contact {
    flex-direction: column;
    text-align: center;
  }
  .hero-contact .hero-visual {
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-contact {
    flex-direction: column;
    text-align: center;
  }
  .hero-contact .hero-visual {
    margin-top: 2rem;
  }
}

/* ============================== */
/* Arrière-plan spécifique Contact*/
/* ============================== */
body.contact-page {
  background: url("images/background-contact-mobile.jpg") no-repeat center center fixed;
  background-size: cover;
  background-attachment: fixed;
}

/* Hero Contact avec overlay sombre */
.hero-contact {
  position: relative;
  background: url("images/background-contact-hero.jpg") no-repeat center center;
  background-size: cover;
  color: #fff;
  padding: 6rem 2rem 4rem;
  text-align: center;
}

.hero-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5); /* filtre sombre pour lisibilité */
  z-index: 0;
}

.hero-contact .hero-text,
.hero-contact .hero-visual {
  position: relative;
  z-index: 1; /* pour passer au-dessus de l’overlay */
}

/* Responsive mobile */
@media (max-width: 768px) {
  .hero-contact {
    background: url("images/background-contact-mobile.jpg") no-repeat center center;
    background-size: cover;
  }
}
