/**

 * Style CSS pour DK Rénovation

 * Design moderne et responsive basé sur la charte graphique

 * Couleurs principales : Bleu #2E86AB et Vert #8BC34A

 */



/* Variables CSS pour les couleurs du logo */

:root {

    --primary-blue: #2E86AB;

    --primary-green: #8BC34A;

    --dark-blue: #1a5c7a;

    --light-green: #a4d668;

    --white: #ffffff;

    --light-gray: #f8f9fa;

    --medium-gray: #6c757d;

    --dark-gray: #343a40;

    --text-dark: #2c3e50;

    --shadow: rgba(0, 0, 0, 0.1);

}



/* Variables pour le thème sombre */

[data-theme="dark"] {

    --white: #1a1a1a;

    --light-gray: #2d2d2d;

    --text-dark: #e8e8e8;

    --medium-gray: #b0b0b0;

    --dark-gray: #e8e8e8;

    --shadow: rgba(255, 255, 255, 0.1);

}



/* Reset et base */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}



html {

    scroll-behavior: smooth;

}



body {

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

    line-height: 1.6;

    color: var(--text-dark);

    background: var(--white);

    transition: all 0.3s ease;

}



/* Header */

header {

    position: sticky;

    top: 0;

    width: 100%;

    background: var(--white);

    box-shadow: 0 2px 10px var(--shadow);

    z-index: 1000;

    transition: all 0.3s ease;

    backdrop-filter: blur(10px);

    -webkit-backdrop-filter: blur(10px);

}



/* Sticky navbar avec animation */

header.scrolled {

    background: rgba(255, 255, 255, 0.95);

    backdrop-filter: blur(20px);

    -webkit-backdrop-filter: blur(20px);

}



[data-theme="dark"] header.scrolled {

    background: rgba(26, 26, 26, 0.95);

}



nav {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 1rem 5%;

    max-width: 1400px;

    margin: 0 auto;

}



.logo {

    height: 60px;

}



.nav-links {

    display: flex;

    list-style: none;

    gap: 2rem;

    align-items: center;

}



.nav-links a {

    text-decoration: none;

    color: var(--text-dark);

    font-weight: 500;

    transition: color 0.3s ease;

}



.nav-links a:hover {

    color: var(--primary-blue);

}



.theme-toggle {

    background: none;

    border: 2px solid var(--primary-blue);

    border-radius: 50%;

    width: 40px;

    height: 40px;

    cursor: pointer;

    font-size: 1.2rem;

    display: flex;

    align-items: center;

    justify-content: center;

    transition: all 0.3s ease;

}



.theme-toggle:hover {

    background: var(--primary-blue);

    color: var(--white);

}



.mobile-menu {

    display: none;

    background: none;

    border: none;

    font-size: 1.5rem;

    cursor: pointer;

    color: var(--text-dark);

}



/* Sections principales */

section {

    padding: 3rem 5%;

    max-width: 1400px;

    margin: 0 auto;

}



/* Hero Section */

.hero {

    min-height: 100vh;

    display: flex;

    align-items: center;

    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);

    color: var(--white);

    text-align: center;

    position: relative;

    overflow: hidden;

    margin-top: 0;

    padding-top: 0;

}



.hero::before {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background: url('img/hero.jpg') center/cover;

    opacity: 0.2;

    z-index: 2;

}



.hero-content {

    position: relative;

    z-index: 2;

    max-width: 800px;

    margin: 0 auto;

}



.hero h1 {

    font-size: 3.5rem;

    margin-bottom: 1rem;

    animation: fadeInUp 1s ease;

}



.hero p {

    font-size: 1.3rem;

    margin-bottom: 2rem;

    animation: fadeInUp 1s ease 0.2s both;

}



.hero-stats {

    display: flex;

    justify-content: center;

    gap: 3rem;

    margin: 3rem 0;

    animation: fadeInUp 1s ease 0.4s both;

}



.stat {

    text-align: center;

}



.stat-number {

    font-size: 2.5rem;

    font-weight: bold;

    display: block;

}



.stat-label {

    font-size: 0.9rem;

    opacity: 0.9;

}



.cta-buttons {

    display: flex;

    gap: 1rem;

    justify-content: center;

    animation: fadeInUp 1s ease 0.6s both;

}



.btn {

    padding: 1rem 2rem;

    border: none;

    border-radius: 50px;

    font-size: 1.1rem;

    font-weight: 600;

    text-decoration: none;

    cursor: pointer;

    transition: all 0.3s ease;

    display: inline-block;

}



.btn-primary {

    background: var(--white);

    color: var(--primary-blue);

}



.btn-primary:hover {

    background: var(--light-gray);

    transform: translateY(-2px);

}



.btn-secondary {

    background: transparent;

    color: var(--white);

    border: 2px solid var(--white);

}



.btn-secondary:hover {

    background: var(--white);

    color: var(--primary-blue);

}



/* Présentation */

.presentation {

    background: var(--light-gray);

}



.presentation-content {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 4rem;

    align-items: center;

}



.presentation-text h2 {

    font-size: 2.5rem;

    color: var(--primary-blue);

    margin-bottom: 1.5rem;

}



