/* ==========================================================================
   ASTROPHOT CONTROL - Styles spécifiques
   Complément au système CSS modulaire Ecophot
   ========================================================================== */

/* ===============================================
   SECTION HERO
   =============================================== */
.astro-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.astro-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.astro-icon-symbol {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 0.5rem;
    opacity: 0.3;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
}

.astro-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.astro-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.astro-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
    opacity: 0.85;
}

.astro-features-highlight {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.feature-quick {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
}



.astro-cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-astro-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-astro-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-astro-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-astro-outline:hover {
    background: #fff;
    color: #1a1a2e;
}

/* ===============================================
   SECTION PROLOGUE
   =============================================== */
.astro-prologue {
    background-color: var(--astro-white);
}

.astro-prologue .container {
    max-width: 900px;
}

.prologue-content {
    padding: 1rem 0;
}

.prologue-text {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.prologue-intro {
    font-size: var(--font-size-2xl);
    font-weight: 500;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.prologue-text h3 {
    color: var(--astro-blue);
    font-size: 1.6rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.prologue-text h4 {
    color: var(--astro-blue);
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.prologue-text p {
    margin-bottom: 1.5rem;
}

.prologue-text strong {
    font-weight: 700;
    color: var(--astro-blue);
}

/* Cartes individuelles du prologue */
.astro-feature-card + .astro-feature-card {
    margin-top: 2.5rem;
}

.astro-feature-card .card-content h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--astro-blue);
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.3;
}

.astro-feature-card .card-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.4;
}

.astro-feature-card .card-content h4:first-of-type {
    margin-top: 1.5rem;
}

/* Paragraphes dans les cartes */
.astro-feature-card .card-content p {
    margin: 1rem 0;
    line-height: 1.8;
}

.astro-feature-card .card-content p + p {
    margin-top: 1rem;
}

/* Premier paragraphe après H3 ou H4 */
.astro-feature-card .card-content h3 + p,
.astro-feature-card .card-content h4 + p {
    margin-top: 0;
}

/* CORRECTION : Strong visible dans les cartes */
.astro-feature-card .card-content strong {
    color: var(--astro-blue);
    font-weight: 600;
}

/* Liens dans les cartes */
.astro-feature-card .card-content a {
    color: var(--secondary);
    text-decoration: underline;
}

.astro-feature-card .card-content a:hover {
    color: var(--astro-blue);
}

/* Code inline dans les cartes */
.astro-feature-card .card-content code {
    background-color: #f8f9fa;
    color: #333;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

/* Listes dans le prologue */
.equipment-list,
.connection-list,
.integration-list,
.power-supply-mods,
.power-distribution-features,
.power-switching-issues,
.mosfet-advantages,
.final-optimization,
.heating-evolution,
.diy-heating-principle,
.thermal-improvements,
.diy-advantages,
.dew-problems,
.weather-monitoring,
.mirror-heating-system,
.thermal-regulation,
.thermal-inertia,
.box-humidity-problems,
.dehumidification-system,
.bjt-circuit,
.mosfet-upgrade,
.focusing-problems,
.diy-focuser-parts,
.drv8871-features,
.indi-integration,
.focuser-results,
.sct-requirements,
.stepper-driver,
.thermal-monitoring,
.thermal-actions,
.voltage-current-monitoring,
.ads1115-specs,
.predictive-monitoring,
.monitoring-architecture,
.pcb-specs {
    margin: 1.5rem 0 1.5rem 1.5rem;
    padding-left: 1rem;
}

.equipment-list li,
.integration-list li,
.power-supply-mods li,
.power-distribution-features li,
.power-switching-issues li,
.mosfet-advantages li,
.final-optimization li,
.heating-evolution li,
.diy-heating-principle li,
.thermal-improvements li,
.diy-advantages li,
.dew-problems li,
.weather-monitoring li,
.mirror-heating-system li,
.thermal-regulation li,
.thermal-inertia li,
.box-humidity-problems li,
.dehumidification-system li,
.bjt-circuit li,
.mosfet-upgrade li,
.focusing-problems li,
.diy-focuser-parts li,
.drv8871-features li,
.indi-integration li,
.focuser-results li,
.sct-requirements li,
.stepper-driver li,
.thermal-monitoring li,
.thermal-actions li,
.voltage-current-monitoring li,
.ads1115-specs li,
.predictive-monitoring li,
.monitoring-architecture li,
.pcb-specs li {
    margin: 0.75rem 0;
    line-height: 1.7;
    list-style-type: disc;
}

/* Listes imbriquées */
.diy-heating-principle ul,
.weather-monitoring ul,
.mirror-heating-system ul,
.thermal-regulation ul,
.dehumidification-system ul,
.indi-integration ul,
.predictive-monitoring ul,
.monitoring-architecture ul {
    margin-left: 2rem;
    margin-top: 0.5rem;
}

.diy-heating-principle ul li,
.weather-monitoring ul li,
.mirror-heating-system ul li,
.thermal-regulation ul li,
.dehumidification-system ul li,
.indi-integration ul li,
.predictive-monitoring ul li,
.monitoring-architecture ul li {
    list-style-type: circle;
    font-size: 0.95rem;
}

.pcb-specs ul {
    margin-left: 2rem;
    margin-top: 0.5rem;
}

.pcb-specs ul li {
    list-style-type: circle;
    font-size: 0.95rem;
}

/* Liste numérotée pour les connexions */
.connection-list {
    counter-reset: item;
    list-style-type: none;
    padding-left: 0;
    margin-left: 2rem;
}

.connection-list li {
    counter-increment: item;
    position: relative;
    margin: 0.75rem 0;
    line-height: 1.7;
    padding-left: 2rem;
}

.connection-list li::before {
    content: counter(item) ". ";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--astro-blue);
}

/* Encarts de mise en évidence */
.prologue-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;

}

.highlight-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--astro-blue);
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.highlight-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.highlight-card h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.highlight-card p {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ===============================================
   SECTION SYNOPTIQUE
   =============================================== */

.diagram-image-wrapper {
    margin: 2rem 0;
}

.diagram-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    text-align: center;
    color: #555;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.diagram-full-image {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
}

