/* =============================================
   STYLE.CSS - Nicolas Pennarun - Version Finale
   ============================================= */
/* ====================== VARIABLES ====================== */
:root {
    --bg: #F8F8F8;
    --text: #121212;
    --card: #518ac7;
    --nav: #F0F0F0;
    --accent: #121212;
    --border: #2c3e50;
    --link: #1e3a8a;
}
.dark-mode {
    --bg: #121212;
    --text: #F0F0F0;
    --card: #1a1a1a;
    --nav: #1a1a1a;
    --accent: #1E90FF;
    --border: #1E90FF;
    --link: #1E90FF;
}
/* ====================== BASE ====================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}



body {
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.75;
    color: var(--text);
    background: var(--bg);
    transition: background 0.5s ease, color 0.5s ease;
}
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: -1.2px;
}
a {
    text-decoration: none;
    color: var(--link);
}
a:hover {
    color: var(--text);
}  
  

    
/* ====================== ANIMATIONS ====================== */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(-80px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.88); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(25, 33, 43, 0.3); }
    50% { box-shadow: 0 0 40px rgba(30, 144, 255, 0.6); }
}

/* ====================== NAVIGATION ====================== */
.navbar {
    background: var(--nav);
    backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1.4rem 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.5s ease;
}
.navbar.scrolled {
    padding: 1rem 6%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.logo a {
    font-family: 'Playfair Display', serif;
    font-size: 2.15rem;
    font-weight: 800;
    letter-spacing: -2px;
    color: var(--text);
    transition: all 0.4s ease;
}
.logo a:hover {
    color: var(--accent);
    transform: scale(1.05);
}
.nav-menu {
    display: flex;
    gap: 2.8rem;
    list-style: none;
}
.nav-menu a {
    color: var(--text);
    font-weight: 500;
    position: relative;
}
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.4s ease;
}
.nav-menu a:hover::after {
    width: 100%;
}
#dark-toggle {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text);
    padding: 8px;
    border-radius: 50%;
}
#dark-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}


/* ====================== HERO INDEX (Chemin absolu) ====================== */
.hero {
    height: 100vh;
    min-height: 720px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: white;
}

/* Image en arrière-plan */
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Overlay sombre */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.25));
    z-index: 2;
}

/* Contenu texte */
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 20px;
    animation: scaleIn 1.6s ease forwards;
}

.hero h1 {
    font-size: clamp(3.8rem, 9vw, 7rem);
    margin-bottom: 1.2rem;
    line-height: 1.05;
}

.hero p {
    font-size: 1.75rem;
    max-width: 720px;
    margin: 0 auto;
    opacity: 0.95;
}


/* ====================== HERO GALERIE (Chemin absolu) ====================== */
.hero-galerie {
    height: 70vh;
    min-height: 560px;
    background-image: 
        linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.82)),
        url('/images/galerie/beethoven.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: black;
    position: relative;
}

/* Overlay sombre */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.65));
    z-index: 2;
}

.hero-galerie > div {
    z-index: 2;
}
.hero-galerie h1 {
    font-size: clamp(3.2rem, 7vw, 4.8rem);
    margin: 0;
    line-height: 1.1;
}
.hero-galerie p {
    font-size: 1.65rem;
    margin-top: 1.2rem;
    opacity: 0.95;
}


/* ====================== SECTIONS & CARDS ====================== */
.section {
    padding: 8rem 6% 6rem;
    background: var(--bg);
}
.card {
    background: var(--card);
    color: white;
    border-radius: 24px;
    padding: 3.2rem;
    border: 1px solid var(--border);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(62, 140, 254, 0.25);
}
.card h2 {
    font-size: 2.1rem;
    margin-bottom: 1.4rem;
}


/* ====================== BIOGRAPHIE - CARTES PARCOURS ====================== */
.card {
    width: 100%;
    box-sizing: border-box;
    padding: 2.8rem 3rem;           /* Plus d'espace intérieur */
}

/* Amélioration pour les listes dans les cartes bio */
.card ul {
    padding-left: 1.2rem;
   }

