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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #202020;
  background-color: white;
  overflow-x: hidden;
}

/* Forcer Space Grotesk partout */
* {
  font-family: inherit;
}

/* Test de la police - à retirer après vérification */
.font-test {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif !important;
  font-weight: 300;
}

/* Container principal */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section Hero */
.hero-section {
  padding: 50px 0 60px;
  background: white;
  text-align: center;
  position: relative;
}

/* Tag en haut */
.hero-tag {
  display: inline-block;
  background: #f3f4f6;
  color: #374151;
  padding: 8px 16px;
  border-radius: 20px;
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 40px;
  border: 1px solid #e5e7eb;
}

.hero-tag .tag-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: #202020;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

/* L-shaped brackets subtils */
.hero-section::before {
  content: "";
  position: absolute;
  top: 50px;
  left: 50px;
  width: 40px;
  height: 40px;
  border-top: 2px solid #e9ecef;
  border-left: 2px solid #e9ecef;
}

.hero-section::after {
  content: "";
  position: absolute;
  top: 50px;
  right: 50px;
  width: 40px;
  height: 40px;
  border-top: 2px solid #e9ecef;
  border-right: 2px solid #e9ecef;
}

.corner-bracket-bottom-left {
  position: absolute;
  bottom: 50px;
  left: 50px;
  width: 40px;
  height: 40px;
  border-bottom: 2px solid #e9ecef;
  border-left: 2px solid #e9ecef;
}

.corner-bracket-bottom-right {
  position: absolute;
  bottom: 50px;
  right: 50px;
  width: 40px;
  height: 40px;
  border-bottom: 2px solid #e9ecef;
  border-right: 2px solid #e9ecef;
}

/* CTA Buttons */
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.cta-primary {
  background: #202020;
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.cta-primary:hover {
  background: #374151;
  transform: translateY(-1px);
}

.cta-secondary {
  background: white;
  color: #202020;
  border: 2px solid #202020;
  padding: 12px 26px;
  border-radius: 8px;
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.cta-secondary:hover {
  background: #f9fafb;
  transform: translateY(-1px);
}

.hero-section h1 {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: #202020;
  margin-bottom: 20px;
  line-height: 1.1;
  position: relative;
  z-index: 2;
}

.hero-section .highlight {
  color: #202020;
  position: relative;
  background: #ffee32;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  box-shadow: 0 0 0 2px #ffee32;
}

.hero-section .highlight::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: #ffee32;
  opacity: 0.2;
  z-index: -1;
  border-radius: 6px;
}

.hero-section p {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-size: 1.1rem;
  color: #6b7280;
  max-width: 500px;
  margin: 0 auto 40px;
  position: relative;
  z-index: 2;
  line-height: 1.5;
}

/* Bandeau Certifications */
.certifications-banner {
  background: linear-gradient(135deg, #f8f9fa 0%, white 100%);
  padding: 40px 0;
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
}

.certifications-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.certification-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 25px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.certification-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.certification-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.certification-text h3 {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #202020;
  margin: 0 0 5px 0;
}

.certification-text p {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-size: 0.9rem;
  color: #4d4d4d;
  margin: 0;
  line-height: 1.4;
}

/* Section Solutions */
.solutions-section {
  padding: 60px 0;
  background-color: white;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-top: 40px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  grid-auto-rows: minmax(200px, auto);
}

/* Cards */
.card {
  background: white;
  border-radius: 18px;
  padding: 32px 24px;
  text-align: left;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Bento Grid - Tailles des cards */
.card:nth-child(1) {
  grid-column: span 6; /* Card 1 - Large */
  grid-row: span 1;
}

.card:nth-child(2) {
  grid-column: span 6; /* Card 2 - Large */
  grid-row: span 1;
}

.card:nth-child(3) {
  grid-column: span 8; /* Card 3 - Extra Large */
  grid-row: span 1; /* Même hauteur que les autres cards */
}

.card:nth-child(4) {
  grid-column: span 4; /* Card 4 - Medium */
  grid-row: span 1;
}

.card-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0; /* Pas d'espacement automatique entre les éléments */
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
  border-color: #ffee32;
}

.card h2 {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #202020;
  margin-bottom: 20px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card p {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-size: 0.9rem;
  color: #4d4d4d;
  margin-bottom: 20px;
  line-height: 1.6;
  flex-grow: 1; /* S'adapte à l'espace disponible */
}

/* Card 3 (Bilan de compétences) - Utilise les mêmes règles que les autres cards */
.card:nth-child(3) p {
  font-size: 1rem;
  line-height: 1.7;
  /* Utilise les règles par défaut : margin-bottom: 20px et flex-grow: 1 */
}

.card-button {
  background: white;
  color: #202020;
  border: 2px solid #202020;
  padding: 8px 16px;
  border-radius: 6px;
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  width: auto;
  text-align: center;
  margin-bottom: 20px;
  align-self: flex-start;
  flex-shrink: 0;
}

.card-button:hover {
  background: #f9fafb;
}

/* Détails des cards */
.card-details {
  margin-bottom: 20px;
  flex-shrink: 0;
}

.card-details h4 {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #202020;
  margin-bottom: 12px;
}

.card-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card-details li {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-size: 0.85rem;
  color: #4d4d4d;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.card-details li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #ffee32;
  font-weight: bold;
  font-size: 1rem;
}

/* Bouton Calendly */
.calendly-button {
  background: #202020;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
  width: 100%;
  text-align: center;
  margin-top: auto; /* Pousse le bouton vers le bas */
  margin-bottom: 0;
}

.calendly-button:hover {
  background: #374151;
  transform: translateY(-1px);
}

/* Modales */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.show {
  opacity: 1;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(32, 32, 32, 0.8);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show .modal-overlay {
  opacity: 1;
}

.modal-container {
  position: relative;
  z-index: 1001;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content {
  background: white;
  border-radius: 20px;
  padding: 30px;
  position: relative;
  transform: scale(0.8) translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.show .modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #4d4d4d;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal:hover {
  background: #f8f9fa;
  color: #202020;
  transform: rotate(90deg);
}

.modal-content h2 {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #202020;
  margin-bottom: 12px;
}

.modal-content h3 {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #202020;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-content h4 {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #202020;
  margin: 20px 0 12px 0;
}

/* Harmoniser l'espacement avant le bouton modal-cta */
.modal-content h4:last-of-type {
  margin-bottom: 35px; /* Espacement cohérent avec modal-duration */
}

.modal-content p {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-size: 1rem;
  color: #4d4d4d;
  margin-bottom: 20px;
  line-height: 1.6;
}

.modal-features {
  list-style: none;
  margin-bottom: 30px;
}

.modal-features li {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  color: #4d4d4d;
  position: relative;
  padding-left: 20px;
}

.modal-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #ffee32;
  font-weight: bold;
  font-size: 1.1rem;
}

.modal-duration {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 35px; /* Espacement plus généreux pour harmoniser */
  text-align: center;
  color: #4d4d4d;
  font-size: 0.9rem;
}

.modal-cta {
  display: inline-block;
  background: linear-gradient(135deg, #ffee32, #ffd100);
  color: #202020;
  text-decoration: none;
  padding: 14px 35px;
  border-radius: 50px;
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(255, 238, 50, 0.3);
  text-align: center;
  width: 100%;
  margin-top: 0; /* S'assurer qu'il n'y a pas de marge en haut */
  margin-bottom: 0; /* S'assurer qu'il n'y a pas de marge en bas */
}

.modal-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 238, 50, 0.4);
}

/* Bandeau Avis Google - SUPPRIMÉ (utilise maintenant le shortcode) */

.overall-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.stars {
  font-size: 1.5rem;
}

.rating-text {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-size: 1.1rem;
  color: #4d4d4d;
  font-weight: 600;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.review-card {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: #ffee32;
}

.review-stars {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.review-text {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-size: 1rem;
  color: #4d4d4d;
  line-height: 1.6;
  margin-bottom: 15px;
  font-style: italic;
}

.review-author {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 500;
}

.reviews-cta {
  text-align: center;
}

.google-reviews-link {
  display: inline-block;
  background: linear-gradient(135deg, #ffee32, #ffd100);
  color: #202020;
  text-decoration: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(255, 238, 50, 0.3);
}

.google-reviews-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 238, 50, 0.4);
}

/* Section CTA Final */
.final-cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, white 100%);
  text-align: center;
  position: relative;
}

.final-cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain2" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23FFEE32" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="%23FFD100" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain2)"/></svg>');
}

