:root {
  --primary: #1c315e;
  --secondary: #0055a5;
  --accent: #003c80;
  --text: #000;
  --background: #f4f4f4;
}

/* ===== RESET ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
  min-height: 100vh;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
}

/* ===== HEADER ===== */
header, .hero-header {
  background-color: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0px 0;
  border-bottom: 1px solid #fff;
}
.hero-header {
  background: linear-gradient(90deg, #eaf1fb 60%, #fff 100%);
  color: #222;
  border-bottom: 1px solid #e0e6ef;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.logo {
  width: 100px;
  height: auto;
  margin-left: 0;
  display: block;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.header-content {
  flex: 1;
  text-align: center;
  margin-right: 100px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.highlight {
  color: var(--primary, #2563eb);
  font-weight: bold;
  font-size: 2.2rem;
  letter-spacing: 1px;
}
.tagline {
  font-size: 1.5rem;
  color: #4b3636;
}
header h1 {
  color: #ffffff;
}

/* ===== NAVIGATION ===== */
nav {
  background-color: #3b3b3b;
  width: 100%;
}
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
}
nav ul li {
  position: relative;
  margin: 0 30px;
}
nav ul li a {
  font-size: 1.2em;
  display: block;
  padding: 12px 18px;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s;
}
nav ul li a:hover {
  background-color: #003366;
}
nav ul li .dropdown-content {
  display: none;
  position: absolute;
  background-color: #0055a5;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 160px;
  z-index: 10;
  padding-left: 10px;
}
nav ul li:hover .dropdown-content {
  display: block;
}
nav ul li .dropdown-content li {
  margin: 0;
}

/* ===== INDEX : SERVICES CARDS ===== */
.services-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  margin: 32px 0 24px 0;
}
.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  padding: 18px 16px 10px 16px;
  width: 150px;
  text-decoration: none;
  color: #222;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid #e0e6ef;
}
.service-card span {
  font-weight: 600;
  font-size: 1.5rem;
  text-align: center;
}
.service-card:hover {
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.13);
  transform: translateY(-4px) scale(1.04);
  color: var(--primary, #2563eb);
}

/* ===== INDEX : DEVIS BANNER ===== */
.devis-banner {
  display: flex;
  justify-content: center;
  margin: 24px 0 0 0;
}
.devis-button {
  display: flex;
  align-items: center;
  gap: 16px;
}
.tampon {
  background: #2563eb;
  color: #fff;
  font-weight: bold;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 1.5rem;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}
.btn-devis {
  background: var(--primary, #2563eb);
  color: #fff;
  font-weight: bold;
  border-radius: 8px;
  padding: 10px 22px;
  text-decoration: none;
  font-size: 1.5rem;
  transition: background 0.2s;
}
.btn-devis:hover {
  background: var(--secondary, #1e40af);
}

/* ===== CONTENEUR PRINCIPAL ===== */
.main-container {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ===== SECTION PRINCIPALE ===== */
.section-cours, .intro {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--background);
  min-height: 100vh;
  padding-bottom: 32px;
}
.section-cours {
  background: #fff;
}
h1, h2 {
  text-align: center;
  margin: 30px 0 30px 0;
  font-weight: bold;
  color: #222;
  letter-spacing: 0.5px;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 2rem; }
p.info-reservation, .infos-cours {
  font-size: 1.50rem;
  text-align: center;
  margin-top: 10px;
}

/* ===== CENTRAGE DU BLOC TABLEAU + IMAGE ===== */
.layout-fixe {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  max-width: 1500px;
  margin: 0 auto;
  gap: 40px;
  width: 100%;
  position: relative;
}

/* ===== CONTENU TABLEAU ===== */
.contenu-cours {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 10px;
}

/* ===== TABLEAU ===== */
.cours-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #b1acac;
  box-shadow: 0 4px 18px rgba(37,99,235,0.08);
  margin-top: 18px;
  margin-bottom: 18px;
  font-size: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
}
.cours-table th,
.cours-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #e0e6ef;
}
.cours-table th {
  background-color: #2563eb;
  color: #fff;
  font-size: 1.50rem;
  font-weight: 600;
}
.cours-table th:not(:last-child),
.cours-table td:not(:last-child) {
  border-right: 2px solid #e0e6ef;
}
.cours-table tr:last-child td {
  border-bottom: none;
}
.cours-table tr:hover td {
  background: #f4f8ff;
  transition: background 0.2s;
}

/* ===== IMAGE A DROITE ===== */
.image-fixe-droite {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 24px;
  margin-right: 0;
  padding: 0;
}
.image-fixe-droite img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  background: #fff;
  border: 2px solid #e0e6ef;
}

/* ===== CONTACT ===== */
.contact-infos {
  background: #eaf1fb;
  border-left: 4px solid var(--primary);
  padding: 18px 22px;
  border-radius: 10px;
  margin-bottom: 28px;
  font-size: 1.50rem;
}
.contact-infos p {
  margin: 8px 0;
}
.contact-link {
  color: var(--primary);
  text-decoration: underline;
  font-weight: bold;
}
.contact-link:hover {
  color: var(--secondary);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
 

}
.contact-form label {
  font-weight: 500;
  margin-bottom: 2px;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  padding: 10px;
  border: 1px solid #bfc9d1;
  border-radius: 6px;
  font-size: 1.5rem;
  font-family: inherit;
  background: #f8fafc;
  transition: border 0.2s;
}
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  border: 1.5px solid var(--primary);
  outline: none;
}
.contact-form button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 0;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
}
.contact-form button:hover {
  background: var(--secondary);
}

/* ===== FOOTER ===== */
footer {
  flex-shrink: 0;
  background-color: #003366;
  color: #fff;
  text-align: center;
  padding: 15px 0;
  width: 100%;
  margin-top: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .main-container {
    max-width: 98vw;
    padding: 0 4vw;
  }
  .layout-fixe {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
  .image-fixe-droite {
    margin-left: 0;
    margin-bottom: 12px;
  }
  .image-fixe-droite img {
    width: 100px;
    height: 100px;
  }
  .contenu-cours {
    padding: 0;
    max-width: 100vw;
  }
  .services-cards {
    gap: 14px;
  }
  .service-card {
    width: 110px;
    padding: 12px 6px 8px 6px;
  }
  .hero-header {
    flex-direction: column;
    gap: 10px;
    padding: 18px 0 10px 0;
    text-align: center;
  }
}