/* ==========================================================================
   THÈME PSYCHOMOTRICITÉ
   Ambiance calme, équilibrée, bienveillante
   Palette : teal doux (calme), pêche (chaleur), lavande (douceur)
   Basée sur les principes de psychologie des couleurs pour la thérapie
   ========================================================================== */

/* Variables spécifiques au thème psychomotricité */
[data-activity="psychomotricite"] {
    /* Bleu-vert doux (calme, équilibre, mouvement) */
    --psycho-primary: #6b9e9e;          /* Teal doux */
    --psycho-primary-dark: #4a7c7c;     /* Teal foncé */
    --psycho-primary-light: #8eb8b8;    /* Teal clair */

    /* Pêche/abricot doux (chaleur, accueil, bienveillance) */
    --psycho-secondary: #e8a87c;        /* Pêche doux */
    --psycho-secondary-dark: #d4915f;   /* Pêche foncé */
    --psycho-secondary-light: #f5c9a8;  /* Pêche clair */

    /* Lavande douce (douceur, créativité, apaisement) */
    --psycho-accent: #c4b8d9;           /* Lavande douce */
    --psycho-accent-light: #ddd4eb;     /* Lavande claire */

    /* Dégradé du header - tons apaisants et professionnels */
    --psycho-gradient-start: #3d6a6a;   /* Teal profond */
    --psycho-gradient-mid: #5a8a8a;     /* Teal moyen */
    --psycho-gradient-end: #7aa8a8;     /* Teal lumineux */
}

/* ==========================================================================
   HEADER PSYCHOMOTRICITÉ
   ========================================================================== */
[data-activity="psychomotricite"] header {
    /* Dégradé vert/turquoise dynamique */
    background: linear-gradient(165deg,
        var(--psycho-gradient-start) 0%,
        var(--psycho-gradient-mid) 40%,
        var(--psycho-gradient-end) 100%);
}

/* Remplacer les étoiles par des bulles/particules */
[data-activity="psychomotricite"] header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        /* Petites bulles */
        radial-gradient(circle at 5% 15%, rgba(255,255,255,0.15) 0%, transparent 8px),
        radial-gradient(circle at 15% 45%, rgba(255,255,255,0.1) 0%, transparent 12px),
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.12) 0%, transparent 6px),
        radial-gradient(circle at 35% 70%, rgba(255,255,255,0.08) 0%, transparent 10px),
        radial-gradient(circle at 45% 35%, rgba(255,255,255,0.15) 0%, transparent 8px),
        radial-gradient(circle at 55% 80%, rgba(255,255,255,0.1) 0%, transparent 14px),
        radial-gradient(circle at 65% 20%, rgba(255,255,255,0.12) 0%, transparent 7px),
        radial-gradient(circle at 75% 55%, rgba(255,255,255,0.08) 0%, transparent 11px),
        radial-gradient(circle at 85% 40%, rgba(255,255,255,0.14) 0%, transparent 9px),
        radial-gradient(circle at 92% 75%, rgba(255,255,255,0.1) 0%, transparent 13px),
        /* Bulles moyennes */
        radial-gradient(circle at 10% 65%, rgba(255,255,255,0.08) 0%, transparent 18px),
        radial-gradient(circle at 30% 85%, rgba(255,255,255,0.06) 0%, transparent 22px),
        radial-gradient(circle at 60% 15%, rgba(255,255,255,0.07) 0%, transparent 20px),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.05) 0%, transparent 25px),
        /* Grosses bulles subtiles */
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.04) 0%, transparent 40px),
        radial-gradient(circle at 70% 45%, rgba(255,255,255,0.03) 0%, transparent 50px);
    z-index: 1;
    pointer-events: none;
    animation: bubblesFloat 8s ease-in-out infinite alternate;
}

/* Forme douce pêche désactivée */
[data-activity="psychomotricite"] header::after {
    display: none;
}

/* Animation de flottement des bulles */
@keyframes bubblesFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-10px) scale(1.02);
        opacity: 1;
    }
    100% {
        transform: translateY(5px) scale(0.98);
        opacity: 0.85;
    }
}


/* ==========================================================================
   PARCOURS MOTEUR ANIMÉ (remplace les étoiles)
   ========================================================================== */
