/* ==========================================================================
   📞 CONTACT DESIGN "POSTAL STAMP" (TIMBRE) - CORRIGÉ ULTIME
   ========================================================================== */

.apce-contact-wrapper {
    padding: 40px 0;
}

.apce-contact-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- 1. LE CONTOUR DU TIMBRE (FOND JAUNE) --- */
.stamp-effect {
    position: relative;
    padding: 12px; /* Largeur de la dentelure jaune */
    background-color: var(--apce-yellow); /* Ton jaune fétiche */
    box-sizing: border-box;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Pour créer un contexte d'empilement propre */
    z-index: 0;
}

/* --- 2. LA GRILLE DE TROUS (SOMBRE, DERRIÈRE TOUT) --- */
.stamp-effect::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
    /* Crée des ronds de la couleur du fond de ton site pour "percer" le jaune */
    background-image: radial-gradient(circle, var(--apce-bg-page) 5px, transparent 6px); 
    background-size: 16px 16px;
    background-position: -8px -8px;
    /* ✨ Reste derrière tout le contenu opaque */
    z-index: -1; 
}

/* --- 3. LE PSEUDO-ÉLÉMENT OPAQUE (SOMBRE) QUI CACHE LES TROUS DU MILIEU --- */
.stamp-effect::after {
    content: "";
    position: absolute;
    /* Se cale exactement au début du cœur de la carte */
    inset: 12px; 
    background-color: var(--apce-bg-card); /* Même couleur que le fond du cœur gris sombre */
    /* Reste entre la grille (z=-1) et le texte (z=2 de l'enfant) */
    z-index: 1; 
}

/* --- 4. LE CŒUR DE LA CARTE (CONTIENT LE TEXTE) --- */
.apce-card-inner {
    position: relative;
    background-color: transparent; /* ✨ Crucial : il devient transparent ! Le ::after fait le fond opaque */
    padding: 30px 20px;
    min-width: 260px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    /* ✨ Le texte passe au premier plan */
    z-index: 2; 
}

/* Animation au survol */
.stamp-effect:hover {
    transform: scale(1.05) rotate(1deg);
}

/* --- TYPOGRAPHIE & ICONES --- */
.apce-contact-icon {
    background: rgba(229, 230, 66, 0.1);
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 20px;
    color: var(--apce-yellow);
    border: 1px dashed var(--apce-yellow);
}

.apce-card-inner h3 {
    font-family: 'Courier New', Courier, monospace;
    color: var(--apce-yellow);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0;
    margin-bottom: 15px;
}

/* Les liens (Tel et Mail) */
.apce-contact-links a {
    color: #f0f0f5;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s;
    font-size: 1.1rem;
}

.apce-contact-links a:hover {
.apce-contact-links a:hover {
    color: var(--apce-yellow) !important;
    text-decoration: underline;
}

.apce-contact-links span {
    font-size: 0.8rem;
    color: var(--apce-yellow);
    text-transform: uppercase;
    opacity: 0.8;
}

/* 📱 Version Mobile (Téléphones) */
@media screen and (max-width: 768px) {
    .apce-contact-container {
        flex-direction: column;
        align-items: center;
    }
    .stamp-effect {
        width: 100%;
        max-width: 320px;
    }
}
}