/* =============================================================
   Chambres d'hôtes naturistes — Figanières
   Rebuilt from a WebSelf export.
   ============================================================= */

/* ---- design tokens ---- */
:root {
    --accent: #17aae8;
    --accent-dark: #0078b6;
    --accent-soft: rgba(0, 167, 255, 0.08);
    --ink: #262626;
    --ink-soft: #5a5a5a;
    --muted: #b1b1b1;
    --bg: #ffffff;
    --bg-alt: #f6fbfe;
    --bg-tint: rgba(0, 167, 255, 0.18);
    --footer-bg: rgba(238, 238, 238, 0.9);
    --border: #e6e9ec;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.12);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --container: 1120px;
    --gap: clamp(1rem, 2.5vw, 2rem);
    --section-y: clamp(2.5rem, 6vw, 5rem);
    --font: 'Raleway', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---- reset ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: var(--accent-dark);
}

h1,
h2,
h3 {
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0 0 0.6em;
}

h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    letter-spacing: 2px;
}

h2 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    letter-spacing: 2px;
}

p {
    margin: 0 0 1em;
}

.container {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
}

/* ---- skip link ---- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 1000;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
    background: var(--accent-soft);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: var(--ink);
}

.brand:hover {
    color: var(--ink);
}

.brand__logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand__title {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.brand__sub {
    font-size: 0.78rem;
    font-style: italic;
    color: var(--ink-soft);
    margin-top: 2px;
}

/* nav */
.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--ink);
}

.nav-toggle svg {
    width: 28px;
    height: 28px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.main-nav a {
    position: relative;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ink);
    padding: 0.5rem 0.25rem;
}

.main-nav a::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
    transform: scaleX(1);
}

.main-nav a.is-active {
    color: var(--accent);
}

@media (max-width: 720px) {
    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem 1rem 1rem;
        gap: 0;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .main-nav.is-open {
        max-height: 400px;
    }

    .main-nav a {
        padding: 0.85rem 0.25rem;
        border-bottom: 1px solid var(--border);
    }

    .main-nav a:last-child {
        border-bottom: 0;
    }
}

/* ============================================================
   Sections
   ============================================================ */
section {
    padding: var(--section-y) 0;
}

.section-tint {
    background: var(--bg-tint);
}

.section-soft {
    background: var(--accent-soft);
}

.section-alt {
    background: var(--bg-alt);
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    text-align: center;
    padding: clamp(3rem, 8vw, 6rem) 0;
    background: linear-gradient(180deg, var(--bg-tint), transparent);
}

.hero h1 {
    margin: 0 auto;
    max-width: 900px;
    color: var(--ink);
    font-size: clamp(1.4rem, 3.6vw, 2.4rem);
    letter-spacing: 1px;
    line-height: 1.3;
    text-transform: none;
}

.hero h1 strong {
    color: var(--accent);
    font-weight: 800;
}

/* ============================================================
   Slideshow
   ============================================================ */
.slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 1000 / 360;
    max-height: 480px;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    background: #000;
}

.slideshow__track {
    position: absolute;
    inset: 0;
}

.slideshow__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.slideshow__slide.is-active {
    opacity: 1;
}

.slideshow__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slideshow__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    z-index: 2;
}

.slideshow__dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: rgba(255, 255, 255, 0.3);
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.slideshow__dots button[aria-current="true"] {
    background: #fff;
    transform: scale(1.2);
}

.slideshow__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    border: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    z-index: 2;
    display: grid;
    place-items: center;
    transition: background 0.2s ease;
}

.slideshow__nav:hover {
    background: rgba(0, 0, 0, 0.55);
}

.slideshow__nav--prev {
    left: 12px;
}

.slideshow__nav--next {
    right: 12px;
}

@media (max-width: 600px) {
    .slideshow__nav {
        width: 32px;
        height: 32px;
    }
}

/* ============================================================
   Image grid
   ============================================================ */
.gallery {
    display: grid;
    gap: var(--gap);
}

.gallery-2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 700px) {
    .gallery-2 {
        grid-template-columns: 1fr;
    }
}

.photo-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    aspect-ratio: 16 / 11;
    background: #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.photo-card:hover img {
    transform: scale(1.04);
}

