:root {
    --primary-color: #2c3e50;
    --secondary-color: #c0392b;
    --gold: #f1c40f;
    --background-color: #0a192f;
    --text-color: #2c3e50;
    --border-color: rgba(241, 196, 15, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    background: var(--background-color);
    margin: 0;
    padding: 0;
    min-height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

html {
    scroll-behavior: smooth;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 1%) 0 0,
                radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 1%) 25px 25px;
    background-size: 50px 50px;
    animation: starsAnimation 100s linear infinite;
}

@keyframes starsAnimation {
    from { background-position: 0 0, 25px 25px; }
    to { background-position: 1000px 0, 1025px 25px; }
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.invitation-card {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: visible;
    width: 100%;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

.decorative-border {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid var(--gold);
    opacity: 0.5;
}

.top-left {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
}

.top-right {
    top: 20px;
    right: 20px;
    border-left: none;
    border-bottom: none;
}

.bottom-left {
    bottom: 20px;
    left: 20px;
    border-right: none;
    border-top: none;
}

.bottom-right {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
}

.header {
    margin-bottom: 60px;
    position: relative;
}

.military-emblem {
    width: 300px;
    height: 300px;
    margin: 0 auto -80px;
    position: relative;
}

.military-emblem img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}



@keyframes emblemGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(241, 196, 15, 0.3); }
    50% { box-shadow: 0 0 40px rgba(241, 196, 15, 0.6); }
}

h1 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-size: 2.8em;
    margin-bottom: 15px;
    margin-top: 0;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.promotion-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2em;
    color: var(--primary-color);
    margin: 20px auto;
    max-width: 800px;
    line-height: 1.5;
    font-style: italic;
    opacity: 0.9;
}

.underline-decoration {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 20px auto;
}

.invitation-intro {
    margin: 30px 0;
    position: relative;
    text-align: center;
}

.honor-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-style: italic;
    opacity: 0.9;
}

.inviter-name {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    padding: 10px 0;
}

.name {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    color: var(--gold);
    margin: 0 20px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.name-decoration {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold));
    position: relative;
}

.name-decoration.right {
    background: linear-gradient(90deg, var(--gold), transparent);
}

.name-decoration::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.name-decoration.left::before {
    right: 0;
}

.name-decoration.right::before {
    left: 0;
}

.invitation-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1em;
    color: var(--primary-color);
    margin-top: 15px;
    font-style: italic;
    opacity: 0.9;
}

.date-section {
    margin: 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.event-date {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 30px;
    border-radius: 50px;
    border: 1px solid var(--gold);
    box-shadow: 0 0 20px rgba(241, 196, 15, 0.1);
}

.event-date i {
    font-size: 1.4em;
    color: var(--gold);
}

.date {
    font-family: 'Playfair Display', serif;
    font-size: 1.3em;
    color: var(--primary-color);
    font-weight: 600;
}

.date-decoration {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
    position: relative;
}

.date-decoration.right {
    background: linear-gradient(90deg, var(--gold), transparent);
}

.date-decoration::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.date-decoration.left::after {
    right: 0;
}

.date-decoration.right::after {
    left: 0;
}

.content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.ceremony-details, .reception-details {
    position: relative;
    transition: all 0.3s ease;
}

.card-inner {
    padding: 30px;
    border-radius: 15px;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.card-inner:hover::before {
    opacity: 1;
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--gold), #daa520);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: transform 0.3s ease;
}

.icon-circle i {
    font-size: 24px;
    color: white;
}

.card-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-inner:hover .icon-circle {
    transform: scale(1.1) rotate(360deg);
}

h2 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.8em;
    font-family: 'Playfair Display', serif;
    position: relative;
}

.detail-box {
    background: rgba(248, 249, 250, 0.9);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

p {
    margin: 15px 0;
    color: var(--text-color);
    font-size: 1.1em;
    line-height: 1.6;
}

.location, .time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
    padding: 10px;
}

.location::after, .time::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

i {
    color: var(--gold);
    transition: transform 0.3s ease;
}

.location:hover i, .time:hover i {
    transform: scale(1.2);
}

.footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.quote {
    font-style: italic;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.quote p {
    font-size: 1.2em;
    line-height: 1.6;
    position: relative;
    padding: 0 20px;
}

.quote p::before, .quote p::after {
    content: '\201C';
    font-size: 2em;
    color: var(--gold);
    position: absolute;
    left: -10px;
    top: -10px;
}

.quote p::after {
    content: '\201D';
    left: auto;
    right: -10px;
}

.military-decoration {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 20px auto;
    position: relative;
}

.military-decoration::before, .military-decoration::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.military-decoration::before {
    left: 30%;
}

.military-decoration::after {
    right: 30%;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px) rotateX(0deg); }
    50% { transform: translateY(-10px) rotateX(2deg); }
    100% { transform: translateY(0px) rotateX(0deg); }
}

.invitation-card {
    animation: float 6s ease-in-out infinite;
}

/* Hover Effects */
.invitation-card:hover .decorative-border {
    border-color: var(--gold);
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
        margin: 0;
    }
    
    .invitation-card {
        padding: 40px 20px;
        border-radius: 0;
    }

    .military-emblem {
        width: 250px;
        height: 250px;
        margin: 0 auto -60px;
    }

    .promotion-text {
        font-size: 1.1em;
        margin: 15px auto;
    }

    .date-section {
        margin: 20px 0;
        gap: 15px;
    }

    .event-date {
        padding: 12px 20px;
    }

    .date {
        font-size: 1.1em;
    }

    .date-decoration {
        width: 60px;
    }

    .honor-text,
    .invitation-text {
        font-size: 1em;
    }

    .name {
        font-size: 1.5em;
        margin: 0 15px;
    }

    .name-decoration {
        width: 40px;
    }

    .name-decoration::before {
        width: 6px;
        height: 6px;
    }

    .container {
        padding: 15px;
        margin: 20px auto;
    }

    .content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    h1 {
        font-size: 1.8em;
        letter-spacing: 1px;
    }
    
    .invitation-card {
        padding: 25px 15px;
        margin: 10px;
    }
    
    .decorative-border {
        width: 50px;
        height: 50px;
    }
    
    .military-emblem {
        width: 160px;
        height: 160px;
        margin-bottom: 15px;
    }
    
    .icon-circle {
        width: 50px;
        height: 50px;
    }
    
    .quote p {
        font-size: 0.9em;
        padding: 0 15px;
    }

    .detail-box {
        padding: 15px;
    }

    .card-inner {
        padding: 20px 15px;
    }

    .location, .time {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0;
        margin: 0;
    }
    
    .invitation-card {
        padding: 20px 10px;
        border-radius: 0;
    }

    .military-emblem {
        width: 200px;
        height: 200px;
        margin: 0 auto -40px;
    }

    .promotion-text {
        font-size: 1em;
        margin: 10px auto;
    }

    .date-section {
        margin: 15px 0;
        gap: 10px;
    }

    .event-date {
        padding: 10px 15px;
    }

    .date {
        font-size: 1em;
    }

    .event-date i {
        font-size: 1.2em;
    }

    .date-decoration {
        width: 40px;
    }

    .honor-text,
    .invitation-text {
        font-size: 0.9em;
    }

    .name {
        font-size: 1.2em;
        margin: 0 10px;
        letter-spacing: 0.5px;
    }

    .name-decoration {
        width: 30px;
    }

    .name-decoration::before {
        width: 5px;
        height: 5px;
    }

    .inviter-name {
        margin: 15px 0;
    }

    .container {
        padding: 10px;
        margin: 10px auto;
    }

    h1 {
        font-size: 1.5em;
        letter-spacing: 0.5px;
    }

    .content {
        gap: 20px;
    }

    .invitation-card {
        padding: 20px 10px;
    }

    .military-emblem {
        width: 140px;
        height: 140px;
    }

    .quote p {
        font-size: 0.8em;
    }

    .military-decoration::before,
    .military-decoration::after {
        width: 8px;
        height: 8px;
    }

    .underline-decoration {
        width: 80px;
        margin: 15px auto;
    }
}

/* Amélioration du défilement */
.scroll-indicator {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    backdrop-filter: blur(5px);
}

.scroll-indicator::after {
    content: '';
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(45deg) translateY(-4px);
}

.scroll-indicator:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-50%) scale(1.1);
}

/* Animation de défilement fluide */
@media (prefers-reduced-motion: no-preference) {
    .scroll-behavior-smooth {
        scroll-behavior: smooth;
    }
}
