:root { --magenta: #FF1080; --black: #000; --white: #FFF; }
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }
body { font-family: 'Open Sans', sans-serif; background: var(--white); color: var(--black); }
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; font-weight: 800; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-white { color: var(--white); }
.bg-black { background: var(--black); }
.section { padding: 80px 0; }
h2 { font-size: 2.5rem; margin-bottom: 40px; position: relative; text-align: center; }
h2:after { content: ''; width: 60px; height: 4px; background: var(--magenta); position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); }
img { max-width: 100%; height: auto; }

/* ICONES UNIFORMES ROSE */
i, .fas, .fab { color: var(--magenta) !important; }

/* PRELOADER */
#preloader { position: fixed; inset: 0; background: var(--black); z-index: 9999; display: flex; align-items: center; justify-content: center; transition: opacity 1s; }
#logo-trace { stroke-dasharray: 300; stroke-dashoffset: 300; }

/* HEADER & RESPONSIVE NAV */
header { position: fixed; top: 0; width: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(10px); z-index: 100; padding: 15px 0; }
header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { height: 120px; transition: 0.3s; }
nav { display: flex; gap: 20px; align-items: center; transition: 0.3s; }
nav a { color: var(--white); text-decoration: none; font-family: 'Montserrat'; font-size: 14px; transition: 0.3s; }
nav a:hover { color: var(--magenta); }
.socials a { margin-left: 12px; font-size: 22px; }
.menu-toggle { display: none; font-size: 28px; cursor: pointer; }

/* HERO D'ACCUEIL */
.hero { height: 100vh; background: var(--black); display: flex; align-items: center; justify-content: center; position: relative; }
#particles { position: absolute; inset: 0; }
.hero-content { z-index: 2; text-align: center; padding: 0 20px; }
.hero h1 { font-size: 4rem; color: var(--white); margin-bottom: 20px; }

