/* Styles Généraux */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f4f7f6; /* Légèrement plus chaud que le blanc */
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

header {
    background-color: #fff;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 30px;
}


nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: #007bff;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
    left: 0;
    background: #007bff;
}

nav ul li a:hover {
    color: #007bff;
    transform: translateY(-2px);
}



section {
    margin-bottom: 50px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

h2 {
    color: #2c3e50; /* Couleur de titre plus foncée */
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2.2em;
    font-weight: 600;
}

.button {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.button:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
}

.button-secondary {
    display: inline-block;
    background-color: #e9ecef;
    color: #333;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 1px solid #ced4da;
    font-weight: 500;
}

.button-secondary:hover {
    background-color: #dee2e6;
    transform: translateY(-2px);
}

/* --- Mise à jour pour le logo dans l'en-tête --- */

header .logo img {
    height: 60px; /* Hauteur désirée pour votre logo */
    width: auto; /* Maintient les proportions */
    vertical-align: middle; /* Aide à l'alignement si le logo est sur la même ligne que d'autres éléments */
    transition: transform 0.3s ease; /* Animation au survol si le logo est cliquable */
}

header .logo img:hover {
    transform: scale(1.05); /* Léger agrandissement au survol */
}


/* Ajustements pour le footer si vous y avez aussi un "ARCHIPLAN" textuel que vous voulez remplacer par le logo */
.footer-content .logo-footer {
    /* Si vous voulez un logo dans le footer aussi, vous pouvez ajouter une image ici,
       sinon, ce style continuera à s'appliquer au texte "ARCHIPLAN" */
    font-size: 1.8em;
    font-weight: bold;
    color: #f8f8f8; /* Couleur du texte si c'est du texte */
    text-transform: uppercase;
}

/* Si vous mettez aussi l'image dans le footer */
.footer-content .logo-footer img {
    height: 40px; /* Taille plus petite pour le footer */
    width: auto;
    filter: invert(100%); /* Si votre logo est noir et que votre footer est sombre, cela le rendra blanc. À tester ! */
    opacity: 0.8;
}

/* --- Responsive pour le logo --- */
@media (max-width: 768px) {

    header .logo img {
        height: 50px; /* Réduit la taille du logo sur les petits écrans */
    }
}

@media (max-width: 480px) {
    header .logo img {
        height: 45px; /* Encore plus petit sur les très petits écrans */
    }
}

/* Section Accueil - Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 650px; /* Hauteur fixe pour le slider */
    overflow: hidden;
    margin-bottom: 50px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    background-color: #eee; /* Fallback couleur si image non chargée */
}

.slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out; /* Animation plus dynamique    cubic-bezier(0.68, -0.55, 0.265, 1.55)*/
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
    z-index: -1;
    filter: brightness(0.8); /* Assombrit légèrement l'image */
}

.slide .hero-text {
    position: relative;
    z-index: 1;
    padding: 30px 40px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 12px;
    max-width: 80%;
}

.slide .hero-text h1 {
    font-size: 3.5em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
    line-height: 1.1;
}

.slide .hero-text p {
    font-size: 1.4em;
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* Navigation du slider */
.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 2;
}

.slider-nav button {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    padding: 10px 13px;
    font-size: 1.8em;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s ease, color 0.3s ease, transform 0.2s ease;
    backdrop-filter: blur(5px); /* Effet de flou sur le fond */
}

.slider-nav button:hover {
    background: #007bff;
    color: #fff;
    transform: scale(1.1);
}

/* Section À Propos Résumé */
#a-propos-resume {
    text-align: center;
}
#a-propos-resume p {
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 25px auto;
    font-size: 1.1em;
    color: #555;
}

/* Section Projets Récents - Carrousel Slick */
#projets-recents {
    text-align: center;
}

.carousel-projets {
    margin-bottom: 20px;
    padding: 0 60px; /* Espace pour les flèches du carrousel */
}

/* Styles pour les éléments de projet dans le carrousel */
.carousel-projets  {
    padding: 15px; /* Espace entre les items du carrousel */
    box-sizing: border-box;
}

.carousel-projets .projet-item {
    text-align: center;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding-bottom: 20px;
    overflow: hidden; /* Pour que l'image ne dépasse pas les bords */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-projets .projet-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.carousel-projets .projet-item img {
    width: 100%;
    height: 220px; /* Hauteur fixe pour les images des projets */
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    margin-bottom: 15px;
}

.carousel-projets .projet-item h3 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.4em;
}

.carousel-projets .projet-item p {
    color: #666;
    font-size: 0.95em;
    padding: 0 15px;
    margin-bottom: 20px;
}

