/* =========================================================================
 * Pages clubs : « Ouvrir la boutique de votre club » et « Comment commander »
 * (page-boutique-club.php, page-comment-commander.php). Tout est scopé sous .cp.
 * ========================================================================= */

.cp {
    --cp-ink: #0b0b14;
    --cp-navy: #12126b;
    --cp-navy-600: #1c1c86;
    --cp-navy-050: #eef0fb;
    --cp-surface: #f6f7f9;
    --cp-line: rgba(12, 12, 30, 0.1);
    --cp-line-strong: rgba(12, 12, 30, 0.18);
    --cp-muted: #5b5b6b;
    --cp-ok: #1f7a46;
    --cp-err: #b42318;
    --cp-ease: cubic-bezier(0.23, 1, 0.32, 1);
    color: var(--cp-ink);
    background: #fff;
    overflow-x: clip;
}

.cp *,
.cp *::before,
.cp *::after {
    box-sizing: border-box;
}

.cp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 640px) {
    .cp-container {
        padding: 0 24px;
    }
}

.cp-narrow {
    max-width: 860px;
}

.cp-section {
    padding: clamp(56px, 8vw, 104px) 0;
}

.cp-section--surface {
    background: var(--cp-surface);
}

.cp h1,
.cp h2,
.cp h3 {
    margin: 0;
    letter-spacing: -0.01em;
}

/* ---------- Typo ---------- */
.cp-eyebrow {
    margin: 0 0 16px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cp-navy);
}

.cp-display {
    font-family: 'Anton', 'Arial Narrow', system-ui, sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(2.4rem, 6.4vw, 4.6rem);
    line-height: 0.95;
    letter-spacing: 0.005em;
    text-wrap: balance;
}

.cp-display span {
    color: var(--cp-navy);
}

.cp-lead {
    margin: 20px 0 0;
    font-size: clamp(1.02rem, 1.6vw, 1.15rem);
    line-height: 1.6;
    color: var(--cp-muted);
    max-width: 38rem;
    text-wrap: pretty;
}

.cp-head {
    max-width: 640px;
    margin: 0 0 clamp(28px, 4vw, 44px);
}

.cp-title {
    font-family: 'Anton', system-ui, sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(1.9rem, 4.2vw, 2.9rem);
    line-height: 1;
}

.cp-head p {
    margin: 14px 0 0;
    color: var(--cp-muted);
    font-size: 1.03rem;
    line-height: 1.6;
}

.cp-small {
    margin: 16px 0 0;
    font-size: 0.86rem;
    color: var(--cp-muted);
}

/* ---------- Boutons ---------- */
.cp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.cp-actions--center {
    justify-content: center;
}

.cp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 14px 24px;
    border-radius: 999px;
    border: 1.5px solid var(--cp-navy);
    background: var(--cp-navy);
    color: #fff;
    font: inherit;
    font-weight: 700;
    font-size: 0.96rem;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--cp-ease);
}

.cp-btn:active {
    transform: scale(0.97);
}

.cp-btn--ghost {
    background: transparent;
    color: var(--cp-ink);
    border-color: var(--cp-line-strong);
}

.cp-btn--light {
    background: #fff;
    color: var(--cp-navy);
    border-color: #fff;
}

.cp-btn--outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

.cp-btn--block {
    width: 100%;
}

@media (hover: hover) and (pointer: fine) {
    .cp-btn:hover {
        background: var(--cp-navy-600);
        border-color: var(--cp-navy-600);
    }
    .cp-btn--ghost:hover {
        background: var(--cp-ink);
        border-color: var(--cp-ink);
        color: #fff;
    }
    .cp-btn--light:hover {
        background: #fff;
        border-color: #fff;
        box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.5);
    }
    .cp-btn--outline-light:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: #fff;
    }
}

/* ---------- Hero ---------- */
.cp-hero {
    padding: clamp(56px, 9vw, 112px) 0 clamp(48px, 7vw, 88px);
    background:
        radial-gradient(60% 80% at 100% 0%, var(--cp-navy-050), transparent 70%),
        #fff;
}

.cp-hero-center {
    text-align: center;
}

