

:root {

    --primary-color: #2c3e50;

    --secondary-color: #34495e;

    --accent-color: #3498db;

    --text-color: #333;

    --bg-light: #f5f5f5;

    --bg-section: #ecf0f1;

    --white: #ffffff;

}



* {

    box-sizing: border-box;

}



body {

    margin: 0;

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

    background: var(--bg-light);

    line-height: 1.6;

    color: var(--text-color);

}



/* Header */

header {

    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));

    color: white;

    padding: 30px 20px;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 15px;

    justify-content: center;

    position: relative;

    box-shadow: 0 2px 10px rgba(0,0,0,0.1);

}



header .logo-container {

    display: flex;

    align-items: center;

    gap: 15px;

    flex-wrap: wrap;

    justify-content: center;

}



header img {

    height: 160px;

    width: auto;

    max-width: 100%;

    transition: transform 0.3s ease;

    animation: logoAnimation 3s ease-in-out infinite;

}



@keyframes logoAnimation {

    0% { 

        transform: scale(1) rotate(0deg); 

    }

    25% { 

        transform: scale(1.08) rotate(5deg); 

    }

    50% { 

        transform: scale(1.1) rotate(-5deg); 

    }

    75% { 

        transform: scale(1.08) rotate(3deg); 

    }

    100% { 

        transform: scale(1) rotate(0deg); 

    }

}



header img:hover {

    animation-play-state: paused;

    transform: scale(1.15) rotate(0deg);

}



#dreiText {

    font-size: 50px;

    color: white;

    font-weight: bold;

    text-shadow: 2px 6px 4px rgba(0,0,0,0.5);

}



header h1 {

    font-size: 24px;

    text-align: center;

    margin: 10px 0 0 0;

    font-weight: 600;

}



.highlightText, #highlightText {

    color: white;

    

    padding: 3px 8px;

    border-radius: 5px;


    display: inline-block;

}



header::after {

    content: "Nous proposons un service de rebobinage professionnel, fiable et durable.";

    display: block;

    margin-top: 15px;

    font-size: 16px;

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

    text-align: center;

    font-style: italic;

    max-width: 600px;

}



/* Navbar */

nav {

    background: var(--secondary-color);

    padding: 0;

    text-align: center;

    position: sticky;

    top: 0;

    z-index: 100;

    box-shadow: 0 2px 5px rgba(0,0,0,0.1);

}



.nav-container {

    display: flex;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 10px;

    padding: 15px;

}



nav a {

    color: white;

    margin: 0 15px;

    text-decoration: none;

    font-weight: 600;

    font-size: 16px;

    padding: 8px 16px;

    border-radius: 5px;

    transition: all 0.3s ease;

    display: inline-block;

}



nav a:hover {

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

    color: white;

    transform: translateY(-2px);

}



nav a.active {

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

    box-shadow: 0 0 20px rgba(255,255,255,0.8), 0 0 40px rgba(255,255,255,0.6);

    transform: scale(1.05);

    animation: illuminate 0.5s ease-out;

}



nav a:active {

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

    box-shadow: 0 0 20px rgba(255,255,255,0.8), 0 0 40px rgba(255,255,255,0.6);

    transform: scale(1.05);

}



@keyframes illuminate {

    0% {

        box-shadow: 0 0 5px rgba(255,255,255,0.5);

    }

    50% {

        box-shadow: 0 0 30px rgba(255,255,255,1), 0 0 60px rgba(255,255,255,0.8);

    }

    100% {

        box-shadow: 0 0 20px rgba(255,255,255,0.8), 0 0 40px rgba(255,255,255,0.6);

    }

}



.mobile-menu-toggle {

    display: none;

    background: none;

    border: none;

    color: white;

    font-size: 28px;

    cursor: pointer;

    padding: 5px 15px;

}



/* Hero */

.hero {

    background: url('./image/rebobinage.png') center/cover no-repeat;

    height: 300px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    color: white;

    font-size: 28px;

    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);

    text-align: center;

    padding: 20px;

    position: relative;

    

}



.hero::before {

    content: '';

    position: absolute;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background: rgba(0,51,102,0.4);

}



.hero > * {

    position: relative;

    z-index: 1;

}



/* Sections */

.section {

    padding: 0 20px 40px 20px;

    text-align: center;

    max-width: 1200px;

    margin: 0 auto;

}



.services-title {

    font-size: 32px;

    font-weight: bold;

    color: var(--primary-color);

    margin: 20px 0 20px 0;

    position: relative;

    display: inline-block;

    animation: titleAnimation 3s ease-in-out infinite;

}



@keyframes titleAnimation {

    0%, 100% {

        transform: scale(1);

        opacity: 1;

    }

    50% {

        transform: scale(1.05);

        opacity: 0.9;

    }

}



.services-title::after {

    content: '';

    position: absolute;

    bottom: -10px;

    left: 50%;

    transform: translateX(-50%);

    width: 60px;

    height: 3px;

    background: var(--accent-color);

}



/* Slider */

