
/* ===== VARIABLES CSS ===== */
:root {
  --color-primary: #ff003c;
  --color-bg: #0d0d0d;
  --color-bg-card: #1a1a1a;
  --color-text: #f0f0f0;
  --color-text-secondary: #ccc;
  --color-text-muted: #888;
  --color-text-inverse: #fff;
  --header-height: 80px;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  padding-top: var(--header-height); /* espace pour header fixe */
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* ===== HEADER FIXE ===== */
header {
  background-color: #000;
  height: var(--header-height);
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  z-index: 1000;
}

.container.header {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  width: 100%;
}

/* Logo */
.logo {
  width: 80px;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.logo:hover,
.logo:focus-visible {
  transform: scale(1.05);
  outline: none;
}

/* ===== NAVIGATION ===== */
.navbar {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.navbar a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}
.navbar a:hover,
.navbar a:focus-visible {
  color: var(--color-primary);
  outline-offset: 2px;
  outline: 2px solid var(--color-primary);
  border-radius: 4px;
}
.navbar a.active { color: var(--color-primary); }
.navbar a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

/* ===== HERO (Accueil) ===== */
.hero {
  position: relative;
  background: url('../images/entete.png') center/cover no-repeat;
  height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
  color: var(--color-text-inverse);
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.65);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  animation: fadeInUp 1s ease forwards;
}
.hero h1 {
  font-size: 3rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--color-text-secondary);
}
.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border: none;
  user-select: none;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: #cc002f;
  outline: none;
  box-shadow: 0 0 8px var(--color-primary);
}

/* ===== PAGE BANNER ===== */
.page-banner {
  position: relative;
  background: url('../images/entete.png') center/cover no-repeat;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4rem;
  color: var(--color-text-inverse);
  text-align: center;
}
.page-banner .overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.65);
  z-index: 1;
}
.page-banner h1 {
  font-size: 3rem;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
  animation: fadeInDown 1s ease forwards;
}

/* ===== SECTIONS & SERVICES ===== */
.section,
.services {
  max-width: 1200px;
  margin: 0 auto 6rem auto;
  padding: 0 1rem;
  text-align: center;
}
.section-title {
  font-size: 2.75rem;
  color: var(--color-primary);
  margin-bottom: 3rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

/* Grille services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.service-card {
  background-color: var(--color-bg-card);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(255, 0, 60, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  cursor: default;
}
.service-card:hover,
.service-card:focus-within {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(255, 0, 60, 0.3);
}
.service-card img,
.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}
.service-title,
.service-card h2,
.service-card h3 {
  color: var(--color-primary);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}
.service-summary,
.service-card p {
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.5;
}

/* ===== ENGAGEMENT CAROUSEL ===== */
.engagement-section {
  max-width: 800px;
  margin: 3rem auto;
  color: #ddd;
}
.engagement-section .section-title {
  text-align: center;
  margin-bottom: 2rem;
  color: #eee;
}
.carousel-container {
  position: relative;
  background: #121212;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 0 15px #222;
  overflow: hidden;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #ccc;
  font-size: 2rem;
  user-select: none;
  z-index: 10;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.carousel-btn:hover,
.carousel-btn:focus-visible {
  opacity: 1;
  outline: none;
  color: var(--color-primary);
}
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
.carousel {
  position: relative;
  height: 230px;
}
.engagement-card {
  position: absolute;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  color: #ddd;
  text-align: center;
}
.engagement-card.active {
  opacity: 1;
  pointer-events: auto;
}
.engagement-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.engagement-card p {
  font-size: 1.1rem;
  line-height: 1.5;
}

/* ===== FORMULAIRE CONTACT ===== */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background: #1a1a1a;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
  color: #eee;
}
.form-group {
  position: relative;
  margin-bottom: 1.8rem;
}
label {
  position: absolute;
  top: 14px;
  left: 16px;
  color: #cc3333;
  font-weight: 600;
  font-size: 1rem;
  pointer-events: none;
  transition: 0.3s ease all;
  background: #1a1a1a;
  padding: 0 6px;
  border-radius: 4px;
}
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 18px 16px 6px 16px;
  font-size: 1.1rem;
  border: 2px solid #660000;
  border-radius: 10px;
  background: #2a2a2a;
  color: #eee;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  resize: vertical;
  font-family: inherit;
}
input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
textarea::placeholder {
  color: transparent;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 6px var(--color-primary);
}
input[type="text"]:focus + label,
input[type="text"]:not(:placeholder-shown) + label,
input[type="email"]:focus + label,
input[type="email"]:not(:placeholder-shown) + label,
input[type="tel"]:focus + label,
input[type="tel"]:not(:placeholder-shown) + label,
textarea:focus + label,
textarea:not(:placeholder-shown) + label {
  top: -10px;
  left: 10px;
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 700;
}
/* Bouton envoyer */
.contact-form input[type="submit"],
.contact-form button[type="submit"],
.contact-form .btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  font-weight: 700;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
}
.contact-form input[type="submit"]:hover,
.contact-form input[type="submit"]:focus-visible,
.contact-form button[type="submit"]:hover,
.contact-form button[type="submit"]:focus-visible {
  background-color: #cc002f;
  outline: none;
  box-shadow: 0 0 10px var(--color-primary);
}

