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

body {
  font-family: "Inter", Arial, sans-serif;
  background-color: #f8f9fa;
  color: #212529;
  line-height: 1.6;
}

/* Header */
.site-header {
  background: #0d6efd;
  color: #fff;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header h1 {
  font-size: 1.5rem;
  letter-spacing: 0.5px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 5px;
  transition: background 0.3s;
}

nav ul li a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
}

.tool-card {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  max-width: 600px;
  text-align: center;
  width: 90%;
}

.tool-card h2 {
  color: #0d6efd;
  margin-bottom: 10px;
}

.tool-card p {
  color: #555;
  margin-bottom: 20px;
}

.input-group {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}

input[type="text"] {
  flex: 1;
  padding: 12px;
  border: 2px solid #ced4da;
  border-radius: 8px;
  font-size: 1rem;
  transition: border 0.3s;
}

input[type="text"]:focus {
  border-color: #0d6efd;
  outline: none;
}

button {
  background: #0d6efd;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

button:hover {
  background: #0b5ed7;
}

/* Thumbnails */
.thumbnails {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.thumbnail {
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.thumbnail:hover {
  transform: translateY(-3px);
}

.thumbnail img {
  max-width: 100%;
  border-radius: 8px;
}

.thumbnail button {
  margin-top: 10px;
  width: 100%;
  background: #198754;
}

.thumbnail button:hover {
  background: #157347;
}

/* Footer */
.footer {
  text-align: center;
  background: #0d6efd;
  color: #fff;
  padding: 1rem 0;
  margin-top: 50px;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 600px) {
  .input-group {
    flex-direction: column;
  }

  button {
    width: 100%;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
}
/* ===== STRUCTURE GLOBALE ===== */
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: #222;
}

/* ===== CONTENEUR PRINCIPAL ===== */
.container {
  max-width: 1200px; /* largeur maximale du contenu */
  margin: 0 auto; /* centre le contenu */
  padding: 0 40px; /* marges à gauche et à droite */
}

/* ===== TEXTES ===== */
p {
  line-height: 1.7;
  font-size: 1.1rem;
}

/* ===== TITRES ===== */
h1, h2, h3 {
  line-height: 1.3;
  margin-bottom: 15px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .container {
    padding: 0 30px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  h1 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.3rem;
  }
}
/* ====== BASE ====== */
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: #fff;
  color: #222;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ====== HEADER ====== */
header {
  background-color: #222;
  color: #fff;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: 1px;
}

/* ====== NAVIGATION ====== */
nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav a {
  color: #fff;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #00bfff;
}

/* ====== MENU BURGER ====== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animation du burger vers X */
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ====== MENU MOBILE ====== */
.mobile-menu {
  display: none;
  flex-direction: column;
  background-color: #333;
  position: absolute;
  top: 65px;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 15px 0;
  border-top: 2px solid #00bfff;
}

.mobile-menu a {
  color: #fff;
  padding: 10px 0;
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ====== CONTENEUR ====== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-menu.show {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .container {
    padding: 20px 15px;
  }
}
