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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #000;
    -ms-overflow-style: none;  /* Pour Internet Explorer et Edge */
    scrollbar-width: none;     /* Pour Firefox */
}

/* Pour Chrome, Safari et Opera */
body::-webkit-scrollbar {
    display: none;
}

/* Pour garder le défilement fluide */
html {
    scroll-behavior: smooth;
}

:root {
    --primary-blue: #87CEEB;
    --light-blue: #B0E0E6;
    --dark-blue: #4682B4;
    --text-color: #333333;
}

header {
    background-color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-color);
    transition: color 0.3s ease;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 8px 10px;
}

nav ul li a:hover {
    opacity: 0.7;
}

nav ul::after {
    display: none;
}

main {
    margin-top: 0;
}

section:not(#accueil) {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

#accueil {
    position: relative;
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('../img/1.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    max-width: none;
}

.accueil-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 61, 89, 0.7);
}

.accueil-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

#accueil h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#accueil p {
    font-size: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #000;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service {
    margin-top: 50px ;
    padding: 2rem;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-top: 3px solid var(--primary-blue);
    transition: transform 0.3s ease;
    text-align: center;
}

.service:hover {
    transform: translateY(-5px);
}

#contact form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
}

input, textarea {
    margin: 0.5rem 0;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    background-color: var(--primary-blue);
    color: #fff;
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    min-height: 48px;
    min-width: 48px;
}

button:hover {
    background-color: var(--hover-blue);
}

footer {
    text-align: center;
    padding: 2rem;
    color: #000;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem;
    }

    nav ul {
        margin-top: 1rem;
        gap: 1rem;
    }
}

/* Styles pour la section avis */
#avis {
    background-color: #cbe5ff;
    overflow: hidden;
    padding: 2rem 0;
    border-radius: 10px;
}

.avis-container {
    border-radius: 10px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.avis-container::before,
.avis-container::after {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    width: 100px;
    z-index: 2;
}

.avis-container::before {
    left: 0;
    background: linear-gradient(to right, #f9f9f9 0%, transparent 100%);
}

.avis-container::after {
    right: 0;
    background: linear-gradient(to left, #f9f9f9 0%, transparent 100%);
}

.avis-slider {
    display: flex;
    gap: 2rem;
    animation: scroll 40s linear infinite;
    position: relative;
    z-index: 1;
}

.avis-card {
    flex: 0 0 300px;
    padding: 2rem;
    background: rgb(255, 255, 255);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border-left: 3px solid var(--primary-blue);
}

.avis-card:hover {
    transform: translateY(-5px);
}

.stars {
    color: #ffd700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.commentaire {
    font-style: italic;
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.5;
}

.client {
    font-weight: bold;
    color: #333;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-1320px));
    }
}

/* Pause animation on hover */
.avis-container:hover .avis-slider {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .avis-container::before,
    .avis-container::after {
        width: 50px;
    }

    .avis-card {
        flex: 0 0 260px;
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-1160px));
        }
    }
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 5px rgba(30, 61, 89, 0.2);
}

/* Ajout des styles pour les icônes de services */
.service {
    padding: 2rem;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-top: 3px solid var(--primary-blue);
    transition: transform 0.3s ease;
    text-align: center;
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--primary-blue);
    transition: transform 0.3s ease;
}

.service:hover .service-icon svg {
    transform: scale(1.1);
}

.service h3 {
    margin: 1rem 0;
    color: #000;
}

.service p {
    color: #666;
}

/* Styles pour la section réalisations */
#realisations {
    background-color: #fff;
    padding: 4rem 5%;
    margin-top: 100px;
}

.realisations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.realisation-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

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

.realisation-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 2rem 1rem 1rem;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

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

.realisation-overlay h3 {
    margin-bottom: 0.5rem;
    color: white;
}

.realisation-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Media queries pour les réalisations */
@media (max-width: 768px) {
    .realisations-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }

    .realisation-overlay {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.2));
    }
}

h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: #000;
}

footer a {
    color: #000;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.7;
}

/* Classe à ajouter quand on scroll */
.header-scrolled {
    background-color: var(--primary-blue);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.header-scrolled .logo,
.header-scrolled nav ul li a {
    color: white;
}

.header-scrolled nav ul li a:hover {
    color: #e0e0e0;
}

/* Position de la barre pour chaque section */
nav ul.active-accueil::after {
    width: 55px;
    transform: translateX(0);
}

nav ul.active-services::after {
    width: 85px;
    transform: translateX(75px);
}

nav ul.active-realisations::after {
    width: 85px;
    transform: translateX(180px);
}

nav ul.active-avis::after {
    width: 45px;
    transform: translateX(290px);
}

nav ul.active-contact::after {
    width: 60px;
    transform: translateX(355px);
}

/* Ajuster la couleur de la barre quand le header est transparent */
nav ul::after {
    background: var(--primary-blue);
}

/* Changer la couleur de la barre quand le header est scrollé */
.header-scrolled nav ul::after {
    background: white;
}

/* Ajout d'une section "Pourquoi nous choisir" */
.why-us {
    background-color: var(--light-blue);
    padding: 4rem 2rem;
    margin: 2rem 0;
    border-radius: 10px;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.why-us-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.contact-header {
    display: flex;
    align-items: center;
}

.phone-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--dark-blue);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 48px;
    min-width: 48px;
}

.phone-button:hover {
    background-color: var(--primary-blue);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .contact-header {
        margin-top: 1rem;
    }
}

.why-us-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
}

.why-us-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--primary-blue);
    transition: transform 0.3s ease;
}

.why-us-item:hover .why-us-icon svg {
    transform: scale(1.1);
}

/* Styles pour la section contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.contact-info {
    padding-right: 2rem;
}

.contact-info h2 {
    text-align: left;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.address {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.social h2 {
    margin-top: 2rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    color: #000;
    font-size: 1.5rem;
    transition: opacity 0.3s ease;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icons a:hover {
    opacity: 0.7;
}

.contact-form {
    width: 100%;
}

.contact-form h2 {
    text-align: left;
    margin-bottom: 2rem;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f5f5f5;
}

#contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

#contact-form button {
    width: fit-content;
    padding: 0.8rem 2rem;
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-height: 48px;
    min-width: 48px;
}

#contact-form button:hover {
    background-color: var(--dark-blue);
}

/* Responsive design */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #ddd;
        padding-bottom: 2rem;
    }
}

