/* ============================================
   MAKEWAKE - Feuille de style principale
   ============================================ */

/* --- Variables globales --- */
:root {
  --color-bg: #000;
  --color-bg-card: #0a0a0a;
  --color-bg-footer: #333;
  --color-text: #b0b0b0;
  --color-text-muted: #888;
  --color-text-light: #aaa;
  --color-heading: #fff;
  --color-subheading: #ccc;
  --color-border: #333;
  --color-border-hover: #555;
  --color-button: #444;
  --color-button-hover: #666;
  --color-success: #22c55e;
  --color-success-light: #4ade80;
  --color-error: #ef4444;
  --color-error-light: #f87171;
  --font-family: 'Montserrat', sans-serif;
  --max-width: 1200px;
  --radius: 10px;
  --radius-sm: 5px;
  --radius-lg: 12px;
  --shadow-card: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-card-hover: 0 10px 20px rgba(0, 0, 0, 0.3);
}

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

/* --- Base --- */
body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

h1, h2, h3 {
  color: var(--color-heading);
}

/* --- Skip link (accessibilite) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--color-heading);
  color: var(--color-bg);
  padding: 0.5rem 1.5rem;
  z-index: 2000;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  top: 0;
}

/* ============================================
   EN-TETE & NAVIGATION
   ============================================ */
header {
  background-color: var(--color-bg);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: top 0.3s;
  padding: 1rem 0;
}

header a {
  color: var(--color-heading);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

header a:hover {
  color: var(--color-text-light);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: block;
}

.logo-img {
  height: 50px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  transition: color 0.3s ease;
}

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

/* --- Burger menu --- */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.burger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-heading);
  transition: all 0.3s ease;
  transform-origin: center;
}

.burger.active .burger-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.burger.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger.active .burger-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ============================================
   SECTION HERO
   ============================================ */
.hero-section {
  max-width: var(--max-width);
  margin: 80px auto 0;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.header-image {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.g24-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.mission {
  margin-top: 3rem;
  padding: 2rem;
  border-radius: var(--radius);
}

.mission h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.mission p {
  color: var(--color-text-muted);
}

/* ============================================
   SECTIONS GENERALES
   ============================================ */
.section {
  padding: 5rem 5%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
}

.section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  color: var(--color-subheading);
}

.section-intro-small {
  font-size: 0.85rem;
  margin-top: -20px;
}

/* ============================================
   CARTES DE SERVICES
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.service-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-border-hover);
}

.service-card h3 {
  font-weight: bold;
  margin: 0 0 1rem 0;
}

.service-card p {
  color: var(--color-text-light);
  margin: 0 0 1.5rem 0;
}

.service-image {
  width: 45%;
  height: auto;
  border-radius: var(--radius-sm);
  margin-top: auto;
  max-height: 150px;
  object-fit: contain;
}

/* ============================================
   TARIFS
   ============================================ */
.tarifs-subtitle {
  font-size: 1.5rem;
  margin: 40px 0 25px;
  color: var(--color-heading);
  text-align: center;
}

.tarif-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-heading);
  margin: 10px 0;
}

.tarif-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.forfait-badge {
  background: var(--color-button);
  color: var(--color-heading);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tarifs-card-popular {
  border-color: var(--color-button-hover);
}

.tarifs-card-popular:hover {
  border-color: var(--color-text-muted);
}

.tarif-list {
  list-style: none;
  margin-top: 15px;
  padding: 0;
}

.tarif-list li {
  color: var(--color-subheading);
  padding: 5px 0;
  font-size: 0.9rem;
}

.tarif-list li::before {
  content: "> ";
  color: var(--color-text-muted);
}

.tarifs-notes {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 25px 30px;
  margin-top: 50px;
  border-left: 4px solid var(--color-border-hover);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.tarifs-notes h3 {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.tarifs-notes ul {
  list-style: none;
  color: var(--color-subheading);
}

.tarifs-notes ul li {
  padding: 8px 0;
}

.tarifs-notes ul li::before {
  content: "> ";
  color: var(--color-text-muted);
}

.tarifs-notes ul li strong {
  color: var(--color-heading);
}

/* ============================================
   FORMULAIRE DE CONTACT
   ============================================ */
.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  z-index: -1;
  pointer-events: none;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: var(--color-subheading);
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1rem;
  color: var(--color-heading);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--color-border-hover);
  outline-offset: 1px;
  border-color: var(--color-border-hover);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-border-hover);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group select option {
  background: var(--color-bg-card);
  color: var(--color-heading);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group .error-msg {
  color: var(--color-error-light);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* --- Feedback formulaire AJAX --- */
.form-feedback {
  text-align: center;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
}

.form-feedback-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid var(--color-success);
  color: var(--color-success-light);
}

.form-feedback-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--color-error);
  color: var(--color-error-light);
}

