/* --- Variables par défaut (Light Mode) --- */
:root {
    --primary-yellow: #fcee0a;
    --black: #000000;
    --white: #ffffff;
    --bg-grey: #f0f0f0;
    --text-color: #555;
    --text-dark: #222;
    --bg-gradient: linear-gradient(-45deg, #ffffff, #fdfbf7, #fcfcfc, #fffdf2);
}

/* --- Thème Sombre activé dynamiquement par le bouton (checkbox) --- */
:root:has(#dark-mode-toggle:checked) {
    --black: #ffffff;
    --white: #121212;
    --bg-grey: #1a1a1a;
    --text-color: #cccccc;
    --text-dark: #eeeeee;
    --bg-gradient: linear-gradient(-45deg, #111111, #1a1a1a, #0a0a0a, #1f1d00);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    background: var(--bg-gradient);
    background-size: 400% 400%;
    animation: fluidGradient 15s ease infinite, fadeInBody 1.2s ease-out;
    color: var(--text-dark);
    overflow-x: hidden;
    transition: background 0.5s ease, color 0.5s ease;
}

/* --- Animations Globales --- */
@keyframes fluidGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes fadeInBody { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeUpIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulseYellow {
    0% { box-shadow: 0 0 0 0 rgba(252, 238, 10, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(252, 238, 10, 0); }
    100% { box-shadow: 0 0 0 0 rgba(252, 238, 10, 0); }
}

/* --- Barre Supérieure --- */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white);
    padding-top: 10px;
    margin-bottom: 5px;
    animation: slideDown 0.8s ease-out;
    border-bottom: 1px solid rgba(128,128,128,0.2);
}
.social-icons {
    background-color: var(--primary-yellow);
    padding: 10px 25px;
    border-radius: 0 25px 25px 0;
    display: flex;
    gap: 15px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
}
.social-icons a {
    color: #000; /* Toujours noir car fond jaune */
    font-size: 20px;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.social-icons a:hover {
    transform: scale(1.4) translateY(-3px) rotate(5deg);
}
.notifications-bar {
    background: linear-gradient(to right, var(--primary-yellow), var(--white));
    padding: 5px 60px;
    border-radius: 25px 0 0 25px;
    width: 60%;
    text-align: center;
    position: relative;
    overflow: hidden;
}
:root:has(#dark-mode-toggle:checked) .notifications-bar {
    background: linear-gradient(to right, var(--primary-yellow), #333333);
}
.notifications-bar::after {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 100%);
    animation: shimmer 3s infinite;
}
:root:has(#dark-mode-toggle:checked) .notifications-bar::after {
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
}
@keyframes shimmer { 100% { left: 200%; } }

.notifications-bar h2 {
    font-size: 22px;
    letter-spacing: 2px;
    font-family: Arial, Helvetica, sans-serif;
    color: #000;
}

/* --- En-tête Principal --- */
.main-header {
    display: flex;
    height: 120px;
    border-top: 2px solid var(--black);
    border-bottom: 2px solid var(--black);
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.logo-container {
    width: 250px;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    z-index: 2;
    transition: transform 0.4s ease;
}
.logo-container:hover { transform: scale(1.05); }
.logo-container img { max-width: 100%; max-height: 100px; object-fit: contain; }
:root:has(#dark-mode-toggle:checked) .logo-container img { filter: invert(1); }

.nav-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: relative;
}
.pattern-bg {
    background-image: url('images/image3.jpg');
    background-size: cover; 
    background-position: center left;
}
.pattern-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--white);
    opacity: 0.85;
    z-index: 0;
    transition: background 0.5s ease;
}
:root:has(#dark-mode-toggle:checked) .pattern-bg::before { background: rgba(18, 18, 18, 0.85); }

/* --- Bouton Hamburger Mobile --- */
.hamburger-btn {
    display: none;
    font-size: 28px;
    color: var(--black);
    cursor: pointer;
    z-index: 1001;
}

/* --- Navigation Principale --- */
.main-nav { position: relative; z-index: 1; }
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}
.nav-btn {
    background-color: var(--white);
    color: var(--black);
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    padding: 10px 25px;
    border-radius: 25px;
    box-shadow: inset 0px -3px 5px rgba(0,0,0,0.1);
    display: block;
    text-decoration: none;
    transition: all 0.3s;
}
.nav-btn:hover, .nav-btn.active {
    background-color: var(--black);
    color: var(--primary-yellow);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
:root:has(#dark-mode-toggle:checked) .nav-btn:hover,
:root:has(#dark-mode-toggle:checked) .nav-btn.active {
    color: #000;
    background-color: var(--primary-yellow);
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 150%; 
    left: 0;
    background: var(--white);
    border: 1px solid rgba(128,128,128,0.2);
    border-radius: 15px;
    list-style: none;
    min-width: 240px;
    padding: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.4s ease;
    z-index: 10;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
:root:has(#dark-mode-toggle:checked) .dropdown-menu {
    background: rgba(30, 30, 30, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    top: 100%;
}
.dropdown-menu li { margin-bottom: 8px; transform: translateX(-10px); opacity: 0; transition: all 0.3s ease;}
.dropdown:hover .dropdown-menu li { transform: translateX(0); opacity: 1; }
.dropdown:hover .dropdown-menu li:nth-child(1) { transition-delay: 0.05s; }
.dropdown:hover .dropdown-menu li:nth-child(2) { transition-delay: 0.1s; }
.dropdown:hover .dropdown-menu li:nth-child(3) { transition-delay: 0.15s; }
.dropdown:hover .dropdown-menu li:nth-child(4) { transition-delay: 0.2s; }
.dropdown:hover .dropdown-menu li:nth-child(5) { transition-delay: 0.25s; }
.dropdown:hover .dropdown-menu li:nth-child(6) { transition-delay: 0.3s; }
.dropdown-menu li a {
    text-decoration: none;
    color: var(--black);
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.dropdown-menu li a:hover {
    background: linear-gradient(90deg, var(--primary-yellow) 0%, transparent 100%);
    padding-left: 20px;
    color: #000;
}
.dropdown-menu li a::before { content: "•"; margin-right: 8px; font-size: 20px; color: var(--primary-yellow); }
.dropdown-menu li a:hover::before { color: #000; }

/* Boutons de Contact et Thème */
.contact-buttons { display: flex; gap: 15px; align-items: center; z-index: 1; }
.btn-theme {
    background: transparent;
    border: 2px solid var(--black);
    color: var(--black);
    border-radius: 50%;
    width: 42px; height: 42px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    transition: all 0.4s ease;
}
.btn-theme .theme-icon-sun { display: none; }
:root:has(#dark-mode-toggle:checked) .btn-theme .theme-icon-moon { display: none; }
:root:has(#dark-mode-toggle:checked) .btn-theme .theme-icon-sun { display: block; }

.btn-theme:hover {
    transform: translateY(-3px) scale(1.1);
    background: var(--black);
    color: var(--primary-yellow);
}
:root:has(#dark-mode-toggle:checked) .btn-theme:hover {
    color: #000;
    background: var(--primary-yellow);
    border-color: var(--primary-yellow);
}

.btn {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 25px;
    display: flex; align-items: center; gap: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.25); }
.btn-whatsapp { background: linear-gradient(to right, #4CAF50, #81C784); }
.btn-whatsapp:hover { animation: pulseYellow 1s infinite; }
.btn-telegram { background: linear-gradient(to right, #2196F3, #64B5F6); }

/* --- Section Héroïque --- */
.hero-showcase {
    display: flex; flex-direction: column; align-items: center;
    padding: 40px 20px 80px 20px;
}
.hero-text-top {
    text-align: center; max-width: 800px; margin-bottom: -30px; z-index: 10;
    animation: slideDown 1s ease-out;
}
.hero-text-top h1 {
    font-size: 3.5rem; font-weight: 900; text-transform: uppercase;
    background: linear-gradient(90deg, var(--black), #888);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
:root:has(#dark-mode-toggle:checked) .hero-text-top h1 {
    background: linear-gradient(90deg, #ffffff, #aaaaaa);
    -webkit-background-clip: text;
}
.hero-text-top h1 span {
    color: var(--primary-yellow); -webkit-text-fill-color: var(--primary-yellow);
}
.hero-text-top p { font-size: 1.2rem; color: var(--text-color); margin-top: 15px; }

.hero-text-bottom {
    text-align: center; margin-top: -10px; z-index: 10;
    animation: fadeUpIn 1.2s ease-out;
}
.hero-text-bottom p {
    font-size: 1.5rem; font-family: 'Times New Roman', Times, serif; font-style: italic;
    color: var(--text-dark); margin-bottom: 25px;
}
.btn-discover {
    display: inline-block; background: var(--black); color: var(--primary-yellow);
    padding: 15px 35px; font-weight: bold; text-transform: uppercase;
    border-radius: 30px; text-decoration: none; transition: all 0.4s ease;
}
:root:has(#dark-mode-toggle:checked) .btn-discover { color: #000; background: var(--primary-yellow); }
.btn-discover:hover { transform: translateY(-5px); background: #333; }
:root:has(#dark-mode-toggle:checked) .btn-discover:hover { background: #fff; }

/* --- Galerie Images Inclinées --- */
.content-gallery {
    display: flex; justify-content: center; gap: 60px;
    padding: 80px 20px; background-color: transparent;
}
.card-wrapper { width: 300px; height: 380px; position: relative; transition: transform 0.5s ease; }
.card-wrapper:hover { transform: translateY(-20px); z-index: 10; }
.card {
    width: 100%; height: 100%;
    transform: skewX(-12deg);
    border-left: 8px solid var(--primary-yellow); border-bottom: 8px solid var(--primary-yellow);
    overflow: hidden; position: relative; z-index: 2;
    background-color: var(--white);
    transition: border-color 0.4s ease;
}
.card-wrapper:hover .card { border-color: var(--black); }
:root:has(#dark-mode-toggle:checked) .card-wrapper:hover .card { border-color: #fff; }
.card img {
    width: 140%; height: 100%; object-fit: cover;
    transform: skewX(12deg) translateX(-15%); filter: grayscale(20%);
    transition: transform 0.8s ease, filter 0.4s;
}
.card-wrapper:hover img { transform: skewX(12deg) translateX(-15%) scale(1.1); filter: grayscale(0%); }
.card-shadow {
    position: absolute; bottom: -25px; left: 10%; width: 80%; height: 15px;
    background: rgba(0,0,0,0.5); border-radius: 50%; filter: blur(10px); z-index: 1; transition: all 0.5s;
}
:root:has(#dark-mode-toggle:checked) .card-shadow { background: rgba(0,0,0,0.8); }
.card-wrapper:hover .card-shadow { width: 60%; left: 20%; bottom: -35px; opacity: 0.6; filter: blur(15px);}

/* --- Sections Services / A Propos --- */
.preview-section { padding: 100px 5%; position: relative; z-index: 1; }
.bg-grey {
    background: linear-gradient(135deg, rgba(128,128,128,0.1), rgba(128,128,128,0.05));
    border-top: 1px solid rgba(128,128,128,0.2); border-bottom: 1px solid rgba(128,128,128,0.2);
}
:root:has(#dark-mode-toggle:checked) .bg-grey {
    background: linear-gradient(135deg, rgba(30,30,30,0.8) 0%, rgba(10,10,10,0.8) 100%);
    border-color: rgba(255,255,255,0.05);
}
.section-title {
    text-align: center; font-size: 38px; font-family: 'Impact', sans-serif;
    color: var(--black); margin-bottom: 70px; text-transform: uppercase; position: relative;
}
.section-title::after {
    content: ''; position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
    width: 80px; height: 5px; background: var(--primary-yellow); border-radius: 5px; transition: width 0.4s;
}
.preview-section:hover .section-title::after { width: 120px; }

.grid-container {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px;
    max-width: 1250px; margin: 0 auto;
}
.preview-card {
    background: var(--white); padding: 40px 35px; border-radius: 20px;
    border: 1px solid rgba(128,128,128,0.2); box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.5s ease; display: flex; flex-direction: column; align-items: flex-start;
    position: relative; overflow: hidden;
}
:root:has(#dark-mode-toggle:checked) .preview-card { border-color: rgba(255,255,255,0.05); }

.preview-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 6px;
    background: var(--primary-yellow); transform: scaleX(0); transform-origin: left; transition: transform 0.5s;
}
.preview-card:hover { transform: translateY(-15px); box-shadow: 0 25px 50px rgba(0,0,0,0.15); border-color: transparent; }
:root:has(#dark-mode-toggle:checked) .preview-card:hover { box-shadow: 0 25px 50px rgba(0,0,0,0.4); }
.preview-card:hover::before { transform: scaleX(1); }

.icon-box {
    width: 75px; height: 75px; border-radius: 50%; background: rgba(128,128,128,0.1); color: var(--black);
    display: flex; justify-content: center; align-items: center; font-size: 28px;
    margin-bottom: 25px; transition: all 0.4s ease;
}
:root:has(#dark-mode-toggle:checked) .icon-box { background: rgba(255,255,255,0.1); color: #fff; }
.preview-card:hover .icon-box { background: var(--primary-yellow); color: #000; transform: scale(1.1) rotate(10deg); }
:root:has(#dark-mode-toggle:checked) .preview-card:hover .icon-box { color: #000; }

.preview-card h3 { font-size: 22px; color: var(--black); margin-bottom: 15px; }
.preview-card p { font-size: 14px; color: var(--text-color); margin-bottom: 35px; flex-grow: 1; }
.btn-voir-plus {
    text-decoration: none; font-size: 13px; font-weight: 800; text-transform: uppercase;
    color: var(--black); background: rgba(128,128,128,0.1); padding: 12px 25px;
    border-radius: 30px; display: inline-flex; align-items: center; gap: 12px; transition: all 0.4s;
}
:root:has(#dark-mode-toggle:checked) .btn-voir-plus { background: #333; border-color: #444; }
.btn-voir-plus i {
    background: var(--white); width: 28px; height: 28px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; transition: all 0.4s;
}
:root:has(#dark-mode-toggle:checked) .btn-voir-plus i { background: #222; color: #fff; }
.btn-voir-plus:hover { background: var(--black); color: var(--primary-yellow); padding-right: 15px; }
:root:has(#dark-mode-toggle:checked) .btn-voir-plus:hover { background: var(--primary-yellow); color: #000; }
.btn-voir-plus:hover i { background: var(--primary-yellow); color: #000; transform: translateX(8px) scale(1.1); }
:root:has(#dark-mode-toggle:checked) .btn-voir-plus:hover i { background: #000; color: var(--primary-yellow); }

/* Couleurs spécifiques des cartes pour maintenir votre design */
.preview-card:nth-child(1) { background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%); }
:root:has(#dark-mode-toggle:checked) .preview-card:nth-child(1) { background: linear-gradient(135deg, #1c2128 0%, #111 100%); }
.preview-card:nth-child(2) { background: linear-gradient(135deg, #fffdf2 0%, #fcefa3 100%); }
:root:has(#dark-mode-toggle:checked) .preview-card:nth-child(2) { background: linear-gradient(135deg, #2a281c 0%, #1a1a1a 100%); }
.preview-card:nth-child(3) { background: linear-gradient(135deg, #2b2b2b 0%, #111111 100%); border-color: #333; }
.preview-card:nth-child(3) h3 { color: var(--primary-yellow); }
.preview-card:nth-child(3) p { color: #cccccc; }
.preview-card:nth-child(3) .icon-box { background: var(--primary-yellow); color: #000; }
.preview-card:nth-child(3) .btn-voir-plus { background: #333; color: #fff; border: none; }
.preview-card:nth-child(3) .btn-voir-plus i { background: var(--primary-yellow); color: #000; }
.preview-card:nth-child(3) .btn-voir-plus:hover { background: var(--primary-yellow); color: #000; }
.preview-card:nth-child(4) { background: linear-gradient(135deg, #f8f9fa 0%, #e2e6ea 100%); }
:root:has(#dark-mode-toggle:checked) .preview-card:nth-child(4) { background: linear-gradient(135deg, #222 0%, #111 100%); }
.preview-card:nth-child(5) { background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%); border-color: #222; }
.preview-card:nth-child(5) h3 { color: #fff; }
.preview-card:nth-child(5) p { color: #bbbbbb; }
.preview-card:nth-child(5) .btn-voir-plus { background: var(--primary-yellow); color: #000; border: none; }
.preview-card:nth-child(5) .btn-voir-plus:hover { background: #fff; }
.preview-card:nth-child(6) { background: linear-gradient(135deg, #fffefa 0%, #f2ead3 100%); }
:root:has(#dark-mode-toggle:checked) .preview-card:nth-child(6) { background: linear-gradient(135deg, #25231c 0%, #111 100%); }


/* --- Footer --- */
.foote-incuve-bg {
    background-color: var(--primary-yellow); color: #000;
    border-top-left-radius: 50% 120px; border-top-right-radius: 50% 120px;
    padding: 60px 5% 20px 5%; display: flex; flex-direction: column; position: relative; overflow: hidden;
}
:root:has(#dark-mode-toggle:checked) .foote-incuve-bg { background-color: var(--primary-yellow); color: #000; }
.foote-incuve-bg::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 60%);
    animation: rotateGlow 15s linear infinite; pointer-events: none;
}
@keyframes rotateGlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.footer-main-content { display: flex; justify-content: space-between; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; z-index: 2;}
.footer-brand { width: 25%; }
.footer-logo { width: 180px; mix-blend-mode: multiply; margin-bottom: 15px; }
.divider-v1, .divider-v2, .divider-v3 { width: 4px; background: #000; height: 150px; align-self: center; }
.footter-list { max-width: 250px; }
.footer-title-menu { font-weight: bold; margin-bottom: 15px; color: #000; }
footer ul.footer-dropdown { list-style: none; padding: 0; }
footer ul.footer-dropdown li, .list-item { font-size: 13px; font-weight: 500; margin-bottom: 8px; color: #000;}
footer ul.footer-dropdown li a { text-decoration: none; color: #000; transition: color 0.3s; }
footer ul.footer-dropdown li a:hover { color: #555; }
.footer-line { max-width: 1200px; margin: 30px auto 15px auto; width: 100%; height: 1px; background: rgba(0,0,0,0.3); position: relative; }
.b-line { position: absolute; right: 0; width: 100px; height: 6px; background-color: #000; border-radius: 3px; animation: slideLine 5s ease-in-out infinite alternate; }
@keyframes slideLine { 0% { right: 0; width: 100px; } 50% { width: 300px; } 100% { right: calc(100% - 100px); width: 100px; } }
.footer-bottom { display: flex; justify-content: space-between; max-width: 1200px; margin: 0 auto; width: 100%; z-index: 2;}
.social-links a { color: #000; font-size: 18px; margin-right: 12px; transition: 0.3s; display: inline-block; }
.social-links a:hover { transform: scale(1.4) translateY(-5px); color: #fff; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.copyright { font-size: 12px; color: #000; }
.chat-btn {
    background: #111; color: #fff; text-decoration: none; padding: 10px 20px; border-radius: 20px;
    font-size: 12px; font-weight: bold; display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; transition: 0.3s;
}
.chat-btn:hover { background: #000; color: var(--primary-yellow); transform: translateY(-5px); }


/* =========================================
   STYLES POUR LES 10 THÈMES COCOM (Intérieurs)
   ========================================= */
.cocom-themes-section { padding: 60px 20px; background-color: transparent; }
.themes-container { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 80px; }
.theme-block { display: flex; gap: 40px; align-items: center; opacity: 0; transform: translateY(30px); animation: fadeUpIn 0.8s ease-out forwards; }
.theme-text { flex: 1; position: relative; }
.theme-title { font-size: 2.2rem; color: var(--black); margin-bottom: 10px; font-weight: 700; position: relative; display: inline-block; }
.theme-title::after { content: ''; position: absolute; bottom: 2px; left: 0; width: 0; height: 12px; background-color: rgba(252, 238, 10, 0.5); z-index: -1; transition: width 0.4s; }
.theme-block:hover .theme-title::after { width: 100%; }
.theme-subtitle { font-size: 1.2rem; color: #d1a535; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.theme-desc { font-size: 1rem; line-height: 1.6; color: var(--text-color); text-align: justify; }

.theme-gallery { flex: 1; display: grid; gap: 15px; }
.theme-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: all 0.5s; filter: brightness(0.9); }
.theme-gallery:hover img { filter: brightness(0.7) blur(2px); }
.theme-gallery img:hover { transform: scale(1.05); box-shadow: 0 15px 30px rgba(0,0,0,0.2); filter: brightness(1.1) blur(0) !important; z-index: 10; position: relative; }

.layout-1 { flex-direction: row; }
.layout-1 .theme-gallery { grid-template-columns: 1fr 1fr; }
.layout-1 .theme-gallery img:nth-child(1) { grid-column: 1 / span 2; height: 250px; }
.layout-1 .theme-gallery img:nth-child(2), .layout-1 .theme-gallery img:nth-child(3) { height: 180px; }
.layout-2 { flex-direction: row-reverse; }
.layout-2 .theme-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 150px 150px; }
.layout-2 .theme-gallery img:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; height: 100%; }
.layout-3 { flex-direction: column; text-align: center; }
.layout-3 .theme-desc { text-align: center; max-width: 800px; margin: 0 auto; }
.layout-3 .theme-gallery { grid-template-columns: 1fr 1fr 1fr; width: 100%; margin-top: 20px; }
.layout-3 .theme-gallery img { height: 250px; }


/* =========================================================
   MEDIA QUERIES - RESPONSIVE DESIGN (Tablettes & Mobiles)
   ========================================================= */

@media (max-width: 1200px) {
    .content-gallery { gap: 20px; }
    .card-wrapper { width: 250px; }
}

@media (max-width: 992px) {
    /* Top Bar Mobile */
    .top-bar { flex-direction: column; gap: 10px; }
    .social-icons { border-radius: 25px; width: auto; justify-content: center; }
    .notifications-bar { width: 90%; border-radius: 25px; padding: 5px 20px; }
    .notifications-bar h2 { font-size: 16px; }

    /* En-tête & Menu Hamburger */
    .main-header { height: auto; padding: 10px 0; }
    .logo-container { width: 180px; }
    .hamburger-btn { display: block; margin-right: 20px;}
    
    /* Le menu se cache sur le côté par défaut */
    .main-nav {
        position: fixed;
        top: 0; left: -100%;
        width: 70%; height: 100vh;
        background: var(--bg-grey);
        box-shadow: 2px 0 15px rgba(0,0,0,0.2);
        transition: left 0.4s ease;
        padding-top: 80px;
    }
    
    /* Si la checkbox hamburger est cochée, on affiche le menu */
    #mobile-menu-toggle:checked ~ header .main-nav { left: 0; }

    .nav-links { flex-direction: column; align-items: flex-start; padding: 0 30px; }
    .nav-btn { background: transparent; box-shadow: none; padding: 15px 0; border-bottom: 1px solid rgba(128,128,128,0.2); width: 100%; }
    
    .dropdown-menu {
        position: relative; top: 0; transform: none; opacity: 1; visibility: visible;
        box-shadow: none; border: none; background: transparent; padding-left: 20px;
        display: none; /* Sous-menus cachés par défaut sur mobile pour gagner de la place */
    }
    /* Sur mobile, on affiche les sous-menus au survol ou clic */
    .dropdown:hover .dropdown-menu { display: block; }

    /* Cacher le texte des boutons contact sur mobile pour libérer de l'espace */
    .contact-buttons .btn-text { display: none; }
    .contact-buttons { gap: 8px; }

    /* Thèmes intérieurs */
    .theme-block { flex-direction: column !important; gap: 30px; }
    .theme-text, .theme-desc { text-align: center; }
    .theme-title::after { left: 50%; transform: translateX(-50%); }
    .theme-gallery { width: 100%; }
    .layout-1 .theme-gallery, .layout-2 .theme-gallery, .layout-3 .theme-gallery { grid-template-columns: 1fr !important; grid-template-rows: auto !important; }
    .layout-1 .theme-gallery img, .layout-2 .theme-gallery img, .layout-3 .theme-gallery img { grid-column: 1 !important; grid-row: auto !important; height: 200px !important; }

    /* Footer Mobile */
    .foote-incuve-bg { border-top-left-radius: 40px; border-top-right-radius: 40px; padding: 40px 5%; }
    .footer-main-content { flex-direction: column; align-items: center; gap: 30px; text-align: center; }
    .footer-brand, .footter-list, .footter-contact { width: 100%; max-width: 100%; align-items: center; }
    .divider-v1, .divider-v2, .divider-v3 { display: none; }
    .footer-bottom { flex-direction: column; gap: 20px; }
}

@media (max-width: 768px) {
    /* Section Héroïque Mobile */
    .hero-text-top h1 { font-size: 2.2rem; }
    .hero-text-bottom p { font-size: 1.2rem; }

    /* Galerie Inclinée Mobile : On aligne en colonne et on annule l'inclinaison */
    .content-gallery { flex-direction: column; align-items: center; gap: 40px; padding: 40px 10px; }
    .card-wrapper { width: 100%; max-width: 320px; height: 350px; }
    .card { transform: skewX(0deg); border-left: none; border-bottom: 6px solid var(--primary-yellow); }
    .card img { transform: skewX(0deg) translateX(0); width: 100%; }
    .card-wrapper:hover img { transform: scale(1.05); }

    /* Grille de services */
    .grid-container { grid-template-columns: 1fr; }
}