/* Page styles extracted from template-actualites.php. */

/* --- STYLE GLOBAL --- */
        :root { --primary: #2D5BFF; --accent: #e0005b; --text-main: #ffffff; --text-muted: #cccccc; --glass: rgba(255, 255, 255, 0.05); --glass-border: rgba(255, 255, 255, 0.15); --footer-bg: #050505; --card-bg: #0a0a0a; }
        
        /* RESET & PROTECTION DESIGN */
        * { margin: 0; padding: 0; box-sizing: border-box; outline: none; font-family: 'Space Grotesk', sans-serif; }
        
        body { 
            background-color: transparent !important; 
            color: var(--text-main); 
            overflow-x: hidden; 
            cursor: none; 
            margin: 0 !important;
        }
        
        html { 
            scroll-behavior: smooth; 
            background-color: #000 !important; 
            scroll-padding-top: 100px;
            margin-top: 0 !important;
            font-size: 16px !important;
        }

        a, button, input, textarea, select, .news-card, .gallery-image, label { cursor: none; }
        a { text-decoration: none; color: inherit; transition: 0.3s; }
        ul { list-style: none; padding: 0; margin: 0; }

        /* CURSEUR */
        .cursor-dot { width: 8px; height: 8px; background-color: white; position: fixed; top: 0; left: 0; transform: translate(-50%, -50%); border-radius: 50%; z-index: 9999; pointer-events: none; box-shadow: 0 0 10px white; }
        .cursor-outline { width: 40px; height: 40px; border: 2px solid var(--accent); position: fixed; top: 0; left: 0; transform: translate(-50%, -50%); border-radius: 50%; z-index: 9998; pointer-events: none; transition: width 0.2s, height 0.2s, background-color 0.2s; box-shadow: 0 0 20px rgba(224, 0, 91, 0.3); }
        body.hovering .cursor-outline { width: 70px; height: 70px; background-color: rgba(224, 0, 91, 0.1); border-color: white; mix-blend-mode: screen; }

        /* FOND */
        .global-video-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -10; }
        .global-video-container video { width: 100%; height: 100%; object-fit: cover; }
        .global-video-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(5, 5, 5, 0.7); z-index: -9; }

        /* HEADER & MENU */
        header { position:fixed; top:20px; left:50%; translate:-50% 0; width:96%; max-width:1400px; padding:10px 22px; background:rgba(20,20,20,.6) !important; backdrop-filter:blur(20px); border:1px solid var(--glass-border); border-radius:100px; display:flex; justify-content:space-between; align-items:center; z-index:1000; box-shadow:0 10px 30px rgba(0,0,0,.5); }
        .logo-img { max-height:38px; width:auto; display:block; }
        .desktop-nav ul { display:flex; gap:16px; }
        .desktop-nav a { color:#ccc; font-size:.8rem; font-weight:600; text-transform:uppercase; letter-spacing:.8px; position:relative; white-space:nowrap; }
        .desktop-nav a:hover, .desktop-nav a.active { color:#fff; }
        .desktop-nav a::after { content:''; position:absolute; bottom:-5px; left:0; width:0; height:2px; background:var(--accent); transition:.3s; }
        .desktop-nav a:hover::after { width: 100%; }
        
        /* CORRECTION DU MENU DÉROULANT */
        .desktop-nav li.dropdown { position: relative; }
        .dropdown-menu { position: fixed; top: 70px; left: 0; width: 100%; background: rgba(8,8,8,.97); backdrop-filter: blur(20px); border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); display: flex; flex-direction: row; justify-content: center; align-items: stretch; padding: 0; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; transform: translateY(-6px); z-index: 999; }
        .desktop-nav li.dropdown:hover .dropdown-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
        .desktop-nav li.dropdown::after { content: ''; position: absolute; top: 100%; left: -15px; width: calc(100% + 30px); height: 40px; background: transparent; z-index: 1; }
        
        .dropdown-menu li { width: auto; border-right: 1px solid rgba(255,255,255,.07); }
        .dropdown-menu li:last-child { border-right:none; }
        .dropdown-menu a { display:flex; align-items:center; padding:18px 26px; color:#888; font-size:.7rem; text-transform:uppercase; letter-spacing:1.5px; transition:.25s; white-space:nowrap; height:100%; }
        .dropdown-menu a::after { display:none; }
        .dropdown-menu a:hover { color:#fff; background:rgba(224,0,91,.07); }
        .dropdown-menu a.active { color:var(--accent); border-bottom:2px solid var(--accent); }
        .burger-btn { display:none; font-size:1.5rem; color:#fff; cursor:pointer; margin-left:15px; }
        .mobile-overlay { position:fixed; inset:0; background:rgba(8,8,8,.99); backdrop-filter:blur(15px); z-index:1001; display:flex; flex-direction:column; justify-content:center; align-items:center; translate:100% 0; transition:translate .4s cubic-bezier(.4,0,.2,1); }
        .mobile-overlay.active { translate:0 0; }
        .mobile-close { position:absolute; top:20px; right:30px; font-size:3.5rem; color:#fff; cursor:pointer; z-index:1002; transition:.3s; line-height:1; }
        .mobile-close:hover { color:var(--accent); rotate:90deg; }
        .cta-btn { background:#fff; color:#000; padding:10px 18px; border-radius:50px; font-weight:700; font-size:.75rem; transition:.4s; border:1px solid #fff; white-space:nowrap; animation:pulseCta 3s infinite; }
        @keyframes pulseCta { 0%{box-shadow:0 0 0 0 rgba(255,255,255,.4)} 70%{box-shadow:0 0 0 10px rgba(255,255,255,0)} 100%{box-shadow:0 0 0 0 rgba(255,255,255,0)} }
        .cta-btn:hover { background:var(--accent); border-color:var(--accent); color:#fff; box-shadow:0 0 20px rgba(224,0,91,.6); translate:0 -2px; animation:none; }


        /* PAGE HEADER */
        .actu-header { padding: 180px 5% 50px; text-align: center; background: transparent !important; position: relative; z-index: 1; }
        .page-title { font-family: 'Syne'; font-size: 4rem; text-transform: uppercase; margin-bottom: 20px; margin-top: 0; }
        .text-glow-anim { background: linear-gradient(to right, #ffffff 20%, #e0005b 50%, #2D5BFF 80%, #ffffff 100%); background-size: 200% auto; color: #fff; background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: shine 5s linear infinite; }
        @keyframes shine { to { background-position: 200% center; } }
        .reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
        .reveal.active { opacity: 1; transform: translateY(0); }
        .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

        /* GRID ARTICLES */
        .news-section { padding: 0 10% 80px; position: relative; z-index: 1; }
        .news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }

        .news-card {
            background: rgba(20, 20, 20, 0.6); border: 1px solid var(--glass-border); 
            border-radius: 20px; overflow: hidden; transition: 0.4s; 
            display: flex; flex-direction: column; height: 100%; backdrop-filter: blur(10px);
            cursor: pointer; position: relative;
        }
        .news-card:hover { transform: translateY(-10px); border-color: var(--accent); box-shadow: 0 10px 30px rgba(224,0,91,0.2); }
        .news-img-wrapper { height: 220px; overflow: hidden; position: relative; }
        .news-img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
        .news-card:hover .news-img { transform: scale(1.1); }
        .news-content { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
        
        .news-date { font-size: 0.8rem; color: var(--accent); font-weight: 700; margin-bottom: 10px; display: block; letter-spacing: 1px; }
        
        .news-title { font-family: 'Syne'; font-size: 1.4rem; margin-bottom: 15px; line-height: 1.3; color: white; }
        .news-excerpt { color: #aaa; font-size: 0.9rem; line-height: 1.6; margin-bottom: 20px; flex-grow: 1; }
        .read-more { font-weight: 700; text-transform: uppercase; font-size: 0.8rem; display: flex; align-items: center; gap: 10px; margin-top: auto; color: white; }
        .news-card:hover .read-more i { transform: translateX(5px); }

        /* MODALE ARTICLE */
        #news-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.98); z-index: 2000; display: flex; flex-direction: column; opacity: 0; pointer-events: none; transition: 0.4s; }
        #news-modal.active { opacity: 1; pointer-events: all; }
        .modal-header { padding: 20px 5%; display: flex; justify-content: space-between; align-items: center; background: rgba(20,20,20,0.8); backdrop-filter: blur(10px); border-bottom: 1px solid var(--glass-border); }
        .modal-title { font-family: 'Syne'; font-size: 1.5rem; text-transform: uppercase; color: white; max-width: 80%; }
        .modal-close { font-size: 2rem; color: white; cursor: pointer; transition: 0.3s; }
        .modal-close:hover { color: var(--accent); transform: rotate(90deg); }
        .modal-body { flex-grow: 1; overflow-y: auto; padding: 40px 10%; max-width: 1200px; margin: 0 auto; }
        
        .article-date { color: var(--accent); font-weight: 700; margin-bottom: 20px; display: block; }
        .article-text { color: #ddd; line-height: 1.8; font-size: 1rem; margin-bottom: 30px; white-space: pre-line; }
        
        .modal-gallery-grid { column-count: 2; column-gap: 20px; }
        .gallery-image { width: 100%; height: auto; display: block; margin-bottom: 20px; border-radius: 15px; border: 1px solid rgba(255,255,255,0.1); transition: 0.3s; cursor: zoom-in; break-inside: avoid; }
        .gallery-image:hover { border-color: var(--accent); opacity: 0.9; }

        /* CATEGORY BADGES */
        .news-badge { display: inline-block; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; padding: 3px 10px; border-radius: 50px; }
        .badge-festival { background: rgba(45,91,255,0.15); color: #7b9fff; border: 1px solid rgba(45,91,255,0.3); }
        .badge-concert { background: rgba(224,0,91,0.15); color: #ff6faa; border: 1px solid rgba(224,0,91,0.3); }
        .badge-corporate { background: rgba(0,200,140,0.12); color: #4de8b8; border: 1px solid rgba(0,200,140,0.25); }
        .badge-sportif { background: rgba(255,160,0,0.12); color: #ffbe4a; border: 1px solid rgba(255,160,0,0.25); }
        .badge-commemoration { background: rgba(160,160,160,0.12); color: #d0d0d0; border: 1px solid rgba(160,160,160,0.25); }
        .badge-partenariat { background: rgba(255,80,0,0.12); color: #ff9d6f; border: 1px solid rgba(255,80,0,0.25); }

        /* NEWS CARD META */
        .news-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
        .news-photo-count { font-size: 0.7rem; color: #555; display: flex; align-items: center; gap: 4px; }
        .news-location { font-size: 0.75rem; color: #555; margin-top: 6px; margin-bottom: 10px; display: flex; align-items: center; gap: 5px; }
        .news-location i { color: var(--accent); font-size: 0.65rem; }

        /* FILTER BAR */
        .filter-bar { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 50px; padding: 0 10%; }
        .filter-btn { background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); color: #aaa; padding: 8px 20px; border-radius: 50px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: 0.3s; }
        .filter-btn:hover, .filter-btn.active { background: var(--accent); border-color: var(--accent); color: white; }

        /* MODAL ENRICHIE – TECH GRID */
        .modal-meta-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid var(--glass-border); }
        .modal-info { font-size: 0.8rem; color: #666; display: flex; align-items: center; gap: 5px; }
        .modal-info i { color: var(--accent); }
        .article-section { margin-bottom: 28px; }
        .article-section-title { font-family: 'Syne', sans-serif; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; color: var(--accent); margin-bottom: 12px; }
        .article-context { color: #ddd; line-height: 1.8; font-size: 1rem; }
	    .article-challenge { color:#f1f1f4; font-size:1.05rem; line-height:1.85; padding:22px 24px; border-left:3px solid var(--accent); border-radius:0 14px 14px 0; background:linear-gradient(90deg,rgba(224,0,91,.11),rgba(45,91,255,.035)); }
	    .article-context a { color: var(--accent); font-weight: 700; text-decoration: none; border-bottom: 1px dashed var(--accent); transition: 0.3s; }
        .article-context a:hover { color: white; border-bottom-style: solid; border-bottom-color: white; }
        .tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-top: 12px; }
        .tech-item { background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border); border-radius: 10px; padding: 14px; }
        .tech-item-label { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 5px; }
        .tech-item-value { font-size: 0.82rem; color: #bbb; line-height: 1.55; }

        @media (max-width: 768px) {
            .filter-bar { gap: 8px; padding: 0 5%; }
            .filter-btn { font-size: 0.65rem; padding: 7px 14px; }
            .tech-grid { grid-template-columns: 1fr; }
            .modal-gallery-grid { column-count: 1; }
        }

        /* LIGHTBOX */
        #img-lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 3000; display: flex; justify-content: center; align-items: center; display: none; }
        #img-lightbox.active { display: flex; }
        #lightbox-img { max-width: 90vw; max-height: 90vh; border: 2px solid var(--accent); border-radius: 10px; }

        /* FORMULAIRE */
        .contact-section { padding: 80px 5%; display: flex; justify-content: center; align-items: center; position: relative; border-top: 1px solid var(--glass-border); }
        .glass-form-container { width: 100%; max-width: 1000px; background: rgba(10, 10, 10, 0.7); border: 1px solid var(--glass-border); border-radius: 30px; padding: 60px; position: relative; overflow: hidden; box-shadow: 0 20px 80px rgba(0,0,0,0.8); backdrop-filter: blur(30px); }
        .glass-form-container::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
        .form-header { text-align: center; margin-bottom: 50px; }
        .form-header h2 { font-family: 'Syne'; font-size: 2.5rem; margin-bottom: 10px; }
        .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
        .full-width { grid-column: span 2; }
        .input-group { position: relative; margin-bottom: 10px; }
        
        .input-field { 
            width: 100%; background: rgba(0,0,0,0.4); border: 1px solid #444; padding: 18px 20px; 
            border-radius: 12px; color: white; font-size: 1rem; transition: 0.3s; 
            position: relative; z-index: 50;
        }
        input[type="date"] { color: white; }
        input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); cursor: pointer; z-index: 51; }
        .input-field:focus { border-color: var(--accent); background: rgba(224,0,91,0.05); box-shadow: 0 0 15px rgba(224,0,91,0.2); }
        
        .input-label { 
            position: absolute; left: 20px; top: 18px; 
            color: #888; pointer-events: none; transition: 0.3s; 
            font-size: 0.9rem; text-transform: uppercase; font-weight: 600; letter-spacing: 1px; 
            z-index: 55;
        }
        .input-group:focus-within .input-label,
        .input-group.has-content .input-label,
        .input-group.date-group .input-label { 
            top: -12px; left: 10px; font-size: 0.75rem; color: var(--accent); background: #000; padding: 0 5px; border-radius: 3px; 
        }

        .submit-btn { width: 100%; padding: 20px; margin-top: 20px; background: linear-gradient(45deg, var(--primary), var(--accent)); border: none; border-radius: 12px; color: white; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; cursor: pointer; transition: 0.3s; position: relative; z-index: 50; }
        .submit-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(224, 0, 91, 0.4); }

        /* CASES A COCHER */
        .checkbox-group { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; margin-top: 10px; }
        .checkbox-label { display: flex; align-items: center; gap: 10px; color: #ccc; font-size: 0.9rem; cursor: pointer; position: relative; z-index: 50; }
        .checkbox-input { appearance: none; width: 20px; height: 20px; border: 2px solid #555; border-radius: 4px; background: rgba(0,0,0,0.5); cursor: pointer; position: relative; display: grid; place-content: center; }
        .checkbox-input:checked { background: var(--accent); border-color: var(--accent); }
        .checkbox-input:checked::after { content: '\f00c'; font-family: 'Font Awesome 5 Free'; font-weight: 900; color: white; font-size: 0.8rem; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }

        textarea.input-field { resize: vertical; min-height: 150px; }
        select.input-field { appearance: none; color: #ccc; cursor: pointer; }
        select.input-field option { background: #111; color: white; padding: 10px; }

        /* FOOTER */
        footer { border-top: 1px solid var(--glass-border); padding: 80px 10% 40px; background: var(--footer-bg); color: var(--text-muted); font-size: 0.95rem; text-align: center; position: relative; z-index: 100; }
        .footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 50px; margin-bottom: 60px; }
        .footer-col h4 { color: white; font-family: 'Syne'; margin-bottom: 25px; font-size: 1.2rem; }
        .footer-logo { max-width: 150px; margin: 0 auto 20px auto; display: block; }
        .contact-list li { display: flex; align-items: center; justify-content: center; gap: 15px; margin-bottom: 15px; }
        .contact-list li i { color: var(--accent); font-size: 1.1rem; }
        .contact-list li a { color: var(--text-muted); transition: 0.3s; }
        .contact-list li a:hover { color: white; padding-left: 5px; }
        .social-links { display: flex; gap: 15px; justify-content: center; }
        .social-btn { width: 45px; height: 45px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; color: white; transition: 0.3s; }
        .social-btn:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
        .copyright { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; font-size: 0.8rem; opacity: 0.6; }

        @media (max-width: 768px) {
            header { width: 100%; padding: 10px 15px; border-radius: 0; top: 0; background: rgba(10, 10, 10, 0.9) !important; justify-content: space-between; }
            .logo-img { max-height: 30px; }
            .desktop-nav { display: none !important; }
            .burger-btn { display: block; }
            .cta-btn { font-size: 0.7rem; padding: 8px 12px; margin: 0 10px; }
            .page-title { font-size: 2.5rem; }
            .news-grid { grid-template-columns: 1fr; }
            .modal-gallery-grid { column-count: 1; }
            .footer-grid { grid-template-columns: 1fr; }
            .form-grid { grid-template-columns: 1fr; }
            .full-width { grid-column: span 1; }
            .glass-form-container { padding: 20px; }
            .cursor-dot, .cursor-outline { display: none; }
            body, a, button, input, select, textarea, label { cursor: auto !important; }
        }