[data-activity="psychomotricite"] .star,
[data-activity="psychomotricite"] .shooting-star {
    display: none; /* Cacher les étoiles */
}

/* Conteneur SVG du parcours moteur */
[data-activity="psychomotricite"] .parcours-moteur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: visible;
}

/* Animation d'ondulation des lignes */
[data-activity="psychomotricite"] .parcours-ligne {
    animation: ligneOndule 6s ease-in-out infinite alternate;
}

[data-activity="psychomotricite"] .ligne-1 {
    animation-delay: 0s;
}

[data-activity="psychomotricite"] .ligne-2 {
    animation-delay: -2s;
}

[data-activity="psychomotricite"] .ligne-3 {
    animation-delay: -4s;
}

@keyframes ligneOndule {
    0% {
        transform: translateY(0);
        opacity: 0.8;
    }
    50% {
        transform: translateY(8px);
        opacity: 1;
    }
    100% {
        transform: translateY(-5px);
        opacity: 0.85;
    }
}

/* Points mobiles avec pulsation */
[data-activity="psychomotricite"] .point-mobile {
    animation: pointPulse 2s ease-in-out infinite;
}

[data-activity="psychomotricite"] .point-1a { animation-delay: 0s; }
[data-activity="psychomotricite"] .point-1b { animation-delay: -0.5s; }
[data-activity="psychomotricite"] .point-2a { animation-delay: -1s; }
[data-activity="psychomotricite"] .point-3a { animation-delay: -1.5s; }
[data-activity="psychomotricite"] .point-3b { animation-delay: -0.3s; }

@keyframes pointPulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

/* Responsive - ajuster l'épaisseur sur mobile */
@media (max-width: 768px) {
    [data-activity="psychomotricite"] .parcours-ligne {
        stroke-width: 2px;
    }
    [data-activity="psychomotricite"] .point-mobile {
        r: 4;
    }
}

/* ==========================================================================
   FOOTER PSYCHOMOTRICITÉ
   ========================================================================== */
[data-activity="psychomotricite"] footer {
    background: linear-gradient(165deg,
        var(--psycho-gradient-end) 0%,
        var(--psycho-gradient-mid) 40%,
        var(--psycho-gradient-start) 100%);
}

/* Bulles dans le footer au lieu des étoiles */
[data-activity="psychomotricite"] footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 8% 30%, rgba(255,255,255,0.12) 0%, transparent 10px),
        radial-gradient(circle at 20% 60%, rgba(255,255,255,0.08) 0%, transparent 15px),
        radial-gradient(circle at 35% 25%, rgba(255,255,255,0.1) 0%, transparent 8px),
        radial-gradient(circle at 50% 70%, rgba(255,255,255,0.06) 0%, transparent 18px),
        radial-gradient(circle at 65% 40%, rgba(255,255,255,0.1) 0%, transparent 12px),
        radial-gradient(circle at 80% 55%, rgba(255,255,255,0.08) 0%, transparent 14px),
        radial-gradient(circle at 92% 30%, rgba(255,255,255,0.12) 0%, transparent 10px);
    z-index: 0;
    pointer-events: none;
    animation: bubblesFloat 8s ease-in-out infinite alternate;
}

/* Cacher les étoiles du footer */
[data-activity="psychomotricite"] .footer-star {
    display: none;
}

/* ==========================================================================
   BARRE SWITCHER - STYLE PSYCHOMOTRICITÉ
   ========================================================================== */
[data-activity="psychomotricite"] .activity-bar-mobile {
    background: linear-gradient(135deg,
        var(--psycho-gradient-start) 0%,
        var(--psycho-gradient-mid) 100%);
}

[data-activity="psychomotricite"] .activity-bar-btn.active {
    border-bottom-color: var(--psycho-accent);
}

/* ==========================================================================
   COULEURS D'ACCENT - BOUTONS ET CTA
   ========================================================================== */
