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

body {
  background: #f4f4f4;
  color: #333;
}

/* HEADER */

header {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
}

.logo img {
  height: 80px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

nav a {
  text-decoration: none;
  color: #003cff;
  font-weight: bold;
}

nav a:hover {
  color: #000;
}

/* Bouton burger (caché sur grand écran) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: #003cff;
  border-radius: 3px;
  transition: 0.3s;
}

/* Animation en croix quand le menu est ouvert */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* HERO */

.hero {
  height: 80vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)),
    url("../images/Atelier1.png");
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: rgb(255, 255, 255);
}

.hero-content h1 {
  font-size: 10rem;
}

.hero-content p {
  font-size: 3rem;
  margin-bottom: 50px;
}

.btn {
  background: #003cff;
  padding: 15px 30px;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

.btn:hover {
  background: #001f8f;
}

/* SECTIONS */

section {
  padding: 80px 10%;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #003cff;
}

/* PRESENTATION */

.about {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 80px;
  align-items: center;
  justify-content: center;
}

.about img {
  width: 300px;
  height: auto;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-text p + p {
  margin-top: 1.2em;
}

/* SERVICES */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.service {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.service h3 {
  color: #003cff;
  margin-bottom: 15px;
}

.service img {
  width: 225px;
  height: auto;
  display: block;
  margin: 0 auto 30px;
}

/* GALERIE */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  transition: 0.3s;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* STATS */

.stats {
  background: #003cff;
  color: white;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.stat {
  padding: 40px;
}

.stat h2 {
  font-size: 3rem;
}

/* CONTACT */

.contact {
  background: white;
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

form label {
  font-weight: bold;
  color: #003cff;
  margin-top: 10px;
}

input,
textarea {
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #003cff;
}

.form-feedback {
  margin-top: 10px;
  font-weight: bold;
  min-height: 1.2em;
}

.form-feedback.success {
  color: #1a7f37;
}

.form-feedback.error {
  color: #cf222e;
}

button {
  padding: 15px;
  background: #003cff;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

button:hover {
  background: #001f8f;
}

/* FOOTER */

footer {
  background: #111;
  color: white;
  text-align: center;
  padding: 30px;
}

footer a {
  color: white;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* RESPONSIVE */

/* Tablettes et petits écrans */
@media (max-width: 900px) {
  /* Logo à gauche, burger à droite ; le menu se déroule en dessous */
  .navbar {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
  }

  nav {
    width: 100%;
  }

  nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    margin-top: 15px;
  }

  nav ul.open {
    display: flex;
  }

  nav ul li {
    border-top: 1px solid #eee;
  }

  nav ul a {
    display: block;
    padding: 14px 5px;
  }

  section {
    padding: 50px 6%;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .about img {
    width: 100%;
    max-width: 260px;
    height: auto;
    margin: 0 auto;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero-content h1 {
    font-size: 4rem;
  }

  .hero-content p {
    font-size: 1.5rem;
  }
}

/* Smartphones (iPhone, etc.) */
@media (max-width: 600px) {
  section {
    padding: 40px 5%;
  }

  .hero {
    height: 70vh;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  .hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery img {
    height: 220px;
  }

  .contact {
    padding: 25px;
  }

  .stat {
    padding: 25px;
  }

  .stat h2 {
    font-size: 2.2rem;
  }
}
