/* =====================================================
   Plugin Recrutement Maison — Styles
   ===================================================== */

/* ----- Wrapper général ----- */
.rec-wrapper {
    max-width: 720px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

/* ----- En-tête avec logo ----- */
.rec-header {
    background: #1a3a5c;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.rec-header-text {
    flex: 1;
    min-width: 160px;
}
.rec-logo {
    height: 52px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    padding: 4px;
    flex-shrink: 0;
}
@media (max-width: 600px) {
    .rec-header { flex-direction: column; }
    .rec-logo { max-width: 160px; }
}
.rec-header-text h2 {
    color: #fff;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}
.rec-header-text p {
    color: rgba(255,255,255,0.75);
    margin: 4px 0 0;
    font-size: 13px;
}

/* ----- Formulaire ----- */
.rec-form {
    padding: 28px 32px 32px;
}

.rec-section-titre {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #888;
    margin: 22px 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}
.rec-section-titre:first-child { margin-top: 0; }

.rec-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 540px) {
    .rec-row-2 { grid-template-columns: 1fr; }
}

.rec-champ { margin-bottom: 16px; }
.rec-champ label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    margin-bottom: 5px;
}
.rec-champ input[type="text"],
.rec-champ input[type="email"],
.rec-champ input[type="tel"],
.rec-champ select,
.rec-champ textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: border-color .2s;
}
.rec-champ input:focus,
.rec-champ select:focus,
.rec-champ textarea:focus {
    border-color: #1a3a5c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26,58,92,0.1);
}
.rec-champ textarea { resize: vertical; min-height: 100px; }
.rec-req { color: #c0392b; }

/* ----- Zone upload fichiers ----- */
.rec-fichiers-grille {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}
@media (max-width: 540px) {
    .rec-fichiers-grille { grid-template-columns: 1fr; }
}

.rec-upload-zone {
    border: 1.5px dashed #c8d5e0;
    border-radius: 8px;
    padding: 14px;
    background: #f7fafc;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transition: border-color .2s;
}
.rec-upload-zone:hover { border-color: #1a3a5c; }
.rec-upload-icon {
    font-size: 20px;
    color: #1a3a5c;
    margin-top: 2px;
    flex-shrink: 0;
}
.rec-upload-label {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}
.rec-upload-hint {
    font-size: 11px;
    color: #999;
}
.rec-upload-zone input[type="file"] {
    font-size: 12px;
    color: #555;
    margin-top: 4px;
    width: 100%;
}

/* ----- RGPD ----- */
.rec-rgpd label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #555;
    font-weight: 400;
}
.rec-rgpd input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}

