/* Page "Devenir Host" (templates/canoper.html)
================================================== */

body {
    min-height: 100vh;
    max-width: 1300px;
    margin: 0 auto;
    color: var(--gris-marque);
}

.host-page {
    padding: 0 16px 48px;
}

/* Accroche : titre, promesse et actions, en haut de page */
.host-hero {
    max-width: 760px;
    margin: 32px auto 8px;
    text-align: center;
}

.host-hero h1 {
    margin-bottom: 16px;
    color: var(--gris-texte-fort);
    font-size: 2rem;
    font-weight: 600;
}

.host-hero p {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.host-hero__lead {
    color: #ba9966;
    font-size: 1.3rem !important;
    font-weight: 600;
}

.host-hero--bottom {
    margin-top: 48px;
    padding: 32px 16px;
    border-radius: 14px;
    background-color: var(--gris-fond);
}

.host-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.host-btn {
    display: inline-block;
    padding: 10px 22px;
    border: 2px solid #ba9966;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.host-btn--primary {
    background-color: #ba9966;
    color: #ffffff;
}

.host-btn--primary:hover,
.host-btn--primary:focus {
    background-color: #9c7d4d;
    border-color: #9c7d4d;
    color: #ffffff;
}

.host-btn--secondary {
    background-color: #ffffff;
    color: #9c7d4d;
}

.host-btn--secondary:hover,
.host-btn--secondary:focus {
    background-color: var(--gris-fond);
    color: #7a5c2e;
}

/* Sections */
.host-section {
    margin-top: 48px;
}

.host-section h2 {
    margin-bottom: 24px;
    color: var(--gris-texte-fort);
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}

/* Introduction d'une section : types d'evenements, puis explication */
.host-section__types,
.host-section__intro {
    max-width: 760px;
    margin: 0 auto 12px;
    text-align: center;
}

.host-section__types {
    color: #ba9966;
    font-weight: 600;
}

.host-section__intro {
    margin-bottom: 24px;
}

/* Cartes : etapes et offres, cote a cote sur ordinateur, empilees sur mobile */
.host-steps,
.host-offers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.host-card {
    position: relative;
    padding: 24px 20px 20px;
    border-radius: 12px;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.host-card h3 {
    margin: 8px 0 10px;
    color: var(--gris-texte-fort);
    font-size: 1.1rem;
    font-weight: 600;
}

.host-card p {
    margin: 0;
    font-size: 0.95rem;
}

.host-step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #ba9966;
    color: #ffffff;
    font-weight: 700;
}

.host-card__icon {
    /* Icone SVG integree (templates/icons, Bootstrap Icons, licence MIT) */
    color: #ba9966;
    font-size: 2rem;
    vertical-align: -.125em;
}

/* Exemples d'evenements : 4 images de meme format sur ordinateur, 2 par ligne sur mobile */
.host-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(9rem, 100%), 1fr));
    gap: 16px;
}

.host-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
}

/* Evenements qui cherchent des hotes : liens vers les pages hotes (eventcalendar/host_pages.py) */
.host-pages {
    display: grid !important;              /* navbar.css met toutes les listes en colonne flex */
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 8px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.host-pages a {
    color: #8a6d3b;
    font-weight: 600;
}

.host-pages__dates {
    color: #8a8a8a;
    font-size: 0.9em;
}

/* Page hotes d'un evenement dans une ville : texte en colonne lisible */
.host-page--city .host-section > p,
.host-page--city .host-section > h3 {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.host-page--city .host-section > h3 {
    margin-top: 18px;
    font-size: 1.1rem;
}
