/*#FF6701 #FFA500*/
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #fff;
    color: #000;
    overflow-x: hidden;
    min-height: 100vh;
}

header {
    background-color: #fff;
    width: 100%;
    z-index: 1000;
    position: sticky;
    top: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.main-header {
    display: flex;
    flex-direction: row; 
    align-items: center; 
    justify-content: space-between; 
    max-width: 1200px;
    margin: auto;
    height: 100px;
    gap: 20px;
}


.logo img,
.logo svg {
    height: 200px;
    max-height: 200px;
    object-fit: contain;
}

.logo h1 {
    margin: 10px 0;
}

.logo a {
    text-decoration: none;
    font-size: 1.8rem;
    color: #191717;
}

nav {
    margin-top: 10px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

nav ul li {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: #191717;
    padding: 10px;
    transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: #ff9900;
}

.dropdown-content {
    display: none !important;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-width: 160px;
    top: 100%;
    left: 0;
    z-index: 10;
}

.dropdown.open .dropdown-content {
    display: block !important;
}

.dropdown-content a {
    display: block;
    padding: 10px;
    color: #191717;
}

.dropdown-content a:hover {
    background-color: #ff9900;
    color: #fff;
}

.dropdown .dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    z-index: 1;
}

.dropdown.open .dropdown-content {
    display: block;
}

#navbar {
    display: flex;
    flex-direction: row;
}

.hamburger {
    display: none;
}

@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        margin: 4px 0;
        background-color: #000;
        transition: 0.4s;
        margin-right: 25px;
    }

    #navbar {
        width: 100%;
        justify-content: center;
    }

    #navbar ul {
        display: none;
        flex-direction: column;
        align-items: center;
        background-color: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 999;
        padding: 20px 0;
    }

    #navbar.active ul {
        display: flex;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        display: block;
        width: 100%;
        padding: 15px 0;
    }

    .dropdown .dropbtn {
        display: block; 
    }
}

.hero-section {
    background-image: url('../images/home/menuiserie.svg');
    background-size: cover;
    background-position: center;
    height: 620px;
    position: relative;
    color: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    height: 100%;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 50px;
    box-sizing: border-box;
}

.hero-content h2 {
    font-size: 2em;
    margin: 0;
}

.hero-content p {
    font-size: 1.5em;
    margin: 0;
}

.hero-content a.contact-button {
    font-size: 14px;
    background-color: #FF6701;
    color: white;
    padding: 10px 18px;
    text-decoration: none;
    border-radius: 6px;
    align-self: flex-start;
    transition: transform 0.3s, background-color 0.3s;
}

.hero-content a.contact-button:hover {
    background-color: #FFA500;
    transform: scale(1.10);
}

@media (max-width: 768px) {
    .hero-section {
        height: auto;
        padding: 40px 20px;
    }

    .hero-content {
        height: auto;
        align-items: center;
        padding: 20px;
        text-align: center;
        margin-top: 20px;
    }

    .hero-content h2 {
        font-size: 2em;
        margin-bottom: 20px;
    }

    .hero-content p {
        font-size: 1.2em;
        margin-bottom: 30px;
    }

    .hero-content a.contact-button {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.5em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .hero-content a.contact-button {
        font-size: 13px;
        padding: 8px 14px;
    }
}

.section-2 {
    background-color: #000;
    padding: 125px 20px;
    text-align: center;
}

.step-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s, color 0.3s;
    color: #fff;
    text-align: center;
}

.step img {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
    transition: transform 0.3s;
}

.step-number {
    font-weight: bold;
    margin: 10px 0;
    color: #fff;
}

.step:hover {
    transform: scale(1.1);
    color: #ff9900;
}

.step:hover img,
.step:hover .step-number {
    transform: scale(1);
    color: #ff9900;
}


.section-3 {
    padding: 50px 20px;
    background-color: #fff;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-item {
    background-color: #fff;
    color: #000;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    text-align: center;
    padding: 20px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.grid-item img {
    max-width: 80px;
    margin-bottom: 12px;
    transition: filter 0.3s ease;
}

.grid-item p {
    margin: 0;
    font-size: 14px;
    text-align: center;
}

.grid-item p strong {
    margin-left: 5px;
}

.grid-item:hover {
    background-color: #FFA500;
    color: #fff;
}

.grid-item:hover img {
    filter: brightness(0) invert(1);
}

.section-4 {
    background-color: #000;
    color: #fff;
    padding: 100px 20px;
}

.section-4 .container {
    padding: 50px;
}

.title {
    font-size: 3.5em;
    text-align: left;
    margin-bottom: 50px;
    border-left: 3px solid white;
    padding-left: 10px;
}

.stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.stat-item {
    width: 45%;
    margin: 20px 0;
    text-align: center;
}

.stat-item span {
    font-size: 5em;
    color: #FFA500;
}

.stat-item .star {
    color: #FF6200;
    margin-left: 10px;
}

.stat-item p {
    font-size: 1.25em;
}

.section-5 {
    background: #fff;
    display: flex;
    height: 50vh;
    justify-content: center;
    align-items: center;
}

.slider {
    position: relative;
    height: 100px;
    overflow: hidden;
    margin: auto;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.125);
}

