/* ================================================
   STYLE.CSS - Application Association APR2
   Styles centralisés pour toute l'application
   ================================================ */

/* === RESET ET BASE === */

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

       body {
		    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
            
			background: #f5f7fa;
        }

/* === HEADER === */
.header {
	/*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
	background: linear-gradient(135deg, #1a9bd8, #3abf80);
    color: white;
    padding: 20px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header h1 {
    font-size: 24px;
    margin-bottom: 5px;
}

.header p {
    margin: 0;
}

/* === NAVIGATION === */
.nav {
    background: white;
    padding: 15px 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.nav a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background 0.3s;
}

.nav a:hover {
    background: #f0f0f0;
}

/* === CONTAINERS === */
.container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 30px;
}

.container-login {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-width: 500px;
    width: 100%;
    padding: 40px;
}

/* === CARDS === */
.card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.card-link {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.card-number {
    font-size: 48px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 10px;
}

.card-label {
    color: #666;
    font-size: 16px;
    font-weight: 500;
}

/* Couleurs des cartes */
.card-actifs { border-left: 5px solid #28a745; }
.card-inactifs { border-left: 5px solid #dc3545; }
.card-comite { border-left: 5px solid #ffc107; }
.card-inscrits { border-left: 5px solid #17a2b8; }
.card-newsletter { border-left: 5px solid #6f42c1; }
.card-nouveaux { border-left: 5px solid #fd7e14; }

/* === TITRES === */
h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
}

h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 22px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

h3 {
    color: #667eea;
    font-size: 18px;
    margin: 20px 0 10px 0;
}

p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* === FORMULAIRES === */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
}

input[readonly] {
    background: #f0f0f0;
    cursor: not-allowed;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.search-box {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-box input {
    flex: 1;
    max-width: 400px;
}

/* === BOUTONS === */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    margin: 2px;
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	
}

.btn-secondary {
    
	background: linear-gradient(135deg, #1a9bd8, #3abf80);
}

.btn-success {
            background: #28a745;
            color: white;

}

.btn-danger {
    background: #dc3545;
}

.btn-warning {
	background: #dc3545;
}

.btn-info {
	
	/*background: #6c757d;*/
	background: #f5f7fa;
	color: #333;

}

.btn-event {
                background: #f0f0f0;
            color: #333;
}

.btn-small {
    padding: 8px 15px;
    font-size: 13px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* === BADGES === */
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 5px;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* === MESSAGES === */
.error {
    background: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #c33;
}

.success {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #28a745;
}

.warning {
    background: #fff3cd;
    color: #856404;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #ffc107;
}

.info-box {
    background: #e7f3ff;
    border-left: 4px solid #2196F3;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.info-box p {
    margin: 0;
    color: #014361;
}

.warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.warning-box p {
    margin: 0;
    color: #856404;
}

.welcome-message {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    position: relative;
}

/* === TABLEAUX === */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

tr:hover {
    background: #f8f9fa;
}

/* === INFO GRIDS === */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.info-label {
    font-weight: 600;
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.info-value {
    color: #333;
    font-size: 16px;
}

/* === SECTIONS === */
.section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.section-title {
    color: #667eea;
    font-size: 20px;
    margin: 30px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

/* === MODAL === */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.modal-content {
    background: white;
    margin: 50px auto;
    padding: 30px;
    border-radius: 15px;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

/* === CHECKBOX === */
.checkbox-group {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    width: auto;
}

.required-checkbox {
    border-left: 4px solid #dc3545;
}

.optional-checkbox {
    border-left: 4px solid #28a745;
}

/* === STATUS BOXES === */
.status-box {
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.status-postal {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.status-email {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

/* === MANIFESTATIONS === */
.manifestation-box {
    text-align: center;
}

.manifestation {
    border: 2px solid #e0e0e0;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
}

.manifestation.active {
    border-color: #28a745;
    background: #f0fff4;
}

.manifestation h3 {
    color: #667eea;
    margin-bottom: 10px;
}

/* === CONCOURS === */
.winner-box {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.winner-box h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 15px;
    border: none;
}

.winner-box .winner-name {
    font-size: 36px;
    font-weight: bold;
    color: #8b4513;
    margin: 20px 0;
}

.winner-box .trophy {
    font-size: 80px;
    margin-bottom: 20px;
}

/* === HISTORIQUE === */
.version {
    border-left: 4px solid #667eea;
    padding: 20px;
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 5px;
}

.version-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 600;
    flex-wrap: wrap;
    gap: 10px;
}

.version-date {
    color: #667eea;
}

.version-author {
    color: #666;
    font-size: 14px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 8px 5px;
    }
    
    .btn {
        width: 100%;
        margin: 5px 0;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .nav-content {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .container-login {
        padding: 25px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .modal-content {
        margin: 20px;
        padding: 20px;
    }
}

/* === UTILITAIRES === */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.hidden {
    display: none;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.subtitle {
    color: #666;
    margin-bottom: 30px;
    text-align: center;
}

.links {
    text-align: center;
    margin-top: 20px;
}

.links a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    margin: 0 10px;
}

.links a:hover {
    text-decoration: underline;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  display: block;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  text-decoration: none;
  color: #222;
  background: #fff;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.card:hover {
  border-color: #999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px 0;
  color: #222;
}

.card-desc {
  font-size: 14px;
  color: #666;
  margin: 0;
}





