/* =========================================================
   Base
========================================================= */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* =========================================================
   Thème
========================================================= */
:root {
    --bg: #e2d2c1;
    --panel: #e8ded2;
    --text: #2a221d;
    --muted: #6d5e55;
    --btn: #6e5f52;
    --btnText: #fff;
    --shadow: 0 8px 20px rgba(0, 0, 0, .08);
    --font-heading: "Playfair Display", serif;
    --font-base: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    /* réglages cartes génériques */
    --imgW: 220px;
    /* largeur image desktop */
    --imgW-min: 140px;
    /* borne min responsive */
    --imgW-vw: 24vw;
    /* borne fluide */
    --btnW: 180px;
    /* largeur uniforme boutons */
}

/* =========================================================
   Layout global
========================================================= */
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-base);
    line-height: 1.55;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

.container {
    max-width: 1100px;
    margin-inline: auto;
    padding: 18px;
}

/* =========================================================
   Header
========================================================= */
.page-hero {
    background: var(--bg);
    padding: 32px 0 6px;
    text-align: center;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
    margin: 0;
    display: inline-block;
}

/* =========================================================
   Nav
========================================================= */
.site-nav {
    margin-top: 22px;
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 4vw, 36px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.site-nav ul::-webkit-scrollbar {
    display: none;
}

.site-nav a {
    white-space: nowrap;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
}

.site-nav a:hover {
    filter: brightness(1.1);
}

@media (max-width:420px) {
    .site-nav a {
        font-size: .95rem;
    }
}

/* =========================================================
   Intro
========================================================= */
.page-intro {
    margin: 6px 0 18px;
}

.intro-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(26px, 4.4vw, 40px);
    margin: 0 0 10px;
}

.intro-bubble {
    display: inline-block;
    background: var(--panel);
    color: var(--muted);
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, .06);
    max-width: 60ch;
}

/* =========================================================
   Section cartes
========================================================= */
.cards {
    display: grid;
    gap: 22px;
}

/* =========================================================
   IDEA CARD — variante pour les idées déco (distincte des promo-cards)
========================================================= */
.idea-card {
    --idea-bg: #f3ebe2;
    --idea-accent: #a58b8b;
    --idea-border: rgba(0, 0, 0, .06);

    display: grid;
    grid-template-columns: clamp(130px, 23vw, 210px) 1fr;
    /* image | contenu */
    align-items: center;
    gap: 18px;
    position: relative;
    background: linear-gradient(180deg, var(--idea-bg), #efe6dc);
    border: 1px solid var(--idea-border);
    border-radius: 22px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
    overflow: hidden;
    min-height: 160px;
}

/* image carrée */
.idea-card>img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    object-position: center;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, .05);
    background: #eee;
}

/* contenu */
.idea-card .card-content {
    display: grid;
    row-gap: 10px;
    min-width: 0;
    justify-items: start;
    place-self: center start;
    /* centre verticalement le bloc texte */
}

/* Titre + badge numéro rond */
.idea-card .card-content h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    font-size: clamp(1.4rem, 3vw, 2.1rem);
}

.idea-card .card-content .card-num {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 999px;
    background: var(--idea-accent);
    color: #fff;
    font-size: 1.15rem;
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .12);
}

/* texte */
.idea-card .card-content p {
    margin: 0 0 6px;
    color: var(--muted);
    max-width: 60ch;
}

/* bouton outline (différent du plein des promo-cards) */
.idea-card .btn-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    padding: 11px 20px;
    border-radius: 999px;
    background: transparent;
    color: var(--idea-accent);
    border: 2px solid var(--idea-accent);
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    box-shadow: none;
    transition: transform .06s ease, background .2s ease, color .2s ease;
}

.idea-card .btn-card:hover {
    background: var(--idea-accent);
    color: #fff;
    transform: translateY(-1px);
}

/* Variante compacte si besoin */
.idea-card--simple {
    grid-template-columns: clamp(110px, 22vw, 180px) 1fr;
    padding: 14px;
    border-radius: 18px;
}

