:root {
  --primary: #000;
  --accent: #ff4d00;
  --bg: #fff;
  --gray: #f5f5f5;
  --font: 'Helvetica Neue', sans-serif;
}

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

body {
  font-family: var(--font);
  line-height: 1.6;
  color: var(--primary);
  background: var(--bg);
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
  padding: 2rem 0;
}

.navbar {
  background: var(--bg);
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 10;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
}

.nav-links a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
}

.burger {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  background: url('img/creche.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* Assombrit légèrement l’image */
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2rem;
  }
}

.section {
  padding: 4rem 0;
}

.section.gray {
  background-color: var(--gray);
}

.projects {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.project-card {
  flex: 1 1 calc(33.333% - 2rem);
  background: white;
  border: 1px solid #ddd;
  padding: 1rem;
  text-align: center;
}

.project-image {
  width: 100%;
  aspect-ratio: 4 / 3; /* ou 1/1 si tu veux un carré */
  overflow: hidden;
  border-radius: 12px; /* optionnel, pour un effet arrondi */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.projects h3 {
  margin-top: 1rem;
  font-size: 1.2rem;
}

.footer {
  text-align: center;
  padding: 2rem 0;
  background: #eee;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: var(--bg);
    position: absolute;
    top: 60px;
    right: 20px;
    border: 1px solid #ddd;
    padding: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .burger {
    display: block;
  }

  .projects {
    flex-direction: column;
  }

  .project-card {
    flex: 1 1 100%;
  }

  .hero-text h1 {
    font-size: 2rem;
  }
}

/* interface-preview */
.interface-preview {
  background-color: #ffffff;
  padding: 4rem 1rem;
  text-align: center;
}

.interface-preview .container {
  max-width: 1000px;
  margin: 0 auto;
}

.interface-preview h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #222;
}

.interface-preview p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  color: #666;
  line-height: 1.6;
}

.interface-img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  display: block;
}

.interface-preview .container {
  width: 100%;        /* Prends toute la largeur du parent */
  overflow: hidden;   /* Cache ce qui dépasse */
  max-width: 100%;    /* Pas de débordement */
  position: relative; /* Pour positionner l'image si besoin */
  height: auto;       /* Ajuste selon le contenu */
}

/* Style par défaut de l'image */
.interface-img {
  width: 100%;            /* Prends la largeur du conteneur */
  height: auto;           /* Ajuste la hauteur automatiquement */
  display: block;         /* Supprime espace blanc sous l'image */
  transform-origin: top left; /* Point d'ancrage pour le zoom */
  transition: transform 0.3s ease; /* Animation optionnelle */
}

.interface-preview .container {
  max-width: 800px; /* ou 80%, ou une valeur fixe */
  margin: 0 auto;   /* centrer horizontalement */
}

/* Sur mobile, on applique le zoom */
@media (max-width: 768px) {
  .interface-img {
    transform: scale(2); /* Zoom à 150% */
  }
}

/* services */
.services {
  background-color: #f9f9f9;
  padding: 4rem 1rem;
  text-align: center;
}

.services .container {
  max-width: 1200px;
  margin: 0 auto;
}

.services h2 {
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  color: #222;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.service-card .emoji {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #111;
}

.service-card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/* link style */
#contact a {
  color: #007BFF;               /* Bleu vif */
  text-decoration: none;        /* Supprime le soulignement */
  font-weight: 600;             /* Un peu plus en gras */
  transition: color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;                     /* Espace entre texte et emoji si besoin */
}

#contact a:hover,
#contact a:focus {
  color: #0056b3;               /* Bleu plus foncé au hover */
  transform: scale(1.05);       /* Lien qui grossit un peu */
  text-decoration: underline;   /* Soulignement au hover */
  outline: none;
}