:root {
    --blue: #0a4faf;
    --green: #008a00;
    --red: #880808;
    --yellow: #ebc900;
    --dark: #161616;
    --ink: #1a1a1a;
    --bg: #f4f7f2;
    --paper: #ffffff;
    --accent: #ff4fd8;
    --radius: 22px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .15);
}

/* Reset & base */
* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    padding: 0
}

body {
    font-family: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, Arial;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6
}

a {
    text-decoration: none
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff8fe;
    border-bottom: 4px solid var(--accent);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .05);
    padding: 14px 0
}

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 900
}

.brand img {
    height: 48px;
    width: 48px;
    object-fit: contain
}

.brand span {
    font-family: "Bangers", cursive;
    letter-spacing: 1px;
    font-size: 26px
}

nav a {
    margin: 0 14px;
    color: var(--ink);
    font-weight: 800
}

nav .btn {
    margin-left: 8px
}

/* Buttons */
.btn {
    display: inline-block;
    border: none;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform .08s ease
}

.btn:hover {
    transform: translateY(-2px)
}

.btn:active {
    transform: translateY(0)
}

.btn-primary {
    background: var(--blue);
    color: #fff
}

.btn-ghost {
    background: #fff;
    color: var(--ink);
    border: 2px dashed var(--ink)
}

/* Hero */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--accent) 0%, #ffd3f2 30%, #fff 100%)
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 36px;
    align-items: center;
    padding: 60px 0
}

.hero-text h1 {
    margin: 0 0 10px;
    font-family: "Bangers", cursive;
    font-size: 64px;
    line-height: 1.1
}

.title-outline {
    text-shadow: -2px 2px 0 #fff, 2px 2px 0 #fff, 2px -2px 0 #fff, -2px -2px 0 #fff
}

.lead {
    font-size: 1.2rem
}

.cta-row {
    display: flex;
    gap: 12px;
    margin: 18px 0 8px
}

.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 10px 0 0;
    padding: 0;
    list-style: none
}

.chip {
    background: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 900;
    box-shadow: var(--shadow);
    text-decoration: none
}

.chip-blue {
    border: 3px solid var(--blue)
}

.chip-green {
    border: 3px solid var(--green)
}

.chip-red {
    border: 3px solid var(--red)
}

.chip-yellow {
    border: 3px solid var(--yellow)
}

.chip-dark {
    border: 3px solid var(--dark)
}

.hero-visual .plateau-frame {
    background: #fff;
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow);
    transform: rotate(-2deg)
}

.hero-visual img {
    display: block;
    width: 100%;
    border-radius: 14px
}

.hero-wave {
    height: 16px;
    background: repeating-linear-gradient(90deg, transparent 0 40px, rgba(0, 0, 0, .05) 40px 42px)
}

/* Sections */
.section {
    padding: 64px 0
}

.section-alt {
    background: #fff
}

.two-col {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 28px;
    align-items: start
}

.pop {
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow)
}

.pop img {
    display: block;
    width: 100%
}

.note {
    margin-top: 12px;
    padding: 12px 14px;
    border-left: 6px solid var(--yellow);
    background: #fff;
    border-radius: 12px
}

.list-cards {
    margin: 16px 0;
    padding: 0;
    list-style: none
}

.swatch {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    border-radius: 4px;
    border: 2px solid #0003;
    vertical-align: middle
}

.swatch-blue {
    background: var(--blue)
}

.swatch-green {
    background: var(--green)
}

.swatch-red {
    background: var(--red)
}

.swatch-yellow {
    background: var(--yellow)
}

.swatch-dark {
    background: var(--dark)
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px
}

.card {
    background: var(--paper);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px
}

/* Dice */
.dice {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start
}

.dice-face {
    width: 140px;
    height: 100px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 28px;
    background: #fff;
    border: 4px solid var(--ink);
    box-shadow: var(--shadow)
}

.dice-hint {
    opacity: .85;
    margin: 0
}

.big-symbol {
    font-size: 60px
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    justify-items: center
}

.gallery a {
    width: 200px;
    aspect-ratio: 1/1;
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px) brightness(0.7);
    transition: transform .3s ease, filter .3s ease
}

