/* ================= GLOBAL STYLES ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 18px; /* base 18px */
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f4f4f4;
    color: #222;
    font-size: 1.125rem;
    line-height: 1.7;
    overflow-x: hidden;
}

p, ul {
    text-align: justify;
}

main {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ================= HEADER ================= */
header {
    background-color: #100e13;
    color: #fff;
    padding: 10px 0; /* padding top/bottom seulement */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%; /* prend toute la largeur */
    margin:0;       /* plus de marge auto */
    padding:0 80px;      /* plus de padding latéral */
}

.logo img {
    width: 150px;
    height: auto;
}

/* Language switcher */
.language-switcher select {
    background-color: #000;
    color: #fff;
    border: none;
    cursor: pointer;
}

/* ================= NAVIGATION ================= */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    position: relative;
}

nav ul li {
    position: relative;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    padding: 8px 5px;
    display: block;
    transition: color 0.3s;
}

nav ul li:hover > a {
    color: #ffd700;
}

/* ================= DROPDOWN ================= */
nav ul li .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #000;
    min-width: 220px;
    flex-direction: column;
    z-index: 1000;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

nav ul li .dropdown-content li {
    padding: 10px 15px;
}

nav ul li .dropdown-content li a {
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

nav ul li .dropdown-content li a:hover {
    background-color: #222;
    padding-left: 20px;
}

nav ul li:hover .dropdown-content {
    display: flex;
}

/* ================= MENU HAMBURGER ================= */
.menu-toggle {
    display: none;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
}

/* ================= SLIDER ================= */
.slider {
    margin-top: 60px;
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

/* Image adaptée à l'espace */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 🔥 Remplit toujours l’espace */
}

/* Overlay sombre */
.slide::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

/* Texte visible toujours */
.slide-content {
    position: absolute;
    z-index: 3;
    color: #fff;
    text-align: center;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    padding: 20px;
}
/* Animations différentes */

.fade {
    animation: fadeEffect 1.2s ease;
}
@keyframes fadeEffect {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-left {
    animation: slideLeft 1.2s ease;
}
@keyframes slideLeft {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.zoom {
    animation: zoomEffect 1.2s ease;
}
@keyframes zoomEffect {
    from { transform: scale(1.3); }
    to { transform: scale(1); }
}

.rotate {
    animation: rotateEffect 1.2s ease;
}
@keyframes rotateEffect {
    from { transform: rotate(-5deg) scale(1.2); }
    to { transform: rotate(0) scale(1); }
}
/* RESET */
.slide-content h2,
.slide-content p {
    opacity: 0;
}

/* SLIDE 1 */
.slide:nth-child(1).active h2 {
    animation: slideLeftTitle 1s forwards;
}
.slide:nth-child(1).active p {
    animation: fadeUpText 1s 0.4s forwards;
}

/* SLIDE 2 */
.slide:nth-child(2).active h2 {
    animation: zoomTitle 1s forwards;
}
.slide:nth-child(2).active p {
    animation: fadeUpText 1s 0.4s forwards;
}

/* SLIDE 3 */
.slide:nth-child(3).active h2 {
    animation: rotateTitle 1s forwards;
}
.slide:nth-child(3).active p {
    animation: fadeUpText 1s 0.4s forwards;
}
/* SLIDE 4 */
.slide:nth-child(4).active h2 {
    animation: slideLeftTitle 1s forwards;
}
.slide:nth-child(4).active p {
    animation: fadeUpText 1s 0.4s forwards;
}
/* SLIDE 5 */
.slide:nth-child(5).active h2 {
    animation: zoomTitle 1s forwards;
}
.slide:nth-child(5).active p {
    animation: fadeUpText 1s 0.4s forwards;
}

/* ANIMATIONS */
@keyframes slideLeftTitle {
    from { opacity:0; transform:translateX(-100px); }
    to { opacity:1; transform:translateX(0); }
}

@keyframes zoomTitle {
    from { opacity:0; transform:scale(0.5); }
    to { opacity:1; transform:scale(1); }
}

@keyframes rotateTitle {
    from { opacity:0; transform:rotate(-10deg); }
    to { opacity:1; transform:rotate(0); }
}

@keyframes fadeUpText {
    from { opacity:0; transform:translateY(40px); }
    to { opacity:1; transform:translateY(0); }
}

/* Slide nav buttons */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background 0.3s;
    z-index: 10; /* toujours devant le slide */
}

.prev { left: 20px; }
.next { right: 20px; }

.prev:hover, .next:hover {
    background: rgba(0,0,0,0.7);
}

/* ================= PAGE BANNER ================= */
.page-banner {
    height: 300px;
    margin-top: 60px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.page-banner::before {
    content:"";
    position: absolute;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.6);
}

.page-banner h1 {
    position: relative;
    color: #fff;
    font-size: 2.8rem;
}

/* ================= SECTIONS ================= */
.section {
    padding: 80px 0;
}

.section h2 {
    color: #c40000;
}

/* ================= EXPERTISE ================= */
.expertise-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.expertise-box {
    flex: 1;
    min-width: 300px;
    background: #e7e8e9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
}

.expertise-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.expertise-box img { width: 60px; margin-bottom: 15px; }

.expertise-box p {
    font-size: 1rem;
    line-height: 1.7;
}

.expertise-box ul {
    text-align: left;
    margin-top: 10px;
    font-size: 1rem;
    padding-left: 20px;
}

.expertise-box li { margin-bottom: 8px; }

/* ================= GOOGLE MAP ================= */
.map-container-full {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
}

.map-container-full iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ================= CONTACT ================= */
.contact-section {
    background: #e6e6e6;
    padding: 80px 0;
}

.contact-wrapper {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

.contact-left {
    flex: 1;
    background: #f2f2f2;
    padding: 50px 40px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-item i {
    font-size: 35px;
    color: #ff0000;
    margin-top: 5px;
}

.contact-item h3 {
    color: #ff0000;
    margin-bottom: 5px;
    font-size: 18px;
}

.contact-item p {
    font-size: 15px;
    color: #444;
    margin: 3px 0;
}

.contact-right {
    flex: 2;
}

.contact-right h2 {
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

.contact-form {
    background: #f2f2f2;
    padding: 40px;
    border-radius: 15px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row input { flex: 1; }

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: #dedede;
    font-size: 15px;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    background: #ffffff;
    box-shadow: 0 0 0 2px #ff0000;
}

.form-group { margin-bottom: 20px; }

.btn-submit {
    width: 100%;
    padding: 18px;
    background: #ff0000;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn-submit:hover { background: #cc0000; }

/* ================= FOOTER ================= */
footer {
    background: linear-gradient(90deg, #0a1f44, #c9a227);
    color: #fff;
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 0 10px;
    text-align: center;
    z-index: 1000;
}

.footer .social-icons {
    margin-top: 10px;
}

.social-icons a {
    color: #ffd700;
    font-size: 14px;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #fff;
}

/* ================= RESPONSIVE ================= */
@media(max-width: 992px) {
    .slide-content h2 { font-size: 32px; }
    .slide-content p { font-size: 16px; }
}

@media(max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        background-color: #000;
        width: 100%;
    }
 nav a {
        font-size: 20px;
    }
    nav ul.active { display: flex; }

    nav ul li .dropdown-content { position: static; }

    .menu-toggle { display: block; }

    .slider { height: 60vh; }

    .description {
        font-size: 18px;
        bottom: 20px;
        left: 20px;
    }

    .social-icons a { font-size: 18px; margin: 0 5px; }

    .contact-wrapper { flex-direction: column; }
    .form-row { flex-direction: column; }
}
/* ================= DEVIS FORM ================= */

.devis-section {
    padding: 100px 0;
    background-color: #f4f4f4;
    min-height: 100vh;
}

.devis-container {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.devis-container h2 {
    text-align: center;
    font-size: 32px;
    color: #100e13;
    margin-bottom: 20px;
}

.devis-subtitle {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
}

.devis-form fieldset {
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.devis-form legend {
    font-size: 20px;
    color: #ff0000;
    padding: 0 10px;
    font-weight: 700;
}

.devis-form label {
    font-size: 14px;
    font-weight: 600;
    margin-top: 12px;
    color: #333;
}

.devis-form input,
.devis-form select,
.devis-form textarea {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f1f1f1;
}

.devis-form input:focus,
.devis-form select:focus,
.devis-form textarea:focus {
    background-color: #fff;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

.devis-form textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 30px; /* Espacement entre chaque case et libellé */
    justify-content: flex-start;
}

.checkbox-group label {
    display: flex;
    align-items: center; /* Aligner la case à cocher et le texte verticalement */
    font-size: 15px; /* Taille de police homogène */
    font-weight: 400; /* Poids de police plus léger pour plus de lisibilité */
    color: #555;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px; /* Ajout d'espace entre la case à cocher et le texte */
    width: 18px; /* Taille standard des cases à cocher */
    height: 18px;
    cursor: pointer; /* Change le curseur quand on survole une case */
    transition: all 0.3s ease; /* Animation douce au survol */
}

/* Survol des cases à cocher pour un effet visuel */
.checkbox-group input[type="checkbox"]:hover {
    transform: scale(1.1); /* Agrandissement de la case au survol */
}

/* Survol du texte du label */
.checkbox-group label:hover {
    color: #ff0000; /* Changer la couleur du texte lors du survol */
}
.devis-btn {
    background-color: #100e13;
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    transition: 0.3s ease;
}

.devis-btn:hover {
    background-color: #c9a227;
}

.inline {
    display: inline-block;
    margin-right: 15px;
}

/* Responsiveness */
@media(max-width: 768px) {
    .devis-container {
        padding: 20px;
    }

    .devis-form input,
    .devis-form select,
    .devis-form textarea {
        padding: 10px;
    }
}