:root
{
    --caq-1: #0066b3;
    --caq-2: #00b6ad;
    --gray: #e7e7e7;
    --time-anim: 2s;
}

body {
  font-family: "Roboto Slab", serif;
  font-optical-sizing: auto;
  font-style: normal;
  margin: 0;
}

.degrader {
    background: #0066B3;
    background: -webkit-linear-gradient(72deg, var(--caq-1) 0%, var(--caq-2) 90%);
    background: -moz-linear-gradient(72deg, var(--caq-1) 0%, var(--caq-2) 90%);
    background: linear-gradient(72deg, var(--caq-1) 0%, var(--caq-2) 90%);
    filter: progid:DXImageTransform.Microsoft.gradient(
    startColorstr="#0066B3",
    endColorstr="#00B6AD",
    GradientType=0
    );
}

main {
    padding: 2rem;
}

.title {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem;
    color: white;
}

.title > p {
    margin: 0;
    text-align: center;
}

.strong {
    font-weight: 800;
}

.small {
    font-size: 400%;
}

.big {
    font-size: 1000%;
}

.large {
    font-size: 700%;
}


.site-header {
        height: 100vh; /* Hauteur initiale plus grande */
        position: sticky;
        top: 0;
        z-index: 100;
        transition: height var(--time-anim) ease-in-out; /* Transition douce pour la hauteur */
}

    .site-header.scrolled {
        height: 15vh; /* Hauteur réduite */
    }

    /* Option avec transformation pour les éléments internes */
    .site-header.scrolled .small {
        font-size: 130%;
    }

    .site-header.scrolled .big {
        font-size: 300%;
    }

    .site-header.scrolled .large {
        font-size: 200%;
    }

section, footer {
    display: flex;
    align-items: center;
    justify-content: start;
    flex-direction: column;
    padding: 2rem;
}

.gray {
    background-color: var(--gray);
}

section .big {
    font-size: xx-large;
}

.caq1 {
    background-color: var(--caq-1);
    color: white;
}

.caq2 {
    background-color: var(--caq-2);
}

#word-cloud {
    padding: 6rem;
}

.colonne, .ligne {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.colonne {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center; /* Ajouté pour centrer */
}

.ligne {
    display: flex;
    flex-direction: row !important;
    gap: 30px;
    width: 100%;
    padding: 0 15px;
    align-items: flex-start !important;
}

.ligne > section {
    width: 100%;
}

button, .btn {
    width: auto;
    background-color: var(--caq-2);
    font-size: larger;
    border-radius: .75rem;
    border: none;
    margin: 0.25rem;
    padding: 0.5rem;
    text-decoration: none;
    color: white;
}

.btn.caq1 
{
    background-color: var(--caq-1);
}

.gap-0 {
    gap: 0;
}

#nuage-mot {
    padding: 20px;
    text-align: center; /* Centrer les mots */
    line-height: 1.5;   /* Améliorer l'espacement vertical */
    margin-top: 20px;
}

input[type="text"], input[type="email"] {
    font-size: 1.1em;
    padding: 10px 15px;
    height: 48px;
    
    border: 2px solid #ccc;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
    
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

input[type="text"]:focus, input[type="email"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); 
    outline: none;
}

label {
    font-size: 1em;
    font-weight: 600;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

span.obligatoire, .obligatoire span
{
    font-size: 90%;
    color: red;
}

#nuage-mot {
    width: 100%; 
    min-height: 400px; /* Assurez-vous d'une hauteur suffisante */
}

#word-cloud-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.feedback-message {
    position: relative;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    line-height: 1.4;
    border: 1px solid transparent;
    text-align: center;
}

.feedback-message.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.feedback-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.feedback-message .close-btn {
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 25px;
    font-weight: 200;
    line-height: 1;
    color: inherit;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.feedback-message .close-btn:hover {
    opacity: 1;
}

#latest-signatures {
    width: 90%; 
    margin: 20px auto;
    padding: 10px;
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px 30px; 
}

.signature-item {
    padding: 5px 0;
    margin: 0;
    border-bottom: none; 
    font-size: 1em;
    text-align: center;
}

#section-signatures {
    border-top: 2px solid var(--caq-1); 
    padding-top: 30px;
}

section.caq2 p, section.caq2 h1 {
    color: white;
}

@media (max-width: 768px) {
    .big {
        font-size: 500%;
    }

    .large {
        font-size: 200%;
    }

    .ligne {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 282px) {
    .big {
        font-size: xx-larger
    }

    .large {
        font-size: x-large;
    }
}