/*-----------------------------------------------------------------------------------

    Theme Name: COVERINK - Covering & Solutions Visuelles
    Author: Atelier COVERINK
    Support: contact@coverink.fr
    Description: Site web professionnel pour atelier de covering
    Version: 2.1 - Portfolio Update
    
-----------------------------------------------------------------------------------*/

@import url('https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700,800,900&display=swap');

:root {
    --primary-color: #6ec6d9;
    --primary-color-dark: #4ba8bc;
    --secondary-color: #ffffff;
    --dark-color: #0a0a0a;
    --grey-color: #1a1a1a;
    --text-color: #ececec;
    --font-family: 'Poppins', sans-serif;
    --header-bg: rgba(10, 10, 10, 0.95);
    --card-border: rgba(110, 198, 217, 0.2);
    --card-border-hover: rgba(110, 198, 217, 0.4);
    --card-shadow: rgba(110, 198, 217, 0.2);
    --overlay-bg: rgba(10, 10, 10, 0.4);
    --input-bg: #0a0a0a;
    --input-border: rgba(110, 198, 217, 0.3);
    --input-text: #ffffff;
    --input-placeholder: rgba(236, 236, 236, 0.5);
    --nav-link-color: #ffffff;
    --heading-color: #ffffff;
    --caption-muted: rgba(236, 236, 236, 0.6);
}

/* ========================================
   LIGHT MODE THEME
   ======================================== */
[data-theme="light"] {
    --primary-color: #6ec6d9;
    --primary-color-dark: #1e7a8c;
    --secondary-color: #1a1a2e;
    --dark-color: #f5f5f7;
    --grey-color: #ffffff;
    --text-color: #4a4a5a;
    --header-bg: rgba(0, 0, 0, 0.97);
    --card-border: rgba(42, 143, 163, 0.15);
    --card-border-hover: rgba(42, 143, 163, 0.35);
    --card-shadow: rgba(42, 143, 163, 0.12);
    --overlay-bg: rgba(245, 245, 247, 0.3);
    --input-bg: #f0f0f3;
    --input-border: rgba(42, 143, 163, 0.25);
    --input-text: #1a1a2e;
    --input-placeholder: rgba(74, 74, 90, 0.5);
    --nav-link-color: #1a1a2e;
    --heading-color: #1a1a2e;
    --caption-muted: rgba(74, 74, 90, 0.6);
}

/* Light mode overrides that need !important or specific selectors */
[data-theme="light"] .header-section.sticky {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    background: var(--header-bg);
}

[data-theme="light"] .mainmenu .nav-link {
    color: #fff;
}

[data-theme="light"] .lang-toggle-btn {
    color: #fff;
}

[data-theme="light"] .mainmenu .nav-link:hover,
[data-theme="light"] .mainmenu .nav-link.active {
    color: var(--primary-color);
}

[data-theme="light"] .lang-toggle-btn:hover {
    color: var(--primary-color);
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
    color: var(--heading-color);
}

[data-theme="light"] .hero-section::before {
    background: rgba(245, 245, 247, 0.15);
}

[data-theme="light"] .hero-content h1,
[data-theme="light"] .hero-content p,
[data-theme="light"] .arrow-animated {
    color: #ffffff;
}

[data-theme="light"] .hero-content h5 {
    color: #6ec6d9;
}

[data-theme="light"] .hero-content h1 span.rotate {
    color: #6ec6d9;
}

[data-theme="light"] .social-link li a {
    border-color: #ffffff;
    color: #ffffff;
}

[data-theme="light"] .social-link li a:hover {
    background: #ffffff;
    color: var(--primary-color);
}

