.elementor-16713 .elementor-element.elementor-element-571edd6{margin:50px 0px calc(var(--kit-widget-spacing, 0px) + 50px) 0px;}/* Start custom CSS for shortcode, class: .elementor-element-bae3dc0 *//* --- 1. SEARCH BAR MODERNE (Pilule à bordure dégradée) --- */
.ms-search-form { 
    position: relative; 
    max-width: 800px; 
    margin: 0 auto 50px auto; 
    display: flex;
    align-items: center;
    
    /* La bordure transparente + Forme pilule */
    border: 2px solid transparent; 
    border-radius: 50px; 
    
    /* L'astuce du fond blanc + bordure dégradée */
    background: 
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, var(--BLEU, #406CB4), var(--ROUGE, #BC4642)) border-box;
        
    /* Ombre douce */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

/* Effet d'interaction quand on clique ou survole la barre */
.ms-search-form:focus-within, .ms-search-form:hover {
    box-shadow: 0 6px 20px rgba(64, 108, 180, 0.15); 
    transform: translateY(-1px);
}

.ms-input { 
    width: 100%; 
    height: 55px; 
    padding: 0 60px 0 25px; /* Laisse de la place à droite pour la loupe */
    border-radius: 50px; 
    border: none !important; /* Retire les bordures natives */
    background: transparent !important;
    font-size: 16px; 
    color: var(--GRIS-TEXTE, #475569);
    outline: none !important; 
    box-sizing: border-box; 
}

.ms-input::placeholder {
    color: #94a3b8;
}

/* --- RESET COMPLET ET STYLE POUR LE BOUTON LOUPE --- */
.ms-search-btn { 
    position: absolute !important; 
    right: 15px !important; 
    top: 50% !important; 
    transform: translateY(-50%) !important; 
    
    /* L'arme anti-reset.css (Désactive le style natif du thème) */
    appearance: none !important;
    -webkit-appearance: none !important;
    background: transparent !important; 
    border: none !important; 
    box-shadow: none !important;
    margin: 0 !important;
    outline: none !important;
    
    /* Notre style */
    cursor: pointer !important; 
    color: var(--BLEU, #406CB4) !important; 
    padding: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
}

/* Reset strict de l'icône SVG pour empêcher le thème de la colorier en noir ou de la déformer */
.ms-search-btn svg {
    width: 20px !important;
    height: 20px !important;
    fill: none !important;
    stroke: currentColor !important; /* Force le SVG à prendre la couleur "color" du bouton */
    stroke-width: 2.5 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

/* Sécurité supplémentaire pour les tracés à l'intérieur du SVG */
.ms-search-btn svg circle,
.ms-search-btn svg line {
    stroke: currentColor !important;
    fill: none !important;
}

/* Animation au survol */
.ms-search-btn:hover { 
    color: var(--ROUGE, #BC4642) !important; 
    transform: translateY(-50%) scale(1.1) !important; 
}


/* --- ZONE DES TAGS --- */
.ms-tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.ms-tag {
    padding: 6px 16px;
    background: #fff;
    color: var(--BLEU, #406CB4) ;
    text-decoration: none !important ;
    border-radius: 20px;
    font-size: 16px !important;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--BLEU, #406CB4);
}

.ms-tag:hover {
       background: linear-gradient(135deg, var(--BLEU, #406CB4), var(--ROUGE, #BC4642));
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(64, 108, 180, 0.2);
}

.ms-tag.active {
    background: linear-gradient(135deg, var(--BLEU, #406CB4), var(--ROUGE, #BC4642));
    color: #fff;
    box-shadow: 0 4px 12px rgba(64, 108, 180, 0.2);
}


/* --- 2. GRILLE 2 COLONNES --- */
.ms-grid-news { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px; 
}


/* --- 3. CARTE HORIZONTALE --- */
/* --- CARTE AVEC EFFETS DE SURVOL --- */
.ms-post-card { 
    display: flex; 
    flex-direction: row; 
    background: #fff; 
    border-radius: 16px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.06); 
    overflow: hidden; 
    /* Transition fluide pour le mouvement de la carte */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease; 
}

/* 1. Mouvement de la carte vers le haut */
.ms-post-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 30px rgba(0,0,0,0.12); /* Ombre plus profonde au survol */
}

/* Container de l'image (overflow: hidden est crucial ici pour couper l'image qui zoome) */
.ms-post-img { 
    width: 40%; 
    flex-shrink: 0; 
    overflow: hidden; /* Cache le débordement du zoom */
}

/* 2. Mouvement (zoom) sur la photo */
.ms-post-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    object-position: left center;
    display: block; 
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ms-post-card:hover .ms-post-img img { 
    transform: scale(1.08); /* Zoom léger de 8% */
}

.ms-post-body { 
    padding: 25px; 
    width: 60%; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}

.ms-post-date { 
    font-size: 11px; 
    color: var(--ROUGE, #BC4642); 
    font-weight: 700; 
    margin-bottom: 10px; 
    text-transform: uppercase; 
}

.ms-post-body h3 { 
    margin: 0 0 10px 0; 
    font-size: 19px; 
    line-height: 1.4; 
}

/* Le titre devient le porteur du dégradé */
.ms-post-body h3 a { 
    text-decoration: none; 
    font-size: 20px; 
    background: linear-gradient(135deg, var(--BLEU, #406CB4), var(--ROUGE, #BC4642));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: opacity 0.3s ease; 
}

.ms-post-body h3 a:hover {
    opacity: 0.8; /* Légère atténuation au survol pour montrer que c'est cliquable */
}

.ms-post-body p { font-size: 14px; color: #64748b; margin: 0; line-height: 1.6; }


/* --- 4. PAGINATION (OPTIMISÉE ET ÉLÉGANTE) --- */
.ms-nav { 
    margin-top: 40px; text-align: center; display: flex; justify-content: center; gap: 5px; 
}

.ms-nav a, .ms-nav span { 
    padding: 8px 14px; /* Padding réduit pour plus de finesse */
    border: 1px solid #e2e8f0; 
    text-decoration: none; 
    border-radius: 6px; 
    font-size: 14px; /* Police plus petite */
    font-weight: 600; 
    color: #475569;
    transition: all 0.2s ease;
}

.ms-nav .current { 
    background: var(--BLEU, #406CB4); color: #fff; border-color: var(--BLEU, #406CB4); 
}

.ms-nav a:hover { background: #f1f5f9; color: var(--BLEU, #406CB4); }

/* =========================================
   ADAPTATION RECHERCHE & ACTUALITÉS (DARK)
   ========================================= */

/* 1. La barre de recherche (Inversion du fond blanc) */
body.ms-dark-mode .ms-search-form {
    background: 
        linear-gradient(var(--FOND_BLANC), var(--FOND_BLANC)) padding-box,
        linear-gradient(135deg, var(--BLEU, #406CB4), var(--ROUGE, #BC4642)) border-box !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
}

body.ms-dark-mode .ms-input {
    color: #ffffff !important;
}

/* 2. Les Tags (Passage en gris relief) */
body.ms-dark-mode .ms-tag {
    background: #2d2d2d !important;
    color: #ffffff !important;
    border-color: #475569 !important;
}

/* --- L'état ACTIF du bouton en mode sombre --- */
body.ms-dark-mode .ms-tag.active {
    background: var(--BLEU, #406CB4) !important;
    color: #ffffff !important;
    border-color: var(--BLEU, #406CB4) !important;
    box-shadow: 0 4px 12px rgba(64, 108, 180, 0.4) !important; /* Petite lueur bleue */
}

/* Optionnel : L'effet au survol des autres boutons en mode sombre */
body.ms-dark-mode .ms-tag:not(.active):hover {
    background: #3d3d3d !important;
    border-color: #64748b !important;
}

/* 3. Les Cartes d'Actualités */
body.ms-dark-mode .ms-post-card {
    background: #2d2d2d !important; /* Gris carte MegaSoft */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

body.ms-dark-mode .ms-post-body p {
    color: #cbd5e1 !important; /* Gris clair pour la lecture */
}

/* 4. La Pagination */
body.ms-dark-mode .ms-nav a, 
body.ms-dark-mode .ms-nav span {
    background: #2d2d2d !important;
    color: #ffffff !important;
    border-color: #3d3d3d !important;
}

body.ms-dark-mode .ms-nav a:hover {
    background: #3d3d3d !important;
    border-color: var(--BLEU) !important;
}



/* --- 5. RESPONSIVE --- */
@media (max-width: 900px) { 
    .ms-grid-news { grid-template-columns: 1fr; }
    .ms-post-card { flex-direction: column; }
    .ms-post-img { width: 100%; height: 220px; }
    .ms-post-body { width: 100%; padding: 20px; }
}/* End custom CSS */