/* Variables */
:root {
  --blue: #1cade4;
  --blue-dark: #127297;
  --blue-light: #dbeafe;
  --gray-dark: #1f2937;
  --gray: #4b5563;
  --gray-light: #9ca3af;
  --white: #ffffff;
  --bg-light: #f9fafb;
  --header-height: 80px;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Utilities */
.bg-light { background: var(--bg-light); }
.text-center { text-align: center; }
.mb-3rem { margin-bottom: 3rem; }

/* Marketing section */
.marketing-section { padding: 60px 20px; background: var(--bg-light); }
.marketing-section .services-grid { gap: 2.5rem; }
.marketing-section .service-card { min-width: 300px; max-width: 420px; text-align: left; }
.marketing-section .service-card h3 { color: var(--gray-dark); margin-bottom: 0.75rem; }

.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { position: relative; padding-left: 1.6rem; margin-bottom: 0.6rem; color: var(--gray); }
.feature-list li::before { content: '•'; position: absolute; left: 0; color: var(--blue); font-weight: 700; }

.marketing-cta { text-align: center; margin-top: 1.5rem; }
.marketing-cta .service-btn { display: inline-block; margin: 0 0.5rem; }

@media (max-width: 900px) {
  .marketing-section .services-grid { flex-direction: column; align-items: center; }
  .marketing-section .service-card { max-width: 520px; }
}

/* Utility classes to replace inline styles */
.btn-disabled { cursor: not-allowed; pointer-events: none; opacity: 0.5; text-decoration: none; }
.list-left { text-align: left; margin: 1rem 0; font-size: 0.9rem; color: var(--gray); list-style: none; padding-left: 0; }
.icon-xl { font-size: 2.5rem; }
.price-suffix { font-size: 0.9rem; font-weight: normal; color: var(--gray); }
.center-text { text-align: center; }
.lead { font-size: 1.2rem; margin-bottom: 2rem; }

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;
}

main {
  padding-top: var(--header-height);
}

.hero, 
.blog-list, 
.blog-post-container {
  margin-top: 0 !important;
  padding-top: 60px; 
}

/* Header */
#header {
  position: fixed; /* On force le fixed */
  top: 0;
  left: 0;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
  width: 100%;
  height: var(--header-height);
}

.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: 170px 20px 40px;
  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;
}

/* Image à l'intérieur de l'icône */
.service-icon img {
    max-width: 100%;
    height: auto;
    object-fit: contain; /* Garde les proportions sans déformer */
}

.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: left;
}
.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;
}

/* FAQ Section */
.faq-section {
  padding: 80px 20px;
  background: var(--bg-light);
  margin-top: 40px;
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
}
.faq-section .faq-header h2 {
  color: var(--gray-dark);
  margin-bottom: 0.5rem;
}
.faq-section .faq-header p {
  color: var(--gray);
  margin-bottom: 1.5rem;
}
.faq-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

/* details/summary accordion look */
.faq-item {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.5rem 1rem 0.75rem 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  color: var(--gray-dark);
  padding: 0.75rem 0;
  outline: none;
}
/* Remove default marker in some browsers */
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: none; }

/* custom chevron */
.faq-item summary::after {
  content: "▾";
  float: right;
  transition: transform 0.25s ease;
  color: var(--gray);
}
.faq-item[open] summary::after {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.2s ease;
  color: var(--gray);
  padding-bottom: 0;
}
.faq-item[open] .faq-answer {
  max-height: 2000px; /* large enough to reveal content */
  padding-bottom: 0.75rem;
}

/* make answer text spacing consistent */
.faq-answer p { margin: 0.5rem 0; }

.legal-notices {
  display: block;
  width: 100%;
  height: 100%;
  padding: 100px 20px;
  font-size: 0.8rem;
  color: var(--gray);
  background: var(--bg-light);
}


#auth-menu .btn-login {
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
}
#auth-menu .btn-login:hover {
  background: var(--blue-dark);
}
#auth-menu {
  min-width: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Blog styles: listing and single post */
.blog-list {
  margin: 180px auto;
  max-width: 1100px;
  padding: 0 20px;
}
.blog-list h1 {
  margin-bottom: 1.5rem;
  color: var(--gray-dark);
}
.blog-list ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 0;
}
.blog-list li article {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  transition: transform 0.2s, box-shadow 0.2s;
}
.blog-list li article:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.blog-list li h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.15rem;
}
.blog-list li h2 a {
  color: var(--gray-dark);
  text-decoration: none;
}
.blog-list time {
  color: var(--gray-light);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.75rem;
}
.blog-list p {
  color: var(--gray);
  margin-top: 0.5rem;
}

.blog-post-container {
  max-width: 1100px; /* align with main container/header */
  margin: 180px auto 60px; /* offset for fixed header */
  padding: 0 20px;
  color: var(--gray-dark);
}
.post-content {
  max-width: 800px; /* keep readable measure */
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray);
}
.blog-post-container h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--gray-dark);
}
.blog-post-container time {
  display: block;
  color: var(--gray-light);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.post-content p {
  margin-bottom: 1rem;
}
.post-content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 1rem 0;
}
.post-content pre,
.post-content code {
  background: #f3f4f6;
  padding: 0.5rem;
  border-radius: 6px;
  overflow: auto;
}

/* Utility classes for blog templates (used in templates) */
.article-card {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.post-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.post-link { display: block; margin-bottom: 0.75rem; }
.post-cover-wrapper {
  max-width: 800px;
  margin: 0 auto 1rem;
  padding: 0 20px;
}
.post-cover {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.post-header {
  max-width: 1100px; /* align title column with header */
  margin: 0 auto 0.75rem;
  padding: 0 20px;
}
.post-header h1 {
  margin: 0 0 0.25rem 0;
  color: var(--gray-dark);
}

@media (max-width: 768px) {
  .blog-post-container { margin-top: 140px; }
  .blog-list { margin-top: 140px; }
  .blog-list ul { grid-template-columns: 1fr; }
}