[data-activity="psychomotricite"] .header-cta .btn-primary {
    background: linear-gradient(135deg, var(--psycho-secondary) 0%, var(--psycho-secondary-light) 100%);
    box-shadow: 0 4px 12px rgba(232, 168, 124, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-activity="psychomotricite"] .header-cta .btn-primary:hover {
    background: linear-gradient(135deg, var(--psycho-secondary-light) 0%, var(--psycho-accent) 100%);
    box-shadow: 0 6px 20px rgba(232, 168, 124, 0.5), 0 3px 6px rgba(0, 0, 0, 0.3);
}

[data-activity="psychomotricite"] .cta-button {
    background: linear-gradient(135deg, var(--psycho-primary) 0%, var(--psycho-secondary) 100%);
}

[data-activity="psychomotricite"] .cta-button:hover {
    background: linear-gradient(135deg, var(--psycho-primary-dark) 0%, var(--psycho-secondary-dark) 100%);
}

/* Highlight box */
[data-activity="psychomotricite"] .highlight-box.blue {
    background: linear-gradient(135deg, rgba(107, 158, 158, 0.12) 0%, rgba(232, 168, 124, 0.08) 100%);
    border-left-color: var(--psycho-primary);
}

/* Tarif cards */
[data-activity="psychomotricite"] .tarif-card.featured {
    border-color: var(--psycho-primary);
}

[data-activity="psychomotricite"] .tarif-badge {
    background: linear-gradient(135deg, var(--psycho-primary) 0%, var(--psycho-secondary) 100%);
}

[data-activity="psychomotricite"] .tarif-cta.primary {
    background: linear-gradient(135deg, var(--psycho-primary) 0%, var(--psycho-secondary) 100%);
}

[data-activity="psychomotricite"] .tarif-cta.primary:hover {
    background: linear-gradient(135deg, var(--psycho-primary-dark) 0%, var(--psycho-secondary-dark) 100%);
}

/* Form submit button */
[data-activity="psychomotricite"] .form-submit {
    background: linear-gradient(135deg, var(--psycho-primary) 0%, var(--psycho-secondary) 100%);
}

[data-activity="psychomotricite"] .form-submit:hover {
    background: linear-gradient(135deg, var(--psycho-primary-dark) 0%, var(--psycho-secondary-dark) 100%);
}

/* ==========================================================================
   ICÔNES ET ACCENTS
   ========================================================================== */
[data-activity="psychomotricite"] .approach-icon {
    background: linear-gradient(135deg, #e8f0f0 0%, #d8e5e5 100%);
}

[data-activity="psychomotricite"] .approach-icon svg {
    stroke: var(--psycho-primary-dark);
}

/* Section transitions */
[data-activity="psychomotricite"] section::before {
    background: linear-gradient(90deg, transparent, var(--psycho-primary-light), transparent);
}

/* ==========================================================================
   ÉLÉMENTS DÉCORATIFS - REMPLACER LES ÉTOILES PAR DES TRACÉS
   ========================================================================== */

/* Cacher les pseudo-éléments étoilés - on utilise des SVG à la place */
[data-activity="psychomotricite"] .intro-hook::before,
[data-activity="psychomotricite"] .intro-hook::after {
    display: none;
}

/* About section - cacher les anciennes orbites */
[data-activity="psychomotricite"] .star-orbit-1,
[data-activity="psychomotricite"] .star-orbit-2 {
    display: none;
}

/* ==========================================================================
   RUBAN ANIMÉ AUTOUR DE LA PHOTO
   Un ruban de longueur fixe qui tourne avec effet de traînée
   ========================================================================== */

[data-activity="psychomotricite"] .ruban-autour-photo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    pointer-events: none;
    z-index: 1;
}

/* Style de base du ruban - transparent comme les autres rubans */
[data-activity="psychomotricite"] .ruban-parcours {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke: rgba(107, 158, 158, 0.5);
    stroke-width: 2.5;
    stroke-dasharray: 130 1570;
    animation: rubanTourne 30s linear infinite;
}

/* Traînées avec opacité décroissante - effet de disparition progressive */
[data-activity="psychomotricite"] .ruban-trail {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

[data-activity="psychomotricite"] .ruban-trail-1 {
    stroke: rgba(107, 158, 158, 0.35);
    stroke-width: 2.2;
    stroke-dasharray: 110 1590;
    animation: rubanTourne 30s linear infinite;
    animation-delay: 0.12s;
}

[data-activity="psychomotricite"] .ruban-trail-2 {
    stroke: rgba(107, 158, 158, 0.2);
    stroke-width: 1.8;
    stroke-dasharray: 85 1615;
    animation: rubanTourne 30s linear infinite;
    animation-delay: 0.25s;
}

[data-activity="psychomotricite"] .ruban-trail-3 {
    stroke: rgba(107, 158, 158, 0.08);
    stroke-width: 1.4;
    stroke-dasharray: 55 1645;
    animation: rubanTourne 30s linear infinite;
    animation-delay: 0.4s;
}

/* Animation : le ruban fait le tour complet (lent et fluide) */
@keyframes rubanTourne {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -1700;
    }
}

/* Responsive */
@media (max-width: 768px) {
    [data-activity="psychomotricite"] .ruban-autour-photo {
        width: 340px;
        height: 340px;
    }
}

/* Cacher les pseudo-éléments étoilés des autres sections */
[data-activity="psychomotricite"] #approche::before,
[data-activity="psychomotricite"] #approche::after,
[data-activity="psychomotricite"] #services::before,
[data-activity="psychomotricite"] #services::after,
[data-activity="psychomotricite"] .contact-section::before,
[data-activity="psychomotricite"] .contact-section::after {
    display: none;
}


/* Links */
[data-activity="psychomotricite"] .nav-link:hover,
[data-activity="psychomotricite"] .nav-link-active {
    color: var(--psycho-primary) !important;
}

[data-activity="psychomotricite"] a:not(.btn-primary):not(.cta-button):not(.tarif-cta):not(.nav-link):not(.activity-bar-btn) {
    color: var(--psycho-primary-dark);
}

[data-activity="psychomotricite"] a:not(.btn-primary):not(.cta-button):not(.tarif-cta):not(.nav-link):not(.activity-bar-btn):hover {
    color: var(--psycho-primary);
}

/* Contact icons */
[data-activity="psychomotricite"] .contact-icon {
    background: linear-gradient(135deg, var(--psycho-accent-light) 0%, var(--psycho-accent) 100%);
}

[data-activity="psychomotricite"] .contact-icon svg {
    stroke: var(--psycho-primary-dark);
    fill: none;
}

/* ==========================================================================
   GRILLE DES INDICATIONS - SPÉCIFIQUE PSYCHOMOTRICITÉ
   Différente de la grille situations du sommeil
   ========================================================================== */

/* Variables locales pour les couleurs */
:root {
    --psycho-teal: #6b9e9e;
    --psycho-peach: #e8a87c;
    --psycho-lavender: #c4b8d9;
}

/* Grille 2 colonnes */
.indications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto var(--spacing-xl);
}

