:root {
    --primary-dark: #1a1a1a;
    --text-light: #f5f5f5;
    --accent-gold: #c9a961;
    --overlay: rgba(0, 0, 0, 0.4);
}

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

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-light);
    overflow-x: hidden;
    background: var(--primary-dark);
    animation: fadeIn 0.5s ease-in;
}

/* ============================================
   STICKY HEADER FOR LOGO & MENU
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 140px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    z-index: 998;
    pointer-events: none;
    transition: background 0.3s ease;
}

.site-header * {
    pointer-events: auto;
}

/* ============================================
   BARRE DE PROGRESSION DE LECTURE
   ============================================ */

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), rgba(201, 169, 97, 0.5));
    z-index: 1001;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(201, 169, 97, 0.5);
}

/* ============================================
   DÉTAILS DÉCORATIFS
   ============================================ */

/* Ligne décorative verticale dorée fixe */
/*.decorative-line {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 200px;
    background: linear-gradient(180deg, transparent, var(--accent-gold), transparent);
    opacity: 0.3;
    z-index: 997;
    pointer-events: none;
}*/

/* ============================================
   SECTION DIVIDER (Ligne séparatrice)
   ============================================ */

.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0.3;
    margin: 0;
}

/* ============================================
   HERO SECTIONS WITH RESPONSIVE IMAGES
   ============================================ */

.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Picture container for responsive images */
.hero-picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Image styling - garde hauteur naturelle, jamais coupée */
.hero-image {
    width: 100%;
    height: auto;
    min-height: 100vh;
    object-fit: cover;
    object-position: center;
}

/* Overlay for better text readability */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay);
    z-index: 1;
}

/* Specific overlay adjustments per section */
#accueil .hero-overlay {
    background: rgba(0, 0, 0, 0.15);
}

#apropos .hero-overlay {
    background: rgba(0, 0, 0, 0.45);
}

#cours .hero-overlay {
    background: rgba(0, 0, 0, 0.25);
}

#piano .hero-overlay {
    background: rgba(0, 0, 0, 0.55);
}

/* Fade-in animation for first section */
#accueil {
    animation: fadeInSection 1.5s ease-out;
}

/* Overlay pour Contact */
#contact .hero-overlay {
    background: rgba(0, 0, 0, 0.56);
}


@keyframes fadeInSection {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================
   GALERIE PHOTOS - MASONRY OPTIMISÉ
   ============================================ */



/* Container avec columns pour effet Masonry */
.photo-gallery {
    column-count: 3;
    column-gap: 20px;
    width: 100%;
    padding-top: 0; /* Ajusté ci-dessous si besoin */
}

/* Items galerie */
.gallery-item {
    cursor: pointer; /* ← Main pointant (tous les navigateurs) */
    overflow: hidden;
    border-radius: 2px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
    break-inside: avoid;
    page-break-inside: avoid;
    display: block;
    width: 100%;
    background: transparent;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer; /* ← Optionnel (déjà hérité) */
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    vertical-align: bottom;
    cursor: zoom-in; /* ✅ add here */
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .photo-gallery {
        column-count: 2;
        column-gap: 15px;
    }
    .gallery-item {
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .photo-gallery {
        column-count: 2;
        column-gap: 12px;
    }
    .gallery-item {
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .photo-gallery {
        column-count: 1;
        column-gap: 10px;
    }
    .gallery-item {
        margin-bottom: 10px;
    }
}

/* ============================================
   LIGHTBOX
   ============================================ */

.gallery-item img {
  cursor: zoom-in;
}

#lightbox.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  z-index: 100000;
  padding: 24px;

  opacity: 0;
  transition: opacity 0.25s ease;
}

#lightbox.lightbox.active {
  display: flex;
  opacity: 1;
}

#lightbox .lightbox-image {
  max-width: 92vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;

  transform: scale(0.96);
  transition: transform 0.25s ease;
}

#lightbox.lightbox.active .lightbox-image {
  transform: scale(1);
}

#lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  z-index: 100001;
}

#lightbox .lightbox-close {
  top: 20px;
  right: 25px;
  font-size: 45px;
}

#lightbox .lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

#lightbox .lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

#lightbox .lightbox-counter {
  position: absolute;
  bottom: 20px;
  right: 25px;
  color: #fff;
  font-size: 14px;
  opacity: 0.8;
}


/* ============================================
   FIX: IMAGE COMPLÈTE TOUJOURS VISIBLE
   ============================================ */

