:root {
    --primary-orange: #f05a24;
    --primary-orange-hover: #d94815;
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

.cagnotte-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
    font-family: 'Inter', system-ui, sans-serif;
}

.cagnotte-main-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 16px 0 24px 0;
    text-transform: capitalize;
}

/* Grille 2 colonnes */
.cagnotte-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 992px) {
    .cagnotte-grid {
        grid-template-columns: 1fr 380px;
    }
}

/* Section Média */
.media-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    margin-bottom: 24px;
}

.main-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    display: block;
}

.btn-video-overlay {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(4px);
}

/* Onglets */
.tabs-header {
    display: flex;
    gap: 16px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 24px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
}

.tab-btn.active {
    color: var(--primary-orange);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-orange);
    border-radius: 3px 3px 0 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Organisateur */
.organizer-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.avatar-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--text-dark);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Sidebar & Carte de don */
.cagnotte-sidebar {
    position: sticky;
    top: 24px;
    height: fit-content;
}

.donation-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.raised-amount strong {
    font-size: 1.8rem;
    color: var(--primary-orange);
}

.progress-bar-container {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin: 16px 0;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary-orange);
    border-radius: 4px;
}

.deadline-badge {
    background: #fff5f2;
    color: var(--primary-orange);
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
}

.btn-primary-action {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--primary-orange);
    color: #fff;
    padding: 14px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-primary-action:hover {
    background: var(--primary-orange-hover);
}

.btn-secondary-action {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 10px;
    margin-top: 12px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Participants Grid */
.participants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.participant-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 10px;
}

.participant-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.btn-retour {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #f05a24;
    background-color: #fff5f2;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-retour svg {
    width: 18px;
    height: 18px;
    stroke: #f05a24;
}

.btn-retour:hover {
    background-color: #ffe8e0;
    transform: translateX(-2px);
}

/* Boutons de montants prédéfinis */
.input-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 16px 0 8px 0;
}

.preset-amounts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.btn-preset {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-preset:hover, .btn-preset.selected {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
    background: #fffdfc;
}

.custom-amount-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.custom-amount-wrapper input {
    width: 100%;
    padding: 12px 48px 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    box-sizing: border-box;
}

.custom-amount-wrapper input:focus {
    border-color: var(--primary-orange);
}

.currency-suffix {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Grille des suggestions */
.suggestions-section {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.card-suggestion {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-suggestion:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.06);
}

.suggestion-image-wrapper {
    position: relative;
    height: 180px;
    background: #ea580c;
}

.suggestion-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-verified {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.suggestion-body {
    padding: 16px;
}

.suggestion-title a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 700;
}

.suggestion-tags {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.tag, .tag-pill {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 0.75rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.checkout-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 30px;
    align-items: start;
}

/* Carte Générale */
.checkout-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 24px;
}

/* Formulaire Gauche */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.groupe-champ {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.groupe-champ label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.groupe-champ input[type="text"],
.groupe-champ input[type="email"],
.groupe-champ input[type="number"],
.groupe-champ input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #1f2937;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.groupe-champ input:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

/* Champ Téléphone avec Indicateur Pays */
.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.phone-input-wrapper:focus-within {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.phone-prefix {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px;
    background: #f9fafb;
    border-right: 1px solid #d1d5db;
    font-size: 0.95rem;
    font-weight: 500;
    color: #374151;
}

.phone-input-wrapper input {
    border: none !important;
    box-shadow: none !important;
}

/* Checkboxes */
.groupe-case {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-direction: row;
}

.groupe-case input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #f97316;
    cursor: pointer;
}

.groupe-case label {
    font-size: 0.9rem;
    color: #4b5563;
    cursor: pointer;
    margin-bottom: 0;
    font-weight: 400;
}

.groupe-case a {
    color: #f97316;
    text-decoration: underline;
}

/* Bouton Payer */
.btn-submit-payment {
    margin-top: 10px;
    background-color: #f97316;
    background-image: linear-gradient(to right, #f97316, #fb923c);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-submit-payment:hover {
    opacity: 0.95;
}

.erreur-champ {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 4px;
}

/* Colonne Droite : Récapitulatif */
.summary-item {
    display: flex;
    gap: 16px;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 20px;
}

.summary-thumb {
    width: 110px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.summary-thumb-placeholder {
    width: 110px;
    height: 70px;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: center;
}

.summary-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px 0;
}

.summary-date {
    font-size: 0.85rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
}

.amount-box {
    background-color: #f3f4f6;
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.amount-box span {
    font-size: 0.95rem;
    color: #374151;
}

.amount-box strong {
    font-size: 1.15rem;
    font-weight: 800;
    color: #111827;
}

@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}

.checkout-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 30px;
    align-items: start;
}

/* Carte Générale */
.checkout-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 28px 0;
}

/* Formulaire */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.groupe-champ {
    display: flex;
    flex-direction: column;
    margin-bottom: 22px;
}

.groupe-champ label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.groupe-champ input[type="text"],
.groupe-champ input[type="email"],
.groupe-champ input[type="number"],
.groupe-champ input[type="tel"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #1f2937;
    outline: none;
    box-sizing: border-box;
}

.groupe-champ input::placeholder {
    color: #9ca3af;
}

.groupe-champ input:focus {
    border-color: #f97316;
}

/* Champ Téléphone personnalisé */
.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.phone-prefix {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 14px;
    background: #ffffff;
    font-size: 0.95rem;
    color: #374151;
    user-select: none;
}

.phone-prefix .flag-icon {
    font-size: 1.1rem;
}

.phone-prefix .dropdown-arrow {
    font-size: 0.7rem;
    color: #6b7280;
    margin-right: 4px;
}

.phone-prefix .country-code {
    font-weight: 500;
    color: #1f2937;
}

.phone-input-wrapper input {
    border: none !important;
    outline: none !important;
    padding-left: 4px !important;
}

/* Checkboxes */
.groupe-case {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-direction: row;
}

.groupe-case input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    accent-color: #f97316;
    cursor: pointer;
}

.groupe-case label {
    font-size: 0.95rem;
    color: #374151;
    cursor: pointer;
    margin-bottom: 0;
    font-weight: 400;
}

.lien-cgu {
    color: #ea580c;
    text-decoration: underline;
}

/* Bouton */
.btn-container {
    margin-top: 28px;
}

.btn-submit-payment {
    background-color: #f09271;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-submit-payment:hover {
    background-color: #e07d5a;
}

.erreur-champ {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 4px;
}

/* Colonne Droite : Récapitulatif */
.summary-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding-bottom: 24px;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 24px;
}

.summary-thumb {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.summary-thumb-placeholder {
    width: 120px;
    height: 80px;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #9ca3af;
}

.summary-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.summary-date {
    font-size: 0.875rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
}

.amount-box {
    background-color: #f3f4f6;
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.amount-label {
    font-size: 0.95rem;
    color: #374151;
}

.amount-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: #111827;
}

@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}