﻿/* ============================================
   ESCALE A PORTSALL - Global Styles v2
   Design premium bord de mer
   ============================================ */

/* --- CSS Variables --- */
:root {
    --color-primary: #0C2D48;
    --color-primary-light: #1A4B6E;
    --color-primary-dark: #061B2E;
    --color-primary-rgb: 12, 45, 72;
    --color-accent: #2E8BC0;
    --color-accent-light: #45A5D4;
    --color-accent-dark: #1D6F9F;
    --color-gold: #7EAFCF;
    --color-gold-light: #BBD8EA;
    --color-gold-dark: #4F86AD;
    --color-sand: #EEF6FC;
    --color-sand-dark: #E3F0FA;
    --color-cream: #FAFDFF;
    --color-foam: #F4FBFF;
    --color-white: #FFFFFF;
    --color-light: #F2F8FD;
    --color-dark: #0A1628;
    --color-text: #2D3748;
    --color-text-light: #5A6577;
    --color-text-muted: #8E99A8;
    --color-border: #E2E8F0;
    --color-success: #38A169;
    --color-error: #E53E3E;
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4.5rem;
    --space-4xl: 7rem;
    --container-width: 1240px;
    --container-narrow: 820px;
    --navbar-height: 76px;
    --navbar-offset: 14px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 30px rgba(46, 139, 192, 0.15);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--navbar-height) + var(--navbar-offset) + 12px); }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    color: var(--color-text);
    background-color: var(--color-cream);
    background-image:
        radial-gradient(circle at 12% 12%, rgba(69, 165, 212, 0.12) 0%, transparent 35%),
        radial-gradient(circle at 88% 6%, rgba(12, 45, 72, 0.08) 0%, transparent 28%),
        linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(250,253,255,1) 40%, rgba(238,246,252,0.9) 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-accent-dark); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); line-height: 1.25; color: var(--color-primary); font-weight: 600; }
h1 { font-size: clamp(2.25rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.85rem, 4.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.85rem); }
h4 { font-size: 1.3rem; }
p { margin-bottom: var(--space-md); }
p:last-child { margin-bottom: 0; }
::selection { background: rgba(46, 139, 192, 0.2); color: var(--color-primary); }

/* Keyboard navigation visibility */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Fallback style when an image asset is not available yet */
.img--missing {
    object-fit: cover;
    background: linear-gradient(145deg, #eef6fc, #e3f0fa);
    border: 1px dashed rgba(46,139,192,0.35);
}

/* Layout */
.container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 var(--space-xl); }
.container--narrow { max-width: var(--container-narrow); }

/* Shared spacer for pages that start below the fixed navbar */
.navbar-spacer {
    height: calc(var(--navbar-height) + var(--navbar-offset) + 12px);
}

.section--flush-top {
    padding-top: 0;
}

.section--compact-bottom {
    padding-bottom: 2.5rem;
}

.section__header--compact {
    margin-bottom: 2rem;
}

.section__overtitle--start {
    justify-content: flex-start;
    gap: var(--space-sm);
}

.section__overtitle--start::before,
.section__overtitle--start::after {
    display: none;
}

.action-spacer {
    margin-top: 1.2rem;
}

.text-note-muted {
    margin-top: 1rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.map-embed {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.visually-hidden-field {
    position: absolute;
    left: -9999px;
}

/* Sections */
.section { padding: var(--space-4xl) 0; position: relative; }
.section--sand {
    background: linear-gradient(180deg, var(--color-sand) 0%, var(--color-foam) 100%);
}
.section--cream {
    background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-white) 100%);
}
.section--dark { background-color: var(--color-primary); color: var(--color-white); }
.section--ocean {
    background: linear-gradient(165deg, var(--color-primary-dark) 0%, var(--color-primary) 40%, var(--color-primary-light) 100%);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}
.section--ocean::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(46,139,192,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(194,154,90,0.1) 0%, transparent 50%);
    pointer-events: none;
}
.section--cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-dark) 100%);
    color: var(--color-white);
    text-align: center;
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}
.section--cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 30%, rgba(194,154,90,0.1) 0%, transparent 40%);
    pointer-events: none;
}

/* Section Headers */
.section__header { text-align: center; max-width: 720px; margin: 0 auto var(--space-3xl); position: relative; }
.section__header--light .section__title,
.section__header--light .section__overtitle { color: var(--color-white); }
.section__header--light .section__description { color: rgba(255,255,255,0.8); }
.section__header--light .section__title::after { background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light)); }
.section__overtitle {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-primary-light);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}
.section__overtitle::before, .section__overtitle::after { content: ''; width: 30px; height: 1px; background: var(--color-accent); }
.section__title { margin-bottom: var(--space-lg); position: relative; }
.section__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent-light), var(--color-primary));
    border-radius: 2px;
    margin: var(--space-md) auto 0;
}

