/* Base Styles */
:root {
    --primary-color: #cab601;
    --primary-dark: #d2c210;
    --secondary-color: #ff6584;
    --dark-color: #2d2d2d;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --white: #ffffff;
    --black: #000000;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.text-highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: transparent;
    z-index: -1;
    transition: var(--transition);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
}

.btn-block {
    display: block;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    color: var(--gray-color);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.divider {
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 20px auto;
    border-radius: 2px;
}

.text-center {
    text-align: center;
}

.mt-40 {
    margin-top: 40px;
}

/* === NEON LOADER STYLÉ === */
.loader {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, #0f0f0f, #000);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader.loaded {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
}

.loader-laptop {
  width: 240px;
  height: 160px;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: floatLaptop 4s ease-in-out infinite;
}

/* ÉCRAN */
.loader-screen {
  background-color: #0d0d0d;
  width: 100%;
  height: 100px;
  border: 3px solid #00fff2;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 0 20px #00fff2;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Courier New', monospace;
}

.loader-text {
  color: #00fff2;
  font-size: 1.2rem;
  letter-spacing: 1px;
  animation: blinkText 1s steps(1, end) infinite;
}

.dots::after {
  content: '';
  animation: dotsAnim 1.5s steps(3, end) infinite;
}

@keyframes blinkText {
  50% { opacity: 0.8; }
  100% { opacity: 1; }
}

@keyframes dotsAnim {
  0% { content: ''; }
  33% { content: '.'; }
  66% { content: '..'; }
  100% { content: '...'; }
}

/* BASE + BARRE */
.loader-bar-container {
  width: 100%;
  height: 15px;
  background-color: #1a1a1a;
  border-radius: 0 0 12px 12px;
  border: 2px solid #00fff2;
  overflow: hidden;
  box-shadow: inset 0 0 10px #00fff2;
  position: relative;
}

.loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00fff2, #00ff99);
  box-shadow: 0 0 10px #00fff2;
  animation: loadProgress 4s infinite;
}

@keyframes loadProgress {
  0% { width: 0%; }
  50% { width: 100%; }
  100% { width: 0%; }
}

@keyframes floatLaptop {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}


/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 999;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    padding: 15px 0;
}

.navbar.scrolled .nav-link {
    color: var(--dark-color);
}

.navbar.scrolled .logo span {
    color: var(--dark-color);
}

.navbar.scrolled .menu-toggle .bar {
    background-color: var(--dark-color);
}

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


.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo img {
    height: 40px;
    margin-right: 10px;
    border-radius: 20px;
}

.logo span {
    color: var(--white);
    transition: var(--transition);
}

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

.nav-link {
    padding: 10px 15px;
    font-weight: 500;
    color: var(--white);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    width: calc(100% - 30px);
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1000;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--white);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background: url('../images/hero.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(45, 45, 45, 0.9), rgba(45, 45, 45, 0.7));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 0.9rem;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s ease 1.5s forwards;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--white);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    margin: 5px auto;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--white);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(15px);
        opacity: 0;
    }
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover .service-icon i,
.service-card:hover h3,
.service-card:hover p {
    color: var(--white);
}

