@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700,900&display=swap');

:root {
    /* --- Palette La Grange des Loges --- */
    --couleur-primaire: 128 0 32;        /* Bordeaux #800020 */
    --couleur-primaire-hover: 96 0 24;   /* Bordeaux foncé #600018 */
    --couleur-primaire-clair: 250 243 235; /* Crème chaud #FAF3EB */
    --couleur-accent: 196 154 108;       /* Or chaud / Camel #C49A6C */
    --couleur-accent-light: 237 224 207; /* Camel clair #EDE0CF */
}

body {
    font-family: 'Satoshi', sans-serif;
}

/* --- BRAND FONT (Playfair Display) --- */
.font-brand {
    font-family: "Playfair Display", Georgia, serif;
}

/* --- HERO SECTION --- Split layout : texte + photo */
.hero-grange {
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(160deg, #FAF3EB 0%, #EDE0CF 40%, #F5E6D8 100%);
}

.hero-grange::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(128, 0, 32, 0.06) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    z-index: 0;
}

.hero-grange::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196, 154, 108, 0.1) 0%, transparent 70%);
    bottom: -150px;
    right: -100px;
    z-index: 0;
}

/* Photo du hero */
.hero-photo {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(128, 0, 32, 0.15), 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Galerie hero — ombres plus légères pour éviter la surcharge */
.hero-gallery .hero-photo {
    box-shadow: 0 8px 24px rgba(128, 0, 32, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hero-gallery-mobile .hero-photo {
    box-shadow: 0 4px 12px rgba(128, 0, 32, 0.1);
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: block;
}

.hero-photo-accent {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    border: 2px solid rgba(196, 154, 108, 0.3);
    pointer-events: none;
}

/* Petit cadre décoratif derrière la photo */
.hero-photo-wrapper {
    position: relative;
}

.hero-photo-wrapper::before {
    content: '';
    position: absolute;
    top: -12px;
    right: -12px;
    bottom: 12px;
    left: 12px;
    border: 2px solid rgba(196, 154, 108, 0.25);
    border-radius: 20px;
    z-index: -1;
}

@media (max-width: 1023px) {
    .hero-photo-wrapper::before {
        display: none;
    }
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
}

/* --- Décorations rustiques --- */
.hero-deco-line {
    width: 60px;
    height: 3px;
    background: rgb(var(--couleur-primaire));
    border-radius: 2px;
}

.hero-deco-wheat {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 400px;
    background: repeating-linear-gradient(
        -30deg,
        transparent,
        transparent 8px,
        rgba(196, 154, 108, 0.06) 8px,
        rgba(196, 154, 108, 0.06) 10px
    );
    border-radius: 50%;
    filter: blur(1px);
}

/* --- SECTION BACKGROUNDS --- */
.section-warm {
    background: linear-gradient(180deg, rgba(var(--couleur-primaire-clair), 0.4) 0%, rgba(255,255,255,1) 70%);
}

.section-cream {
    background-color: rgb(var(--couleur-primaire-clair));
}

.section-dark {
    background-color: #2D1A1F;
    color: #F5EDE0;
}

/* --- CARD STYLES --- */
.card-rustic {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(128, 0, 32, 0.08);
    border: 1px solid rgba(var(--couleur-accent), 0.1);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.card-rustic:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 16px 40px rgba(128, 0, 32, 0.12);
}

/* --- Premium Card (Tarifs) --- */
.card-premium {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgb(128, 0, 32) 0%, rgb(96, 0, 24) 60%, rgb(64, 0, 16) 100%);
    border: 1px solid rgba(196, 154, 108, 0.2);
}

.card-premium::after {
    content: "";
    position: absolute;
    top: 0;
    left: -200%;
    width: 200%;
    height: 100%;
    transform: skewX(-20deg);
    background-image: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transition: left 0.6s ease-out;
}

.card-premium:hover::after {
    left: 100%;
}

/* --- Badge icon pour les cartes services --- */
.icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background-color: rgba(var(--couleur-primaire), 0.08);
    color: rgb(var(--couleur-primaire));
    font-size: 22px;
}

.icon-badge-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background-color: rgba(var(--couleur-accent), 0.15);
    color: rgb(var(--couleur-accent));
    font-size: 22px;
}

