/* -----------------------------------------------
   Autisphère — style.css
   Ordre : variables · base · animations · nav · layout · index · blog · events · newsletter · responsive
----------------------------------------------- */


/* --- Variables --- */

:root {
    --primary-color: #4a687c;
    --accent-color:  #C6AD8F;
    --pink:          rgba(182, 206, 255, 0.4);
    --bg-color:      #f9fdfa;
    --card-bg:       rgba(255, 255, 255, 0.85);
    --text-color:    #333;               /* FIX : une seule variable (supprimé --text-main qui était identique) */
    --border-color:  rgba(74, 124, 89, 0.15);
    --bubble-bg:     rgba(255, 255, 255, 0.92);
  }
  
  [data-theme="dark"] {
    --primary-color: #8faabc;
    --bg-color:      #1a1a1a;
    --card-bg:       rgba(40, 40, 40, 0.85);
    --text-color:    #e0e0e0;
    --border-color:  rgba(255, 255, 255, 0.1);
    --bubble-bg:     rgba(30, 30, 30, 0.92);
  }
  
  
  /* --- Base --- */
  
  *, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    background-image:
      radial-gradient(circle at 10% 20%, var(--pink) 0%, transparent 25%),
      radial-gradient(circle at 90% 80%, var(--pink) 0%, transparent 30%);
    /* FIX : background-attachment: fixed désactivé ici, réactivé uniquement
       sur desktop (voir media query) car il provoque un bug de rendu sur iOS Safari */
    line-height: 1.6;
    padding: 100px 20px 40px;
    transition: background-color 0.3s, color 0.3s;
  }
  
  .container {
    max-width: 900px;
    margin: 0 auto;
  }
  
  hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    width: 80%;
    margin: 0 auto;
  }
  
  footer {
    text-align: center;
    padding: 40px 0;
    font-weight: bold;
    opacity: 0.7;
  }
  
  
  /* --- Animations CSS --- */
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  
  @keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-18px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  
  @keyframes popIn {
    0%   { opacity: 0; transform: scale(0.82); }
    70%  { transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
  }
  
  @keyframes bubbleFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-5px); }
  }
  
  @keyframes pulseRing {
    0%   { box-shadow: 0 0 0 0    rgba(74, 104, 124, 0.28); }
    70%  { box-shadow: 0 0 0 12px rgba(74, 104, 124, 0); }
    100% { box-shadow: 0 0 0 0    rgba(74, 104, 124, 0); }
  }
  
  /* Scroll-reveal — JS ajoute .reveal puis .is-visible */
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
      opacity   0.7s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
  
  
  /* --- Navigation (bubbles) --- */
  
  .bubble {
    position: fixed;
    top: 20px;
    width: 50px;
    height: 50px;
    background: var(--bubble-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    cursor: pointer;
    animation: popIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.3s, border-color 0.3s;
  }
  .bubble:hover {
    transform: translateY(-3px) scale(1.07);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.13);
  }
  .bubble a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
  }
  .bubble img {
    width: 70%;
    height: auto;
  }
  
  .bubble-left  { left: 20px;  animation-delay: 0.1s; }
  .bubble-right { right: 20px; animation-delay: 0.2s; }
  
  .bubble-left:hover img {
    animation: bubbleFloat 1.8s ease-in-out infinite;
  }
  
  #theme-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  #theme-btn:hover  { transform: rotate(20deg) scale(1.2); }
  #theme-btn:active { transform: scale(0.9); }
  
  .bubble-nav {
    top: 20px;
    width: 130px;
    height: 48px;
    border-radius: 999px;
    font-size: 0.8rem;
    padding: 5px;
    text-align: center;
  }
  .bubble-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    transition: color 0.25s;
  }
  
  /* Soulignement animé au hover */
  .bubble-nav a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 40%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .bubble-nav a:hover::after { transform: translateX(-50%) scaleX(1); }
  
  .bubble-nav-home   { left: 50%; margin-left: -220px; animation-delay: 0.3s; }
  .bubble-nav-blog   { left: 50%; margin-left: -70px;  animation-delay: 0.4s; }
  .bubble-nav-events { left: 50%; margin-left: 80px;   animation-delay: 0.5s; }
  
  
  /* --- Layout commun --- */
  
  .hero-box {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 30px;
    border: 2px solid var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    animation: fadeInDown 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
    transition: box-shadow 0.3s, background 0.3s;
  }
  .hero-box:hover { box-shadow: 0 16px 40px rgba(74, 104, 124, 0.1); }
  
  .hero-box h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    animation: fadeInDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
  }
  
  .sous-titre { text-align: center; }
  
  .card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 25px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: background 0.3s, border-color 0.3s;
  }
  
  
  /* --- Page Accueil --- */
  
  /* FIX : .hero-tagline n'est défini qu'une seule fois (suppression du doublon) */
  .hero-tagline {
    text-align: left;
    margin-top: 10px;
    font-size: 1.1rem;
    font-style: italic;
    opacity: 0.9;
    animation: fadeIn 0.7s ease 0.55s both;
  }
  
  .hero-intro {
    font-size: 1rem;
    line-height: 1.85;
    opacity: 0.88;
    margin-bottom: 16px;
  }
  
  .hero-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .hero-list li {
    font-size: 0.95rem;
    opacity: 0.88;
    padding-left: 22px;
    position: relative;
    line-height: 1.6;
  }
  .hero-list li::before {
    content: '•';
    position: absolute;
    left: 6px;
    color: var(--primary-color);
    font-weight: 700;
  }
  
  .hero-closing {
    font-size: 0.95rem;
    line-height: 1.85;
    opacity: 0.88;
    margin-bottom: 20px;
  }
  
  .hero-motto {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-style: italic;
    margin-top: 10px;
  }
  
  .hero-section-title {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 15px;
  }
  .card .hero-section-title {
    font-size: 1.9rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    text-align: center; /* FIX : déplacé du inline style HTML vers le CSS */
  }
  
  .mission-intro {
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 30px;
  }
  .mission-intro strong { color: var(--primary-color); }
  
  .mission-section { margin-bottom: 25px; }
  .mission-section h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-size: 1.15rem;
    margin-bottom: 10px;
    padding-left: 12px;
    border-left: 3px solid var(--accent-color);
  }
  .mission-section p { font-size: 0.95rem; line-height: 1.85; opacity: 0.88; }
  .mission-section p + p { margin-top: 10px; }
  
  .mission-quote {
    margin-top: 35px;
    padding: 25px 30px;
    background: linear-gradient(135deg, rgba(74, 104, 124, 0.05), var(--card-bg));
    border-radius: 20px;
    border-left: 4px solid var(--accent-color);
    transition: transform 0.3s, box-shadow 0.3s;
  }
  .mission-quote:hover {
    transform: translateX(4px);
    box-shadow: -4px 0 0 var(--accent-color);
  }
  .mission-quote p {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-style: italic;
    color: var(--primary-color);
    line-height: 1.9;
    text-align: center;
  }
  
  .info-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
  }
  
  .small-card {
    flex: 1;
    min-width: 250px;
    background: var(--card-bg);
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition:
      transform    0.35s cubic-bezier(0.22, 1, 0.36, 1),
      border-color 0.3s,
      box-shadow   0.35s,
      background   0.3s;
  }
  .small-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 16px 36px rgba(74, 104, 124, 0.12);
  }
  .small-card h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin: 10px 0;
  }
  .small-card p {
    font-size: 0.88rem;
    opacity: 0.75;
    margin-top: 4px;
  }
  
  .small-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex: 1;
    min-width: 250px;
  }
  .small-card-link .small-card {
    height: 100%;
    position: relative;
    cursor: pointer;
  }
  .small-card-link:hover .small-card {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 16px 36px rgba(74, 104, 124, 0.12);
  }
  
  .small-card-disabled {
    opacity: 0.55;
    cursor: default;
  }
  
  .small-card-arrow {
    display: inline-block;
    margin-top: 14px;
    font-size: 1.1rem;
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .small-card-link:hover .small-card-arrow {
    opacity: 1;
    transform: translateX(0);
  }
  
  .icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .small-card:hover .icon { transform: scale(1.25) rotate(-5deg); }
  
  .back-btn {
    display: block;
    width: fit-content;
    margin: 10px auto 30px;
    padding: 11px 28px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: 50px;
    transition: transform 0.2s, opacity 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
  }
  .back-btn:hover {
    transform: translateY(-2px);
    opacity: 0.88;
  }
  
  
  /* --- Blog --- */
  
  .blog-section-title {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
  }
  .blog-cta-card { margin-top: 40px; text-align: center; }
  
  .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
  }
  
  .blog-card-link { text-decoration: none; color: inherit; }
  .blog-card-link .blog-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    padding: 20px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
    transition:
      transform      0.35s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow     0.35s,
      border-color   0.3s;
  }
  .blog-card-link .blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(74, 104, 124, 0.12);
    border-color: var(--primary-color);
  }
  
  .blog-card-image { overflow: hidden; border-radius: 14px; }
  .blog-card-image img {
    width: 100%;
    display: block;
    border-radius: 14px;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .blog-card-link:hover .blog-card-image img { transform: scale(1.06); }
  
  .blog-card-content h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 10px;
  }
  
  
  /* --- Événements --- */
  
  .event-list-wrapper { display: flex; flex-direction: column; gap: 20px; }
  
  /* FIX : margin-bottom supprimé de .event-list-wrapper h2, géré par gap à la place */
  .event-list-wrapper .hero-section-title { margin-bottom: 0; }
  
  .event-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition:
      transform      0.35s cubic-bezier(0.22, 1, 0.36, 1),
      border-color   0.3s,
      box-shadow     0.35s,
      background     0.3s;
  }
  .event-card:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 28px rgba(74, 104, 124, 0.1);
  }
  .event-card:hover .event-date-badge { animation: pulseRing 0.8s ease-out; }
  
  .event-info { flex: 1; padding-right: 20px; }
  .event-name {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 8px;
  }
  .event-desc   { font-size: 0.95rem; opacity: 0.8; margin: 0; }
  .event-location {
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.6;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  .event-date-badge {
    background: var(--primary-color);
    color: white;
    min-width: 80px;
    height: 80px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  .event-date-badge .day   { font-size: 1.5rem; font-weight: 700; line-height: 1; }
  .event-date-badge .month { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
  
  
  /* --- Category cards (Événements) --- */
  
  .category-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
  }
  .category-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    padding: 28px 30px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
    transition:
      transform      0.3s cubic-bezier(0.22, 1, 0.36, 1),
      border-color   0.3s,
      box-shadow     0.3s;
    cursor: pointer;
  }
  .category-card:hover {
    transform: translateX(8px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
  }
  
  .category-card-icon { font-size: 2.2rem; flex-shrink: 0; }
  .category-card-info {
    flex: 1;
    min-width: 0; /* Empêche le texte long de forcer l'élargissement */
  }
  .category-card-title {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 6px;
    word-break: break-word;
  }
  .category-card-desc {
    font-size: 0.92rem;
    opacity: 0.78;
    line-height: 1.6;
    margin: 0;
  }
  .category-card-arrow {
    font-size: 1.4rem;
    color: var(--primary-color);
    opacity: 0.5;
    flex-shrink: 0;
    transition: opacity 0.2s, transform 0.2s;
  }
  .category-card:hover .category-card-arrow {
    opacity: 1;
    transform: translateX(4px);
  }
  .category-card-count {
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    flex-shrink: 0;
    white-space: nowrap;
  }
  
  
  /* --- Newsletter (Blog) --- */
  
  .newsletter-title {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
  }
  
  #newsletter-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 420px;
    margin: 0 auto;
  }
  .newsletter-field {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  
  #newsletter-email {
    width: 100%;
    padding: 10px 20px;
    border-radius: 50px;
    border: none;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    outline: none;
    box-shadow: 0 2px 10px rgba(74, 104, 124, 0.1);
    transition: box-shadow 0.3s;
  }
  #newsletter-email:focus { box-shadow: 0 4px 16px rgba(74, 104, 124, 0.2); }
  #newsletter-email::placeholder { color: #b0bcc8; font-style: italic; }
  
  .newsletter-hint  { font-size: 0.72rem; color: #a0aab4; font-style: italic; padding-left: 12px; }
  .newsletter-error { font-size: 0.78rem; color: #ff4949; padding-left: 12px; }
  
  #newsletter-btn {
    background-color: var(--primary-color);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 50px;
    border: 2px solid var(--primary-color);
    padding: 11px 36px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(74, 104, 124, 0.2);
    transition:
      background-color 0.3s,
      color            0.3s,
      transform        0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
      box-shadow       0.3s;
  }
  #newsletter-btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 22px rgba(74, 104, 124, 0.2);
  }
  #newsletter-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
  }
  
  .newsletter-success-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: #e7faf0;
    border: 1px solid #13ce66;
    border-radius: 20px;
    max-width: 420px;
    margin: 0 auto;
  }
  .newsletter-success-box p {
    color: #085229;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
  }
  
  .newsletter-error-box {
    padding: 20px;
    background: #ffeded;
    border: 1px solid #ff4949;
    border-radius: 20px;
    max-width: 420px;
    margin: 0 auto;
    text-align: center;
  }
  .newsletter-error-box p {
    color: #661d1d;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    margin: 0;
  }
  
  [data-theme="dark"] #newsletter-email {
    background: rgba(40, 40, 40, 0.9);
    color: #e0e0e0;
  }
  [data-theme="dark"] #newsletter-email::placeholder { color: #555; }
  [data-theme="dark"] .newsletter-success-box {
    background: rgba(7, 82, 41, 0.25);
    border-color: #13ce66;
  }
  [data-theme="dark"] .newsletter-success-box p { color: #6effa8; }
  
  
  /* --- Cartes profil --- */
  
  .profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
  }
  .profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 25px;
    border: 2px solid var(--primary-color);
    margin: 0;
    animation: fadeInDown 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
  }
  .profile-card:hover { box-shadow: 0 24px 60px rgba(74, 104, 124, 0.15); }
  
  .profile-photo-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    padding: 3px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(74, 104, 124, 0.18);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
  }
  .profile-card:hover .profile-photo-wrapper {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(74, 104, 124, 0.25);
  }
  .profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
  }
  .profile-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
  }
  .profile-title {
    font-family: 'Playfair Display', serif;
    font-size: 0.88rem;
    font-style: italic;
    color: var(--primary-color);
    line-height: 1.6;
    margin-bottom: 14px;
    opacity: 0.9;
  }
  .profile-divider {
    width: 40px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 2px;
    margin: 0 auto 14px;
  }
  .profile-specialties { font-size: 0.82rem; line-height: 1.8; opacity: 0.75; margin-bottom: 20px; }
  .profile-tel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 0.88rem;
    color: var(--primary-color);
    padding: 8px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    box-shadow: 0 4px 14px rgba(74, 104, 124, 0.12);
    transition:
      background-color 0.3s,
      color            0.3s,
      transform        0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
      box-shadow       0.3s;
  }
  .profile-tel:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 22px rgba(74, 104, 124, 0.2);
  }
  
  
  /* --- Responsive --- */
  
  @media (min-width: 769px) {
    body { background-attachment: fixed; }
  }
  
  @media (max-width: 768px) {
    body { padding: 80px 15px 30px; }
  
    .hero-box    { padding: 25px 20px; }
    .hero-box h1 { font-size: 2.1rem; }
    .card        { padding: 25px 20px; }
  
    .info-grid   { flex-direction: column; }
    .bubble-left { display: none; }
  
    .bubble-nav {
      width: 95px;
      height: 40px;
      font-size: 0.75rem;
      top: 10px;
    }
    .bubble-nav-home   { left: 50%; margin-left: -155px; }
    .bubble-nav-blog   { left: 50%; margin-left: -47px;  }
    .bubble-nav-events { left: 50%; margin-left: 61px;   }
  
    #theme-toggle {
      top: auto;
      right: auto;
      bottom: 20px;
      left: 20px;
      position: fixed;
      width: 55px;
      height: 55px;
      z-index: 9999;
      background: var(--card-bg);
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    #theme-btn { font-size: 1.4rem; }
  
    .event-card {
      flex-direction: column-reverse;
      align-items: flex-start;
      gap: 15px;
    }
    .event-card:hover { transform: translateY(-5px); }
    .event-date-badge {
      flex-direction: row;
      width: auto;
      height: auto;
      min-width: 0;
      padding: 5px 15px;
      gap: 8px;
    }
    .event-date-badge .day { font-size: 1.1rem; }
  
    .mission-quote   { padding: 20px; }
    .mission-quote p { font-size: 0.97rem; }
  
    .category-card        { padding: 20px; gap: 12px; }
    .category-card-title  { font-size: 1.05rem; }
    .category-card-icon   { font-size: 1.8rem; }
    .category-card:hover  { transform: translateY(-3px) !important; }
  }
  
  
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  }