/* Desktop : afficher image complète dès que fenêtre réduite */
@media (min-width: 769px) and (max-height: 900px) {
    .hero-section {
        height: auto;
        min-height: 100vh;
    }
    
    .hero-picture {
        position: relative;
        height: auto;
        min-height: 100vh;
    }
    
    .hero-image {
        width: 100%;
        height: auto;
        object-fit: contain;
        background: #1a1a1a;
    }
}

/* ============================================
   LOGO
   ============================================ */

.logo {
    position: fixed;
    top: 50px;
    left: 50px;
    z-index: 1000;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(3px 3px 25px rgba(0, 0, 0, 0.9));
    animation: fadeInDown 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

.logo a {
    display: block;
    text-decoration: none;
}

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

.logo img {
    height: 180px;
    width: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Logo réduit au scroll (à partir de la 2ème page) */
.logo.shrink img {
    height: 110px;
}

.logo:hover {
    transform: scale(1.08);
    filter: drop-shadow(3px 3px 30px rgba(201, 169, 97, 0.8));
}

/* ============================================
   HAMBURGER MENU
   ============================================ */

.hamburger {
    position: fixed;
    top: 50px;
    right: 50px;
    z-index: 1001;
    cursor: pointer;
    width: 38px;
    height: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    animation: fadeInDown 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
    transition: transform 0.3s ease;
}

.hamburger:hover {
    transform: scale(1.1);
}

.hamburger span {
    width: 100%;
    height: 2.5px;
    background: var(--text-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
    border-radius: 2px;
}

.hamburger:hover span {
    background: var(--accent-gold);
    box-shadow: 0 2px 15px rgba(201, 169, 97, 0.4);
}

.hamburger.active span {
    background: var(--accent-gold);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(15px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-15px) rotate(-45deg);
}

/* ============================================
   NAVIGATION MENU
   ============================================ */

.nav-menu {
    position: fixed;
    top: 0;
    margin-top: 22px;
    left: -100%;
    width: 100%;
    max-width: 500px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.92) 0%, rgba(30, 30, 30, 0.92) 100%);
    opacity: 0.8;
    z-index: 999;
    display: flex;
    align-items: flex-start;  /* 👈 CHANGEZ: de "center" à "flex-start" */
    padding-top: 220px;       /* 👈 AJOUTEZ: cet espace pour le logo */
    justify-content: flex-start;
    padding-left: 140px;
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    box-shadow: 4px 0 40px rgba(0, 0, 0, 0.6);
}

.nav-menu.active {
    left: 0;
    z-index: 1001; /* ← AJOUTER cette ligne (au-dessus du logo) */
}
.nav-menu ul {
    list-style: none;
    text-align: left;
}

.nav-menu li {
    margin: 25px 0;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu.active li {
    opacity: 1;
    transform: translateX(0);
}

.nav-menu.active li:nth-child(1) { transition-delay: 0.15s; }
.nav-menu.active li:nth-child(2) { transition-delay: 0.25s; }
.nav-menu.active li:nth-child(3) { transition-delay: 0.35s; }

.nav-menu a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px;
    font-weight: 300;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: 1.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-block;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), transparent);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a:hover {
    color: var(--accent-gold);
    transform: translateX(10px);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* ============================================
   HERO CONTENT (Titre + Slogan sur images)
   ============================================ */

.hero-content {
    position: absolute;
    top: 50%;
    right: 80px;
    transform: translateY(-50%);
    z-index: 2;
    max-width: 600px;
    padding: 0;
    text-align: right;
    opacity: 0;
    transition: all 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-content.visible {
    opacity: 1;
}

.hero-content h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 80px;
    font-weight: 300;
    margin-bottom: 40px;
    letter-spacing: 6px;
    line-height: 1;
    color: var(--text-light);
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
}

/* Hero Quote (Slogan sur images) */
.hero-quote {
    margin: 0;
    padding: 0;
    border: none;
    position: relative;
}

.hero-quote-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 300;
    font-style: italic;
    line-height: 1.7;
    color: rgba(245, 245, 245, 0.95);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.6);
}

.hero-quote-author {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    color: var(--accent-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.8);
}

/* ============================================
   CONTENT SECTIONS (Sections blanches avec texte)
   ============================================ */

.content-section {
    background: #ffffff;
    color: var(--primary-dark);
    padding: 0;
    min-height: auto;
    position: relative;
}