/* Styles des flèches et points de navigation de Slick */
.slick-prev:before, .slick-next:before {
    font-family: 'slick';
    font-size: 35px; /* Taille des flèches */
    line-height: 1;
    color: #007bff; /* Couleur des flèches */
    opacity: 0.9;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.slick-prev {
    left: 20px; /* Position de la flèche gauche */
    z-index: 5;
}

.slick-next {
    right: 20px; /* Position de la flèche droite */
    z-index: 5;
}

.slick-dots {
    bottom: -40px; /* Position des points de navigation */
}

.slick-dots li button:before {
    font-size: 12px; /* Taille des points */
    color: #ccc; /* Couleur des points inactifs */
}

.slick-dots li.slick-active button:before {
    color: #007bff; /* Couleur des points actifs */
}

/* Section Services Principaux */
#services-principaux {
    text-align: center;
}
#services-principaux ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

#services-principaux ul li {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    text-align: center;
    font-size: 1.1em;
    color: #444;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

#services-principaux ul li:hover {
    transform: translateY(-5px);
    background-color: #e6f2ff; /* Légèrement teinté de bleu à l'hover */
    border-color: #007bff;
}

/* Section Contact Form Resume */
#contact-form-resume {
    text-align: center;
}
#contact-form-resume p {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #555;
}
#contact-form-resume form {
    display: grid;
    max-width: 600px;
    margin: 0 auto 30px auto;
    grid-gap: 20px;
}

#contact-form-resume input[type="text"],
#contact-form-resume input[type="email"],
#contact-form-resume textarea {
    padding: 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1.05em;
    width: 100%;
    box-sizing: border-box; /* Inclut padding et border dans la largeur */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contact-form-resume input[type="text"]:focus,
#contact-form-resume input[type="email"]:focus,
#contact-form-resume textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

#contact-form-resume textarea {
    resize: vertical;
    min-height: 120px;
}

#contact-form-resume .informations-contact {
    line-height: 2;
    font-size: 1.1em;
    color: #555;
}
#contact-form-resume .informations-contact a {
    color: #007bff;
    text-decoration: none;
}
#contact-form-resume .informations-contact a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #2c3e50; /* Couleur de pied de page plus foncée */
    color: #ecf0f1;
    padding: 40px 20px;
    text-align: center;
    font-size: 0.95em;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap; /* Permet le retour à la ligne sur mobile */
    margin-bottom: 25px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.logo-footer {
    font-size: 1.6em;
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
}

.liens-utiles ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.liens-utiles ul li {
    margin: 0 15px 10px 15px;
}

.liens-utiles ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.liens-utiles ul li a:hover {
    color: #fff;
}

.reseaux-sociaux {
    margin-top: 15px;
}
.reseaux-sociaux a {
    display: inline-block;
    margin: 0 10px;
}
.reseaux-sociaux img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}
.reseaux-sociaux img:hover {
    transform: scale(1.1);
}

.copyright {
    margin-top: 20px;
    font-size: 0.9em;
    color: #95a5a6;
}

/* Responsive Design */
@media (max-width: 992px) {
    header {
        padding: 15px 20px;
        flex-direction: column;
        align-items: flex-start;
    }
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    nav ul li {
        margin: 0 10px 10px 10px;
    }
    main {
        padding: 15px;
        margin: 15px auto;
    }
    section {
        padding: 30px;
    }
    h2 {
        font-size: 1.8em;
    }
    .hero-slider {
        height: 500px;
    }
    .slide .hero-text h1 {
        font-size: 2.8em;
    }
    .slide .hero-text p {
        font-size: 1.2em;
    }
    .slider-nav button {
        padding: 12px 16px;
        font-size: 1.5em;
    }
    .carousel-projets {
        padding: 0 40px;
    }
    .carousel-projets .projet-item img {
        height: 180px;
    }
    #services-principaux ul {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .liens-utiles ul {
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
    }
    .liens-utiles ul li {
        margin: 5px 0;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 400px;
    }
    .slide .hero-text h1 {
        font-size: 2.2em;
    }
    .slide .hero-text p {
        font-size: 1em;
    }
    .slider-nav {
        padding: 0 10px;
    }
    .slider-nav button {
        padding: 10px 14px;
        font-size: 1.3em;
    }
    .carousel-projets {
        padding: 0 10px; /* Moins d'espace sur les très petits écrans */
    }
    .slick-prev {
        left: 0px;
    }
    .slick-next {
        right: 0px;
    }
    .slick-prev:before, .slick-next:before {
        font-size: 25px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 350px;
    }
    .slide .hero-text h1 {
        font-size: 1.8em;
    }
    .slide .hero-text p {
        font-size: 0.9em;
    }
    .slide .hero-text .button {
        padding: 8px 15px;
        font-size: 0.9em;
    }
    #a-propos-resume p {
        font-size: 1em;
    }
    #services-principaux ul li {
        font-size: 1em;
        padding: 15px;
    }
    #contact-form-resume input, #contact-form-resume textarea {
        font-size: 0.9em;
    }
}