Bonjour,

J'ai intégrer à ma page mon css et il ne prend pas en compte la taille du texte, couleur ... dans la section Home

Avez vous une idée ?

index.html
Code html : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<!DOCTYPE html>
<html lang="en">
 
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Active Dev</title>
    <link rel="stylesheet" href="style.css">
</head>
 
<body>
    <header class="header">
        <a href="#" class="Logo">Active Dev</a>
        <nav class="navbar">
            <a href="#home" class="active">Home</a>
            <a href="#about">About</a>
            <a href="#services">Services</a>
            <a href="#team">Team</a>
            <a href="#contact">Contact</a>
        </nav>
    </header>
    <section class="Home" id="home">
        <!--<h2 class="all-heading">Home <span>Section</span></h2>-->
        <div class="container">
        <div class="box" style="--clr:#89ec5b;">
            <div class="content">
                <div class="icon"><ion-icon name="brush-outline"></ion-icon></div>
                <div class="text">
                    <h3>Designing</h3>
                    <p>Lorem ipsum dolor, sit amet consectetur adipisicing elit.
                        Voluptatem magni enim eum ad aliquid reprehenderit.</p>
                    <a href="#">Read More</a>
                </div>
            </div>
        </div>
        <div class="box" style="--clr:#eb5ae5;">
            <div class="content">
                <div class="icon"><ion-icon name="code-slash-outline"></ion-icon></div>
                <div class="text">
                    <h3>Development</h3>
                    <p>Lorem ipsum dolor, sit amet consectetur adipisicing elit.
                        Voluptatem magni enim eum ad aliquid reprehenderit.</p>
                    <a href="#">Read More</a>
                </div>
            </div>
        </div>
        <div class="box" style="--clr:#5b98eb;">
            <div class="content">
                <div class="icon"><ion-icon name="search-outline"></ion-icon></div>
                <div class="text">
                    <h3>SEO</h3>
                    <p>Lorem ipsum dolor, sit amet consectetur adipisicing elit.
                        Voluptatem magni enim eum ad aliquid reprehenderit.</p>
                    <a href="#">Read More</a>
                </div>
            </div>
        </div>
    </div>
    <script type="module" src="https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.esm.js"></script>
    <script nomodule src="https://unpkg.com/ionicons@7.1.0/dist/ionicons/ionicons.js"></script>
    </section>
 
 
 
    <section class="About" id="about">
        <h2 class="all-heading">About <span>Section</span></h2>
    </section>
    <section class="Services" id="services">
        <h2 class="all-heading">Services <span>Section</span></h2>
    </section>
    <section class="Team" id="team">
        <h2 class="all-heading">Team <span>Section</span></h2>
    </section>
    <section class="Contact" id="contact">
        <h2 class="all-heading">Contact <span>Section</span></h2>
    </section>
    <script src="index.js"></script>
</body>
 
</html>

style.css
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
@import url('https://fonts.googleapis.com/css?family=Poppins:100,200,300,400,500,600,700,800,900&display=swap');
 
* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    color: #fff;
}
 
html {
    font-size: 62.5%;
    overflow-x: hidden;
}
 
body {
    background: #000;
    color: #fff;
}
 
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}
 
.Logo {
    font-size: 1.7rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}
 
.navbar a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-left: 4rem;
    font-size: 1.7rem;
    transition: .2s;
}
 
.navbar a:hover,
.navbar a:active {
    color: #ef6e12;
}
 
section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
 
.all-heading {
    display: flex;
    font-size: 60px;
    color: #ef6e12;
}
 
.About,
.Team {
    background: #111;
}
 
 
/*card*/
.container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 60px 0;
    gap: 60px;
}
 
.container .box {
    position: relative;
    width: 300px;
    height: 350px;
    background: #2e2e2e;
    display: flex;
    justify-content: center;
    align-items: center;
}
 
.container .box::before {
    content: '';
    position: absolute;
    inset: -10px 50px;
    border-top: 4px solid var(--clr);
    border-bottom: 4px solid var(--clr);
    z-index: -1;
    transform: skewY(15deg);
    transition: 0.5s ease-in-out;
}
 
.container .box:hover::before {
    transform: skewY(0deg);
    inset: -10px 40px;
}
 
.container .box::after {
    content: '';
    position: absolute;
    inset: 60px -10px;
    border-left: 4px solid var(--clr);
    border-right: 4px solid var(--clr);
    z-index: -1;
    transform: skew(15deg);
    transition: 0.5s ease-in-out;
}
 
.container .box:hover::after {
    transform: skew(0deg);
    inset: 40px -10px;
}
 
.container .box .content {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 0 20px;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
 
.container .box .content .icon {
    color: var(--clr);
    width: 80px;
    height: 80px;
    box-shadow: 0 0 0 4px #2e2e2e,
        0 0 0 6px var(--clr);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5em;
    background: #2e2e2e;
    transition: 0.5s ease-in-out;
}
 
.container .box:hover .content .icon {
    background: var(--clr);
    color: #2e2e2e;
    box-shadow: 0 0 0 4px #2e2e2e,
        0 0 0 300px var(--clr);
}
 
.container .box .content .text h3 {
    font-size: 1.5em;
    color: #fff;
    font-weight: 500;
    transition: 0.5s ease-in-out;
}
 
.container .box:hover .content .text h3 {
    color: #2e2e2e;
}
 
.container .box .content .text p {
    color: #999;
    transition: 0.5s ease-in-out;
}
 
.container .box:hover .content .text p {
    color: #2e2e2e;
}
 
.container .box .content .text a {
    position: relative;
    background: var(--clr);
    color: #2e2e2e;
    padding: 8px 15px;
    display: inline-block;
    text-decoration: none;
    font-weight: 500;
    margin-top: 10px;
    transition: 0.5s ease-in-out;
}
 
.container .box:hover .content .text a {
    background: #2e2e2e;
    color: var(--clr);
}