/*
Theme Name: Theme Dojo Sur Mesure (V3 whatsapp)
Author: Dimitri avec Gemini
Version: 3.0.0
Description: Thème sur mesure responsive avec fond grand écran, gris charcoal neutre (#2b2b2b), menu burger mobile et typographie Barlow Condensed.
*/

:root {
    --color-red: #b02a2a;
    --color-gray: #2b2b2b;
    --color-dark: #1a1a1a;
    --color-light: #f8f9fa;
    --font-main: 'Barlow Condensed', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--color-light);
    background-color: var(--color-dark);
    background-image: url('images/bg-dojo.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Voile d'assombrissement global pour la lisibilité */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Header Transparent */
.site-header {
    background: rgba(43, 43, 43, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(248, 249, 250, 0.12);
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title a {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-light);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.site-title a span {
    color: var(--color-red);
}

/* Menu Mobile (Checkbox Hack) */
.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}

.menu-icon span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--color-light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Navigation Desktop */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 1.8rem;
    align-items: center;
}

.main-navigation a {
    color: var(--color-light);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--color-red);
}

/* Contenu Principal */
.site-main {
    flex: 1;
    max-width: 1100px;
    width: 100%;
    margin: 2.5rem auto;
    padding: 0 1.25rem;
}

.content-card {
    background: rgba(43, 43, 43, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 8px;
    padding: 2.5rem;
    border: 1px solid rgba(248, 249, 250, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

h1 { font-size: 2.8rem; font-weight: 700; line-height: 1.1; }
h2 { font-size: 2.1rem; font-weight: 600; }
h3 { font-size: 1.6rem; font-weight: 600; }

p {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    color: var(--color-light);
}

/* Footer Transparent */
.site-footer {
    background: rgba(43, 43, 43, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(248, 249, 250, 0.12);
    padding: 1.25rem 1.5rem;
    text-align: center;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: var(--color-light);
}

/* RESPONSIVE (Tablettes & Smartphones) */
@media (max-width: 768px) {
    .menu-icon {
        display: flex;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(26, 26, 26, 0.96);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        border-bottom: 1px solid rgba(248, 249, 250, 0.1);
    }

    .main-navigation ul {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.2rem;
        align-items: flex-start;
    }

    .main-navigation a {
        font-size: 1.4rem;
        width: 100%;
        display: block;
    }

    .menu-toggle:checked ~ .main-navigation {
        max-height: 400px;
    }

    .menu-toggle:checked ~ .menu-icon span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .menu-toggle:checked ~ .menu-icon span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle:checked ~ .menu-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .site-main {
        margin: 1.5rem auto;
        padding: 0 0.85rem;
    }

    .content-card {
        padding: 1.5rem;
    }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.75rem; }
}

/* Couleur personnalisée pour le lien WhatsApp */
a.whatsapp-link {
    color: #25D366; /* Vert officiel WhatsApp (ou mets var(--color-red) / #f8f9fa selon ton goût) */
    text-decoration: none; /* Enlève le soulignement bleu par défaut */
    font-weight: 600;
    transition: color 0.3s ease;
}

/* Style au survol du curseur */
a.whatsapp-link:hover {
    color: #128C7E; /* Vert plus foncé au survol (ou une autre couleur) */
    text-decoration: underline;
}

a.whatsapp-button {
    display: inline-block;
    background-color: #25D366; /* Vert WhatsApp */
    color: #ffffff; /* Texte en blanc */
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

a.whatsapp-button:hover {
    background-color: #128C7E;
    color: #ffffff;
    transform: translateY(-2px);
}

.content-card a {
    color: var(--color-red); /* Utilise le rouge de ton thème */
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-card a:hover {
    color: var(--color-light); /* Devient blanc au survol */
    text-decoration: underline;
}

CSS

/* Pour la classe spécifique whatsapp-link */
a.whatsapp-link,
a.whatsapp-link:visited {
    color: #25D366; /* Ou var(--color-red) selon ton choix */
    text-decoration: none;
}

/* Ou si tu cibles tous les liens de tes cartes de contenu */
.content-card a,
.content-card a:visited {
    color: var(--color-red);
    text-decoration: none;
}