.presentation-text p {

    font-size: 1.1rem;

    margin-bottom: 2rem;

    color: var(--medium-gray);

}



.services-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 1.5rem;

    margin-top: 2rem;

}



.service-card {

    background: var(--white);

    padding: 1.5rem;

    border-radius: 10px;

    box-shadow: 0 5px 15px var(--shadow);

    transition: transform 0.3s ease;

}



.service-card:hover {

    transform: translateY(-5px);

}



.service-icon {

    font-size: 2.5rem;

    color: var(--primary-green);

    margin-bottom: 1rem;

}



.presentation-image {

    text-align: center;

}



.presentation-image img {

    max-width: 100%;

    border-radius: 15px;

    box-shadow: 0 10px 30px var(--shadow);

}



/* Réalisations */

.realisations h2 {

    text-align: center;

    font-size: 2.5rem;

    color: var(--primary-blue);

    margin-bottom: 3rem;

}



.filter-buttons {

    display: flex;

    justify-content: center;

    gap: 1rem;

    margin-bottom: 3rem;

    flex-wrap: wrap;

}



.filter-btn {

    padding: 0.8rem 1.5rem;

    background: transparent;

    border: 2px solid var(--primary-blue);

    color: var(--primary-blue);

    border-radius: 25px;

    cursor: pointer;

    transition: all 0.3s ease;

}



.filter-btn:hover,

.filter-btn.active {

    background: var(--primary-blue);

    color: var(--white);

}



.gallery {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));

    gap: 2rem;

}



.gallery-item {

    background: var(--white);

    border-radius: 15px;

    overflow: hidden;

    box-shadow: 0 10px 25px var(--shadow);

    transition: all 0.3s ease;

    opacity: 1;

}



.gallery-item:hover {

    transform: translateY(-10px);

}



.gallery-item.hidden {

    display: none;

}



.before-after {

    position: relative;

    height: 250px;

    overflow: hidden;

}



.before-after img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;

}



.before-after:hover img {

    transform: scale(1.05);

}



.project-info {

    padding: 1.5rem;

}



.project-info h3 {

    color: var(--primary-blue);

    margin-bottom: 0.5rem;

}



.project-category {

    color: var(--primary-green);

    font-size: 0.9rem;

    font-weight: 600;

    margin-bottom: 1rem;

}



/* Équipe */

.equipe {

    background: var(--light-gray);

}



.equipe h2 {

    text-align: center;

    font-size: 2.5rem;

    color: var(--primary-blue);

    margin-bottom: 3rem;

}



.team-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

    gap: 2rem;

}



.team-card {

    background: var(--white);

    border-radius: 15px;

    padding: 2rem;

    text-align: center;

    box-shadow: 0 10px 25px var(--shadow);

    transition: transform 0.3s ease;

}



.team-card:hover {

    transform: translateY(-10px);

}



.team-photo {

    width: 120px;

    height: 120px;

    border-radius: 50%;

    object-fit: cover;

    margin: 0 auto 1.5rem;

    border: 4px solid var(--primary-green);

}



.team-name {

    font-size: 1.3rem;

    font-weight: bold;

    color: var(--primary-blue);

    margin-bottom: 0.5rem;

}



.team-role {

    color: var(--primary-green);

    font-weight: 600;

    margin-bottom: 1rem;

}



.team-description {

    color: var(--medium-gray);

    line-height: 1.6;

}



/* Contact */

.contact h2 {

    text-align: center;

    font-size: 2.5rem;

    color: var(--primary-blue);

    margin-bottom: 3rem;

}



.contact-content {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 4rem;

}



.contact-form {

    background: var(--white);

    padding: 2rem;

    border-radius: 15px;

    box-shadow: 0 10px 25px var(--shadow);

}



.form-group {

    margin-bottom: 1.5rem;

}



.form-group label {

    display: block;

    margin-bottom: 0.5rem;

    font-weight: 600;

    color: var(--text-dark);

}



.form-group input,

.form-group select,

.form-group textarea {

    width: 100%;

    padding: 1rem;

    border: 2px solid #e9ecef;

    border-radius: 8px;

    font-size: 1rem;

    transition: border-color 0.3s ease;

    background: var(--white);

    color: var(--text-dark);

}



.form-group input:focus,

.form-group select:focus,

.form-group textarea:focus {

    outline: none;

    border-color: var(--primary-blue);

}



.form-group textarea {

    height: 120px;

    resize: vertical;

}



.error-message {

    display: block;

    margin-top: 0.25rem;

    font-size: 0.875rem;

}



.contact-info {

    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);

    color: var(--white);

    padding: 2rem;

    border-radius: 15px;

}



.contact-item {

    display: flex;

    align-items: center;

    margin-bottom: 2rem;

}



.contact-icon {

    font-size: 1.5rem;

    margin-right: 1rem;

    width: 40px;

    color: var(--white);

}



.contact-details h4 {

    margin-bottom: 0.5rem;

}



/* Footer */

footer {

    background: var(--text-dark);

    color: var(--white);

    padding: 3rem 5% 1rem;

}