.card li {
    margin-bottom: 0.85rem;
    line-height: 1.55;
}

.card h2 {
    margin:1rem 0 1.5rem;
    color:var(--accent);
}

/* Pour que les cartes prennent bien toute la largeur disponible */
.galerie-grid .card {
    height: 100%;
}

/* ====================== FORMULAIRE CONTACT ====================== */
.card form {
    width: 100%;
}

.card input,
.card textarea {
    width: 100%;                    /* Pleine largeur de la card */
    padding: 14px 18px;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.card input:focus,
.card textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(81, 138, 199, 0.15);
}

.card textarea {
    resize: vertical;
    min-height: 180px;
}

.card label {
    display: block;
    margin: 1.6rem 0 0.6rem;
    font-weight: 500;
    color: var(--text);
}

/* Style du bouton (déjà présent mais renforcé) */
.card .btn {
    width: 100%;
    margin-top: 2.5rem;
    padding: 1.4rem 2rem;
    font-size: 1.1rem;
}


/* ====================== BOUTONS ====================== */
.btn {
    background: #111;
    color: white;
    padding: 1.25rem 3rem;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.5s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    font-size: 1.05rem;
        animation: glowPulse 6s infinite alternate ease-in-out;
}
.btn:hover {
    background: var(--card);
    color: var(--accent);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 35px rgba(81, 138, 199, 0.4);
}



 
/* ====================== GALERIE ====================== */
.galerie-filters {
    text-align: center;
    margin: 3rem 0 2.5rem;
}

.filter-btn {
    margin: 0 10px 15px;
    padding: 12px 28px;
    background: rgba(0,0,0,0.75);
    color: #ddd;
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.02rem;
    transition: all 0.4s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-3px);
}

/* ====================== GALERIE GRID ====================== */
.galerie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2.8rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.galerie-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.35);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--card);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.galerie-item:hover {
    transform: translateY(-20px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0,0,0,0.55);
}

.galerie-item img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.galerie-item:hover img {
    transform: scale(1.12);
}

/* Overlay centré au milieu */
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    opacity: 0;
    transition: all 0.4s ease;
    color: white;
}

.galerie-item:hover .overlay {
    opacity: 1;
}

.overlay h3 {
    font-size: 1.45rem;
    margin-bottom: 0.6rem;
}

.overlay .meta {
    font-size: 0.98rem;
    opacity: 0.95;
}

/* Status (Disponible / Vendu) */
.status {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 22px;
    border-radius: 50px;
    font-weight: 700;
    z-index: 12;
    box-shadow: 0 6px 16px rgba(0,0,0,0.45);
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Prix supprimé dans la grille */
.price {
    display: none;
} 
 
/* ====================== LIGHTBOX ====================== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.97);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    overflow-y: auto;
}

.lightbox-content {
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 45px;
    max-width: 1250px;
    max-height: 92vh;
    align-items: flex-start;
}

/* IMAGE */
.lightbox-image-container {
    position: relative;
    flex-shrink: 0;
    max-width: 68%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0,0,0,0.9);
}

#lightbox-img {
    max-width: 100%;
    max-height: 84vh;           /* Plus grand grâce à la disposition horizontale */
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    display: block;
}

/* INFORMATIONS À DROITE */
.lightbox-info {
    flex: 1;
    min-width: 300px;
    color: white;
    padding-top: 15px;
}

.lightbox-info h2 {
    font-size: 2.1rem;
    margin-bottom: 0.8rem;
    line-height: 1.1;
}

.lightbox-info .meta {
    font-size: 1.12rem;
    margin-bottom: 1.6rem;
    opacity: 0.9;
    line-height: 1.45;
}

.price-lightbox {
    font-size: 2.05rem;
    font-weight: 800;
    color: var(--accent);
    margin: 1.4rem 0 2rem;
}

#lb-buy-btn {
    background: var(--accent);
    color: white;
    padding: 16px 36px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.08rem;
    cursor: pointer;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
}

#lb-buy-btn:hover {
    background: #3a7ab8;
    transform: translateY(-3px);
}

