#cadeau {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
    height: calc(100vh - var(--header-height));
    scroll-margin-top: var(--header-height);
    background-image: url("../images/japan/japan.jpg");
    background-position: center;
    background-size: cover;
    background-color: rgba(255, 255, 255, 0.85);
    background-blend-mode: lighten;
}

#cadeau .content {
    position: relative;
    left: 50%;
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    gap: 70px;
}

#cadeau .content .col1, #cadeau .content .col2 {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#cadeau .content .col2 {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: space-evenly;
    gap: 20px;
}

#cadeau .content .haiku {
    backdrop-filter: blur(10px);
}

#cadeau .content .haiku p {
    margin: 0;
    font-size: 18px;
}

.btn-elegant {
    background: rgba(255, 255, 255, 0.6);
    color: #5e574d;
    border: 1.5px solid #5e574d;
    padding: 0.6em 1.8em;
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none;
}

/* Effet au survol */
.btn-elegant:hover {
    background: #5e574d;
    color: white;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

/* Effet clic */
.btn-elegant:active {
    transform: scale(0.98);
}

/* Accessibilité focus */
.btn-elegant:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(94, 87, 77, 0.4);
}

/* La bande photomaton (verticale) */
.photo-strip {
    top: 20px;
    left: 10%;
    position: absolute;
    height: 85vh;
    width: 260px;
    overflow: auto;
    background: linear-gradient(180deg, #fafafa, #fff);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(rgba(20, 20, 20, 0.18));
    transform: rotate(-5deg);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* chaque "Polaroid" */
.photo {
    background: var(--paper);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 6px;
    display: block;
    box-shadow: 0 6px 18px rgba(10, 10, 10, 0.08);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* léger effet rotation alternatif pour réalisme */
.photo:nth-child(odd) {
    transform: rotate(1deg);
}

.photo:nth-child(even) {
    transform: rotate(-0.5deg);
}

.photo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1;
}

/* petite légende (date ou caption) */
.caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: .82rem;
    color: #444;
}

.caption .date {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace;
    font-size: .78rem;
    color: #777;
}

/* un tampon "AMOUR" en diagonale */
.stamp {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    color: var(--stamp);
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: 1px;
    transform: rotate(12deg);
    opacity: 0.95;
    border: 2px dashed rgba(217, 79, 79, 0.15);
    padding: 4px 8px;
    border-radius: 4px;
}

/* petit trou en haut de la bande pour le style cabine */
.photo-strip::before {
    content: "";
    width: 18px;
    height: 6px;
    background: linear-gradient(180deg, #e9e9e9, #fafafa);
    border-radius: 8px;
    display: block;
    margin: 0 auto 0 auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) inset;
}

/* Variante: plusieurs bandes côte à côte (optionnel) */
.rows {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* petite animation d'apparition */
.photo {
    animation: drop .45s ease both;
}

.photo:nth-child(1) {
    animation-delay: 0.05s;
}

.photo:nth-child(2) {
    animation-delay: 0.12s;
}

.photo:nth-child(3) {
    animation-delay: 0.18s;
}

.photo:nth-child(4) {
    animation-delay: 0.22s;
}

@keyframes drop {
    from {
        transform: translateY(-6px) rotate(0deg);
        opacity: 0;
    }
    to {
        transform: none;
        opacity: 1;
    }
}

.photo-strip {
    box-shadow: 0 10px 30px rgba(20, 20, 20, 0.18);
}

@media (max-width: 768px) {
    #cadeau {
        position: relative;
        overflow: hidden;
    }

    #cadeau .photo-strip {
        position: absolute;
        top: auto;
        bottom: 50px;
        left: 50%;
        transform: translateX(-50%) rotate(5deg);
        width: 110%;
        height: auto;
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        padding: 8px;
        gap: 10px;
        border-radius: 10px;
        background: linear-gradient(90deg, #fafafa, #fff);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
        border: 1px solid rgba(0, 0, 0, 0.05);
        z-index: 10;
        scroll-padding-left: 10%;
    }

    #cadeau .photo-strip .photo {
        flex: 0 0 auto;
        width: 120px;
        padding: 6px;
        margin: 0 10px 0 10px;
        scroll-snap-align: start;
    }

    #cadeau .photo-strip .photo img {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    /* Option : remettre une légère inclinaison mais sur les items, pas le conteneur */
    #cadeau .photo-strip .photo:nth-child(odd) {
        transform: rotate(-1.5deg);
    }

    #cadeau .photo-strip .photo:nth-child(even) {
        transform: rotate(-0.5deg);
    }

    #cadeau .photo-strip::before {
        display: none;
    }

    #cadeau .content {
        left: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: start;
        align-items: start;
        gap: 40px;
    }

    #cadeau .content .haiku p {
        font-size: 14px;
    }
}

@media (max-width: 1150px) {
    #cadeau .section_header {
        align-items: end;
    }
}

/* Si tu veux repasser en vertical sur grand écran */
@media (min-width: 769px) {
    .photo-strip {
        display: block;
        overflow-x: hidden;
        overflow-y: auto;
        touch-action: pan-y;
    }
}