/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 0;
    margin: 0;
    color: #333;
}

/* En-tête de l'université */
.university-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.university-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.header-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.logo-container {
    flex-shrink: 0;
}

.university-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.university-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.university-title {
    flex: 1;
    min-width: 300px;
}

.university-title h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    line-height: 1.2;
}

.university-subtitle {
    font-size: 1.2rem;
    margin: 0;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Section de présentation de l'université */
.university-presentation {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.university-presentation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(30,60,114,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.3;
}

.presentation-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.presentation-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.presentation-text h2 {
    color: #1e3c72;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.presentation-text h2 i {
    color: #ffd700;
    margin-right: 15px;
}

.intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #1e3c72;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.value-item h3 {
    color: #1e3c72;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.value-item p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

.presentation-stats {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.presentation-stats h3 {
    color: #1e3c72;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
}

.presentation-stats h3 i {
    color: #ffd700;
    margin-right: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: #1e3c72;
    transform: scale(1.05);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.programs-preview {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.programs-preview h3 {
    color: #1e3c72;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
}

.programs-preview h3 i {
    color: #ffd700;
    margin-right: 10px;
}

/* Styles pour les cycles */
.cycles-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 2px solid #e9ecef;
}

.cycle-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #1e3c72;
}

.cycle-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-left-color: #ffd700;
}

.cycle-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cycle-details h4 {
    color: #1e3c72;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.cycle-details p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

/* Styles pour les modes de formation */
.learning-modes {
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 2px solid #e9ecef;
}

.learning-modes h4 {
    color: #1e3c72;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.learning-modes h4 i {
    color: #ffd700;
    margin-right: 10px;
}

.modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.mode-item {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid #1e3c72;
}

.mode-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-top-color: #ffd700;
}

.mode-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin: 0 auto 20px;
}

.mode-details h5 {
    color: #1e3c72;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
}

.mode-details p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: center;
}

.mode-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mode-features li {
    color: #555;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 25px;
    font-size: 0.9rem;
}

.mode-features li:last-child {
    border-bottom: none;
}

.mode-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 1rem;
}

.programs-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.program-category {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid #1e3c72;
    transition: transform 0.3s ease;
}

.program-category:hover {
    transform: translateX(5px);
}

.program-category h4 {
    color: #1e3c72;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.program-category h4 i {
    color: #ffd700;
    margin-right: 8px;
}

.program-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.program-category li {
    color: #555;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    padding-left: 20px;
}

.program-category li:last-child {
    border-bottom: none;
}

.program-category li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* Styles pour les détails des programmes */
.program-details {
    margin-top: 15px;
}

.program-details h5 {
    color: #1e3c72;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: rgba(30, 60, 114, 0.1);
    border-radius: 8px;
    border-left: 3px solid #1e3c72;
}

.program-details h5 i {
    color: #ffd700;
    margin-right: 8px;
}

.mentions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mention-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 40px;
}

.mention-item:hover {
    border-color: #1e3c72;
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.1);
    transform: translateX(3px);
}

.mention-item::before {
    content: '▶';
    position: absolute;
    left: 15px;
    top: 15px;
    color: #1e3c72;
    font-size: 0.8rem;
}

.mention-item strong {
    display: block;
    color: #1e3c72;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.mention-item span {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Container principal avec padding */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.form-wrapper {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 300;
}

.header h1 i {
    margin-right: 15px;
    color: #ffd700;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.inscription-form {
    padding: 40px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 1rem;
}

