/* ==========================================================================
   Les Clés Dorées - Luxury Concierge Provence
   Premium Design - Lavande & Or
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Montserrat:wght@200;300;400;500;600&display=swap');

/* --------------------------------------------------------------------------
   Variables
   -------------------------------------------------------------------------- */
:root {
    --lavande-deep: #4A3B5C;
    --lavande-rich: #6B5B7A;
    --lavande-medium: #8B7A9E;
    --lavande-soft: #A99ABF;
    --lavande-light: #D4C8E0;
    --lavande-pale: #EDE8F2;

    --gold: #C9A861;
    --gold-light: #DFC07A;
    --gold-pale: #F5E6C3;

    --white: #FFFFFF;
    --cream: #FDFBF7;
    --noir: #1A1A1A;
    --noir-soft: #2D2D2D;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', sans-serif;

    --ease-luxury: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--white);
    background: #001250;
    overflow-x: hidden;
    line-height: 1.6;
}


::selection {
    background: var(--gold);
    color: var(--noir);
}

/* --------------------------------------------------------------------------
   Hero Section - Fullscreen
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Desktop: centrer le contenu */
@media (min-width: 768px) {
    .hero {
        justify-content: center;
        align-items: center;
    }
}

/* Mobile: layout en colonne avec footer en bas */
@media (max-width: 767px) {
    .hero {
        justify-content: flex-start;
        padding-top: 1.5rem;
        /* Ajouter de l'espace en bas pour la barre fixe */
        padding-bottom: 90px;
    }
}


/* Background Image Layer */
.hero__background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
    transition: transform 8s var(--ease-smooth);
}

.hero.loaded .hero__background img {
    transform: scale(1);
}

/* Overlay - Bleu marine élégant */
.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(0, 18, 80, 0.85);
}

/* Grain texture overlay for premium feel */
.hero__grain {
    position: absolute;
    inset: 0;
    z-index: 3;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Content Container */
.hero__content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1; /* Prend l'espace disponible */
}

.hero__content .container {
    width: 100%;
    max-width: 700px;
    padding: 0 1rem;
}

@media (max-width: 767px) {
    .hero__content {
        align-items: flex-start;
        padding-top: 1rem;
    }
}

/* Logo Band */
.logo-band {
    background: #001250;
    padding: 2rem 3rem;
    margin-bottom: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
    animation: revealText 1s var(--ease-luxury) 0.3s forwards;
}

.logo-img {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    display: block;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .logo-band {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
    }

    .logo-img {
        max-height: 150px;
    }
}

/* Logo Mark */
.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border: 1px solid rgba(201, 168, 97, 0.4);
    border-radius: 50%;
    margin-bottom: 2.5rem;
    position: relative;
    opacity: 0;
    transform: scale(0.8);
    animation: revealLogo 1.2s var(--ease-luxury) 0.3s forwards;
}

.logo-mark::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, transparent 50%, var(--gold) 100%);
    opacity: 0.3;
    animation: rotateBorder 8s linear infinite;
}

@keyframes rotateBorder {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-mark svg {
    width: 32px;
    height: 32px;
    fill: var(--gold);
}

@keyframes revealLogo {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Brand Name */
.brand {
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.brand__name {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(100%);
    animation: revealText 1s var(--ease-luxury) 0.5s forwards;
    margin: 0;
}

.brand__name span {
    color: var(--gold);
    font-style: italic;
    font-weight: 400;
}

.brand__sub {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.15em;
    color: var(--white);
    margin: 0.75rem 0 0 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    animation: revealText 1s var(--ease-luxury) 0.7s forwards;
}

@keyframes revealText {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tagline */
.tagline {
    overflow: hidden;
    margin-bottom: 3rem;
}

.tagline__text {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--white);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
    animation: revealText 1s var(--ease-luxury) 0.8s forwards;
}

/* Site Title H1 */
.site-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--gold);
    text-transform: uppercase;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    margin: 0 0 2rem 0;
    opacity: 0;
    transform: translateY(20px);
    animation: revealText 1s var(--ease-luxury) 0.5s forwards;
}

/* Decorative Line */
.deco-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0 auto 2rem;
    opacity: 0;
    animation: revealLine 1s var(--ease-luxury) 0.6s forwards;
}

@keyframes revealLine {
    to { opacity: 1; }
}