.cp-hero-center .cp-lead {
    margin-left: auto;
    margin-right: auto;
}

.cp-hero--dark {
    background:
        radial-gradient(70% 90% at 100% 0%, rgba(255, 255, 255, 0.14), transparent 60%),
        radial-gradient(50% 80% at 0% 100%, rgba(255, 255, 255, 0.07), transparent 60%),
        var(--cp-navy);
    color: #fff;
}

.cp-hero--dark .cp-eyebrow,
.cp-hero--dark .cp-lead {
    color: rgba(255, 255, 255, 0.78);
}

.cp-hero--dark .cp-display span {
    color: #fff;
    opacity: 0.72;
}

.cp-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

@media (max-width: 900px) {
    .cp-hero-grid {
        grid-template-columns: 1fr;
    }
}

.cp-hero-proof {
    padding: clamp(18px, 3vw, 28px);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.cp-hero-proof-label {
    margin: 0 0 14px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.cp-logo-wall {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 10px;
}

.cp-logo-wall a {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    padding: 10px;
    border-radius: 16px;
    background: #fff;
    transition: transform 200ms var(--cp-ease);
}

.cp-logo-wall img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (hover: hover) and (pointer: fine) {
    .cp-logo-wall a:hover {
        transform: translateY(-3px);
    }
}

/* ---------- Avantages ---------- */
.cp-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 900px) {
    .cp-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .cp-benefits {
        grid-template-columns: 1fr;
    }
}

.cp-benefit {
    padding: 24px;
    border-radius: 20px;
    border: 1px solid var(--cp-line);
    background: #fff;
}

.cp-benefit-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: var(--cp-navy-050);
    font-size: 1.3rem;
}

.cp-benefit h3 {
    font-size: 1.12rem;
    font-weight: 800;
}

.cp-benefit p {
    margin: 8px 0 0;
    color: var(--cp-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* ---------- Étapes ---------- */
.cp-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    counter-reset: cp-step;
}

@media (max-width: 900px) {
    .cp-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .cp-steps {
        grid-template-columns: 1fr;
    }
}

.cp-steps li {
    position: relative;
    margin: 0;
    padding: 22px 22px 24px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--cp-line);
    counter-increment: cp-step;
}

.cp-steps li::before {
    content: counter(cp-step, decimal-leading-zero);
    display: block;
    margin-bottom: 14px;
    font-family: 'Anton', system-ui, sans-serif;
    font-size: 2rem;
    line-height: 1;
    color: var(--cp-navy);
}

.cp-steps h3 {
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.25;
}

.cp-steps p {
    margin: 8px 0 0;
    font-size: 0.94rem;
    color: var(--cp-muted);
    line-height: 1.55;
}

/* ---------- Formule négociable ---------- */
.cp-deal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(24px, 4vw, 44px);
    border-radius: 24px;
    background: var(--cp-navy-050);
}

.cp-deal > div {
    flex: 1 1 420px;
    min-width: 0;
}

.cp-deal p {
    margin: 12px 0 0;
    color: var(--cp-muted);
    line-height: 1.6;
    max-width: 40rem;
}

/* ---------- FAQ ---------- */
.cp-faq {
    display: grid;
    gap: 10px;
}

.cp-faq-item {
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--cp-line);
}

.cp-faq-item summary {
    position: relative;
    padding: 18px 52px 18px 20px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.cp-faq-item summary::-webkit-details-marker {
    display: none;
}

.cp-faq-item summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1;
    color: var(--cp-muted);
    transition: transform 200ms var(--cp-ease);
}

.cp-faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.cp-faq-item p {
    margin: 0;
    padding: 0 20px 20px;
    color: var(--cp-muted);
    line-height: 1.6;
}

.cp-faq-item p a {
    color: var(--cp-navy);
    font-weight: 600;
}

.cp-end-cta {
    margin-top: 32px;
    text-align: center;
}

/* ---------- Calendrier des clubs ---------- */
.cp-calendar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}

@media (max-width: 380px) {
    .cp-calendar {
        grid-template-columns: 1fr;
    }
}