.synoptique-img {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.synoptique-img:hover {
    transform: scale(1.01);
}

.diagram-caption {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    text-align: center;
    font-style: italic;
}

.diagram-caption strong {
    font-weight: 700;
    color: #333;
    font-style: normal;
}

/* Légende du synoptique */
.diagram-legend {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.diagram-legend h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #333;
    font-weight: 700;
    text-align: center;
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.legend-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.legend-line {
    display: block;
    width: 45px;
    height: 3px;
    border-radius: 2px;
    flex-shrink: 0;
}

.legend-item span:last-child {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

/* Couleurs des liaisons */
.legend-line.thermal { 
    background: #FF69B4; 
    border: 1px dotted #FF1493; 
    height: 2px;
}
.legend-line.power-12v { background: #0000FF; }
.legend-line.power-5v { background: #4169E1; }
.legend-line.power-3v3-digital { background: #87CEEB; }
.legend-line.power-3v3-analog { background: #B0C4DE; }
.legend-line.tor { border: 2px dashed #FF0000; background: transparent; }
.legend-line.i2c { border: 2px dashed #FF0000; background: transparent; }
.legend-line.onewire { border: 2px dashed #FF00FF; background: transparent; }
.legend-line.usb { border: 2px dotted #000000; background: transparent; }

/* ===============================================
   FONCTIONNALITÉS
   =============================================== */
.astro-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.astro-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.astro-feature-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.astro-feature-card ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.astro-feature-card ul li {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
    position: relative;
    color: #666;
    line-height: 1.6;
}

.astro-feature-card ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--astro-blue);
    font-weight: 700;
}

/* ===============================================
   VUE ÉCLATÉE
   =============================================== */
.exploded-view-container {
    margin-top: 3rem;
}

.exploded-view-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: center;
}

.exploded-view-item.reverse {
    direction: rtl;
}

.exploded-view-item.reverse > * {
    direction: ltr;
}

.exploded-view-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.exploded-view-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #333;
}

.exploded-view-info p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.exploded-parts-list {
    list-style-type: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.exploded-parts-list li {
    padding-left: 2rem;
    margin: 0.75rem 0;
    position: relative;
    color: #666;
    line-height: 1.6;
}

.exploded-parts-list li::before {
    content: '●';
    position: absolute;
    left: 0.5rem;
    color: var(--astro-blue);
    font-size: 1.2rem;
}

/* ===============================================
   APPLICATIONS
   =============================================== */
.astro-applications {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

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

/* ===============================================
   COMPATIBILITÉ
   =============================================== */

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

.compatibility-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.compatibility-logo {
    margin-bottom: 1.5rem;
}

.logo-placeholder {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--astro-blue) 0%, var(--astro-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.compatibility-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: #333;
}

.compatibility-info p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ===============================================
   CTA FINALE
   =============================================== */
.astro-cta {
    background: linear-gradient(135deg, var(--astro-blue) 0%, var(--astro-dark) 100%);
    color: #fff;
    text-align: center;
}

.astro-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.astro-cta p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    opacity: 0.9;
}

/* ===============================================
   RESPONSIVE
   =============================================== */
@media (max-width: 768px) {
    .astro-title { font-size: 2rem; }
    .astro-subtitle { font-size: 1.2rem; }
    .astro-features-highlight { flex-direction: column; align-items: center; }
    .section-title { font-size: 2rem; }
    .prologue-text h3 { font-size: 1.4rem; }
    .prologue-highlights { grid-template-columns: 1fr; }
    .legend-grid { grid-template-columns: 1fr; }
    .astro-features { grid-template-columns: 1fr; }
    .exploded-view-item { grid-template-columns: 1fr; gap: 2rem; }
    .exploded-view-item.reverse { direction: ltr; }
    .app-grid { grid-template-columns: 1fr; }
    .compatibility-grid { grid-template-columns: 1fr; }
    .diagram-full-image { padding: 1rem; }
    .diagram-legend { padding: 1.5rem; }
}

@media (max-width: 480px) {
    .astro-hero { padding: 3rem 0; }
    .astro-title { font-size: 1.5rem; }
    .btn { padding: 0.75rem 1.5rem; font-size: 1rem; }
}