/*
Theme Name: Cabinet Cybersécurité
Theme URI: https://cabinetcybersecurite.fr
Author: Cabinet Cybersécurité
Author URI: https://cabinetcybersecurite.fr
Description: Thème enfant pour cabinet de cybersécurité basé sur Twenty Twenty-Five
Template: twentytwentyfive
Version: 1.0.0
License: GPL v2 or later
Text Domain: cabinet-cybersecurite
*/

/* Import des polices */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #00D4FF;
    --secondary: #0066FF;
    --dark: #0D1B2A;
    --darker: #051923;
    --accent: #00FF88;
    --text: #E0E0E0;
    --text-muted: #9CA3AF;
}

/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--darker);
    color: var(--text);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    gap: 0.7rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-start;
    flex: 1;
}

.logo a {
    text-decoration: none;
    color: inherit; /* Garde la couleur définie dans .logo */
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    -webkit-text-fill-color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
    padding: 8px 10px;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--dark) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    flex: 1;
    justify-content: flex-end;
    padding-right: 0 !important;
    margin-right: 0 !important;
    min-width: 40px;
    max-width: 40px;
}

/* On cache le sous-menu par défaut et on le positionne */
.nav-links ul.sub-menu {
    position: absolute;
    top: 100%; 
    left: 0;
    background: var(--dark); /* Utilisation de vos variables */
    border: 1px solid var(--primary);
    min-width: 220px;
    display: none; /* Cache le sous-menu */
    list-style: none;
    padding: 8px 0;
    z-index: 1000;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.nav-links ul.sub-menu li a {
    padding: 12px 20px;
    display: block;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s ease;
}

/* On arrondit aussi les survols pour qu'ils épousent le menu */
.nav-links ul.sub-menu li:first-child a {
    border-radius: 10px 10px 0 0;
}

.nav-links ul.sub-menu li:last-child a {
    border-radius: 0 0 10px 10px;
}

.nav-links ul.sub-menu li a:hover {
    background: var(--primary);
    color: var(--darker); /* On inverse les couleurs au survol */
}

/* Petite animation d'apparition */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* On affiche le sous-menu quand on survole le parent (li) */
.nav-links li {
    position: relative; /* Important pour que le sub-menu se place par rapport au li */
}

.nav-links li:hover > ul.sub-menu {
    display: block; /* Affiche le menu au survol */
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 5% 80px;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
        var(--darker);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300D4FF' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--dark);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--dark);
}

.audit-btn{
  border-radius:50px;
  padding-top:0.75rem;
  padding-right:1.5rem;
  padding-bottom:0.75rem;
  padding-left:1.5rem;
  white-space: nowrap;
}

.audit-nav{
  flex: 2;
  display: flex;
  justify-content: center;
  margin: 0 !important;
}

.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    opacity: 0.8;
}

.cyber-shield {
    width: 100%;
    height: 100%;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.shield-ring {
    position: absolute;
    border: 2px solid var(--primary);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.shield-ring:nth-child(1) {
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.shield-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    opacity: 0.5;
    animation-direction: reverse;
}

.shield-ring:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    opacity: 0.7;
}

.shield-center {
    position: absolute;
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 102, 255, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Stats */
.stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* Why Us Section */
.why-us {
    padding: 100px 5%;
    background: var(--darker);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.why-card {
    text-align: center;
    padding: 2rem;
}

.why-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 102, 255, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
    position: relative;
}

.why-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px dashed var(--primary);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
    opacity: 0.3;
}

.why-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.why-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Process Section */
.process {
    padding: 100px 5%;
    background: var(--dark);
}

.process-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 0;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: var(--dark);
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.step h3 {
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 0 1rem;
}

/* Certifications */
.certifications {
    padding: 3rem 1rem;
    background: rgba(0, 212, 255, 0.05);
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    justify-content: center;
}

.cert-content {
    width: 100%
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    text-align: center;
}

.cert-text {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 50px;
}

.cert-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    align-items: center;
}

.cert-logo {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-weight: 700;
    color: var(--text-muted);
    border: 1px solid rgba(0, 212, 255, 0.2);
    white-space: nowrap; /* Évite que les noms longs se coupent */
}

/* Testimonials */
.testimonials {
    padding: 100px 5%;
    background: var(--darker);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--dark);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
}