.content-wrapper {
    width: 100%;
    padding: 100px 120px 100px 120px;
    text-align: left;
    background: rgba(249, 246, 238, 1);
    border-left: 5px solid var(--accent-gold);
    opacity: 0;
    transform: translateX(-40px);
    transition: all 1.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-wrapper.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Effet de brillance subtile au hover */
.content-wrapper:hover {
    background: rgba(252, 249, 242, 1);
}

.content-wrapper p {
    font-size: 20px;
    line-height: 1.9;
    margin-bottom: 28px;
    font-weight: 360;
    color: #1a1a1a;
    max-width: 1200px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animation séquencée des paragraphes */
.content-wrapper.visible p:nth-of-type(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.content-wrapper.visible p:nth-of-type(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.content-wrapper.visible p:nth-of-type(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.content-wrapper strong {
    color: var(--accent-gold);
    font-weight: 400;
}

/* ============================================
   PRICING SECTION (dans content-section)
   ============================================ */

.pricing {
    margin-top: 20px;
    padding: 40px 0;
    max-width: 1200px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.5s;
}

.content-wrapper.visible .pricing {
    opacity: 1;
    transform: translateY(0);
}

.pricing h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 38px;
    font-weight: 500;
    margin-bottom: 35px;
    letter-spacing: 4px;
    color: var(--accent-gold);
    position: relative;
}

/* Ligne décorative sous le titre */
.pricing h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), transparent);
}

.price-item {
    margin: 6px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(201, 169, 97, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.4;
    color: #1a1a1a;
}

.price-item:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.price-item:hover {
    padding-left: 15px;
    border-bottom-color: rgba(201, 169, 97, 0.6);
    transform: translateX(5px);
}

.price-label {
    flex: 1;
    font-weight: 300;
    line-height: 1.2;
    color: #1a1a1a;
    font-size: 18px;
}

.price-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    color: var(--accent-gold);
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.2;
}

.info-text {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(201, 169, 97, 0.2);
    font-size: 17px;
    font-style: italic;
    opacity: 0.9;
    line-height: 1.6;
    color: #333;
}

/* ============================================
   FORMULAIRE DE CONTACT
   ============================================ */

.contact-form {
    max-width: 800px;
    margin: 60px auto 0;
    padding: 0;
}

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

.form-group label {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    color: var(--text-primary);
    background: #fff;
    border: 1px solid rgba(201, 169, 97, 0.3);
    border-radius: 2px;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23c9a961" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3e%3cpolyline points="6 9 12 15 18 9"%3e%3c/polyline%3e%3c/svg%3e');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 45px;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.6;
}

.submit-btn {
    display: inline-block;
    padding: 15px 50px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--text-light);
    background: linear-gradient(135deg, #c9a961 0%, #b8955a 100%);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.4);
    background: linear-gradient(135deg, #d4b76d 0%, #c9a961 100%);
}

.submit-btn:active {
    transform: translateY(0);
}

.form-message {
    margin-top: 25px;
    padding: 15px 20px;
    border-radius: 2px;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.form-message.error {
    display: block;
    background: rgba(244, 67, 54, 0.1);
    color: #c62828;
    border-left: 4px solid #f44336;
}

.required {
    color: #c9a961;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-form {
        margin-top: 40px;
    }

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

    .form-group label {
        font-size: 17px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 15px;
    }

    .submit-btn {
        width: 100%;
        padding: 15px 30px;
    }
}

@media (max-width: 480px) {
    .form-group label {
        font-size: 16px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 14px;
    }
}

/* ============================================
   CONTACT 2 COLONNES
   ============================================ */

/* Wrapper principal 2 colonnes */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
}

/* === COLONNE GAUCHE : Contact Info === */

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 70px;
}

.contact-logo {
    max-width: 140px;
}

.contact-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    flex-shrink: 0;
    color: var(--accent-gold);
    width: 24px;
    height: 24px;
}

.contact-item a {
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
}

.contact-item a:hover {
    color: var(--accent-gold);
}

/* === COLONNE DROITE : Formulaire === */

.contact-form-wrapper {
    width: 100%;
}