/* Intro Text */
.intro {
    max-width: 550px;
    margin: 0 auto 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: revealText 1s var(--ease-luxury) 0.8s forwards;
}

.intro__text {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 3vw, 1.5rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.8;
    color: var(--white);
    text-shadow: 0 1px 15px rgba(0, 0, 0, 0.25);
}

/* --------------------------------------------------------------------------
   CTA Buttons
   -------------------------------------------------------------------------- */
.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: revealText 1s var(--ease-luxury) 1s forwards;
}

@media (min-width: 576px) {
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-smooth);
    min-width: 220px;
}

.btn-cta svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s var(--ease-smooth);
    z-index: -1;
    pointer-events: none;
}

.btn-cta:hover::before {
    transform: translateX(100%);
}

/* Phone Button */
.btn-cta--phone {
    background: var(--gold);
    color: var(--noir);
}

.btn-cta--phone:hover {
    background: var(--gold-light);
    color: var(--noir);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(201, 168, 97, 0.4);
}

/* Devis Button */
.btn-cta--devis {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-cta--devis:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold);
    color: var(--gold);
}

/* Services Button */
.btn-cta--services {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-cta--services:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold);
    color: var(--gold);
}

@media (max-width: 575px) {
    .btn-cta {
        width: 100%;
        max-width: 280px;
    }
}


/* --------------------------------------------------------------------------
   Bottom Bar
   -------------------------------------------------------------------------- */
.hero__bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 1.5rem 0;
    opacity: 0;
    animation: revealText 1s var(--ease-luxury) 1.2s forwards;
}

/* Mobile: le footer devient statique et visible */
@media (max-width: 767px) {
    .hero__bottom {
        position: static;
        margin-top: auto; /* Pousse vers le bas */
        padding: 1.5rem 1rem;
        padding-bottom: 1.5rem;
    }
}

/* Social Links */
.social {
    display: flex;
    gap: 1.5rem;
}

.social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.4s var(--ease-smooth);
}

.social__link svg {
    width: 18px;
    height: 18px;
    fill: rgba(255, 255, 255, 0.7);
    transition: fill 0.3s var(--ease-smooth);
}

.social__link:hover {
    border-color: var(--gold);
    background: rgba(201, 168, 97, 0.1);
    transform: translateY(-3px);
}

.social__link:hover svg {
    fill: var(--gold);
}

/* Location Badge */
.location {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.location svg {
    width: 14px;
    height: 14px;
    stroke: var(--gold);
    stroke-width: 2;
    fill: none;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: revealText 1s var(--ease-luxury) 2s forwards;
}

.scroll-indicator__text {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.scroll-indicator__line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 1;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.5;
        transform: scaleY(0.7);
    }
}

/* --------------------------------------------------------------------------
   Features Preview
   -------------------------------------------------------------------------- */
.features-preview {
    position: absolute;
    top: 50%;
    right: 3rem;
    transform: translateY(-50%);
    z-index: 10;
    display: none;
}

@media (min-width: 1200px) {
    .features-preview {
        display: block;
    }
}

.features-preview__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    opacity: 0;
    animation: revealText 1s var(--ease-luxury) 1.2s forwards;
}

.features-preview__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
    transition: color 0.3s var(--ease-smooth);
}

.features-preview__item:hover {
    color: var(--gold);
}

.features-preview__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transition: all 0.3s var(--ease-smooth);
}

.features-preview__item:hover .features-preview__icon {
    border-color: var(--gold);
    background: rgba(201, 168, 97, 0.1);
}

.features-preview__icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--gold);
    stroke-width: 1.5;
    fill: none;
}

.features-preview__item:hover .features-preview__icon svg {
    stroke: var(--gold-light);
}

/* --------------------------------------------------------------------------
   Features Mobile (visible uniquement sur mobile)
   -------------------------------------------------------------------------- */
.features-mobile {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    animation: revealText 1s var(--ease-luxury) 0.9s forwards;
}

@media (max-width: 1199px) {
    .features-mobile {
        display: flex;
    }
}

.features-mobile__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1rem;
    border-radius: 50px;
}

.features-mobile__icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.features-mobile__icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--gold);
    stroke-width: 1.5;
    fill: none;
}

/* --------------------------------------------------------------------------
   Legal Modals - Luxury Style
   -------------------------------------------------------------------------- */
