
/* Layout flexible et propre */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

#main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    min-height: calc(100vh - 60px);
}

#main-content .container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 15px;
}

.well {
    width: 100%;
    margin: 0;
}

.footer {
    flex-shrink: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.03);
}

/* Mobile : enlève flex et ajoute padding-top */
@media (max-width: 768px) {
    #main-content {
        display: block; /* ← Plus de flex */
        min-height: auto; /* ← Enlève min-height */
        padding: 20px 10px 100px 10px; /* ← Padding-top pour les boutons */
    }
    
    #main-content .container {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .footer {
        height: 30px;
    }
    
}

label.required:after{content:" *";color: red;}


/* ========================================
   Bouton sélection page (BAS DROITE)
   ======================================== */

/* Re-impression photo */
.floating-menu {
    position: fixed;
    bottom: 70px; /* 60px footer + 10px marge */
    right: 20px;
    z-index: 999;
}

.floating-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    padding: 12px 18px;
    border-radius: 25px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
}

.floating-menu-item:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.5);
}

.floating-icon {
    font-size: 20px;
}

@media (max-width: 768px) {
    .floating-menu {
        bottom: 40px;
    }
    
    /*.floating-menu-item {
        padding: 10px 14px;
        font-size: 13px;
    }*/
}


/* ========================================
   SÉLECTEUR DE LANGUE (BAS GAUCHE)
   ======================================== */

.language-selector {
    position: fixed;
    bottom: 70px;
    left: 20px;
    z-index: 999;
}

/* Bouton principal */
.language-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 18px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    user-select: none;
}

.language-toggle:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

.language-toggle:active {
    transform: translateY(-1px);
}

.current-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.current-flag.flag-fra {
    background-image: url(flags/fra.svg);
}

.current-flag.flag-usa {
    background-image: url(flags/usa.svg);
}

.language-text {
    font-size: 14px;
    font-weight: 600;
}

.language-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.language-selector.open .language-arrow {
    transform: rotate(180deg);
}

/* Menu déroulant */
.language-dropdown {
    position: absolute;
    bottom: 65px;
    left: 0;
    min-width: 180px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.language-selector.open .language-dropdown {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Options de langue */
.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
}

.language-option.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
}

.language-option.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.language-option-flag {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid #e0e7ff;
    flex-shrink: 0;
}

.language-option-flag.flag-fra {
    background-image: url(flags/fra.svg);
}

.language-option-flag.flag-usa {
    background-image: url(flags/usa.svg);
}

.language-option-text {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    flex: 1;
}

.language-option.active .language-option-text {
    color: #667eea;
    font-weight: 600;
}

.language-option-check {
    font-size: 18px;
    color: #667eea;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.language-option.active .language-option-check {
    opacity: 1;
}

/* Responsive mobile */
@media (max-width: 768px) {
    
    .language-selector {
        bottom: 40px;
    }

    .language-text {
        font-size: 13px;
    }
    
    .language-dropdown {
        min-width: 160px;
    }
    
    .language-option {
        padding: 12px 14px;
    }
    
    .language-option-flag {
        width: 32px;
        height: 32px;
    }
}

/* Animation d'entrée */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
