/*
Theme Name: Kadence Child
Template: kadence
Version: 1.0
*/

body {
    background-color: #FAF6EF;
    color: #3D2B1F;
}

/* Badge "Professionnel" avec bulle d'info (checkbox hack, pas de JS, fonctionne au tap sur mobile) */
.badge-pro-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.badge-pro-toggle {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.badge-professionnel {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #C8963E;
    color: #fff;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 0.3rem 0.75rem;
    border-radius: 12px;
    cursor: pointer;
    user-select: none;
}

.badge-pro-icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    font-size: 0.7rem;
    font-style: italic;
    font-weight: bold;
}

.badge-pro-popup {
    display: none;
    position: absolute;
    z-index: 20;
    top: calc(100% + 0.5rem);
    left: 0;
    width: 280px;
    max-width: 80vw;
    background: #FFFDF8;
    border: 1px solid #E4D9C4;
    border-left: 3px solid #C8963E;
    border-radius: 6px;
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
    font-weight: normal;
    line-height: 1.4;
    color: #3D2B1F;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    text-align: justify;
}

.badge-pro-popup .surlignage {
    background: #ffff00;
    color: #000;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-weight: normal;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.badge-pro-toggle:checked ~ .badge-pro-popup {
    display: block;
}

.badge-pro-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 15;
    cursor: default;
}

.badge-pro-toggle:checked ~ .badge-pro-overlay {
    display: block;
}

.lien-code-html {
    cursor: pointer;
    color: #2563eb !important;
    list-style: none !important;
    display: flex !important;
    align-items: center;
}

.lien-code-html::-webkit-details-marker {
    display: none !important;
}

.lien-code-html::before {
    content: "▸";
    color: #2563eb !important;
    font-size: 2.6em;
    font-weight: bold;
    line-height: 1;
    margin-right: 0.3rem;
}

details[open] > .lien-code-html::before {
    content: "▾";
}

.lien-site-professionnel {
    display: inline-block;
    color: #B0562C;
    font-weight: bold;
    font-size: 0.9rem;
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'PT Serif', Georgia, 'Times New Roman', serif !important;
    color: #3D2B1F;
}

a {
    color: #B0562C;
    text-decoration: none;
}

a:hover {
    color: #2C3E50;
    text-decoration: underline;
}

.hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem 0 2rem 0;
    border-radius: 6px;
}

.liste-departements a {
    color: #3D2B1F;
    display: block;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.liste-departements a:hover {
    background-color: #E4D9C4;
    text-decoration: none;
}

.fiche-postulant {
    background-color: #FFFDF8;
    border-color: #E4D9C4;
}

.fiche-postulant a {
    color: #B0562C;
    font-weight: bold;
}

form button[type="submit"] {
    background-color: #B0562C;
    transition: background-color 0.2s;
}

form button[type="submit"]:hover {
    background-color: #2C3E50;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    border: 1px solid #E4D9C4;
    border-radius: 4px;
    background-color: #FFFDF8;
}

fieldset {
    border-color: #E4D9C4;
    background-color: #FFFDF8;
}

.carte-departement {
    transition: box-shadow 0.2s, transform 0.2s;
}

.carte-departement:hover {
    box-shadow: 0 6px 16px rgba(176, 86, 44, 0.35);
    transform: translateY(-3px);
    border-color: #B0562C !important;
    text-decoration: none !important;
}

.carte-departement span {
    text-decoration: none;
}

.hero-boutons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-bouton {
    box-sizing: border-box !important;
    flex: 1 1 200px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    padding: 0.9rem 1rem !important;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none !important;
    font-size: 1rem;
    line-height: 1.2 !important;
}

.hero-bouton-principal {
    background: #fff !important;
    color: #B0562C !important;
}

.hero-bouton-facebook {
    background: #1877F2 !important;
    color: #fff !important;
}

.bouton-appel {
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: #fff !important;
    color: #B0562C !important;
    padding: 0.9rem 1.5rem !important;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none !important;
    margin-top: 0.5rem;
}

.bouton-appel-plein {
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: #B0562C !important;
    color: #fff !important;
    padding: 0.9rem 1.5rem !important;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none !important;
    margin-top: 0.5rem;
    transition: background 0.2s;
}

.bouton-appel-plein:hover {
    background: #2C3E50 !important;
}
