/* ================================================================
   Widget Elementor — Demande de formation
   Calendrier multi-sélection de semaines — design v2
   ================================================================ */

/* ── Wrapper & form ─────────────────────────────────────────────── */
.edf-wrapper     { font-family: inherit; }
.edf-header      { margin-bottom: 28px; }
.edf-title       { margin: 0 0 8px; font-size: 26px; font-weight: 700; line-height: 1.25; color: var(--formations-secondary, #1a1a2e); }
.edf-subtitle    { margin: 0; font-size: 15px; color: #888; line-height: 1.65; }

/* Alertes */
.edf-alert { display:flex; align-items:flex-start; gap:14px; padding:16px 20px; border-radius:10px; margin-bottom:22px; font-size:14px; line-height:1.5; }
.edf-alert svg { flex-shrink:0; margin-top:1px; }
.edf-alert--success { background:#f0fdf4; border:1px solid #bbf7d0; color:#166534; }
.edf-alert--error   { background:#fef2f2; border:1px solid #fecaca; color:#991b1b; }

/* Form fields */
.edf-row      { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px; }
.edf-field    { display:flex; flex-direction:column; gap:7px; margin-bottom:18px; }
.edf-field--full { grid-column:1/-1; }
.edf-field label { font-size:11.5px; font-weight:700; color:#6b7280; letter-spacing:.6px; text-transform:uppercase; }
.edf-required    { color:var(--formations-primary,#012A4A); margin-left:2px; }
.edf-field input,
.edf-field select,
.edf-field textarea {
    width:100%; padding:12px 15px;
    border:1.5px solid #e5e7eb; border-radius:9px;
    background:#fafafa; color:#111;
    font-size:14px; font-family:inherit; box-sizing:border-box;
    transition:border-color .18s, box-shadow .18s, background .18s;
}
.edf-field input::placeholder, .edf-field textarea::placeholder { color:#cbd5e1; }
.edf-field input:focus, .edf-field select:focus, .edf-field textarea:focus {
    outline:none; border-color:var(--formations-primary,#012A4A);
    background:#fff; box-shadow:0 0 0 3px rgba(146,0,59,.08);
}
.edf-field textarea { resize:vertical; min-height:90px; }
.edf-formation-badge { display:inline-flex; align-items:center; gap:9px; background:#f8f9fa; border:1.5px solid #e9ecef; border-radius:9px; padding:11px 15px; font-size:14px; font-weight:600; color:#374151; }
.edf-formation-badge svg { color:var(--formations-primary,#012A4A); }

/* Bouton */
.edf-submit-row { margin-top:10px; }
.edf-btn-submit {
    display:inline-flex; align-items:center; gap:10px;
    padding:14px 30px; background:var(--formations-accent,#61CE70);
    color:#fff; border:none; border-radius:9px;
    font-size:15px; font-weight:700; font-family:inherit; cursor:pointer;
    transition:background .2s, transform .15s, box-shadow .2s;
    box-shadow:0 2px 12px rgba(0,0,0,.12);
}
.edf-btn-submit:hover { background:var(--formations-primary,#012A4A); transform:translateY(-2px); box-shadow:0 6px 20px rgba(0,0,0,.16); color:#fff; }
.edf-btn-submit:active { transform:translateY(0); box-shadow:none; }
.edf-captcha-notice { margin:12px 0 0; font-size:11px; color:#c4c4c4; }
.edf-captcha-notice a { color:#aaa; text-decoration:underline; }

/* ================================================================
   ZONE RÉCAP SEMAINES SÉLECTIONNÉES
   ================================================================ */
.edf-cal-display {
    display:flex; align-items:center; gap:10px; flex-wrap:wrap;
    min-height:50px; padding:12px 16px;
    border:1.5px dashed #d1d5db; border-radius:10px;
    background:#fafafa; margin-bottom:12px;
    transition:all .2s;
}
.edf-cal-ico { width:16px; height:16px; flex-shrink:0; opacity:.4; }
.edf-cal-hint { font-size:13px; color:#aaa; font-style:italic; }
.edf-cal-display.filled { border-style:solid; padding:10px 14px; }

/* Chips */
.edf-chips { display:flex; flex-wrap:wrap; gap:7px; flex:1; }
.edf-chip {
    display:inline-flex; align-items:center; gap:0;
    border-radius:8px; border:1px solid; overflow:hidden;
    font-size:12.5px; font-weight:600;
    transition:opacity .15s;
}
.edf-chip-wn {
    padding:5px 8px; font-size:11px; font-weight:700;
    letter-spacing:.3px; flex-shrink:0;
}
.edf-chip-txt { padding:5px 8px 5px 6px; white-space:nowrap; }
.edf-chip-del {
    display:flex; align-items:center; justify-content:center;
    width:24px; padding:0; border:none; background:transparent;
    cursor:pointer; font-size:16px; opacity:.5;
    transition:background .15s, color .15s, opacity .15s;
}
.edf-chip-del:hover { opacity:1; }
.edf-chips-clr {
    display:flex; align-items:center; justify-content:center;
    width:28px; height:28px; padding:0; background:none; border:none;
    cursor:pointer; color:#bbb; border-radius:6px;
    transition:color .15s; flex-shrink:0;
}
.edf-chips-clr svg { width:14px; height:14px; }

/* ================================================================
   CALENDRIER
   ================================================================ */
.edf-calendar {
    border:1px solid #e9ecef;
    border-radius:16px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 2px 16px rgba(0,0,0,.06);
}
.edf-cal-empty { padding:24px; text-align:center; color:#aaa; font-size:14px; margin:0; }

/* Navigation header */
.edf-cn {
    display:flex; align-items:center; justify-content:space-between;
    padding:18px 22px 14px;
    background:linear-gradient(135deg,#fafafa 0%,#f3f4f6 100%);
    border-bottom:1px solid #f0f0f0;
}
.edf-cn-btn {
    width:36px; height:36px; border:1.5px solid #e5e7eb;
    border-radius:10px; background:#fff; cursor:pointer; color:#6b7280;
    display:flex; align-items:center; justify-content:center;
    transition:all .18s; flex-shrink:0;
    box-shadow:0 1px 3px rgba(0,0,0,.06);
}
.edf-cn-btn svg, .edf-cn-btn svg * { width:18px; height:18px; pointer-events:none; }
.edf-cn-btn[disabled] { opacity:.25; cursor:not-allowed; box-shadow:none; }
.edf-cn-title {
    display:flex; flex-direction:column; align-items:center; gap:2px;
    user-select:none;
}
.edf-cn-month { font-size:17px; font-weight:700; color:#111; letter-spacing:-.3px; text-transform:capitalize; }
.edf-cn-year  { font-size:12px; font-weight:500; color:#9ca3af; letter-spacing:.8px; }

/* Dots pagination */
.edf-cdots { display:flex; justify-content:center; gap:6px; padding:10px 0 8px; background:#fafafa; border-bottom:1px solid #f0f0f0; }
.edf-cdot  { width:7px; height:7px; border-radius:50%; background:#e5e7eb; cursor:pointer; transition:background .2s, transform .2s; }
.edf-cdot.on { transform:scaleX(2.2); border-radius:4px; }

/* Grille */
.edf-cgrid { padding:14px 16px 18px; }

/* Entêtes colonnes */
.edf-chd   { display:grid; grid-template-columns:32px repeat(7,1fr); gap:0; margin-bottom:4px; }
.edf-chd-c { text-align:center; font-size:10.5px; font-weight:700; color:#9ca3af; padding:4px 0; letter-spacing:.6px; text-transform:uppercase; }
.edf-chd-c.we { color:#d1d5db; }
/* Colonne numéro semaine */
.edf-chd::before { content:''; display:block; } /* placeholder */

/* Ligne semaine */
.edf-cweek {
    display:grid; grid-template-columns:32px repeat(7,1fr);
    margin-bottom:3px; border-radius:11px;
    transition:transform .1s;
    position:relative;
}
.edf-cweek.dispo { cursor:pointer; }
.edf-cweek.dispo:active { transform:scale(.992); }
.edf-cweek:focus  { outline:none; }
.edf-cweek:focus-visible { box-shadow:0 0 0 2.5px rgba(100,100,100,.3); border-radius:11px; }

/* Numéro de semaine */
.edf-cwn {
    display:flex; align-items:center; justify-content:center;
    font-size:10px; font-weight:700; letter-spacing:.2px;
}
.edf-cwn span {
    opacity:0; color:#ccc; transition:opacity .15s, color .15s;
    font-variant-numeric:tabular-nums;
}
.edf-cweek.dispo:hover .edf-cwn span,
.edf-cweek.sel .edf-cwn span { opacity:1; }

/* Cellule */
.edf-cc {
    display:flex; align-items:center; justify-content:center;
    height:38px; font-size:13.5px; color:#374151;
    transition:background .15s, color .15s;
    position:relative; user-select:none;
}
.edf-cc.out  { color:#e2e8f0; }
.edf-cc.we   { color:#d1d5db; }
.edf-cc.w    { font-weight:500; }

/* Indicateur aujourd'hui */
.edf-cc.today::after {
    content:''; position:absolute; bottom:5px; left:50%;
    transform:translateX(-50%);
    width:4px; height:4px; border-radius:50%;
}

/* Placeholder preview Elementor editor */
.edf-cal-preview-placeholder {
    height:240px; border-radius:16px; border:1px solid #e9ecef;
    background:#fafafa; position:relative; overflow:hidden;
}
.edf-cal-preview-placeholder::before {
    content:''; position:absolute; inset:0;
    background:repeating-linear-gradient(0deg,transparent,transparent 37px,#f0f0f0 37px,#f0f0f0 38px);
}
.edf-cal-preview-placeholder::after {
    content:'Calendrier'; position:absolute; top:50%; left:50%;
    transform:translate(-50%,-50%);
    font-size:13px; color:#ccc; letter-spacing:.5px; font-weight:600;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width:600px) {
    .edf-row    { grid-template-columns:1fr; }
    .edf-cc     { height:33px; font-size:12px; }
    .edf-cn     { padding:14px 16px 12px; }
    .edf-cn-month { font-size:15px; }
    .edf-cgrid  { padding:10px 10px 14px; }
    .edf-chip-txt { font-size:11.5px; }
    .edf-cwn    { display:none; }
    .edf-chd    { grid-template-columns:repeat(7,1fr); }
    .edf-cweek  { grid-template-columns:repeat(7,1fr); }
}/* ── Calendrier ── */
.edf-cal-wrap { background:#fff; border:1px solid #e8e8e8; border-radius:10px; overflow:hidden; margin-top:4px; }

.edf-cal-nav { display:flex; align-items:center; justify-content:space-between; padding:12px 16px; background:#fafafa; border-bottom:1px solid #eee; }
.edf-cal-mois-label { font-size:15px; font-weight:700; color:#111; text-transform:capitalize; }
.edf-cal-btn-prev,
.edf-cal-btn-next {
    width:32px; height:32px; border:1.5px solid #e0e0e0; border-radius:7px;
    background:#fff; cursor:pointer; color:#444; font-size:20px; line-height:1;
    display:flex; align-items:center; justify-content:center; padding:0;
    transition:border-color .15s, color .15s;
}
.edf-cal-btn-prev:hover:not(:disabled),
.edf-cal-btn-next:hover:not(:disabled) { border-color:#aaa; color:#111; }
.edf-cal-btn-prev:disabled,
.edf-cal-btn-next:disabled { opacity:.25; cursor:not-allowed; }

.edf-cal-dots { display:flex; justify-content:center; gap:6px; padding:8px 0; background:#fafafa; border-bottom:1px solid #eee; }
.edf-cal-dot  { width:7px; height:7px; border-radius:50%; background:#e0e0e0; transition:background .2s, transform .2s; }
.edf-cal-dot.on { transform:scaleX(2.2); border-radius:4px; }

.edf-cal-panel { padding:10px 14px 14px; }

.edf-cal-hdr { display:grid; grid-template-columns:28px repeat(7,1fr); margin-bottom:4px; }
.edf-cal-hdr-wn { }
.edf-cal-hdr-j  { text-align:center; font-size:10px; font-weight:700; color:#9ca3af; padding:3px 0; letter-spacing:.4px; text-transform:uppercase; }
.edf-cal-hdr-j.we { color:#d1d5db; }

.edf-cal-week { display:grid; grid-template-columns:28px repeat(7,1fr); border-radius:6px; margin-bottom:1px; }
.edf-cal-week.dispo { cursor:pointer; }

.edf-cal-wn { display:flex; align-items:center; justify-content:center; font-size:9px; color:#ccc; font-weight:700; }
.edf-cal-week.dispo .edf-cal-wn { color:#bbb; }

.edf-cal-cell { text-align:center; padding:6px 2px; font-size:13px; color:#333; display:flex; align-items:center; justify-content:center; min-height:30px; transition:background .1s, color .1s; }
.edf-cal-cell.out  { color:#ddd; }
.edf-cal-cell.we   { color:#ccc; }
.edf-cal-cell.ouvre { font-weight:500; }

.edf-cal-display { display:flex; align-items:center; gap:8px; padding:9px 12px; border:1.5px dashed #ccc; border-radius:7px; font-size:13px; color:#999; margin-bottom:10px; min-height:40px; transition:all .2s; }
.edf-cal-display.sel { border-style:solid; font-size:14px; }