.slider::before,
.slider::after {
    content: "";
    position: absolute;
    width: 200px;
    height: 100px;
    z-index: 2;
    background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%);
}

.slider::after {
    right: 0;
    top: 0;
    transform: rotateZ(180deg);
}

.slider::before {
    left: 0;
    top: 0;
}

.slider .slide-track {
    display: flex;
    width: calc(200px * 14);
    animation: scroll 30s linear infinite;
}

.slider .slide {
    height: 100px;
    width: 200px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
}

.slider .slide img {
    max-width: 180px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

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

footer {
    background-color: #000;
    color: white;
    text-align: center;
    padding: 2rem 1rem 4rem;
    width: 100%;
    font-family: Arial, sans-serif;
}

.footer-middle {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 50px auto 0;
    gap: 30px;
    padding: 0 15px;
    box-sizing: border-box;
}

.footer-middle > div {
    flex: 1 1 250px;
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.site-links ul,
.info-contact,
.social-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.info-contact- a {
    color: inherit;       
    text-decoration: none; 
}

.info-contact- a:hover {
    text-decoration: underline;
}


.site-links ul li {
    margin-bottom: 12px;
}

.site-links ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.site-links ul li a:hover,
.site-links ul li a:focus {
    color: #FFA500;
    outline: none;
}

.footer-title {
    color: #FF0037;
    margin-bottom: 30px;
    font-weight: bold;
    font-size: 1.3rem;
    letter-spacing: 1px;
}

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

.button {
    font-size: 16px;
    padding: 8px 20px;
    border: none;
    border-radius: 25px;
    color: white;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
}

.instagram {
    background-color: #F00075;
}

.facebook {
    background-color: #1878F2;
}

.instagram-link:hover .button.instagram,
.facebook-link:hover .button.facebook,
.instagram-link:focus .button.instagram,
.facebook-link:focus .button.facebook {
    transform: scale(1.15);
    box-shadow: 0 0 8px rgba(255, 103, 0, 0.7);
    outline: none;
}

.img-insta,
.img-fb {
    width: 25px;
    height: 25px;
    margin-right: 8px;
    display: inline-block;
}

footer .copyright {
    margin-top: 50px;
    font-size: 1rem;
    color: #ccc;
}

.footer-bottom {
    margin-top: 50px;
    font-size: 0.9rem;
    color: #ccc;
    text-align: center;
}

.footer-bottom a {
    color: #FF6701;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #FFA500;
    text-decoration: underline;
}

.site-credit {
    margin-top: 10px;
}


@media (max-width: 768px) {
    .footer-middle {
        gap: 20px;
        padding: 0 10px;
    }
    .footer-middle > div {
        min-width: 100%;
    }
    .social-links {
        justify-content: center;
    }
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-top: 40px;
}


.alert {
    padding: 15px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: opacity 0.5s ease;
}
.alert.success {
    background-color: #d4edda;
    color: #155724;
}
.alert.error {
    background-color: #f8d7da;
    color: #721c24;
}

.contact-page {
    margin: 0;
    font-family: Arial, sans-serif;
    background: url('../images/contact-bg.svg') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
}

.contact-page {
    padding: 50px 0;
}

.contact-form {
    flex-basis: 48%;
    background: rgba(0, 0, 0, 0.5);
    padding: 30px; 
    border-radius: 10px;
    box-sizing: border-box;
}

.form-header h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #fff;
}

input[type="email"],
input[type="text"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #fff;
    color: #000;
    font-size: 1rem;
}

textarea {
    resize: vertical;
    max-height: 300px;
    min-height: 100px;
}

input[type="submit"] {
    background-color: #FF6701;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

input[type="submit"]:hover {
    background-color: #FFA500;
}

.contact-info {
    flex-basis: 48%;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-content: center;
}

.info-block {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    flex-basis: calc(50% - 10px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.info-block .icon {
    margin-bottom: 10px;
}

.info-block .icon img {
    width: 50px;
    height: auto;
}

.info-block h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.info-block p {
    margin: 5px 0;
}

.info-block p a.link-contact {
    color: #fff;
    text-decoration: none;
}

.info-block p a.link-contact:hover {
    color: #FFA500;
}

.map-section {
    padding: 40px 20px;
    text-align: center;
}

.map-and-hours {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: auto;
}

.map-container {
    flex: 1 1 600px;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.opening-hours {
    flex: 2 1 500px; 
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 20px;
    color: #fff;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
    width: 100%;         
    max-width: 600px;    
    min-width: 400px;    
}

.opening-hours h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    border-bottom: 2px solid #FF5722;
    padding-bottom: 5px;
}

.opening-hours table {
    width: 100%;
    border-collapse: collapse;
}

.opening-hours td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    font-size: 1rem;
}

.opening-hours td:first-child {
    font-weight: bold;
    width: 90px;
}

@media (max-width: 768px) {
    .map-and-hours {
        flex-direction: column;
        gap: 20px;
    }

    .map-container, .opening-hours {
        flex: unset;
        width: 100%;
        min-width: auto;
    }

    .opening-hours table td {
        font-size: 0.9rem;
    }
}

.page-title {
    text-align: center;
    font-size: 2.8rem;
    margin: 50px 0 30px;
    color: #222;
    font-weight: 600;
}

.container-services {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    width: 30%;
    min-height: 520px; /* Hauteur fixe pour alignement */
    box-sizing: border-box;
    margin: 10px 0;
}

.card h2 {
    font-size: 1.1em;
    color: #333;
    margin: 0;
}

.card h2{
    font-size: 2em;
    margin: 10px 0;
    color: #000;
    line-height: 1.2;
}

.card p {
    font-size: 1em;
    color: #666;
    margin: 10px 0;
    flex-grow: 1;
}

.card img {
    width: 100%;
    height: auto;
    margin-top: 20px;
    object-fit: contain;
}

.card button {
    background-color: #FF5721;
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin-top: 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
}

.card button:hover {
    background-color: #FFA500;
}

/* Section info */
.info-section {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    font-size: 1em;
    color: #333;
    margin: 10px;
}

.info-item img {
    width: 65px;
    height: 65px;
    margin-right: 10px;
}

.info-item p {
    font-weight: bold;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .card {
        width: 45%;
    }
}

@media (max-width: 768px) {
    .container-services {
        flex-direction: column;
        align-items: center;
    }
    .card {
        width: 80%;
    }
    .info-section {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .card {
        width: 90%;
    }
    .card h2 {
        font-size: 1.8em;
    }
    .info-item {
        flex-direction: column;
        text-align: center;
    }
    .info-item img {
        margin-bottom: 10px;
    }
}


/* === DEVIS === */
.devis-section {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px 30px;
    background-color: #f5f5f5;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.devis-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
    font-weight: 600;
}

.form-devis .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.full-width {
    grid-column: 1 / -1;
}

.form-devis label {
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.form-devis input,
.form-devis select,
.form-devis textarea {
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    background-color: #fff;
    transition: border 0.2s;
}

.form-devis input:focus,
.form-devis select:focus,
.form-devis textarea:focus {
    border-color: #1a73e8;
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-group {
    margin-top: 40px;
    text-align: center;
}

.btn-devis {
    background-color: #FF6701;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: none;
    align-items: center;
    justify-content: center;
    height: 36px;
    line-height: normal;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
    cursor: pointer;
  }
  
  .btn-devis:hover,
  .btn-devis:focus {
    background-color: #FFA500;
    color: white;
    outline: none;
  }

  .btn-devis2 {
    width: 120px;       
    height: 36px;        
    background-color: #FF6701;
    color: white;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
    display: inline-block;
  }
  
  .btn-devis2:hover,
  .btn-devis2:focus {
    background-color: #FFA500;
    outline: none;
  }
  
  
  .menu-burger ul {
    display: flex;
    flex-direction: column;
    align-items: center; 
    padding: 0;
    margin: 0;
    list-style: none;
  }
  
  .menu-burger ul li {
    width: 100%;
    margin: 8px 0;
    display: flex;
    justify-content: center;
  }
  
  .menu-burger ul li .btn-devis {
    display: inline-flex;  
    width: auto;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 6px;
    text-align: center;
    margin: 0; 
    max-width: 180px;
    min-width: 120px;
    box-sizing: border-box;
  }
  
.legal-page {
    padding: 60px 20px;
    max-width: 900px;
    margin: auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #f9f9f9;
    line-height: 1.7;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    border-radius: 10px;
}

.legal-page h1 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #1d1d1d;
    text-align: center;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
}

.legal-page h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    color: #2c3e50;
    border-left: 4px solid #ff7700;
    padding-left: 10px;
}

.legal-page p {
    margin: 10px 0;
}

.legal-page a {
    color: #ff7700;
    text-decoration: underline;
}

.legal-page a:hover {
    text-decoration: none;
}

.legal-page strong {
    color: #111;
}