/* ===== COORDONNÉES CONTACT ===== */
.contact-infos {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #111;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
  color: #f0f0f0;
  text-align: center;
}
.contact-infos h2 {
  color: #ffffff;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #f70b0b;
  padding-bottom: 0.5rem;
}
.contact-infos p {
  font-size: 1.1rem;
  margin: 0.5rem 0;
  color: #dddddd;
}
.contact-infos a {
  color: #ffffff;
  text-decoration: none;
}
.contact-infos a:hover {
  text-decoration: underline;
  color: #ffffff;
}
/* ===== INTRO CONTACT ===== */
.contact-intro {
  text-align: center;
  margin: 2rem auto;
  max-width: 800px;
  padding: 1rem;
}
.map-container {
  margin-top: 1.5rem;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* ===== FOOTER ===== */
footer,
.footer {
  background-color: #000;
  color: var(--color-text-muted);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  margin-top: 3rem;
  border-top: 1px solid #222;
}

/* ===== MENU HAMBURGER (base) ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
}
.bar {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  border-radius: 2px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================================
   MEDIA QUERIES
=================================== */

/* Large tablette */
@media (max-width: 1024px) {
  .container { padding: 0 20px; }
}

/* Tablette / Mobile large */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    height: auto;
    padding: 0.5rem 1rem;
    align-items: flex-start;
  }
  .container.header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .hamburger { display: flex; }

  .navbar {
    display: none;
    flex-direction: column;
    background-color: #000;
    width: 100%;
    padding: 10px 0;
  }
  .navbar.active { display: flex; }

  .navbar a {
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    width: 100%;
    text-align: left;
    border-top: 1px solid #333;
  }
  .navbar a:first-child { border-top: none; }

  .hero h1,
  .page-banner h1 { font-size: 2rem; }

  .section-title { font-size: 2rem; }

  .services-grid { grid-template-columns: 1fr; }

  .contact-form { margin: 2rem 1rem; }
  .contact-infos { margin: 2rem 1rem; }
}

/* Mobile moyen (carousel adaptatif) */
@media (max-width: 600px) {
  .carousel { height: auto; min-height: 230px; }
  .engagement-card {
    position: relative;
    opacity: 1 !important;
    pointer-events: auto !important;
    margin-bottom: 1rem;
  }
}

/* Mobile petit */
@media (max-width: 480px) {
  .logo { width: 60px; }
  .hero h1,
  .page-banner h1 { font-size: 1.6rem; }
  .hero p { font-size: 1rem; }
  footer { font-size: 0.8rem; }
  .contact-infos h2 { font-size: 1.5rem; }
  .contact-infos p { font-size: 1rem; }
}

/* Très petit écran : forcer 1 colonne services */
@media (max-width: 400px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ===== UTILS ===== */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Images toujours responsives */
img { max-width: 100%; height: auto; }

