/* ================================
   PAGE ADHÉSION - ABC Math Info
   ================================ */

/* HERO */
.adhesion-hero {
    background: linear-gradient(135deg, #0a3715 0%, #1a5c2e 60%, #187e5c 100%);
    color: white;
    padding: 90px 8% 80px;
    position: relative;
    overflow: hidden;
    min-height: 340px;
    display: flex;
    align-items: center;
}

.adhesion-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.adhesion-tag {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.adhesion-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 18px;
    color: white;
}

.adhesion-hero h1 em {
    font-style: normal;
    color: #7de0a4;
}

.adhesion-hero p {
    font-size: 1.05rem;
    opacity: 0.85;
    line-height: 1.7;
    max-width: 520px;
}

.adhesion-hero-deco {
    position: absolute;
    right: 6%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 30px;
    z-index: 1;
    opacity: 0.08;
}

.deco-symbol {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 700;
    color: white;
}

/* ================================
   AVANTAGES
   ================================ */
.adhesion-avantages {
    padding: 80px 8%;
    background: var(--color-bg);
}

.adh-container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 40px;
    text-align: center;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--color-accent);
    margin: 12px auto 0;
    border-radius: 2px;
}

.avantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.avantage-card {
    background: white;
    border-radius: 12px;
    padding: 30px 24px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.avantage-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.09);
}

.avantage-icon {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 48px;
}

.avantage-icon img {
    max-height: 100%;
    width: auto;
}

.avantage-card h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.avantage-card p {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.6;
}
/* ================================
   FORMULAIRE
   ================================ */
.adhesion-form-section {
    padding: 80px 8%;
    background: var(--color-bg);
}

.form-wrapper {
    max-width: 780px;
    margin: 0 auto;
}

.form-intro {
    margin-bottom: 50px;
}

.form-intro h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.form-intro > p {
    color: #666;
    margin-bottom: 30px;
}

/* Step indicators */
.form-steps {
    display: flex;
    align-items: center;
    gap: 0;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    color: #aaa;
    white-space: nowrap;
}

.step span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    transition: all 0.3s;
}

.step.active {
    color: var(--color-accent);
}

.step.active span {
    background: var(--color-accent);
    color: white;
}

.step.done span {
    background: var(--color-primary);
    color: white;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin: 0 12px;
    min-width: 40px;
}

/* Form itself */
.adhesion-form {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.07);
}

.form-step.hidden { display: none; }

.step-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--color-bg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 7px;
}

.required {
    color: #e05c5c;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text);
    background: white;
    transition: border-color 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(24,126,92,0.1);
}

.form-group input.error,
.form-group select.error {
    border-color: #e05c5c;
}

.field-error {
    display: block;
    font-size: 0.78rem;
    color: #e05c5c;
    margin-top: 5px;
    min-height: 16px;
}

/* Checkboxes */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 0.88rem;
    color: #444;
    line-height: 1.4;
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin-top: 2px;
    accent-color: var(--color-accent);
    cursor: pointer;
}

.checkbox-group .checkbox-item {
    background: white;
    border: 1.5px solid #e8e8e8;
    border-radius: 6px;
    padding: 8px 14px;
    transition: border-color 0.2s;
}

.checkbox-group .checkbox-item:has(input:checked) {
    border-color: var(--color-accent);
    background: rgba(24,126,92,0.05);
}

.cgv-group .checkbox-item {
    align-items: flex-start;
}

