You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
391 lines
7.6 KiB
391 lines
7.6 KiB
.contact {
|
|
text-align: center;
|
|
padding: 40px 20px;
|
|
width: 95%;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.contact h2 {
|
|
margin-bottom: 20px;
|
|
color: var(--accent-color);
|
|
}
|
|
|
|
.contact p {
|
|
font-size: 18px;
|
|
margin-bottom: 30px;
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
|
|
form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
width: 100%;
|
|
}
|
|
|
|
.form-group {
|
|
text-align: left;
|
|
position: relative;
|
|
}
|
|
|
|
.form-label {
|
|
font-size: 16px;
|
|
color: #e0e0e0;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.required {
|
|
color: #e74c3c;
|
|
margin-left: 4px;
|
|
}
|
|
|
|
input, textarea, select {
|
|
width: 100%;
|
|
padding: 12px;
|
|
border: 2px solid #444;
|
|
border-radius: 5px;
|
|
background-color: #333;
|
|
color: #e0e0e0;
|
|
font-size: 16px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
input:focus, textarea:focus, select:focus {
|
|
outline: none;
|
|
border-color: var(--accent-color);
|
|
box-shadow: 0 0 5px rgba(26, 188, 156, 0.3);
|
|
}
|
|
|
|
textarea {
|
|
resize: none;
|
|
min-height: 120px;
|
|
max-height: 400px;
|
|
overflow-y: hidden;
|
|
transition: height 0.2s ease;
|
|
}
|
|
|
|
.character-count {
|
|
position: absolute;
|
|
bottom: 10px;
|
|
right: 10px;
|
|
font-size: 12px;
|
|
color: #888;
|
|
background-color: rgba(51, 51, 51, 0.8);
|
|
padding: 2px 8px;
|
|
border-radius: 10px;
|
|
transition: bottom 0.2s ease;
|
|
}
|
|
|
|
/* Style personnalisé pour la checkbox */
|
|
.checkbox-container {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
color: #e0e0e0;
|
|
position: relative;
|
|
padding-left: 35px;
|
|
}
|
|
|
|
/* Cacher la checkbox par défaut */
|
|
.checkbox-container input[type="checkbox"] {
|
|
position: absolute;
|
|
opacity: 0;
|
|
cursor: pointer;
|
|
height: 0;
|
|
width: 0;
|
|
}
|
|
|
|
/* Style pour la checkbox personnalisée */
|
|
.checkmark {
|
|
position: absolute;
|
|
left: 0;
|
|
height: 25px;
|
|
width: 25px;
|
|
background-color: #333;
|
|
border: 2px solid #444;
|
|
border-radius: 5px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
/* Style au survol */
|
|
.checkbox-container:hover .checkmark {
|
|
border-color: var(--accent-color);
|
|
box-shadow: 0 0 5px rgba(26, 188, 156, 0.3);
|
|
}
|
|
|
|
/* Style quand la checkbox est cochée */
|
|
.checkbox-container input:checked ~ .checkmark {
|
|
background-color: var(--accent-color);
|
|
border-color: var(--accent-color);
|
|
}
|
|
|
|
/* Création de l'icône de validation */
|
|
.checkmark:after {
|
|
content: '';
|
|
position: absolute;
|
|
display: none;
|
|
left: 9px;
|
|
top: 5px;
|
|
width: 5px;
|
|
height: 10px;
|
|
border: solid white;
|
|
border-width: 0 2px 2px 0;
|
|
transform: rotate(45deg);
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
/* Afficher l'icône quand la checkbox est cochée */
|
|
.checkbox-container input:checked ~ .checkmark:after {
|
|
display: block;
|
|
animation: checkmark 0.2s ease-in-out;
|
|
}
|
|
|
|
/* Animation de l'icône de validation */
|
|
@keyframes checkmark {
|
|
0% {
|
|
opacity: 0;
|
|
transform: rotate(45deg) scale(0);
|
|
}
|
|
100% {
|
|
opacity: 1;
|
|
transform: rotate(45deg) scale(1);
|
|
}
|
|
}
|
|
|
|
/* Style pour la checkbox invalide */
|
|
.checkbox-container input:invalid ~ .checkmark {
|
|
border-color: #e74c3c;
|
|
animation: shake 0.5s ease-in-out;
|
|
}
|
|
|
|
/* Animation de secousse pour l'erreur */
|
|
@keyframes shake {
|
|
0%, 100% { transform: translateX(0); }
|
|
25% { transform: translateX(-5px); }
|
|
75% { transform: translateX(5px); }
|
|
}
|
|
|
|
button[type="submit"] {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 10px;
|
|
margin-top: 20px;
|
|
padding: 12px 25px;
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
background-color: var(--accent-color);
|
|
color: #121212;
|
|
border: none;
|
|
border-radius: 5px;
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
button[type="submit"]:hover {
|
|
transform: scale(1.05);
|
|
box-shadow: 0 5px 15px rgba(0,0,0,0.3);
|
|
}
|
|
|
|
button[type="submit"] .btn-icon {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.contact-info {
|
|
margin-top: 40px;
|
|
padding-top: 20px;
|
|
border-top: 1px solid #444;
|
|
font-size: 16px;
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.contact-info a {
|
|
color: var(--accent-color);
|
|
font-weight: 600;
|
|
transition: all 0.3s ease;
|
|
margin: 0 5px;
|
|
}
|
|
|
|
.contact-info a:hover {
|
|
color: var(--accent-color);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
@media (min-width: 576px) {
|
|
.contact {
|
|
width: 90%;
|
|
max-width: 500px;
|
|
padding: 60px 20px;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.contact {
|
|
max-width: 600px;
|
|
padding: 80px 20px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.contact {
|
|
padding: 80px 15px;
|
|
}
|
|
|
|
.contact p {
|
|
font-size: 16px;
|
|
}
|
|
|
|
input, textarea, select {
|
|
font-size: 14px;
|
|
padding: 10px;
|
|
}
|
|
|
|
button[type="submit"] {
|
|
font-size: 14px;
|
|
padding: 10px 20px;
|
|
}
|
|
|
|
.contact-info {
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.contact {
|
|
padding: 60px 10px;
|
|
}
|
|
|
|
.contact h2 {
|
|
font-size: 24px;
|
|
}
|
|
|
|
.contact p {
|
|
font-size: 14px;
|
|
}
|
|
|
|
input, textarea, select {
|
|
font-size: 12px;
|
|
padding: 8px;
|
|
}
|
|
|
|
button[type="submit"] {
|
|
font-size: 12px;
|
|
padding: 8px 16px;
|
|
}
|
|
|
|
.contact-info {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.g-recaptcha {
|
|
transform: scale(0.85);
|
|
transform-origin: center;
|
|
margin: 10px 0;
|
|
}
|
|
}
|
|
|
|
/* Style pour le reCAPTCHA */
|
|
.g-recaptcha {
|
|
display: flex;
|
|
justify-content: center;
|
|
margin: 20px 0;
|
|
}
|
|
|
|
/* Style pour les placeholders */
|
|
::placeholder {
|
|
color: #666;
|
|
opacity: 0.7;
|
|
font-style: italic;
|
|
}
|
|
|
|
/* Style pour Firefox */
|
|
::-moz-placeholder {
|
|
color: #666;
|
|
opacity: 0.7;
|
|
font-style: italic;
|
|
}
|
|
|
|
/* Style pour Edge */
|
|
:-ms-input-placeholder {
|
|
color: #666;
|
|
opacity: 0.7;
|
|
font-style: italic;
|
|
}
|
|
|
|
/* Animation au focus */
|
|
input:focus::placeholder,
|
|
textarea:focus::placeholder {
|
|
opacity: 0.4;
|
|
transition: opacity 0.3s ease;
|
|
}
|
|
|
|
/* Style pour le select et ses options */
|
|
select {
|
|
appearance: none;
|
|
background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
|
|
background-repeat: no-repeat;
|
|
background-position: right 1rem center;
|
|
background-size: 1em;
|
|
padding-right: 2.5rem;
|
|
cursor: pointer;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
/* Style pour les options */
|
|
select option {
|
|
background-color: #333;
|
|
color: #e0e0e0;
|
|
padding: 10px;
|
|
-webkit-appearance: none;
|
|
-moz-appearance: none;
|
|
}
|
|
|
|
/* Suppression complète de l'effet de surlignage */
|
|
select option:hover,
|
|
select option:focus,
|
|
select option:active,
|
|
select option:checked {
|
|
background: #333 !important;
|
|
background-color: #333 !important;
|
|
color: var(--accent-color) !important;
|
|
-webkit-appearance: none;
|
|
-moz-appearance: none;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
/* Style spécifique pour Firefox */
|
|
@-moz-document url-prefix() {
|
|
select option:hover,
|
|
select option:focus,
|
|
select option:active,
|
|
select option:checked {
|
|
background-color: #333 !important;
|
|
color: var(--accent-color) !important;
|
|
box-shadow: none !important;
|
|
}
|
|
}
|
|
|
|
/* Style pour l'option disabled/placeholder */
|
|
select option[disabled] {
|
|
color: #666;
|
|
font-style: italic;
|
|
}
|
|
|
|
/* Style au focus du select */
|
|
select:focus {
|
|
outline: none;
|
|
border-color: var(--accent-color);
|
|
box-shadow: 0 0 5px rgba(26, 188, 156, 0.3);
|
|
}
|
|
|
|
/* Animation au hover du select */
|
|
select:hover {
|
|
border-color: var(--accent-color);
|
|
transition: border-color 0.3s ease;
|
|
}
|