/* Reset et base */
* {
margin: 0;
padding: 0;
box-sizing: border-box;

}

body {
font-family: 'Inter', sans-serif;
line-height: 1.6;
color: #ffffff;
background-color: linear-gradient(135deg, #d3e5f8 0%, #c5e3f8 100%);
overflow-x: hidden;
}

.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}

/* Éléments décoratifs flottants */
.floating-elements {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 1;
}

.bubble, .square, .triangle {
position: absolute;
opacity: 0.8;

}

.bubble {
border-radius: 50%;
background: linear-gradient(135deg, #2E7D32, #4CAF50);
}

.bubble-1 {
width: 120px;
height: 120px;
top: 15%;
left: 8%;
animation: float 6s ease-in-out infinite;
}

.bubble-2 {
width: 80px;
height: 80px;
top: 60%;
right: 10%;
animation: float 8s ease-in-out infinite reverse;
}

.bubble-3 {
width: 60px;
height: 60px;
bottom: 20%;
left: 15%;
animation: float 7s ease-in-out infinite;
animation-delay: 2s;
}

.square {
background: linear-gradient(135deg, #1565C0, #2196F3);
}

.square-1 {
width: 100px;
height: 100px;
top: 40%;
right: 20%;
transform: rotate(45deg);
animation: rotate 10s linear infinite;
}

.square-2 {
width: 40px;
height: 40px;
bottom: 40%;
right: 5%;
transform: rotate(45deg);
animation: rotate 12s linear infinite reverse;
}

.triangle-1 {
width: 0;
height: 0;
border-left: 30px solid transparent;
border-right: 30px solid transparent;
border-bottom: 52px solid rgba(255, 193, 7, 0.1);
top: 25%;
right: 35%;
animation: float 9s ease-in-out infinite;
animation-delay: 1s;
}

@keyframes float {
0%, 100% { transform: translateY(0px) rotate(0deg); }
50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes rotate {
from { transform: rotate(45deg); }
to { transform: rotate(405deg); }
}

.header {
    background: linear-gradient(135deg, #181e3f 40%, #4d4f7e 100%);
    color: white;
    width: 100%; 
    border-radius: 0px 0px 200px 200px;
    padding: 2.5rem 2rem;
    position: relative;
    box-shadow: 0 rgba(0,0,0,0.1);
    text-align: center;
    z-index: 100;
}


.logo-container {
    margin-bottom: 1.5rem;
}

.logo {
    width: 220px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0 auto 0.5rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: float 7s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}
.header-text {
    margin-bottom: 1.8rem;
}

.header-text h1 {
    font-size: 2.0rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.header-text p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.dpte {
    display: inline-block;
    font-size: 1.1rem;
    color: #FFD700;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    margin-top: 0.5rem;
}

.login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 1rem;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Section Héro */
.hero {
padding: 4rem 0;
background: linear-gradient(135deg, #F8F9FA 0%, #E3F2FD 100%);
position: relative;
z-index: 10;
}

.hero-content {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 3rem;
align-items: center;
}

.pact-name {
display: block;
font-size: 4rem;
font-weight: 800;
background: linear-gradient(135deg, #221b5e, #3a2e7d, #1565C0);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin-bottom: 0.5rem;
}

.pact-subtitle {
display: block;
font-size: 1.8rem;
font-weight: 600;
color: #424242;
}

.hero-description {
font-size: 1.2rem;
color: #666;
margin: 2rem 0;
line-height: 1.8;
}

.hero-buttons {
display: flex;
gap: 1rem;
flex-wrap: wrap;
}

.btn {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 1rem 2rem;
border: none;
border-radius: 50px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
text-decoration: none;
text-align: center;
}

.btn-primary {
background: linear-gradient(135deg, #2e2f7d, #4c4eaf);
color: white;
box-shadow: 0 4px 15px rgba(54, 46, 125, 0.3);
}

.btn-primary:hover {
transform: translateY(-3px);
box-shadow: 0 8px 25px rgba(51, 46, 125, 0.4);
}

.btn-secondary {
background: transparent;
color: #362e7d;
border: 2px solid #332e7d;
}

.btn-secondary:hover {
background: #2e4a7d;
color: white;
transform: translateY(-3px);
}

.hero-card {
background: linear-gradient(135deg, #1c366e, #3a2e7d);
color: white;
padding: 3rem;
border-radius: 20px;
text-align: center;
box-shadow: 0 20px 40px rgba(27, 56, 94, 0.2);
transform: perspective(1000px) rotateY(-5deg);
transition: all 0.3s ease;
}

.hero-card:hover {
transform: perspective(1000px) rotateY(0deg) translateY(-10px);
box-shadow: 0 30px 60px rgba(27, 48, 94, 0.3);
}

.hero-card i {
font-size: 4rem;
margin-bottom: 1rem;
color: #FFD700;
}

.hero-card h3 {
font-size: 1.5rem;
margin-bottom: 1rem;
}

/* Section Services */
.services {
padding: 5rem 0;
background: white;
position: relative;
z-index: 10;
}

.section-title {
font-size: 2.5rem;
font-weight: 700;
text-align: center;
margin-bottom: 1rem;
background: linear-gradient(135deg, #2a1b5e, #1565C0);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.section-subtitle {
font-size: 1.2rem;
text-align: center;
color: #666;
margin-bottom: 3rem;
}

.services-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 2rem;
}

.service-card {
background: white;
padding: 2rem;
border-radius: 15px;
box-shadow: 0 8px 30px rgba(0,0,0,0.08);
border: 1px solid rgba(46, 125, 50, 0.1);
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}

.service-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 4px;
background: linear-gradient(135deg, #2E7D32, #1565C0);
}

.service-card:hover {
transform: translateY(-10px);
box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.service-icon {
width: 80px;
height: 80px;
background: linear-gradient(135deg, rgba(46, 125, 50, 0.1), rgba(21, 101, 192, 0.1));
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 1.5rem;
}

.service-icon i {
font-size: 2rem;
color: #2E7D32;
}

.service-card h3 {
font-size: 1.3rem;
font-weight: 600;
margin-bottom: 1rem;
color: #1B5E20;
}

.service-card p {
color: #666;
margin-bottom: 1.5rem;
line-height: 1.6;
}

.service-features {
list-style: none;
}

.service-features li {
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 0.5rem;
color: #555;
}

.service-features i {
color: #4CAF50;
font-size: 0.8rem;
}

/* Section Processus */
.process {
padding: 5rem 0;
background: linear-gradient(135deg, #F8F9FA, #E3F2FD);
position: relative;
z-index: 10;
}

.process-options {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 3rem;
}

.process-option {
background: white;
border-radius: 20px;
overflow: hidden;
box-shadow: 0 15px 35px rgba(0,0,0,0.1);
transition: all 0.3s ease;
}

.process-option:hover {
transform: translateY(-5px);
box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.option-header {
background: linear-gradient(135deg, #1b255e, #2e3a7d);
color: white;
padding: 2rem;
text-align: center;
}

.option-header i {
font-size: 3rem;
margin-bottom: 1rem;
color: #FFD700;
}

.option-header h3 {
font-size: 1.5rem;
margin-bottom: 0.5rem;
}

.process-steps {
padding: 2rem;
}

.step {
display: flex;
align-items: flex-start;
gap: 1rem;
margin-bottom: 2rem;
position: relative;
}

.step::after {
content: '';
position: absolute;
left: 22px;
top: 45px;
width: 2px;
height: calc(100% + 1rem);
background: linear-gradient(to bottom, #E8F5E8, transparent);
}

.step:last-child::after {
display: none;
}

.step-number {
background: linear-gradient(135deg, #2E7D32, #4CAF50);
color: white;
width: 45px;
height: 45px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
flex-shrink: 0;
box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.step-content h4 {
font-size: 1.1rem;
font-weight: 600;
margin-bottom: 0.5rem;
color: #080142;
}

.step-content p {
color: #666;
font-size: 0.9rem;
}

/* Timeline des étapes de traitement */
.treatment-steps {
padding: 5rem 0;
background: white;
position: relative;
z-index: 10;
}

.timeline {
max-width: 800px;
margin: 0 auto;
position: relative;
}

.timeline::before {
content: '';
position: absolute;
left: 50%;
transform: translateX(-50%);
width: 4px;
height: 100%;
background: linear-gradient(to bottom, #2E7D32, #1565C0);
border-radius: 2px;
}

.timeline-item {
display: flex;
align-items: center;
margin-bottom: 3rem;
position: relative;
}

.timeline-item:nth-child(odd) {
justify-content: flex-start;
}

.timeline-item:nth-child(even) {
justify-content: flex-end;
}

.timeline-icon {
background: linear-gradient(135deg, #3a2e7d, #4e4caf);
color: white;
width: 60px;
height: 60px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
position: absolute;
left: 50%;
transform: translateX(-50%);
z-index: 10;
box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.timeline-icon i {
font-size: 1.5rem;
}

.timeline-content {
background: white;
padding: 2rem;
border-radius: 15px;
box-shadow: 0 8px 30px rgba(0,0,0,0.08);
max-width: 400px;
border: 1px solid rgba(46, 125, 50, 0.1);
}

.timeline-item:nth-child(odd) .timeline-content {
margin-left: calc(50% + 50px);
}

.timeline-item:nth-child(even) .timeline-content {
margin-right: calc(50% + 50px);
}

.timeline-content h3 {
color: #1B5E20;
margin-bottom: 0.5rem;
font-weight: 600;
}

.timeline-content p {
color: #666;
font-size: 0.9rem;
line-height: 1.6;
}

/* Section Conseils et Codes du Travail */
.labor-advice {
padding: 5rem 0;
background: linear-gradient(135deg, #F8F9FA, #E8F5E8);
position: relative;
z-index: 10;
}

.advice-content {
max-width: 1200px;
margin: 0 auto;
}

.advice-section {
margin-bottom: 4rem;
}

.advice-section h3 {
font-size: 1.8rem;
color: #1B5E20;
margin-bottom: 2rem;
display: flex;
align-items: center;
gap: 0.5rem;
}

.advice-section h3 i {
color: #FFD700;
}

.advice-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 2rem;
}

.advice-card {
background: white;
padding: 2rem;
border-radius: 15px;
box-shadow: 0 8px 30px rgba(0,0,0,0.08);
border-left: 4px solid #2E7D32;
transition: all 0.3s ease;
}

.advice-card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.advice-icon {
width: 60px;
height: 60px;
background: linear-gradient(135deg, rgba(46, 125, 50, 0.1), rgba(21, 101, 192, 0.1));
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 1rem;
}

.advice-icon i {
font-size: 1.5rem;
color: #2E7D32;
}

.advice-card h4 {
font-size: 1.2rem;
font-weight: 600;
margin-bottom: 1rem;
color: #1B5E20;
}

.advice-card ul {
list-style: none;
padding: 0;
}

.advice-card ul li {
padding: 0.5rem 0;
color: #555;
position: relative;
padding-left: 1.5rem;
}

.advice-card ul li::before {
content: '✓';
position: absolute;
left: 0;
color: #4CAF50;
font-weight: bold;
}

/* Section Codes du Travail */
.codes-section {
background: white;
padding: 3rem;
border-radius: 20px;
box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.codes-section h3 {
font-size: 1.8rem;
color: #1B5E20;
margin-bottom: 1rem;
display: flex;
align-items: center;
gap: 0.5rem;
}

.codes-section h3 i {
color: #1565C0;
}

.codes-description {
color: #666;
margin-bottom: 2rem;
font-size: 1.1rem;
line-height: 1.6;
}

.codes-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 2rem;
margin-bottom: 2rem;
}

.code-card {
background: #FAFAFA;
border: 2px solid #E0E0E0;
border-radius: 15px;
padding: 2rem;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}

.code-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 4px;
background: linear-gradient(135deg, #1565C0, #2E7D32);
}

.code-card:hover {
border-color: #2E7D32;
transform: translateY(-3px);
box-shadow: 0 10px 30px rgba(46, 125, 50, 0.15);
}

.code-header {
display: flex;
align-items: flex-start;
gap: 1rem;
margin-bottom: 1rem;
}

.code-header i {
font-size: 2.5rem;
color: #D32F2F;
margin-top: 0.2rem;
}

.code-info h4 {
font-size: 1.3rem;
font-weight: 600;
color: #1B5E20;
margin-bottom: 0.3rem;
}

.code-info p {
color: #666;
font-size: 0.9rem;
margin-bottom: 0.3rem;
}

.file-size {
background: #E3F2FD;
color: #1565C0;
padding: 0.2rem 0.5rem;
border-radius: 12px;
font-size: 0.8rem;
font-weight: 500;
}

.code-description {
margin-bottom: 1.5rem;
}

.code-description p {
color: #555;
font-size: 0.9rem;
line-height: 1.5;
}

.code-actions {
display: flex;
gap: 1rem;
flex-wrap: wrap;
}

.code-actions .btn {
flex: 1;
min-width: 120px;
justify-content: center;
}

.codes-note {
background: linear-gradient(135deg, #E3F2FD, #E8F5E8);
border-radius: 15px;
padding: 2rem;
border-left: 4px solid #1565C0;
}

.note-content {
display: flex;
align-items: flex-start;
gap: 1rem;
}

.note-content i {
font-size: 1.5rem;
color: #1565C0;
margin-top: 0.2rem;
}

.note-content h4 {
color: #1B5E20;
margin-bottom: 0.5rem;
font-weight: 600;
}

.note-content p {
color: #555;
line-height: 1.6;
margin: 0;
}

/* Section CTA */
.cta-section {
padding: 4rem 0;
background: linear-gradient(135deg, #1B5E20, #2E7D32, #1565C0);
color: white;
text-align: center;
position: relative;
z-index: 10;
}

.cta-content h2 {
font-size: 2.5rem;
font-weight: 700;
margin-bottom: 1rem;
}

.cta-content p {
font-size: 1.2rem;
margin-bottom: 2rem;
opacity: 0.9;
}

.cta-buttons {
display: flex;
gap: 1rem;
justify-content: center;
flex-wrap: wrap;
}

.btn-large {
padding: 1.2rem 2.5rem;
font-size: 1.1rem;
}

.btn-outline {
background: transparent;
color: white;
border: 2px solid rgba(255,255,255,0.3);
backdrop-filter: blur(10px);
}

.btn-outline:hover {
background: rgba(255,255,255,0.1);
border-color: rgba(255,255,255,0.5);
transform: translateY(-3px);
}

/* Footer */
.footer {
background: #1A1A1A;
color: white;
padding: 3rem 0 1rem;
position: relative;
z-index: 10;
}

.footer-content {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
margin-bottom: 2rem;
}

.footer-logo {
display: flex;
align-items: center;
gap: 1rem;
margin-bottom: 1rem;
}

.footer-logo i {
font-size: 2rem;
color: #9495d4;
}

.footer-section h3 {
color: #4547c5;
margin-bottom: 0.5rem;
}

.footer-section h4 {
color: #5050fa;
margin-bottom: 1rem;
font-size: 1.1rem;
}

.footer-section p {
color: #CCC;
line-height: 1.6;
font-size: 0.9rem;
}

.footer-section ul {
list-style: none;
}

.footer-section ul li {
margin-bottom: 0.5rem;
}

.footer-section ul li a {
color: #CCC;
text-decoration: none;
transition: color 0.3s ease;
font-size: 0.9rem;
}

.footer-section ul li a:hover {
color: #7373fd;
text-decoration: underline;
}

.contact-info p {
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 0.5rem;
font-size: 0.9rem;
}

.contact-info i {
color: #3a3aff;
width: 16px;
}

.social-links {
display: flex;
gap: 1rem;
margin-top: 1rem;
}

.social-links a {
color: #CCC;
font-size: 1.2rem;
transition: color 0.3s ease;
}

.social-links a:hover {
color: #7373fd;
text-decoration: underline;
}

.footer-bottom {
border-top: 1px solid #333;
padding-top: 2rem;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 1rem;
}

.footer-bottom p {
color: #999;
font-size: 0.8rem;
}

.footer-links {
display: flex;
gap: 2rem;
}

.footer-links a {
color: #999;
text-decoration: none;
font-size: 0.8rem;
transition: color 0.3s ease;
}

.footer-links a:hover {
color: #7373fd;
text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
.header-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
}
.header {
    padding: 2rem 1.5rem;
}

.header-text h1 {
    font-size: 2rem;
}

.logo {
    width: 80px;
    height: 80px;
}

.logo i {
    font-size: 2.5rem;
}

.features {
    flex-direction: column;
    align-items: center;
}

.feature {
    width: 100%;
    max-width: 350px;
}
.navigation ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

.pact-name {
    font-size: 3rem;
}

.pact-subtitle {
    font-size: 1.5rem;
}

.process-options {
    grid-template-columns: 1fr;
    gap: 2rem;
}

.services-grid {
    grid-template-columns: 1fr;
}

.timeline::before {
    left: 30px;
}

.timeline-item {
    justify-content: flex-start !important;
}

.timeline-icon {
    left: 30px !important;
    transform: translateX(-50%);
}

.timeline-content {
    margin-left: 80px !important;
    margin-right: 0 !important;
    max-width: calc(100% - 80px);
}

.hero-buttons {
    justify-content: center;
}

.btn {
    width: 100%;
    max-width: 300px;
}

.cta-buttons {
    flex-direction: column;
    align-items: center;
}

.footer-bottom {
    flex-direction: column;
    text-align: center;
}

.floating-elements .bubble,
.floating-elements .square,
.floating-elements .triangle {
    display: none;
}

.advice-grid {
    grid-template-columns: 1fr;
}

.codes-grid {
    grid-template-columns: 1fr;
}

.code-actions {
    flex-direction: column;
}

.note-content {
    flex-direction: column;
    text-align: center;
}
}

@media (max-width: 480px) {
.container {
    padding: 0 15px;
}

.header {  
    border-radius: 0px 0px 80px 80px;
}
.header-text h1 {
    font-size: 1.8rem;
}

.header-text p {
    font-size: 1rem;
}

.content {
    padding: 1.5rem;
}
.hero {
    padding: 2rem 0;
}

.pact-name {
    font-size: 2.5rem;
}

.section-title {
    font-size: 2rem;
}

.advice-section h3,
.codes-section h3 {
    font-size: 1.5rem;
}

.codes-section {
    padding: 2rem 1rem;
}

.services,
.process,
.treatment-steps {
    padding: 3rem 0;
}
}

/* Accessibilité */
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

.floating-elements {
    display: none;
}
}

/* Mode sombre (optionnel) */
@media (prefers-color-scheme: dark) {
body {
    background-color: #eef7fd;
    color: #E0E0E0;
}

.services,
.treatment-steps {
    background: #1E1E1E;
}

.service-card,
.timeline-content {
    background: #2A2A2A;
    color: #E0E0E0;
    border-color: rgba(255,255,255,0.1);
}
}

.services,
.treatment-steps {
    background: #e6f2ff; /* Bleu légèrement plus soutenu */
}

.service-card,
.timeline-content {
    background: #ffffff;
    color: #2c3e50;
    border-color: rgba(30, 136, 229, 0.2); /* Bordure bleue subtile */
    box-shadow: 0 8px 30px rgba(30, 136, 229, 0.1);
}

.service-card h3,
.timeline-content h3 {
    color: #1b5e20; /* On garde la couleur verte pour les titres */
}

.service-card p,
.timeline-content p {
    color: #5a6c7d; /* Gris bleuté pour le texte */
}

.service-icon {
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.15), rgba(46, 125, 50, 0.15));
}

.service-icon i {
    color: #1e88e5; /* Bleu pour les icônes */
}

/* Section Codes du Travail */
.labor-codes {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    position: relative;
    z-index: 10;
}

.codes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.code-card {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.code-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #1565C0, #2E7D32);
}

.code-card:hover {
    border-color: #2E7D32;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(46, 125, 50, 0.15);
}

.code-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.code-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.1), rgba(46, 125, 50, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.code-icon i {
    font-size: 1.8rem;
    color: #1565C0;
}

.code-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1B5E20;
    margin-bottom: 0.3rem;
}

.code-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.code-date {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.file-size {
    background: #E3F2FD;
    color: #1565C0;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}

.code-description {
    margin-bottom: 1.5rem;
}

.code-description p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

.code-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.code-actions .btn {
    flex: 1;
    min-width: 120px;
    justify-content: center;
    padding: 0.6rem 0.8rem;
    font-size: 0.7rem;
}

.codes-note {
    background: linear-gradient(135deg, #E3F2FD, #E8F5E8);
    border-radius: 15px;
    padding: 2rem;
    border-left: 4px solid #1565C0;
}

.note-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.note-content i {
    font-size: 1.5rem;
    color: #1565C0;
    margin-top: 0.2rem;
}

.note-content h4 {
    color: #1B5E20;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.note-content p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .codes-grid {
        grid-template-columns: 1fr;
    }
    
    .code-actions {
        flex-direction: column;
    }
    
    .note-content {
        flex-direction: column;
        text-align: center;
    }
}