:root {
    --primary-color: #00a651;
    --dark-color: #222;
    --light-color: #f4f4f4;
    --gray-color: #888;
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    padding-top: 0px; /* Espace pour le header fixe */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER ET NAVIGATION */
header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 10px 0;
    overflow: hidden;
    transition: height 0.1s ease, opacity 0.1s ease;
    height: 80px;
    opacity: 1;
}

.logo {
    max-width: 200px;
	margin-left: 70px;
}

.logo img {
    width: 100%;
    height: auto;
}

.nav-container {
    width: 100%;
    background-color: white;
    padding: 10px 0;
    display: flex;
    justify-content: center;
}

/* Navigation bureau */
.desktop-nav {
    display: flex;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
}

.desktop-nav ul li {
    position: relative;
    margin: 0 15px;
}

.desktop-nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: bold;
    text-transform: uppercase;
    padding-bottom: 5px;
    transition: color 0.3s;
}

.desktop-nav ul li a:hover {
    color: var(--primary-color);
}

.desktop-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    left: 0;
    bottom: 0;
    transition: width 0.3s;
}

.desktop-nav ul li a:hover::after {
    width: 100%;
}

.desktop-nav ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-width: 200px;
    flex-direction: column;
    padding: 10px 0;
    z-index: 10;
}

.desktop-nav ul li:hover > ul {
    display: flex;
}

.desktop-nav ul li ul li {
    margin: 5px 15px;
}

/* Bouton burger pour mobile */
.mobile-toggle {
    display: none;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 30px; /* Déplacé plus bas */
    width: 30px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
    z-index: 101;
}

.mobile-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--dark-color);
    transition: all 0.3s ease;
    transform-origin: left center;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Navigation mobile */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: white;
    z-index: 99;
    padding-top: 120px; /* Augmenté pour démarrer le menu plus bas */
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav ul li {
    border-bottom: 1px solid #eee;
}

.mobile-nav ul li a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: bold;
    text-transform: uppercase;
}

.mobile-nav ul li a:hover {
    color: var(--primary-color);
}

.mobile-nav .submenu {
    display: none;
    background-color: #f8f8f8;
}

.mobile-nav .submenu li:last-child {
    border-bottom: none;
}

.mobile-nav .has-submenu > a {
    position: relative;
}

.mobile-nav .has-submenu > a::after {
    content: '+';
    position: absolute;
    right: 20px;
    transition: transform 0.3s;
}

.mobile-nav .has-submenu.active > a::after {
    content: '-';
}

.quality-labels {
    background-color: #f9f9f9;
    padding: 40px 0;
    text-align: center;
}

.labels-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.label-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    width: 250px;
}

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

.label-img {
    height: 120px;
    margin-bottom: 15px;
    object-fit: contain;
}

.label-content h3 {
    margin-bottom: 10px;
    color: #333;
}

.label-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

/* Garder la disparition du logo au scroll uniquement sur desktop */
@media (min-width: 769px) {
    header.scrolled .logo-container {
        height: 0;
        opacity: 0;
        padding: 0;
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }

    header {
        padding: 10px 0;
    }

    .header-content {
        flex-direction: row;
        justify-content: center;
        position: relative;
        padding: 10px 0;
    }

    .logo-container {
        height: 60px;
        justify-content: center; /* Logo centré sur mobile */
        padding: 0 20px;
    }

    /* Empêcher le logo de disparaître sur mobile */
    header.scrolled .logo-container {
        height: 60px;
        opacity: 1;
        padding: 0 20px;
    }

    .logo {
        max-width: 150px;
    }

    .labels-container {
        flex-direction: column;
    }
    
    .label-item {
        width: 90%;
        max-width: 300px;
    }
}

.logo img {
    width: 50%;
    height: auto;
}

header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: center;
    padding-top: 15px;
}

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

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a:hover {
    color: var(--primary-color);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    left: 0;
    bottom: 0;
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

.hero {
    background-image: url('assets/img/dev.jpg');
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

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

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s;
    cursor: pointer;
}

.btn:hover {
    background-color: #008a45;
}

.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-link {
    text-decoration: none; /* Supprime le soulignement */
    color: inherit; /* Conserve la couleur actuelle du texte */
    display: block; /* Permet au lien d'envelopper tout l'élément */
}

.service-content {
    padding: 20px;
}

.service-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.coordinates {
    background-color: var(--light-color);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-card {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-radius: 5px;
    overflow: hidden;
}

.pricing-table th, .pricing-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.pricing-table th {
    background-color: var(--primary-color);
    color: white;
}

.pricing-table tr:hover {
    background-color: #f5f5f5;
}

.pricing-table .price {
    font-weight: bold;
    color: var(--primary-color);
}

footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
    left: 0;
    bottom: 0;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--gray-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--gray-color);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.form-submit {
    text-align: center;
    margin-top: 10px;
}

/* Styles pour la page Tarifs */
.tarif-valid {
    text-align: center;
    font-weight: bold;
    margin-bottom: 30px;
    color: var(--gray-color);
}

.notice-box {
    background-color: #f2f9f5;
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    margin-bottom: 30px;
    border-radius: 0 5px 5px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.category-title {
    margin: 40px 0 20px;
    color: var(--primary-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-color);
    font-size: 1.5rem;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-radius: 5px;
    overflow: hidden;
    font-size: 1rem;
}

.pricing-table th {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: bold;
}

.pricing-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-table tr:hover {
    background-color: #f9f9f9;
}

.pricing-table .price {
    font-weight: bold;
    color: var(--primary-color);
    text-align: right;
}

.note {
    margin: 10px 0 30px;
    font-style: italic;
    color: var(--gray-color);
    font-size: 0.9rem;
    padding-left: 10px;
    border-left: 3px solid var(--gray-color);
}

.details-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.detail-box {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 100%;
}

.detail-title {
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
}

.detail-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.detail-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
}

.detail-list li:last-child {
    border-bottom: none;
}

.detail-note {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.contact-info-text {
    margin-top: 40px;
    text-align: center;
    font-style: italic;
    color: var(--gray-color);
    background-color: var(--light-color);
    padding: 15px;
    border-radius: 5px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {

    .logo-container {
        height: 60px;
        /* Changez cette ligne de justify-content: center à flex-start */
        justify-content: flex-start; 
        padding: 0 20px;
    }

    /* Empêcher le logo de disparaître sur mobile */
    header.scrolled .logo-container {
        height: 60px;
        opacity: 1;
        padding: 0 20px;
        /* Aussi changer ici pour être cohérent */
        justify-content: flex-start;
    }
    header {
        padding: 0px 0; /* Réduire le padding (actuellement à 10px) */
    }

    .header-content {
        padding: 0px 0; /* Réduire le padding (actuellement à 10px) */
    }

    .logo {
        max-width: 150px;
        margin-left: -20px;
        margin-top: 11px;
    }

    .hero h1 {
        font-size: 2rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 10px 0;
    }
	
	.pricing-table {
        font-size: 0.9rem;
    }
    
    .pricing-table th, 
    .pricing-table td {
        padding: 10px;
    }
    
    .details-container {
        grid-template-columns: 1fr;
    }
    
    .detail-box {
        margin-bottom: 15px;
    }
}

nav ul ul {
    display: none;
    position: absolute;
    background-color: #fff;
    list-style: none;
    padding: 0;
}

nav ul li:hover > ul {
    display: block;
}

nav ul ul li {
    margin: 0;
}