/* Header avec logos et menu */
header {
    padding: 15px 20px;
    background-color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 1000;
    min-height: 120px;
    /*overflow: hidden;*/
}

table, tr, td {
	text-align: center
}

.header-content {
    width: 100%;
    height: 100%;
}

.logo-container {
    float: left;
    display: flex;
    gap: 20px;
    align-items: center;
    height: 100%;
    margin-left: 5%;
}

.header-logo {
    height: 90px;
    width: auto;
    max-width: 120px;
    transition: opacity 0.3s ease;
	margin-right: 10%;
	/*border: 5px solid black;*/
}



/* Menu hamburger pour mobile */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1002;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Navigation principale */
.main-nav {
    float: right;
    background-color: transparent;
    padding: 0;
    position: relative;
    z-index: 999;
    margin-right: 15%;
	margin-top: 1%;
	/*border: 1px solid black;*/
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
    margin: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 12px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: block;
    white-space: nowrap;
}

.nav-menu a:hover {
    background-color: #f0f0f0;
    color: #000;
}

/* Bouton Contact */
.contact-btn {
    background-color: #ff69b4 !important;
    color: white !important;
    border-radius: 25px !important;
    padding: 12px 25px !important;
    font-weight: bold !important;
    text-align: center;
}

.contact-btn:hover {
    background-color: #ff1493 !important;
    /*transform: scale(1.05);*/
}

/* Dropdown menus */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 10px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: #000;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

/* Navigation principale */
.menu_choisis {
	background-color: #f0f0f0;
	text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 12px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: block;
    white-space: nowrap;
}

/* Séparateur */
.separator {
    height: 3px;
    background: #808080;
    width: 100%;
    margin: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}



/* ===== RESPONSIVE DESIGN ===== */

/* Très petits écrans (jusqu'à 480px) */
/*@media screen and (max-width: 480px) {
    header {
        padding: 10px 15px;
        min-height: 100px;
    }
    
    .logo-container {
        float: none;
        /*justify-content: center;*/
/*        margin-left: 0;
		margin: 0;
		width: 100%;
    }
	
    .header-logo {
        height: 50px;
		margin: 0;
		margin-left: 30px;
		border: 1px solid blue;
    }
    
    .hamburger-menu span {
        width: 20px;
        height: 2px;
    }
    
    .main-nav {
        width: 100%;
    }
}*/



/* Mobiles (jusqu'à 767px) */
@media screen and (max-width: 767px) {
    /* Header mobile */
    header {
        min-height: 120px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 15px;
    }
    
    .header-content {
        display: flex;
        align-items: center;
        /*justify-content: flex-start;*/
		justify-content: center;
		margin-left: 20%;
        width: 100%;
        gap: 15px;
    }

    .hamburger-menu {
        display: flex;
        /*gap: 10px;*/
        /*align-items: center;*/	
        margin-left: 0;
		margin-top: 3%;
        float: none; /* enlever float: right */
    }
	
    /*.logo-container {
        float: none;
		float: right;
        justify-content: center;
        margin-left: 0;
    }*/
    
	.logo-container {
        display: flex;
        gap: 10px;
        align-items: center;
        float: none; /* enlever float: right */
    }
	
    .main-nav {
        float: none;
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        transition: left 0.3s ease;
        overflow-y: auto;
        z-index: 1001;
        margin-top: 0;
        margin-right: 0;
    }
    
    .header-logo {
        height: 70px;
        max-width: 110px;
		/*border: 3px solid red;*/
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
        padding: 80px 0 20px 0;
        align-items: stretch;
    }
    
    .nav-menu li {
        border-bottom: 1px solid #eee;
    }
    
    .nav-menu a {
        padding: 15px 20px;
        border-radius: 0;
        text-align: left;
    }
    
    /* Dropdown mobile */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: #f8f9fa;
        margin: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 200px;
    }
    
    .dropdown-menu a {
        padding: 12px 30px;
        border-bottom: 1px solid #e0e0e0;
    }
	
	
    /* Bouton Contact mobile */
    .contact-btn {
        margin: 10px 20px;
        border-radius: 25px !important;
    }
}



/* Orientation paysage sur mobile */
/*@media screen and (max-width: 767px) and (orientation: landscape) {
	.header-logo {
        height: 70px;
        max-width: 110px;
		border: 1px solid green;
    }
	
    .main-nav {
        width: 320px;
    }
    
    .nav-menu {
        padding: 60px 0 15px 0;
    }
    
    .nav-menu a {
        padding: 12px 20px;
    }
}*/



/* Mobile landscape (768px - 1024px) */
/*@media screen and (min-width: 768px) and (max-width: 1023px) {*/
@media screen and (min-width: 768px) and (max-width: 959px) and (orientation: landscape) {
    header {
		/*width: 1030px;*/
        min-height: 120px;
        display: flex;
        align-items: center;
		z-index: 1000;
	}

    .header-logo {
        height: 70px;
        max-width: 110px;
		/*border: 3px solid purple;*/
		margin-left: 180px;
    }
    
    .logo-container {

	}

    .main-nav {
        float: none;
		margin-top: 80px;
        margin-right: 60px;
		margin-left: 20px;
        flex-shrink: 0;
    }
    
    .nav-menu {
        gap: 15px;
    }
    
    .nav-menu a {
        padding: 10px 12px;
        font-size: 14px;
    }

	.menu_choisis {
		background-color: #f0f0f0;
		text-decoration: none;
		color: #333;
		font-weight: 500;
		padding: 12px 15px;
		border-radius: 5px;
		transition: all 0.3s ease;
		display: block;
		white-space: nowrap;
		font-size: 14px;
	}
}


/* Tablettes Portrait (768px - 959px)  -  GREEN */
@media screen and (min-width: 768px) and (max-width: 959px) and (orientation: portrait) {
	.header-logo {
		/*border: 3px solid green;*/
    }
	
	.header-content {
		width: 100%;
		/*position: relative;*/
		/*border: 1px solid red;*/
		min-height: 150px;
		margin: 0;
		padding: 0;
	}
	
	.logo-container {
		width: 100%;
		/*border: 2px solid green;*/
		/*margin-left: 40px;*/
		/*margin-top: 0px;*/
		margin: 0;
		align-items: center;
		justify-content: center;
	}
	
	.main-nav {
		width: 100%;
		/*border: 1px solid black;*/
		/*margin-right: 40px;*/
		margin: 0;
		/*justify-content: center;*/
	}
	
	.nav-menu {
		justify-content: center;
	}
}


/* Tablettes Paysage (1024px - 2048px)  -  YELLOW */
/*@media screen and (min-width: 1025px) and (max-width: 2048px) {*/
@media screen and (min-width: 960px) and (max-width: 1599px) {
	.header-logo {
		/*border: 3px solid yellow;*/
    }
	
	.header-content {
		width: 100%;
		position: relative;
		/*border: 1px solid red;*/
		min-height: 90px;
		margin: 0;
		padding: 0;
	}
	
	.logo-container {
		width: 25%;
		float: left;
		/*position: relative;*/
		min-height: 100px;
		/*border: 2px solid green;*/
		margin-left: 40px;
		margin-top: 0px;
	}
	
	.main-nav {
		width: 65%;
		float: right;
		height: 70px;
		/*border: 1px solid black;*/
		margin-right: 40px;
		align-items: center;
	}	
}


/* Support pour les écrans haute densité */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .header-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