.testimonial-stars {
    color: #FFD700;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--dark);
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.author-info p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* CTA Section */
.cta {
    padding: 100px 5%;
    background: 
        linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 102, 255, 0.1)),
        var(--dark);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.cta-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-form input {
    padding: 1rem 1.5rem;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text);
    font-size: 1rem;
    width: 300px;
    transition: border-color 0.3s;
}

.cta-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.cta-form input::placeholder {
    color: var(--text-muted);
}

/* Contact Info */
.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
}

.contact-item i {
    color: var(--primary);
    font-size: 1.25rem;
}

/* Footer */
footer {
    background: var(--darker);
    padding: 40px 5% 20px;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    color: var(--dark);
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.footer-column ul {
    font-size: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column li {
    margin-bottom: 0.4rem;
}

.footer-column a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* On cible l'élément <ul> qui est à l'intérieur d'un <li> */
.footer-column li ul.sub-menu {
    margin-top: 0.4rem;     /* Espace sous le parent */
    margin-bottom: 0.4rem;
    margin-left: 1.25rem;    /* Le décalage vers la droite */
    border-left: 1px solid rgba(0, 212, 255, 0.2); /* Ligne fine pour le look tech */
    padding-left: 1rem;      /* Espace entre la ligne et le texte */
}

/* On peut réduire légèrement la taille des liens enfants pour la hiérarchie */
.footer-column li ul.sub-menu a {
    font-size: 0.875rem;
    opacity: 0.8;
}

.footer-column li ul.sub-menu li {
    margin-bottom: 0.3rem;   /* Sous-items un peu plus serrés */
}

/* Responsive */
@media (max-width: 1024px) {
    .menu-toggle {
        display: block; /* On affiche le bouton burger */
        margin-left: auto; 
        padding-left: 0;
    }

    .nav-links {
        display: none; /* Caché par défaut */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--dark);
        padding: 2rem;
        gap: 1rem;
        z-index: 999;
    }

    /* CETTE RÈGLE EST CRUCIALE : Elle doit être dans le bloc 1024px */
    .nav-links.active {
        display: flex !important; 
    }

    /* Style des sous-menus mobile */
    .nav-links ul.sub-menu {
        position: static;
        display: none;
        width: 100%;
        background: rgba(255, 255, 255, 0.05);
        border-left: 2px solid var(--primary);
        margin: 10px 0;
        padding-left: 15px;
    }

    .nav-links li.is-open > ul.sub-menu {
        display: block;
    }
    
    .hero-visual {
        display: none;
    }

    .hero-content {
        max-width: 100%;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    
    /* Petit indicateur visuel (flèche) */
    .nav-links li.menu-item-has-children > a::after {
        content: ' ▼';
        font-size: 0.7rem;
        vertical-align: middle;
        transition: transform 0.3s;
        display: inline-block;
        margin-left: 8px;
    }

    .nav-links li.is-open > a::after {
        transform: rotate(180deg);
    }
}

@media (max-width: 768px) {
    .navbar {
      padding: 0.5rem 5%;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        flex-direction: column;
        gap: 2rem;
    }

    .process-steps::before {
        display: none;
    }

    .cta h2 {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
    
    .cert-logos {
        gap: 1rem;
    }
    .cert-text {
        font-size: 0.8rem;
    }
    
    /* 1. On garde le parent centré pour positionner le bloc au milieu */
    .footer-column {
        text-align: center;
    }

    /* 2. On force la liste à se comporter comme un bloc compact aligné à gauche */
    .footer-column ul.footer-nav {
        display: inline-block;   /* Important : le bloc ne prend que la largeur de son texte */
        text-align: left;        /* Aligne le texte et la bordure à gauche à l'intérieur du bloc */
        margin: 0 auto;          /* Centre le bloc horizontalement */
    }

    /* 3. Ajustement du sous-menu pour qu'il suive la bordure */
    .footer-column li ul.sub-menu {
        display: block;
        margin-left: 1rem;       /* Petit décalage pour la hiérarchie */
        border-left: 1px solid rgba(0, 212, 255, 0.2);
        padding-left: 1rem;
        text-align: left;        /* Sécurité pour rester aligné à gauche */
    }
    
    /* Optionnel : ajoutez un peu d'espace entre les liens pour le tactile */
    .footer-column li {
        margin-bottom: 0.6rem;
    }
    
    .audit-btn{
      padding:0.4rem 0.8rem !important;
      font-size: 0.9rem !important;
    }
    
    .logo {
      font-size: 1.1rem !important;
    }
    
    .wpforms-form {
        flex-direction: column !important; /* Force le passage à la ligne */
        align-items: center !important; /* Prend toute la largeur */
        gap: 20px !important; /* Espace vertical entre l'input et le bouton */
    }

    .wpforms-field-container, 
    .wpforms-submit-container,
    .wpforms-field {
        width: 100% !important;
    }
    
    .wpforms-submit-container {
      justify-content: center;
    }

    .wpforms-form input[type="email"],
    .wpforms-form button[type="submit"] {
        width: 100% !important; /* Les deux font la même largeur sur mobile */
        display: block !important;
        box-sizing: border-box;
    }
}

@media (max-width: 660px) {
    .audit-btn{
      padding:0.4rem 0.4rem !important;
    }
}

/* 2. RÉTABLISSEMENT DU MODE BUREAU (Dès qu'on dépasse 1024px) */
@media (min-width: 1025px) {
    .menu-toggle {
        display: none; /* Cache le burger */
    }

    .nav-links {
        display: flex !important; /* Force l'affichage horizontal */
        position: static;
        flex-direction: row;
        background: transparent;
        padding: 0;
        gap: 2rem;
    }

    /* On s'assure que les sous-menus reprennent leur look desktop (survol) */
    .nav-links ul.sub-menu {
        display: none; /* Le JS ou le hover s'en chargera */
        position: absolute;
        /* Ajoutez ici vos styles de dropdown desktop si besoin */
    }
}

/* WordPress specific styles */
.wp-block-group {
    margin: 0;
}

.wp-block-columns {
    margin: 0;
}

.wp-block-button__link {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.wp-block-button__link.has-primary-background-color {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--dark);
}

.wp-block-button__link.has-primary-background-color:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.4);
}

* ============================================
   STYLES SPECIFIQUES AUX ARTICLES (SINGLE.PHP)
   ============================================ */

/* Conteneur principal */
.single-post .wp-block-group.alignfull {
    background: var(--darker) !important;
}

/* Métadonnées de l'article */
.post-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.post-meta .wp-block-post-date,
.post-meta .wp-block-post-terms {
    display: inline-block;
    margin: 0;
}

.post-meta p {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.post-meta i {
    color: var(--primary);
}

/* Image mise en avant */
.wp-block-post-featured-image img {
    border-radius: 20px;
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
}

/* Contenu de l'article */
.wp-block-post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text);
}