.section--activities {
    background:
        radial-gradient(circle at 8% 15%, rgba(46,139,192,0.12) 0%, transparent 30%),
        radial-gradient(circle at 92% 70%, rgba(12,45,72,0.1) 0%, transparent 28%),
        linear-gradient(180deg, #ffffff 0%, var(--color-foam) 45%, #ffffff 100%);
}
.section__description { font-size: 1.1rem; color: var(--color-text-light); line-height: 1.9; }

/* Wave Dividers */
.wave-divider { position: relative; width: 100%; overflow: hidden; line-height: 0; margin-top: -1px; }
.wave-divider svg { display: block; width: 100%; height: auto; }
.wave-divider--flip { transform: rotate(180deg); margin-top: 0; margin-bottom: -1px; }

/* Decorative ornament */
.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin: var(--space-xl) 0;
    color: var(--color-gold);
    font-size: 1.5rem;
}
.ornament::before, .ornament::after { content: ''; flex: 1; max-width: 120px; height: 1px; background: linear-gradient(90deg, transparent, var(--color-gold), transparent); }

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    background:
        radial-gradient(circle at 20% 20%, rgba(69,165,212,0.22) 0%, transparent 34%),
        radial-gradient(circle at 80% 75%, rgba(12,45,72,0.4) 0%, transparent 42%),
        linear-gradient(180deg, #587892 0%, #35546f 55%, #20384e 100%),
        url('../images/hero/hero-portsall.jpg') center/cover no-repeat;
    overflow: hidden;
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: saturate(1.08) contrast(1.04);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(6,27,46,0.35) 0%, rgba(12,45,72,0.5) 50%, rgba(6,27,46,0.75) 100%);
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 60% 20%, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 80% 50%, rgba(255,255,255,0.15), transparent),
        radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,0.2), transparent);
    animation: floatParticles 20s linear infinite;
    pointer-events: none;
    z-index: 2;
}
@keyframes floatParticles {
    0% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-20px) translateX(10px); }
    100% { transform: translateY(0) translateX(0); }
}
.hero__content { position: relative; z-index: 3; max-width: 800px; padding: var(--space-xl); }
.hero__subtitle {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-bottom: var(--space-lg);
    opacity: 0.85;
}
.hero__title {
    font-size: clamp(2.75rem, 7vw, 5.5rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-md);
    line-height: 1.05;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero__tagline {
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 2.5vw, 1.65rem);
    font-style: italic;
    color: var(--color-gold-light);
    margin-bottom: var(--space-xl);
    text-shadow: 0 1px 10px rgba(0,0,0,0.2);
}
.hero__description {
    font-size: 1.1rem;
    line-height: 1.9;
    opacity: 0.9;
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.hero__actions { display: flex; gap: var(--space-lg); justify-content: center; flex-wrap: wrap; }
.hero__ratings {
    display: flex;
    gap: var(--space-2xl);
    justify-content: center;
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255,255,255,0.15);
}
.hero__rating { display: flex; flex-direction: column; align-items: center; gap: var(--space-xs); }
.hero__rating-stars { color: var(--color-gold); font-size: 0.9rem; letter-spacing: 2px; }
.hero__rating-score { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--color-white); }
.hero__rating-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.7; }
.hero__scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
    color: var(--color-white);
}
.hero__scroll:hover { opacity: 1; }
.hero__scroll span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 3px; display: block; margin-bottom: var(--space-sm); }
.hero__scroll-arrow {
    width: 20px;
    height: 20px;
    margin: 0 auto;
    border-right: 1.5px solid var(--color-white);
    border-bottom: 1.5px solid var(--color-white);
    transform: rotate(45deg);
    animation: scrollBounce 2.5s ease infinite;
}
@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translateY(0); }
    40% { transform: rotate(45deg) translateY(-8px); }
    60% { transform: rotate(45deg) translateY(-4px); }
}

/* CTA */
.cta__title { font-size: clamp(1.85rem, 4vw, 2.75rem); color: var(--color-white); margin-bottom: var(--space-md); position: relative; z-index: 1; }
.cta__text { font-size: 1.15rem; opacity: 0.85; margin-bottom: var(--space-xl); position: relative; z-index: 1; }

/* Maison details */
.maison-chambres-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.cta__actions { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* How to Come */
.how-to-come { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3xl); align-items: start; }
.how-to-come__map {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: calc(var(--navbar-height) + var(--space-xl));
    border: 3px solid var(--color-white);
}
.how-to-come__map iframe { width: 100%; height: 420px; border: none; }
.how-to-come__content { display: flex; flex-direction: column; gap: var(--space-xl); }
.transport {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
    padding: var(--space-lg);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.transport:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.transport__icon {
    font-size: 1.75rem;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: var(--radius-md);
    color: var(--color-white);
}
.transport__title { font-size: 1.1rem; margin-bottom: var(--space-xs); color: var(--color-primary); }
.transport p { color: var(--color-text-light); font-size: 0.95rem; line-height: 1.7; }

/* Footer */
.footer { background: var(--color-primary-dark); color: rgba(255,255,255,0.8); padding: var(--space-3xl) 0 var(--space-xl); position: relative; }
.footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--color-gold), var(--color-accent), var(--color-gold)); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: var(--space-2xl); margin-bottom: var(--space-2xl); }
.footer__logo { font-family: var(--font-heading); font-size: 1.65rem; color: var(--color-white); margin-bottom: var(--space-sm); }
.footer__tagline { font-style: italic; font-size: 0.9rem; color: var(--color-gold-light); margin-bottom: var(--space-md); }
.footer__address { font-size: 0.9rem; opacity: 0.7; }
.footer__heading {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gold-light);
    margin-bottom: var(--space-lg);
}
.footer__nav ul li, .footer__contact ul li { margin-bottom: var(--space-sm); }
.footer__nav a, .footer__contact a { color: rgba(255,255,255,0.65); font-size: 0.95rem; transition: color var(--transition-fast), padding-left var(--transition-fast); }
.footer__nav a:hover, .footer__contact a:hover { color: var(--color-white); padding-left: 4px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: var(--space-xl); text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.4); }

/* Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal--visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Utility */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-gradient { background: linear-gradient(135deg, var(--color-gold), var(--color-accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