/* Cartes avec bordure colorée à gauche */
.indication-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border-left: 4px solid var(--psycho-teal);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.indication-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Header avec icône et titre */
.indication-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

/* Icônes SVG */
.indication-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: var(--psycho-teal);
}

/* Titre de la carte */
.indication-card h4 {
    font-family: var(--font-family-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e1b4b;
    margin: 0;
    line-height: 1.3;
}

/* Groupe titre + tagline */
.indication-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.indication-tagline {
    font-size: 0.8rem;
    color: #94a3b8;
    font-style: italic;
    font-weight: 400;
    line-height: 1.3;
}

/* Liste à puces */
.indication-list {
    margin: 0;
    padding-left: 20px;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.7;
}

.indication-list li {
    margin-bottom: 4px;
}

.indication-list li:last-child {
    margin-bottom: 0;
}

/* Catégories en gras dans les listes */
.indication-list li strong {
    color: #475569;
    font-weight: 600;
}

/* Couleurs alternées pour les bordures et icônes */
.indication-card:nth-child(1) {
    border-left-color: var(--psycho-teal);
}
.indication-card:nth-child(1) .indication-icon {
    color: var(--psycho-teal);
}

.indication-card:nth-child(2) {
    border-left-color: var(--psycho-peach);
}
.indication-card:nth-child(2) .indication-icon {
    color: var(--psycho-peach);
}

.indication-card:nth-child(3) {
    border-left-color: var(--psycho-lavender);
}
.indication-card:nth-child(3) .indication-icon {
    color: var(--psycho-lavender);
}

.indication-card:nth-child(4) {
    border-left-color: var(--psycho-teal);
}
.indication-card:nth-child(4) .indication-icon {
    color: var(--psycho-teal);
}

/* Responsive mobile - 1 colonne */
@media (max-width: 700px) {
    .indications-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .indication-card {
        padding: 20px;
    }

    .indication-icon {
        width: 28px;
        height: 28px;
    }

    .indication-card h4 {
        font-size: 1rem;
    }

    .indication-list {
        font-size: 0.85rem;
    }

    .indication-tagline {
        font-size: 0.75rem;
    }
}

/* ==========================================================================
   CADRE DE PRATIQUE - CARTES HORIZONTALES
   Différent de la grille approach du sommeil
   ========================================================================== */

/* Grille 2 colonnes */
.cadre-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

/* Cartes horizontales avec icône à gauche */
.cadre-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cadre-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Icône dans un cercle coloré */
.cadre-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(107, 158, 158, 0.15) 0%, rgba(107, 158, 158, 0.08) 100%);
}

