/* ===== CONTENEUR CENTRÉ ===== */
.ange-widget-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    margin: 0 auto;
}

/* ===== WIDGET COMPACT 310×400px ===== */
.ange-gardien-widget {
    width: 310px;
    height: 400px;
    background: #f5efe8;
    border: 3px solid #9a624a;
    border-radius: 15px;
    padding: 20px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Georgia', serif;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ange-gardien-widget:hover {
    box-shadow: 0 0 20px rgba(154, 98, 74, 0.4),
                0 0 40px rgba(154, 98, 74, 0.2),
                0 4px 6px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Header */
.ange-header {
    text-align: center;
    margin-bottom: 5px;
}

.ange-header h3 {
    color: #6e4636;
    font-size: 20px;
    margin: 0 0 3px 0;
    font-weight: bold;
}

.ange-subtitle {
    font-size: 10px;
    color: #6e4636;
    margin: 0;
    font-style: italic;
    opacity: 0.7;
}

/* Animation ailes d'ange */
.ange-sphere {
    position: relative;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}

.wings-animation {
    width: 120px;
    height: 120px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wings-svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.wing {
    fill: rgba(154, 98, 74, 0.3);
    stroke: rgba(154, 98, 74, 0.5);
    stroke-width: 1;
    animation: wingFlap 3s ease-in-out infinite;
}

.wing-left {
    transform-origin: 40px 60px;
    animation-delay: 0s;
}

.wing-right {
    transform-origin: 80px 60px;
    animation-delay: 0.1s;
}

@keyframes wingFlap {
    0%, 100% { 
        transform: scaleX(1) translateY(0);
        opacity: 0.5;
    }
    50% { 
        transform: scaleX(1.2) translateY(-3px);
        opacity: 0.8;
    }
}

.halo {
    fill: none;
    stroke: rgba(154, 98, 74, 0.4);
    stroke-width: 2;
    animation: haloGlow 2s ease-in-out infinite;
}

@keyframes haloGlow {
    0%, 100% { 
        stroke-opacity: 0.4;
        r: 15;
    }
    50% { 
        stroke-opacity: 0.8;
        r: 18;
    }
}

.angel-icon {
    font-size: 40px;
    position: relative;
    z-index: 2;
    animation: angelFloat 3s ease-in-out infinite;
}

@keyframes angelFloat {
    0%, 100% { 
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 10px rgba(154, 98, 74, 0.3));
    }
    50% { 
        transform: translateY(-5px) scale(1.05);
        filter: drop-shadow(0 0 20px rgba(154, 98, 74, 0.5));
    }
}

/* Formulaire */
.ange-form {
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    color: #6e4636;
    font-size: 12px;
    margin-bottom: 5px;
    font-family: 'Arial', sans-serif;
    font-weight: 600;
}

.date-row {
    display: flex;
    gap: 6px;
}

.ange-select {
    flex: 1;
    padding: 8px;
    border: 2px solid rgba(154, 98, 74, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 12px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    color: #6e4636;
    font-family: 'Arial', sans-serif;
}

.ange-select:focus {
    outline: none;
    border-color: #9a624a;
    box-shadow: 0 0 8px rgba(154, 98, 74, 0.3);
}

.ange-button {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #9a624a 0%, #b8856a 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(154, 98, 74, 0.3);
    font-family: 'Arial', sans-serif;
    text-align: center;
    margin: 10px 0;
}

.ange-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(154, 98, 74, 0.5);
    background: linear-gradient(135deg, #b8856a 0%, #9a624a 100%);
}

.ange-info {
    text-align: center;
    font-size: 9px;
    color: #6e4636;
    margin: 5px 0 0 0;
    font-style: italic;
    opacity: 0.7;
}

/* ===== PAGE DE RÉSULTAT ===== */
.ange-resultat-complet {
    max-width: 900px;
    margin: 30px auto;
    padding: 40px;
    background: #FFFFFF;
    border: 3px solid #9a624a;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(154, 98, 74, 0.2);
}

.ange-header-result {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 3px solid #9a624a;
    background: linear-gradient(135deg, #f5efe8 0%, #faf6f0 100%);
    margin: -40px -40px 40px -40px;
    padding: 40px 40px 30px 40px;
    border-radius: 17px 17px 0 0;
}

.ange-symbole-grand {
    font-size: 90px;
    margin-bottom: 20px;
    animation: fadeInScale 0.8s ease;
    filter: drop-shadow(0 0 20px rgba(154, 98, 74, 0.3));
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.ange-nom-principal {
    font-size: 48px;
    color: #6e4636;
    margin: 15px 0 10px;
    font-family: 'Georgia', serif;
    font-weight: bold;
}

.ange-numero {
    font-size: 18px;
    color: #9a624a;
    margin-bottom: 15px;
    font-weight: 600;
}

.ange-periode-badge {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #9a624a, #b8856a);
    color: white;
    border-radius: 30px;
    font-weight: bold;
    font-size: 16px;
}

.ange-image-container {
    text-align: center;
    margin: 30px 0;
}

.ange-image {
    max-width: 300px;
    height: auto;
    border-radius: 15px;
    border: 3px solid #9a624a;
    box-shadow: 0 10px 30px rgba(154, 98, 74, 0.3);
}

.ange-placeholder {
    font-size: 150px;
    color: #9a624a;
    opacity: 0.3;
}

.ange-section-special {
    margin-bottom: 30px;
    padding: 35px;
    text-align: center;
    border-radius: 15px;
    color: white;
}

.don-section {
    background: linear-gradient(135deg, #9a624a, #b8856a);
    box-shadow: 0 4px 15px rgba(154, 98, 74, 0.3);
}

.don-section h2, .don-section p {
    color: #FFFFFF;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.don-section h2 {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: bold;
}

.don-section p {
    font-size: 18px;
    line-height: 1.8;
    font-style: italic;
    font-weight: 500;
}

.ange-section-content {
    margin-bottom: 25px;
    padding: 25px;
    background: #FAFAFA;
    border-left: 5px solid #9a624a;
    border-radius: 10px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ange-section-content:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: #FFFFFF;
}

.ange-section-content h2 {
    color: #6e4636;
    font-size: 24px;
    margin: 0 0 15px 0;
    font-family: 'Georgia', serif;
    font-weight: bold;
}

.ange-section-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #2F2F2F;
    margin: 0;
}

.ange-actions-bottom {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn-action {
    padding: 15px 30px;
    background: linear-gradient(135deg, #9a624a, #b8856a);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(154, 98, 74, 0.4);
    background: linear-gradient(135deg, #b8856a, #9a624a);
    color: white;
}

/* Formulaire page */
.ange-form-page {
    max-width: 500px;
    margin: 50px auto;
    padding: 40px;
    background: linear-gradient(135deg, #f5efe8, #faf6f0);
    border: 3px solid #9a624a;
    border-radius: 20px;
    text-align: center;
}

.ange-form-page h2 {
    color: #6e4636;
    margin-bottom: 15px;
    font-size: 32px;
}

.ange-form-page p {
    color: #9a624a;
    margin-bottom: 25px;
    font-size: 16px;
}

.form-row-page {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-row-page select {
    flex: 1;
    padding: 12px;
    border: 2px solid #9a624a;
    border-radius: 10px;
    font-size: 16px;
    color: #6e4636;
}

.btn-calculer {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #9a624a, #b8856a);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-calculer:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(154, 98, 74, 0.5);
}

.ange-erreur {
    text-align: center;
    padding: 40px;
    background: #FFEBEE;
    border: 3px solid #EF5350;
    border-radius: 15px;
    color: #C62828;
    font-size: 20px;
    max-width: 600px;
    margin: 40px auto;
}

/* Responsive */
@media (max-width: 768px) {
    .ange-gardien-widget {
        width: 100%;
        max-width: 310px;
        height: auto;
        min-height: 400px;
    }
    
    .ange-resultat-complet {
        padding: 25px;
        margin: 15px;
    }
    
    .ange-symbole-grand {
        font-size: 70px;
    }
    
    .ange-nom-principal {
        font-size: 36px;
    }
    
    .ange-image {
        max-width: 250px;
    }
    
    .ange-actions-bottom {
        flex-direction: column;
    }
    
    .btn-action {
        width: 100%;
    }
}

@media (max-width: 340px) {
    .ange-gardien-widget {
        max-width: 100%;
        padding: 15px;
    }
    
    .ange-header h3 {
        font-size: 18px;
    }
    
    .wings-animation {
        width: 100px;
        height: 100px;
    }
    
    .angel-icon {
        font-size: 32px;
    }
}

@media print {
    .ange-actions-bottom {
        display: none;
    }
}