/* Form nav */
.form-nav {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

.btn-next {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}

.btn-next:hover { background: #0f6347; }

.btn-prev {
    padding: 12px 24px;
    background: transparent;
    color: #666;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-prev:hover {
    border-color: var(--color-text);
    color: var(--color-text);
}

.btn-submit {
    padding: 13px 32px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover { background: #4a1010; }

/* Recap box */
.recap-box {
    background: var(--color-bg);
    border-radius: 10px;
    padding: 24px 28px;
    margin-bottom: 24px;
    border-left: 4px solid var(--color-accent);
}

.recap-box h4 {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    margin-bottom: 14px;
}

.recap-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.recap-row:last-child { border-bottom: none; }
.recap-row .label { color: #666; }
.recap-row .value { font-weight: 600; color: var(--color-text); }

/* Success */
.success-message {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.07);
}

.success-message.hidden { display: none; }

.success-icon {
    width: 70px;
    height: 70px;
    background: var(--color-accent);
    color: white;
    font-size: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-message h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
}

.success-message p {
    color: #666;
    margin-bottom: 28px;
    line-height: 1.7;
}

/* ================================
   REDESIGNED STEP 2
   ================================ */

.membership-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(24,126,92,0.06);
    border: 2px solid var(--color-accent);
    border-radius: 10px;
}

.membership-badge .badge-icon {
    width: 36px;
    height: 36px;
    background: var(--color-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.membership-badge strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--color-text);
}

.membership-badge .badge-price {
    font-size: 0.82rem;
    color: var(--color-accent);
    font-weight: 600;
}

.upload-zone {
    position: relative;
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    background: #fafafa;
}

.upload-zone:hover {
    border-color: var(--color-accent);
    background: rgba(24,126,92,0.03);
}

.upload-zone.dragover {
    border-color: var(--color-accent);
    background: rgba(24,126,92,0.08);
    border-style: solid;
}

.upload-zone.has-file {
    padding: 20px 24px;
    border-style: solid;
    border-color: var(--color-primary);
    background: rgba(74,16,16,0.03);
}

.upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    font-size: 2rem;
    color: #aaa;
    margin-bottom: 8px;
    display: block;
}

.upload-text {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 4px;
}

.upload-link {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: underline;
}

.upload-hint {
    font-size: 0.78rem;
    color: #999;
}

.upload-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.preview-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-primary);
    word-break: break-all;
}

.preview-remove {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #e05c5c;
    cursor: pointer;
    line-height: 1;
    padding: 0 6px;
}

.domain-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.domain-card {
    cursor: pointer;
}

.domain-card input {
    display: none;
}

.domain-content {
    display: block;
    padding: 10px 12px;
    border: 1.5px solid #e8e8e8;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #555;
    text-align: center;
    transition: all 0.2s;
    line-height: 1.3;
}

.domain-card input:checked + .domain-content {
    border-color: var(--color-accent);
    background: rgba(24,126,92,0.06);
    color: var(--color-accent);
    font-weight: 600;
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 1024px) {
    .avantages-grid { grid-template-columns: repeat(2, 1fr); }
    .types-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .type-card.featured { transform: none; }
    .domain-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .adhesion-hero { padding: 60px 6% 50px; }
    .adhesion-hero-deco { display: none; }
    .adhesion-avantages,
    .adhesion-types,
    .adhesion-form-section { padding: 50px 6%; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .adhesion-form { padding: 28px 20px; }
    .avantages-grid { grid-template-columns: 1fr; }
    .form-steps { overflow-x: auto; }
    .domain-grid { grid-template-columns: repeat(2, 1fr); }
    .payment-section { padding: 18px 16px; }
}

@media (max-width: 480px) {
    .form-nav { flex-direction: column-reverse; }
    .btn-next, .btn-prev, .btn-submit { width: 100%; text-align: center; justify-content: center; }
    .domain-grid { grid-template-columns: 1fr; }
    .upload-zone { padding: 24px 16px; }
}
.domain-grid .domain-hidden { display: none; }
.domain-grid.expanded .domain-hidden { display: block; }
.domain-toggle-btn {
    grid-column: 1 / -1;
    display: block;
    margin-top: 8px;
    padding: 8px 20px;
    background: none;
    border: 1.5px dashed #ccc;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    color: #888;
    transition: all 0.2s;
}
.domain-toggle-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}
.domain-group-label {
    grid-column: 1 / -1;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--color-text);
    margin-top: 10px;
    padding: 6px 0 2px;
    border-bottom: 1px solid #eee;
}