/* Bouton fermer */
.close-lightbox {
    position: absolute;
    top: -25px;
    right: -25px;
    background: #111;
    color: white;
    border: none;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    font-size: 2.2rem;
    cursor: pointer;
    z-index: 30;
    transition: all 0.3s ease;
}

.close-lightbox:hover {
    background: var(--accent);
    transform: rotate(90deg);
}

.magnifier {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 4px solid rgba(255,255,255,0.9);
    border-radius: 50%;
    box-shadow: 0 0 35px rgba(0,0,0,0.7);
    background-repeat: no-repeat;
    pointer-events: none;
    display: none;
    z-index: 20;
}
.magnifier.active {
    display: block;
}

/* ====================== RESPONSIVE (mobile) ====================== */
@media (max-width: 992px) {
    .lightbox-content {
        flex-direction: column;
        gap: 25px;
        max-width: 95%;
    }
    
    .lightbox-image-container {
        max-width: 100%;
    }
    
    #lightbox-img {
        max-height: 68vh;
    }
    
    .lightbox-info {
        padding-top: 0;
        text-align: center;
        align-items: center;
    }
    
    #lb-buy-btn {
        max-width: 100%;
    }
}
/* ====================== FOOTER ====================== */
footer {
    background: var(--nav);
    color: #aaa;
    text-align: center;
    padding: 5rem 6% 3rem;
}
.social-links {
    margin: 2rem 0 2.5rem;
}
.social-links a {
    color: #aaa;
    font-size: 1.85rem;
    margin: 0 15px;
    transition: all 0.4s ease;
}
.social-links a:hover {
    color: var(--accent);
    transform: translateY(-5px);
}
/* ====================== RESPONSIVE ====================== */
@media (max-width: 768px) {
    .nav-menu { display: none; }

    .section { padding: 6rem 5% 4rem; }

    .hero, .hero-galerie { height: 90vh; min-height: 650px; }

}
/* ====================== DARK MODE ====================== */
.dark-mode .card {
    background: var(--card);
    border-color: var(--border);
}
.dark-mode .hero {
    background: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.88)), 
                url('images/bretagne2.jpg') center/cover no-repeat;
}
.dark-mode .galerie-item {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.65);
}
.dark-mode .filter-btn {
    background: rgba(255,255,255,0.07);
    color: #ccc;
}
.dark-mode #dark-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}



/* ====================== DROPDOWN MENU MODERNE + GLOW ====================== */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 500;
}

.dropdown-toggle i {
    font-size: 0.95rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Menu déroulant */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    opacity: 0;
    visibility: hidden;
    background: var(--nav);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15),
                0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 245px;
    padding: 12px 8px;
    z-index: 1200;
    border: 1px solid rgba(255,255,255,0.7);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    list-style: none;           /* Suppression des puces */
}

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

/* Liens du menu */
.dropdown-menu li a {
    display: block;
    padding: 14px 24px;
    color: var(--text);
    border-radius: 12px;
    margin: 4px 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

/* Séparateurs */
.dropdown-menu li:not(:last-child) a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
}

.dark-mode .dropdown-menu li:not(:last-child) a::after {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

/* Effet Glow + Hover */
.dropdown-menu li a:hover {
    background: var(--accent);
    color: white;
    transform: translateX(10px);
    box-shadow: 0 0 20px rgba(81, 138, 199, 0.5),     /* Glow bleu */
                0 8px 25px rgba(81, 138, 199, 0.3);
}

/* Flèche */
.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

/* ====================== DARK MODE ====================== */
.dark-mode .dropdown-menu {
    background: rgba(26, 26, 26, 0.96);
    border-color: rgba(30, 144, 255, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background: var(--card);
        border-radius: 16px;
        margin-top: 10px;
        padding: 8px 0;
        min-width: auto;
        backdrop-filter: none;
    }
    
    .dropdown-menu li a {
        margin: 3px 8px;
        padding: 15px 28px;
    }
    
    .dropdown-menu li:not(:last-child) a::after {
        left: 28px;
        right: 28px;
    }
}

