body {
    margin: 0;
    font-family: Inter;
    color: #2a2a2a;
    overflow-x: hidden;
    width: 100%;

    /* Fond beige + petits points */
    background: radial-gradient(circle 20px, #1746a2 35%, transparent 36%) 0 0 / 60px 60px,
    radial-gradient(circle 20px, #E35336 35%, transparent 36%) 30px 30px / 60px 60px,
    #f2e9d8;
}


header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff8f0;
    border-bottom: 4px solid #2a2a2a;
    box-shadow: 0 4px 0 #2a2a2a;
    position: sticky;
    top: 0;
}

.construction-banner{
    background: #E35336;
    color: #fff;
    text-align: center;
    font-weight: 600;
    padding: 12px;
    border-bottom: 4px solid #2a2a2a;
    box-shadow: 0 4px 0 #2a2a2a;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.logo {
    font-family: Playfair Display;
    font-size: 70px;
    font-weight: 700;
    display: flex;
    gap: 12px;
    align-items: center;
}

.logo img{
    width: 200px;
    border-radius: 300px;
}

nav a {
    margin-left: 16px;
    text-decoration: none;
    font-weight: 700;
    color: #2a2a2a;
    border: 3px solid #2a2a2a;
    padding: 6px 12px;
    background: #fff;
    border-radius: 10px;
}

main {
    width: 100%;
    margin: 0;
    padding: 0;
}

.card {
    background: #fff;
    border: 4px solid #2a2a2a;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 6px 6px 0 #2a2a2a;
    margin: 20px;
    max-width: 100%;
    box-sizing: border-box;
}

.card ul{
    line-height:2em;
}

.col-double {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    min-width: 320px;
}

h1, h2 {
    font-family: Playfair Display;
    margin: 0 0 12px;
}

.illustration {
    width: 100%;
    border: 4px solid #2a2a2a;
    border-radius: 16px;
    box-shadow: 6px 6px 0 #2a2a2a;
    background: #fff;
    margin: 20px 0;
    overflow: hidden;
    display: block;
}

.illustration img {
    width: 100%;
    display: block;
}

.clickable {
    cursor: pointer;
}

/* Cartes côte à côte + responsive */
.cards-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.cards-row .card {
    flex: 1;
    min-width: 320px;
}

/* Grille infos */
.grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 20px;
}

.card-rsvp {
    display: flex;
    flex-direction: column;
    min-height: 600px;
}

.card-rsvp iframe {
    flex: 1;
    height: auto;
}

#popup-bg img {
    width: 200px;
    margin: auto;
    display: block;
    border: 1px solid black;
}

#popup {
    background: #fff;
    border: 4px solid #2a2a2a;
    border-radius: 16px;
    padding: 20px;
    max-width: 600px;
    box-shadow: 6px 6px 0 #2a2a2a;
    font-family: Inter;
}

/* Infos & Contacts */
#infos .grid > div,
.card p {
    font-size: 15px;
    line-height: 1.6;
}

#infos strong {
    font-family: Playfair Display;
    font-size: 18px;
    display: block;
    margin-bottom: 8px;
}

#infos a,
.card a {
    color: #1746a2;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid #1746a2;
}

#infos a:hover,
.card a:hover {
    background: #1746a2;
    color: #fff;
    padding: 2px 4px;
    border-radius: 6px;
}

/* Séparation visuelle dans Infos */
#infos .grid > div {
    background: #fff8f0;
    border: 3px solid #2a2a2a;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 4px 4px 0 #2a2a2a;
}

/* Contacts */
.card h2 + p {
    margin-top: 10px;
}

.card p {
    margin-bottom: 12px;
}

/********************************************************/
/*                     CountDown                        */
/********************************************************/

#countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.card_countdown {
    background: #1746a2;
    color: white;
    width: 120px;
    height: 140px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
}

.card_countdown:nth-child(2),
.card_countdown:nth-child(4) {
    background: #E35336;
}

.card_countdown:hover {
    transform: translateY(-6px);
}

.card_countdown span {
    font-size: 3rem;
    font-weight: bold;
}

.card_countdown small {
    margin-top: 8px;
    font-size: 0.9rem;
    opacity: 0.9;
}


/********************************************************/
/*                 Styles unitaires                     */
/********************************************************/
.front-bleu{
    color: #1746a2;
}

.front-terracotta{
    color: #E35336;
}

.underline{
    text-decoration: underline;
}



/********************************************************/
/*                      Mobile                          */
/********************************************************/
@media (max-width: 600px) {
    header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    nav a {
        margin: 0;
        flex: 1 1 auto;
    }


    .logo{
        font-size: 34px;
    }

    .logo img{
        width:90px;
    }

    #countdown{
        gap: 8px;
        flex-wrap: nowrap;
    }

    .card_countdown{
        width: 65px;
        height: 75px;
        border-radius: 10px;
        box-shadow: 3px 3px 0 #2a2a2a;
    }

    .card_countdown span{
        font-size: 1.4rem;
    }

    .card_countdown small{
        font-size: 0.65rem;
        margin-top: 2px;
    }

}

@media (max-width: 800px) {
    .grid {
        grid-template-columns:1fr;
    }
}

@media (max-width: 1300px) {
    .card-marion { order: 2; }
    .card-couple { order: 1; }
    .card-gabriel { order: 3; }
}