.contact-form {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Ajustements formulaire dans 2 colonnes */
.contact-wrapper .contact-form .form-group {
    margin-bottom: 25px;
}

.contact-wrapper .contact-form label {
    font-size: 17px;
}

.contact-wrapper .contact-form input,
.contact-wrapper .contact-form select,
.contact-wrapper .contact-form textarea {
    font-size: 15px;
}

/* === RESPONSIVE === */

/* Tablet */
@media (max-width: 1024px) {
    .contact-wrapper {
        gap: 60px;
    }

    .contact-logo {
        max-width: 120px;
    }

    .contact-item a {
        font-size: 17px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-info {
        text-align: center;
        gap: 60px;
    }

    .contact-logo {
        max-width: 100px;
        margin: 0 auto;
    }

    .contact-details {
        gap: 25px;
    }

    .contact-item {
        justify-content: center;
        gap: 12px;
    }

    .contact-item a {
        font-size: 16px;
    }

    .contact-form-wrapper {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .contact-logo {
        max-width: 80px;
    }

    .contact-item a {
        font-size: 15px;
    }

    .contact-icon {
        width: 20px;
        height: 20px;
    }
}

* Compteur de caractères et validation - À ajouter dans style.css */

.char-counter {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    font-family: 'Lato', sans-serif;
    transition: color 0.3s ease;
}

/* Champs invalides */
.form-group input:invalid:not(:placeholder-shown),
.form-group select:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: rgba(244, 67, 54, 0.5);
}

.form-group input:valid:not(:placeholder-shown),
.form-group select:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
    border-color: rgba(76, 175, 80, 0.3);
}

/* Messages de validation natifs personnalisés */
.form-group input:invalid,
.form-group select:invalid,
.form-group textarea:invalid {
    /* Pas de style par défaut, géré par JS */
}

/* Focus sur champs invalides */
.form-group input:invalid:focus,
.form-group select:invalid:focus,
.form-group textarea:invalid:focus {
    border-color: #f44336;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

/* Animation shake sur erreur */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.form-group.error {
    animation: shake 0.4s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .char-counter {
        font-size: 13px;
    }
}



/* ============================================
   SCROLL INDICATOR
   ============================================ */

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2.5s ease-in-out infinite, fadeInUp 1.8s cubic-bezier(0.4, 0, 0.2, 1) 1s both;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
    animation-play-state: paused;
}

.scroll-indicator:hover::before {
    border-color: #d4b76d;
}

.scroll-indicator:hover::after {
    background: linear-gradient(to bottom, #d4b76d, transparent);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Flèche élégante vers le bas */
.scroll-indicator::before {
    content: '';
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--accent-gold);
    border-bottom: 2px solid var(--accent-gold);
    transform: rotate(45deg);
    opacity: 0.8;
    transition: border-color 0.3s ease;
}

.scroll-indicator::after {
    content: '';
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent-gold), transparent);
    display: block;
    border-radius: 2px;
    transition: background 0.3s ease;
}