.horizontal-slider {

    position: relative;

    width: 95%;

    max-width: 1000px;

    height: 280px;

    margin: 0 auto 30px auto;

    overflow: hidden;

    border-radius: 15px;

    background: var(--white);

    box-shadow: 0 4px 15px rgba(0,0,0,0.2);

}



.slider-track {

    display: flex;

    transition: transform 0.5s ease-in-out;

    align-items: center;

    justify-content: flex-start;

    height: 100%;

}



.slider-track img {

    width: 200px;

    min-width: 200px;

    height: 100%;

    object-fit: cover;

    margin: 0;

    border-radius: 0;

    transition: transform 0.4s ease, filter 0.4s ease, opacity 0.4s ease;

    opacity: 0.7;

}



.slider-track img.active {

    transform: scale(1.2);

    z-index: 2;

    filter: brightness(1.1);

    cursor: pointer;

    opacity: 1;

    box-shadow: 0 0 20px rgba(0,0,0,0.3);

}



/* Buttons */

.slider-buttons {

    display: flex;

    justify-content: space-between;

    max-width: 1000px;

    width: 95%;

    margin: 20px auto;

    gap: 20px;

}



.slider-buttons button {

    padding: 12px 30px;

    font-size: 18px;

    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));

    color: white;

    border: none;

    border-radius: 50px;

    cursor: pointer;

    transition: all 0.3s ease;

    box-shadow: 0 4px 15px rgba(0,0,0,0.3);

    font-weight: 600;

}



.slider-buttons button:hover {

    transform: translateY(-2px);

    box-shadow: 0 6px 20px rgba(0,0,0,0.4);

}



.slider-buttons button:active {

    transform: translateY(0);

}



/* Services Description */

.services-description {

    max-width: 900px;

    margin: 30px auto;

    font-size: 17px;

    line-height: 1.8;

    color: var(--text-color);

    text-align: justify;

    background: var(--bg-section);

    padding: 30px;

    border-radius: 12px;

    box-shadow: 0 4px 14px 16px rgba(0,0,0,0.1);

}



.services-description strong {

    color: var(--primary-color);

    font-weight: 600;

}



/* Contact Section - AMÉLIORÉ */

#contact {

    background: var(--white);

    border-radius: 15px;

    margin: 40px auto;

    padding: 50px 30px;

    box-shadow: 0 4px 15px rgba(0,0,0,0.1);

    max-width: 1000px;

}



#contact h2 {

    font-size: 36px;

    font-weight: bold;

    color: white;

    margin-bottom: 40px;

    position: relative;

    display: inline-block;

    background: var(--primary-color);

    padding: 15px 40px;

    border-radius: 10px;

    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);

}



#contact h2::after {

    content: '';

    position: absolute;

    bottom: -10px;

    left: 50%;

    transform: translateX(-50%);

    width: 60px;

    height: 3px;

    background: var(--accent-color);

}



.contact-container {

    display: grid;

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

    gap: 25px;

    margin-bottom: 35px;

}



.contact-card {

    background: linear-gradient(135deg, var(--bg-section), var(--white));

    border-radius: 12px;

    padding: 25px;

    text-align: center;

    transition: all 0.3s ease;

    border: 2px solid transparent;

    box-shadow: 0 2px 8px rgba(0,0,0,0.08);

}



.contact-card:hover {

    transform: translateY(-5px);

    box-shadow: 0 6px 20px rgba(0,0,0,0.15);

    border-color: var(--accent-color);

}



.contact-icon {

    width: 60px;

    height: 60px;

    margin: 0 auto 15px;

    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 28px;

    color: white;

    box-shadow: 0 4px 15px rgba(0,0,0,0.2);

    transition: all 0.3s ease;

}



.contact-icon:hover {

    transform: scale(1.1) rotate(5deg);

    box-shadow: 0 6px 20px rgba(52,152,219,0.5);

}



.contact-card h3 {

    color: var(--primary-color);

    font-size: 20px;

    font-weight: 700;

    margin-bottom: 15px;

    text-transform: uppercase;

    letter-spacing: 1px;

}



.contact-card a {

    text-decoration: none;

    transition: all 0.3s ease;

}



.contact-card .contact-link {

    display: inline-block;

    color: var(--accent-color);

    font-size: 16px;

    font-weight: 600;

    margin: 8px 5px;

    padding: 8px 16px;

    border-radius: 25px;

    background: rgba(52,152,219,0.1);

    border: 1px solid transparent;

}



.contact-card .contact-link:hover {

    background: var(--accent-color);

    color: white;

    transform: translateY(-2px);

    border-color: var(--accent-color);

    box-shadow: 0 4px 12px rgba(52,152,219,0.3);

}



.phone-numbers {

    display: flex;

    flex-direction: column;

    gap: 8px;

    margin-top: 5px;

}



.contact-hours {

    margin-top: 40px;

    padding: 30px;

    background: linear-gradient(135deg, var(--bg-section), var(--white));

    border-radius: 12px;

    text-align: center;

    box-shadow: 0 2px 8px rgba(0,0,0,0.08);

}



.contact-hours strong {

    color: var(--primary-color);

    font-size: 24px;

    display: block;

    margin-bottom: 20px;

    text-transform: uppercase;

    letter-spacing: 1px;

    font-weight: 700;

}