/* Responsive */
@media (max-width:720px) {
    .idea-card {
        grid-template-columns: 1fr;
        /* image au-dessus */
        gap: 14px;
    }

    .idea-card .card-content {
        place-self: auto;
        justify-items: start;
        text-align: left;
    }

    .idea-card .card-content h2 {
        align-items: baseline;
        gap: 10px;
    }

    .idea-card .btn-card {
        min-width: 160px;
    }
}

@media (max-width:480px) {
    .idea-card {
        border-radius: 18px;
    }

    .idea-card>img {
        border-radius: 12px;
    }
}

/* =========================================================
   Promo Card — conservée pour les autres pages/blocs
========================================================= */
.promo-card {
    display: grid;
    grid-template-columns: clamp(var(--imgW-min), var(--imgW-vw), var(--imgW)) 1fr;
    align-items: center;
    gap: 16px;
    background: var(--panel);
    border-radius: 18px;
    padding: 14px;
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.promo-card>img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 12px;
}

.promo-card .card-content {
    display: grid;
    row-gap: 10px;
    min-width: 0;
    justify-items: start;
    place-self: center start;
}

.promo-card .card-content h2 {
    margin: 0;
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
    display: flex;
    align-items: center;
    gap: 8px;
}

.promo-card .card-content p {
    margin: 0 0 6px;
    color: var(--muted);
}

.btn-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--btnW);
    padding: 12px 24px;
    border-radius: 999px;
    background: var(--btn);
    color: var(--btnText);
    font-weight: 800;
    text-decoration: none;
    box-shadow: var(--shadow);
}

.btn-card:hover {
    filter: brightness(1.05);
}

/* carte simple footer */
.promo-card--simple {
    grid-template-columns: clamp(120px, 22vw, 200px) 1fr;
    margin-top: 26px;
}

.promo-card--footer {
    margin-bottom: 40px;
}

/* =========================================================
   Responsive cartes génériques
========================================================= */
@media (max-width:700px) {

    .promo-card,
    .promo-card--simple {
        grid-template-columns: 1fr;
    }

    /* image au-dessus */
    .promo-card .card-content {
        justify-items: start;
        text-align: left;
        place-self: auto;
    }
}

@media (max-width:480px) {
    .promo-card {
        border-radius: 16px;
    }

    .promo-card>img {
        border-radius: 10px;
    }
}

/* =========================================================
   Grille produits
========================================================= */
.product-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 280px));
}

.product-card {
    background: var(--panel);
    padding: 12px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, .06);
    display: grid;
    gap: 10px;
    align-content: start;
}

.product-card>img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 12px;
}

.product-thumb {
    aspect-ratio: 1/1;
    border-radius: 12px;
    overflow: hidden;
    background: #e9e4de;
}

.product-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    display: block;
}

.btn-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 999px;
    background: var(--btn);
    color: var(--btnText);
    font-weight: 800;
    text-decoration: none;
    box-shadow: var(--shadow);
    line-height: 1;
}

.btn-buy:hover {
    filter: brightness(1.05);
}

@media (max-width:480px) {
    .product-card {
        border-radius: 14px;
    }

    .product-card img,
    .product-thumb {
        border-radius: 10px;
    }
}

/* =========================================================
   Footer
========================================================= */
.disclaimer {
    background: var(--panel);
    color: var(--muted);
    border-top: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 -8px 20px rgba(0, 0, 0, .06);
}

.disclaimer .container {
    padding: 18px;
}

.disclaimer p {
    margin: .2rem 0;
    text-align: center;
}

.disclaimer .mini {
    font-size: .85rem;
    color: var(--muted);
}

.disclaimer a {
    color: var(--btn);
    text-decoration: none;
    font-weight: 600;
}

.disclaimer a:hover {
    text-decoration: none;
}

/* =========================================================
   Header responsive
========================================================= */
@media (max-width:700px) {
    .page-hero {
        padding: 22px 0 14px;
    }

    .hero-title {
        font-size: clamp(28px, 7vw, 42px);
    }
}