.photo-card__caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 0.85rem 1rem;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    pointer-events: none;
}

/* ============================================================
   Two-column text section (testimonials / about / proximity)
   ============================================================ */
.two-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap);
}

@media (max-width: 760px) {
    .two-col {
        grid-template-columns: 1fr;
    }
}

.text-block {
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.7;
}

.text-block ul {
    padding-left: 1.2rem;
    margin: 0;
}

.text-block li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap);
}

@media (max-width: 760px) {
    .testimonials {
        grid-template-columns: 1fr;
    }
}

.testimonial {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.5rem 1.6rem;
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--accent);
    position: relative;
}

.testimonial__quote {
    font-style: italic;
    color: var(--ink);
    margin: 0 0 1rem;
    line-height: 1.65;
}

.testimonial__author {
    display: block;
    text-align: right;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* ============================================================
   Pricing (Tarifs)
   ============================================================ */
.price-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: var(--shadow-md);
    max-width: 820px;
    margin: 0 auto 2rem;
    border-top: 4px solid var(--accent);
}

.price-card h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.price-card ul,
.price-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.price-list li {
    padding: 0.85rem 0;
    border-bottom: 1px dashed var(--border);
    font-weight: 600;
    line-height: 1.55;
}

.price-list li:last-child {
    border-bottom: 0;
}

.price-callout {
    text-align: center;
    color: var(--accent);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 2rem 0 1rem;
}

.included-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.5rem 1.5rem;
}

.included-list li {
    padding: 0.5rem 0 0.5rem 1.6rem;
    position: relative;
    font-weight: 600;
}

.included-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

/* ============================================================
   Amenities (Commodités)
   ============================================================ */
.amenities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--gap);
    max-width: 900px;
    margin: 0 auto;
}

.amenity {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 1.2rem 1rem;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.amenity:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.amenity img,
.amenity svg {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.amenity__label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ============================================================
   Map
   ============================================================ */
.map-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
    align-items: center;
}

@media (max-width: 760px) {
    .map-section {
        grid-template-columns: 1fr;
    }
}

.map-frame {
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

/* ============================================================
   Contact cards
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    max-width: 980px;
    margin: 0 auto;
}

@media (max-width: 760px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 2rem 1.5rem;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
}

.contact-card__icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    border-radius: 50%;
    color: var(--accent);
}

.contact-card__icon svg,
.contact-card__icon img {
    width: 38px;
    height: 38px;
}

.contact-card__title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.contact-card__value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    overflow-wrap: anywhere;
    line-height: 1.5;
}

.contact-card a {
    color: var(--ink);
}

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

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: var(--footer-bg);
    text-align: center;
    padding: clamp(2rem, 5vw, 3.5rem) 0 1.5rem;
    margin-top: var(--section-y);
}

.site-footer__phone {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    font-style: italic;
    color: var(--muted);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.site-footer__phone a {
    color: var(--muted);
}

.site-footer__phone a:hover {
    color: var(--accent);
}

.site-footer__legal {
    margin-top: 1.5rem;
    font-size: 0.78rem;
    color: var(--ink-soft);
}

.site-footer__legal a {
    color: var(--ink-soft);
    text-decoration: underline;
}

/* ============================================================
   Misc
   ============================================================ */
.cta-link {
    display: inline-block;
    padding: 0.85rem 1.6rem;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    transition: background 0.2s ease, transform 0.2s ease;
}

.cta-link:hover {
    background: var(--accent-dark);
    color: #fff;
    transform: translateY(-2px);
}

/* Progressive-enhancement fade-in: only hidden when JS is on AND user
   has not disabled motion. Without JS the content remains fully visible. */
.js .fade-in:not(.is-visible) {
    opacity: 0;
    transform: translateY(12px);
}

.js .fade-in {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: reduce) {
    .js .fade-in {
        transition: none;
    }

    .js .fade-in:not(.is-visible) {
        opacity: 1;
        transform: none;
    }
}

/* utility */
.text-center {
    text-align: center;
}

.lead {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.6;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    color: var(--ink);
    font-weight: 600;
}
