/* ============================================================
   Page d'accueil uniquement (chargé par index.html après styles.css).
   Typographie : Young Serif (titres, une seule graisse) + DM Sans (texte).
   Tout est préfixé par body[data-page-id="home"] pour ne rien
   changer sur les autres pages du site.
   ============================================================ */

body[data-page-id="home"] {
    --font-heading: 'Young Serif', 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;

    --step-small: 0.875rem;
    --step-body: 1.0625rem;
    --step-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
    --step-title: clamp(1.875rem, 1.4rem + 1.9vw, 2.875rem);
    --step-display: clamp(1.875rem, 1.2rem + 2.3vw, 3.25rem);

    line-height: 1.6;
}

/* Titres : un seul style, droit, sans faux gras ni faux italique */
body[data-page-id="home"] h1,
body[data-page-id="home"] h2,
body[data-page-id="home"] h3 {
    font-weight: 400;
    font-style: normal;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

body[data-page-id="home"] p {
    text-wrap: pretty;
}

/* Hero */
body[data-page-id="home"] .hero-content {
    max-width: 960px;
}

body[data-page-id="home"] .hero h1 {
    font-size: var(--step-display);
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

body[data-page-id="home"] .hero p {
    font-size: var(--step-lead);
    line-height: 1.5;
    max-width: 34em;
}

/* Titres de section */
body[data-page-id="home"] .section-title,
body[data-page-id="home"] .section-perso h2,
body[data-page-id="home"] .section-final-cta h2 {
    font-size: var(--step-title);
    line-height: 1.08;
    font-style: normal;
}

body[data-page-id="home"] .section-subtitle {
    font-family: var(--font-body);
    font-style: normal;
    font-size: var(--step-lead);
}

/* Cartes collections */
body[data-page-id="home"] .card-content h3 {
    font-size: 1.625rem;
    line-height: 1.15;
    font-style: normal;
}

body[data-page-id="home"] .card-content p,
body[data-page-id="home"] .section-perso p,
body[data-page-id="home"] .section-final-cta p {
    font-size: var(--step-body);
    line-height: 1.6;
}

/* Boutons */
body[data-page-id="home"] .btn-primary,
body[data-page-id="home"] .btn-secondary {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0;
}

/* Petits libellés : casse normale, plus de majuscules espacées */
body[data-page-id="home"] .nd-sub-label {
    font-size: var(--step-small);
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

body[data-page-id="home"] .perso-tag {
    font-size: var(--step-small);
}

/* Prénoms brodés : une seule légende, les prénoms seuls dans les cartes */
body[data-page-id="home"] .perso-visual {
    flex-direction: column;
    align-items: stretch;
}

body[data-page-id="home"] .perso-name-caption {
    font-size: var(--step-small);
    color: var(--clr-text-secondary);
    margin: 0 0 0.75rem;
}

body[data-page-id="home"] .perso-name-card {
    border-left: none;
    border: 1px solid var(--clr-border);
    box-shadow: 0 2px 10px rgba(53, 43, 37, 0.05);
    justify-content: center;
    padding: 1rem 1.5rem;
}

body[data-page-id="home"] .perso-name-display {
    color: #4A6B52;
    font-size: 2rem;
    font-style: normal;
    letter-spacing: -0.01em;
}

/* Univers : les 5 cartes sur une ligne, sans trou au bout.
   La photo n'apparaît que si elle est réglée dans l'admin (Bannières). */
body[data-page-id="home"] .collections-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

body[data-page-id="home"] .collection-card {
    flex: 0 1 calc((100% - 6rem) / 5);
    display: flex;
    flex-direction: column;
}

body[data-page-id="home"] .card-img {
    height: 220px;
}

body[data-page-id="home"] .card-img:not([style*="background-image"]) {
    display: none;
}

body[data-page-id="home"] .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.75rem 1.25rem;
}

body[data-page-id="home"] .card-content h3 {
    font-size: 1.375rem;
}

body[data-page-id="home"] .card-content p {
    font-size: 0.9375rem;
    min-height: 0;
}

body[data-page-id="home"] .card-content .btn-secondary {
    margin-top: auto;
}

@media (max-width: 1100px) {
    body[data-page-id="home"] .collection-card {
        flex-basis: calc((100% - 3rem) / 3);
    }
}

@media (max-width: 640px) {
    body[data-page-id="home"] .collection-card {
        flex-basis: 100%;
    }
}

/* Pied de page */
body[data-page-id="home"] .footer-brand h2 {
    font-size: 1.75rem;
}

body[data-page-id="home"] .footer-links h3,
body[data-page-id="home"] .footer-social h3,
body[data-page-id="home"] .footer-support h3 {
    font-size: 1.25rem;
}
