header {
    width: 100%;
    height: calc(100vh - 3.5rem);
    position: relative;
    overflow: hidden;
    background-color: var(--background);
}

.header-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    filter: brightness(0.7) contrast(1.1);
}

#header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
    padding: 2rem;
    text-align: center;
    color: white;
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0) 100%
    );
}

#title {
    display: flex;
    align-items: center;
    gap: 2rem;
    backdrop-filter: blur(8px);
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius);
    padding: 2rem 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 1s ease-out forwards;
    max-width: 90%;
}

.title-content {
    text-align: left;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#title h1 {
    font-size: 3.5rem;
    margin: 0 0 0.5rem 0;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

#title p {
    font-size: 1.5rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

#qrcode {
    width: 8rem;
    height: 8rem;
    flex-shrink: 0;
    background-color: white;
    border-radius: var(--radius);
    padding: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#qrcode:hover {
    transform: scale(1.05);
}

#qrcode img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media only screen and (max-width: 768px) {
    #title {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .title-content {
        text-align: center;
    }
    
    #title h1 {
        font-size: 2.5rem;
    }
    
    #title p {
        font-size: 1.25rem;
    }
    
    #qrcode {
        width: 6rem;
        height: 6rem;
    }
}

@media only screen and (max-width: 480px) {
    #title h1 {
        font-size: 2rem;
    }
    
    #title p {
        font-size: 1rem;
    }
    
    #qrcode {
        width: 5rem;
        height: 5rem;
    }
}

#qrcode-fixed {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 8rem;
    height: auto;
    flex-shrink: 0;
    background-color: white;
    border-radius: var(--radius);
    padding: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

#qrcode-fixed::after {
    content: "Scannez pour me contacter";
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    background-color: var(--card);
    color: var(--card-foreground);
    border: 1px solid var(--border);
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius);
    font-size: 0.8rem;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

#qrcode-fixed:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

#qrcode-fixed:hover::after {
    opacity: 1;
    transform: translateY(0);
}

#qrcode-fixed img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

#qrcode-fixed span {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
}

.phone-link {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
    text-decoration: none;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    text-align: center;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.phone-link:hover {
    background-color: oklch(from var(--primary) l - 0.05 c h);
    transform: translateY(-2px);
}

.phone-link.revealed {
    background-color: var(--accent);
    color: var(--accent-foreground);
    font-weight: 600;
    letter-spacing: 0.02em;
}

@media only screen and (max-width: 768px) {
    #qrcode-fixed {
        width: 6rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    #qrcode-fixed::after {
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        text-align: center;
    }
    
    #qrcode-fixed:hover::after {
        transform: translateX(-50%) translateY(0);
    }
    
    .phone-link {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
}

@media only screen and (max-width: 480px) {
    #qrcode-fixed {
        display: none;
    }
    
    #qrcode-fixed span {
        font-size: 0.75rem;
    }
    
    #qrcode-fixed::after {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
        white-space: normal;
        width: max-content;
        max-width: 150px;
    }
    
    .phone-link {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
}

/* Modal QR Code */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background-color: var(--card);
    margin: auto;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    width: 90%;
    max-width: 400px;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--foreground);
    font-size: 1.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-modal:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.modal h3 {
    text-align: center;
    color: var(--foreground);
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.modal-qrcode {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background-color: white;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.modal-qrcode img {
    width: 100%;
    max-width: 300px;
    height: auto;
}

@media only screen and (max-width: 480px) {
    .modal-content {
        padding: 1.5rem;
    }
    
    .modal-qrcode {
        padding: 0.5rem;
    }
}