.wp-block-post-content h2,
.wp-block-post-content h3,
.wp-block-post-content h4 {
    color: var(--text);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.wp-block-post-content h2 {
    font-size: 1.75rem;
    color: var(--primary);
}

.wp-block-post-content h3 {
    font-size: 1.5rem;
}

.wp-block-post-content p {
    margin-bottom: 1.5rem;
}

.wp-block-post-content ul,
.wp-block-post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.wp-block-post-content li {
    margin-bottom: 0.5rem;
    color: var(--text);
}

.wp-block-post-content a {
    color: var(--primary);
    text-decoration: none;
}

.wp-block-post-content a:hover {
    text-decoration: underline;
}

.wp-block-post-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-muted);
}

.wp-block-post-content pre,
.wp-block-post-content code {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 5px;
    padding: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

/* Partage social */
.post-share {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.post-share h3 {
    margin-bottom: 1rem;
}

.wp-block-social-links {
    gap: 0.5rem;
}

.wp-block-social-links .wp-block-social-link a {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    transition: all 0.3s;
}

.wp-block-social-links .wp-block-social-link a:hover {
    background: var(--primary);
    color: var(--dark);
}

/* Sidebar */
.has-dark-background-color {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(0, 102, 255, 0.05)) !important;
    border: 1px solid rgba(0, 212, 255, 0.1) !important;
}

.wp-block-categories,
.wp-block-archives {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wp-block-categories li,
.wp-block-archives li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.wp-block-categories li:last-child,
.wp-block-archives li:last-child {
    border-bottom: none;
}

.wp-block-categories a,
.wp-block-archives a {
    color: var(--text);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wp-block-categories a:hover,
.wp-block-archives a:hover {
    color: var(--primary);
}

/* Articles populaires */
.wp-block-query .wp-block-group {
    gap: 1rem;
}

.wp-block-query .wp-block-post-title a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}

.wp-block-query .wp-block-post-title a:hover {
    color: var(--primary);
}

.wp-block-query .wp-block-post-date {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Articles similaires */
.related-post-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(0, 102, 255, 0.05));
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s;
}

.related-post-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.related-post-card .wp-block-post-title a {
    color: var(--text);
    text-decoration: none;
}

.related-post-card .wp-block-post-title a:hover {
    color: var(--primary);
}

.related-post-card .wp-block-post-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Newsletter dans sidebar */
.wp-block-shortcode {
    margin-top: 1rem;
}

/* Responsive pour les articles */
@media (max-width: 1024px) {
    .wp-block-columns.alignwide {
        flex-direction: column;
        gap: 3rem;
    }
    
    .wp-block-column {
        flex-basis: 100% !important;
    }
    
    .wp-block-post-title {
        font-size: 2rem !important;
    }
}

@media (max-width: 768px) {
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .post-meta span {
        display: none;
    }
    
    .wp-block-post-content {
        font-size: 1rem;
    }
}

/* ============================================
   STYLES POUR LE CONTENU DES ARTICLES
   ============================================ */

/* Article principal */
article {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(0, 102, 255, 0.05));
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
}

