/**
 * Système de boutons standardisé - Intact en Surface
 * 
 * Variantes :
 * - btn-primary-peche : Bouton principal (header, hero)
 * - btn-outline-peche : Bouton outline (header, hero)
 * - btn-turquoise : Bouton sections (mon parcours, mission)
 * - btn-orange : Bouton CTA/Don
 */

/* Base commune pour tous les boutons */
.btn {
    display: inline-block;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    padding: 12px 32px;
    white-space: nowrap;
}

/* ========================================
   BOUTONS HEADER / HERO (rounded-full)
   ======================================== */

/* Primary Peche - Fond peche, texte blanc */
.btn-primary-peche {
    background-color: #ED715A;
    color: #ffffff;
    border: 2px solid #ED715A;
    border-radius: 9999px; /* rounded-full */
}

.btn-primary-peche:hover {
    background-color: rgba(237, 113, 90, 0.9);
    color: #ffffff;
}

/* Outline Peche - Bordure peche, texte peche */
.btn-outline-peche {
    background-color: transparent;
    color: #ED715A;
    border: 2px solid #ED715A;
    border-radius: 9999px; /* rounded-full */
}

.btn-outline-peche:hover {
    background-color: #ED715A;
    color: #ffffff;
}

/* ========================================
   BOUTONS SECTIONS (rounded-lg)
   ======================================== */

/* Turquoise - Fond turquoise, texte bleu-roi */
.btn-turquoise {
    background-color: #9BD1C7;
    color: #2A367E;
    border: 2px solid transparent;
    border-radius: 8px; /* rounded-lg */
}

.btn-turquoise:hover {
    background-color: transparent;
    color: #9BD1C7;
    border-color: #9BD1C7;
}

/* Orange - Fond orange, texte blanc */
.btn-orange {
    background-color: #F5A123;
    color: #ffffff;
    border: 2px solid #F5A123;
    border-radius: 8px; /* rounded-lg */
}

.btn-orange:hover {
    background-color: rgba(245, 161, 35, 0.9);
    color: #ffffff;
}

/* Bleu Roi - Fond bleu-roi, texte blanc */
.btn-bleu-roi {
    background-color: #2A367E;
    color: #ffffff;
    border: 2px solid #2A367E;
    border-radius: 8px; /* rounded-lg */
}

.btn-bleu-roi:hover {
    background-color: rgba(42, 54, 126, 0.9);
    color: #ffffff;
}

/* ========================================
   TAILLES
   ======================================== */

.btn-sm {
    padding: 10px 28px;
    font-size: 15px;
}

.btn-md {
    padding: 12px 32px;
    font-size: 16px;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 18px;
}

/* ========================================
   RESPONSIVE - LARGEUR
   ======================================== */

/* Desktop : boutons largeur automatique par défaut */
.btn {
    width: auto;
    display: inline-flex;
}

/* Limiter la largeur des boutons dans les sections CTA centrées et hero (desktop uniquement) */
@media (min-width: 768px) {
    .text-center .btn,
    .justify-center .btn,
    .hero-section .btn {
        max-width: max-content;
    }
}

/* Mobile : boutons pleine largeur */
@media (max-width: 767px) {
    .btn {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        justify-content: center;
        align-items: center;
    }
}

/* ========================================
   ICÔNES DANS LES BOUTONS
   ======================================== */

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: max-content;
}

.btn-icon svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Animation du cœur au hover */
.btn-icon.btn-with-heart:hover svg {
    animation: heartbeat 0.6s ease-in-out;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.15);
    }
}

/* ========================================
   ÉTATS
   ======================================== */

.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn:focus {
    outline: 2px solid #F5A123;
    outline-offset: 2px;
}
