:root {
  --primary: #d4a017;
  --primary-dark: #a87900;
  --dark: #f4f4f8;
  --text: #a9a9b8;
  --light: #15151d;
  --white: #20202b;
  --border: #343442;
  --background: #0d0d12;
  --radius: 14px;
  --container: 1120px;
}

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

@keyframes clignoter {
  0%, 100% {
    opacity: 1.5;
  }

  50% {
    opacity: 0.3;
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background: var(--background);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Structure */
.container {
  width: min(90%, var(--container));
  margin: 0 auto;
}

.section {
  padding: 100px 0;
}

.section-light {
  background: var(--light);
}

/* Navigation */
.header {
  position: fixed;
  z-index: 1000;
  top: 0;
  width: 100%;
  background: rgba(13, 13, 18, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.nav-container {
  min-height: 74px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  margin-right: 25px;
}

/* .logo a {
  line-height: 74px;
} */

.nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav a {
  color: var(--text);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

.menu-toggle {
  display: none;
  border: 0;
  color: var(--dark);
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
}

form.language select {
  font-size: 1.3rem;
  background-color: rgba(0, 0, 0, 0.25);
  color: #aaa;
  font-weight: 500;
  border: 2px #333 solid;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 11px;
}

/* Hero */
.hero {
  min-height: 100vh;
  padding: 110px 0 100px;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at top right, rgba(99, 91, 255, 0.18), transparent 35%), var(--background);
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: center;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  max-width: 700px;
  margin-bottom: 24px;
  font-size: clamp(1.8rem, 4vw, 4rem);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.hero-description {
  max-width: 600px;
  margin-bottom: 32px;
  color: var(--text);
  font-size: 1.15rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero img {
  /* Fondu sur les quatre bords */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, black 20%, black 65%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 20%, black 65%, transparent 100%);

  mask-image:
    linear-gradient(to right, transparent 0%, black 20%, black 65%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, black 20%, black 65%, transparent 100%);

  -webkit-mask-composite: source-in;
  mask-composite: intersect;

  animation: clignoter 5s infinite;
  border-radius: 50%;
}

.btn {
  display: inline-block;
  padding: 14px 22px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  color: var(--dark);
  border-color: var(--border);
  background: transparent;
}

.btn-secondary:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* Image */
.image-placeholder {
  min-height: 390px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 24px;
  color: #bcb9ff;
  background: linear-gradient(135deg, rgba(99, 91, 255, 0.35), rgba(31, 31, 45, 0.9));
  box-shadow: 0 25px 70px rgba(99, 91, 255, 0.18);
}

/* À propos */
.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-grid p,
.section-heading>p:last-child {
  margin-bottom: 20px;
  color: var(--text);
}

.text-link {
  color: var(--primary);
  font-weight: 700;
}

/* Services */
.section-heading {
  max-width: 650px;
  margin-bottom: 50px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.service-card p {
  color: var(--text);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-size: 1.3rem;
}

/* Appel à l'action */
.cta {
  padding: 70px 0;
  color: #fff;
  background: radial-gradient(circle at top left, rgba(99, 91, 255, 0.18), transparent 65%), var(--background);
}

.cta-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.cta .eyebrow {
  color: #dcd9ff;
}

.cta h2 {
  margin-bottom: 0;
}

.btn-light {
  color: var(--primary-dark);
  background: #fff;
}

.btn-light:hover {
  background: #e8e6ff;
}

/* Contact */
.contact-info {
  margin-top: 30px;
  color: var(--text);
}

.contact-info p {
  margin-bottom: 10px;
}

.contact-form {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--dark);
  background: #15151d;
  font: inherit;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #777787;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid rgba(139, 124, 255, 0.3);
  border-color: var(--primary);
}

/* Footer */
.footer {
  padding: 28px 0;
  color: #777787;
  border-top: 1px solid var(--border);
  background: #09090d;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--primary);
}

/* Témoignages */
.testimonials-section {
  /* background: var(--background); */
  background: radial-gradient(circle at bottom left, rgba(99, 91, 255, 0.18), transparent 55%), var(--background);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.stars {
  margin-bottom: 22px;
  color: #ffc857;
  letter-spacing: 4px;
  font-size: 1.1rem;
}

.testimonial-card blockquote {
  flex: 1;
  margin-bottom: 28px;
  color: var(--text);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.8;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.author-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  font-size: 0.85rem;
  font-weight: 700;
}

.testimonial-author strong,
.testimonial-author span {
  display: block;
}

.testimonial-author strong {
  margin-bottom: 3px;
  color: var(--dark);
}

.testimonial-author span {
  color: var(--text);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 800px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 74px;
    left: 0;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 20px 5%;
    border-bottom: 1px solid var(--border);
    background: #0d0d12;
  }

  .nav-open {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 12px 0;
  }

  .hero-content,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .hero {
    padding-top: 130px;
  }

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

  .cta-content,
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .image-placeholder {
    min-height: 280px;
  }

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