/* Titre de l'article */
.entry-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.entry-title span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Métadonnées */
.entry-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.entry-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.entry-meta i {
    color: var(--primary);
}

/* Image mise en avant */
.post-thumbnail {
    margin-bottom: 2.5rem;
}

.featured-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

/* Contenu de l'article */
.entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text);
}

.entry-content > * {
    margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--text);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.entry-content h2 {
    font-size: 1.75rem;
    color: var(--primary);
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
    padding-bottom: 0.5rem;
}

.entry-content h3 {
    font-size: 1.5rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
    color: var(--text);
}

.entry-content li::marker {
    color: var(--primary);
}

.entry-content a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary);
}

.entry-content a:hover {
    border-bottom: 1px solid var(--primary);
}

.entry-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-muted);
    background: rgba(0, 212, 255, 0.05);
    padding: 1.5rem 2rem;
    border-radius: 0 10px 10px 0;
}

.entry-content pre,
.entry-content code {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 5px;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    overflow-x: auto;
}

.entry-content code {
    padding: 0.2rem 0.5rem;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    overflow-x: auto;
    display: block;
}

.entry-content th,
.entry-content td {
    padding: 1rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: var(--text);
}

.entry-content th {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    font-weight: 600;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.entry-content .wp-block-image {
    margin: 2rem 0;
}

.entry-content .wp-block-gallery {
    margin: 2rem 0;
}

.entry-content .wp-block-button__link {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--dark);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.entry-content .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

/* Pagination des articles multipages */
.page-links {
    margin: 2rem 0;
    padding: 1rem;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.page-links a,
.page-links > span {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 5px;
    color: var(--text);
    text-decoration: none;
}

.page-links a:hover {
    background: var(--primary);
    color: var(--dark);
}

.page-links > span {
    background: var(--primary);
    color: var(--dark);
    font-weight: 600;
}

/* Footer de l'article */
.entry-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

/* Tags */
.post-tags {
    margin-bottom: 2rem;
}

.post-tags h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags-list a {
    background: rgba(0, 212, 255, 0.1);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s;
}

.tags-list a:hover {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
}

/* Partage social */
.post-share h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-button {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.share-button.twitter {
    background: #1DA1F2;
    color: white;
}

.share-button.linkedin {
    background: #0077B5;
    color: white;
}

.share-button.facebook {
    background: #4267B2;
    color: white;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-widget {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(0, 102, 255, 0.05));
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-widget h3 i {
    color: var(--primary);
}

/* Catégories */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.categories-list li:last-child {
    border-bottom: none;
}

.categories-list a {
    color: var(--text);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.categories-list a:hover {
    color: var(--primary);
}

.categories-list .count {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Articles récents */
.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.recent-posts-list li:last-child {
    border-bottom: none;
}

.recent-posts-list a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin-bottom: 0.25rem;
    transition: color 0.3s;
}

.recent-posts-list a:hover {
    color: var(--primary);
}

.recent-posts-list .post-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Newsletter */
.newsletter-widget p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .wp-block-columns.alignwide {
        flex-direction: column;
        gap: 3rem;
    }
    
    .wp-block-column {
        flex-basis: 100% !important;
    }
    
    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    article {
        padding: 2rem;
    }
    
    .entry-title {
        font-size: 2rem;
    }
    
    .entry-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-button {
        justify-content: center;
    }
}

/* Articles similaires */
/* Articles similaires */
.related-posts {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.related-posts h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.related-posts h2 i {
    color: var(--primary);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.related-post {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(0, 102, 255, 0.05));
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
}

.related-post:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.1);
}

.related-post-thumbnail {
    display: block;
    height: 180px;
    overflow: hidden;
}

.related-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-post:hover .related-image {
    transform: scale(1.05);
}

.related-post-content {
    padding: 1.5rem;
}

.related-post-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.related-post-title a {
    color: var(--text);
    text-decoration: none;
}

.related-post-title a:hover {
    color: var(--primary);
}

.related-post-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}

.read-more:hover {
    gap: 1rem;
}

@media (max-width: 1024px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   SINGLE POST - VERSION PROFESSIONNELLE
   ============================================ */

/* Conteneur principal */
.single-post-wrapper {
    background: var(--darker);
    color: var(--text);
}

/* Hero de l'article */
.post-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(0, 102, 255, 0.05));
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.post-hero .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Catégorie */
.post-category {
    margin-bottom: 1.5rem;
}

.category-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.category-badge:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-2px);
}

