@media (max-width: 900px) {
    .user-avatar {
        display: none !important;
    }
}
@media (max-width: 900px) {
    .about-mobile-sidebar .sidebar-nav {
        text-align: left !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .about-mobile-sidebar .sidebar-link,
    .about-mobile-sidebar .sidebar-link.active {
        justify-content: flex-start !important;
        text-align: left !important;
    }
}
@media (max-width: 900px) {
    .about-mobile-sidebar .sidebar-header {
        margin-bottom: -140px !important;
        padding-bottom: 0 !important;
    }
    .about-mobile-sidebar .sidebar-nav {
        margin-top: -30 !important;
        padding-top: 0 !important;
    }
}
@media (max-width: 900px) {
    .about-mobile-sidebar .sidebar-nav {
        padding-left: 0 !important;
        margin-left: 0 !important;
        text-align: left !important;
    }
    .about-mobile-sidebar .sidebar-link,
    .about-mobile-sidebar .sidebar-link.active {
        margin-left: 0 !important;
        padding-left: 0 !important;
        text-align: left !important;
        justify-content: flex-start !important;
    }
}
@media (max-width: 900px) {
    .about-mobile-sidebar .sidebar-link,
    .about-mobile-sidebar .sidebar-link.active {
        margin-left: 0 !important;
        padding-left: 0 !important;
         width: 70% !important;
    }
}
/* Encadrer le lien actif de la sidebar mobile */
@media (max-width: 900px) {
    .about-mobile-sidebar .sidebar-link.active {
        background-color: rgba(255, 255, 255, 0.2) !important;
        border-radius: 8px !important;
        box-shadow: 0 1px 6px #0001 !important;
        color: #fff !important;
        font-weight: 700 !important;
        padding: 6px 16px !important;
    }
}
@media (max-width: 600px) {
    .all-photos-hero {
        margin-bottom: 16px;
    }
    .all-photos-hero-img {
        height: 110px !important;
        max-width: 100vw !important;
        border-radius: 4px !important;
        box-shadow: 0 1px 6px #0001 !important;
        margin: 0 0 8px 0 !important;
    }
    .all-photos-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px 6px !important;
        max-width: 100vw !important;
        margin: 0 0 18px 0 !important;
        padding: 0 2vw !important;
    }
    .all-photos-grid img {
        height: 60px !important;
        border-radius: 2.5px !important;
        box-shadow: 0 1px 4px #00000008 !important;
        background: #fff !important;
    }
    .gallery-title {
        font-size: 1.25rem !important;
        margin-top: 16px !important;
        margin-bottom: 12px !important;
        padding: 0 8px !important;
    }
}
.about-mobile-sidebar-overlay, .about-mobile-sidebar-overlay *:not(.about-mobile-sidebar) {
    background: transparent !important;
   
}
/* Afficher le bouton hamburger et le titre uniquement sur mobile */
@media (min-width: 769px) {
    .mobile-menu-btn,
    .header-mobile-title {
        display: none !important;
    }
}
.nav, .nav-item, .nav-link, .nav-custom {
	font-family: 'Montserrat', Arial, sans-serif !important;
}
.nav-link.nav-custom {
		border-bottom: none !important;
		text-decoration: none !important;
		font-family: 'Montserrat', Arial, sans-serif;
}
.nav-link.nav-custom:hover,
.nav-link.nav-custom:focus {
	border-bottom: none !important;
	text-decoration: none !important;
}
/* Soulignement orange uniquement sous le lien actif */
.nav-link.nav-custom.active {
	position: relative;
}
.nav-link.nav-custom.active::after {
	margin-top: -10px;
	content: "";
	display: block;
	position: absolute;
		left: 50%;
			bottom: -5px;
		width: 150%;
		height: 2px;
		transform: translateX(-50%);
	background: #ff9800;
	border-radius: 2px;
	box-shadow: none;
}
/* Navbar styles for navbar.html selectors */
header {
	margin-top: -30px;
	border: none;
	box-shadow: none;
}

