/* --- VARIABLES --- */
:root {
  --primary: #2dcc70;
  --primary-hover: #27ae60;
  --background: #f8f9fa;
  --card-bg: #ffffff;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --border: #e8ecef;
}

/* --- RESET & BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", sans-serif;
  background-color: var(--background);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* --- HEADER --- */
.header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 120px;
}
.logo img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- BOUTONS --- */
.btn-primary {
  background: var(--primary);
  color: white;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}
.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-outline {
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 8px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* --- HERO SECTION --- */
.hero {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.2;
}
.hero .subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 40px;
}

/* --- FEATURES SECTION --- */
.features {
  padding: 60px 0;
}
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  font-weight: 800;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.feature-card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid var(--border);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  text-align: center;
}

.feature-icon i {
  color: var(--primary);
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* --- GALLERY SECTION (Slider) --- */
.gallery-section {
  padding: 60px 0;
  background: white;
  text-align: center;
}
.gallery-subtitle {
  color: var(--text-light);
  margin-bottom: 40px;
}
.project-slider {
  width: 100%;
  padding: 40px 0; /* Espace pour les points de pagination */
}
.project-slider img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 10px 0 10px;
}
/* Personnalisation des boutons Swiper aux couleurs Lokko */
.swiper-button-next,
.swiper-button-prev {
  color: var(--primary) !important;
}
.swiper-pagination-bullet-active {
  background: var(--primary) !important;
}

/* --- CTA & FORMULAIRE --- */
.cta-section {
  padding: 80px 0;
}
.form-wrapper {
  background: white;
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 24px;
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
}
.form-wrapper h2 {
  margin-bottom: 15px;
}
.form-wrapper p {
  color: var(--text-light);
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}
.input-field {
  width: 100%;
  padding: 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s;
}
.input-field:focus {
  border-color: var(--primary);
}

.device-selection p {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 10px;
}
.radio-options {
  display: flex;
  gap: 20px;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
}
.radio-label input[type="radio"] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
}
.btn-submit {
  width: 100%;
  font-size: 1.1rem;
}

/* --- FOOTER --- */
.footer {
  background: white;
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}
.logo-footer {
  color: var(--text-light);
  margin-bottom: 10px;
}
.footer p {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* --- RESPONSIVE DESKTOP/TABLET --- */
@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur tablette */
  }
}
@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr); /* 4 colonnes sur PC */
  }
  .project-slider img {
    height: 500px;
  }
}