/* Titre */
.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text);
}

/* Métadonnées */
.post-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.meta-item i {
    color: var(--primary);
    font-size: 1rem;
}

/* Image mise en avant */
.featured-image-container {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.featured-image:hover {
    transform: scale(1.02);
}

.image-caption {
    text-align: center;
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

/* Section contenu */
.post-content-section {
    padding: 4rem 0;
}

.post-content-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
    align-items: start;
}

/* Contenu principal */
.main-content {
    max-width: 800px;
}

/* Introduction */
.post-intro {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.lead-text {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text);
    font-weight: 400;
}

/* Contenu de l'article */
.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text);
}

.article-content > * {
    margin-bottom: 1.5rem;
}

.article-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    color: var(--text);
}

.article-content li::marker {
    color: var(--primary);
}

.article-content a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.article-content a:hover {
    border-bottom: 1px solid var(--primary);
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text);
}

.article-content blockquote p {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.6;
}

.article-content pre,
.article-content code {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 6px;
    padding: 1rem;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
    font-size: 0.95rem;
    overflow-x: auto;
}

.article-content code {
    padding: 0.2rem 0.5rem;
    font-size: 0.9rem;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    overflow-x: auto;
    display: block;
}

.article-content th {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    font-weight: 600;
    padding: 1rem;
    text-align: left;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.article-content td {
    padding: 1rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: var(--text);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.article-content .wp-block-image {
    margin: 2rem 0;
}

.article-content .wp-block-image figcaption {
    text-align: center;
    font-style: italic;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Partage social minimal */
.social-share-minimal {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0;
    padding: 1.5rem;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.share-label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.share-icons {
    display: flex;
    gap: 0.75rem;
}

.share-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s, opacity 0.3s;
}

.share-icon:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.share-icon.twitter {
    background: #1DA1F2;
}

.share-icon.linkedin {
    background: #0077B5;
}

.share-icon.email {
    background: #666;
}

/* Tags */
.post-tags {
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.tags-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags-list a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    color: var(--text);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.tags-list a:hover {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
}

/* Auteur */
.author-box {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    margin: 3rem 0;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary);
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.author-bio {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.author-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}

.author-link:hover {
    gap: 1rem;
}

/* Sidebar */
.post-sidebar {
    position: sticky;
    top: 120px;
}

/* Table des matières */
.table-of-contents {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.toc-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

.toc-nav {
    font-size: 0.95rem;
}

.toc-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-nav li {
    margin-bottom: 0.75rem;
    padding-left: 1rem;
    position: relative;
}

.toc-nav li:before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.toc-nav a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
    line-height: 1.5;
}

.toc-nav a:hover {
    color: var(--primary);
}

/* CTA Sidebar */
.sidebar-cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--dark);
}

.cta-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.sidebar-cta h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.sidebar-cta p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--dark);
    color: var(--primary);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Articles récents */
.recent-posts {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

.recent-posts h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.recent-post {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.recent-post:last-child {
    border-bottom: none;
}

.recent-post-link {
    text-decoration: none;
    display: block;
}

.recent-post-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    transition: color 0.3s;
}

.recent-post-title:hover {
    color: var(--primary);
}

.recent-post-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Newsletter */
.post-newsletter {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 102, 255, 0.1));
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.post-newsletter .container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.newsletter-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.newsletter-content p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.privacy-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .post-sidebar {
        position: static;
    }
    
    .post-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .post-hero {
        padding: 100px 0 40px;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .social-share-minimal {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .share-icons {
        width: 100%;
        justify-content: center;
    }
}

/* Styles pour WPForms */
.wpforms-form{
  display: flex !important;
  flex-direction: row; /* Force l'alignement horizontal */
  flex-wrap: wrap;
  align-items: center; /* Aligne verticalement l'input et le bouton */
  gap: 15px; /* L'espace entre l'input et le bouton */
  width: 100%;
}


.wpforms-container {
    flex: 1; /* Prend toute la place disponible */
    margin-bottom: 0 !important; /* Force la suppression de la marge du bas */
    display: flex;
    /* align-items: center; */ /* Aligner verticalement au centre */
    flex-wrap: wrap; /* Allows items to wrap to the next line if space is insufficient */
    align-items: flex-end; /* Aligns items to the bottom of the cross axis (useful if fields have different heights) */
    gap: 1rem; /* Espace entre le champ et le bouton */
    justify-content: center;
    max-width: 800px;
}

.wpforms-field-container {
    margin-bottom: 0 !important; /* Force la suppression de la marge du bas */
    flex: 1; /* Allows the field container to grow and shrink */
    display: block !important; /* Make children of field container flex too */
}

.wpforms-field.wpforms-field-text {
    display: none !important;
}

.wpforms-container.inline-newsletter .wpforms-field {
    padding: 0 !important;
    margin: 0 !important;
}

.wpforms-submit-container {
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important; /* Empêche le bouton de vouloir prendre 100% */
}

.wpforms-form input[type="email"],
.wpforms-form input[type="text"] {
    padding: 12px 15px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 0 !important;
    transition: border-color 0.3s;
    min-width: 180px;
    white-space: nowrap;
}

.wpforms-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.wpforms-form button[type="submit"],
.wpforms-form input[type="submit"] {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--dark);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    width: max-content !important;
    white-space: nowrap;
}

.wpforms-form button[type="submit"]:hover,
.wpforms-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.wpforms-confirmation-container {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--primary);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
}

