:root {
  --fond-pale: #dee6da; /* couleur extraite de ton image */
}

body {
  margin: 0px;
  font-family: sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--fond-pale);
}

main {
  flex: 1;
}

footer {
  background-color: #333;
  color: white;
  padding: 2rem;
}

@import url('https://fonts.googleapis.com/css2?family=Barlow&family=Great+Vibes&display=swap');

:root {
  --vert: #8AA482;
  --vert-fonce: #083E20;
  --rouge: #E84435;
  --noir: #1D1E1B;
  --blanc: #FFFFFF;
}

/*
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
*/
h1 {
  margin: 20px 0;     /* Adds vertical spacing above and below */
  padding: 10px 15px;  /* Adds inner spacing around the text */
}




header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 10000;
}

.logo {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  color: var(--vert-fonce);
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  text-decoration: none;
  color: var(--noir);
  font-weight: bold;
}

.menu.show {
  display: flex;
}



@media (max-width: 768px) {
  nav {
    flex-direction: column;
    display: none;
    background: var(--blanc);
    position: absolute;
    top: 60px;
    right: 20px;
    padding: 1rem;
    border: 1px solid #ccc;
  }
  nav.show {
    display: flex;
  }
  .burger {
    display: block;
  }
}

.carousel {
  position: relative;
  height: 85vh;
  overflow: hidden;
}

.carousel img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel img.active {
  opacity: 1;
}

.cta-button {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
 
}

.btn-primary {
  background-color: var(--rouge);
  color: var(--blanc);
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
   font-size: 1.5rem;
}

.btn-primary:hover {
  background-color: #c33627;
}

.colored-header {
  background-color: var(--vert-fonce);
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.colored-header a,
.colored-header nav a {
  color: white;
}

.logo {
  font-family: 'Great Vibes', cursive;
  font-size: 1.8rem;
  color: white;
  text-decoration: none;
}

.tagline {
  position: absolute;
  top: 20%;
  width: 100%;
  text-align: center;
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
  z-index: 5;
  font-size: 3rem;

}

.formations-section {
  background-color: var(--vert);
  padding: 2rem;
  text-align: center;
}

.formations-section h2,
.temoignage-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.formations-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.formation-card {
  background: white;
  border-radius: 10px;
  padding: 1rem;
  width: 280px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.formation-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.temoignage-section {
  padding: 2rem;
  background: var(--blanc);
  text-align: center;
}

.stars {
  font-size: 2rem;
  color: gold;
  margin: 1rem 0;
}

blockquote {
  font-style: italic;
  font-size: 1.2rem;
  margin: 1rem auto;
  max-width: 600px;
}

.offers-container {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 10px;
  padding: 10px;
}

.offer-card {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  width: 300px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}

.offer-card h3 {
  margin-bottom: 1rem;
}

.offer-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}

.offer-card li {
  margin-bottom: 0.5rem;
}

.footer-notes {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}



/* STYLE POUR LE MENU DÉROULANT "Permis" */

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

nav ul li {
  position: relative;
}

nav ul li a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  display: block;
}

nav ul li .dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 200px;
}

nav ul li .dropdown-content li a {
  color: black;
  padding: 0.5rem 1rem;
}

nav ul li .dropdown-content li a:hover {
  background-color: #083E20;
  color: white;
}

/* Affichage au survol sur desktop */
nav ul li:hover > .dropdown-content {
  display: block;
}

/* Responsive mobile */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
  }

  nav ul li .dropdown-content {
    position: static;
    box-shadow: none;
    background-color: transparent;
  }

  nav ul li .dropdown-content li a {
    color: white;
    background-color: transparent;
    padding-left: 2rem;
  }
}



/* CARTES D'OFFRES */
.offres-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
  justify-content: center;
}

.offre-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 1.5rem;
  width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offre-card h2 {
  margin-top: 0;
  font-size: 1.4rem;
  color: #083E20;
}

.offre-card ul {
  padding-left: 1.2rem;
}

.offre-card .tarifs {
  margin-top: 1rem;
  font-weight: bold;
  color: #444;
}

.offre-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}



/* FOOTER */
.site-
.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-column {
  flex: 1 1 220px;
  margin: 1rem;
}
.footer-column h4 {
  color: #999;
  margin-bottom: 0.5rem;
}
.footer-column a {
  color: #E84435;
  text-decoration: none;
}
.footer-column a:hover {
  text-decoration: underline;
}
.footer-column .highlight {
  color: #E84435;
  font-weight: bold;
}
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }
}

body > *:last-child {
  margin-top: auto;
}


.footer-section {
  background-color: #2c2c2c;
  color: #f1f1f1;
  padding: 40px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.footer-column {
  flex: 1 1 200px;
  min-width: 200px;
}

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #fff;
}

.footer-column p,
.footer-column a {
  font-size: 0.9rem;
  color: #ddd;
  text-decoration: none;
  line-height: 1.6;
}

.footer-column a:hover {
  color: #fff;
  text-decoration: underline;
}


.
.footer a {
  color: #6cf;
  text-decoration: none;
}
.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}
.footer-col {
  flex: 1 1 200px;
  min-width: 200px;
}
.footer-col h4 {
  margin-bottom: 10px;
  font-size: 16px;
}
.footer-col ul {
  padding-left: 20px;
}