.form-group label i {
    margin-right: 8px;
    color: #667eea;
    width: 16px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.checkbox-group {
    margin-top: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: normal;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    margin-right: 12px;
    margin-top: 2px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #667eea;
    border-color: #667eea;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

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

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 180px;
    justify-content: center;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-success {
    background: #25d366;
    color: white;
}

.btn-success:hover {
    background: #1da851;
    transform: translateY(-2px);
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideDown 0.3s ease;
}

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

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 300;
}

.modal-header h2 i {
    margin-right: 10px;
    color: #ffd700;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ffd700;
}

.modal-body {
    padding: 30px;
    max-height: 400px;
    overflow-y: auto;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e1e5e9;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

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

.preview-item strong {
    color: #667eea;
    display: block;
    margin-bottom: 5px;
}

.preview-item span {
    color: #555;
}

/* Responsive design */
@media (max-width: 768px) {
    .university-header {
        padding: 20px 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .university-title h1 {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
    
    .university-subtitle {
        font-size: 1rem;
    }
    
    .university-logo {
        width: 100px;
        height: 100px;
    }
    
    /* Section de présentation responsive */
    .university-presentation {
        padding: 40px 15px;
    }
    
    .presentation-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }
    
    .presentation-text h2 {
        font-size: 2rem;
    }
    
    .intro-text {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .value-item {
        padding: 25px;
    }
    
    .value-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .value-item h3 {
        font-size: 1.3rem;
    }
    
    .presentation-stats {
        padding: 30px;
    }
    
    .presentation-stats h3 {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .programs-preview {
        padding: 30px;
    }
    
    .programs-preview h3 {
        font-size: 1.5rem;
    }
    
    .cycles-info {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
        margin-bottom: 25px;
    }
    
    .cycle-item {
        padding: 15px;
        gap: 12px;
    }
    
    .cycle-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .cycle-details h4 {
        font-size: 1.2rem;
    }
    
    .cycle-details p {
        font-size: 0.9rem;
    }
    
    .learning-modes {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .learning-modes h4 {
        font-size: 1.2rem;
    }
    
    .modes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mode-item {
        padding: 20px;
    }
    
    .mode-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .mode-details h5 {
        font-size: 1.2rem;
    }
    
    .mode-details p {
        font-size: 0.95rem;
    }
    
    .programs-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .program-category {
        padding: 20px;
    }
    
    .program-details h5 {
        font-size: 1rem;
        padding: 8px 12px;
    }
    
    .mention-item {
        padding: 12px;
        padding-left: 35px;
    }
    
    .mention-item strong {
        font-size: 0.95rem;
    }
    
    .mention-item span {
        font-size: 0.85rem;
    }
    
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 30px 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .inscription-form {
        padding: 30px 20px;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .university-title h1 {
        font-size: 1.8rem;
        letter-spacing: 0.5px;
    }
    
    .university-subtitle {
        font-size: 0.9rem;
    }
    
    .university-logo {
        width: 80px;
        height: 80px;
    }
    
    .visitor-counter {
        font-size: 0.8rem;
        padding: 6px 12px;
        margin-top: 10px;
    }
    
    /* Section de présentation pour petits écrans */
    .university-presentation {
        padding: 30px 10px;
    }
    
    .presentation-text h2 {
        font-size: 1.8rem;
    }
    
    .intro-text {
        font-size: 1rem;
    }
    
    .value-item {
        padding: 20px;
    }
    
    .value-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .value-item h3 {
        font-size: 1.2rem;
    }
    
    .presentation-stats {
        padding: 25px;
    }
    
    .presentation-stats h3 {
        font-size: 1.3rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .programs-preview {
        padding: 25px;
    }
    
    .programs-preview h3 {
        font-size: 1.3rem;
    }
    
    .program-category {
        padding: 15px;
    }
    
    .programs-preview h3 {
        font-size: 1.3rem;
    }
    
    .cycles-info {
        padding: 12px;
        margin-bottom: 20px;
    }
    
    .cycle-item {
        padding: 12px;
        gap: 10px;
    }
    
    .cycle-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .cycle-details h4 {
        font-size: 1.1rem;
    }
    
    .cycle-details p {
        font-size: 0.85rem;
    }
    
    .learning-modes {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .learning-modes h4 {
        font-size: 1.1rem;
    }
    
    .mode-item {
        padding: 15px;
    }
    
    .mode-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .mode-details h5 {
        font-size: 1.1rem;
    }
    
    .mode-details p {
        font-size: 0.9rem;
    }
    
    .mode-features li {
        font-size: 0.85rem;
        padding: 6px 0;
    }
    
    .program-category h4 {
        font-size: 1.1rem;
    }
    
    .program-details h5 {
        font-size: 0.95rem;
        padding: 6px 10px;
    }
    
    .mention-item {
        padding: 10px;
        padding-left: 30px;
    }
    
    .mention-item strong {
        font-size: 0.9rem;
    }
    
    .mention-item span {
        font-size: 0.8rem;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Animation pour les champs requis */
.form-group input:required:invalid {
    border-color: #dc3545;
}

.form-group input:required:valid {
    border-color: #28a745;
}

/* Loading state */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
.page-footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 30px 20px;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.page-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footerGrain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23footerGrain)"/></svg>');
    opacity: 0.3;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-info p {
    margin: 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-info i {
    color: #ffd700;
    width: 16px;
    text-align: center;
}

.footer-info strong {
    color: #ffd700;
    font-weight: 600;
}

.footer-university p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
    text-align: right;
}

/* Responsive footer */
@media (max-width: 768px) {
    .page-footer {
        padding: 25px 15px;
        margin-top: 30px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-info p {
        font-size: 0.95rem;
        justify-content: center;
    }
    
    .footer-university p {
        font-size: 0.85rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .page-footer {
        padding: 20px 10px;
    }
    
    .footer-info p {
        font-size: 0.9rem;
        flex-direction: column;
        gap: 5px;
    }
    
    .footer-university p {
        font-size: 0.8rem;
    }
}

/* Bouton flottant */
.floating-button {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 20px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    min-width: 200px;
    justify-content: center;
}

.floating-button:hover {
    transform: translateY(-50%) translateY(-3px);
    box-shadow: 0 12px 35px rgba(30, 60, 114, 0.4);
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
}

.floating-button i {
    font-size: 1.2rem;
    color: #ffd700;
}

.floating-text {
    white-space: nowrap;
}

/* Popup flottant */
.floating-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    animation: slideDown 0.3s ease;
}

.popup-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.popup-header h3 i {
    color: #ffd700;
    margin-right: 10px;
}

.popup-close {
    font-size: 24px;
    cursor: pointer;
    color: white;
    transition: color 0.3s ease;
}

.popup-close:hover {
    color: #ffd700;
}

.popup-body {
    padding: 25px;
    text-align: center;
}

.popup-body p {
    margin: 0 0 15px 0;
    color: #555;
    line-height: 1.5;
}

.popup-body p:last-child {
    margin-bottom: 0;
}

.popup-footer {
    padding: 20px 25px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.popup-footer .btn {
    min-width: 120px;
}

/* Responsive pour le bouton flottant */
@media (max-width: 768px) {
    .floating-button {
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
        padding: 12px 16px;
        font-size: 0.9rem;
        min-width: 160px;
    }
    
    .floating-text {
        display: none;
    }
    
    .floating-button i {
        font-size: 1.5rem;
    }
    
    .popup-content {
        max-width: 350px;
        margin: 20px;
    }
    
    .popup-header {
        padding: 15px;
    }
    
    .popup-header h3 {
        font-size: 1.2rem;
    }
    
    .popup-body {
        padding: 20px;
    }
    
    .popup-footer {
        padding: 15px 20px;
        flex-direction: column;
    }
    
    .popup-footer .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .floating-button {
        top: 50%;
        right: 15px;
        transform: translateY(-50%);
        padding: 10px 12px;
        min-width: 60px;
        width: 60px;
        height: 60px;
        border-radius: 50%;
    }
    
    .popup-content {
        max-width: 320px;
        margin: 15px;
    }
    
    .popup-header {
        padding: 12px;
    }
    
    .popup-header h3 {
        font-size: 1.1rem;
    }
    
    .popup-body {
        padding: 15px;
    }
    
    .popup-body p {
        font-size: 0.9rem;
    }
    
    .popup-footer {
        padding: 12px 15px;
    }
}

/* Styles pour le compteur de visiteurs */
.visitor-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 15px;
    font-size: 0.9rem;
    color: #ffd700;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

.visitor-counter i {
    color: #ffd700;
    font-size: 1rem;
}

.visitor-counter span {
    font-weight: 700;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}