.modal-content {
    background: #001250;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    color: var(--white);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.1em;
}

.modal-body {
    padding: 2rem;
    font-weight: 300;
    line-height: 1.8;
}

.modal-body h6 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--gold);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.modal-body h6:first-child {
    margin-top: 0;
}

.btn-close {
    filter: invert(1);
    opacity: 0.5;
}

.btn-close:hover {
    opacity: 1;
}

/* Footer Links */
.footer-links {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s var(--ease-smooth);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-links span {
    margin: 0 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------------------------
   Responsive Design
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 767px) {
    .logo-mark {
        width: 60px;
        height: 60px;
        margin-bottom: 1.5rem;
    }

    .logo-mark svg {
        width: 24px;
        height: 24px;
    }

    .brand__name {
        letter-spacing: 0.05em;
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }

    .brand__sub {
        font-size: clamp(1.3rem, 5vw, 2rem);
        letter-spacing: 0.1em;
    }

    .intro {
        margin-bottom: 2rem;
    }

    .intro__text {
        font-size: 1.15rem;
        line-height: 1.7;
    }

    .btn-submit {
        width: 100%;
        justify-content: center;
    }

    .location {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .brand__name {
        font-size: 2rem;
        letter-spacing: 0.03em;
    }

    .brand__sub {
        font-size: 1.2rem;
        letter-spacing: 0.05em;
    }

    .deco-line {
        margin-bottom: 2rem;
    }

    .intro__text {
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .form-input {
        padding: 1rem;
        font-size: 0.85rem;
    }
}

/* --------------------------------------------------------------------------
   Loading State
   -------------------------------------------------------------------------- */
.hero:not(.loaded) .hero__content {
    visibility: hidden;
}

/* --------------------------------------------------------------------------
   Cursor personnalisé (desktop)
   -------------------------------------------------------------------------- */
@media (hover: hover) and (pointer: fine) {
    .custom-cursor {
        position: fixed;
        width: 12px;
        height: 12px;
        background: var(--gold);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        mix-blend-mode: difference;
        transition: transform 0.15s var(--ease-smooth);
    }

    .custom-cursor.hover {
        transform: scale(2.5);
    }
}

/* --------------------------------------------------------------------------
   Mobile Fixed Bottom Bar
   -------------------------------------------------------------------------- */
.mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #001250;
    border-top: 1px solid rgba(201, 168, 97, 0.3);
    padding: 0.75rem 1rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
}

@media (max-width: 767px) {
    .mobile-bottom-bar {
        display: flex;
        justify-content: space-between;
        gap: 0.5rem;
    }

    /* Sur la home, cacher les CTA buttons classiques sur mobile */
    .hero .cta-buttons {
        display: none;
    }

    /* Footer sur les autres pages - ajouter padding pour la barre fixe */
    .site-footer {
        padding-bottom: 5rem;
    }

    /* Sur les pages avec legal-page */
    .legal-page {
        padding-bottom: 5rem;
    }
}

.mobile-bottom-bar__btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 0.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-bottom-bar__btn svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
    fill: none;
}

.mobile-bottom-bar__btn span {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Bouton Téléphone - Or */
.mobile-bottom-bar__btn--phone {
    color: var(--gold);
}

.mobile-bottom-bar__btn--phone svg {
    stroke: var(--gold);
}

/* Bouton Devis */
.mobile-bottom-bar__btn--devis {
    color: var(--white);
}

.mobile-bottom-bar__btn--devis svg {
    stroke: var(--white);
}

/* Bouton Services */
.mobile-bottom-bar__btn--services {
    color: var(--white);
}

.mobile-bottom-bar__btn--services svg {
    stroke: var(--white);
}

.mobile-bottom-bar__btn:active {
    transform: scale(0.95);
}

/* Version avec un seul bouton (pleine largeur) */
.mobile-bottom-bar--single {
    justify-content: center;
}

.mobile-bottom-bar--single .mobile-bottom-bar__btn {
    flex: none;
    flex-direction: row;
    gap: 0.75rem;
    padding: 0.75rem 2rem;
    background: rgba(201, 168, 97, 0.15);
    border: 1px solid rgba(201, 168, 97, 0.3);
}

.mobile-bottom-bar--single .mobile-bottom-bar__btn span {
    font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   Animations utilitaires
   -------------------------------------------------------------------------- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-luxury);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