.service-card:hover .service-tags span {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card h3 {
    margin-bottom: 15px;
    transition: var(--transition);
}

.service-card p {
    color: var(--gray-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.service-tags span {
    background-color: var(--dark-color);
    color: var(--light-gray);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    background-color: transparent;
    border: 1px solid var(--light-gray);
    border-radius: 50px;
    color: var(--gray-color);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.portfolio-img {
    position: relative;
    overflow: hidden;
    height: 250px;
}

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

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(185, 127, 0, 0.8), rgba(0, 120, 147, 0.9));
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

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

.portfolio-info {
    text-align: center;
    color: var(--white);
    padding: 20px;
    transform: translateY(20px);
    transition: var(--transition);
}

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

.portfolio-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.portfolio-info p {
    margin-bottom: 15px;
}

.portfolio-link {
    color: var(--white);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.portfolio-link i {
    margin-left: 5px;
    transition: var(--transition);
}

.portfolio-link:hover i {
    transform: translateX(5px);
}

/* Devis Section */
.devis {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
}

.devis-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.devis-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.devis-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.devis-form {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--box-shadow-hover);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--light-gray);
    color: var(--dark-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
}

.contact-form {
    background-color: var(--light-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: var(--light-gray);
    padding: 80px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

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

.footer-about .logo span {
    color: var(--white);
}

.footer-about p {
    margin-bottom: 20px;
}

.footer-links h4,
.footer-services h4,
.footer-newsletter h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-services h4::after,
.footer-newsletter h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul,
.footer-services ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a,
.footer-services a {
    transition: var(--transition);
}

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

.footer-newsletter p {
    margin-bottom: 20px;
}

.footer-newsletter .form-group {
    position: relative;
}

.footer-newsletter input {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
}

.footer-newsletter button {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.footer-newsletter button:hover {
    background-color: var(--primary-dark);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    font-size: 0.9rem;
    transition: var(--transition);
}

.legal-links a:hover {
    color: var(--primary-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .devis-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .devis-text {
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-list.active {
        right: 0;
    }
    
    .nav-link {
        color: var(--dark-color);
        padding: 15px 0;
        font-size: 1.1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .legal-links {
        justify-content: center;
    }
}

/* === MODAL MODERNE === */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

/* Fenêtre */
.modal-content {
  background-color: #121212;
  margin: 4% auto;
  padding: 30px 35px;
  border-radius: 12px;
  width: 90%;
  max-width: 700px;
  color: #f1f1f1;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 0 20px #00fff2;
  animation: zoomIn 0.4s ease;
  position: relative;
  border: 1px solid #00fff2;
  max-height: 90vh;
  overflow-y: auto;
}

/* Bouton X */
.close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #00fff2;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.close:hover {
  transform: scale(1.2);
  color: #00e6cc;
}

/* Titres */
.modal-content h2,
.modal-content h3 {
  color: #00fff2;
  margin-top: 20px;
}

.modal-content h2 {
  font-size: 1.8rem;
}

.modal-content h3 {
  font-size: 1.3rem;
}

.modal-content ul {
  margin: 15px 0 20px 20px;
  padding-left: 10px;
}

.modal-content ul li {
  margin-bottom: 8px;
  list-style-type: disc;
}

/* Liens */
.modal-content a {
  color: #00ffe0;
  text-decoration: underline;
}

.modal-content a:hover {
  color: #00ffad;
}

/* Animation */
@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Scroll interne */
.modal-content::-webkit-scrollbar {
  width: 8px;
}
.modal-content::-webkit-scrollbar-thumb {
  background-color: #00fff2;
  border-radius: 10px;
}


.typewriter-text {
    font-size: 3.5rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid var(--primary-color);
    display: inline-block;
    animation: blink 0.8s infinite steps(1, start);
}


.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
}

@keyframes blink {
    0%, 100% { border-color: transparent; }
    50% { border-color: var(--primary-color); }
}


/* ... (Votre CSS existant reste inchangé jusqu'aux media queries) ... */

/* Responsive Styles - Optimisé pour tous les écrans */

/* Grands écrans (>= 1600px) */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Tablettes en mode paysage / petits ordinateurs portables (992px - 1199px) */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 3.2rem;
    }
    
    .section-title {
        font-size: 2.3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* Tablettes (768px - 991px) */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .devis-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .devis-text {
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Petites tablettes et grands mobiles (576px - 767px) */
@media (max-width: 767px) {
    .menu-toggle {
        display: block;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-list.active {
        right: 0;
    }
    
    .nav-link {
        color: var(--dark-color);
        padding: 15px 0;
        font-size: 1.1rem;
    }
    
    .hero {
        min-height: 600px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        white-space: normal;
    }
    
    .typewriter-text {
        font-size: 2.5rem;
        white-space: normal;
        border-right: none;
        animation: none;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .portfolio-filter {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
}

/* Mobiles (<= 575px) */
@media (max-width: 575px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .devis-form,
    .contact-form {
        padding: 25px;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .legal-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .info-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .info-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .scroll-down {
        font-size: 0.8rem;
    }
    
    .mouse {
        width: 20px;
        height: 30px;
    }
}

/* Très petits mobiles (<= 400px) */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links h4::after,
    .footer-services h4::after,
    .footer-newsletter h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .info-item {
        text-align: center;
        align-items: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Orientation paysage */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        height: auto;
        padding: 100px 0;
    }
    
    .hero-content {
        padding-top: 80px;
    }
    
    .scroll-down {
        display: none;
    }
}

/*scroll*/
@media (max-width: 991px) {
  .back-to-top {
    width: 45px;
    height: 45px;
    font-size: 1rem;
    bottom: 25px;
    right: 25px;
  }
}
@media (max-width: 767px) {
  .back-to-top {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
    bottom: 20px;
    right: 20px;
  }
}
@media (max-width: 400px) {
  .back-to-top {
    width: 35px;
    height: 35px;
    font-size: 0.85rem;
    bottom: 15px;
    right: 15px;
  }
}
.back-to-top.active {
  animation: fadeInUp 0.5s ease-in-out;
}

/*mode*/




/* Dark Mode */


/* Theme Toggle Styles */
.theme-toggle {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.theme-toggle-label {
    width: 50px;
    height: 26px;
    background-color: var(--dark-color);
    display: flex;
    border-radius: 50px;
    align-items: center;
    justify-content: space-between;
    padding: 5px;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.navbar.scrolled .theme-toggle-label {
    background-color: var(--gray-color);
}

.ball {
    width: 20px;
    height: 20px;
    background-color: var(--white);
    position: absolute;
    top: 3px;
    left: 3px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.sun, .moon {
    font-size: 14px;
}

.sun {
    color: var(--primary-color);
}

.moon {
    color: var(--light-color);
}

#theme-toggle-checkbox {
    opacity: 0;
    position: absolute;
}

#theme-toggle-checkbox:checked + .theme-toggle-label .ball {
    transform: translateX(24px);
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #121212;
    color: #f8f9fa;
}

body.dark-mode .navbar.scrolled .nav-list a,
body.dark-mode .navbar.scrolled .container span {
    color: #f8f9fa;
}
body.dark-mode .navbar.scrolled {
    background-color: #1e1e1e;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .portfolio p,
body.dark-mode .portfolio .filter-btn,
body.dark-mode .services p,
body.dark-mode .contact p {
    color: #f8f9fa;
}

body.dark-mode .services, 
body.dark-mode .portfolio-item,
body.dark-mode .contact-form {
    background-color: #2d2d2d;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode .service-card p,
body.dark-mode h3,
body.dark-mode .section-subtitle,
body.dark-mode .filter-btn {
    color: var(--dark-color);
}

body.dark-mode .modal-content {
    background-color: #2d2d2d;
    color: #f8f9fa;
}

body.dark-mode .close:hover {
    color: #f8f9fa;
}

body.dark-mode .theme-toggle-label {
    background-color: var(--gray-color);
}

body,
body * {
    transition: background-color 1s ease, color 1s ease, border-color 1s ease;
}
body.transitioning,
body.transitioning * {
    transition: background-color 1s ease, color 1s ease, border-color 1s ease !important;
}

@keyframes fadeInUpService {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.services-grid .service-card {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUpService 0.8s ease forwards;
}

/* Pour les faire apparaître en décalé */
.services-grid .service-card:nth-child(1) {
    animation-delay: 0.1s;
}
.services-grid .service-card:nth-child(2) {
    animation-delay: 0.2s;
}
.services-grid .service-card:nth-child(3) {
    animation-delay: 0.3s;
}
.services-grid .service-card:nth-child(4) {
    animation-delay: 0.4s;
}
.services-grid .service-card:nth-child(5) {
    animation-delay: 0.5s;
}
.services-grid .service-card:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes fadeInZoom {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.portfolio-item {
    opacity: 0;
    transform: scale(0.9);
    animation: fadeInZoom 0.8s ease forwards;
}

/* Animation en décalé */
.portfolio-item:nth-child(1) { animation-delay: 0.2s; }
.portfolio-item:nth-child(2) { animation-delay: 0.4s; }
.portfolio-item:nth-child(3) { animation-delay: 0.6s; }


@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.devis-form {
    opacity: 0;
    transform: translateX(100px);
    animation: slideInRight 0.8s ease forwards;
    animation-play-state: paused;
}


@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popUpZoom {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Initial state for animation */
.contact-info, .contact-form {
    opacity: 0;
    animation-duration: 0.8s;
    animation-fill-mode: forwards;
    animation-play-state: paused;
}

.contact-info {
    animation-name: fadeUp;
}

.contact-form {
    animation-name: popUpZoom;
    animation-delay: 0.2s;
}


/* Icône WhatsApp - masquée par défaut */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    line-height: 60px;
    z-index: 9999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease;
    opacity: 0;
    pointer-events: none;
}

/* Quand visible */
.whatsapp-float.visible {
    opacity: 1;
    pointer-events: auto;
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    60% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Icône Téléphone flottante */
.phone-float {
    position: fixed;
    bottom: 100px;
    left: 25px;
    width: 60px;
    height: 60px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 28px;
    line-height: 60px;
    z-index: 9999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease;
    opacity: 0;
    pointer-events: none;
}

.phone-float.visible {
    opacity: 1;
    pointer-events: auto;
    animation: bounceIn 0.6s ease;
}

.phone-float:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/*wtsp phone respo*/
/* ✅ Grand écran (>=1600px) */
@media (min-width: 1600px) {
  .whatsapp-float,
  .phone-float {
    bottom: 40px;
    left: 40px;
    width: 65px;
    height: 65px;
    font-size: 32px;
    line-height: 65px;
  }

  .phone-float {
    bottom: 120px;
  }
}

/* ✅ Tablettes (768px - 1199px) */
@media (max-width: 1199px) {
  .whatsapp-float,
  .phone-float {
    left: 20px;
    width: 55px;
    height: 55px;
    font-size: 26px;
    line-height: 55px;
  }

  .phone-float {
    bottom: 90px;
  }
}

/* ✅ Mobiles (<= 767px) */
@media (max-width: 767px) {
  .whatsapp-float,
  .phone-float {
    left: 15px;
    width: 50px;
    height: 50px;
    font-size: 24px;
    line-height: 50px;
  }

  .phone-float {
    bottom: 85px;
  }
}

/* ✅ Très petits mobiles (<= 400px) */
@media (max-width: 400px) {
  .whatsapp-float,
  .phone-float {
    left: 10px;
    width: 45px;
    height: 45px;
    font-size: 22px;
    line-height: 45px;
  }

  .phone-float {
    bottom: 80px;
  }
}

/*Avis*/

.avis-section {
  padding: 80px 20px;
  background: linear-gradient(180deg, #f9f9f9 0%, #f0f8fa 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.avis-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="%23137C8B" fill-opacity="0.03" d="M0,0 L100,0 L100,100 L0,100 Z"/></svg>');
  background-size: cover;
  z-index: 0;
}

.avis-section h2 {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #137C8B;
  position: relative;
  display: inline-block;
  font-weight: 700;
}

.avis-section h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #137C8B;
  border-radius: 3px;
}

.avis-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 1200px;
}

.avis-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  padding: 25px;
  width: 100%;
  max-width: 350px;
  text-align: left;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  transform: translateY(0);
  border: 1px solid rgba(0,0,0,0.05);
}

.avis-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.avis-note {
  font-size: 1.3em;
  color: #FFD700;
  margin-bottom: 15px;
  letter-spacing: 2px;
  text-align: center;
}

.avis-comment {
  font-size: 1em;
  color: #555;
  margin-bottom: 15px;
  line-height: 1.6;
}

.avis-author {
  font-weight: 600;
  color: #344D59;
  font-size: 0.95em;
  position: relative;
  padding-left: 25px;
}

.avis-author::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #137C8B;
}

.avis-button {
  display: inline-block;
  margin-top: 40px;
  background-color: #158b9d;
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(19, 124, 139, 0.3);
  border: none;
  cursor: pointer;
  font-size: 1em;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.avis-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: #0d5c6b;
  transition: width 0.3s ease;
  z-index: -1;
}

.avis-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(32, 191, 215, 0.942);
}

.avis-button:hover::before {
  width: 100%;
}

/* Animation pour les cartes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.avis-card {
  opacity: 0;
  transform: translateY(20px);
  transition: all 2s ease;
}

.avis-card.visible {
  opacity: 1;
  transform: translateY(0);
}