.cp-cal-card {
    --c: var(--cp-navy);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--cp-line);
    color: inherit;
    text-decoration: none;
    transition: border-color 200ms ease, transform 160ms var(--cp-ease);
}

.cp-cal-card:active {
    transform: scale(0.98);
}

.cp-cal-card img {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.cp-cal-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cp-cal-name {
    font-size: 1rem;
}

.cp-cal-line {
    font-size: 0.88rem;
    line-height: 1.35;
}

.cp-cal-line time {
    font-weight: 700;
}

.cp-cal-line--muted {
    color: var(--cp-muted);
}

.cp-cal-days {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 8px 6px;
    border-radius: 12px;
    background: var(--c);
    color: #fff;
    line-height: 1;
}

.cp-cal-days b {
    font-size: 1.3rem;
    font-variant-numeric: tabular-nums;
}

.cp-cal-days span {
    margin-top: 3px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

@media (hover: hover) and (pointer: fine) {
    .cp-cal-card:hover {
        border-color: var(--c);
    }
}

/* ---------- Prix du flocage ---------- */
.cp-prices {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 960px) {
    .cp-prices {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .cp-prices {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.cp-price {
    padding: 20px;
    border-radius: 18px;
    border: 1px solid var(--cp-line);
    background: #fff;
}

.cp-price--deal {
    background: var(--cp-navy);
    border-color: var(--cp-navy);
    color: #fff;
}

.cp-price-amount {
    display: block;
    margin-bottom: 10px;
    font-family: 'Anton', system-ui, sans-serif;
    font-size: 2rem;
    line-height: 1;
    color: var(--cp-navy);
}

.cp-price--deal .cp-price-amount {
    color: #fff;
}

.cp-price h3 {
    font-size: 1rem;
    font-weight: 800;
}

.cp-price p {
    margin: 4px 0 0;
    font-size: 0.86rem;
    color: var(--cp-muted);
}

.cp-price--deal p {
    color: rgba(255, 255, 255, 0.75);
}

/* ---------- Tailles (tableaux : styles communs dans woocommerce.css) ---------- */
.cp-sizes {
    padding: clamp(16px, 3vw, 28px);
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--cp-line);
}

/* ---------- Formulaire ---------- */
.cp-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.cp-form {
    padding: clamp(20px, 4vw, 36px);
    border-radius: 22px;
    border: 1px solid var(--cp-line);
    background: #fff;
    box-shadow: 0 24px 60px -44px rgba(12, 12, 40, 0.45);
}

.cp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}

@media (max-width: 600px) {
    .cp-grid {
        grid-template-columns: 1fr;
    }
}

.cp-field {
    margin-bottom: 16px;
}

.cp-field--full {
    grid-column: 1 / -1;
}

.cp-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.94rem;
}

.cp-req {
    color: var(--cp-err);
}

.cp-field input,
.cp-field select,
.cp-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--cp-line-strong);
    border-radius: 12px;
    background: #fff;
    color: var(--cp-ink);
    font: inherit;
    font-size: 16px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.cp-field textarea {
    resize: vertical;
}

.cp-field input:focus-visible,
.cp-field select:focus-visible,
.cp-field textarea:focus-visible {
    outline: none;
    border-color: var(--cp-navy);
    box-shadow: 0 0 0 3px rgba(18, 18, 107, 0.15);
}

.cp-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 6px 0 22px;
    font-size: 0.9rem;
    color: var(--cp-muted);
    cursor: pointer;
}

.cp-consent input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--cp-navy);
}

.cp-consent a {
    color: var(--cp-navy);
}

.cp-notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: 14px;
    font-size: 0.96rem;
    line-height: 1.5;
}

.cp-notice svg {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
}

.cp-notice--ok {
    background: color-mix(in srgb, var(--cp-ok) 9%, #fff);
    color: var(--cp-ok);
}

.cp-notice--err {
    background: color-mix(in srgb, var(--cp-err) 8%, #fff);
    color: var(--cp-err);
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .cp-btn:active,
    .cp-cal-card:active {
        transform: none;
    }
    .cp-faq-item summary::after {
        transition: none;
    }
}
