/* fichier : contact.css */
/* ========== RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to bottom, #4d0000, #B22222);
  color: #fff;
  line-height: 1.6;
  padding-top: 80px;
  padding-bottom: 120px;
}

/* ========== VARIABLES ========== */
:root {
  --red: #e60000;
  --red-dark: #a80000;
  --black: #000;
  --gray-bg: #f3f3f3;
  --white: #fff;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  --radius: 12px;
}

/* ========== HEADER NAVIGATION ========== */
.sticky-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--black);
  color: var(--white);
  z-index: 1000;
  box-shadow: var(--shadow);
}
.navbar {
  max-width: 1200px;
  margin: auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.7rem;
  font-weight: bold;
  color: var(--red);
  letter-spacing: 1px;
}
.logo-img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}
.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: background 0.3s;
}
.nav-links a:hover {
  background-color: var(--red);
}

/* ========== CONTACT SECTION ========== */
.contact-section {
  max-width: 1000px;
  margin: 120px auto 50px;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.75);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
}
.contact-section h1 {
  font-size: 2.5rem;
  color: var(--red);
  margin-bottom: 1rem;
}
.contact-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
/* floating icon above */
.contact-section::before {
  content: "";
  display: block;
  background: url('../picture/contact-icon.png') no-repeat center/80px;
  width: 80px;
  height: 80px;
  margin: 40px auto 20px;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%   { transform: translateY(-10px); }
}

/* ========== CONTACT CONTENT (FORM + IMAGE) ========== */
.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  justify-content: center;
  align-items: flex-start;
}
.contact-form {
  flex: 1 1 450px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-image {
  flex: 1 1 300px;
  text-align: center;
}
.contact-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 30px;
}

/* ========== FORM STYLES ========== */
.form-group {
  text-align: left;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid var(--red);
  border-radius: var(--radius);
  background-color: #222;
  color: var(--white);
  font-size: 1rem;
  transition: border-color 0.3s, background-color 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ff3333;
  background-color: #333;
}
/* submit button */
.contact-form .btn {
  background-color: var(--red);
  color: var(--white);
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.contact-form .btn:hover {
  background-color: var(--red-dark);
  transform: scale(1.05);
}

/* ========== RÉSEAUX SOCIAUX ========== */
.reseau-section {
  margin-top: 40px;
  padding: 1.5rem;
  background: rgba(0,0,0,0.6);
  border: 2px solid var(--red);
  border-radius: var(--radius);
  text-align: center;
}
.reseau-section h2 {
  color: var(--red);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.reseau-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
.reseau-icons img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: transform 0.3s, box-shadow 0.3s;
}
.reseau-icons img:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px var(--red);
}

/* ========== FOOTER ========== */
.sticky-footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  font-size: 0.9rem;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
.sticky-footer img {
  width: 30px;
  height: auto;
  margin-right: 0.5rem;
}

/* ========== RESPONSIVE ========== */
@media screen and (max-width: 768px) {
  .navbar, .nav-links {
    flex-direction: column;
  }
  .contact-section {
    margin: 100px 20px 40px;
    padding: 1.5rem;
  }
  .contact-section h1 {
    font-size: 2rem;
  }
  .contact-section p {
    font-size: 1rem;
  }
  .contact-content {
    flex-direction: column;
    align-items: center;
  }
  .contact-image img {
    margin-top: 20px;
  }
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--white);
  cursor: pointer;
}

/* Menu mobile masqué par défaut */
@media screen and (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    background-color: var(--black);
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.2);
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 1rem;
    width: 100%;
    text-decoration: none;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav-links a:hover {
    background-color: var(--red);
  }

  .navbar {
    flex-wrap: nowrap;
    justify-content: space-between;
  }
}
