/*
Theme Name: L&E Exclusive Garage - Alerte
Theme URI: https://leexclusivegarage.fr
Description: Child theme alerte fraude pour L&E Exclusive Garage
Author: L&E Exclusive Garage
Template: twentytwentyfive
Version: 1.0
Text Domain: legarage-alert
*/

/* ============================
   GLOBAL
   ============================ */

body {
    background-color: #1A0A0A;
    color: #F5F0F0;
}

a:where(:not(.wp-element-button)) {
    color: #DC2626;
}

a:where(:not(.wp-element-button)):hover {
    color: #FBBF24;
}

/* ============================
   HEADER - Bandeau rouge
   ============================ */

.site-header {
    background-color: #DC2626;
    padding: 1.5rem 2rem;
    text-align: center;
    border-bottom: 4px solid #991B1B;
}

.site-header .wp-block-site-title {
    writing-mode: horizontal-tb !important;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #FFFFFF;
    margin: 0;
}

.site-header .wp-block-site-title a {
    color: #FFFFFF;
    text-decoration: none;
}

/* Bandeau alerte animé sous le header */
.alert-banner {
    background: repeating-linear-gradient(
        -45deg,
        #991B1B,
        #991B1B 10px,
        #7F1D1D 10px,
        #7F1D1D 20px
    );
    color: #FBBF24;
    text-align: center;
    padding: 0.75rem 1rem;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ============================
   CONTENU PRINCIPAL
   ============================ */

main.wp-block-group {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Titre principal H1 */
h1.wp-block-heading,
h1.wp-block-post-title {
    color: #FFFFFF;
    font-weight: 700;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.2;
    border-bottom: 3px solid #DC2626;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

/* Paragraphes */
p {
    color: #D4D0D0;
    line-height: 1.7;
}

strong {
    color: #F5F0F0;
}

/* ============================
   SECTIONS H2 — Bordures colorées
   ============================ */

h2.wp-block-heading {
    font-weight: 600;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-left: 5px solid #DC2626;
    background-color: #2D1515;
    border-radius: 0 6px 6px 0;
    color: #FFFFFF;
}

/* Section "site frauduleux" — rouge */
/* Déjà rouge par défaut */

/* Section "sites officiels" — vert */
h2.wp-block-heading:has(+ ul li:first-child strong:is([class*=""], :not([class]))) {
    /* Fallback: on cible par emoji dans le contenu */
}

/* ============================
   LISTES
   ============================ */

ul.wp-block-list {
    padding-left: 0;
    list-style: none;
}

ul.wp-block-list li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.75rem;
    margin-top: 0.25rem;
    color: #D4D0D0;
    border-bottom: 1px solid rgba(220, 38, 38, 0.15);
}

ul.wp-block-list li:last-child {
    border-bottom: none;
}

ul.wp-block-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 8px;
    height: 8px;
    background-color: #DC2626;
    border-radius: 50%;
}

/* ============================
   SECTION CONTACT — Card
   ============================ */

/* Style les paragraphes contenant les infos de contact */
p:has(strong:first-child) + p:has(strong) {
    background-color: #2D1515;
    border: 1px solid #DC2626;
    border-radius: 8px;
    padding: 1.25rem;
}

/* ============================
   FOOTER
   ============================ */

.site-footer {
    background-color: #0D0505;
    border-top: 3px solid #DC2626;
    padding: 2rem;
    text-align: center;
    color: #9CA3AF;
    font-size: 0.875rem;
    margin-top: 3rem;
}

.site-footer p {
    color: #9CA3AF;
    margin: 0.25rem 0;
}

.site-footer strong {
    color: #DC2626;
}

/* ============================
   EMOJI OVERRIDES — Couleurs dans les titres
   ============================ */

/* Rendre les emojis plus visibles sur fond sombre */
h1.wp-block-heading,
h2.wp-block-heading {
    text-shadow: none;
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 600px) {
    main.wp-block-group {
        padding: 1rem;
    }

    h1.wp-block-heading {
        font-size: 1.5rem;
    }

    h2.wp-block-heading {
        font-size: 1.15rem;
        padding: 0.5rem 0.75rem;
    }

    .site-header {
        padding: 1rem;
    }
}

/* ============================
   SCROLLBAR & SELECTION
   ============================ */

::selection {
    background-color: #DC2626;
    color: #FFFFFF;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1A0A0A;
}

::-webkit-scrollbar-thumb {
    background: #DC2626;
    border-radius: 4px;
}
