/* --- VARIABLES & THÈMES --- */
:root {
    --primary-color: #4a687c;
    --accent-color: #C6AD8F;
    --pastel-pink: rgba(182, 206, 255, 0.4);
    --bg-color: #f9fdfa;
    --card-bg: rgba(255, 255, 255, 0.85);
    --text-main: #333;
    --border-color: rgba(74, 124, 89, 0.15);
    --bubble-bg: rgba(255, 255, 255, 0.7);
  }
  [data-theme="dark"] {
    --primary-color: #8faabc;
    --bg-color: #1a1a1a;
    --card-bg: rgba(40, 40, 40, 0.85);
    --text-main: #e0e0e0;
    --border-color: rgba(255, 255, 255, 0.1);
    --bubble-bg: rgba(0, 0, 0, 0.5);
  }
  
  /* --- BASE --- */
  *, *::before, *::after {
    margin: 0; padding: 0; box-sizing: border-box;
    transition: background 0.3s, color 0.3s;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  
  body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    background-image:
      radial-gradient(circle at 10% 20%, var(--pastel-pink) 0%, transparent 25%),
      radial-gradient(circle at 90% 80%, var(--pastel-pink) 0%, transparent 30%);
    background-attachment: fixed;
    line-height: 1.8;
    padding: 100px 20px 40px;
  }
  
  /* --- NAVIGATION --- */
  .bubble {
    position: fixed;
    top: 20px;
    width: 50px;
    height: 50px;
    background: var(--bubble-bg);
    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.05);
    z-index: 1000;
    transition: transform 0.25s ease;
  }
  .bubble:hover { transform: scale(1.1); }
  .bubble-left  { left: 20px; }
  .bubble-right { right: 20px; }
  
  .bubble-back a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: bold;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
  }
  
  #theme-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    width: 100%;
    height: 100%;
  }
  
  @media (max-width: 768px) {
    #theme-toggle {
      top: auto;
      bottom: 20px;
      left: 20px;
      right: auto;
      position: fixed;
      z-index: 9999;
    }
  }
  
  /* --- LAYOUT --- */
  .container {
    max-width: 700px;
    margin: 0 auto;
  }
  
  /* --- HERO --- */
  .hero-box {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 30px;
    border: 2px solid var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    animation: fadeIn 0.8s ease-out;
  }
  
  .hero-box h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-top: 10px;
  }
  
  .hero-tagline {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    font-weight: 600;
  }
  
  /* --- CARD --- */
  .card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    animation: fadeIn 0.8s ease-out;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
  }
  
  /* --- PHOTO PROFIL --- */
  .profile-photo-wrapper {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    padding: 3px;
    margin: 0 auto 28px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(74, 104, 124, 0.18);
    transition: transform 0.4s ease, box-shadow 0.3s;
  }
  .profile-photo-wrapper:hover {
    transform: scale(1.04);
    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;
  }
  
  /* --- CONTENU PROFIL --- */
  .profile-header {
    text-align: center;
    margin-bottom: 30px;
  }
  .profile-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
  }
  .profile-header .profile-title {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--primary-color);
    font-size: 1.05rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 16px;
  }
  .profile-divider {
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
    margin: 0 auto;
  }
  
  /* --- SECTIONS --- */
  .section-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 8px;
  }
  
  .card h3 {
    color: var(--accent-color);
    font-size: 0.95rem;
    margin: 22px 0 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  
  .card p {
    margin-bottom: 14px;
    font-size: 0.93rem;
  }
  
  /* --- PILLS --- */
  .pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 18px;
  }
  .pill {
    background: rgba(74, 104, 124, 0.07);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    border-radius: 30px;
    padding: 5px 16px;
    font-size: 0.82rem;
    font-weight: 600;
  }
  
  /* --- CONTACT BOX --- */
  .contact-box {
    background: rgba(74, 104, 124, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 28px 25px;
    text-align: center;
    margin: 22px 0;
  }
  .contact-box p {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 6px;
  }
  .contact-box .phone {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-color);
    display: block;
    margin: 8px 0;
    text-decoration: none;
    transition: opacity 0.2s;
  }
  .contact-box .phone:hover { opacity: 0.75; }
  
  /* --- BOUTON RETOUR (bas de page) --- */
  .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;
  }
  
  /* --- FOOTER --- */
  .article-footer {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.82rem;
    opacity: 0.7;
    font-style: italic;
  }
  
  @media (max-width: 600px) {
    body { padding-top: 80px; }
    .hero-box h1 { font-size: 1.8rem; }
    .card { padding: 25px; }
  }
  
  /* --- SOCIAL CARD --- */
  .social-card {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    background: rgba(74, 104, 124, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 18px 22px;
    margin-top: 16px;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.3s,
                box-shadow 0.3s;
  }
  .social-card:hover {
    transform: translateX(6px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 28px rgba(74, 104, 124, 0.1);
  }
  .social-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .social-card:hover .social-card-icon {
    transform: scale(1.1);
  }
  .social-card-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  .social-card-label {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 700;
  }
  .social-card-sub {
    font-size: 0.8rem;
    opacity: 0.6;
  }
  .social-card-arrow {
    font-size: 1.2rem;
    color: var(--primary-color);
    opacity: 0.4;
    flex-shrink: 0;
    transition: opacity 0.2s, transform 0.2s;
  }
  .social-card:hover .social-card-arrow {
    opacity: 1;
    transform: translateX(4px);
  }