 /* ------------------- Variables globales ------------------- */
:root {
  --bg-main: #eee3d3; /* Crème */
  --bg-secondary: #A51E19; /* Rouge Bordeaux */
  --text-main: #000000; /* Noir */
  --text-other: #ffffff; /* Blanc */
  --accent: #8a1915; /* Rouge un peu plus sombre */
}

/* ------------------- General ------------------- */

* {
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
  padding: 0px;
  list-style: none;
  display: flex;
  gap: 30px;

}

 /* ------------------- Main ------------------- */
main {
    width: 90%;
    padding: 60px 30px 30px 30px;
    margin: 0 auto;
}

main .content-box {/* Boite de texte avertissement */
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

/* ------------------- Principal ------------------- */

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px; /* padding de sécurité */
}

.line {/*ligne de séparation*/
  width: 100%;
  border-top: 1px solid var(--bg-secondary);
  margin-top: 75px;
  margin-bottom: 60px;
}

h1, h2, h3 {
  color: var(--text-main); 
}

.badge_area ul {
  display: flex;
  justify-content: center;
  gap: 20px;
  list-style: none;
}

.badge_area img {
  display: block;
  width: 100%;
  height: auto;
}

.badge img{
  border-radius: 10px;
  border: 2px solid #a6a6a6;
}

.badge img:hover {
  border: 2px solid var(--bg-secondary);
}

/* ------------------- titres -------------------*/

section h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  text-align: center;
}

.title-underlined {/*petit soulignement*/
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.title-underlined::after {
    content: ""; 
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1.5em;
    height: 4px;
    background-color: var(--bg-secondary);
    border-radius: 2px;
}

/* ------------------- blocs -------------------*/

.bloc_container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.bloc_container > .bloc {
    background-color: var(--text-other);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start; 
    gap: 1em;
    min-width: 280px; /* mobile */
    max-width: 400px;
    text-align: left;
    padding: 1.5em;
}

.bloc_container > .bloc img {
    width: 30%;
    padding: 10px;
    margin: auto;
}

.bloc_container > .bloc h2 {
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: var(--text-main);
}

.bloc_container > .bloc p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #444;
}

.bloc-text {
    display: flex;
    flex-direction: column;
}

/* ------------------- case apk ------------------- */

#product_box > table {  
    font-size: 0.9em;
}

#product_box > table tr > * {
    vertical-align: top;
}

table span{
    font-size: 80%;
}

#product_box > img {
    width: 17%;
    border-radius: 25px;
}

#product_box > small {
    text-align: center;
    margin-top: 1em;
    padding: 0;
    font-size: 0.7em;     
    color: rgba(0, 0, 0, 0.6);
}

small, th {
    text-align: left;
}

small {
    font-size: 0.7em;
    color: rgba(0, 0, 0, 0.6);
    display: block;
    padding: 3em 1em 0;
    margin: auto;
}

/* ------------------- case apk ------------------- */

#product_box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center; 
    gap: 20px;            
    margin: 30px auto;
}

.user_card {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
}

/* ------------------- Image cadré ------------------- */

.user_card img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 15px;
    background-color: var(--text-other);
}

.user_card figcaption {
    font-weight: bold;
    color: var(--text-main);
    font-size: 1.1rem;
    text-align: center;
}

/* ------------------- Formulaire ------------------- */

form div {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input, select, textarea {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    width: 100%;
    border: 1px solid #ccc;
    background-color: var(--text-other);
}

input:focus, textarea:focus {
    outline: 2px solid var(--bg-secondary); 
    border-color: transparent;
}

button[type="submit"] {
    background-color: var(--bg-secondary); 
    color: var(--text-other);             
    padding: 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    width: 100%;
    margin-top: 10px;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #8a1915;
}

@media print {
    header, footer, button { display: none; }
    body { background: white; color: black; }
    main { box-shadow: none; border: none; width: 100%; margin: 0; padding: 0; }
    a { text-decoration: none; color: black; }
}

@media (max-width: 768px) {

  main {
    width: 95%;
    padding: 30px 15px;
  }

  .bloc_container > .bloc {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .bloc_container > .bloc img {
    width: 50%;
    margin-bottom: 10px;
  }

  section h1 {
    font-size: 1.8rem;
  }
}