.card {
  background-color: white;
  border-radius: 20px;
  padding: 1.5rem;
  width: 300px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  color: #1f3e2d;
}

.card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  color: #333;
}

.card ul li {
  margin-bottom: 0.5rem;
}

.card .prices {
  margin-top: 1rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: #000;
}

.card .accelere {
  margin-top: 1rem;
  font-weight: bold;
  color: #e63946;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card .accelere img {
  width: 24px;
  height: auto;
  margin-right: 0.5rem;
}




.cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
}

.card {
  background-color: white;
  border-radius: 1rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  flex: 1 1 300px;
  max-width: 350px;
  text-align: center;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: scale(1.03);
}

.offer-title {
  font-size: 1.3rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #083E20; /* vert foncé */
  margin-bottom: 0.5rem;
  font-family: 'Barlow', sans-serif;
  text-align: center;
}

.offer-tagline {
  background-color: black;
  color: white;
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-family: 'Barlow', sans-serif; /* ou une fantaisie si tu veux */
  font-size: 1rem;
  font-weight: bold;
  transform: rotate(-4deg);
  margin: 0.5rem auto;
}

.offer-tagline-student {
  background-color: #1e56a2;
  color: white;
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-family: 'Barlow', sans-serif; /* ou une fantaisie si tu veux */
  font-size: 1rem;
  font-weight: bold;
  transform: rotate(-4deg);
  margin: 0.5rem auto;
}


.service-item {
  background-color: #dce7db;         /* vert très clair */
  color: var(--vert-fonce);          /* texte vert foncé */
  padding: 0.5rem 1rem;
  border-radius: 999px;              /* style pastille */
  text-align: center;
  margin: 0.4rem auto;
  width: fit-content;
  /*font-weight: bold;*/
}

.price-option {
  background-color: black;
  color: white;
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  margin: 0.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1rem;
  position: relative;
}

.price-option::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: white;
  margin-right: 0.8rem;
}


.accelere {
  margin-top: 1rem;
  font-weight: bold;
  font-size: 1rem;
  color: #e63946;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.accelere img {
  width: 100%;
  height: auto;
}

.offer-notes{
   margin: 20px 20px;     /* Adds vertical spacing above and below */
  padding: 10px 15px;  /* Adds inner spacing around the text */
}

.page-intro{
   /*margin:  20px;      Adds vertical spacing above and below */
  padding: 15px;  /* Adds inner spacing around the text */
  line-height: 1.6;      /* améliore la lisibilité ligne par ligne */
}

main.prestations {
  padding: 40px 20px;
  max-width: 1000px;
  margin: auto;
}


.subtitle {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 2em;
}

.tarif-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  border-radius: 15px;
}

.tarif-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #ddd;
}

.tarif-table td:last-child {
  text-align: right;
  white-space: nowrap;
  font-weight: bold;
}

.tarif-table tr:hover {
  background-color: #f8f8f8;
}

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

li {
  list-style-type: none;
}


.contact-main {
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}

.contact-main h2 {
  margin-bottom: 1.5rem;
  font-size: 1.8em;
  text-align: center;
}

.contact-wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: nowrap;
}

.contact-form {
  flex: 1 1 50%;
  min-width: 300px;
}

.contact-map {
  flex: 1 1 50%;
  min-width: 300px;
  height: 100%;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}

/* Responsive fallback */
@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
  }
}

.service-item.empty {
  visibility: hidden;
  height: 1.3rem; /* same height as others to maintain spacing */
}



/* Barre de navigation */
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  padding: 0.5rem 2rem;
  width: 100%;
  flex-wrap: nowrap;  /* 🔒 Évite que le logo ou menu saute à la ligne */

}

/* Affiche le menu horizontalement à droite en desktop */
@media (min-width: 768px) {
  .main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .main-nav li {
    position: relative;
  }

  .burger {
    display: none;
  }
}



/* Bouton burger caché par défaut */
.burger {
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: none; /* visible uniquement en mobile */
}

/* Mode mobile */
@media (max-width: 768px) {
  nav#menu {
    display: flex; /* Cache le menu horizontal */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #1f4d2e;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
  }

  nav#menu.show {
    display: flex;
    transform: translateX(0);

  }

  nav#menu ul {
    list-style: none;
    padding: 0;
    text-align: center;
  }

  nav#menu li {
    margin: 1rem 0;
  }

  nav#menu a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;

  }

  .burger {
    display: block; /* Affiche le burger */
  }

  /* Désactiver le dropdown "hover" en mobile */
  .dropdown-content {
    position: static;
    display: none;
  }

  .dropdown.open .dropdown-content {
    display: block;
  }
}

  .close-btn {
    position: absolute;
    top: 20px;
    right: 50px;
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: none;
  }

  .close-btn.show {
    display: flex;
  }
.caret {
  font-size: 0.8em;
  line-height: 1;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.3em; /* espace entre le texte et la flèche */
}
.main-nav ul {
  display: flex;
  gap: 1rem; /* espace entre les éléments */
  flex-wrap: nowrap; /* 🔥 empêche le retour à la ligne */
  list-style: none;
  padding: 0;
  margin: 0;
}
