JSFiddle - React, Tailwind, and code Playground

by Simon Hi

HTML

<div id="wrap">
	  <h3>Description du produit</h3>
	  <p>Spécialité d’Alsace, le mannele en inox pour mousses, entremets et découpe pâte.</p>
	  <details>
	    <summary>Caractéristiques techniques</summary>
	    <table>
	      <tr>
	        <th>Nom</th>
	        <th>Détails</th>
	      </tr>
	      <tr>
	        <td>Matière</td>
	        <td>Inox alimentaire</td>
	      </tr>
	      <tr>
	        <td>Dimensions</td>
	        <td>140x120 mm, hauteur 30 mm</td>
	      </tr>
	    </table>
	  </details>
	  <h3>Passer commande</h3>
	  <form>
	    <label for="quantite">Quantité : </label>
	    <input type="number" name="nombre" id="quantite">

	    <details>
	      <summary>Options possibles</summary>
	      <fieldset>
	        <legend>Choisissez votre couleur :</legend>
	        <p>
	          <input type="radio" id="d1" name="couleurs"><label for="d1">Gris</label>
	          <input type="radio" id="d2" name="couleurs"><label for="d2">Rouge</label>
	          <input type="radio" id="d3" name="couleurs"><label for="d3">Vert</label>
	          <input type="radio" id="d4" name="couleurs"><label for="d4">Bleu</label>
	        </p>
	      </fieldset>
	    </details>
	  </form>
	</div>

CSS

details {
  display: block;
  /* Pour les navigateurs n'implémentant pas <details> et <summary> */
  width: 300px;
  margin: 10px 0;
}

summary {
  background: #99B92C;
  color: white;
  border-radius: 5px;
  padding: 5px;
  cursor: pointer;
  font-weight: bold;
}

p+details,
form,
h3 {
  margin-left: 14px;
}

.hint {
  margin-bottom: 2em;
}

img {
  float: left;
  margin-right: 10px;
}

/* Styles pour l'icône */
details > summary {
    list-style-type: '■ ';
}

details[open] > summary {
    list-style-type: '□ ';
}