/* Style principal pour l'application de gestion des invitations de mariage */

/* Variables */
:root {
    --primary-color: #0d1b2a; /* Bleu nuit */
    --secondary-color: #1b263b; /* Bleu nuit moyen */
    --accent-color: #415a77; /* Bleu moyen */
    --highlight-color: #778da9; /* Bleu clair */
    --light-blue: #e0e1dd; /* Bleu très clair */
    --dark-color: #121212; /* Noir */
    --medium-gray: #6c757d; /* Gris moyen */
    --light-gray: #e9ecef; /* Gris clair */
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Roboto', sans-serif;
}

/* Styles généraux */
body {
    font-family: var(--font-secondary);
    color: var(--dark-color);
    background-color: #f9f9f9;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--accent-color);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Header */
header {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--primary-color) !important;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark-color);
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

/* Hero section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards */
.card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    font-family: var(--font-primary);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Features */
.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Dashboard */
.dashboard-card {
    border-left: 4px solid var(--primary-color);
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dashboard-card h3 {
    margin-top: 0;
    color: var(--dark-color);
}

.dashboard-card .count {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.dashboard-card.confirmed {
    border-left-color: var(--success-color);
}

.dashboard-card.pending {
    border-left-color: var(--warning-color);
}

.dashboard-card.declined {
    border-left-color: var(--danger-color);
}

/* Guest List */
.guest-table th {
    background-color: var(--light-color);
}

.guest-table .actions {
    white-space: nowrap;
}

/* RSVP Form */
.rsvp-form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.rsvp-form label {
    font-weight: 500;
}

/* Guest Book */
.guestbook-entry {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.guestbook-entry .author {
    font-weight: 700;
    color: var(--accent-color);
}

.guestbook-entry .date {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Gift Registry */
.gift-item {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.gift-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-right: 20px;
    border-radius: 5px;
}

.gift-item .gift-info {
    flex: 1;
}

.gift-item .gift-name {
    font-weight: 700;
    margin-bottom: 5px;
}

.gift-item .gift-price {
    color: var(--primary-color);
    font-weight: 700;
}

.gift-item .gift-status {
    margin-left: 20px;
}

/* Login/Register Forms */
.auth-form {
    max-width: 500px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.auth-form .form-title {
    text-align: center;
    margin-bottom: 30px;
}

/* Footer */
footer {
    background-color: var(--light-color);
    color: var(--dark-color);
}

footer h5 {
    font-weight: 700;
    margin-bottom: 20px;
}

footer a {
    color: var(--dark-color);
}

footer a:hover {
    color: var(--primary-color);
}

footer .social-links a {
    display: inline-block;
    width: 36px;
    height: 36px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 36px;
}

footer .social-links a:hover {
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .gift-item {
        flex-direction: column;
        text-align: center;
    }
    
    .gift-item img {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .gift-item .gift-status {
        margin-left: 0;
        margin-top: 15px;
    }
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

/* QR Code */
.qr-code-container {
    text-align: center;
    margin: 20px 0;
}

.qr-code-container img {
    max-width: 200px;
    border: 1px solid #ddd;
    padding: 10px;
    background-color: white;
}

/* Seating Plan */
.seating-plan {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.table-item {
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px;
    position: relative;
    background-color: #f8f9fa;
}

.table-item .table-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.table-item .table-guests {
    position: absolute;
    bottom: -10px;
    background-color: var(--primary-color);
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Invitation Preview */
.invitation-preview {
    background-color: #f9f2f4;
    border: 1px solid #e8d8df;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 30px;
    font-family: var(--font-primary);
    position: relative;
}

.invitation-preview::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid #d291bc;
    border-radius: 5px;
    pointer-events: none;
}

.invitation-preview h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.invitation-preview .couple-names {
    font-size: 3rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.invitation-preview .invitation-details {
    margin-bottom: 30px;
    font-size: 1.2rem;
}

.invitation-preview .invitation-message {
    font-style: italic;
    margin-bottom: 30px;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
}

.timeline-item::after {
    content: '';
    display: table;
    clear: both;
}

.timeline-item .timeline-content {
    width: 45%;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    float: left;
}

.timeline-item:nth-child(even) .timeline-content {
    float: right;
}

.timeline-item .timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -60px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -60px;
}

.timeline-item .timeline-date {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item .timeline-content {
        width: calc(100% - 80px);
        float: right;
    }
    
    .timeline-item .timeline-content::before {
        left: -50px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::before {
        right: auto;
        left: -50px;
    }
}