.contact-hours .hours-grid {

    display: grid;

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

    gap: 15px;

    margin-top: 15px;

}



.contact-hours .hours-item {

    padding: 12px;

    background: var(--white);

    border-radius: 8px;

    font-size: 15px;

    border-left: 4px solid var(--accent-color);

    transition: all 0.3s ease;

}



.contact-hours .hours-item:hover {

    transform: translateX(5px);

    box-shadow: 0 2px 8px rgba(0,0,0,0.1);

}



.contact-hours .hours-item .day {

    font-weight: 700;

    color: var(--primary-color);

    margin-bottom: 5px;

    font-size: 16px;

}



.contact-hours .hours-item .time {

    color: var(--text-color);

    font-weight: 500;

}



/* Footer */

footer {

    background: var(--primary-color);

    padding: 25px 20px;

    color: white;

    text-align: center;

    margin-top: 50px;

    font-size: 14px;

}



/* Lightbox */

.lightbox {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: rgba(0,0,0,0.9);

    display: flex;

    justify-content: center;

    align-items: center;

    visibility: hidden;

    opacity: 0;

    transition: opacity 0.3s ease, visibility 0.3s ease;

    z-index: 1000;

    cursor: pointer;

}



.lightbox img {

    max-width: 90%;

    max-height: 90%;

    border-radius: 10px;

    box-shadow: 0 10px 40px rgba(0,0,0,0.5);

}



.lightbox.show {

    visibility: visible;

    opacity: 1;

}



/* Responsive Design */

@media (max-width: 768px) {

    header {

        padding: 20px 15px;

    }

    

    header img {

        height: 120px;

    }

    

    #dreiText {

        font-size: 28px;

    }

    

    header h1 {

        font-size: 18px;

    }

    

    header::after {

        font-size: 14px;

        margin-top: 10px;

    }

    

    .mobile-menu-toggle {

        display: block;

    }

    

    .nav-container {

        flex-direction: column;

        display: none;

        padding: 10px;

    }

    

    .nav-container.active {

        display: flex;

    }

    

    nav a {

        margin: 5px 0;

        width: 100%;

        text-align: center;

    }

    

    .hero {

        height: 200px;

        font-size: 20px;

        padding: 15px;

    }

    

    .section {

        padding: 0 15px 25px 15px;

    }

    

    .services-title {

        font-size: 26px;

    }

    

    .horizontal-slider {

        height: 220px;

        width: 98%;

    }

    

    .slider-track img {

        width: 150px;

        min-width: 150px;

    }

    

    .slider-buttons {

        width: 98%;

        gap: 10px;

    }

    

    .slider-buttons button {

        padding: 10px 20px;

        font-size: 16px;

        flex: 1;

    }

    

    .services-description {

        padding: 20px;

        font-size: 16px;

        text-align: left;

    }

    

    #contact {

        padding: 30px 20px;

    }

    

    #contact h2 {

        font-size: 28px;

        padding: 12px 30px;

    }

    

    .contact-container {

        grid-template-columns: 1fr;

        gap: 20px;

    }

    

    .contact-card {

        padding: 20px;

    }

    

    .contact-card h3 {

        font-size: 18px;

    }

    

    .contact-hours {

        padding: 20px;

    }

    

    .contact-hours strong {

        font-size: 20px;

    }

    

    .contact-hours .hours-grid {

        grid-template-columns: 1fr;

    }

    

    footer {

        font-size: 12px;

        padding: 20px 15px;

    }

}



@media (max-width: 480px) {

    header img {

        height: 100px;

    }

    

    #dreiText {

        font-size: 24px;

    }

    

    header h1 {

        font-size: 16px;

    }

    

    .hero {

        height: 180px;

        font-size: 18px;

    }

    

    .services-title {

        font-size: 22px;

    }

    

    .horizontal-slider {

        height: 180px;

    }

    

    .slider-track img {

        width: 120px;

        min-width: 120px;

    }

    

    .slider-buttons button {

        padding: 8px 15px;

        font-size: 14px;

    }

    

    .services-description {

        padding: 15px;

        font-size: 15px;

    }

    

    #contact h2 {

        font-size: 24px;

        padding: 10px 25px;

    }

    

    .contact-card {

        padding: 15px;

    }

    

    .contact-card h3 {

        font-size: 16px;

    }

    

    .contact-card .contact-link {

        font-size: 13px;

        padding: 6px 12px;

    }

    

    .contact-icon {

        width: 50px;

        height: 50px;

        font-size: 24px;

    }

    

    .contact-hours {

        padding: 15px;

    }

    

    .contact-hours strong {

        font-size: 18px;

    }

}



@media (min-width: 1200px) {

    .section {

        padding: 50px 40px;

    }

    

    .services-title {

        font-size: 38px;

    }

    

    #contact h2 {

        font-size: 42px;

        padding: 18px 50px;

    }

    

    .contact-container {

        grid-template-columns: repeat(4, 1fr);

        gap: 30px;

    }

    

    .contact-card {

        padding: 30px;

    }

}

