/**
 * LIGE - Styles custom
 * Palette : violet (#6A0DAD) + gris foncé (#333) + blanc
 */

/* === Base === */
body {
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.7;
}

/* === Header / Logo === */
.lige-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.5rem 1rem;
}

.lige-header img {
    height: 80px;
    width: auto;
}

/* === Accès espace client === */
.lige-acces {
    position: relative;
    text-align: right;
}

.lige-header .lige-nom {
    font-size: 1.7rem;
    font-weight: 600;
    color: #6A0DAD;
    letter-spacing: 0.05em;
    text-transform: lowercase;
    cursor: pointer;
    user-select: none;
}

.lige-header .lige-nom:hover {
    opacity: 0.7;
}

.lige-espace {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    background: #fff;
    border: 1px solid #e0d5eb;
    border-radius: 6px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(106, 13, 173, 0.1);
    z-index: 100;
    white-space: nowrap;
}

.lige-espace.open {
    display: block;
}

.lige-espace label {
    display: block;
    font-size: 0.85rem;
    color: #6A0DAD;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.lige-espace-form {
    display: flex;
    gap: 0.4rem;
}

.lige-espace-form input {
    width: 140px;
    padding: 0.4rem 0.6rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
}

.lige-espace-form input:focus {
    border-color: #6A0DAD;
    outline: none;
    box-shadow: 0 0 0 2px rgba(106, 13, 173, 0.15);
}

.lige-espace-form button {
    padding: 0.4rem 0.8rem;
    background: #6A0DAD;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
}

.lige-espace-form button:hover {
    background: #5a0b93;
}

/* === Contenu page d'accueil === */
.lige-accueil {
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem 1.5rem 4rem;
}

.lige-accueil h1 {
    color: #6A0DAD;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.lige-accueil h2 {
    color: #6A0DAD;
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.lige-accueil p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.lige-accueil strong {
    color: #222;
}

/* Phrase mise en valeur */
.lige-accueil .mise-en-avant {
    font-size: 1.15rem;
    font-weight: 500;
    color: #6A0DAD;
    margin: 1.5rem 0;
}

/* === Bloc services === */
.lige-service {
    margin-bottom: 1.2rem;
}

.lige-service strong {
    color: #6A0DAD;
}

/* === Bloc contact === */
.lige-contact {
    margin-top: 3rem;
    padding: 2rem;
    background: #f9f7fc;
    border-left: 4px solid #6A0DAD;
}

.lige-contact h2 {
    margin-top: 0;
}

.lige-contact .lige-coordonnees {
    font-size: 1.1rem;
    font-weight: 500;
    color: #6A0DAD;
    margin: 1rem 0;
}

.lige-contact-note {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
    margin-top: 0.5rem;
}

/* === Formulaire CF7 === */
.lige-contact .wpcf7 {
    margin-top: 1.5rem;
}

.lige-contact .wpcf7 input[type="text"],
.lige-contact .wpcf7 input[type="email"],
.lige-contact .wpcf7 input[type="tel"],
.lige-contact .wpcf7 textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    margin-bottom: 0.8rem;
    box-sizing: border-box;
}

.lige-contact .wpcf7 input:focus,
.lige-contact .wpcf7 textarea:focus {
    border-color: #6A0DAD;
    outline: none;
    box-shadow: 0 0 0 2px rgba(106, 13, 173, 0.15);
}

.lige-contact .wpcf7 textarea {
    min-height: 100px;
    resize: vertical;
}

.lige-contact .wpcf7 .wpcf7-submit {
    display: none; /* Caché, le captcha emoji soumet */
}

.lige-contact .wpcf7-response-output {
    border: none !important;
    padding: 0.8rem 0 !important;
    margin: 0 !important;
    font-size: 0.95rem;
}

.lige-contact a {
    color: #6A0DAD;
    text-decoration: none;
    border-bottom: 1px solid #6A0DAD;
}

.lige-contact a:hover {
    opacity: 0.8;
}

/* === Liens === */
.lige-accueil a {
    color: #6A0DAD;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.lige-accueil a:hover {
    opacity: 0.8;
}

/* === Footer === */
.lige-footer {
    max-width: 960px;
    margin: 0 auto;
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
}

.lige-footer a {
    color: #999;
    text-decoration: none;
    margin: 0 1rem;
}

.lige-footer a:hover {
    color: #6A0DAD;
}

/* === Responsive === */
@media (max-width: 600px) {
    .lige-header {
        padding: 1.5rem 1rem 0.5rem;
    }

    .lige-header img {
        height: 45px;
    }

    .lige-accueil {
        padding: 1rem 1rem 3rem;
    }

    .lige-accueil h1 {
        font-size: 1.6rem;
    }

    .lige-accueil h2 {
        font-size: 1.2rem;
    }
}