[data-theme="light"] .service-content {
    background: var(--grey-color);
    border-color: var(--card-border);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .service-content:hover {
    background: rgba(42, 143, 163, 0.03);
    border-color: var(--primary-color);
    box-shadow: 0 10px 35px var(--card-shadow);
}

[data-theme="light"] .service-content h3 {
    color: var(--heading-color);
}

[data-theme="light"] .about-section {
    background: var(--dark-color);
}

[data-theme="light"] .about-bullets .bullet {
    background: rgba(42, 143, 163, 0.2);
}

[data-theme="light"] .about-bullets .bullet.active {
    background: var(--primary-color);
}

[data-theme="light"] .about-bullets .bullet::after {
    background: rgba(42, 143, 163, 0.9);
    color: #ffffff;
}

[data-theme="light"] .expertise-list li {
    color: var(--text-color);
}

[data-theme="light"] .portfolio-lightbox {
    background: rgba(245, 245, 247, 0.97);
}

[data-theme="light"] .lightbox-close,
[data-theme="light"] .lightbox-prev,
[data-theme="light"] .lightbox-next {
    background: rgba(42, 143, 163, 0.15);
    color: var(--heading-color);
}

[data-theme="light"] .lightbox-close:hover,
[data-theme="light"] .lightbox-prev:hover,
[data-theme="light"] .lightbox-next:hover {
    background: var(--primary-color);
    color: #ffffff;
}

[data-theme="light"] .cta-box {
    border-color: var(--primary-color);
    background: var(--grey-color);
    box-shadow: 0 4px 25px rgba(42, 143, 163, 0.08);
}

[data-theme="light"] .cta-box h2,
[data-theme="light"] .cta-box h3 {
    color: var(--heading-color);
}

[data-theme="light"] .cta-box p {
    color: var(--text-color);
}

[data-theme="light"] .contact-form {
    background: var(--grey-color);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .form-control {
    background: var(--input-bg);
    border-color: var(--input-border);
    color: var(--input-text);
}

[data-theme="light"] .form-control:focus {
    background: var(--input-bg);
    color: var(--input-text);
    border-color: var(--primary-color);
    box-shadow: 0 0 12px rgba(42, 143, 163, 0.15);
}

[data-theme="light"] .form-control::placeholder {
    color: var(--input-placeholder);
}

[data-theme="light"] .footer-section {
    background: #eaeaef;
    border-top-color: var(--card-border);
}

[data-theme="light"] .footer-col-title {
    color: var(--heading-color);
}

[data-theme="light"] .footer-links a {
    color: var(--text-color);
}

[data-theme="light"] .footer-links a:hover {
    color: var(--primary-color);
}

[data-theme="light"] .footer-contact li {
    color: var(--text-color);
}

[data-theme="light"] .footer-bottom {
    border-top-color: rgba(42, 143, 163, 0.1);
    color: var(--text-color);
}

[data-theme="light"] .footer-bottom a {
    color: var(--text-color);
}

[data-theme="light"] .footer-bottom a:hover {
    color: var(--primary-color);
}

[data-theme="light"] .footer-social a {
    border-color: rgba(42, 143, 163, 0.3);
    color: var(--primary-color);
}

[data-theme="light"] .footer-social a:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

[data-theme="light"] .site-preloader-wrap {
    background: var(--dark-color);
}

[data-theme="light"] .engagement-section,
[data-theme="light"] .CTA-Section,
[data-theme="light"] .contact-section,
[data-theme="light"] .portfolio-section {
    border-top-color: var(--card-border);
}

[data-theme="light"] .hyper_background_section::before {
    opacity: 0.08;
}

/* ========================================
   THEME TOGGLE BUTTON
   ======================================== */
.theme-toggle {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: var(--grey-color);
    color: var(--primary-color);
    cursor: pointer;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    opacity: 0.3;
}

.theme-toggle:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(110, 198, 217, 0.3);
    background: var(--primary-color);
    color: var(--dark-color);
    opacity: 1;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: absolute;
    transition: all 0.4s ease;
}

.theme-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

[data-theme="light"] .theme-toggle .icon-sun {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

[data-theme="light"] .theme-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Smooth transition on theme change — ciblé pour ne pas écraser les transitions individuelles */
body,
.header-section,
.header-section.sticky,
.footer-section,
.footer-grid,
.footer-col-title,
.footer-links a,
.footer-contact li,
.footer-bottom,
.footer-bottom a,
.service-content,
.contact-form,
.form-control,
.cta-box,
h1, h2, h3, h4, h5, h6,
p, span:not(.logo-pulse-ring), a,
section,
.section,
.bg-dark {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Theme Default CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-color);
    background: var(--dark-color);
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.2;
}

h1 { font-size: 60px; }
h2 { font-size: 42px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }

p {
    margin-bottom: 15px;
    line-height: 1.8;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover, a:focus {
    color: var(--secondary-color);
    text-decoration: none;
    outline: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.section {
    padding: 100px 0;
    position: relative;
}

.bg-dark {
    background: var(--grey-color);
}

/* Preloader */
.site-preloader-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark-color);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(110, 198, 217, 0.3);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   LOGO PULSE ANIMATION
   ======================================== */
.logo-pulse-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    overflow: visible !important;
}

.logo-pulse-ring {
    position: absolute;
    /* Position sur le cercle INK : ~79.6% depuis la gauche, ~50% depuis le haut */
    left: 79.6%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.65);
    opacity: 0;
    pointer-events: none;
    animation: logoPulseWave 3.5s ease-out infinite !important;
    /* Empêcher les transitions globales d'interférer */
    transition: none !important;
}

