/* Variables */
:root {
  --blue: #1cade4;
  --blue-dark: #127297;
  --blue-light: #dbeafe;
  --gray-dark: #1f2937;
  --gray: #4b5563;
  --gray-light: #9ca3af;
  --white: #ffffff;
  --bg-light: #f9fafb;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

main-header, main-footer {
    display: block;
    width: 100%;
}

body {
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  color: var(--gray);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gray-dark);
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  text-decoration: none;
  color: var(--gray);
  font-weight: 600;
  transition: color 0.3s;
}

.nav a:hover {
  color: var(--blue);
}

/* Hero */
.hero {
  padding: 140px 20px 80px;
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gray-dark);
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--gray);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}


.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2.5rem;
}


.hero {
  padding-top: 180px;
}

.hero-svg {
  width: 100%;
  height: auto;
}

.hero h1 {
  font-size: 1.75rem;
}

.cta-btn-large {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.3s, transform 0.3s;
}

.cta-btn-large:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

/* Services */
.services-section {
  padding: 80px 20px;
}

.services-section h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--gray-dark);
  margin-bottom: 3rem;
}

.services-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.service-card {
  flex: 1;
  min-width: 280px;
  max-width: 340px;
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s;
}

.service-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.service-card.featured {
  border-color: var(--blue);
  box-shadow: 0 5px 20px rgba(37, 99, 235, 0.2);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--blue-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--blue);
  font-size: 1.8rem;
}

.service-card h3 {
  font-size: 1.25rem;
  color: var(--gray-dark);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--gray);
  margin-bottom: 1rem;
}

.service-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 1.5rem;
}

.service-btn {
  display: block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: all 0.3s;
}

.service-btn.primary {
  background: var(--blue);
  color: var(--white);
}

.service-btn.primary:hover {
  background: var(--blue-dark);
}

.service-btn.secondary {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
}

.service-btn.secondary:hover {
  background: var(--blue-light);
}

/* Technologies */
.tech-section {
  padding: 80px 20px;
  background: var(--bg-light);
}

.tech-section h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--gray-dark);
  margin-bottom: 3rem;
}

.tech-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray);
}

.tech-item i {
  font-size: 2.5rem;
  color: var(--blue);
}

.partners {
  text-align: center;
}

.partners > p {
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 1.5rem;
}

.partners-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.partner-placeholder {
  width: 150px;
  height: 60px;
  background: var(--white);
  border: 1px dashed var(--gray-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-light);
  font-size: 0.875rem;
}

.partner-item {
    text-decoration: none; /* Enlève le soulignement du lien */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s ease;
}

/* Le cadre du logo (on recycle ton style placeholder) */
.partner-logo {
    width: 150px;
    height: 80px;
    background: var(--white);
    border: 1px solid #e5e7eb; /* Bordure plus fine que le dashed */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    opacity: 0.7;
    transition: all 0.3s ease;
}

/* Le nom du partenaire */
.partner-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray);
    transition: color 0.3s;
}

/* EFFET AU SURVOL (Le "sympa") */
.partner-item:hover {
    transform: translateY(-5px);
}

.partner-item:hover .partner-logo {
    border-color: var(--blue);
    box-shadow: 0 10px 20px rgba(28, 173, 228, 0.15);
}

.partner-item:hover .partner-logo img {
    filter: grayscale(0%); /* Le logo reprend ses couleurs */
    opacity: 1;
}

.partner-item:hover .partner-name {
    color: var(--blue);
}

/* Contact */
.contact-section {
  padding: 80px 20px;
  background: var(--gray-dark);
  color: var(--white);
}

.contact-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-group {
  flex: 1;
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.submit-btn {
  width: 100%;
  background: var(--blue);
  color: var(--white);
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
}

.submit-btn:hover {
  background: var(--blue-dark);
}

/* Footer */
.footer {
  background: #111827;
  color: var(--white);
  padding: 3rem 20px 1.5rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-info p {
  color: var(--gray-light);
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.footer-info .logo {
  margin-bottom: 1rem;
}

.footer-info .logo-text {
  color: var(--white);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--gray-light);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--blue);
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1.5rem;
  text-align: center;
  color: var(--gray-light);
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .nav {
    gap: 1rem;
  }




  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }

  /* Make hero grid single column on small screens */
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

/* About section moved from inline styles */
.about-section {
  padding: 60px 20px;
}
.about-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}
.about-photo {
  flex: 1;
  min-width: 300px;
  text-align: center;
}
.about-photo img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--blue);
}
.about-text {
  flex: 2;
  min-width: 300px;
}
.about-text h2 {
  color: var(--gray-dark);
}
.about-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--gray);
}
.about-badges {
  margin-top: 20px;
}
.badge {
  background: #eef2ff;
  color: var(--blue);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-right: 10px;
  display: inline-block;
}

.legal-notices {
  display: block;
  width: 100%;
  height: 100%;
  padding: 100px 20px;
  font-size: 0.8rem;
  color: var(--gray);
  background: var(--bg-light);
}
