/*
 * Lien vers mon github   : https://github.com/gshimatu
 * Auteur                 : Gauthier Shimatu (Le shimatologue)
 * Nom du fichier         : style.css
 * Date de création       : 2025-05-17 00:35:37
 * Description            : fichier CSS 
 * Version                : 1.0
 */


body {
    font-family: 'Arial', sans-serif;
    background-color: #03333c;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    padding: 20px;
    animation: footerFadeIn 1.2s;
}

.container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 800px;
    box-shadow: 20px 40px 20px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

h1 {
    color: #3fd3ca;
    margin-bottom: 25px;
    text-align: center;
}

#text-input {
    width: 100%;
    height: 200px;
    padding: 15px;
    border: 2px solid #03333c;
    border-radius: 50px;
    resize: vertical;
    font-size: 16px;
}

.counters {
    display: flex;
    justify-content: space-between;
}

.counter-box {
    text-align: center;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 5px;
    width: 45%;
}

.counter-label {
    color: #03333c;
    font-size: 14px;
    margin-bottom: 5px;
}

.counter-value {
    color: #3fd3ca;
    font-size: 24px;
    font-weight: bold;
}

.input-area {
    position: relative;
    width: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 18px;
    color: #3fd3ca;
    font-size: 22px;
    pointer-events: none;
    transition: transform 0.3s;
}

#text-input {
    width: 100%;
    height: 200px;
    padding: 15px 15px 15px 50px;
    border: 2px solid #3fd3ca;
    border-radius: 10px;
    resize: vertical;
    font-size: 16px;
    background: linear-gradient(120deg, #e0f7fa 0%, #ffffff 100%);
    box-shadow: 0 2px 8px rgba(63,211,202,0.08);
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

#text-input:focus {
    border-color: #03333c;
    box-shadow: 0 4px 16px rgba(63,211,202,0.18);
}

#text-input:focus + .input-icon,
.input-area:hover .input-icon {
    transform: scale(1.1) rotate(-8deg);
}

.counters {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    width: 90%;
    padding: 40px;
}

.counter-box {
    text-align: center;
    padding: 18px 0;
    background: linear-gradient(120deg, #f5f5f5 60%, #e0f7fa 100%);
    border-radius: 10px;
    width: 48%;
    box-shadow: 0 2px 8px rgba(63,211,202,0.10);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.counter-box:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 24px rgba(63,211,202,0.18);
}

.counter-label {
    color: #03333c;
    font-size: 15px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.counter-label i {
    color: #3fd3ca;
    font-size: 18px;
}

.counter-value {
    color: #3fd3ca;
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: color 0.2s;
}

.counter-box:hover .counter-value {
    color: #03333c;
}


footer {
    width: 100%;
    margin-top: 40px;
    padding: 18px 0 10px 0;
    background: linear-gradient(90deg, #03333c 60%, #3fd3ca 100%);
    color: #fff;
    text-align: center;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 -2px 12px rgba(63,211,202,0.10);
    letter-spacing: 1px;
    font-size: 17px;
    position: relative;
    animation: footerFadeIn 1.2s;
}

footer p {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

@keyframes footerFadeIn {
    from { opacity: 0; transform: translateY(40px);}
    to { opacity: 1; transform: translateY(0);}
}

.footer-logo {
    height: 32px;
    width: 32px;
    border-radius: 50%;
    margin-right: 10px;
    background: #fff;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(63,211,202,0.15);
    transition: transform 0.3s;
    vertical-align: middle;
}
.footer-logo:hover {
    transform: scale(1.08) rotate(-4deg);
}

.extra-counters {
    width: 90%;
    margin: 0 auto 18px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 18px 32px;
    justify-content: space-between;
    background: #f8fafd;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(63,211,202,0.07);
    padding: 18px 24px;
    font-size: 16px;
}

.extra-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #03333c;
    min-width: 200px;
    word-break: break-word;
    margin-bottom: 8px; 
}

.extra-counter i {
    color: #3fd3ca;
    font-size: 18px;
    margin-right: 4px;
}

.action-buttons {
    width: 90%;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 10px;
}

.action-buttons button {
    background: #3fd3ca;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(63,211,202,0.10);
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-buttons button:hover {
    background: #03333c;
    color: #fff;
    transform: translateY(-2px) scale(1.04);
}

@media (max-width: 900px) {
    .extra-counters {
        flex-direction: column;
        gap: 0;
        padding: 14px 10px;
        font-size: 15px;
    }
    .extra-counter {
        min-width: 0;
        width: 100%;
        justify-content: flex-start;
        margin-bottom: 30px; 
    }
}

@media (max-width: 600px) {
    .extra-counters {
        width: 100%;
        padding: 10px 2vw;
        font-size: 14px;
    }
    .extra-counter {
        font-size: 14px;
        gap: 6px;
    }
}