/* ================================
   STYLE GÉNÉRAL - Thème Arduino
================================ */
body {
    font-family: "Segoe UI", Roboto, sans-serif;
    background-color: #0f2027; /* bleu-vert foncé type Arduino */
    background-image: linear-gradient(to bottom right, #0f2027, #203a43, #2c5364);
    color: #e0f7fa;
    margin: 0;
    padding: 0 10%;
    line-height: 1.7;
}

h1, h2, h3 {
    font-family: "Poppins", sans-serif;
    color: #00e5ff;
}

h1 {
    text-align: center;
    margin-top: 40px;
    font-size: 2.5em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #26c6da;
}

h2 {
    border-left: 6px solid #00acc1;
    padding-left: 12px;
    margin-top: 40px;
    font-size: 1.8em;
}

h3 {
    color: #4dd0e1;
    margin-top: 25px;
    font-size: 1.3em;
}

/* ================================
   PARAGRAPHES ET BLOCS
================================ */
p {
    text-align: justify;
    margin: 15px 0;
}

.introduction {
    font-style: italic;
    color: #b2ebf2;
}

.specifications, .material_use, .electronic_schema, .programming, .demonstration, .update {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 18px;
    border-left: 4px solid #00bcd4;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}

/* ================================
   LISTES
================================ */
ul, ol {
    margin-left: 30px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 8px;
}

/* Listes imbriquées spécifiques */
ul ul {
    margin-left: 20px;
}

/* ================================
   IMAGES
================================ */
img {
    display: block;
    margin: 12px auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    max-width: 60%;
}

/* Ajustement spécifique pour les LEDs */
.red_led, .green_led {
    width: 30%;
    height: auto;
    display: inline-block;
    margin: 10px;
}

.red_led { box-shadow: 0 0 10px rgba(255, 0, 0, 0.4); }
.green_led { box-shadow: 0 0 10px rgba(0, 255, 0, 0.4); }

/* ================================
   FIGURES ET LÉGENDES
================================ */
figure {
    text-align: center;
    margin: 25px 0;
}

figcaption {
    font-size: 0.95em;
    color: #b2ebf2;
    margin-top: 8px;
}

/* ================================
   COMPOSANTS
================================ */
.breadboard, .numeric_keypad, .potentiometre, .cable_male-female, .card_arduino_mega {
    width: 30%;
    height: auto;
    display: block;
    margin: 15px auto;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.3);
}

/* ================================
   VIDÉO
================================ */
video {
    display: block;
    margin: 30px auto;
    width: 30%;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.5);
}

/* ================================
   LIENS
================================ */
a {
    color: #4dd0e1;
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    color: #00e5ff;
    text-decoration: underline;
}

/* ================================
   RÉPONSIVE DESIGN
================================ */
@media (max-width: 900px) {
    body {
        padding: 0 5%;
    }
    img, video {
        max-width: 90%;
        width: auto;
    }
    .breadboard, .numeric_keypad, .potentiometre, .cable_male-female, .card_arduino_mega {
        width: 60%;
    }
}
