html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: #f5f7fa;
  color: #1e1e2e;
  line-height: 1.6;
}

header { position:fixed; width:100%; z-index: 100;}
a {
  text-decoration: none;
  color: inherit;
}

main.container {
  margin-top: 50px;
  flex: 1;
}
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
}


.navbar {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2a2a3b;
}

nav a {
  margin-left: 1rem;
}

a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 1rem;
  min-height: 48px;
}

/* Bouton principal (rempli) */
.btn.primary {
  background-color: #2a2a3b;
  color: #fff;
  border: none;
}

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

/* Bouton ghost (bordé) */
.btn.ghost {
  background-color: #f5f5f5;
  color: #2a2a3b;
  border: 2px solid #2a2a3b;
}

.btn.ghost:hover {
  background-color: #eaeaea;
}

/* Bouton secondaire (gris clair) */
.btn.secondary {
  background-color: #ccc;
  color: #2a2a3b;
  border: none;
}

.btn.secondary:hover {
  background-color: #bfbfbf;
}

.hero {
  padding: 4rem 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: #444;
  margin-bottom: 2rem;
}

.hero .actions a {
  margin: 0 0.5rem;
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.hero .actions a {
  margin: 0.5rem 0;
  min-width: 220px;
  text-align: center;
}

footer {
  background-color: #f5f5f5;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
  color: #777;
  border-top: 1px solid #e0e0e0;
}

footer p {
  margin: 0;
}

footer a {
  color: #2a2a3b;
  text-decoration: underline;
}

.about-hero, .price-hero {
  padding: 3rem 1rem;
  text-align: center;
}

.video-gallery {
  padding: 3rem 1rem;
}

.videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.video-card {
  background-color: #fff;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.video-card iframe {
  width: 100%;
  height: 180px;
  border-radius: 0.5rem;
}

.call-to-action {
  background: linear-gradient(135deg, #232334, #2c2c44);
  color: #ffffff;
  padding: 1rem 1rem;
  text-align: center;
  position: relative;
  border-radius: 1rem;
  margin-top: 4rem;
}

.call-to-action .cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.call-to-action h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.call-to-action p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn.cta {
  display: inline-block;
  padding: 0.85rem 2rem;
  background-color: #f2f2f2;
  color: #1e1e2e;
  font-weight: bold;
  border-radius: 2rem;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.btn.cta:hover {
  background-color: #e6e6e6;
}


nav a.btn {
    padding: 0.3rem 0.85rem;
    min-height: 28px;
}


/**********************************************************
 ** REGISTER
 **********************************************************/
.register-section, .signin-section {
  display: flex;
  justify-content: center;
}

.form-container {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  max-width: 900px;
  width: 100%;
}

.form-signin-section { vertical-align:middle; margin: auto; width:620px; }

h1 {
  text-align: center;
  margin-bottom: 0.25rem;
}

.subtitle {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #555;
  font-size: 0.95rem;
}

.form-row {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
}

.form-row label {
  width: 220px;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-row input,
.form-row select {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  height: 2.2rem;
}

.form-row.radio {
  align-items: flex-start;
}

.radio-group input[type="radio"] {
  flex: 0 0 auto; /* pas de flex */
  width: auto;
  height: auto;
}
.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  resize: vertical;
  min-height: 80px;
}

.form-actions {
  text-align: center;
  margin-top: 1.5rem;
}

button.btn.primary {
  background-color: #2d2d3a;
  color: #fff;
  border: none;
  padding: 0.6rem 1.8rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
}

button.btn.primary:hover {
  background-color: #1e1e28;
}

/* Exemple CSS à placer dans ton fichier principal ou dans un <style> si inline */
input.error,
textarea.error,
select.error {
  border: 2px solid #e74c3c;
  background-color: #fcebea;
}

.error-list {
  color: #e74c3c;
  background: #fef2f2;
  border-left: 4px solid #e74c3c;
  padding: 0.4em;
  margin: 0 auto 20px auto; /* centré horizontalement et espacé en bas */
  list-style: disc inside;
  border-radius: 4px;
}

.row-password { margin-bottom: 0.2rem; } 
.row-help {  margin-left:calc(220px + 1rem); }
small.password-help {
  display: block;
  font-size: 10px;
  margin-top: 4px;
  color: #666; /* ou #999 pour plus clair */
  text-align: left;
}
.progress-bar-container {
  margin-left:calc(220px + 1rem); 
  
  height: 6px;
  background-color: #e5e7eb; /* gris clair */
  border-radius: 4px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.progress-bar {
  width: 100%;
  height: 100%;
  width: 0%;
  transition: width 0.3s ease, background-color 0.3s ease;
}

/* Section générale */
section.tarifs {
  padding: 0.5rem 1rem;
}

/* Container centré */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Grille principale propre (flexbox simple) */
.tarifs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Carte simple */
.card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  padding: 2rem;
  width: 300px;
  text-align: center;
}

.card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.card h3, .card h4 {
  margin-top: 0;
  font-size: 1.25rem;
}

.prix {
  font-weight: bold;
  font-size: 1.2rem;
  margin: 0.5rem 0 1rem;
}

/* Carte classique */
.card.licence-classique {
  border-top: 5px solid #3b82f6;
}
.topvente { padding-top: 40px; }
.bottom { padding-top: 20px; font-size: 10px;  }

/* Conteneur groupé (formateur + sous-licence + exemple) */
.formateur-combo {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1 1 620px; /* pour s'aligner à deux cartes */
}

/* Ligne contenant les deux cartes */
.subgrid {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}


/* Cartes internes */
.card.licence-formateur {
  border-top: 5px solid #10b981;
  flex: 1 1 300px;
}

.card.sous-licence {
  border-top: 5px solid #f97316;
  flex: 1 1 300px;
}

/* Badge d'avertissement */
.card .badge {
  font-size: 0.9rem;
  color: #b45309;
  background: #fef3c7;
  padding: 0.3rem 0.6rem;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}

/* Bloc exemple */
.exemple-tarification {
  border: 2px dashed #ccc;
  border-radius: 1rem;
  padding: 1.5rem;
  background: #f9fafb;
  text-align: center;
}

/* Total */
.exemple-tarification .total {
  font-weight: bold;
  font-size: 1.2rem;
  margin-top: 1rem;
}

/* Responsive */
@media (max-width: 700px) {
  .licence-classique { width: 100%; }
  .subgrid, .exemple-tarification {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .formateur-combo {
    width: 100%;
    align-items: center;
  }

  .card {
    width: 100%;
  }
}


/* Responsive */
@media (max-width: 1100px) {
  .licence-classique { width: 100%; }
}