.nav {
	display: flex;
	font-family: 'Montserrat', Arial, sans-serif;
	flex-direction: row;
	align-items: center;
	gap: 32px;
	list-style: none;
	margin-top: 0px;
		padding: 0 0 0 8px;
}
.nav-custom {
    color: #ff9800 !important;
    font-weight: 300;
	font-size: 13px;
		border-bottom: none !important;
    padding-bottom: 0.25rem;
    transition: color 0.2s;
}
.nav-custom.active {
    color: #222 !important;
		border-bottom: none !important;
}
.nav-custom:hover {
    color: #e67e22 !important;
}
nav {
	width: 100%;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: none;
	box-shadow: none;
}
.user-avatar {
    width: 32px;
    height: 32px;
    object-fit: cover;
    margin-top: 0px;
    margin-right: 0px;
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}

header {
    position: relative;
}

@media (max-width: 600px) {
    .gallery-title {
        margin-left: 50px !important;
    }
}
@media (max-width: 900px) {
    .about-mobile-sidebar .sidebar-nav {
        padding-left: 0 !important;
        margin-left: 0 !important;
        text-align: left !important;
    }
    .about-mobile-sidebar .sidebar-link,
    .about-mobile-sidebar .sidebar-link.active {
        margin-left: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-inline: 0 !important;
        text-align: left !important;
        justify-content: flex-start !important;
        min-width: 0 !important;
        width: 70% !important;
        box-sizing: border-box !important;
    }
    .about-mobile-sidebar .sidebar-link.active {
        padding: 8px 0 !important;
    }
}
/* Styles sidebar mobile importés de home.css */

@media (max-width: 768px) {
    .d-flex.d-lg-none.w-100.align-items-center.justify-content-between {
        min-height: 48px !important;
        height: 48px !important;
        align-items: center !important;
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
    }
    .header-mobile-title {
        line-height: 1 !important;
        display: flex !important;
        align-items: center !important;
        height: 100% !important;
        margin-top: 10px !important;
        margin-left: auto !important;
        margin-right: 0px !important;
        text-align: right !important;
        width: auto !important;
        position: static !important;
        left: unset !important;
        top: unset !important;
        display: inline-block !important;
        order: 2 !important;
        font-size: 1.5rem !important;
        font-weight: 800 !important;
    }
    .mobile-menu-btn {
        display: flex !important;
        align-items: center !important;
        width: 40px !important;
        height: 100% !important;
        margin-top: -10px !important;
        margin-bottom: 0 !important;
        margin-left: -15px !important;
        margin-right: 0 !important;
        order: 1 !important;
        font-size: 3.1rem !important;
    }
    /* Cacher l'ancienne version absolute */
    .header-mobile-title[style*="position: absolute"] {
        display: none !important;
    }
}
@media (max-width: 600px) {
    /* Sidebar mobile overlay et drawer (importé de home.css) */
    .gallery-filter-container {
      margin-left: 50px;
    }
    .gallery-card {
        height: 100%;
        min-height: 220px;
        box-sizing: border-box;
    }
    .gallery-grid {
        align-items: stretch;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px 10px;
    }
    .gallery-card {
        flex-direction: column;
        align-items: flex-start;
        min-height: unset;
        padding: 10px 6px;
        font-size: 0.95rem;
    }
        .gallery-img {
            width: 100%;
            min-width: 0;
            max-width: 100%;
            height: 110px;
            aspect-ratio: 1.3/1;
            object-fit: cover;
            display: block;
            margin: 0 auto;
        }
    .gallery-card-content h2 {
        font-size: 1.1rem;
    }
    .gallery-card-content p {
        font-size: 0.85rem;
    }
    /* Agrandir légèrement les cartes de la colonne droite sur mobile */
    .gallery-card:nth-child(even) {
        width: 100% !important;
        margin-left: 10px !important;
    }
    .gallery-card:nth-child(odd) {
        width: 110% !important;
        margin-left: 0 !important;
    margin-left: 15px !important;
    }
}
/* Espacement global entre les blocs du footer sur toutes les pages */
/* Correction footer horizontal pour all-photos.html */
.footer-list a,
.footer-policy-link,
.footer-social-link {
    color: #111 !important;
    transition: color 0.2s;
}
.footer-list a:hover,
.footer-policy-link:hover {
    color: #5f5757 !important;
}
#footer-placeholder .footer-container .row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
        gap: 48px 32px;
}
#footer-placeholder .footer-container .col-md-3 {
        flex: 1 1 0;
        min-width: 220px;
        max-width: 25%;
        box-sizing: border-box;
}
@media (max-width: 900px) {
    #footer-placeholder .footer-container .row {
        flex-direction: column !important;
        align-items: stretch;
    }
    #footer-placeholder .footer-container .col-md-3 {
        max-width: 100%;
    }
}
/* All Photos Page Custom Layout */
.all-photos-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 32px;
}
.all-photos-hero-img {
    width: 100%;
    max-width: 1200px;
    height: 400px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 16px #00000018;
}
.all-photos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px 18px;
    max-width: 1200px;
    margin: 0 auto 40px auto;
}
.all-photos-grid img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 2px 8px #00000010;
    background: #fff;
}
@media (max-width: 900px) {
    .all-photos-hero-img {
        height: 200px;
    }
    .all-photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .all-photos-grid img {
        height: 100px;
    }
}
body {
    font-family: 'Montserrat', Arial, sans-serif;
    background: white;
    margin: 0;
    padding: 0;
}