.cadre-icon svg {
    width: 24px;
    height: 24px;
    color: var(--psycho-teal);
}

/* Contenu texte */
.cadre-content {
    flex: 1;
}

.cadre-content h4 {
    font-family: var(--font-family-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e1b4b;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.cadre-content p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Couleurs alternées pour les icônes */
.cadre-card:nth-child(1) .cadre-icon {
    background: linear-gradient(135deg, rgba(107, 158, 158, 0.18) 0%, rgba(107, 158, 158, 0.08) 100%);
}
.cadre-card:nth-child(1) .cadre-icon svg {
    color: var(--psycho-teal);
}

.cadre-card:nth-child(2) .cadre-icon {
    background: linear-gradient(135deg, rgba(232, 168, 124, 0.18) 0%, rgba(232, 168, 124, 0.08) 100%);
}
.cadre-card:nth-child(2) .cadre-icon svg {
    color: var(--psycho-peach);
}

.cadre-card:nth-child(3) .cadre-icon {
    background: linear-gradient(135deg, rgba(196, 184, 217, 0.22) 0%, rgba(196, 184, 217, 0.1) 100%);
}
.cadre-card:nth-child(3) .cadre-icon svg {
    color: var(--psycho-lavender);
}

.cadre-card:nth-child(4) .cadre-icon {
    background: linear-gradient(135deg, rgba(232, 168, 124, 0.18) 0%, rgba(232, 168, 124, 0.08) 100%);
}
.cadre-card:nth-child(4) .cadre-icon svg {
    color: var(--psycho-peach);
}

/* Responsive mobile - 1 colonne */
@media (max-width: 700px) {
    .cadre-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cadre-card {
        padding: 20px;
    }

    .cadre-icon {
        width: 44px;
        height: 44px;
    }

    .cadre-icon svg {
        width: 22px;
        height: 22px;
    }

    .cadre-content h4 {
        font-size: 1rem;
    }

    .cadre-content p {
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   FRISE DES ÂGES DE LA VIE
   ========================================================================== */
.ages-frise {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 3rem;
    margin: 2rem auto 2.5rem;
    padding: 1.5rem 2rem;
}

.age-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.age-item svg {
    width: 50px;
    height: 50px;
    stroke: var(--psycho-primary);
    transition: transform 0.3s ease;
}

.age-item:nth-child(2) svg {
    width: 58px;
    height: 58px;
}

.age-item:nth-child(3) svg {
    width: 66px;
    height: 66px;
}

.age-item:nth-child(4) svg {
    width: 62px;
    height: 62px;
}

.age-item span {
    font-size: 0.85rem;
    color: var(--psycho-primary-dark);
    font-weight: 500;
}

.age-item:hover svg {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 600px) {
    .ages-frise {
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .age-item svg {
        width: 40px;
        height: 40px;
    }
    
    .age-item:nth-child(2) svg {
        width: 46px;
        height: 46px;
    }
    
    .age-item:nth-child(3) svg {
        width: 52px;
        height: 52px;
    }
    
    .age-item:nth-child(4) svg {
        width: 48px;
        height: 48px;
    }
    
    .age-item span {
        font-size: 0.75rem;
    }
}
