| 1 |
.timeline-section { |
| 2 |
padding: 64px 24px; |
| 3 |
margin: 0 auto; |
| 4 |
max-width: 1100px; |
| 5 |
} |
| 6 |
|
| 7 |
.timeline-title { |
| 8 |
font-size: 2rem; |
| 9 |
font-weight: 700; |
| 10 |
text-align: center; |
| 11 |
margin-bottom: 2.5rem; |
| 12 |
color: #1a1a1a; |
| 13 |
} |
| 14 |
|
| 15 |
/* Timeline verticale */ |
| 16 |
.timeline-style-vertical .timeline-vertical { |
| 17 |
position: relative; |
| 18 |
margin: 0 auto; |
| 19 |
padding-left: 32px; |
| 20 |
border-left: 4px solid #2563eb; |
| 21 |
max-width: 600px; |
| 22 |
} |
| 23 |
.timeline-style-vertical .timeline-event { |
| 24 |
position: relative; |
| 25 |
margin-bottom: 2.5rem; |
| 26 |
} |
| 27 |
.timeline-style-vertical .timeline-event:last-child { |
| 28 |
margin-bottom: 0; |
| 29 |
} |
| 30 |
.timeline-style-vertical .timeline-date { |
| 31 |
font-size: 1.1rem; |
| 32 |
font-weight: 700; |
| 33 |
color: #2563eb; |
| 34 |
margin-bottom: 0.2rem; |
| 35 |
} |
| 36 |
.timeline-style-vertical .timeline-desc { |
| 37 |
font-size: 1rem; |
| 38 |
color: #444; |
| 39 |
background: #f8f9fa; |
| 40 |
padding: 1rem 1.5rem; |
| 41 |
border-radius: 8px; |
| 42 |
margin: 0; |
| 43 |
box-shadow: 0 2px 8px rgba(37,99,235,0.04); |
| 44 |
text-align: center; |
| 45 |
word-break: break-word; |
| 46 |
} |
| 47 |
.timeline-style-vertical .timeline-event::before { |
| 48 |
content: ""; |
| 49 |
position: absolute; |
| 50 |
left: -38px; |
| 51 |
top: 8px; |
| 52 |
width: 18px; |
| 53 |
height: 18px; |
| 54 |
background: #fff; |
| 55 |
border: 4px solid #2563eb; |
| 56 |
border-radius: 50%; |
| 57 |
z-index: 2; |
| 58 |
} |
| 59 |
|
| 60 |
/* Timeline horizontale */ |
| 61 |
.timeline-style-horizontal .timeline-horizontal { |
| 62 |
display: flex; |
| 63 |
justify-content: space-between; |
| 64 |
align-items: flex-start; |
| 65 |
gap: 2rem; |
| 66 |
position: relative; |
| 67 |
margin: 0 auto; |
| 68 |
max-width: 900px; |
| 69 |
padding-bottom: 32px; |
| 70 |
} |
| 71 |
.timeline-style-horizontal .timeline-horizontal::before { |
| 72 |
content: ""; |
| 73 |
position: absolute; |
| 74 |
left: 0; |
| 75 |
right: 0; |
| 76 |
top: 32px; |
| 77 |
height: 4px; |
| 78 |
background: #2563eb; |
| 79 |
z-index: 1; |
| 80 |
} |
| 81 |
.timeline-style-horizontal .timeline-event-horizontal { |
| 82 |
position: relative; |
| 83 |
background: #fff; |
| 84 |
border-radius: 10px; |
| 85 |
box-shadow: 0 2px 8px rgba(37,99,235,0.04); |
| 86 |
padding: 1.2rem 1.5rem; |
| 87 |
min-width: 180px; |
| 88 |
text-align: center; |
| 89 |
z-index: 2; |
| 90 |
margin-top: 0; |
| 91 |
} |
| 92 |
.timeline-style-horizontal .timeline-date { |
| 93 |
font-size: 1.1rem; |
| 94 |
font-weight: 700; |
| 95 |
color: #2563eb; |
| 96 |
margin-bottom: 0.2rem; |
| 97 |
} |
| 98 |
.timeline-style-horizontal .timeline-desc { |
| 99 |
font-size: 1rem; |
| 100 |
color: #444; |
| 101 |
margin: 0; |
| 102 |
} |
| 103 |
|
| 104 |
/* Responsive */ |
| 105 |
@media (max-width: 900px) { |
| 106 |
.timeline-style-horizontal .timeline-horizontal { |
| 107 |
gap: 1rem; |
| 108 |
max-width: 100%; |
| 109 |
} |
| 110 |
.timeline-style-horizontal .timeline-event-horizontal { |
| 111 |
min-width: 120px; |
| 112 |
padding: 1rem 0.5rem; |
| 113 |
} |
| 114 |
} |
| 115 |
@media (max-width: 700px) { |
| 116 |
.timeline-style-horizontal .timeline-horizontal { |
| 117 |
flex-direction: column; |
| 118 |
align-items: flex-start; |
| 119 |
gap: 2.5rem; |
| 120 |
padding-bottom: 0; |
| 121 |
} |
| 122 |
.timeline-style-horizontal .timeline-horizontal::before { |
| 123 |
display: none; |
| 124 |
} |
| 125 |
.timeline-style-horizontal .timeline-event-horizontal { |
| 126 |
min-width: 0; |
| 127 |
width: 100%; |
| 128 |
text-align: left; |
| 129 |
} |
| 130 |
} |
| 131 |
@media (max-width: 600px) { |
| 132 |
.timeline-section { |
| 133 |
padding: 32px 4px; |
| 134 |
} |
| 135 |
.timeline-title { |
| 136 |
font-size: 1.2rem; |
| 137 |
margin-bottom: 1.2rem; |
| 138 |
} |
| 139 |
.timeline-style-vertical .timeline-vertical { |
| 140 |
padding-left: 18px; |
| 141 |
} |
| 142 |
.timeline-style-vertical .timeline-event::before { |
| 143 |
left: -24px; |
| 144 |
width: 12px; |
| 145 |
height: 12px; |
| 146 |
border-width: 3px; |
| 147 |
} |
| 148 |
} |