.final-cta-section h2 {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: #202020;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.final-cta-section p {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-size: 1.2rem;
  color: #4d4d4d;
  margin-bottom: 35px;
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta-button {
  background: linear-gradient(135deg, #ffee32, #ffd100);
  color: #202020;
  text-decoration: none;
  padding: 18px 45px;
  border-radius: 50px;
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 15px 40px rgba(255, 238, 50, 0.3);
  display: inline-block;
  position: relative;
  z-index: 2;
  animation: finalCtaPulse 2s infinite;
}

@keyframes finalCtaPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.final-cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 50px rgba(255, 238, 50, 0.4);
  animation: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-container {
    grid-template-columns: repeat(8, 1fr);
    gap: 15px;
  }

  .card:nth-child(1),
  .card:nth-child(2) {
    grid-column: span 4;
  }

  .card:nth-child(3) {
    grid-column: span 8;
    grid-row: span 1; /* Même hauteur que les autres cards */
  }

  .card:nth-child(4) {
    grid-column: span 4;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 60px 0 40px;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section p {
    font-size: 1.1rem;
    max-width: 600px;
  }

  .hero-cta {
    flex-direction: column;
    gap: 15px;
  }

  .corner-bracket-bottom-left,
  .corner-bracket-bottom-right {
    display: none;
  }

  .grid-container {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
    max-width: 100%;
  }

  .card:nth-child(1),
  .card:nth-child(2),
  .card:nth-child(3),
  .card:nth-child(4) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .card {
    padding: 30px 20px;
  }

  .modal-content {
    padding: 30px 20px;
  }

  .cta-section h2 {
    font-size: 2.2rem;
  }

  .cta-section p {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 60px 0 40px;
    min-height: 80vh;
  }

  .hero-section h1 {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .hero-section p {
    font-size: 1rem;
    max-width: 100%;
    margin-bottom: 30px;
  }

  .scroll-indicator {
    bottom: 15px;
  }

  .scroll-indicator .scroll-text {
    font-size: 0.8rem;
  }

  .solutions-section {
    padding: 60px 0;
  }
  .final-cta-section {
    padding: 60px 0;
  }
  .card h2 {
    font-size: 1.3rem;
  }
  .modal-content h2 {
    font-size: 1.6rem;
  }
}
