/* Page de liens Cozzzy Places. Mobile d'abord (une colonne), mise en page large à partir de 960 px. */

/* Polices auto-hébergées (sous-ensemble latin) : aucun appel à un CDN tiers. */
@font-face {
    font-family: "Outfit";
    src: url("../fonts/outfit-latin.woff2") format("woff2");
    font-weight: 400 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Fraunces";
    src: url("../fonts/fraunces-latin.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Fraunces";
    src: url("../fonts/fraunces-italic-latin.woff2") format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

:root {
    --page: #FFFFFF;
    --ink: #2B2E2F;
    --muted: #5F6668;
    --surface: #F2F5F5;
    --border: #E1E7E7;
    --border-hover: #B9C4C4;
    --accent: #0B6E78;
    --accent-hover: #095A62;
    --gutter: 24px;
}

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul { margin: 0; }
img { display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* border-box : l'en-tête porte son propre padding et doit rester aligné sur le contenu. */
.wrap { box-sizing: border-box; max-width: 600px; margin: 0 auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { flex: none; width: 15px; height: 15px; }

/* En-tête : logo + nom */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px var(--gutter);
}
.brand__logo { width: 40px; height: auto; }
.brand__name { font-size: 17px; font-weight: 600; letter-spacing: 0.01em; }

/* Titre */
.intro { padding: 20px var(--gutter) 28px; }
.eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}
.eyebrow--accent { margin-bottom: 12px; letter-spacing: 0.08em; color: var(--accent); }
.intro__title {
    margin-top: 12px;
    font-family: "Fraunces", Georgia, serif;
    font-size: 46px;
    font-weight: 400;
    line-height: 48px;
    letter-spacing: -0.01em;
}
.intro__text { margin-top: 16px; line-height: 24px; color: var(--muted); }

/* Raccourcis vers les destinations : défilent horizontalement quand ils ne tiennent pas. */
.chips {
    display: flex;
    gap: 8px;
    padding: 0 var(--gutter) 32px;
    overflow-x: auto;
    scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
    flex: none;
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 16px;
    border-radius: 22px;
    background: var(--surface);
    font-size: 15px;
    font-weight: 500;
}
.chip:hover { background: var(--border); }

/* Carte « Nouvelle adresse » */
.featured { padding: 0 var(--gutter) 40px; }
.feature {
    display: flex;
    flex-direction: column;
    padding: 12px 12px 16px;
    border-radius: 24px;
    background: var(--surface);
}
.feature__photo {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 16px;
}
.feature__title { margin: 16px 4px 0; font-size: 22px; font-weight: 600; line-height: 28px; }
.feature__text { margin: 6px 4px 0; font-size: 15px; line-height: 22px; color: var(--muted); }
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 4px 0;
    padding: 0;
    list-style: none;
}
.tag {
    display: flex;
    align-items: center;
    height: 30px;
    padding: 0 10px;
    border-radius: 15px;
    background: var(--page);
    font-size: 13.5px;
    font-weight: 500;
}
.button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    margin-top: 16px;
    border-radius: 14px;
    background: var(--accent);
    color: #FFFFFF;
    font-weight: 600;
}
.feature:hover .button { background: var(--accent-hover); }

/* Sections par destination */
.section { padding: 0 var(--gutter) 36px; scroll-margin-top: 16px; }
.section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.section__title { font-size: 24px; font-weight: 600; line-height: 30px; }
.section__count { flex: none; font-size: 14px; color: var(--muted); }

/* Lignes de logement */
.listings { display: flex; flex-direction: column; gap: 12px; }
.listing {
    display: flex;
    gap: 14px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 20px;
}
a.listing:hover { border-color: var(--border-hover); }
.listing__photo {
    flex: none;
    width: 104px;
    height: 104px;
    object-fit: cover;
    border-radius: 12px;
    background: var(--surface);
}
.listing__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.listing__name { margin-bottom: 2px; font-size: 17px; font-weight: 600; line-height: 22px; }
.listing__meta { font-size: 14px; line-height: 20px; color: var(--muted); }
.listing__cta {
    align-self: flex-end;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: var(--accent);
}
/* Logement loué à l'année : remplace « Réserver » sur une carte sans lien. */
.listing__tag {
    align-self: flex-end;
    margin-top: 6px;
    padding: 3px 10px;
    border-radius: 12px;
    background: var(--surface);
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
    color: var(--muted);
}

/* Pied de page (pleine largeur) */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px var(--gutter) 32px;
    background: var(--surface);
    font-size: 14px;
    line-height: 20px;
    color: var(--muted);
    text-align: center;
}
.footer__logo { width: 44px; height: auto; }
.footer__copyright { font-size: 13px; }

/* Tablette : même colonne, titre plus ample. */
@media (min-width: 600px) {
    .brand { padding-top: 28px; }
    .intro { padding-top: 32px; }
    .intro__title { font-size: 60px; line-height: 62px; }
    .intro__text { font-size: 17px; line-height: 26px; }
    .chips { overflow: visible; }
}

/* Desktop : titre et carte « Nouvelle adresse » côte à côte, puis une bande par destination
   (nom à gauche, logements sur deux colonnes à droite). */
@media (min-width: 960px) {
    :root { --gutter: 40px; }
    .wrap { max-width: 1120px; }

    .hero {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: center;
        gap: 64px;
        padding: 32px var(--gutter) 72px;
    }
    .intro { padding: 0; }
    .intro__title { font-size: clamp(58px, 6vw, 76px); line-height: 1.02; }
    .intro__text { max-width: 440px; margin-top: 24px; font-size: 18px; line-height: 28px; }
    .chips { flex-wrap: wrap; padding: 32px 0 0; }
    .featured { padding: 0; }
    .feature { padding: 14px 14px 18px; }
    .feature__title { font-size: 24px; line-height: 30px; }

    .section {
        display: grid;
        grid-template-columns: clamp(200px, 22vw, 260px) minmax(0, 1fr);
        gap: 40px;
        margin: 0 var(--gutter);
        padding: 36px 0;
        border-top: 1px solid var(--border);
        scroll-margin-top: 0;
    }
    .section__head {
        flex-direction: column;
        justify-content: flex-start;
        gap: 4px;
        margin-bottom: 0;
    }
    .section__title { font-size: 26px; line-height: 32px; }
    .listings {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .footer { margin-top: 36px; padding: 40px var(--gutter) 44px; }
}