/* ----- Bouton principal ----- */
.rec-bouton-soumettre {
    display: block;
    width: 100%;
    padding: 13px;
    background: #1a3a5c;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: background .2s, transform .1s;
}
.rec-bouton-soumettre:hover  { background: #22507f; }
.rec-bouton-soumettre:active { transform: scale(0.99); }
.rec-bouton-soumettre:disabled {
    background: #a0b0c0;
    cursor: not-allowed;
}

/* ----- Messages erreur / succès ----- */
.rec-erreurs {
    margin: 0 32px 16px;
    padding: 12px 16px;
    background: #fdf0f0;
    border-left: 4px solid #c0392b;
    border-radius: 4px;
    font-size: 14px;
    color: #c0392b;
}
.rec-succes {
    text-align: center;
    padding: 48px 32px;
}
.rec-succes-icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 28px;
    margin-bottom: 16px;
}
.rec-succes h3 { font-size: 22px; color: #333; margin: 0 0 8px; }
.rec-succes p  { font-size: 15px; color: #666; }

/* ----- Espace jury ----- */
.rec-jury-carte {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 22px;
    margin-bottom: 16px;
}
.rec-jury-carte-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}
.rec-jury-motivation {
    font-size: 13px;
    color: #555;
    background: #f7f9fc;
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 14px;
    line-height: 1.6;
}
.rec-jury-fichiers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.rec-fichier-btn {
    display: inline-block;
    padding: 6px 14px;
    background: #eef3f8;
    color: #1a3a5c;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: background .2s;
}
.rec-fichier-btn:hover { background: #d0e0ef; }

/* ----- Notation étoiles ----- */
.rec-notation-etoiles {
    display: flex;
    align-items: center;
    gap: 4px;
}
.rec-notation-etoiles label:first-child {
    font-size: 13px;
    color: #555;
    margin-right: 8px;
}
.rec-etoile input[type="radio"] { display: none; }
.rec-etoile span {
    font-size: 26px;
    color: #ddd;
    cursor: pointer;
    transition: color .15s;
}
.rec-etoile input:checked ~ span,
.rec-etoile:hover span,
.rec-etoile:hover ~ .rec-etoile span { color: #ddd; }

/* Astuce CSS : inverser la sélection étoiles avec flex-direction row-reverse */
.rec-notation-etoiles .rec-etoile {
    display: flex;
    flex-direction: row-reverse;
}
.rec-etoile input:checked + span { color: #f0a500; }
.rec-notation-etoiles:has(.rec-etoile input:checked) .rec-etoile input:checked + span,
.rec-notation-etoiles:has(.rec-etoile:hover) .rec-etoile:hover + span { color: #f0a500; }

/* Accès refusé */
.rec-jury-accès {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 15px;
}

/* =====================================================
   Styles spécifiques formulaire concours EHTP
   ===================================================== */

/* Titre et description du concours */
.rec-concours-header {
    padding: 28px 32px 20px;
    border-bottom: 1px solid #eee;
}
.rec-concours-titre {
    font-size: 18px;
    font-weight: 700;
    color: #1a3a5c;
    line-height: 1.4;
    margin: 0 0 12px;
    text-transform: uppercase;
}
.rec-concours-desc {
    font-size: 14px;
    color: #555;
    margin: 0;
    line-height: 1.6;
}

/* Cartes de champs style Google Forms */
.rec-champ-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 0 32px 16px;
}
.rec-champ-card label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.5;
}
.rec-champ-card input[type="text"],
.rec-champ-card input[type="email"] {
    width: 100%;
    box-sizing: border-box;
    border: none;
    border-bottom: 1px solid #999;
    padding: 6px 0;
    font-size: 14px;
    color: #333;
    background: transparent;
    outline: none;
    transition: border-color .2s;
}
.rec-champ-card input[type="text"]:focus,
.rec-champ-card input[type="email"]:focus {
    border-bottom: 2px solid #1a3a5c;
}

/* Section info (titre dossier) */
.rec-section-info {
    background: #f8f9fa;
    border-left: 4px solid #1a3a5c;
}
.rec-section-info strong {
    font-size: 14px;
    color: #1a3a5c;
}

/* Liste des pièces */
.rec-liste-pieces {
    font-size: 13px;
    color: #444;
    margin: 0 0 16px 0;
    padding-left: 20px;
    line-height: 1.8;
}
.rec-liste-pieces li { margin-bottom: 2px; }

/* Radio buttons style Google Forms */
.rec-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.rec-radio-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-weight: 400 !important;
    margin-bottom: 0 !important;
}
.rec-radio-option input[type="radio"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: #1a3a5c;
    cursor: pointer;
}
.rec-radio-option span {
    font-size: 13px;
    color: #333;
    line-height: 1.6;
}

/* Zone upload style Google Forms */
.rec-champ-card .rec-upload-zone {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px 16px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    width: fit-content;
}
.rec-champ-card .rec-upload-hint {
    font-size: 11px;
    color: #999;
    margin-top: 3px;
}
.rec-champ-card .rec-upload-label {
    font-size: 13px;
    color: #1a3a5c;
    font-weight: 500;
    margin-bottom: 2px;
}
.rec-champ-card .rec-upload-icon {
    font-size: 18px;
    color: #1a3a5c;
}
.rec-champ-card input[type="file"] {
    font-size: 12px;
    color: #555;
    margin-top: 4px;
}

/* Note email copie */
.rec-email-copy-note {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin: 8px 32px 16px;
}

/* Bouton envoyer style Google Forms */
.rec-form .rec-bouton-soumettre {
    margin: 0 32px 32px;
    width: auto;
    padding: 10px 32px;
    background: #1a3a5c;
    font-size: 14px;
    border-radius: 4px;
    display: inline-block;
}

/* RGPD dans le formulaire */
.rec-form .rec-rgpd {
    margin: 0 32px 16px;
}
