/* 
   Style "Partenaires" pour Axoloca 
   Ambiance enfantine, cartoon et ludique
*/

.partenaires-intro {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
    position: relative;
}

.partenaires-intro p {
    font-size: 1.15rem;
    color: #555;
    max-width: 700px;
    margin: 0.5rem auto;
    line-height: 1.4;
    font-weight: 500;
}

/* Grille de partenaires */
.partenaires-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
    justify-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .partenaires-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 2.5rem;
    }
}

/* Carte Partenaire */
.partenaire-card {
    background: #ffffff;
    border: 4px solid #333;
    border-radius: 50px;
    padding: 1.25rem;
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.partenaire-card:hover {
    transform: translateY(-8px) rotate(-1deg);
    box-shadow: 15px 15px 0px rgba(0, 0, 0, 0.12);
}

/* Logo Wrapper */
.partenaire-logo-wrapper {
    position: relative;
    width: 220px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    z-index: 1;
}

/* Blob / Sticker Pastel derrière le logo */
.blob-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 180px;
    background: #e3f2fd; /* Bleu pastel par défaut */
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: -1;
    opacity: 0.7;
}

/* Couleurs alternées pour les blobs */
.partenaire-card:nth-child(even) .blob-bg { background: #fce4ec; border-radius: 60% 40% 30% 70% / 50% 30% 70% 50%; } /* Rose */
.partenaire-card:nth-child(3n) .blob-bg { background: #fff9c4; border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; } /* Jaune */
.partenaire-card:nth-child(4n) .blob-bg { background: #e8f5e9; border-radius: 50%; } /* Vert */

.partenaire-logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(2px 2px 0px rgba(255,255,255,0.8));
}

/* Typographie */
.partenaire-card h2 {
    font-family: 'SavoryCurry', 'Grandstander Clean', cursive;
    font-size: 1.6rem;
    color: #333;
    margin: 0.5rem 0 0.5rem 0;
    line-height: 1.1;
    text-transform: none; /* Pas de majuscules forcées */
}

.description-container {
    height: 75px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
    width: 100%;
}

/* Petit fondu si texte trop long */
.description-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background: linear-gradient(transparent, white);
}

.partenaire-card p {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.3;
    margin: 0;
}

/* Liens sociaux Cartoon */
.partenaire-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: auto;
}

.partenaire-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 3px solid #333;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 4px 4px 0px #333;
}

.link-web { background: #42a5f5; }
.link-fb { background: #1877f2; }
.link-insta { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

.partenaire-links a:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 6px 6px 0px #333;
    filter: brightness(1.1);
}

/* Titre principal */
.page-title-cartoon {
    font-family: 'SavoryCurry', 'Grandstander Clean', cursive;
    font-size: 3.2rem;
    color: #333;
    text-shadow: 3px 3px 0px #fff, 6px 6px 0px rgba(0,0,0,0.08);
    margin-bottom: 0.5rem;
    display: inline-block;
}

/* Éléments décoratifs simples */
.partenaires-intro::before {
    content: "★";
    position: absolute;
    left: 5%;
    top: -20px;
    color: #ffca28;
    font-size: 4rem;
    animation: bounce 3s infinite;
    text-shadow: 3px 3px 0px #333;
}

.partenaires-intro::after {
    content: "✿";
    position: absolute;
    right: 5%;
    bottom: -20px;
    color: #ef5350;
    font-size: 4rem;
    animation: bounce 4s infinite;
    text-shadow: 3px 3px 0px #333;
}

.partenaires-grid::before {
    content: "✦";
    position: fixed;
    left: 2%;
    top: 50%;
    color: #64b5f6;
    font-size: 3rem;
    animation: rotate 10s linear infinite;
    opacity: 0.5;
    pointer-events: none;
}

.partenaires-grid::after {
    content: "☼";
    position: fixed;
    right: 2%;
    top: 30%;
    color: #ffb74d;
    font-size: 3.5rem;
    animation: bounce 5s infinite;
    opacity: 0.5;
    pointer-events: none;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .page-title-cartoon { font-size: 2.5rem; }
    .partenaires-grid { gap: 2rem; }
    .partenaire-card { max-width: 100%; border-radius: 40px; }
}