@keyframes bounce {
    0%, 100% { 
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    50% { 
        transform: translateX(-50%) translateY(15px);
        opacity: 0.7;
    }
}

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

/* Desktop : Empêcher superposition menu/logo sur petite hauteur */
@media (min-width: 769px) and (max-height: 700px) {
    .nav-menu {
        align-items: flex-start;
        padding-top: 220px;  /* Espace avec logo (50px top + 180px logo + marge) */
    }
}

@media (min-width: 769px) and (max-height: 500px) {
    .nav-menu {
        align-items: flex-start;
        padding-top: 180px;  /* Logo réduit (110px) + marge */
    }
}

@media (max-width: 768px) {
    .site-header {
        height: 120px;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    }

    .logo {
        top: 40px;
        left: 40px;
    }

    .logo img {
        height: 120px;
    }

    .logo.shrink img {
        height: 90px;
    }

    .hamburger {
        top: 50px;
        right: 40px;
        width: 34px;
        height: 29px;
    }

    .hamburger span {
        height: 2.5px;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(13.5px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-13.5px) rotate(-45deg);
    }

    .nav-menu {
        max-width: 100%;
        padding-left: 0;
        justify-content: center;
    }

    .nav-menu ul {
        text-align: center;
    }

    .nav-menu a {
        font-size: 32px;
    }

    .nav-menu a::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .nav-menu a:hover {
        transform: translateX(0) scale(1.05);
    }

    /* Hero Content sur mobile */
    .hero-content {
        position: absolute;
        bottom: 180px;
        right: 20px;
        top: auto;
        left: auto;
        transform: none;
        padding: 0;
        margin: 0;
        text-align: right;
        max-width: 85%;
    }

    .hero-content.visible {
        opacity: 1;
    }

    .hero-content h1 {
        font-size: 52px;
        letter-spacing: 3px;
        text-align: right;
    }

    .hero-quote {
        text-align: right;
    }

    .hero-quote-text {
        font-size: 20px;
        line-height: 1.6;
        text-align: right;
    }

    .hero-quote-author {
        font-size: 13px;
        text-align: right;
    }

    /* Content sections sur mobile */
    .content-section {
        padding: 0;
    }

    .content-wrapper {
        padding: 60px 40px 60px 50px;
        border-left-width: 4px;
    }

    .content-wrapper p {
        font-size: 18px;
        line-height: 1.8;
        margin-bottom: 24px;
    }

    .pricing {
        padding: 40px 0;
        margin-top: 50px;
    }

    .pricing h2 {
        font-size: 32px;
        letter-spacing: 3px;
    }

    .pricing h2::after {
        width: 60px;
    }

    .price-label {
        font-size: 17px;
    }

    .price-value {
        font-size: 26px;
    }

    /* Ligne décorative cachée sur mobile */
    .decorative-line {
        display: none;
    }

    .price-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .site-header {
        height: 100px;
    }

    .logo {
        top: 30px;
        left: 30px;
    }

    .logo img {
        height: 90px;
    }

    .logo.shrink img {
        height: 70px;
    }

    .hamburger {
        top: 40px;
        right: 30px;
        width: 32px;
        height: 27px;
    }

    /* Hero Content sur petits écrans */
    .hero-content {
        position: absolute;
        bottom: 170px;
        right: 15px;
        top: auto;
        left: auto;
        transform: none;
        padding: 0;
        margin: 0;
        text-align: right;
        max-width: 80%;
    }

    .hero-content.visible {
        opacity: 1;
    }

    .hero-content h1 {
        font-size: 44px;
        letter-spacing: 2px;
        text-align: right;
    }

    .hero-quote {
        text-align: right;
    }

    .hero-quote-text {
        font-size: 18px;
        text-align: right;
    }

    .hero-quote-author {
        font-size: 12px;
        text-align: right;
    }

    /* Content sections sur petits écrans */
    .content-section {
        padding: 0;
    }

    .content-wrapper {
        padding: 50px 30px 50px 40px;
        border-left-width: 3px;
    }

    .content-wrapper p {
        font-size: 17px;
        line-height: 1.7;
    }

    .nav-menu a {
        font-size: 28px;
    }

    .pricing {
        padding: 35px 0;
        margin-top: 40px;
    }

    .pricing h2 {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .pricing h2::after {
        width: 50px;
    }

    .price-label {
        font-size: 16px;
    }

    .price-value {
        font-size: 24px;
    }

    .info-text {
        font-size: 16px;
    }
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */

.scroll-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(201, 169, 97, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #d4b76d;
    transform: translateY(-5px);
    box-shadow: 0 6px 30px rgba(201, 169, 97, 0.5);
}

.scroll-to-top svg {
    color: #1a1a1a;
}

/* Responsive */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 30px;
        right: 30px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* ============================================
   LOADING ANIMATION
   ============================================ */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: #1a1a1a;
    color: rgba(245, 245, 245, 0.7);
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(201, 169, 97, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin: 0;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
    .site-footer {
        padding: 30px 20px;
    }
    
    .footer-content p {
        font-size: 13px;
    }
}

/* MOBILE FIX: always show sections (if reveal-on-scroll JS fails on mobile) */
@media (max-width: 768px) {
  .content-wrapper {
    opacity: 1 !important;
    transform: none !important;
  }

  .content-wrapper p {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================
   LIGHTBOX
   ============================================ */

#lightbox.lightbox {
  position: fixed;
  inset: 0;
  display: none;                 /* hidden by default */
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  z-index: 100000;               /* above everything */
}

#lightbox.lightbox.active {
  display: flex;
}

#lightbox .lightbox-image {
  transform: scale(0.96);
  transition: transform 0.25s ease;
}

#lightbox.lightbox.active .lightbox-image {
  transform: scale(1);
}

#lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  z-index: 100001;
}

#lightbox .lightbox-close {
  top: 20px;
  right: 25px;
  font-size: 45px;
}

#lightbox .lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

#lightbox .lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

#lightbox .lightbox-counter {
  position: absolute;
  bottom: 20px;
  right: 25px;
  color: #fff;
  font-size: 14px;
  opacity: 0.8;
}

#lightbox .lightbox-caption {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.5);
  padding: 12px 24px;
  border-radius: 4px;
  max-width: 100%;
  text-align: center;
  backdrop-filter: blur(5px);
}
@media (max-width: 768px) {
    /* Image plus petite pour laisser place au caption */
    #lightbox .lightbox-image {
        max-height: 70vh; /* Au lieu de 85vh */
    }
    
    /* Caption en dessous de l'image */
    #lightbox .lightbox-caption {
        position: relative; /* Au lieu d'absolute */
        transform: none;
        left: auto;
        bottom: auto;
        margin: 20px auto 0;
        max-width: 100%;
        font-size: 13px;
        padding: 10px 16px;
        line-height: 1.4;
    }
    
    /* Lightbox en flex column */
    #lightbox.active {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}