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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
    color: #2d3748;
    background: #f8fafc;
    min-height: 100vh;
}

/* Layout principal avec sidebar */
.main-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar à gauche */
.sidebar {
    width: 320px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem 1.5rem;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

/* Logo */
.logo {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-image {
    max-width: 100%;
    height: auto;
    max-height: 80px;
    transition: all 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

/* Sélecteur de langue */
.language-selector {
    margin-bottom: 2rem;
}

.language-selector h3 {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lang-section {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.lang-section svg {
    width: 20px;
    height: 20px;
    fill: white;
    flex-shrink: 0;
}

.lang-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    flex: 1;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Sélecteur d'espace de mobilisation */
.mobilization-selector {
    margin-bottom: 2rem;
}

.mobilization-selector h3 {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.country-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.country-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.country-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(3px);
}

.country-btn.active {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    border-color: rgba(255, 255, 255, 0.9);
}

/* Zone de sélection */
.selection-zone {
    margin-bottom: 2rem;
}

.selection-zone h3 {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

select {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    color: #4a5568;
    background-color: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1em;
    transition: all 0.3s ease;
}

select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* Contenu principal */
.main-content {
    flex: 1;
    margin-left: 320px;
    padding: 2rem 3rem;
    background: #ffffff;
}

/* Section d'introduction */
.intro-section {
    flex: 1;
    padding: 1.5rem 2rem; /* Réduit le padding vertical */
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 900px; /* Même largeur que les résultats */
    margin: 0 auto;
}

.intro-section h1 {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 2.2rem;
    color: #6D4994; /* Nouvelle couleur violette */
    margin-bottom: 1.2rem; /* Réduit de 1.5rem à 1.2rem */
    line-height: 1.3;
    text-align: left;
}

.intro-section p {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 1.2rem;
    text-align: justify;
}

/* Mise en page en deux colonnes pour le texte */
.intro-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.intro-text p:first-child {
    margin-bottom: 0;
}

.intro-text p:last-child {
    margin-bottom: 0;
}

/* Zone des résultats */
.results-section {
    max-width: 900px;
    margin: 0 auto;
}

.results-section h2 {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

/* Zone des résultats */
#representants-list {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

/* Style pour quand il n'y a pas de résultats */
#representants-list:empty {
    display: none;
}

/* Cartes des représentants */
.representant-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.representant-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.representant-card h3 {
    color: #2d3748;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.groupe-politique {
    color: #667eea;
    font-size: 0.8rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 0.4rem 0.8rem;
    background: #f0f4ff;
    border-radius: 6px;
    display: inline-block;
}

/* Sections de représentants */
.section {
    margin-bottom: 2rem;
}

.section h2 {
    color: #2d3748;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #667eea;
    border-radius: 1px;
}

/* Message d'absence de résultats */
.no-results {
    text-align: center;
    padding: 3rem 2rem;
    background: #f7fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.no-results p {
    color: #718096;
    font-size: 0.9rem;
    font-style: italic;
}

.email-content textarea {
    width: 100%;
    min-height: 150px;
    padding: 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.75rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    resize: vertical;
    transition: all 0.3s ease;
}

.email-content textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.warning {
    color: #718096;
    font-size: 0.7rem;
    margin: 0.6rem 0;
    font-style: italic;
    padding: 0.6rem;
    background: #f7fafc;
    border-radius: 6px;
    border-left: 3px solid #fbbf24;
}

.email-display {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.8rem;
    background: #f7fafc;
    border-radius: 10px;
    margin-top: 0.8rem;
    border: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.email-display span {
    font-family: 'Monaco', 'Menlo', monospace;
    color: #667eea;
    font-size: 0.75rem;
    flex: 1;
    min-width: 200px;
    word-break: break-all;
}

.email-display button {
    flex-shrink: 0;
    white-space: nowrap;
    min-width: auto;
}

button {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

button:hover {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

button:active {
    transform: translateY(0);
}

/* Notifications */
.notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.notification.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.notification-icon {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon::before {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 14px;
    line-height: 1;
}

.notification.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.notification.info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.notification.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.notification.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        width: 280px;
    }
    
    .main-content {
        margin-left: 280px;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    /* Layout vertical sur mobile */
    .main-layout {
        flex-direction: column;
    }
    
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        transform: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        margin-bottom: 0;
        padding: 1.5rem 1rem;
    }
    
    .main-content {
        margin-left: 0;
        padding: 1.5rem;
    }
    
    .intro-section h1 {
        font-size: 1.8rem;
    }
    
    .intro p {
        font-size: 0.9rem;
    }
    
    #representants-list {
        padding: 1.5rem;
    }
    
    /* Ajustements pour la sidebar mobile */
    .logo {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .logo-image {
        max-height: 60px;
    }
    
    .language-selector,
    .mobilization-selector,
    .selection-zone {
        margin-bottom: 1.5rem;
    }
    
    .lang-buttons,
    .country-buttons {
        gap: 0.4rem;
    }
    
    .lang-btn {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
        min-height: 36px;
    }
    
    .country-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .sidebar {
        padding: 1rem 0.75rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .logo h2 {
        font-size: 1.2rem;
    }
    
    .logo p {
        font-size: 0.75rem;
    }
    
    .logo-image {
        max-height: 50px;
    }
    
    .intro-section h1 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .intro p {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }
    
    .results-section h2 {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    #representants-list {
        padding: 1rem;
    }
    
    .representant-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .email-content textarea {
        min-height: 120px;
        font-size: 0.7rem;
    }
    
    /* Ajustements pour les emails sur très petits écrans */
    .email-display {
        padding: 0.6rem;
        gap: 0.4rem;
    }
    
    .email-display span {
        font-size: 0.65rem;
    }
    
    .email-display button {
        padding: 0.4rem 0.6rem;
        font-size: 0.65rem;
    }
    
    /* Ajustements pour les boutons sur très petits écrans */
    button {
        padding: 0.4rem 0.6rem;
        font-size: 0.65rem;
    }
    
    /* Ajustements pour les tabs sur très petits écrans */
    .lang-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.7rem;
        min-height: 32px;
    }
    
    .lang-buttons {
        padding: 0.2rem;
    }
} 

/* Styles pour les indicateurs de statut des données */
.data-status {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
}

.data-status.success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.data-status.warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    border: 1px solid #ffeaa7;
}

.data-status.info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.retry-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
} 

/* Zone de sélection dynamique */
.dynamic-selection {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideDown 0.3s ease-out;
    position: relative;
    z-index: 10;
}

/* Ajuster l'espacement quand la sélection est active */
.mobilization-selector.has-selection {
    margin-bottom: 3rem;
}

.dynamic-selection h3 {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dynamic-selection select {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    color: #4a5568;
    background-color: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1em;
    transition: all 0.3s ease;
}

.dynamic-selection select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 

/* Responsive design */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        min-height: auto;
        border-radius: 0;
        margin-bottom: 1rem;
    }
    
    .intro-section {
        padding: 1.5rem;
        margin: 0;
    }
    
    .intro-section h1 {
        font-size: 1.8rem;
        text-align: center;
    }
    
    /* Passage en une seule colonne sur mobile */
    .intro-text {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .intro-section p {
        text-align: left;
        font-size: 0.95rem;
    }
    
    .results-section {
        margin-top: 2rem;
        padding: 1rem;
    }
    
    .representant-card {
        margin-bottom: 1rem;
    }
    
    .email-content textarea {
        font-size: 0.9rem;
    }
    
    /* Ajustements spécifiques pour les emails sur mobile */
    .email-display {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .email-display span {
        min-width: auto;
        font-size: 0.7rem;
        line-height: 1.3;
    }
    
    .email-display button {
        width: 100%;
        text-align: center;
        padding: 0.5rem;
        font-size: 0.7rem;
    }
    
    /* Ajuster la taille des boutons sur mobile */
    button {
        font-size: 0.7rem;
        padding: 0.5rem 0.8rem;
    }
} 