/* --- Pill badges --- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 9999px;
    background-color: rgba(var(--couleur-primaire-clair), 0.9);
    color: rgb(var(--couleur-primaire));
    border: 1px solid rgba(var(--couleur-primaire), 0.1);
    font-weight: 600;
    font-size: 0.875rem;
}

/* --- Note block --- */
.note {
    background: rgba(var(--couleur-primaire-clair), 0.5);
    border-left: 4px solid rgb(var(--couleur-primaire));
    border-radius: 8px;
    padding: 16px 20px;
}

/* --- Lift effect --- */
.lift {
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

/* --- Divider décoratif --- */
.divider-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgb(var(--couleur-accent));
    font-size: 14px;
}

.divider-ornament::before,
.divider-ornament::after {
    content: '';
    flex: 1;
    max-width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgb(var(--couleur-accent)), transparent);
}

/* --- Section title style --- */
.section-title {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
    color: #1a1a1a;
}

.section-subtitle {
    color: #6b7280;
    font-size: 1.125rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Feature list with custom marker --- */
.feature-list li {
    position: relative;
    padding-left: 28px;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgb(var(--couleur-accent));
    opacity: 0.7;
}

/* --- Chambre card image --- */
.chambre-visual {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
}

.chambre-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
}

.card-rustic:hover .chambre-visual img {
    transform: scale(1.05);
}

/* --- Image cards with photo on top --- */
.card-photo {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(128, 0, 32, 0.08);
    border: 1px solid rgba(var(--couleur-accent), 0.1);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.card-photo:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 16px 40px rgba(128, 0, 32, 0.12);
}

.card-photo .card-photo-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.card-photo .card-photo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
}

.card-photo:hover .card-photo-img img {
    transform: scale(1.05);
}

.card-photo .card-photo-body {
    padding: 1.5rem;
}

/* --- Info pratique badge --- */
.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05), 0 6px 20px rgba(128, 0, 32, 0.06);
    border: 1px solid rgba(var(--couleur-accent), 0.1);
    font-size: 0.95rem;
    color: #374151;
}

.info-badge i {
    color: rgb(var(--couleur-primaire));
    font-size: 1.1rem;
}

/* --- Tarif table row --- */
.tarif-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(var(--couleur-accent), 0.15);
}

.tarif-row:last-child {
    border-bottom: none;
}

/* ============================================================
   ANIMATIONS PREMIUM — Scroll Reveal + Hover + Decorative
   ============================================================ */

/* --- Scroll reveal system --- */
[data-reveal] {
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

[data-reveal="up"]    { transform: translateY(40px); }
[data-reveal="down"]  { transform: translateY(-40px); }
[data-reveal="left"]  { transform: translateX(40px); }
[data-reveal="right"] { transform: translateX(-40px); }
[data-reveal="scale"] { transform: scale(0.92); }
[data-reveal="fade"]  { transform: none; }

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Stagger delays */
[data-delay="100"] { transition-delay: 100ms; }
[data-delay="200"] { transition-delay: 200ms; }
[data-delay="300"] { transition-delay: 300ms; }
[data-delay="400"] { transition-delay: 400ms; }
[data-delay="500"] { transition-delay: 500ms; }
[data-delay="600"] { transition-delay: 600ms; }

/* --- Hero entry animations (no scroll needed) --- */
@keyframes heroSlideIn {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroPhotoIn {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes heroLineExpand {
    from { width: 0; }
    to   { width: 64px; }
}

@keyframes heroPillPop {
    from { opacity: 0; transform: scale(0.8) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.hero-animate-badge    { animation: heroSlideIn 0.6s 0.1s cubic-bezier(0.22,1,0.36,1) both; }
.hero-animate-title    { animation: heroSlideIn 0.7s 0.25s cubic-bezier(0.22,1,0.36,1) both; }
.hero-animate-line     { animation: heroLineExpand 0.5s 0.5s cubic-bezier(0.22,1,0.36,1) both; }
.hero-animate-text     { animation: heroSlideIn 0.7s 0.55s cubic-bezier(0.22,1,0.36,1) both; }
.hero-animate-pills    { animation: heroSlideIn 0.6s 0.7s cubic-bezier(0.22,1,0.36,1) both; }
.hero-animate-cta      { animation: heroSlideIn 0.6s 0.85s cubic-bezier(0.22,1,0.36,1) both; }
.hero-animate-photo    { animation: heroPhotoIn 0.9s 0.3s cubic-bezier(0.22,1,0.36,1) both; }

.hero-pill-stagger:nth-child(1) { animation: heroPillPop 0.4s 0.75s cubic-bezier(0.22,1,0.36,1) both; }
.hero-pill-stagger:nth-child(2) { animation: heroPillPop 0.4s 0.85s cubic-bezier(0.22,1,0.36,1) both; }
.hero-pill-stagger:nth-child(3) { animation: heroPillPop 0.4s 0.95s cubic-bezier(0.22,1,0.36,1) both; }
.hero-pill-stagger:nth-child(4) { animation: heroPillPop 0.4s 1.05s cubic-bezier(0.22,1,0.36,1) both; }

/* --- Floating decoration keyframes --- */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-12px) rotate(2deg); }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-8px) rotate(-1.5deg); }
}