.button.alt {
  display: inline-block;
  align-self: center;
  padding: 1rem 2rem;
  margin-top: 0.5rem;
  background: var(--color-button);
  color: var(--color-heading);
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.button.alt:hover {
  background: var(--color-button-hover);
}

.button.alt:focus-visible {
  outline: 2px solid var(--color-border-hover);
  outline-offset: 2px;
}

/* --- Resultat formulaire --- */
.form-result {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
}

.form-result.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid var(--color-success);
}

.form-result.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--color-error);
}

.form-result-icon {
  display: inline-block;
  width: 60px;
  height: 60px;
  line-height: 60px;
  font-size: 2rem;
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.form-result.success .form-result-icon {
  background: rgba(34, 197, 94, 0.2);
  color: var(--color-success-light);
}

.form-result.error .form-result-icon {
  background: rgba(239, 68, 68, 0.2);
  color: var(--color-error-light);
}

.form-result h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.form-result.success h1 {
  color: var(--color-success-light);
}

.form-result.error h1 {
  color: var(--color-error-light);
}

.form-result p {
  color: var(--color-text-light);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--color-bg-footer);
  color: var(--color-heading);
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
}

footer a {
  color: var(--color-heading);
  text-decoration: none;
}

footer a:hover {
  color: var(--color-subheading);
}

.footer-links {
  margin-top: 1rem;
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
}

/* ============================================
   PAGES LEGALES
   ============================================ */
.legal-section {
  min-height: 100vh;
  padding-top: 120px;
}

.legal-section h1 {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 2.5rem;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.legal-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.legal-card p {
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-card strong {
  color: var(--color-heading);
}

.legal-card ul {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
}

.legal-card ul li {
  color: var(--color-text-light);
  padding: 0.3rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.legal-card ul li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--color-text-muted);
}

.legal-card a {
  color: var(--color-text-muted);
  text-decoration: none;
  word-break: break-all;
}

.legal-card a:hover {
  color: var(--color-heading);
  text-decoration: underline;
}

.legal-version {
  text-align: center;
  color: var(--color-text-muted);
  margin-top: 3rem;
  font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
  /* Navigation */
  .burger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.98);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.3s ease;
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateX(0);
  }

  .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
  .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
  .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
  .nav-links.active li:nth-child(4) { transition-delay: 0.4s; }

  .nav-links a {
    font-size: 1.5rem;
  }

  .logo-img {
    height: 40px;
  }

  /* Hero */
  .hero-section {
    padding: 1rem;
    margin-top: 100px;
    gap: 2rem;
  }

  .header-image {
    margin-bottom: 1rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  /* Sections */
  .section {
    padding: 3rem 5%;
  }

  /* Tarifs */
  .tarif-price {
    font-size: 1.5rem;
  }

  .tarifs-subtitle {
    font-size: 1.3rem;
  }

  /* Formulaire */
  .contact-form {
    padding: 0 1rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.875rem;
  }

  .button.alt {
    width: 100%;
    align-self: stretch;
  }

  .form-result {
    padding: 2rem 1.5rem;
  }

  .form-result h1 {
    font-size: 1.5rem;
  }

  /* Footer */
  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* Legal */
  .legal-section {
    padding: 100px 5% 5%;
  }

  .legal-section h1 {
    font-size: 1.8rem;
  }

  .legal-content h2 {
    font-size: 1.1rem;
  }
}