.wpforms-confirmation-container p {
    color: var(--text);
    margin: 0;
}

/* Message d'erreur */
.form-error-message {
    background: rgba(255, 100, 100, 0.1);
    border: 1px solid #ff6464;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.form-error-message i {
    color: #ff6464;
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: block;
}

.form-error-message a {
    color: var(--primary);
    text-decoration: none;
}

.form-error-message a:hover {
    text-decoration: underline;
}

#backToTop {
    display: none; 
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999; /* On assure qu'il est tout au-dessus */
    border: none;
    outline: none;
    
    /* Utilisation de vos variables */
    background: var(--primary);
    color: var(--darker); /* Texte sombre sur fond clair pour le contraste */
    
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 12px; /* Un peu moins arrondi pour un look moderne */
    font-size: 18px;
    transition: all 0.3s ease;
    
    /* Petit effet néon */
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    
    /* Centrage de l'icône */
    display: flex;
    align-items: center;
    justify-content: center;
}

#backToTop:hover {
    background: var(--accent); /* Change vers le vert fluo au survol */
    transform: translateY(-5px); /* Petit saut vers le haut */
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
}

/* Adaptation mobile discrète */
@media (max-width: 768px) {
    #backToTop {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        opacity: 0.8;
    }
}

.contact-info{
  padding-top: 15px;
}