.footer-content {

    max-width: 1400px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 2rem;

    margin-bottom: 2rem;

}



.footer-section h4 {

    color: var(--primary-green);

    margin-bottom: 1rem;

}



.footer-links {

    list-style: none;

}



.footer-links li {

    margin-bottom: 0.5rem;

}



.footer-links a {

    color: var(--white);

    text-decoration: none;

    transition: color 0.3s ease;

}



.footer-links a:hover {

    color: var(--primary-green);

}



.footer-bottom {

    text-align: center;

    padding-top: 2rem;

    border-top: 1px solid #495057;

    color: var(--medium-gray);

}



/* Modale */

.modal {

    display: none;

    position: fixed;

    z-index: 2000;

    left: 0;

    top: 0;

    width: 100%;

    height: 100%;

    background-color: rgba(0, 0, 0, 0.5);

}



.modal-content {

    background-color: var(--white);

    margin: 5% auto;

    padding: 2rem;

    border-radius: 15px;

    width: 90%;

    max-width: 800px;

    max-height: 80vh;

    overflow-y: auto;

    position: relative;

}



.close {

    position: absolute;

    top: 1rem;

    right: 1.5rem;

    font-size: 2rem;

    font-weight: bold;

    cursor: pointer;

    color: var(--medium-gray);

}



.close:hover {

    color: var(--text-dark);

}



/* Toast notifications */

.toast {

    position: fixed;

    top: 100px;

    right: 20px;

    padding: 1rem 1.5rem;

    border-radius: 8px;

    color: var(--white);

    font-weight: 600;

    z-index: 3000;

    transform: translateX(400px);

    transition: transform 0.3s ease;

}



.toast.show {

    transform: translateX(0);

}



.toast.success {

    background: var(--primary-green);

}



.toast.error {

    background: #dc3545;

}



/* Bouton WhatsApp flottant */

.whatsapp-float {

    position: fixed;

    bottom: 20px;

    right: 20px;

    width: 60px;

    height: 60px;

    background: #25D366;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);

    z-index: 1500;

    text-decoration: none;

    transition: all 0.3s ease;

    animation: pulse 2s infinite;

}



.whatsapp-float:hover {

    transform: scale(1.1);

    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);

}



.whatsapp-float i {

    color: white;

    font-size: 1.8rem;

}



.whatsapp-tooltip {

    position: absolute;

    right: 70px;

    top: 50%;

    transform: translateY(-50%);

    background: var(--text-dark);

    color: white;

    padding: 8px 12px;

    border-radius: 6px;

    font-size: 0.9rem;

    white-space: nowrap;

    opacity: 0;

    visibility: hidden;

    transition: all 0.3s ease;

}



.whatsapp-tooltip::after {

    content: '';

    position: absolute;

    right: -5px;

    top: 50%;

    transform: translateY(-50%);

    border: 5px solid transparent;

    border-left-color: var(--text-dark);

}



.whatsapp-float:hover .whatsapp-tooltip {

    opacity: 1;

    visibility: visible;

}



@keyframes pulse {

    0% {

        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);

    }

    50% {

        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.7);

    }

    100% {

        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);

    }

}



@keyframes fadeInScale {

    0% {

        opacity: 0;

        transform: scale(0);

    }

    100% {

        opacity: 1;

        transform: scale(1);

    }

}



/* Animations */

@keyframes fadeInUp {

    from {

        opacity: 0;

        transform: translateY(30px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}



.fade-in {

    opacity: 0;

    transform: translateY(30px);

    transition: all 0.6s ease;

}



.fade-in.visible {

    opacity: 1;

    transform: translateY(0);

}



/* Responsive */

@media (max-width: 768px) {

    .nav-links {

        display: none;

        position: absolute;

        top: 100%;

        left: 0;

        width: 100%;

        background: var(--white);

        flex-direction: column;

        padding: 1rem;

        box-shadow: 0 2px 10px var(--shadow);

    }



    .nav-links.active {

        display: flex;

    }



    .mobile-menu {

        display: block;

    }



    .hero h1 {

        font-size: 2.5rem;

    }



    .hero-stats {

        flex-direction: column;

        gap: 1rem;

    }



    .cta-buttons {

        flex-direction: column;

        align-items: center;

    }



    .presentation-content,

    .contact-content {

        grid-template-columns: 1fr;

        gap: 2rem;

    }



    .services-grid {

        grid-template-columns: 1fr;

    }



    .gallery {

        grid-template-columns: 1fr;

    }



    .team-grid {

        grid-template-columns: 1fr;

    }



    section {

        padding: 3rem 5%;

    }

}



        @media (max-width: 480px) {

            .whatsapp-float {

                width: 50px;

                height: 50px;

                bottom: 15px;

                right: 15px;

            }



            .whatsapp-float i {

                font-size: 1.5rem;

            }



            .whatsapp-tooltip {

                display: none;

            }

        }

    nav {

        padding: 1rem 3%;

    }



    section {

        padding: 2rem 3%;

    }



    .hero h1 {

        font-size: 2rem;

    }



    .btn {

        padding: 0.8rem 1.5rem;

        font-size: 1rem;

    }