.logo-pulse-ring.ring-2 {
    animation-delay: 1.2s;
}

@keyframes logoPulseWave {
    0% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(0.7);
    }
    70% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.6);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.6);
    }
}

[data-theme="light"] .logo-pulse-ring {
    border-color: rgba(110, 198, 217, 0.4);
}

/* ========================================
   PAGE MENTIONS LEGALES — Header toujours noir
   ======================================== */
.page-mentions-legales .header-section {
    background: rgba(10, 10, 10, 0.95) !important;
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .page-mentions-legales .header-section {
    background: rgba(0, 0, 0, 0.97) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.page-mentions-legales .mainmenu .nav-link {
    color: #fff;
}

.page-mentions-legales .mainmenu .nav-link:hover,
.page-mentions-legales .mainmenu .nav-link.active {
    color: var(--primary-color);
}

/* Header CSS */
.header-section {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 20px 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(1px);
}

.header-section.sticky {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    background: rgba(10, 10, 10, 0.95);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand img {
    height: 55px;
    transition: all 0.3s ease;
}

.mainmenu .nav {
    display: flex;
    align-items: center;
}

.mainmenu .nav li {
    margin-left: 35px;
}

.mainmenu .nav-link {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
}

.mainmenu .nav-link:hover,
.mainmenu .nav-link.active {
    color: var(--primary-color);
}

.mainmenu .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.mainmenu .nav-link:hover::after,
.mainmenu .nav-link.active::after {
    width: 100%;
}

.lang-toggle-btn {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 6px 12px;
    border: 1px solid rgba(110, 198, 217, 0.55);
    background: rgba(110, 198, 217, 0.08);
    cursor: pointer;
    font-family: var(--font-family);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
    overflow: hidden;
    transition: all 0.35s ease;
}

.lang-toggle-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(110, 198, 217, 0), rgba(110, 198, 217, 0.3), rgba(110, 198, 217, 0));
    transform: translateX(-140%);
    transition: transform 0.5s ease;
    pointer-events: none;
}

.lang-toggle-btn:hover {
    color: var(--dark-color);
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(110, 198, 217, 0.25);
}

.lang-toggle-btn:hover::after {
    transform: translateX(140%);
}

.lang-toggle-btn .lang-icon {
    font-size: 14px;
    opacity: 0.85;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.lang-toggle-btn:hover .lang-icon {
    transform: scale(1.1);
    opacity: 1;
}

[data-theme="light"] .lang-toggle-btn {
    color: #ffffff;
    border-color: rgba(110, 198, 217, 0.7);
    background: rgba(110, 198, 217, 0.16);
}

[data-theme="light"] .lang-toggle-btn:hover {
    color: #0a0a0a;
}

.header-section:not(.sticky) .lang-toggle-btn:hover {
    color: #ffffff;
    background: rgba(110, 198, 217, 0.22);
    border-color: var(--primary-color);
}

.header-section.sticky .lang-toggle-btn:hover {
    color: #0a0a0a;
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: url('../img/hero-background.jpg') center center / cover no-repeat;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h5 {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-content h1 {
    font-size: 60px;
    font-weight: 800;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-content h1 span.rotate {
    color: var(--primary-color);
    display: block;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.6s both;
}

.social-link {
    display: flex;
    justify-content: center;
    gap: 15px;
    animation: fadeInUp 1s ease 0.8s both;
}

.social-link li a {
    width: 45px;
    height: 45px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.social-link li a:hover {
    background: var(--primary-color);
    color: var(--dark-color);
    transform: translateY(-5px);
}

.down-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.arrow-animated {
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* About Section with Carousel */
.about-section {
    padding: 100px 0;
    background: var(--dark-color);
}

.about-wrap {
    align-items: center;
}

.about-content {
    padding: 80px;
}

.pdl-80 {
    padding-left: 80px;
}

/* About Bullets Navigation */
.about-bullets {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    align-items: center;
}

.about-bullets .bullet {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(110, 198, 217, 0.3);
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
}

.about-bullets .bullet:hover {
    background: rgba(110, 198, 217, 0.6);
    transform: scale(1.2);
}

.about-bullets .bullet.active {
    width: 40px;
    border-radius: 10px;
    background: var(--primary-color);
}

.about-bullets .bullet::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(110, 198, 217, 0.9);
    color: var(--dark-color);
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.about-bullets .bullet:hover::after {
    opacity: 1;
}

/* About Slides */
.about-slides {
    position: relative;
    min-height: 450px;
}

.about-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.about-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    position: relative;
}

/* About Image Container */
.about-image-container {
    position: relative;
    height: 700px;
    overflow: hidden;
    border-radius:40px;
    width:49.2%;
}

.about-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease;
}

.about-image.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Expertise List */
.expertise-list {
    list-style: none;
    padding: 0;
}

.expertise-list li {
    padding: 8px 0;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.expertise-list li i {
    color: var(--primary-color);
    font-size: 18px;
    min-width: 20px;
}

.section-heading {
    margin-bottom: 40px;
}

.section-heading h2 {
    position: relative;
    padding-bottom: 27px;
    font-size: 1.5rem;
    text-transform: uppercase;
}

.section-heading h2::after {
    content: '';
    position: absolute;
    bottom: 16px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.section-heading h1 {
    position: relative;
    padding-bottom: 20px;
    font-size: 1.5rem;
    text-transform: uppercase;
}

.section-heading h1::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.section-heading-engagement h2 {
    position: relative;
    padding-bottom: 15px;
    font-size: 1.5rem;
    text-transform: uppercase;
}

.section-heading-engagement h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 528px;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }

.default-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--dark-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.default-btn:hover {
    background: var(--secondary-color);
    color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(110, 198, 217, 0.3);
}

/* Service Section */
.service-section {
    padding: 100px 0;
}

.padding {
    padding: 100px 0;
}

.service-area {
    align-items: flex-start;
}

.xs-padding {
    padding: 40px 15px;
}

.service-wrap {
    margin: 0 -15px;
}

.pd-15 {
    padding: 15px;
}

.service-content {
    background: var(--grey-color);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.4s ease;
    height: 100%;
    border: 2px solid transparent;
    cursor: pointer;
}

.service-content:hover {
    background: rgba(110, 198, 217, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(110, 198, 217, 0.2);
}

.service-content i {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
    transition: all 0.3s ease;
}

/* ========================================
   COMPORTEMENT SVG DANS LES CARTES SERVICES (ACCUEIL)
   ======================================== */
.service-content svg {
    width: 1em;
    height: 1em;
    font-size: 50px; /* Aligné avec la taille de tes icônes Font Awesome */
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
    transition: all 0.3s ease;
}

.service-content:hover svg {
    transform: scale(1.1) rotateY(360deg); /* L'animation 3D au survol ! */
}


.service-content:hover i {
    transform: scale(1.1) rotateY(360deg);
}

.service-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.service-content p {
    color: var(--text-color);
    margin: 0;
    font-size: 14px;
}
.hyper_background_section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

/* background uniquement */
.hyper_background_section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url(../img/hyper_background_section.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    opacity: 0.4;
    z-index: 0;
}

/* contenu au-dessus */
.hyper_background_section > * {
    position: relative;
    z-index: 1;
}
/* ========================================
   PORTFOLIO / RÉALISATIONS SECTION
   ======================================== */

.portfolio-section {
    border-top: 1px solid rgba(110, 198, 217, 0.2);
}

.portfolio-grid {
    margin-top: 50px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    height: 350px;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(110, 198, 217, 0.3);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-item:hover img {
    transform: scale(1.15);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(110, 198, 217, 0.95), rgba(110, 198, 217, 0.85));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay-content {
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    padding: 20px;
}

.portfolio-item:hover .portfolio-overlay-content {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    color: var(--dark-color);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.portfolio-overlay p {
    color: var(--dark-color);
    font-size: 16px;
    margin-bottom: 15px;
}

.portfolio-overlay i {
    color: var(--dark-color);
    font-size: 32px;
    margin-top: 10px;
}

/* ========================================
   LIGHTBOX MODAL
   ======================================== */

.portfolio-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    z-index: 99999;
    padding: 20px;
}

.portfolio-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    max-width: 1200px;
    max-height: 90vh;
    position: relative;
    animation: zoomIn 0.4s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

#lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 15px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    display: block;
    margin: 0 auto;
}

.lightbox-caption {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
}

#lightbox-title {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 10px;
}

#lightbox-description {
    color: var(--text-color);
    font-size: 18px;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 40px;
    color: var(--secondary-color);
    cursor: pointer;
    z-index: 100000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(110, 198, 217, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: var(--primary-color);
    color: var(--dark-color);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: var(--secondary-color);
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(110, 198, 217, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 100000;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary-color);
    color: var(--dark-color);
    transform: translateY(-50%) scale(1.1);
}

.engagement-section {
    border-top: 1px solid rgba(110, 198, 217, 0.2);
}

.CTA-Section {
    border-top: 1px solid rgba(110, 198, 217, 0.2);
}

.cta-box {
    padding: 50px;
    border-radius: 15px;
    text-align: center;
    margin-top: 0;
    border: 4px solid #6ec6d9;
}

.cta-box h3 {
    color: var(--dark-color);
    margin-bottom: 15px;
}

.cta-box p {
    color: var(--dark-color);
    margin-bottom: 30px;
    font-size: 16px;
    color:#fff;
}

.cta-box .default-btn {
    background: var(--primary-color);
    color: var(--dark-color);
}

.cta-box .default-btn:hover {
    background: var(--primary-color);
    color: var(--dark-color);
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    border-top: 1px solid rgba(110, 198, 217, 0.2);
}

.contact-form {
    background: var(--grey-color);
    padding: 60px;
    border-radius: 15px;
}

.form-control {
    background: var(--dark-color);
    border: 2px solid rgba(110, 198, 217, 0.3);
    color: var(--secondary-color);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    background: var(--dark-color);
    color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 15px rgba(110, 198, 217, 0.2);
}

.form-control::placeholder {
    color: rgba(236, 236, 236, 0.5);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}


/* ========================================
   RGPD CONSENT CHECKBOX
   ======================================== */
.rgpd-consent {
    margin-top: 5px;
}

.rgpd-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    position: relative;
}

.rgpd-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.rgpd-custom-check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border: 2px solid rgba(110, 198, 217, 0.4);
    border-radius: 4px;
    background: var(--dark-color);
    transition: all 0.3s ease;
    position: relative;
}

.rgpd-label input:checked ~ .rgpd-custom-check {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.rgpd-custom-check::after {
    content: '';
    position: absolute;
    display: none;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 11px;
    border: 2px solid var(--dark-color);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.rgpd-label input:checked ~ .rgpd-custom-check::after {
    display: block;
}

.rgpd-label:hover .rgpd-custom-check {
    border-color: var(--primary-color);
}

.rgpd-text {
    font-size: 13px;
    color: var(--text-color);
    line-height: 1.6;
    opacity: 0.85;
}

.rgpd-text a {
    color: var(--primary-color);
    text-decoration: underline;
    font-size: 13px;
}

.rgpd-text a:hover {
    color: var(--secondary-color);
}

.rgpd-error {
    color: #e05c5c;
    font-size: 12px;
    margin-top: 8px;
    margin-left: 32px;
}

/* Light mode */
[data-theme="light"] .rgpd-custom-check {
    background: var(--input-bg);
    border-color: rgba(42, 143, 163, 0.35);
}

[data-theme="light"] .rgpd-label input:checked ~ .rgpd-custom-check {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

[data-theme="light"] .rgpd-label input:checked ~ .rgpd-custom-check::after {
    border-color: #ffffff;
}

[data-theme="light"] .rgpd-text {
    color: var(--text-color);
}

/* Modal Dialog */
.coverink-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.coverink-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.coverink-modal {
    background: var(--grey-color);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 50px 40px;
    max-width: 460px;
    width: 90%;
    text-align: center;
    transform: scale(0.85) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.coverink-modal-overlay.active .coverink-modal {
    transform: scale(1) translateY(0);
}

.coverink-modal-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
}

.coverink-modal-icon.success {
    background: rgba(110, 198, 217, 0.15);
    color: var(--primary-color);
    border: 2px solid rgba(110, 198, 217, 0.3);
}

.coverink-modal-icon.error {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border: 2px solid rgba(220, 53, 69, 0.3);
}

.coverink-modal-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--secondary-color);
}

.coverink-modal-message {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 30px;
}

.coverink-modal-btn {
    min-width: 160px;
    padding: 12px 30px;
}

/* Footer */
.footer-section {
    background: var(--grey-color);
    padding: 70px 0 0;
    border-top: 1px solid rgba(110, 198, 217, 0.15);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
}

.footer-col-brand {
    padding-right: 20px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 45px;
    content: url('../img/logo_coverInk_01.svg');
}

[data-theme="light"] .footer-logo img {
    content: url('../img/logo_coverInk_02.svg');
}

.footer-description {
    color: var(--text-color);
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(110, 198, 217, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-color);
    color: var(--dark-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-col-title {
    color: var(--secondary-color);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-color);
    font-size: 14px;
    opacity: 0.75;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary-color);
    opacity: 1;
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 14px;
    opacity: 0.8;
}

.footer-contact li i {
    color: var(--primary-color);
    font-size: 14px;
    margin-top: 3px;
    min-width: 16px;
}

.footer-bottom {
    display: flex;
    justify-content:center;
    align-items: center;
    gap:15px;
    padding: 20px 0;
    border-top: 1px solid rgba(110, 198, 217, 0.1);
    font-size: 13px;
    color: var(--text-color);
    opacity: 0.6;
}

.footer-bottom a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--primary-color);
    opacity: 1;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease both;
}

/* ========================================
   FOOTER RESPONSIVE
   ======================================== */
@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .footer-col-brand {
        grid-column: 1 / -1;
        text-align: center;
        padding-right: 0;
    }
    .footer-col-brand .footer-social {
        justify-content: center;
    }
    .footer-col-brand .footer-description {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    .footer-col-brand .footer-logo {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .footer-section {
        padding: 50px 0 0;
    }
    .footer-col {
        text-align: center;
    }
    .footer-col-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-contact li {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 18px 0;
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 991px) {
    .hero-content h1 { font-size: 48px; }
    .about-content, .pdl-80 { 
        padding-left: 30px;
        width: 100%;
    }
    .about-bullets {
        justify-content: center;
    }
    .about-image-container {
        height: 400px;
        margin-top: 40px;
    }
    
    .portfolio-item {
        height: 300px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .lightbox-prev {
        left: 15px;
    }
    
    .lightbox-next {
        right: 15px;
    }
    
    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }

    
}

@media (max-width: 767px) {
    .hero-content h1 { font-size: 36px; }
    .mainmenu {
    position: fixed;
    top: 75px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 75px);
    background: rgba(10, 10, 10, 0.98);
    transition: left 0.3s ease;
    padding: 40px 20px;
    overflow-y: auto;
    z-index: 9998;
}

.mainmenu.active {
    left: 0;
}

.mainmenu .nav {
    flex-direction: column;
    width: 100%;
}

.mainmenu .nav li {
    margin: 0 0 20px 0;
    width: 100%;
    text-align: center;
}

.mainmenu .nav-link {
    display: block;
    padding: 15px;
    font-size: 18px;
}

.lang-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    font-size: 18px;
    min-width: 130px;
}

.mobile-menu-toggle {
    display: block !important;
}
    .about-content { 
        padding: 40px 20px;
        width: 100%;
    }
    .pdl-80 {
        padding-left: 20px;
    }
    .about-slides {
        min-height: 550px;
    }
    .section-heading-engagement h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .contact-form { padding: 40px 30px; }
    
    .portfolio-item {
        height: 250px;
        margin-bottom: 20px;
    }
    
    .portfolio-overlay h3 {
        font-size: 20px;
    }
    
    .portfolio-overlay p {
        font-size: 14px;
    }
    
    #lightbox-title {
        font-size: 22px;
    }
    
    #lightbox-description {
        font-size: 16px;
    }
    
    .lightbox-caption {
        margin-top: 20px;
        padding: 15px;
    }
}

@media (max-width: 991px) {
    
    /* Mode sombre (défaut) */
    .mainmenu {
        background: rgba(10, 10, 10, 0.98);
    }
    
    .mainmenu .nav-link {
        color: #ffffff;
    }
    
    .mainmenu .nav-link:hover,
    .mainmenu .nav-link.active {
        color: #6ec6d9;
    }
    
    /* Mode clair */
    [data-theme="light"] .mainmenu {
        background: rgba(245, 245, 247, 0.98);
    }
    
    [data-theme="light"] .mainmenu .nav-link {
        color: #1a1a2e !important;
    }

    [data-theme="light"] .lang-toggle-btn {
        color: #1a1a2e !important;
    }
    
    [data-theme="light"] .mainmenu .nav-link:hover,
    [data-theme="light"] .mainmenu .nav-link.active {
        color: #2a8fa3 !important;
    }

    [data-theme="light"] .lang-toggle-btn:hover {
        color: #2a8fa3 !important;
    }
}
