/*!
 * NS Portfolio, styles hérités du « CSS additionnel » de WordPress (repris tels quels le 2 novembre 2026).
 * Chargés AVANT ns-portfolio.css et ns-design.css, qui les surchargent.
 * Après installation, le CSS additionnel de WordPress peut être vidé.
 */


/* ═══════════════════════════════════════════════════════════════
   FONTS LOCALES - CONFIGURATION COMPLÈTE
   ═══════════════════════════════════════════════════════════════ */

/* ────────────────────────────────────────────────────────────────
   POPPINS (Font principale)
   ──────────────────────────────────────────────────────────────── */

/* Poppins Light (300) */
@font-face {
    font-family: 'Poppins';
    src: url('/wp-content/uploads/fonts/poppins/poppins-v24-latin-300.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Poppins Light Italic (300) */
@font-face {
    font-family: 'Poppins';
    src: url('/wp-content/uploads/fonts/poppins/poppins-v24-latin-300italic.woff2') format('woff2');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

/* Poppins Regular (400) */
@font-face {
    font-family: 'Poppins';
    src: url('/wp-content/uploads/fonts/poppins/poppins-v24-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Poppins Regular Italic (400) */
@font-face {
    font-family: 'Poppins';
    src: url('/wp-content/uploads/fonts/poppins/poppins-v24-latin-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* Poppins Medium (500) */
@font-face {
    font-family: 'Poppins';
    src: url('/wp-content/uploads/fonts/poppins/poppins-v24-latin-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Poppins Medium Italic (500) */
@font-face {
    font-family: 'Poppins';
    src: url('/wp-content/uploads/fonts/poppins/poppins-v24-latin-500italic.woff2') format('woff2');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

/* Poppins SemiBold (600) */
@font-face {
    font-family: 'Poppins';
    src: url('/wp-content/uploads/fonts/poppins/poppins-v24-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Poppins SemiBold Italic (600) */
@font-face {
    font-family: 'Poppins';
    src: url('/wp-content/uploads/fonts/poppins/poppins-v24-latin-600italic.woff2') format('woff2');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

/* Poppins Bold (700) */
@font-face {
    font-family: 'Poppins';
    src: url('/wp-content/uploads/fonts/poppins/poppins-v24-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Poppins Bold Italic (700) */
@font-face {
    font-family: 'Poppins';
    src: url('/wp-content/uploads/fonts/poppins/poppins-v24-latin-700italic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* Poppins ExtraBold (800) */
@font-face {
    font-family: 'Poppins';
    src: url('/wp-content/uploads/fonts/poppins/poppins-v24-latin-800.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* Poppins ExtraBold Italic (800) */
@font-face {
    font-family: 'Poppins';
    src: url('/wp-content/uploads/fonts/poppins/poppins-v24-latin-800italic.woff2') format('woff2');
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}

/* Poppins Black (900) */
@font-face {
    font-family: 'Poppins';
    src: url('/wp-content/uploads/fonts/poppins/poppins-v24-latin-900.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Poppins Black Italic (900) */
@font-face {
    font-family: 'Poppins';
    src: url('/wp-content/uploads/fonts/poppins/poppins-v24-latin-900italic.woff2') format('woff2');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

/* ────────────────────────────────────────────────────────────────
   COURIER PRIME (Font code/monospace)
   ──────────────────────────────────────────────────────────────── */

/* Courier Prime Regular (400) */
@font-face {
    font-family: 'Courier Prime';
    src: url('/wp-content/uploads/fonts/courier-prime/courier-prime-v11-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Courier Prime Italic (400) */
@font-face {
    font-family: 'Courier Prime';
    src: url('/wp-content/uploads/fonts/courier-prime/courier-prime-v11-latin-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* Courier Prime Bold (700) */
@font-face {
    font-family: 'Courier Prime';
    src: url('/wp-content/uploads/fonts/courier-prime/courier-prime-v11-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Courier Prime Bold Italic (700) */
@font-face {
    font-family: 'Courier Prime';
    src: url('/wp-content/uploads/fonts/courier-prime/courier-prime-v11-latin-700italic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* ═════ MENU RESPONSIVE ═════ */

/* Menu horizontal (600px et plus) */
@media (min-width: 600px) {
    .art-horizontal-menu {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 99999 !important;
        background: #20202a !important;
        height: 70px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 2px 15px rgba(0,0,0,0.3) !important;
        padding: 0 clamp(1rem, 3vw, 3rem) !important;
        overflow: visible !important;
    }
    
    .art-horizontal-menu nav {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 1rem !important;
    }
    
    /* Logo adaptatif */
    .art-brand {
        flex-shrink: 0 !important;
        order: -1 !important;
        margin-right: auto !important;
    }
    
    .art-brand img {
        max-width: clamp(80px, 8vw, 120px) !important;
        height: auto !important;
    }
    
    /* Menu avec nowrap par défaut */
    .horizontal-menu-list {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        gap: clamp(0.4rem, 0.8vw, 0.8rem) !important;
        flex: 0 1 auto !important;
        overflow: visible !important;
    }
    
    .horizontal-menu-list > li {
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        position: relative !important;
        flex-shrink: 0 !important;
    }
    
    /* Taille texte adaptative */
    .horizontal-menu-list > li > a {
        color: #fff !important;
        text-decoration: none !important;
        font-size: clamp(0.65rem, 1vw, 0.85rem) !important;
        transition: all 0.3s ease !important;
        padding: 0.5rem clamp(0.4rem, 0.8vw, 0.85rem) !important;
        display: block !important;
        white-space: nowrap !important;
        cursor: pointer !important;
        border-radius: 4px !important;
        pointer-events: auto !important;
        position: relative !important;
        z-index: 100000 !important;
    }
    
    .horizontal-menu-list > li > a:hover {
        color: #FFD700 !important;
        background: rgba(255, 215, 0, 0.1) !important;
    }
    
    /* Sous-menus niveau 1 */
    .horizontal-menu-list .sub-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        background: #20202a !important;
        padding: 0.5rem 0 !important;
        display: none !important;
        flex-direction: column !important;
        min-width: 220px !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3) !important;
        list-style: none !important;
        margin: 0 !important;
        z-index: 999998 !important;
        border-radius: 8px !important;
    }
    
    .horizontal-menu-list .sub-menu li {
        margin: 0 !important;
        padding: 0 !important;
        position: relative !important;
    }
    
    .horizontal-menu-list .sub-menu a {
        padding: 10px 20px !important;
        color: #fff !important;
        font-size: 13px !important;
        white-space: nowrap !important;
        display: block !important;
    }
    
    .horizontal-menu-list .sub-menu a:hover {
        background: rgba(255, 215, 0, 0.1) !important;
        color: #FFD700 !important;
    }
    
    .horizontal-menu-list > li:hover .sub-menu,
    .horizontal-menu-list > li .sub-menu:hover {
        display: flex !important;
    }
    
    /* Sous-menus niveau 2 */
    .horizontal-menu-list .sub-menu .sub-menu {
        position: absolute !important;
        left: 95% !important;
        top: 0 !important;
        background: #20202a !important;
        padding: 0.5rem 0 !important;
        display: none !important;
        flex-direction: column !important;
        min-width: 220px !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3) !important;
        margin: 0 !important;
        margin-left: 5px !important;
        z-index: 999997 !important;
        border-radius: 8px !important;
    }
    
    .horizontal-menu-list .sub-menu li:hover > .sub-menu {
        display: flex !important;
    }
    
    .horizontal-menu-list .sub-menu .sub-menu a {
        padding: 10px 20px !important;
        color: #fff !important;
        font-size: 13px !important;
    }
    
    .horizontal-menu-list .sub-menu .sub-menu a:hover {
        background: rgba(255, 215, 0, 0.1) !important;
        color: #FFD700 !important;
    }
    
    /* Toggle light/dark */
    .theme-switch-wrapper {
        display: flex !important;
        align-items: center !important;
        flex-shrink: 0 !important;
        order: 999 !important;
        margin-left: 1rem !important;
    }
    
    .theme-switch {
        position: relative !important;
        display: inline-block !important;
        width: clamp(40px, 3.5vw, 50px) !important;
        height: clamp(20px, 1.8vw, 24px) !important;
    }
    
    .theme-switch input {
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        position: absolute !important;
    }
    
    .slider {
        position: absolute !important;
        cursor: pointer !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background-color: rgba(255, 255, 255, 0.15) !important;
        transition: all 0.3s ease !important;
        border-radius: 24px !important;
    }
    
    .slider:before {
        position: absolute !important;
        content: "🌙" !important;
        height: clamp(16px, 1.5vw, 18px) !important;
        width: clamp(16px, 1.5vw, 18px) !important;
        left: 3px !important;
        bottom: 3px !important;
        background-color: #ffffff !important;
        transition: all 0.3s ease !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: clamp(8px, 0.8vw, 10px) !important;
        line-height: 1 !important;
    }
    
    input:checked + .slider {
        background-color: #ffc107 !important;
    }
    
    input:checked + .slider:before {
        transform: translateX(clamp(20px, 1.8vw, 26px)) !important;
        content: "☀️" !important;
    }
    
    .slider:hover {
        background-color: rgba(255, 255, 255, 0.25) !important;
    }
    
    input:checked + .slider:hover {
        background-color: #ffcd38 !important;
    }
    
    /* Z-index et pointer events */
    .art-horizontal-menu,
    .art-horizontal-menu *,
    .horizontal-menu-list,
    .horizontal-menu-list * {
        pointer-events: auto !important;
    }
    
    .art-top-bg,
    .art-curtain,
    .art-scroll-frame {
        z-index: 0 !important;
        pointer-events: none !important;
    }
    
    .art-scroll-frame * {
        pointer-events: auto !important;
    }
    
    /* Cacher menu burger */
    .art-menu-bar-btn,
    .art-mobile-top-bar,
    .art-menu-bar,
    .art-menu-bar-fix {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
    }
    
    .art-app-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    .art-app-container {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    .art-content {
        position: relative !important;
        z-index: 1 !important;
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    .art-info-bar-frame {
        z-index: 999 !important;
    }
    
    body {
        padding-top: 70px !important;
    }
}

/* Zone de transition 1000-1200px - Autoriser wrap si serré */
@media (min-width: 1000px) and (max-width: 1200px) {
    .art-horizontal-menu {
        height: auto !important;
        min-height: 70px !important;
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    
    .horizontal-menu-list {
        flex-wrap: wrap !important;
        row-gap: 0.5rem !important;
    }
    
    .horizontal-menu-list > li > a {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.6rem !important;
    }
    
    body {
        padding-top: 80px !important;
    }
}

/* Tablette (600-999px) - Wrap autorisé */
@media (min-width: 600px) and (max-width: 999px) {
    .art-horizontal-menu {
        height: auto !important;
        min-height: 70px !important;
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    
    .horizontal-menu-list {
        flex-wrap: wrap !important;
        row-gap: 0.5rem !important;
    }
    
    .horizontal-menu-list > li > a {
        font-size: 0.7rem !important;
        padding: 0.4rem 0.5rem !important;
    }
    
    .art-brand img {
        max-width: 80px !important;
    }
    
    .theme-switch {
        width: 40px !important;
        height: 20px !important;
    }
    
    .slider:before {
        height: 16px !important;
        width: 16px !important;
        font-size: 8px !important;
    }
    
    input:checked + .slider:before {
        transform: translateX(20px) !important;
    }
    
    body {
        padding-top: 80px !important;
    }
}

/* Mobile uniquement (< 600px) */
@media (max-width: 599px) {
    .art-horizontal-menu {
        display: none !important;
    }
    
    .art-menu-bar,
    .art-mobile-top-bar {
        display: block !important;
    }
    
    .theme-switch-wrapper {
        display: none !important;
    }
}

/* Admin bar adjustments */
.admin-bar .art-horizontal-menu {
    top: 32px !important;
}

.admin-bar body {
    padding-top: 102px !important;
}

@media screen and (max-width: 782px) {
    .admin-bar .art-horizontal-menu {
        top: 46px !important;
    }
    
    .admin-bar body {
        padding-top: 116px !important;
    }
}

/* Forcer pleine largeur */
@media (min-width: 1200px) {
    .art-app,
    .art-app-wrapper,
    .art-app-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
  
    .art-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 290px !important;
        margin-right: 0 !important;
        width: calc(100% - 290px) !important;
        max-width: calc(100% - 290px) !important;
    }
    
    .art-scroll-frame {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
    }
}

.art-banner-photo {
    display: none;
}

/* Supprime totalement le logo du flux d'affichage */
.art-brand {
    display: none !important;
}

/* PAGE COMPÉTENCES BTS SIO */
@media (min-width: 1200px) {
    .elementor-widget-html {
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
    }
    .elementor-widget-html .elementor-widget-container {
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
    }
}

/* ══ OVERRIDE DESKTOP - en dehors de tout media query ══ */
.ns-sheet-body {
    overflow: hidden !important;
    position: relative !important;
}
.ns-sheet-body iframe {
    width: 111% !important;
    height: 600px !important;
    transform: scale(0.97) !important;
    transform-origin: top left !important;
    border: none !important;
    display: block !important;
    margin: 0 !important;
}

/* ══ FENÊTRE COMPÉTENCES - RESPONSIVE ══ */

/* Tablette */
@media (min-width: 600px) and (max-width: 1199px) {
    .ns-sheet-titlebar {
        padding: 10px 14px;
        gap: 8px;
    }
    .ns-sheet-title-text {
        font-size: 0.75rem;
    }
    .ns-sheet-action-btn {
        padding: 4px 8px;
        font-size: 0.68rem;
    }
}

/* Mobile */
@media (max-width: 599px) {
    .ns-sheet-window {
        border-radius: 10px;
    }
    .ns-sheet-titlebar {
        padding: 8px 12px;
        flex-wrap: wrap;
        gap: 6px;
    }
    .ns-sheet-dots {
        order: 1;
        flex-shrink: 0;
    }
    .ns-sheet-title-text {
        order: 2;
        font-size: 0.7rem;
        flex: 1;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .ns-sheet-actions {
        order: 3;
        flex-shrink: 0;
    }
    .ns-sheet-action-btn {
        padding: 4px 8px;
        font-size: 0.65rem;
    }
    .ns-sheet-toolbar {
        padding: 6px 10px;
        gap: 4px;
    }
    .ns-sheet-tab {
        padding: 4px 10px;
        font-size: 0.7rem;
    }
    .ns-sheet-body {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .ns-sheet-body iframe {
        width: 900px !important;
        min-width: 900px !important;
        height: 500px !important;
        transform: scale(1) !important;
        transform-origin: top left !important;
    }
    .ns-sheet-statusbar {
        padding: 5px 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    .ns-sheet-status-right {
        font-size: 0.62rem;
    }
}


/* ═════ DARK/LIGHT MODE ═════ */

/* Variables de couleurs */
:root {
    /* Dark Mode - Couleurs actuelles */
    --bg-dark-primary: #2d2f3a;
    --bg-dark-card: #3a3d4a;
    --text-dark: #f5f5f5;
    --accent: #ffc107;
    
    /* Light Mode - Beige/Crème */
    --bg-light-primary: #faf8f3;
    --bg-light-secondary: #f5f3ed;
    --bg-light-card: #ffffff;
    --text-light-primary: #1a1a1a;
    --text-light-secondary: #1a1a1a;
    --border-light: #e8e6e0;
}

/* ═════ Hero Banner Title ═════ */

/* ═════ Title/Light ═════ */

.light-mode h1.art-banner-title-h.mb-15 {
	-webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: white !important;
}

.light-mode span.txt-rotate {
	-webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: white;
}

/* ═════ Title/Dark ═════ */

:not(.light-mode) h1.art-banner-title-h.mb-15 {
	-webkit-text-stroke-width: 2px;
  -webkit-text-stroke-color: black;
}

:not(.light-mode) span.txt-rotate {
	-webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: whitesmoke;
}

/* ═════ Fin du Hero Banner ═════ */

/* Footer */

:not(.light-mode)  .footer {
    color: #000000 !important;
	  border: 1px white solid;
}

:not(.light-mode) .footer:hover {
    border-color: var(--accent) !important;
}

:not(.light-mode) .footer a:hover{
	color: var(--accent) !important;
}

/* ═════ DARK MODE PAR DÉFAUT (sans .light-mode) ═════ */


:not(.light-mode) .art-btn span {
    color: #000000 !important;
    border-color: var(--accent) !important;
	
}


body:not(.light-mode) {
    background: var(--bg-dark-primary) !important;
    color: var(--text-dark) !important;
}

body:not(.light-mode) .art-app,
body:not(.light-mode) .art-content {
    background: var(--bg-dark-primary) !important;
}

body:not(.light-mode) .art-info-bar-frame {
    background: var(--bg-dark-card) !important;
}

body:not(.light-mode) .art-horizontal-menu {
    background: var(--bg-dark-card) !important;
}

body:not(.light-mode) .horizontal-menu-list .sub-menu {
    background: var(--bg-dark-card) !important;
}

body:not(.light-mode) .art-card,
body:not(.light-mode) .art-a {
    background: var(--bg-dark-card) !important;
}

body:not(.light-mode) h1,
body:not(.light-mode) h2,
body:not(.light-mode) h3,
body:not(.light-mode) h4,
body:not(.light-mode) h5,
body:not(.light-mode) h6 {
    color: var(--text-dark) !important;	
}

body:not(.light-mode) p,
body:not(.light-mode) span,
body:not(.light-mode) li {
    color: var(--text-dark) !important;
}

body:not(.light-mode) .art-card p,
body:not(.light-mode) .art-a p {
    color: var(--text-dark) !important;
}

/* Banner hero - Dark Mode avec image visible */
body:not(.light-mode) .art-banner {
    background-image: url(https://salvianans.fr/wp-content/uploads/2026/11/hero-cloud-circuit.webp) !important;
    background-size: 100% !important;
    background-position: center center !important;
    opacity: 0.99 !important;
    transition: background-position 0.8s ease !important;
}

body:not(.light-mode) .art-top-bg{
	background-image:
url(https://salvianans.fr/wp-content/uploads/2026/11/hero-cloud-circuit.webp) !important;
	background-size:content !important;
	background-position:center center !important;
	opacity: 0.99 !important;
	transition : background-position 0.8s ease !important;
	box-shadow: 12px 12px 2px 1px rgb(99 119 233 / 3% );
}

body:not(.light-mode) .art-banner-back {
       background: rgb(99 119 233 / 6%) !important;
	border-left:solid black 1px;
	border-right:solid black 1px;
	border-top:solid black 1px;
	
}


/* ═════ LIGHT MODE ACTIVÉ ═════ */

/* Backgrounds principaux */
body.light-mode {
    background: var(--bg-light-primary) !important;
    color: var(--text-light-primary) !important;
}

body.light-mode .art-app,
body.light-mode .art-content {
    background: var(--bg-light-primary) !important;
}

/* Info bar (sidebar gauche) */
body.light-mode .art-info-bar-frame {
    background: var(--bg-light-secondary) !important;
    border-right: 1px solid var(--border-light) !important;
}

body.light-mode .art-info-bar .art-header {
    background: #f5f3ed !important;
    box-shadow: 0 2px 8px rgba(45, 42, 36, 0.04) !important;
}

body.light-mode .art-app .art-app-wrapper .art-app-container .art-info-bar {
    background: #f5f3ed !important;
}

/* Menu horizontal (desktop) */
body.light-mode .art-horizontal-menu {
    background: var(--bg-light-card) !important;
    border-bottom: 1px solid var(--border-light) !important;
    box-shadow: 0 1px 3px rgba(45, 42, 36, 0.06) !important;
}

body.light-mode .horizontal-menu-list > li > a {
    color: var(--text-light-primary) !important;
}

body.light-mode .horizontal-menu-list > li > a:hover {
    color: var(--accent) !important;
}

body.light-mode .horizontal-menu-list .sub-menu {
    background: var(--bg-light-card) !important;
    border: 1px solid var(--border-light) !important;
}

body.light-mode .horizontal-menu-list .sub-menu a {
    color: var(--text-light-primary) !important;
}

/* Titres */
body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6 {
    color: var(--text-light-primary) !important;
}

/* Textes */
body.light-mode p,
body.light-mode li,
body.light-mode span {
    color: var(--text-light-secondary) !important;
}

body.light-mode a {
    color: var(--text-light-primary) !important;
}

/* Cards */
body.light-mode .art-card,
body.light-mode .art-a {
    background: var(--bg-light-card) !important;
    border: 1px solid var(--border-light) !important;
    box-shadow: 0 2px 8px rgba(45, 42, 36, 0.06) !important;
}

body.light-mode .art-card h3,
body.light-mode .art-card h4,
body.light-mode .art-a h3,
body.light-mode .art-a h4 {
    color: var(--text-light-primary) !important;
}

body.light-mode .art-card p,
body.light-mode .art-a p {
    color: var(--text-light-secondary) !important;
}

/* Image de fond global */
body.light-mode .art-top-bg {
    opacity: 0.35 !important;
}

body.light-mode .art-top-bg-overlay {
    background: rgba(250, 248, 243, 0.3) !important;
}

/* Banner hero (Découvrez mon Portfolio) - EFFET DÉPLACEMENT */
body.light-mode .art-banner {
    background-image: url(https://salvianans.fr/wp-content/uploads/2026/11/hero-cloud-circuit.webp) !important;
    background-size: 100% !important;
    background-position: left top !important;
    opacity: 1 !important;
    transition: background-position 0.8s ease !important;
}


body.light-mode .art-top-bg{
	background-image:
url(https://salvianans.fr/wp-content/uploads/2026/11/hero-cloud-circuit.webp) !important;
	background-size:content !important;
	background-position:left center !important;
	opacity: 0.2 !important;
	transition : background-position 0.7s ease !important;
	-webkit-box-shadow: 5px 5px 5px 0px #000000, inset 4px 4px 15px 0px #000000, 5px 5px 15px 8px rgba(27,45,158,0.45); 
box-shadow: 5px 5px 5px 0px #000000, inset 4px 4px 15px 0px #000000, 5px 5px 15px 8px rgba(27,45,158,0.45);
}


body.light-mode .art-banner-back {
       background: rgb(99 119 233 / 6%) !important;
	border-left:solid black 1px;
	border-right:solid black 1px;
	border-top:solid black 1px;
}

body.light-mode .art-banner-back {
    background: rgba(255, 255, 255, 0.15) !important;
}

/* Boutons et liens */
body.light-mode .art-btn,
body.light-mode .art-link,
body.light-mode a.art-link.art-color-link,
body.light-mode .art-link.art-color-link.art-w-chevron {
    background: transparent !important;
    color: #2d2a24 !important;
    border-color: var(--accent) !important;
}

body.light-mode .art-btn:hover,
body.light-mode .art-link:hover,
body.light-mode a.art-link.art-color-link:hover,
body.light-mode .art-link.art-color-link.art-w-chevron:hover {
    background: transparent !important;
    background-color: transparent !important;
    color: var(--accent) !important;
    border-color: var(--accent) !important;
}

body.light-mode .art-btn, 
body.light-mode a.art-btn.art-btn-md {
    background: var(--accent) !important;
    color: #000000 !important;
    border-color: var(--accent) !important;
}

/* Footer */
body.light-mode .footer {
    background: #f5f3ed !important;
    color: #000000 !important;
	  border: 1px solid;
}

body.light-mode .footer:hover {
    border-color: var(--accent) !important;
}

body.light-mode .footer a:hover{
	color: var(--accent) !important;
}

/* Textes spécifiques du banner */
body.light-mode .h5.art-name.mb-10,
body.light-mode .art-sm-text,
body.light-mode h1.art-banner-title-h.mb-15 {
    color: #000000 !important;
}

/* ═════ TOGGLE DARK/LIGHT (Desktop + Tablette) ═════ */

/* Base toggle (600px et plus) */
@media (min-width: 600px) {
    .theme-switch-wrapper {
        display: flex;
        align-items: center;
        margin-left: 15px;
        flex-shrink: 0;
    }
    
    .theme-switch {
        position: relative;
        display: inline-block;
        width: 50px;
        height: 24px;
    }
    
    .theme-switch input {
        opacity: 0;
        width: 0;
        height: 0;
        position: absolute;
    }
    
    .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(255, 255, 255, 0.15);
        transition: all 0.3s ease;
        border-radius: 24px;
    }
    
    .slider:before {
        position: absolute;
        content: "🌙";
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background-color: #ffffff;
        transition: all 0.3s ease;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        line-height: 18px;
    }
    
    input:checked + .slider {
        background-color: #ffc107;
    }
    
    input:checked + .slider:before {
        transform: translateX(26px);
        content: "☀️";
    }
    
    .slider:hover {
        background-color: rgba(255, 255, 255, 0.25);
    }
    
    input:checked + .slider:hover {
        background-color: #ffcd38;
    }
}

/* Tablette (600-1199px) - Toggle plus compact */
@media (min-width: 600px) and (max-width: 1199px) {
    .theme-switch-wrapper {
        margin-left: 10px;
    }
    
    .theme-switch {
        width: 45px;
        height: 22px;
    }
    
    .slider:before {
        height: 16px;
        width: 16px;
        left: 3px;
        bottom: 3px;
        font-size: 9px;
        line-height: 16px;
    }
    
    input:checked + .slider:before {
        transform: translateX(23px);
    }
}

/* Petit écran (600-850px) - Toggle encore plus compact pour 800x600 */
@media (min-width: 600px) and (max-width: 850px) {
    .theme-switch {
        width: 40px !important;
        height: 20px !important;
    }
    
    .slider:before {
        height: 14px !important;
        width: 14px !important;
        left: 3px !important;
        bottom: 3px !important;
        font-size: 8px !important;
        line-height: 14px !important;
    }
    
    input:checked + .slider:before {
        transform: translateX(20px) !important;
    }
}

/* Mobile (< 600px) - Toggle dans la top bar mobile */
.mobile-theme-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.mobile-theme-toggle .theme-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.mobile-theme-toggle .theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.mobile-theme-toggle .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.15);
    transition: 0.3s;
    border-radius: 24px;
}

.mobile-theme-toggle .slider:before {
    position: absolute;
    content: "🌙";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #ffffff;
    transition: 0.3s;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    line-height: 18px;
}

.mobile-theme-toggle input:checked + .slider {
    background-color: #ffc107;
}

.mobile-theme-toggle input:checked + .slider:before {
    transform: translateX(26px);
    content: "☀️";
}

/* ═════ UNIFORMISER HAUTEUR DES BLOCS DE SERVICES ═════ */

/* Force tous les blocs de la page d'accueil à avoir la même hauteur */
.art-service-icon-box {
  min-height: 250px;
  display: flex;
  flex-direction: column;
}

/* Le contenu prend tout l'espace disponible */
.art-service-icon-box .art-service-ib-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Le lien/bouton reste en bas */
.art-service-icon-box .art-service-ib-content .art-link {
  margin-top: auto;
}

/* Responsive - Ajuste la hauteur sur mobile */
@media (max-width: 768px) {
  .art-service-icon-box {
    min-height: auto;
  }
}

/* ═════ DARK/LIGHT MODE ═════ */

/* ═════ DARK MODE ═════ */

body:not(.light-mode) .art-info-bar {
    background: #3a3d4a !important;
}

body:not(.light-mode) .art-info-bar .art-header {
    background: #3a3d4a !important;
}

body:not(.light-mode) .art-app-wrapper {
    background: transparent !important;
}

body:not(.light-mode) .art-app {
    background: transparent !important;
}

body:not(.light-mode) .art-scroll-frame {
    background: transparent !important;
}

body:not(.light-mode).default--scrolling .art-app:before,
body:not(.light-mode).default--scrolling .art-app:after {
    background: #2d2f3a !important;
}

body:not(.light-mode).default--scrolling .art-app .art-app-wrapper .art-app-container:before {
    background: #2d2f3a !important;
}

/* ═════ LIGHT MODE ═════ */

body.light-mode .art-info-bar {
    background: #f5f3ed !important;
}

body.light-mode .art-app-wrapper {
    background: transparent !important;
}

body.light-mode .art-app {
    background: transparent !important;
}

body.light-mode .art-scroll-frame {
    background: transparent !important;
}

body.light-mode.default--scrolling .art-app:before,
body.light-mode.default--scrolling .art-app:after {
    background: #faf8f3 !important;
}

body.light-mode.default--scrolling .art-app .art-app-wrapper .art-app-container:before {
    background: #faf8f3 !important;
}

/* ═════ TRANSITIONS FLUIDES ═════ */

#preloader,
.art-info-bar,
.art-info-bar-frame,
.art-header,
.art-app-wrapper,
.art-app,
.art-scroll-frame,
.art-app:before,
.art-app:after,
.art-app-container:before {
    transition: background-color 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* ═════ SYSTÈME DE CONTACT  ═════ */

/* ═════ VARIABLES ═════ */
:root {
    --ns-accent: #ffc107;
    --ns-accent-hover: #ffcd38;
    
    /* Dark Mode */
    --ns-dark-bg: #2d2f3a;
    --ns-dark-card: #3a3d4a;
    --ns-dark-text: #f5f5f5;
    --ns-dark-border: #4a4d5a;
    
    /* Light Mode */
    --ns-light-bg: #faf8f3;
    --ns-light-card: #ffffff;
    --ns-light-text: #1a1a1a;
    --ns-light-border: #e8e6e0;
    
    /* Status Colors */
    --ns-success: #4caf50;
    --ns-error: #f44336;
    --ns-info: #2196f3;
}

/* ═════ WRAPPER PRINCIPAL ═════ */
.ns-contact-wrapper {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

/* ═════ HEADER ═════ */
.ns-contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.ns-contact-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--ns-accent), #ffcd38);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ns-contact-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Dark Mode Header */
body:not(.light-mode) .ns-contact-subtitle {
    color: var(--ns-dark-text);
}

/* Light Mode Header */
body.light-mode .ns-contact-subtitle {
    color: var(--ns-light-text);
}

/* ═════ MODE SELECTOR (Toggle Buttons) ═════ */
.ns-mode-selector {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    justify-content: center;
}

.ns-mode-btn {
    flex: 1;
    max-width: 250px;
    padding: 25px 20px;
    border: 2px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

/* Dark Mode Buttons */
body:not(.light-mode) .ns-mode-btn {
    background: var(--ns-dark-card);
    color: var(--ns-dark-text);
    border-color: var(--ns-dark-border);
}

body:not(.light-mode) .ns-mode-btn:hover {
    border-color: var(--ns-accent);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.2);
    transform: translateY(-2px);
}

body:not(.light-mode) .ns-mode-btn.active {
    background: linear-gradient(135deg, var(--ns-dark-card), rgba(255, 193, 7, 0.1));
    border-color: var(--ns-accent);
    box-shadow: 0 0 30px rgba(255, 193, 7, 0.3);
}

/* Light Mode Buttons */
body.light-mode .ns-mode-btn {
    background: var(--ns-light-card);
    color: var(--ns-light-text);
    border-color: var(--ns-light-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body.light-mode .ns-mode-btn:hover {
    border-color: var(--ns-accent);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
    transform: translateY(-2px);
}

body.light-mode .ns-mode-btn.active {
    background: linear-gradient(135deg, var(--ns-light-card), rgba(255, 193, 7, 0.05));
    border-color: var(--ns-accent);
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.25);
}

.ns-mode-icon {
    font-size: 2.5rem;
}

.ns-mode-text {
    font-size: 1.2rem;
    font-weight: 600;
}

.ns-mode-desc {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ═════ MODE CONTENT (Form & Chat Container) ═════ */
.ns-mode-content {
    opacity: 1;
    transform: translateY(20px);
    transition: all 0.4s ease;
    padding: 40px;
    border-radius: 20px;
    border: 2px solid;
}

.ns-mode-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Dark Mode Content */
body:not(.light-mode) .ns-mode-content {
    background: var(--ns-dark-card);
    border-color: var(--ns-dark-border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Light Mode Content */
body.light-mode .ns-mode-content {
    background: var(--ns-light-card);
    border-color: var(--ns-light-border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* ═════ FORMULAIRE ═════ */
.ns-form-intro {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.ns-form-group {
    margin-bottom: 25px;
}

.ns-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.ns-required {
    color: var(--ns-error);
}

.ns-input,
.ns-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.ns-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Dark Mode Inputs */
body:not(.light-mode) .ns-input,
body:not(.light-mode) .ns-textarea {
    background: var(--ns-dark-bg);
    color: var(--ns-dark-text);
    border-color: var(--ns-dark-border);
}

body:not(.light-mode) .ns-input:focus,
body:not(.light-mode) .ns-textarea:focus {
    outline: none;
    border-color: var(--ns-accent);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}

/* Light Mode Inputs */
body.light-mode .ns-input,
body.light-mode .ns-textarea {
    background: var(--ns-light-bg);
    color: var(--ns-light-text);
    border-color: var(--ns-light-border);
}

body.light-mode .ns-input:focus,
body.light-mode .ns-textarea:focus {
    outline: none;
    border-color: var(--ns-accent);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.08);
}

/* Honeypot (anti-spam caché) */
.ns-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
}

/* Erreurs */
.ns-error {
    display: block;
    color: var(--ns-error);
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 20px;
}

/* ═════ BOUTON SUBMIT ═════ */
.ns-form-actions {
    margin-top: 30px;
    text-align: center;
}

.ns-btn-submit {
    background: var(--ns-accent);
    color: #000;
    padding: 16px 40px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.ns-btn-submit:hover {
    background: var(--ns-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.4);
}

.ns-btn-submit:active {
    transform: translateY(0);
}

.ns-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ═════ CHAT IA ═════ */
.ns-chat-intro {
    text-align: center;
    margin-bottom: 30px;
}

.ns-chat-avatar {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.ns-chat-welcome {
    font-size: 1.5rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--ns-accent), #ffcd38);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ns-chat-desc {
    opacity: 0.8;
    font-size: 1rem;
}

/* ═════ QUICK ACTIONS ═════ */
.ns-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.ns-quick-btn {
    padding: 12px 20px;
    border: 2px solid;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Dark Mode Quick Buttons */
body:not(.light-mode) .ns-quick-btn {
    background: var(--ns-dark-bg);
    color: var(--ns-dark-text);
    border-color: var(--ns-dark-border);
}

body:not(.light-mode) .ns-quick-btn:hover {
    border-color: var(--ns-accent);
    background: rgba(255, 193, 7, 0.1);
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.2);
}

/* Light Mode Quick Buttons */
body.light-mode .ns-quick-btn {
    background: var(--ns-light-bg);
    color: var(--ns-light-text);
    border-color: var(--ns-light-border);
}

body.light-mode .ns-quick-btn:hover {
    border-color: var(--ns-accent);
    background: rgba(255, 193, 7, 0.05);
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.15);
}

.ns-quick-icon {
    font-size: 1.2rem;
}

/* ═════ CHAT MESSAGES ═════ */
.ns-chat-messages {
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Dark Mode Messages Container */
body:not(.light-mode) .ns-chat-messages {
    background: var(--ns-dark-bg);
}

/* Light Mode Messages Container */
body.light-mode .ns-chat-messages {
    background: var(--ns-light-bg);
}

/* Scrollbar Custom */
.ns-chat-messages::-webkit-scrollbar {
    width: 8px;
}

.ns-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

body:not(.light-mode) .ns-chat-messages::-webkit-scrollbar-thumb {
    background: var(--ns-dark-border);
    border-radius: 4px;
}

body.light-mode .ns-chat-messages::-webkit-scrollbar-thumb {
    background: var(--ns-light-border);
    border-radius: 4px;
}

/* Message Bubble */
.ns-chat-message {
    padding: 14px 18px;
    border-radius: 18px;
    max-width: 80%;
    word-wrap: break-word;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* User Message (Right) */
.ns-chat-message.user {
    align-self: flex-end;
    background: var(--ns-accent);
    color: #000;
    border-bottom-right-radius: 4px;
}

/* AI Message (Left) */
.ns-chat-message.ai {
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

/* Dark Mode AI Message */
body:not(.light-mode) .ns-chat-message.ai {
    background: var(--ns-dark-card);
    color: var(--ns-dark-text);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.1);
}

/* Light Mode AI Message */
body.light-mode .ns-chat-message.ai {
    background: var(--ns-light-card);
    color: var(--ns-light-text);
    border: 1px solid var(--ns-light-border);
}

/* ═════ TYPING INDICATOR ═════ */
.ns-typing-indicator {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-radius: 18px;
    max-width: 150px;
    margin-bottom: 15px;
}

.ns-typing-indicator.active {
    display: flex;
}

/* Dark Mode Typing */
body:not(.light-mode) .ns-typing-indicator {
    background: var(--ns-dark-card);
}

/* Light Mode Typing */
body.light-mode .ns-typing-indicator {
    background: var(--ns-light-card);
    border: 1px solid var(--ns-light-border);
}

.ns-typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ns-accent);
    animation: typing 1.4s infinite;
}

.ns-typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.ns-typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.ns-typing-text {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-left: 5px;
}

/* ═════ CHAT INPUT ═════ */
.ns-chat-input-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.ns-chat-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid;
    border-radius: 25px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

/* Dark Mode Chat Input */
body:not(.light-mode) .ns-chat-input {
    background: var(--ns-dark-bg);
    color: var(--ns-dark-text);
    border-color: var(--ns-dark-border);
}

body:not(.light-mode) .ns-chat-input:focus {
    outline: none;
    border-color: var(--ns-accent);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.1);
}

/* Light Mode Chat Input */
body.light-mode .ns-chat-input {
    background: var(--ns-light-bg);
    color: var(--ns-light-text);
    border-color: var(--ns-light-border);
}

body.light-mode .ns-chat-input:focus {
    outline: none;
    border-color: var(--ns-accent);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.08);
}

.ns-chat-send {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--ns-accent);
    color: #000;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ns-chat-send:hover {
    background: var(--ns-accent-hover);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.ns-chat-send:active {
    transform: scale(0.95);
}

/* ═════ CLEAR HISTORY BUTTON ═════ */
.ns-chat-actions {
    text-align: center;
}

.ns-clear-history {
    padding: 10px 20px;
    border: 1px solid;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* Dark Mode Clear Button */
body:not(.light-mode) .ns-clear-history {
    color: var(--ns-dark-text);
    border-color: var(--ns-dark-border);
}

body:not(.light-mode) .ns-clear-history:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--ns-error);
    color: var(--ns-error);
}

/* Light Mode Clear Button */
body.light-mode .ns-clear-history {
    color: var(--ns-light-text);
    border-color: var(--ns-light-border);
}

body.light-mode .ns-clear-history:hover {
    background: rgba(244, 67, 54, 0.05);
    border-color: var(--ns-error);
    color: var(--ns-error);
}

/* ═════ TOAST NOTIFICATIONS ═════ */
.ns-toast-container {
    position: fixed;
    top: 300px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ns-toast {
    min-width: 300px;
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: toastSlideIn 0.3s ease;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.ns-toast.removing {
    animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideOut {
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.ns-toast-icon {
    font-size: 1.5rem;
}

.ns-toast-content {
    flex: 1;
}

.ns-toast-message {
    font-weight: 600;
    margin-bottom: 2px;
}

.ns-toast-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.ns-toast-close:hover {
    opacity: 1;
}

/* Toast Types */
.ns-toast.success {
    background: var(--ns-success);
    color: white;
}

.ns-toast.error {
    background: var(--ns-error);
    color: white;
}

.ns-toast.info {
    background: var(--ns-info);
    color: white;
}

/* ═════ RESPONSIVE ═════ */
@media (max-width: 768px) {
    .ns-contact-wrapper {
        margin: 30px auto;
        padding: 0 15px;
    }
    
    .ns-contact-title {
        font-size: 2rem;
    }
    
    .ns-mode-selector {
        flex-direction: column;
        gap: 15px;
    }
    
    .ns-mode-btn {
        max-width: none;
    }
    
    .ns-mode-content {
        padding: 25px 20px;
    }
    
    .ns-quick-actions {
        gap: 8px;
    }
    
    .ns-quick-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .ns-chat-messages {
        min-height: 250px;
        max-height: 400px;
    }
    
    .ns-chat-message {
        max-width: 90%;
    }
    
    .ns-toast-container {
        right: 10px;
        left: 10px;
    }
    
    .ns-toast {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .ns-contact-title {
        font-size: 1.5rem;
    }
    
    .ns-mode-icon {
        font-size: 2rem;
    }
    
    .ns-mode-text {
        font-size: 1rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   MODALES RGPD - DESIGN MODERNE
   ═══════════════════════════════════════════════════════════════ */

.ns-rgpd-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.ns-rgpd-modal {
    background: var(--bg-color, #1a1d2e);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.ns-rgpd-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid rgba(255, 193, 7, 0.1);
    position: relative;
}

.ns-rgpd-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 15px;
}

.ns-rgpd-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color, #fff);
    text-align: center;
    margin: 0 0 10px;
}

.ns-rgpd-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin: 0;
}

.ns-rgpd-body {
    padding: 30px;
}

.ns-rgpd-section {
    margin-bottom: 25px;
}

.ns-rgpd-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffc107;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ns-rgpd-section-icon {
    font-size: 18px;
}

.ns-rgpd-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ns-rgpd-list li {
    padding: 8px 0 8px 28px;
    position: relative;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.ns-rgpd-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: bold;
}

.ns-rgpd-info-box {
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid #ffc107;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.ns-rgpd-info-box p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.ns-rgpd-info-box strong {
    color: #ffc107;
}

.ns-rgpd-highlight {
    background: rgba(244, 67, 54, 0.1);
    border-left: 3px solid #f44336;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.ns-rgpd-highlight p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.ns-rgpd-footer {
    padding: 20px 30px 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.ns-rgpd-btn {
    flex: 1;
    min-width: 150px;
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ns-rgpd-btn-accept {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #1a1d2e;
}

.ns-rgpd-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.3);
}

.ns-rgpd-btn-decline {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ns-rgpd-btn-decline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.ns-rgpd-privacy-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
}

.ns-rgpd-privacy-link a {
    color: #ffc107;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.ns-rgpd-privacy-link a:hover {
    border-bottom-color: #ffc107;
}

/* Light mode */
.light-mode .ns-rgpd-modal {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
}

.light-mode .ns-rgpd-title {
    color: #1a1d2e;
}

.light-mode .ns-rgpd-subtitle {
    color: rgba(0, 0, 0, 0.6);
}

.light-mode .ns-rgpd-list li {
    color: rgba(0, 0, 0, 0.8);
}

.light-mode .ns-rgpd-info-box,
.light-mode .ns-rgpd-highlight {
    background: rgba(255, 193, 7, 0.08);
}

.light-mode .ns-rgpd-info-box p,
.light-mode .ns-rgpd-highlight p {
    color: rgba(0, 0, 0, 0.7);
}

.light-mode .ns-rgpd-btn-accept {
    color: #fff;
}

.light-mode .ns-rgpd-btn-decline {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.7);
    border-color: rgba(0, 0, 0, 0.1);
}

.light-mode .ns-rgpd-btn-decline:hover {
    background: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.9);
}

/* Responsive */
@media (max-width: 768px) {
    .ns-rgpd-modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .ns-rgpd-header,
    .ns-rgpd-body {
        padding: 20px;
    }
    
    .ns-rgpd-footer {
        flex-direction: column;
        padding: 15px 20px 20px;
    }
    
    .ns-rgpd-btn {
        min-width: 100%;
    }
    
    .ns-rgpd-title {
        font-size: 20px;
    }
}

/* Scrollbar personnalisée pour la modale */
.ns-rgpd-modal::-webkit-scrollbar {
    width: 8px;
}

.ns-rgpd-modal::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.ns-rgpd-modal::-webkit-scrollbar-thumb {
    background: rgba(255, 193, 7, 0.3);
    border-radius: 10px;
}

.ns-rgpd-modal::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 193, 7, 0.5);
}

/* Quotas */
.ns-chat-quotas {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.ns-quota-item {
    flex: 1;
    min-width: 150px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}

.ns-quota-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
}

.ns-quota-value {
    font-size: 18px;
    font-weight: 700;
    color: #4caf50;
}

.ns-quota-value.warning {
    color: #ff9800;
}

.ns-quota-value.danger {
    color: #f44336;
}

/* ═════ QUOTAS CHAT - FIX LIGHT MODE ═════ */

/* Dark Mode - Texte blanc (OK) */
body:not(.light-mode) .ns-quota-label {
    color: rgba(255, 255, 255, 0.7) !important;
}

body:not(.light-mode) .ns-quota-value {
    color: #4caf50 !important;
}

/* Light Mode - Texte NOIR pour être visible */
body.light-mode .ns-quota-label {
    color: rgba(0, 0, 0, 0.6) !important;
}

body.light-mode .ns-quota-value {
    color: #4caf50 !important;
}

/* Amélioration du conteneur des quotas en Light Mode */
body.light-mode .ns-quota-item {
    background: rgba(255, 193, 7, 0.05) !important;
    border: 1px solid rgba(255, 193, 7, 0.2) !important;
}

/* Dark Mode - Conteneur actuel (OK) */
body:not(.light-mode) .ns-quota-item {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 193, 7, 0.2) !important;
}

/* ═════ MENU MOBILE - CORRECTIONS COULEURS ═════ */

/* Dark Mode - Menu mobile */
body:not(.light-mode) .art-menu-bar,
body:not(.light-mode) .art-mobile-top-bar {
    background: #3a3d4a !important;
}

body:not(.light-mode) .art-menu-bar .art-menu-bar-btn,
body:not(.light-mode) .art-mobile-top-bar .art-menu-bar-btn {
    color: #f5f5f5 !important;
}

body:not(.light-mode) .art-menu-bar nav ul li a {
    color: #f5f5f5 !important;
}

body:not(.light-mode) .art-menu-bar nav ul li a:hover {
    color: #ffc107 !important;
    background: rgba(255, 193, 7, 0.1) !important;
}

/* Light Mode - Menu mobile */
body.light-mode .art-menu-bar,
body.light-mode .art-mobile-top-bar {
    background: #ffffff !important;
    border-bottom: 1px solid #e8e6e0 !important;
}

body.light-mode .art-menu-bar .art-menu-bar-btn,
body.light-mode .art-mobile-top-bar .art-menu-bar-btn {
    color: #1a1a1a !important;
}

body.light-mode .art-menu-bar nav ul li a {
    color: #1a1a1a !important;
}

body.light-mode .art-menu-bar nav ul li a:hover {
    color: #ffc107 !important;
    background: rgba(255, 193, 7, 0.1) !important;
}

/* Sous-menus mobile */
body:not(.light-mode) .art-menu-bar nav ul li ul {
    background: #2d2f3a !important;
}

body.light-mode .art-menu-bar nav ul li ul {
    background: #faf8f3 !important;
}

/* Menu hamburger icon */
body:not(.light-mode) .art-menu-bar-btn span,
body:not(.light-mode) .art-menu-bar-btn span::before,
body:not(.light-mode) .art-menu-bar-btn span::after {
    background: #f5f5f5 !important;
}

body.light-mode .art-menu-bar-btn span,
body.light-mode .art-menu-bar-btn span::before,
body.light-mode .art-menu-bar-btn span::after {
    background: #1a1a1a !important;
}

/* Mobile menu items padding */
.art-menu-bar nav ul li a {
    padding: 12px 20px !important;
    display: block !important;
}

/* Mobile submenu items */
.art-menu-bar nav ul li ul li a {
    padding-left: 40px !important;
    font-size: 0.9em !important;
}

/* Active menu item */
body:not(.light-mode) .art-menu-bar nav ul li.current-menu-item > a,
body:not(.light-mode) .art-menu-bar nav ul li.current-page-ancestor > a {
    color: #ffc107 !important;
    background: rgba(255, 193, 7, 0.15) !important;
}

body.light-mode .art-menu-bar nav ul li.current-menu-item > a,
body.light-mode .art-menu-bar nav ul li.current-page-ancestor > a {
    color: #ffc107 !important;
    background: rgba(255, 193, 7, 0.1) !important;
}


/* ═════ FORMULAIRE CONTACT - AMÉLIORATIONS ═════ */

/* Fix pour éviter le submit en GET */
.ns-contact-form {
    width: 100%;
}

/* Empêcher le comportement par défaut du navigateur */
.ns-contact-form input[type="submit"],
.ns-contact-form button[type="submit"] {
    -webkit-appearance: none;
    appearance: none;
}

/* Honeypot vraiment invisible */
.ns-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    tab-index: -1 !important;
}


/* ═════ CHAT IA - AMÉLIORATIONS ═════ */

/* Scroll plus fluide */
.ns-chat-messages {
    scroll-behavior: smooth;
}

/* Messages plus lisibles */
.ns-message-bubble {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Quick actions plus réactives */
.ns-quick-action {
    transition: all 0.2s ease !important;
    cursor: pointer;
}

.ns-quick-action:active {
    transform: scale(0.95);
}


/* ═════ TOAST NOTIFICATIONS - AMÉLIORATIONS ═════ */

/* Meilleure visibilité mobile */
@media (max-width: 768px) {
    .ns-toast {
        width: calc(100% - 20px) !important;
        margin: 10px !important;
    }
    
    .ns-toast-container {
        padding: 10px !important;
    }
}

/* Animation plus smooth */
.ns-toast.show {
    animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* ═════ RESPONSIVE FIXES ═════ */

/* Mobile très petit (< 400px) */
@media (max-width: 400px) {
    .ns-mode-selector {
        flex-direction: column;
        gap: 10px;
    }
    
    .ns-mode-btn {
        width: 100%;
        justify-content: center;
    }
    
    .ns-quick-actions {
        grid-template-columns: 1fr !important;
    }
}

/* Tablette portrait */
@media (min-width: 768px) and (max-width: 1024px) {
    .ns-contact-container {
        max-width: 600px;
        margin: 0 auto;
    }
}


/* ═════ DARK/LIGHT MODE TRANSITIONS ═════ */

/* Transition fluide sur tous les éléments */
.art-menu-bar,
.art-mobile-top-bar,
.art-menu-bar nav ul li a,
.ns-contact-container,
.ns-mode-selector,
.ns-form-container,
.ns-chat-container,
.ns-message-bubble,
.ns-quick-action {
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}


/* ═════ ACCESSIBILITÉ ═════ */

/* Focus visible pour navigation clavier */
.ns-mode-btn:focus-visible,
.ns-submit-btn:focus-visible,
.ns-chat-send:focus-visible,
.ns-quick-action:focus-visible {
    outline: 2px solid #ffc107 !important;
    outline-offset: 2px !important;
}

/* Améliorer la lisibilité */
.ns-input:focus,
.ns-textarea:focus,
.ns-chat-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--ns-accent) !important;
}


/* ═════ PRINT STYLES ═════ */

@media print {
    .ns-chat-container,
    .ns-toast-container,
    .art-menu-bar,
    .art-mobile-top-bar {
        display: none !important;
    }
}

/* ═════ CSS CONTACT  ═════ */

/* Alias pour compatibilité */
.ns-contact-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

/* Header */
.ns-header {
    text-align: center;
    margin-bottom: 40px;
}

.ns-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--ns-accent), #ffcd38);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ns-header p {
    font-size: 1.1rem;
    opacity: 0.8;
}

body:not(.light-mode) .ns-header p {
    color: var(--ns-dark-text);
}

body.light-mode .ns-header p {
    color: var(--ns-light-text);
}

/* Mode buttons - structure dans le bouton */
.ns-mode-btn .ns-mode-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    text-align: left;
}

.ns-mode-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

.ns-mode-desc {
    font-size: 0.85rem;
    opacity: 0.7;
    line-height: 1.2;
}

/* Containers */
.ns-form-container,
.ns-chat-container {
    padding: 40px;
    border-radius: 20px;
    border: 2px solid;
    transition: all 0.4s ease;
}

body:not(.light-mode) .ns-form-container,
body:not(.light-mode) .ns-chat-container {
    background: var(--ns-dark-card);
    border-color: var(--ns-dark-border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

body.light-mode .ns-form-container,
body.light-mode .ns-chat-container {
    background: var(--ns-light-card);
    border-color: var(--ns-light-border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* Form intro */
.ns-form-intro {
    text-align: center;
    margin-bottom: 25px;
    padding: 15px 20px;
    border-radius: 8px;
}

body:not(.light-mode) .ns-form-intro {
    background: var(--ns-dark-card);
}

body.light-mode .ns-form-intro {
    background: var(--ns-light-card);
    border: 1px solid var(--ns-light-border);
}

.ns-form-intro p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.8;
}

/* Chat intro */
.ns-chat-intro {
    text-align: center;
    margin-bottom: 25px;
    padding: 25px;
    border-radius: 12px;
}

body:not(.light-mode) .ns-chat-intro {
    background: rgba(58, 61, 74, 0.5);
}

body.light-mode .ns-chat-intro {
    background: rgba(250, 248, 243, 0.5);
    border: 1px solid var(--ns-light-border);
}

.ns-chat-avatar-large {
    font-size: 3.5rem;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.ns-chat-intro h3 {
    font-size: 1.5rem;
    margin: 10px 0;
    color: var(--ns-accent);
}

.ns-chat-intro p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.8;
}

/* Chat input area */
.ns-chat-input-area {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Typing indicator */
.ns-typing {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
}

body:not(.light-mode) .ns-typing {
    background: rgba(58, 61, 74, 0.5);
}

body.light-mode .ns-typing {
    background: rgba(250, 248, 243, 0.5);
    border: 1px solid var(--ns-light-border);
}

.ns-typing-avatar {
    font-size: 1.8rem;
}

.ns-typing-dots {
    display: flex;
    gap: 5px;
    align-items: center;
}

.ns-typing-dots span {
    width: 10px;
    height: 10px;
    background: var(--ns-accent);
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out;
}

.ns-typing-dots span:nth-child(1) {
    animation-delay: 0s;
}

.ns-typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.ns-typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-bounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-15px);
        opacity: 1;
    }
}

/* Quick action */
.ns-quick-action {
    padding: 12px 20px;
    border: 2px solid;
    border-radius: 25px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

body:not(.light-mode) .ns-quick-action {
    background: var(--ns-dark-bg);
    color: var(--ns-dark-text);
    border-color: var(--ns-dark-border);
}

body:not(.light-mode) .ns-quick-action:hover {
    border-color: var(--ns-accent);
    background: rgba(255, 193, 7, 0.1);
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.2);
    transform: translateY(-2px);
}

body.light-mode .ns-quick-action {
    background: var(--ns-light-bg);
    color: var(--ns-light-text);
    border-color: var(--ns-light-border);
}

body.light-mode .ns-quick-action:hover {
    border-color: var(--ns-accent);
    background: rgba(255, 193, 7, 0.05);
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.15);
    transform: translateY(-2px);
}

.ns-quick-action:active {
    transform: scale(0.95);
}

.ns-quick-icon {
    font-size: 1.5rem;
    margin-right: 3px;
}

/* Clear history button */
.ns-clear-history {
    width: 100%;
    margin-top: 15px;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

body:not(.light-mode) .ns-clear-history {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

body.light-mode .ns-clear-history {
    background: rgba(244, 67, 54, 0.05);
    color: #d32f2f;
    border: 1px solid rgba(244, 67, 54, 0.2);
}

.ns-clear-history:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.2);
}

/* Messages IA */
.ns-message {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ns-message-user {
    justify-content: flex-end;
}

.ns-message-ai {
    justify-content: flex-start;
}

.ns-message-avatar {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.ns-message-bubble {
    padding: 14px 18px;
    border-radius: 18px;
    max-width: 70%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.ns-message-user .ns-message-bubble {
    background: var(--ns-accent);
    color: #000;
    border-bottom-right-radius: 4px;
}

body:not(.light-mode) .ns-message-ai .ns-message-bubble {
    background: rgba(58, 61, 74, 0.8);
    color: var(--ns-dark-text);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.1);
    border-bottom-left-radius: 4px;
}

body.light-mode .ns-message-ai .ns-message-bubble {
    background: rgba(250, 248, 243, 0.9);
    color: var(--ns-light-text);
    border: 1px solid var(--ns-light-border);
    border-bottom-left-radius: 4px;
}

/* Inputs avec bonnes classes */
.ns-input-name,
.ns-input-email,
.ns-input-message,
.ns-chat-input {
    /* Styles déjà définis dans .ns-input */
}

/* Errors avec bonnes classes */
.ns-error-name,
.ns-error-email,
.ns-error-message {
    /* Styles déjà définis dans .ns-error */
}

/* Submit button */
.ns-submit-btn {
    background: var(--ns-accent);
    color: #000;
    padding: 16px 40px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.ns-submit-btn:hover {
    background: var(--ns-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.4);
}

.ns-submit-btn:active {
    transform: translateY(0);
}

.ns-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ns-btn-icon {
    font-size: 1.2rem;
}

.ns-btn-text {
    font-size: 1rem;
}

/* Responsive spécifique au nouveau HTML */
@media (max-width: 768px) {
    .ns-contact-container {
        margin: 30px auto;
        padding: 0 15px;
    }
    
    .ns-header h1 {
        font-size: 2rem;
    }
    
    .ns-form-container,
    .ns-chat-container {
        padding: 25px 20px;
    }
    
    .ns-quick-actions {
        gap: 8px;
    }
    
    .ns-quick-action {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .ns-message-bubble {
        max-width: 85%;
    }
}

@media (max-width: 480px) {
    .ns-header h1 {
        font-size: 1.5rem;
    }
    
    .ns-mode-icon {
        font-size: 2rem;
    }
    
    .ns-mode-title {
        font-size: 0.95rem;
    }
    
    .ns-quick-actions {
        flex-direction: column;
    }
    
    .ns-quick-action {
        width: 100%;
        justify-content: center;
    }
}

/* Traduire "All Categories" */
.art-link[data-filter="*"]::after {
    content: "Toutes les catégories";
    font-size: 12px;
    letter-spacing: 2px;
}

.art-link[data-filter="*"] {
    font-size: 0 !important;
}

/* ═════ PORTFOLIO - LIGHT MODE (VERSION UNIVERSELLE) ═════ */

/* Titres des projets - Force en blanc si pas en dark mode */
body:not([class*="dark"]) .art-item-description h5,
body:not([class*="dark"]) .mb-15 {
    color: #ffffff !important;
}

/* Descriptions */
body:not([class*="dark"]) .art-item-description div,
body:not([class*="dark"]) .art-item-description p {
    color: #333333 !important;
}

/* Bouton "En savoir plus" */
.light-mode a.art-link.art-color-link.art-w-chevron { 
color : #ab802a !important;
}

/* Filtres portfolio */
body:not([class*="dark"]) .art-link[data-filter] {
    color: #666666 !important;
}

/* Filtre actif */
body:not([class*="dark"]) .art-link[data-filter].art-current {
    color: #ffc107 !important;
}

/* ═════ EFFET CARTE NÉON ROUGE & NOIR - LA ROUGE ET NOIRE ═════ */

.elementor-widget-video {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 2px solid rgba(220, 38, 38, 0.4);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.7),
        0 0 30px rgba(220, 38, 38, 0.3),
        inset 0 0 40px rgba(220, 38, 38, 0.05);
    transition: all 0.4s ease;
    position: relative;
}

/* Bordure animée rouge */
.elementor-widget-video::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #dc2626, 
        #991b1b, 
        #000000, 
        #dc2626
    );
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Hover - Lévitation + Glow rouge intense */
.elementor-widget-video:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(220, 38, 38, 0.8);
    box-shadow: 
        0 16px 48px 0 rgba(220, 38, 38, 0.5),
        0 0 60px rgba(220, 38, 38, 0.6),
        inset 0 0 40px rgba(220, 38, 38, 0.15);
}

.elementor-widget-video:hover::before {
    opacity: 1;
}

/* Wrapper vidéo */
.elementor-widget-video .elementor-wrapper {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
}

.elementor-widget-video iframe {
    border-radius: 15px;
}

/* Version Light Mode - Rouge doux sur fond blanc */
body.light-mode .elementor-widget-video,
body:not([class*="dark"]) .elementor-widget-video {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(220, 38, 38, 0.3);
    box-shadow: 
        0 8px 32px 0 rgba(220, 38, 38, 0.15),
        0 0 20px rgba(220, 38, 38, 0.1);
}

body.light-mode .elementor-widget-video:hover,
body:not([class*="dark"]) .elementor-widget-video:hover {
    box-shadow: 
        0 16px 48px 0 rgba(220, 38, 38, 0.25),
        0 0 40px rgba(220, 38, 38, 0.2);
}

/* Animation pulse rouge-noir */
@keyframes pulseRedBlack {
    0%, 100% { 
        box-shadow: 
            0 8px 32px 0 rgba(220, 38, 38, 0.5),
            0 0 40px rgba(220, 38, 38, 0.4);
    }
    50% { 
        box-shadow: 
            0 8px 32px 0 rgba(0, 0, 0, 0.7),
            0 0 40px rgba(220, 38, 38, 0.6);
    }
}

.elementor-widget-video:hover {
    animation: pulseRedBlack 2s ease-in-out infinite;
}

/* ═════ FOND NOIR POUR LA VIDÉO - LA ROUGE ET NOIRE ═════ */

/* Fond noir pour le container vidéo */
.elementor-widget-video {
    background: linear-gradient(135deg, 
        rgba(20, 5, 5, 0.95) 0%, 
        rgba(10, 10, 10, 0.95) 50%,
        rgba(5, 5, 5, 0.95) 100%) !important;
}

.elementor-widget-video .elementor-wrapper {
    background: transparent !important;
}

/* Fond noir pour le wrapper interne */
.elementor-widget-video .elementor-wrapper,
.elementor-widget-video .elementor-video-container {
    background: #000000 !important;
}

/* Si le fond vient d'une section Elementor */
.elementor-widget-video .elementor-background-overlay {
    background-color: #000000 !important;
}

/* Light Mode - Fond blanc élégant */
body.light-mode .elementor-widget-video,
body:not([class*="dark"]) .elementor-widget-video {
    background: rgba(255, 255, 255, 0.98) !important;
}

body.light-mode .elementor-widget-video .elementor-wrapper,
body:not([class*="dark"]) .elementor-widget-video .elementor-wrapper {
    background: #ffffff !important;
}
