@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Base ──────────────────────────────────────────────────────────────── */
.peche-app *, .peche-app *::before, .peche-app *::after { box-sizing: border-box; margin: 0; padding: 0; }
.peche-app {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    max-width: 560px;
    margin: 0 auto;
    color: #1c1c1c;
    line-height: 1.4;
}

/* ── Étapes ────────────────────────────────────────────────────────────── */
.peche-steps-nav {
    display: flex;
    align-items: center;
    margin-bottom: 1.6rem;
}
.peche-sdot {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    flex-shrink: 0;
}
.peche-sdot span {
    width: 26px; height: 26px; border-radius: 50%;
    border: 1.5px solid #d4d4d4;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 600; color: #aaa;
    transition: all .2s;
}
.peche-sdot small { font-size: 9px; color: #bbb; text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; }
.peche-sdot.active span  { background: #1a5c45; border-color: #1a5c45; color: #fff; }
.peche-sdot.active small { color: #1a5c45; font-weight: 600; }
.peche-sdot.done span    { background: #e8f5f0; border-color: #4caf8a; color: #1a5c45; }
.peche-sdot.done small   { color: #4caf8a; }
.peche-sline { flex: 1; height: 1px; background: #e5e5e5; margin: 0 4px 14px; transition: background .3s; min-width: 8px; }
.peche-sline.done { background: #4caf8a; }

/* ── Panels ────────────────────────────────────────────────────────────── */
.peche-panel { animation: pIn .18s ease; }
@keyframes pIn { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:none; } }
.peche-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111;
}
.peche-subtitle { font-size: 12px; color: #888; margin-bottom: .8rem; }

/* ── Règles ────────────────────────────────────────────────────────────── */
.peche-rules-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 1rem;
}
.peche-rule {
    display: flex; gap: 8px; align-items: flex-start;
    border-radius: 6px; padding: 8px 10px;
    border: 1px solid; font-size: 12px;
}
.peche-rule > span:first-child { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.peche-rule strong { display: block; font-weight: 600; font-size: 12px; margin-bottom: 2px; }
.peche-rule small { font-size: 11px; color: #666; line-height: 1.5; }
.peche-rule small em { font-style: normal; }
.peche-rule-tel { color: #1a5c45; font-weight: 600; text-decoration: none; }
.peche-rule-tel:hover { text-decoration: underline; }
.peche-rule--semaine { background: #f0f6ff; border-color: #c7dcf7; }
.peche-rule--weekend { background: #fffbf0; border-color: #f5dfa0; }
.peche-rule--info    { background: #f5f3ff; border-color: #d0cafc; }
.peche-rule--priv    { background: #f0faf5; border-color: #b2dfc9; }

/* ── Calendrier ────────────────────────────────────────────────────────── */
.peche-cal-nav {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 8px;
}
.peche-cal-nav button {
    background: #fff; border: 1px solid #e0e0e0;
    width: 28px; height: 28px; border-radius: 6px;
    font-size: 15px; cursor: pointer; color: #555;
    display: flex; align-items: center; justify-content: center;
    transition: all .12s;
}
.peche-cal-nav button:hover { border-color: #4caf8a; color: #1a5c45; }
.peche-month { font-size: 13px; font-weight: 600; }

.peche-cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; }
.p-hdr { text-align: center; font-size: 10px; font-weight: 600; color: #bbb; padding: 4px 0; text-transform: uppercase; letter-spacing: .3px; }
.p-hdr.we { color: #9090e0; }
.p-day {
    aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
    border-radius: 5px; font-size: 12px; cursor: pointer;
    border: 1.5px solid transparent; transition: all .1s;
    position: relative; user-select: none;
}
.p-day.empty,.p-day.past { cursor: default; color: #d4d4d4; }
.p-day.wday:not(.past):hover { background: #f0f6ff; border-color: #93c5e8; color: #1d5fa5; }
.p-day.wend:not(.past) { color: #6060c8; }
.p-day.wend:not(.past):hover { background: #f5f3ff; border-color: #b0a8f0; }
.p-day.today { font-weight: 700; }
.p-day.sel { background: #1a5c45 !important; color: #fff !important; border-color: #1a5c45 !important; font-weight: 600; }
.p-day.full::after {
    content:''; position:absolute; bottom:2px;
    width:4px; height:4px; border-radius:50%; background:#e05050;
}
.peche-cal-legend { font-size: 11px; color: #aaa; margin-top: 6px; }
.dot { display:inline-block; width:6px; height:6px; border-radius:50%; margin-right:3px; vertical-align:middle; }
.dot-f { background: #4caf8a; }
.dot-b { background: #e05050; }

/* ── Session cards ─────────────────────────────────────────────────────── */
.peche-session-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: .8rem 0; }
.peche-scard {
    border: 1.5px solid #e0e0e0; border-radius: 8px;
    padding: 14px 12px; cursor: pointer; text-align: center;
    transition: all .15s;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.peche-scard:hover:not(.disabled) { border-color: #4caf8a; background: #f8fdfb; }
.peche-scard.sel      { border-color: #1a5c45; background: #edf7f3; }
.peche-scard.disabled { opacity: .3; cursor: not-allowed; pointer-events: none; }
.peche-scard-icon  { font-size: 1.5rem; }
.peche-scard-name  { font-weight: 600; font-size: 13px; }
.peche-scard-hours { font-size: 11px; color: #888; }
.peche-scard-price { font-size: 12px; font-weight: 600; color: #1a5c45; margin-top: 2px; }

/* ── Nuits picker ──────────────────────────────────────────────────────── */
.peche-nuits-picker { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.peche-nuit-btn, .peche-pech-btn {
    width: 36px; height: 36px; border-radius: 6px;
    border: 1.5px solid #e0e0e0; background: #fff;
    font-size: 13px; font-weight: 600; cursor: pointer;
    transition: all .12s; color: #555;
}
.peche-nuit-btn:hover, .peche-pech-btn:hover { border-color: #4caf8a; color: #1a5c45; }
.peche-nuit-btn.sel, .peche-pech-btn.sel   { background: #1a5c45; border-color: #1a5c45; color: #fff; }

/* ── Panier ────────────────────────────────────────────────────────────── */
.peche-panier {
    background: #f7fcf9;
    border: 1px solid #b2dfc9;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 1rem;
}
.peche-panier-title {
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .8px;
    color: #1a5c45; margin-bottom: 6px;
}
.peche-panier-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 5px 0; border-bottom: 1px solid #d6f0e4;
    gap: 8px;
}
.peche-panier-item:last-of-type { border-bottom: none; }
.peche-panier-item-label { font-weight: 500; font-size: 12px; flex: 1; }
.peche-panier-item-nb { display: flex; align-items: center; gap: 5px; }
.peche-nb-btn {
    width: 22px; height: 22px; border-radius: 50%;
    border: 1px solid #4caf8a; background: #fff;
    color: #1a5c45; font-size: 14px; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    line-height: 1;
}
.peche-nb-val { font-weight: 600; min-width: 16px; text-align: center; font-size: 12px; }
.peche-panier-item-prix { font-weight: 600; color: #1a5c45; font-size: 12px; white-space: nowrap; }
.peche-panier-item-del {
    background: transparent; border: none;
    color: #ccc; cursor: pointer; font-size: 16px;
    line-height: 1; padding: 0; transition: color .12s;
}
.peche-panier-item-del:hover { color: #e05050; }
.peche-panier-total {
    font-size: 12px; font-weight: 600; color: #1a5c45;
    text-align: right; padding-top: 6px;
    border-top: 1px solid #b2dfc9; margin-top: 5px;
}

/* ── Grille postes ─────────────────────────────────────────────────────── */
.peche-lac-group { margin-bottom: 1rem; }
.peche-lac-title {
    font-size: 10px; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase;
    color: #999; margin-bottom: 6px;
    padding-bottom: 4px; border-bottom: 1px solid #f0f0f0;
}
.peche-postes-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 6px; }
.peche-pcard-poste {
    border: 1.5px solid #e0e0e0; border-radius: 7px;
    padding: 8px 4px; text-align: center; cursor: pointer;
    transition: all .12s;
}
.peche-pcard-poste:hover:not(.unavail) { border-color: #4caf8a; background: #f7fcf9; }
.peche-pcard-poste.inpanier { border-color: #1a5c45; background: #1a5c45; color: #fff; }
.peche-pcard-poste.unavail  { opacity: .3; cursor: not-allowed; pointer-events: none; }
.peche-pcard-poste .p-icon  { font-size: 1.1rem; display: block; margin-bottom: 3px; }
.peche-pcard-poste .p-lbl   { font-size: 10px; font-weight: 600; line-height: 1.3; }
.peche-pcard-poste .p-full  { font-size: 9px; font-weight: 400; opacity: .6; }

/* ── Récap ─────────────────────────────────────────────────────────────── */
.peche-recap {
    background: #f9f9f9; border: 1px solid #ebebeb;
    border-radius: 7px; padding: 10px 13px; margin: .8rem 0;
}
.peche-recap-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; padding: 4px 0; border-bottom: 1px solid #f0f0f0;
}
.peche-recap-row:last-child { border-bottom: none; }
.peche-recap-row span { color: #999; }
.peche-recap-row strong { font-weight: 600; }
.peche-recap-total { font-size: 13px; padding-top: 8px; margin-top: 3px; }
.peche-recap-total strong { color: #1a5c45; }

/* ── Formulaire ────────────────────────────────────────────────────────── */
.peche-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.peche-fgroup { margin-bottom: .8rem; }
.peche-fgroup label {
    display: block; font-size: 11px; font-weight: 500;
    color: #888; margin-bottom: 4px; letter-spacing: .3px;
}
.peche-input, .peche-select {
    width: 100%; padding: 8px 10px;
    border: 1px solid #ddd; border-radius: 6px;
    font-family: 'Inter', sans-serif; font-size: 13px;
    color: #1c1c1c; background: #fff; transition: border-color .12s;
}
.peche-input:focus, .peche-select:focus {
    outline: none; border-color: #4caf8a;
    box-shadow: 0 0 0 2px rgba(76,175,138,.1);
}

/* ── Cards paiement ────────────────────────────────────────────────────── */
.peche-paiement-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: .8rem 0; }
.peche-pcard {
    border: 1.5px solid #e0e0e0; border-radius: 8px;
    padding: 16px 14px; cursor: pointer; text-align: center;
    transition: all .15s;
}
.peche-pcard:hover   { border-color: #4caf8a; background: #f8fdfb; }
.peche-pcard.sel     { border-color: #1a5c45; background: #edf7f3; }
.peche-pcard-icon    { font-size: 1.6rem; margin-bottom: 6px; }
.peche-pcard-title   { font-weight: 600; font-size: 13px; margin-bottom: 3px; }
.peche-pcard-amount  { font-size: 1.3rem; font-weight: 700; color: #1a5c45; margin: 6px 0; }
.peche-pcard-desc    { font-size: 11px; color: #999; }

/* ── Notices ───────────────────────────────────────────────────────────── */
.peche-notice { border-radius: 6px; padding: 8px 12px; font-size: 12px; margin: 8px 0; border: 1px solid; }
.peche-notice-i { background: #f0f6ff; border-color: #c7dcf7; color: #2563a8; }
.peche-notice-w { background: #fffbf0; border-color: #f5dfa0; color: #92601a; }
.peche-notice-e { background: #fff5f5; border-color: #fcc; color: #c53030; }

/* ── Boutons ───────────────────────────────────────────────────────────── */
.peche-actions { display: flex; gap: 8px; margin-top: 1rem; }
.peche-btn {
    padding: 9px 18px; border-radius: 6px;
    font-family: 'Inter', sans-serif; font-size: 13px;
    font-weight: 600; cursor: pointer;
    transition: all .15s; border: 1.5px solid;
}
.peche-btn-p { background: #1a5c45; border-color: #1a5c45; color: #fff; flex: 1; }
.peche-btn-p:hover:not(:disabled) { background: #20714f; border-color: #20714f; }
.peche-btn-p:disabled { opacity: .35; cursor: not-allowed; }
.peche-btn-g { background: transparent; border-color: #ccc; color: #555; }
.peche-btn-g:hover { border-color: #999; color: #333; }

/* ── Spinner ───────────────────────────────────────────────────────────── */
.peche-loading-full { text-align: center; padding: 2.5rem; color: #aaa; }
.peche-loading-inline { display: flex; align-items: center; gap: 8px; color: #aaa; font-size: 12px; padding: .8rem 0; }
.peche-spinner    { width: 32px; height: 32px; border: 2.5px solid #eee; border-top-color: #1a5c45; border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto .8rem; }
.peche-spinner-sm { width: 14px; height: 14px; border: 2px solid #eee; border-top-color: #1a5c45; border-radius: 50%; animation: spin .8s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .peche-rules-grid, .peche-session-grid, .peche-paiement-grid { grid-template-columns: 1fr; }
    .peche-rule--weekend { grid-column: 1; }
    .peche-form-row { grid-template-columns: 1fr; }
    .peche-postes-grid { grid-template-columns: repeat(3,1fr); }
    .peche-sdot small { display: none; }
}


