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

body {
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #f4f4f4;
}

a { color: #3498db; text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── HEADER ── */
header {
  background: #2c3e50;
  color: #fff;
  padding: 15px 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

header h1 { font-size: 1.4rem; }
header p  { font-size: 0.85rem; color: #bdc3c7; }

/* ── NAV ── */
nav { background: #34495e; }

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

nav ul li a {
  display: block;
  color: #ecf0f1;
  padding: 10px 14px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s;
}

nav ul li a:hover,
nav ul li a.active {
  background: #2c3e50;
}

/* ── MAIN ── */
main { padding: 30px 0; }

section {
  background: #fff;
  border-radius: 6px;
  padding: 30px;
  margin-bottom: 25px;
}

section h2 {
  font-size: 1.4rem;
  color: #2c3e50;
  border-bottom: 2px solid #3498db;
  padding-bottom: 8px;
  margin-bottom: 20px;
}

section h3 { font-size: 1.05rem; color: #34495e; margin-bottom: 8px; }

/* ── FOOTER ── */
footer {
  background: #2c3e50;
  color: #bdc3c7;
  padding: 30px 0 15px;
  font-size: 0.88rem;
}

.footer-grille {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-grille h4 {
  color: #ecf0f1;
  margin-bottom: 10px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-grille ul { list-style: none; }
.footer-grille ul li { margin-bottom: 5px; }
.footer-grille ul li a { color: #bdc3c7; }
.footer-grille ul li a:hover { color: #fff; }

.footer-bas {
  border-top: 1px solid #3d5166;
  padding-top: 15px;
  text-align: center;
  font-size: 0.8rem;
  color: #7f8c8d;
}

/* ── HERO ── */
.hero {
  position: relative;
  height: 320px;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #2c3e50;
}

.hero video,
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero-texte {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 20px;
}

.hero-texte h2 { font-size: 2rem; margin-bottom: 10px; }
.hero-texte p  { font-size: 1.05rem; color: #ecf0f1; }

.btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 24px;
  background: #3498db;
  color: #fff;
  border-radius: 4px;
  font-size: 0.9rem;
  text-decoration: none;
}
.btn:hover { background: #2980b9; text-decoration: none; }

/* ── GRILLE SERVICES (index) ── */
.services-grille {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.service-carte {
  flex: 1;
  min-width: 200px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 18px;
}

.service-carte h3 { margin-bottom: 8px; }
.service-carte p  { font-size: 0.92rem; color: #555; }

/* ── TÉMOIGNAGES ── */
.temoignages-liste { list-style: none; }
.temoignages-liste li {
  border-left: 4px solid #3498db;
  padding: 12px 16px;
  margin-bottom: 14px;
  background: #f9f9f9;
  border-radius: 0 4px 4px 0;
}
.temoignages-liste li strong { display: block; margin-top: 6px; font-size: 0.85rem; color: #777; }

/* ── ÉQUIPE (about) ── */
.equipe-grille {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

figure.membre {
  flex: 1;
  min-width: 180px;
  text-align: center;
}

figure.membre img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 10px;
  border: 3px solid #3498db;
}

figcaption { font-size: 0.88rem; color: #555; }
figcaption strong { display: block; font-size: 1rem; color: #2c3e50; margin-bottom: 3px; }

/* ── DETAILS/SUMMARY (services) ── */
details {
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 10px;
}

summary {
  padding: 12px 16px;
  cursor: pointer;
  font-weight: bold;
  color: #2c3e50;
  background: #f9f9f9;
  border-radius: 4px;
  list-style: none;
}

summary::-webkit-details-marker { display: none; }
summary::before { content: '▶ '; font-size: 0.75rem; color: #3498db; }
details[open] summary::before { content: '▼ '; }

details p {
  padding: 14px 16px;
  font-size: 0.93rem;
  color: #444;
}

/* ── TABLEAU TARIFS ── */
table.tarifs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

table.tarifs caption {
  text-align: left;
  font-style: italic;
  font-size: 0.82rem;
  color: #777;
  padding-bottom: 8px;
}

table.tarifs thead { background: #2c3e50; color: #fff; }
table.tarifs thead th { padding: 10px 12px; text-align: center; }

table.tarifs tbody tr:nth-child(even) { background: #f9f9f9; }
table.tarifs tbody tr:hover { background: #eaf4fb; }
table.tarifs tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid #ddd;
  text-align: center;
}
table.tarifs tbody td:first-child { text-align: left; font-weight: bold; }

table.tarifs tfoot td {
  padding: 8px 12px;
  font-size: 0.78rem;
  color: #777;
  font-style: italic;
  border-top: 2px solid #ddd;
}

.prix { color: #27ae60; font-weight: bold; }

/* ── GALERIE ── */
.galerie-grille {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.galerie-grille figure {
  flex: 1;
  min-width: 200px;
  margin: 0;
}

.galerie-grille img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
}

.galerie-grille figcaption {
  font-size: 0.8rem;
  color: #777;
  text-align: center;
  margin-top: 5px;
}

/* ── CONTACT ── */
.contact-grille {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.contact-form { flex: 2; min-width: 280px; }
.contact-info { flex: 1; min-width: 200px; }

.champ { margin-bottom: 14px; }

.champ label {
  display: block;
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.champ input,
.champ select,
.champ textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.92rem;
  font-family: Arial, sans-serif;
}

.champ input:focus,
.champ select:focus,
.champ textarea:focus {
  outline: none;
  border-color: #3498db;
}

.erreur {
  display: none;
  font-size: 0.8rem;
  color: #e74c3c;
  margin-top: 3px;
}

.champ input:invalid:not(:placeholder-shown) { border-color: #e74c3c; }
.champ input:invalid:not(:placeholder-shown) + .erreur { display: block; }
.champ input:valid:not(:placeholder-shown) { border-color: #27ae60; }

button[type="submit"] {
  padding: 10px 28px;
  background: #2c3e50;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  cursor: pointer;
}

button[type="submit"]:hover { background: #3498db; }

.contact-info p { margin-bottom: 10px; font-size: 0.93rem; }

.carte { margin-top: 25px; border-radius: 6px; overflow: hidden; }
.carte iframe { width: 100%; border: none; border-radius: 6px; }
