/* Variables CSS */
@import url('https://fonts.googleapis.com/css2?family=Overlock:wght@400;600;700&display=swap');

:root {
    --primary-color: #12343B;
    --secondary-color: #2D545E;
    --accent-color: #e74c3c;
    --light-bg: #C89666;
    --dark-bg: #12343B;
    --text-dark: #2D545E;
    --text-light: rgb(200, 150, 102);
    --text-highlight: rgb(225, 179, 130);
    --background-main: #eed2b1;

    --bs-body-font-family: 'averiaregular', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: -0.2px; /* 👈 resserre légèrement les lettres */
    font-size: 1.1em; /* léger agrandissement pour le confort de lecture */
}

@font-face {
    font-family: 'Gabrielle';
    src: url('../Font-Gabrielle/gabrielle.woff2') format('woff2'),
         url('../Font-Gabrielle/gabrielle.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'averiaregular';
    src: url('../Font-Averia/AveriaSerif-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



body {
    font-family: 'Overlock', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: var(--background-main) !important;
    color: var(--text-dark);
    font-size: 1.1em; /* pour voir si tout change */
    letter-spacing: -0.2px; /* 👈 resserre légèrement les lettres */
}

/*
@font-face {
    font-family: 'Gabrielle';
    src: url('assets/Font-Gabrielle/Gabrielle.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}*/

h2, h4 {
    font-family: 'Gabrielle', cursive;
    letter-spacing: 1px;
    color: var(--primary-color);
}

h1, h3 {    
    font-family: 'averiaregular', cursive;
    color: var(--primary-color);

}

.text-primary {
    color: var(--secondary-color) !important;
}

/* Hero Section - Styles supprimés car maintenant utilisant la classe card2 */

.display-4 {
    color: var(--secondary-color) !important;
}

.lead {
    color: var(--secondary-color) !important;
}

.bg-warning{
    background-color: var(--secondary-color) !important;
    color: var(--text-light) !important;
}

.bg-info{
    background-color: var(--secondary-color) !important;
    color: var(--text-light) !important;
}

/* Navigation */
.navbar{
    background-color: var(--dark-bg) !important;
}

.navbar-brand img {
    /*border: 2px solid rgba(255,255,255,0.3);*/
    margin-top: -10px;

}
.navbar-brand {
    font-family: 'averiaregular', cursive;
    font-size: 2rem;
    margin-top: 0px;
    margin-bottom: -7px;
}

.nav-link {
    color: var(--text-light) !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-highlight) !important;
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--text-highlight) !important;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* Landing Page */
.py-5{
    background-color: var(--light-bg) !important;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: var(--text-highlight) !important;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.card2 {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background-color: white !important;
}

.card3 {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background-color: white !important;
    padding-top: 2rem;
    padding-bottom: 2rem;
    margin-top: 3rem;
    margin-bottom: 4.5rem;
}

.card-img-top-container {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover .card-overlay {
    opacity: 1;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

/* Albums page */
.album-container {
    margin-bottom: 80px;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background-color: white !important;
}

.album-container:hover {
    /*scale: 100.5%;*/
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.album-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);

    transition: transform 400ms ease;
    transform-origin: center center;
}


.album-container:hover .album-image,
.album-container > a:hover .album-image {
    transform: scale(1.01);
  }

.album-text {
    padding: 20px 0;
}

.album-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.album-description {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Photo grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.photo-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.photo-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.photo-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-item:hover img {
    transform: scale(1.05);
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.photo-item:hover .photo-caption {
    transform: translateY(0);
}

/* Sidebar */
.sidebar {
    background: var(--light-bg);
    padding: 30px;
    border-radius: 15px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar h4 {
    margin-bottom: 25px;
    color: var(--text-dark);
    font-weight: 600;
}

.album-link {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.album-link:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateX(5px);
    text-decoration: none;
}

.album-link.active {
    background: var(--primary-color);
    color: white;
}



.album-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
}

/* Breadcrumb */
.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 30px;
}

.breadcrumb-item a {
    color: var(--text-dark);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-dark);
}

/* Buttons */
.btn {
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-outline-light {
    border: 2px solid rgb(18, 52, 59);
    color: #12343B;
}

.btn-outline-light:hover {
    background: rgba(200, 150, 102,0.1);
    border-color: rgb(225, 179, 130);
    /*color: #12343B;*/
    color: rgb(225, 179, 130);
}

/* Footer */
footer {
    margin-top: 80px;
}

footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .album-title {
        font-size: 2rem;
    }
    
    .album-image {
        height: 300px;
        margin-bottom: 20px;
    }
    
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .sidebar {
        margin-top: 40px;
        position: static;
    }
    
    .album-container {
        padding: 20px;
        margin-bottom: 40px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.album-container {
    animation: fadeInUp 0.6s ease forwards;
}

.album-container:nth-child(even) {
    animation-delay: 0.2s;
}

.album-container:nth-child(odd) {
    animation-delay: 0.4s;
}
/* --- Sidebar discrète dans la marge gauche --- */
.sidebar-left {
    position: sticky;
    top: 100px;
    padding-left: 10px;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-left h6 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.album-link-left {
    display: block;
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.2s ease;
}

.album-link-left:hover {
    color: var(--secondary-color);
    transform: translateX(3px);
}

.album-link-left.active {
    font-weight: 600;
    color: var(--secondary-color);
}

/* Alignement global : fil d’Ariane et galerie */
.album-layout nav.breadcrumb,
.album-layout h1,
.album-layout .lead,
.album-layout .photo-grid {
    margin-left: 0;
}

/* Sur mobile, cacher la sidebar */
@media (max-width: 992px) {
    .sidebar-left {
        display: none;
    }
}

.approach-section {
    background-color: white !important;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
/*
.approach-section:nth-child(even) {
    background-color: #fff;
}*/

.approach-section h3 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.approach-section p {
    text-align: justify;
    font-size: 1.05rem;
    line-height: 1.8;
}