@keyframes pulse-soft {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%      { opacity: 1;   transform: scale(1.05); }
}

.animate-float      { animation: float 6s ease-in-out infinite; }
.animate-float-slow { animation: floatSlow 8s ease-in-out infinite; }
.animate-pulse-soft { animation: pulse-soft 3s ease-in-out infinite; }

/* --- Button glow effect --- */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn-glow:hover::after {
    width: 300px;
    height: 300px;
}

/* --- Smooth underline for links --- */
.link-underline {
    position: relative;
    text-decoration: none;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: rgb(var(--couleur-primaire));
    border-radius: 1px;
    transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.link-underline:hover::after {
    width: 100%;
}

/* --- Icon badge hover spin --- */
.icon-spin-hover {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-rustic:hover .icon-spin-hover,
.card-photo:hover .icon-spin-hover {
    transform: rotateY(180deg);
}

/* --- Image zoom on scroll (parallax-lite) --- */
.parallax-img {
    transition: transform 0.1s linear;
    will-change: transform;
}

/* --- Divider ornament animation --- */
.divider-ornament i {
    transition: transform 0.4s ease;
}

.divider-ornament:hover i {
    transform: rotate(360deg);
}

/* --- Counter animation --- */
.counter-value {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* --- Smooth header shadow on scroll --- */
header {
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background-color: rgba(255, 255, 255, 0.98) !important;
}

/* --- Page banner parallax --- */
.banner-parallax {
    transition: transform 0.1s linear;
    will-change: transform;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    [data-reveal],
    .hero-animate-badge,
    .hero-animate-title,
    .hero-animate-line,
    .hero-animate-text,
    .hero-animate-pills,
    .hero-animate-cta,
    .hero-animate-photo,
    .hero-pill-stagger,
    .animate-float,
    .animate-float-slow,
    .animate-pulse-soft {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* --- Responsive section images --- */
.section-img {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.section-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.section-img:hover img {
    transform: scale(1.03);
}

/* --- Hero pill on dark background --- */
.pill-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    font-size: 0.875rem;
}

/* --- Crêperie section with background image --- */
.creperie-banner {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.creperie-banner .creperie-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.creperie-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(128, 0, 32, 0.88) 0%, rgba(64, 0, 16, 0.92) 100%);
    z-index: 1;
}

.creperie-banner > *:not(.creperie-bg):not(::before) {
    position: relative;
    z-index: 2;
}

.creperie-content {
    position: relative;
    z-index: 2;
}

/* --- Scroll progress bar --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, rgb(var(--couleur-primaire)), rgb(var(--couleur-accent)));
    z-index: 9999;
    transition: width 0.05s linear;
    pointer-events: none;
}

/* --- Smooth page entry (subpages banner) --- */
@keyframes bannerTextIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.banner-animate-title { animation: bannerTextIn 0.7s 0.2s cubic-bezier(0.22,1,0.36,1) both; }
.banner-animate-sub   { animation: bannerTextIn 0.6s 0.4s cubic-bezier(0.22,1,0.36,1) both; }
.banner-animate-line  { animation: heroLineExpand 0.5s 0.55s cubic-bezier(0.22,1,0.36,1) both; }
.banner-animate-text  { animation: bannerTextIn 0.6s 0.6s cubic-bezier(0.22,1,0.36,1) both; }

/* --- Tilt on hover for cards --- */
.card-tilt {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    transform-style: preserve-3d;
    perspective: 800px;
}

/* --- Scrollbar styling --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgb(var(--couleur-primaire-clair));
}

::-webkit-scrollbar-thumb {
    background: rgba(var(--couleur-primaire), 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--couleur-primaire), 0.5);
}

/* --- Selection color --- */
::selection {
    background-color: rgba(var(--couleur-primaire), 0.15);
    color: rgb(var(--couleur-primaire));
}