.gallery-title {
    text-align: center;
    font-size: 2.7rem;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 32px;
    color: #181818;
}

.gallery-filter-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.gallery-filter {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px #00000010;
    padding: 24px 32px;
    min-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gallery-filter span {
    font-weight: 600;
    color: #181818;
}

.clear-filters {
    align-self: flex-end;
    color: #1e90ff;
    font-size: 0.95rem;
    text-decoration: none;
    margin-bottom: 8px;
    cursor: pointer;
}

.gallery-stars {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    color: #ffb23f;
    font-size: 1.3rem;
    letter-spacing: 2px;
    margin-left: 8px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 32px;
    max-width: 1200px;
    margin: 0 auto 40px auto;
}

.gallery-card {
    background: #fff5ea;
    border-radius: 14px;
    box-shadow: 0 2px 10px #00000010;
    display: flex;
    gap: 24px;
    padding: 24px 24px 24px 24px;
    align-items: center;
    min-height: 260px;
}

.gallery-img {
    width: 220px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px #00000010;
}

.gallery-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gallery-card-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #181818;
}

.gallery-card-content p {
    font-size: 1.05rem;
    color: #555;
    margin: 0 0 4px 0;
}

.rating {
    font-size: 0.95rem;
    color: #888;
    margin-bottom: 8px;
}

.show-photos {
    background: #a04c43;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 18px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
}
.show-photos:hover {
    background: #7d3a32;
}

.gallery-share-container {
    display: flex;
    justify-content: center;
    margin: 40px 0 60px 0;
}

.share-photos {
    background: #a04c43;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 14px 36px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.share-photos:hover {
    background: #7d3a32;
}

/* Gallery Modal Styles */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.55);
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.gallery-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px 24px 24px;
    max-width: 1100px;
    width: 95vw;
    box-shadow: 0 8px 32px #00000030;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.gallery-modal-close {
    position: absolute;
    top: 18px;
    right: 28px;
    font-size: 2.2rem;
    color: #a04c43;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}
.gallery-modal-close:hover {
    color: #7d3a32;
}

.gallery-modal-main {
    width: 100%;
    max-width: 1000px;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 28px;
    box-shadow: 0 2px 12px #00000018;
}

.gallery-modal-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    width: 100%;
    margin-top: 0;
}

.gallery-thumb {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.2s;
}
.gallery-thumb:hover {
    border: 2px solid #a04c43;
}

@media (max-width: 900px) {
    .gallery-modal-main {
        height: 180px;
    }
    .gallery-modal-content {
        padding: 12px 4px 16px 4px;
    }
    .gallery-modal-thumbs {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
    }
    .gallery-thumb {
        height: 60px;
    }
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-card {
        flex-direction: column;
        align-items: flex-start;
        min-height: unset;
    }
    .gallery-img {
        width: 100%;
        height: 180px;
    }
}