.gallery a::after {
    content: "Voir plus";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: "Bangers", cursive;
    font-size: 28px;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    background: rgba(0, 0, 0, 0.35);
    padding: 6px 14px;
    border-radius: 12px;
    pointer-events: none
}

.gallery a:hover img {
    transform: scale(1.08);
    filter: blur(2px) brightness(0.9)
}

/* Lightbox (au-dessus de tout) */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .7);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 24px;
    z-index: 9999
}

.lightbox img {
    max-width: min(1000px, 90vw);
    max-height: 72vh;
    border-radius: 12px;
    box-shadow: var(--shadow);
    background: #fff
}

.lightbox p {
    color: #fff;
    margin-top: 10px
}

.lightbox.show {
    display: flex
}

.lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 42px;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    z-index: 10000
}

.no-scroll {
    overflow: hidden
}

#naming h2, 
#naming h3 {
  font-family: "Bangers", cursive;
  margin-bottom: 12px;
}
#naming ul {
  margin-top: 12px;
}


/* Contact */
.contact {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px
}

.contact .row {
    display: flex;
    gap: 20px;
    margin-bottom: 10px
}

.contact input,
.contact textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #0002;
    border-radius: 12px;
    font: inherit
}

.contact button {
    margin-top: 10px
}

.thanks {
    opacity: 0;
    transition: opacity .2s ease;
    margin-left: 12px;
    display: inline-block
}

.thanks.show {
    opacity: 1
}

/* Section Boîte améliorée */
.boite .wrap {
    padding: 0 20px
}

.boite-card {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 28px;
    background: linear-gradient(135deg, #fff 0%, #fff 55%, #ffecfb 55%, #ffd3f2 100%);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
    position: relative;
    overflow: hidden
}

.boite-left h2 {
    margin-top: 4px
}

.boite-intro {
    margin: 8px 0 12px;
    max-width: 54ch
}

.palette-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 4px
}

.badge {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 900;
    color: #fff;
    box-shadow: var(--shadow);
    font-size: .95rem
}

.b-blue {
    background: var(--blue)
}

.b-green {
    background: var(--green)
}

.b-red {
    background: var(--red)
}

.b-yellow {
    background: var(--yellow)
}

.b-dark {
    background: var(--dark)
}

.dark-text {
    color: #111
}

.mock {
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 14px;
    text-align: center;
    align-self: center
}

.mock img {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    border-radius: 16px;
    display: block
}

.mock figcaption {
    opacity: .75;
    font-size: .9rem;
    margin-top: 6px
}

/* Footer */
.site-footer {
    padding: 48px 20px;
    background: #111;
    color: #fff;
    text-align: center;
    font-size: .95rem
}

/* Audio toggle */
.audio-toggle {
    position: fixed;
    right: 16px;
    bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 2px solid var(--ink);
    box-shadow: var(--shadow);
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer
}

.audio-toggle .icon {
    font-size: 18px
}

.audio-toggle.playing {
    background: var(--blue);
    color: #fff;
    border-color: transparent
}

/* Responsive */
@media(max-width:980px) {

    .hero-grid,
    .two-col {
        grid-template-columns: 1fr
    }

    .cards-grid {
        grid-template-columns: 1fr 1fr
    }

    .boite-card {
        grid-template-columns: 1fr;
        gap: 18px;
        background: linear-gradient(180deg, #fff 0%, #fff 58%, #ffecfb 58%, #ffd3f2 100%)
    }

    .mock img {
        max-width: 420px
    }
}

@media(max-width:768px) {
    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
        gap: 12px
    }

    nav a,
    nav .btn {
        font-size: .9rem;
        margin: 6px 8px
    }

    .hero-text h1 {
        font-size: 42px
    }

    .lead {
        font-size: 1rem
    }

    .chips {
        justify-content: center
    }

    .hero-grid {
        text-align: center
    }

    .hero-visual {
        order: -1
    }

    .cards-grid {
        grid-template-columns: 1fr
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr))
    }

    .gallery a {
        width: 100%;
        max-width: 180px
    }

    .dice-face {
        width: 100%;
        height: 90px
    }
}

@media(max-width:640px) {
    .mock {
        padding: 10px
    }

    .mock img {
        max-width: 100%
    }
}