/* ============================
   POLICES
============================ */
@font-face {
  font-family: 'Flameregular';
  src: url('../vhfpolices/FlameRegular.otf');
}
@font-face {
  font-family: 'Monument';
  src: url('../vhfpolices/MonumentExtended-Regular.otf');
}

/* ============================
   VARIABLES & RESET
============================ */
:root {
  --bg-gradient: linear-gradient(-45deg, #1e1e2f, #121224, #2a2a40, #1a1a2a);
  --accent: #ff6f61;
  --accent-soft: #ff503d;
  --accent-alt: #ffab40;
  --muted: #888;
  --card-bg: rgba(255,255,255,0.04);
  --text: #f0f0f5;
  --success: #4caf50;
  --error: #f44336;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
  background: var(--bg-gradient);
  background-size: 400% 400%;
  animation: gradientMove 12s ease infinite;
  color: var(--text);
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ============================
   HEADER
============================ */
header {
  background: rgba(18, 18, 36, 0.9);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--accent);
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 90%;
  margin: 0 auto;
  padding: 0 5%;
}
nav img {
  width: 110px;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  animation: rotateLogo 10s linear infinite;
}
@keyframes rotateLogo {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}
nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}
.menu-toggle {
  position: absolute;
  left: -9999px;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* ============================
   HERO
============================ */
.hero {
  padding: 10rem 5% 4rem;
  text-align: center;
  background: linear-gradient(rgba(18, 18, 36, 0.8), rgba(18, 18, 36, 0.9));
}
.hero h1 {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 1rem;
  font-family: 'Monument', sans-serif;
  text-shadow: 0 0 10px rgba(255,111,97,0.4);
}
.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

/* ============================
   CONTACT
============================ */
.contact-section {
  padding: 4rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.info-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}
.info-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.info-card h3 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}
.info-card a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}
.info-card a:hover {
  color: var(--accent);
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.social-links a {
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.05);
  border-radius: 5px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
}
.social-links a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================
   FORMULAIRE
============================ */
.form-container {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}
.contact-form h2 {
  color: var(--accent);
  margin-bottom: 2rem;
  font-size: 2rem;
  text-align: center;
  text-shadow: 0 0 8px rgba(255,111,97,0.4);
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  transition: all 0.3s ease-in-out;
}
.form-group textarea {
  min-height: 150px;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(255,111,97,0.4);
}
.contact-form button {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(255,111,97,0.4);
}

/* ============================
   MESSAGES
============================ */
.form-message {
  margin-top: 15px;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  display: none;
  opacity: 0;
  transition: all 0.4s ease;
}
.form-message.show {
  display: block;
  opacity: 1;
  animation: fadeInUp 0.5s ease forwards;
}
.form-message.success {
  background: rgba(76, 175, 80, 0.15);
  border: 1px solid var(--success);
  color: var(--success);
  box-shadow: 0 0 10px rgba(76,175,80,0.25);
}
.form-message.error {
  background: rgba(244, 67, 54, 0.15);
  border: 1px solid var(--error);
  color: var(--error);
  box-shadow: 0 0 10px rgba(244,67,54,0.25);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================
   FOOTER
============================ */
.footer {
  background-color: rgba(18, 18, 36, 0.95);
  color: white;
  padding: 40px 20px;
  border-top: 2px solid #ff6f61;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.footer-section {
  flex: 1 1 150px;
  margin: 3em;
}
.footer-section h4 {
  border-bottom: 2px solid #00227e;
  padding-bottom: 5px;
  margin-bottom: 4px;
}
.footer-section ul {
  list-style: none;
  padding: 0;
}
.footer-section ul li {
  margin-bottom: 8px;
}
.footer a {
  color: #ffab40;
  text-decoration: none;
}
.footer a:hover {
  color: #fff;
  text-shadow: 0 0 8px #ff6f61;
  transition: all 0.5s ease;
}
.footer-bottom {
  text-align: center;
  margin-top: 20px;
  border-top: 2px solid #444;
  padding-top: 10px;
  font-size: 14px;
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-info {
    grid-template-columns: 1fr;
  }
  .form-container {
    padding: 2rem;
  }
  nav ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(18, 18, 36, 0.95);
    padding: 1.5rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.35s ease, opacity 0.3s ease, transform 0.35s ease;
  }
  .menu-toggle:checked ~ ul {
    max-height: 700px;
    opacity: 1;
    transform: translateY(0);
  }
  .menu-icon {
    display: inline-block;
    position: relative;
    width: 30px;
    height: 20px;
    cursor: pointer;
  }
  .menu-icon span {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
    transition: transform 0.3s ease, top 0.3s ease, opacity 0.2s ease;
  }
  .menu-icon span:nth-child(1) { top: 0; }
  .menu-icon span:nth-child(2) { top: 50%; transform: translateY(-50%); }
  .menu-icon span:nth-child(3) { bottom: 0; }
  .menu-toggle:checked + .menu-icon span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
  }
  .menu-toggle:checked + .menu-icon span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .menu-toggle:checked + .menu-icon span:nth-child(3) {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
  }
}

/* ============================
   ACCESSIBILITÉ
============================ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}