.tabs {
  width: 100%;
  /*width: 20em;*/
  font-family: "lucida grande", sans-serif;
}

[role="tablist"] {
  margin: 0 0 -0.1em;
  overflow: visible;
}

[role="tab"] {
  position: relative;
  margin: 0;
  padding: 0.3em 0.5em 0.4em;
  border: 1px solid hsl(24, 100%, 16%);
  border-radius: 0.2em 0.2em 0 0;
  box-shadow: 0 0 0.2em hsl(219, 1%, 72%);
  overflow: visible;
  font-family: inherit;
  font-size: inherit;
  /*background: hsl(220, 20%, 94%);*/
}

[role="tab"]:hover::before,
[role="tab"]:focus::before,
[role="tab"][aria-selected="true"]::before {
  position: absolute;
  bottom: 100%;
  right: -1px;
  left: -1px;
  border-radius: 0.2em 0.2em 0 0;
  border-top: 3px solid hsl(20, 96%, 48%);
  content: '';
}

[role="tab"][aria-selected="true"] {
  border-radius: 0;
  /*background: hsl(220, 43%, 99%);*/
  outline: 0;
}

[role="tab"][aria-selected="true"]:not(:focus):not(:hover)::before {
  border-top: 5px solid hsl(124, 61%, 38%);
}

[role="tab"][aria-selected="true"]::after {
  position: absolute;
  z-index: 3;
  bottom: -1px;
  right: 0;
  left: 0;
  height: 0.3em;
  /*background: hsl(220, 43%, 99%);*/
  box-shadow: none;
  content: '';
}

[role="tab"]:hover,
[role="tab"]:focus,
[role="tab"]:active {
  outline: 0;
  border-radius: 0;
  color: inherit;
}

[role="tab"]:hover::before,
[role="tab"]:focus::before {
  border-color: hsl(20, 96%, 48%);
}

[role="tabpanel"] {
  position: relative;
  z-index: 2;
  padding: 0.5em 0.5em 0.7em;
  border: 1px solid hsl(24, 100%, 16%);
  border-radius: 0 0.2em 0.2em 0.2em;
  box-shadow: 0 0 0.2em hsl(219, 1%, 72%);
  /*background: hsl(220, 43%, 99%);*/
}

[role="tabpanel"]:focus {
  border-color: hsl(20, 96%, 48%);
  box-shadow: 0 0 0.2em hsl(20, 96%, 48%);
  outline: 0;
}

[role="tabpanel"]:focus::after {
  position: absolute;
  bottom: 0;
  right: -1px;
  left: -1px;
  border-bottom: 3px solid hsl(20, 96%, 48%);
  border-radius: 0 0 0.2em 0.2em;
  content: '';
}

[role="tabpanel"] p {
  margin: 0;
}

[role="tabpanel"] * + p {
  margin-top: 1em;
}



/**************************
* css pour tabs sans JS   *
**************************/

.tabs-container {
  width: 100%;
  margin: 0 auto;
  font-family: Arial, sans-serif;
}

.tab-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  /*border-bottom: 2px solid #ddd;*/
}

.tab-list label {
  flex: 1;
  padding: 5px 5px;
  text-align: center;
  cursor: pointer;
  background: url(images/ground-dark.jpg) top left repeat;
  /*background: #f0f0f0;*/
  border: 1px solid #360;
  border-radius: 6px 6px 0px 0px;
  /*border-bottom: 5px solid #c09f84;*/

  transition: background 0.3s;

}

.tab-list label:hover {
  background: #d8b3b3;
}

/* Cacher les input radio uniquement dans .tabs-container */
.tabs-container input[type="radio"] {
  display: none; /* Cacher les radio buttons */
}

.tabs-container .tab-content{
  padding: 10px;
  border: 1px solid #360;
  border-radius: 0px 6px 6px 6px;
  background: url(images/ground-light.jpg) top left repeat;
}

.tab-content section {
  display: none;
/*  padding: 20px;*/
}

/* Afficher le contenu de l'onglet sélectionné */
.tabs-container input[type="radio"]:nth-of-type(1):checked ~ .tab-content section:nth-of-type(1),
.tabs-container input[type="radio"]:nth-of-type(2):checked ~ .tab-content section:nth-of-type(2),
.tabs-container input[type="radio"]:nth-of-type(3):checked ~ .tab-content section:nth-of-type(3),
.tabs-container input[type="radio"]:nth-of-type(4):checked ~ .tab-content section:nth-of-type(4),
.tabs-container input[type="radio"]:nth-of-type(5):checked ~ .tab-content section:nth-of-type(5),
.tabs-container input[type="radio"]:nth-of-type(6):checked ~ .tab-content section:nth-of-type(6),
.tabs-container input[type="radio"]:nth-of-type(7):checked ~ .tab-content section:nth-of-type(7),
.tabs-container input[type="radio"]:nth-of-type(8):checked ~ .tab-content section:nth-of-type(8),
.tabs-container input[type="radio"]:nth-of-type(9):checked ~ .tab-content section:nth-of-type(9),
.tabs-container input[type="radio"]:nth-of-type(10):checked ~ .tab-content section:nth-of-type(10) {
  display: block;
}

/* Style de l'onglet actif */
.tabs-container input[type="radio"]:nth-of-type(1):checked ~ .tab-list li:nth-of-type(1) label,
.tabs-container input[type="radio"]:nth-of-type(2):checked ~ .tab-list li:nth-of-type(2) label,
.tabs-container input[type="radio"]:nth-of-type(3):checked ~ .tab-list li:nth-of-type(3) label,
.tabs-container input[type="radio"]:nth-of-type(4):checked ~ .tab-list li:nth-of-type(4) label,
.tabs-container input[type="radio"]:nth-of-type(5):checked ~ .tab-list li:nth-of-type(5) label,
.tabs-container input[type="radio"]:nth-of-type(6):checked ~ .tab-list li:nth-of-type(6) label,
.tabs-container input[type="radio"]:nth-of-type(7):checked ~ .tab-list li:nth-of-type(7) label,
.tabs-container input[type="radio"]:nth-of-type(8):checked ~ .tab-list li:nth-of-type(8) label,
.tabs-container input[type="radio"]:nth-of-type(9):checked ~ .tab-list li:nth-of-type(9) label,
.tabs-container input[type="radio"]:nth-of-type(10):checked ~ .tab-list li:nth-of-type(10) label {
  /*background: blue;*/
  background: hsla(124, 61%, 38%,0.3);
  color: hsl(123, 31%, 23%);
  font-weight: bold;
}

div.form-row label {
  width: 150px;
  /* Largeur fixe pour les labels */
  text-align: right;
  /* Alignement à droite */
  margin-right: 10px;
}
.form-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

ul.tab-list label {
  min-width: 100px;
  margin-right: 5px;
}
.tab-content input[type="text"],
.tab-content select {
  min-width: 250px;
  width: auto;
}

/* Le textarea prend toute la largeur disponible */
.tab-content textarea {
  flex: 1;
  width: 100%;
  min-height: 150px;
  box-sizing: border-box;
}