/* EN-TÊTE DES PAGES INTERNES (Contact, A propos, Réalisations...) */
.page-hero { background: var(--black); color: var(--white); text-align: center; padding: 160px 20px 80px 20px; }
.page-hero h1 { font-size: 3.5rem; color: var(--magenta); margin-bottom: 15px; }
.page-hero p { font-size: 1.2rem; color: #ccc; }

/* BOUTONS */
.btn { background: var(--magenta); color: var(--white); padding: 15px 30px; border-radius: 50px; text-decoration: none; font-weight: 700; display: inline-block; transition: 0.3s; border: none; cursor: pointer; }
.btn:hover { transform: scale(1.05); }
.btn-outline { border: 2px solid var(--magenta); color: var(--magenta); padding: 12px 25px; border-radius: 50px; text-decoration: none; display: inline-block; transition: 0.3s; }
.btn-outline:hover { background: var(--magenta); color: var(--white); }

/* GRIDS & CARDS */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.card { background: #f5f5f5; padding: 20px; border-radius: 10px; display: flex; flex-direction: column; }
.card-img-wrapper { width: 100%; height: 220px; overflow: hidden; border-radius: 8px; margin-bottom: 15px; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.card:hover img { transform: scale(1.05); }
.meta { font-size: 12px; color: #666; margin-bottom: 8px; display: flex; gap: 15px; font-weight: 600; }
.card h3 { margin-bottom: 10px; font-size: 1.25rem; }
.card p { margin-bottom: 15px; flex-grow: 1; color: #444; font-size: 0.95rem; line-height: 1.5; }
.card a { color: var(--magenta); text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }

/* PORTFOLIO & REALISATIONS */
.filter-buttons { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn { background: transparent; border: 2px solid var(--magenta); color: var(--magenta); padding: 10px 25px; border-radius: 50px; cursor: pointer; font-weight: bold; transition: 0.3s; }
.filter-btn:hover, .filter-btn.active { background: var(--magenta); color: var(--white); }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.portfolio-item { background: #f9f9f9; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s; }
.portfolio-item:hover { transform: translateY(-5px); }
.portfolio-item img { width: 100%; height: 220px; object-fit: cover; display: block; border-bottom: 3px solid var(--magenta); }
.portfolio-info { padding: 20px; text-align: center; }
.portfolio-info h3 { color: var(--black); margin-bottom: 5px; font-size: 1.2rem; }
.portfolio-info p { color: #777; font-size: 0.9rem; margin-bottom: 15px; }
.portfolio-info a { display: inline-block; color: var(--magenta); text-decoration: none; font-weight: bold; font-size: 0.9rem; transition: 0.3s; }
.portfolio-info a:hover { color: var(--black); }

/* TESTIMONIAL */
.testimonial { border: 2px solid var(--magenta); padding: 20px; border-radius: 10px; color: var(--white); }
.testimonial h4 { margin-top: 15px; color: var(--magenta); }

/* GRAPHIC DESIGN IMAGES */
.grid-3 a img, .grid-4 img { width: 100%; border-radius: 8px; transition: 0.4s; cursor: pointer; }
.grid-3 a img:hover, .grid-4 img:hover { transform: scale(1.05); }

/* PUB OPTIMISÉE */
.ad-section { text-align: center; padding: 40px 20px; }
.ad-label { font-size: 12px; color: #888; margin-bottom: 10px; text-transform: uppercase; }
.ad-img { max-width: 300px; width: 100%; height: auto; border-radius: 8px; border: 2px solid var(--magenta); box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: 0.3s; }
.ad-img:hover { transform: scale(1.02); }

/* NEWSLETTER */
.newsletter { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.newsletter input { padding: 15px; border: 2px solid #ddd; border-radius: 50px; width: 100%; max-width: 300px; }

/* CEO SECTION */
.ceo-photo { width: 200px; height: 200px; border-radius: 50%; border: 4px solid var(--magenta); margin-bottom: 20px; object-fit: cover; display: block; margin-left: auto; margin-right: auto; }

/* VIDEO */
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 10px; overflow: hidden; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* FOOTER */
footer { background: var(--black); color: var(--white); padding: 60px 0 20px; border-top: 3px solid var(--magenta); }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.logo-footer { height: 40px; margin-bottom: 10px; }
footer h4 { color: var(--magenta); margin-bottom: 15px; }
footer a { color: var(--white); text-decoration: none; display: block; margin-bottom: 8px; transition: 0.3s; }
footer a:hover { color: var(--magenta); }
.footer-socials { display: flex; flex-direction: row; gap: 20px; margin-top: 15px; }
.footer-socials a { margin-bottom: 0; font-size: 24px; }
.copyright { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid #333; font-size: 14px; }

/* MODAL */
.modal { display: none; position: fixed; z-index: 9999; inset: 0; background: rgba(0,0,0,0.9); justify-content: center; align-items: center; }
.modal img { max-width: 90%; max-height: 90%; border: 3px solid var(--magenta); border-radius: 8px; }

/* SECTION PARTENAIRES */
.partners-carousel { overflow: hidden; width: 100%; position: relative; padding: 30px 0; background: #fafafa; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.partners-carousel::before, .partners-carousel::after { content: ""; position: absolute; top: 0; width: 100px; height: 100%; z-index: 2; pointer-events: none; }
.partners-carousel::before { left: 0; background: linear-gradient(to right, var(--white), transparent); }
.partners-carousel::after { right: 0; background: linear-gradient(to left, var(--white), transparent); }
.partners-track { display: flex; width: max-content; align-items: center; animation: scrollPartners 25s linear infinite; }
.partners-track:hover { animation-play-state: paused; }
.partner-logo { height: 60px; width: auto; object-fit: contain; margin: 0 45px; filter: grayscale(100%); opacity: 0.6; transition: all 0.3s ease; }
.partner-logo:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.08); }
@keyframes scrollPartners { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* COOKIES POPUP */
.cookie-popup { position: fixed; bottom: 20px; left: 20px; right: 20px; background: #1a1a1a; color: #fff; padding: 20px; border-radius: 15px; border: 2px solid var(--magenta); box-shadow: 0 10px 40px rgba(255,16,128,0.3); z-index: 9999; display: none; animation: slideUp 0.5s ease; }
.cookie-popup.show { display: block; }
@keyframes slideUp { from { transform: translateY(100px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie-content { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cookie-icon { font-size: 40px; }
.cookie-content h3 { font-family: 'Montserrat'; margin-bottom: 5px; color: var(--magenta); }
.cookie-content p { font-size: 14px; max-width: 600px; }
.cookie-buttons { display: flex; gap: 10px; }
.btn-cookie-accept { background: var(--magenta); color: #fff; border: none; padding: 12px 25px; border-radius: 50px; font-weight: 700; cursor: pointer; transition: 0.3s; }
.btn-cookie-accept:hover { transform: scale(1.05); }
.btn-cookie-refuse { background: transparent; color: #fff; border: 2px solid #666; padding: 10px 23px; border-radius: 50px; font-weight: 700; cursor: pointer; transition: 0.3s; }
.btn-cookie-refuse:hover { border-color: var(--magenta); }

/* PAGE CONTACT & A PROPOS */
.grid-2, .grid-2-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.logo-center, .logo-large { height: 150px; margin: 20px auto; display: block; }
.contact-infos .info-item { display: flex; gap: 15px; margin-bottom: 25px; }
.contact-infos .info-item i { font-size: 25px; color: var(--magenta); margin-top: 5px; }
.contact-infos h3 { font-size: 18px; margin-bottom: 5px; }
.contact-infos a { color: var(--black); text-decoration: none; }
.contact-infos a:hover { color: var(--magenta); }
.socials-contact a { font-size: 26px; color: var(--magenta); margin-right: 15px; transition: 0.3s; }
.socials-contact a:hover { color: var(--black); }
.contact-form-box { background: #f9f9f9; padding: 40px; border-radius: 15px; border-left: 4px solid var(--magenta); }
.contact-form { display: flex; flex-direction: column; gap: 15px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px; border: 1px solid #ccc; border-radius: 5px; font-family: 'Open Sans', sans-serif; }
.map-section { padding: 0 0 80px 0; }
.map-section h2 { margin-bottom: 20px; }
.value-card { padding: 20px; text-align: center; }

/* RESPONSIVE DESIGN GLOBALE */
@media(max-width:992px){
  .hero h1, .page-hero h1 { font-size: 3rem; }
  .grid-3, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media(max-width:768px){
  .menu-toggle { display: block; }
  header .container { flex-wrap: wrap; }
  .logo { height: 70px; }
  nav { display: none; flex-direction: column; width: 100%; background: rgba(0,0,0,0.95); margin-top: 15px; padding: 20px; border-radius: 10px; text-align: center; }
  nav.active { display: flex; }
  nav a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid #333; display: block; width: 100%; }
  nav a:last-child { border-bottom: none; }
  .socials { justify-content: center; margin-top: 15px; }
  .hero h1, .page-hero h1 { font-size: 2.2rem; }
  .grid-3, .grid-4, .grid-2, .grid-2-contact, .footer-grid { grid-template-columns: 1fr; }
  .footer-socials { justify-content: flex-start; }
  h2 { font-size: 2rem; }
  .section { padding: 50px 0; }
  .cookie-content { flex-direction: column; text-align: center; }
}