/* Variables */
:root {
    --primary-color: #b22222;
    --secondary-color: #cc5500;
    --primary-color-light: #ecc8c8;
    --text-color: #000000;
    --background-color: #ffffff;
    --border-color: #aaa9a9;
    --link-color: #0000cd;
    --hover-color: #eee8aa;
    --button-color: #8b4513;
    --header-color: #333333;
    --success-color: #228b22;
    --warning-color: #ffd700;
    --error-color: #dc143c;
    --font-size: 16px;
}

.primary-color {
    color: var(--primary-color);
}

.primary-color:hover {
    color: var(--primary-color);
}

.secondary-color {
    color: var(--secondary-color);
}

/* Font */

@font-face {
    font-family: 'Usual';
    src: url('../fonts/Usual-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Usual';
    src: url('../fonts/Usual-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

/* Général */

body {
    font-family: 'Usual', sans-serif;
    background: hsla(211, 66%, 87%, 1);

    background: linear-gradient(90deg, hsla(211, 66%, 87%, 1) 0%, hsla(348, 67%, 88%, 1) 50%, hsla(272, 26%, 72%, 1) 100%);

    background: -moz-linear-gradient(90deg, hsla(211, 66%, 87%, 1) 0%, hsla(348, 67%, 88%, 1) 50%, hsla(272, 26%, 72%, 1) 100%);

    background: -webkit-linear-gradient(90deg, hsla(211, 66%, 87%, 1) 0%, hsla(348, 67%, 88%, 1) 50%, hsla(272, 26%, 72%, 1) 100%);
}

p {
    font-size: var(--font-size);
}

/* Button */

.button {
    background-color: var(--button-color);
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.button:hover {
    background-color: var(--hover-color);
}

/* Header */

.header {
    background-color: var(--header-color);
    color: var(--text-color);
    padding: 20px;
}

/* Success Message */

.success-message {
    color: var(--success-color);
}

/* Warning Message */

.warning-message {
    color: var(--warning-color);
}

/* Error Message */

.error-message {
    color: var(--error-color);
}

/* en tête */

.hr-title {
    height: 2px;
    border: none;
    background-color: var(--primary-color);
}

/* Form */

.container-form {
    border: 1px solid rgba(204, 119, 34, 0.5);
    padding: 2rem 1rem;
    box-shadow: 0px 20px 200px rgba(156,11,10, 0.6);
    border-radius: 30px;
    z-index: 500;
    background: var(--background-color);
}

.form-control:focus {
    outline: none !important;
    border: 1px solid var(--border-color);
    box-shadow: none !important;
}

.sr-only {
    display: none;
}

fieldset {
    margin-top: 12px;
    padding: 12px;
}

legend {
    color: black;
    padding-right: 12px;
    border-bottom: 2px solid var(--primary-color-light);
    text-align: justify-all;
}

.container-form label {
    margin-bottom: 5px;
}

.btn-submit {
    background-color: var(--primary-color);
    color: white;
}

.btn-submit:hover {
    background-color: darkred;
    color: white;
}

.text-perso-gray {
    color: #939597;
}

/* Page de validation de l'envoi du formulaire */

.form-success {
    font-size: 30px;
    font-weight: bold;
    padding: 5rem;
    text-align: center;
}

/* CRUD */

.crud-title {
    margin-top: 1rem;
}

.add-link {
    background-color: black;
    color: white;
}
.add-link:hover {
    background-color: #333333;
    color: white;
}

.margin-bo {
    margin-bottom: 1rem;
}

.display-none {
    display: none;
}

/* Media queries */

/* Pour les écrans plus petits que 600px */
@media only screen and (max-width: 600px) {
    .title h1 {
        font-size: 20px;
        margin-right: 8px;
    }

    .logo img {
        width: 150px;
    }

    legend {
        font-size: 16px;
    }

    .form-control::placeholder {
        font-size: 14px;
        color: gray;
    }

    .container-form label {
        font-size: 14px;
    }
}
/* Pour les écrans plus grands que, ou égaux à 600px */
@media only screen and (min-width: 600px) {
    .container-form {
        width: 75%;
    }

    .logo {
        margin-left: 1rem;
    }

    .title {
        margin-right: 1rem;
    }
}

/* Pour les écrans plus grands que, ou égaux à 768px */
@media only screen and (min-width: 768px) {

}

/* Pour les écrans plus grands que, ou égaux à 992px */
@media only screen and (min-width: 992px) {

}

/* Pour les écrans plus grands que, ou égaux à 1200px */
@media only screen and (min-width: 1200px) {

}