:root {
    --pink-main:    #f7b8d9;
    --pink-light:   #fce8f3;
    --pink-lighter: #fff0f8;
    --pink-dark:    #f082b8;
    --accent:       #df2e7d;
    --accent-hover: #b8226a;
  
    --bg:           #fff7fc;
    --bg-alt:       #fce8f3;
    --surface:      rgba(255, 255, 255, 0.72);
    --text:         #2a1a24;
    --text-muted:   #8a5c73;
    --border:       rgba(223, 46, 125, 0.15);
  
    --nav-bg:       rgba(255, 247, 252, 0.75);
    --nav-border:   rgba(247, 184, 217, 0.4);
  
    --shadow-sm: 0 2px 12px rgba(223, 46, 125, 0.10);
    --shadow-md: 0 8px 32px rgba(223, 46, 125, 0.15);
    --shadow-lg: 0 20px 60px rgba(223, 46, 125, 0.18);
  
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'DM Sans', system-ui, sans-serif;
  
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-pill: 999px;
  
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  [data-theme="dark"] {
    --bg:           #1a0d14;
    --bg-alt:       #240f1c;
    --surface:      rgba(36, 15, 28, 0.80);
    --text:         #fce8f3;
    --text-muted:   #c490aa;
    --border:       rgba(247, 184, 217, 0.12);
  
    --nav-bg:       rgba(26, 13, 20, 0.85);
    --nav-border:   rgba(247, 184, 217, 0.15);
  
    --pink-lighter: #240f1c;
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.55);
  }
  

  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html {
    scroll-behavior: smooth;
    font-size: 16px;
  }
  
  body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    transition: background-color var(--transition), color var(--transition);
    overflow-x: hidden;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  ul { list-style: none; }
  
  img { max-width: 100%; display: block; }
  
  /* =============================================
     4. NAVBAR — GLASSMORPHISM
     ============================================= */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-bottom: 1px solid var(--nav-border);
    transition: box-shadow var(--transition), background var(--transition);
  }
  
  .navbar.scrolled {
    box-shadow: var(--shadow-md);
  }
  
  .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    gap: 1rem;
  }
  
  /* Logo */
  .nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.02em;
    z-index: 101;
    transition: opacity var(--transition);
  }
  .nav-logo:hover { opacity: 0.75; }
  

  .burger-checkbox { display: none; }
  
  .burger-icon {
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    cursor: pointer;
    z-index: 101;
    padding: 4px;
    order: 99;
  }
  
  .burger-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--accent);
    border-radius: 4px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
  }
  
  .burger-checkbox:checked + .burger-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .burger-checkbox:checked + .burger-icon span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .burger-checkbox:checked + .burger-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  
  /* ---- Menu desktop ---- */
  .nav-menu {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
  }
  
  .nav-links {
    display: flex;
    gap: 0;
    align-items: center;
  }
  
  .nav-link {
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    position: relative;
    transition: color var(--transition);
    padding: 0.5rem 1rem;
    display: block;
  }
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 50%;
    height: 2px;
    background: var(--accent);
    transition: left 0.3s ease, right 0.3s ease;
    border-radius: 2px;
  }
  .nav-link:hover { color: var(--accent); }
  .nav-link:hover::after { left: 10%; right: 10%; }
  
  .nav-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-left: auto;
  }
  
  .theme-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .theme-toggle-desktop {
    display: flex;
  }

  .theme-toggle-mobile {
    display: none;
  }
  
  .theme-label { font-size: 0.85rem; }
  
  .theme-checkbox { display: none; }
  
  .theme-slider {
    display: block;
    width: 44px;
    height: 24px;
    background: var(--pink-main);
    border-radius: var(--radius-pill);
    position: relative;
    cursor: pointer;
    transition: background var(--transition);
  }
  .theme-slider::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 18px; height: 18px;
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition);
  }
  .theme-checkbox:checked + .theme-slider {
    background: var(--accent);
  }
  .theme-checkbox:checked + .theme-slider::after {
    transform: translateX(20px);
  }
  
  /* =============================================
     5. HERO
     ============================================= */
  .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7rem 1.5rem 4rem;
    position: relative;
    overflow: hidden;
    background: var(--bg);
  }
  
  .hero-content {
    max-width: 760px;
    text-align: center;
    position: relative;
    z-index: 2;
  }

  .titre-certif {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--accent);
    margin: 2.5rem auto 1.2rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    text-align: center;
  }
  
  .hero-eyebrow {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.2rem;
    opacity: 0.9;
    animation: slideDown 0.8s ease-out;
  }
  
  .hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 300;
    line-height: 1.05;
    color: var(--text);
    margin-bottom: 1.4rem;
    letter-spacing: -0.01em;
    animation: slideUp 0.8s ease-out 0.1s both;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 1rem;
    line-height: 1.75;
    animation: slideUp 0.8s ease-out 0.2s both;
  }

  .hero-description {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    animation: slideUp 0.8s ease-out 0.3s both;
  }

  .hero-content .btn-primary {
    animation: slideUp 0.8s ease-out 0.4s both;
  }
  
  /* Blobs décoratifs hero */
  .hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    pointer-events: none;
    z-index: 1;
  }
  .blob-1 {
    width: 500px; height: 500px;
    background: var(--pink-main);
    top: -100px; right: -150px;
  }
  .blob-2 {
    width: 360px; height: 360px;
    background: var(--pink-light);
    bottom: -80px; left: -100px;
  }
  
  /* =============================================
     6. BOUTONS
     ============================================= */
  .btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent);
    color: white;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 20px rgba(223, 46, 125, 0.35);
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
    border: none;
  }
  .btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(223, 46, 125, 0.5);
  }
  .btn-primary:active { transform: translateY(-1px); }
  
  .btn-secondary {
    display: inline-block;
    padding: 0.95rem 2.3rem;
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius-pill);
    transition: all var(--transition);
    cursor: pointer;
  }
  .btn-secondary:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(223, 46, 125, 0.4);
  }
  
  /* =============================================
     7. SECTIONS GÉNÉRIQUES
     ============================================= */
  .section {
    padding: 6rem 1.5rem;
  }
  
  .section-light {
    background: var(--pink-lighter);
  }
  
  .section-dark {
    background: var(--bg-alt);
  }
  
  .section-container {
    max-width: 1100px;
    margin: 0 auto;
  }
  
  .section-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .section-tag {
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.8rem;
  }
  
  .section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 1.2rem;
    max-width: 700px;
    animation: fadeInUp 0.8s ease-out;
  }
  
  .section-text {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 3.5rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.1s both;
  }
  
  .section-cta {
    text-align: center;
    margin-top: 3rem;
  }
  
  /* =============================================
     8. CARDS
     ============================================= */
  .cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.8rem;
  }
  
  .card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2.2rem 2rem;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  }
  .card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(223, 46, 125, 0.3);
  }
  
  /* Card avec accent couleur */
  .card-accent {
    background: linear-gradient(135deg, rgba(247,184,217,0.2) 0%, rgba(223,46,125,0.08) 100%);
    border-color: rgba(223, 46, 125, 0.25);
  }
  .card-accent:hover {
    background: linear-gradient(135deg, rgba(247,184,217,0.3) 0%, rgba(223,46,125,0.12) 100%);
  }
  
  .card-icon {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: var(--accent);
    display: inline-block;
  }
  
  .card-num {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.8rem;
    opacity: 0.8;
  }
  
  .card-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.6rem;
    line-height: 1.3;
  }
  
  .card-text {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
  }
  
  /* =============================================
     9. GALERIE - CARROUSEL MOBILE
     ============================================= */

  .gallery-carousel {
    display: none;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-bottom: 3rem;
  }

  .carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .carousel-item {
    min-width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--radius-md);
  }

  .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: background var(--transition), transform var(--transition);
  }

  .carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
  }

  .carousel-prev {
    left: 1rem;
  }

  .carousel-next {
    right: 1rem;
  }

  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 1rem 0;
    background: rgba(0, 0, 0, 0.05);
  }

  .carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(223, 46, 125, 0.3);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    border: none;
  }

  .carousel-dot.active {
    background: var(--accent);
    transform: scale(1.3);
  }

  /* =============================================
     9b. GALERIE - GRILLE DESKTOP
     ============================================= */

  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 220px 220px;
    gap: 1rem;
  }

  .gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-sm);
  }

  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
  }

  .gallery-tall {
    grid-row: span 2;
  }

  .gallery-wide {
    grid-column: span 2;
  }

  .gallery-placeholder {
    width: 100%;
    height: 100%;
    min-height: 120px;
    background: linear-gradient(135deg, var(--pink-main) 0%, var(--pink-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: rgba(223, 46, 125, 0.6);
    letter-spacing: 0.1em;
    font-weight: 500;
  }
  
  /* =============================================
     10. CONTACT
     ============================================= */
  .contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 3rem;
    margin-bottom: 2.5rem;
  }
  
  .contact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: var(--text-muted);
  }
  
  .contact-icon {
    font-size: 1.1rem;
    color: var(--accent);
  }
  
  /* =============================================
     11. FOOTER
     ============================================= */
  .footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 2rem 1.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
  }

  /* =============================================
     12. ANIMATIONS
     ============================================= */
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* =============================================
     13. RESPONSIVE — MOBILE
     ============================================= */
  @media (max-width: 768px) {
  
    .burger-icon {
      display: flex;
    }
  
    .nav-menu {
      position: fixed;
      top: 64px;
      left: 0;
      right: 0;
      bottom: 0;
      background: var(--nav-bg);
      backdrop-filter: blur(24px) saturate(180%);
      -webkit-backdrop-filter: blur(24px) saturate(180%);
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      padding-top: 3rem;
      gap: 0;
      opacity: 0;
      pointer-events: none;
      transition: opacity var(--transition);
      z-index: 98;
      overflow-y: auto;
    }
  
    .burger-checkbox:checked ~ .nav-menu {
      opacity: 1;
      pointer-events: all;
    }
  
    .nav-links {
      flex-direction: column;
      align-items: center;
      gap: 0;
      width: 100%;
    }
  
    .nav-link {
      font-size: 1rem;
      padding: 1.2rem 1.5rem;
      width: 100%;
      text-align: center;
      border-bottom: 1px solid var(--border);
    }

    .nav-link:last-child {
      border-bottom: none;
    }

    .theme-toggle-mobile {
      padding-top: 2rem;
      padding-bottom: 2rem;
      border-top: 1px solid var(--border);
      width: 100%;
      justify-content: center;
      margin-top: auto;
    }
  
    .section { 
      padding: 3.5rem 1.2rem; 
    }

    .section-title { 
      margin-bottom: 1.5rem; 
    }

    .section-text { 
      margin-bottom: 2.5rem; 
    }

    .cards-grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }

    .gallery-carousel {
      display: block;
    }

    .gallery-grid {
      display: none;
    }
  
    .hero { 
      padding: 5rem 1.2rem 2rem; 
    }

    .hero-description {
      font-size: 0.95rem;
      margin-bottom: 2rem;
    }

    .blob-1, .blob-2 { 
      filter: blur(60px); 
    }
  }
  
  @media (max-width: 480px) {
    .gallery-grid {
      grid-template-columns: 1fr;
      gap: 0.8rem;
    }

    .contact-info {
      flex-direction: column;
      align-items: center;
      gap: 1rem;
    }

    .nav-link {
      padding: 0.8rem 1rem;
      font-size: 0.9rem;
    }

    .btn-primary,
    .btn-secondary {
      padding: 0.9rem 1.8rem;
      font-size: 0.85rem;
    }

    .card-title {
      font-size: 1.2rem;
    }

    .section {
      padding: 2.5rem 1rem;
    }

    .hero-title {
      margin-bottom: 1rem;
    }

    .hero-subtitle {
      font-size: 1rem;
      margin-bottom: 0.8rem;
    }

    .hero-description {
      font-size: 0.9rem;
      margin-bottom: 1.5rem;
    }
  }