/* Modern Reset and base styles */
*, *::before, *::after {
  box-sizing: border-box;
}

    body {
      margin: 0;
      font-family: 'Poppins', sans-serif;
      background-color: #f4f6f8;
      color: #1a1a1a;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    a {
      color: #0366d6;
      text-decoration: none;
      transition: color 0.3s ease;
    }
    a:hover, a:focus {
      color: #024a8e;
      outline: none;
    }

    /* Container */
    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 24px;
    }

    /* Header */
    header {
      position: sticky;
      top: 0;
      background: rgba(255 255 255 / 0.95);
      backdrop-filter: saturate(180%) blur(12px);
      border-bottom: 1px solid #ccc;
      z-index: 100;
    }

    .header-inner {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 16px 0;
      max-width: 1200px;
      margin: 0 auto;
    }

    .logo {
      font-weight: 800;
      font-size: 1.8rem;
      color: #0a3d62; /* Deep blue reminiscent of Brittany ocean */
      letter-spacing: 1px;
      user-select: none;
      cursor: default;
      font-family: 'Poppins', sans-serif;
    }

        /* Burger menu button */
    .burger-button {
      display: none;
      background: none;
      border: none;
      font-size: 36px;
      color: #0a3d62;
      cursor: pointer;
      user-select: none;
      padding: 4px;
      line-height: 1;
    }
    .burger-button:focus {
      outline: 2px solid #0a3d62;
      outline-offset: 2px;
    }

    /* Mobile menu overlay */
    .mobile-menu {
      position: fixed;
      top: 64px;
      right: 0;
      width: 280px;
      height: calc(100vh - 64px);
      background: rgba(10,61,98,0.95);
      backdrop-filter: saturate(180%) blur(20px);
      box-shadow: -6px 0 24px rgba(10,61,98,0.6);
      transform: translateX(100%);
      transition: transform 0.3s ease;
      display: flex;
      flex-direction: column;
      padding: 24px;
      z-index: 150;
    }
    .mobile-menu.open {
      transform: translateX(0);
    }

    .mobile-menu a {
      color: #d6e0f0;
      font-weight: 600;
      font-size: 1.2rem;
      padding: 12px 0;
      border-bottom: 1px solid rgba(214,224,240,0.2);
      transition: color 0.3s ease;
      text-decoration: none;
    }
    .mobile-menu a:hover,
    .mobile-menu a:focus {
      color: #74b3ce;
      outline: none;
    }

    /* Overlay background for menu */
    .menu-backdrop {
      position: fixed;
      top: 64px;
      left: 0;
      width: 100vw;
      height: calc(100vh - 64px);
      background: rgba(0, 0, 0, 0.4);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
      z-index: 140;
    }
    .menu-backdrop.visible {
      opacity: 1;
      pointer-events: auto;
    }


    nav {
      display: flex;
      gap: 32px;
    }

    nav a {
      font-weight: 600;
      font-size: 1rem;
      padding: 8px 0;
      border-bottom: 3px solid transparent;
      transition: border-color 0.3s ease;
    }

    nav a:hover,
    nav a:focus {
      border-color: #0a3d62;
    }

    /* Hero Section */
    .hero {
      position: relative;
      min-height: 80vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0 24px;
      overflow: hidden;
      background:
        linear-gradient(135deg, rgba(10,61,98,0.75) 0%, rgba(52,73,94,0.75) 100%);
      color: #fff;
      text-align: center;
    }
    .hero img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      filter: brightness(0.45);
      z-index: 0;
      pointer-events: none;
      user-select: none;
    }
    .hero-content {
      position: relative;
      z-index: 1;
      max-width: 700px;
      padding: 48px;
      border-radius: 16px;
      background: rgba(10, 61, 98, 0.4);
      box-shadow: 0 8px 32px rgb(10 61 98 / 0.35);
    }
    .hero-content h1 {
      font-size: 3.5rem;
      font-weight: 900;
      margin-bottom: 16px;
      line-height: 1.1;
      letter-spacing: 0.05em;
      font-family: 'Poppins', sans-serif;
    }
    .hero-content p {
      font-size: 1.25rem;
      font-weight: 400;
      color: #d6e0f0;
      margin-bottom: 24px;
    }
    .btn-primary {
      padding: 14px 36px;
      font-size: 1.1rem;
      font-weight: 700;
      background: linear-gradient(135deg, #0a3d62, #74b3ce);
      border: none;
      color: white;
      border-radius: 12px;
      cursor: pointer;
      transition: 0.3s ease, transform 0.3s ease;
      box-shadow: 0 6px 15px rgb(10 61 98 / 0.35);
    }
    .btn-primary:hover,
    .btn-primary:focus {
      background: linear-gradient(135deg, #074270, #527f9e);
      transform: translateY(-3px);
      outline: none;
    }


    .btn-remerciement:hover {
      background-color: #074270;
      display: inline-block;
      padding: 10px 20px;
      background-color: #0288d1;
      color: white;
      text-decoration: none;
      border-radius: 5px;
      font-weight: bold;
      font-size: 16px;
      cursor: pointer;
     transition: background-color 0.3s ease;
    }

    /* Sections */
    section {
      padding: 80px 0;
    }
    section h2 {
      font-size: 2.75rem;
      font-weight: 900;
      margin-bottom: 40px;
      text-align: center;
      color: #0a3d62;
      letter-spacing: 0.05em;
    }

    /* À propos Section */

    #shoot {
      background: #e9f1f7;
      border-radius: 24px;
      max-width: 900px;
      margin: 0 auto 80px;
      padding: 48px 32px;
      box-shadow: 0 12px 32px rgb(10 61 98 / 0.1);
      font-size: 1.125rem;
      color: #173753;
      line-height: 1.7;
      text-align: center;
    }

    #about {
      background: #e9f1f7;
      border-radius: 24px;
      max-width: 900px;
      margin: 0 auto 80px;
      padding: 48px 32px;
      box-shadow: 0 12px 32px rgb(10 61 98 / 0.1);
      font-size: 1.125rem;
      color: #173753;
      line-height: 1.7;
      text-align: center;
    }
    #about h2 {
      margin-bottom: 24px;
      font-weight: 900;
    }

    /* Gallery */
    .gallery-grid {
      display: grid;
      gap: 32px;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 24px;
    }

    .gallery-card {
      background: white;
      border-radius: 18px;
      box-shadow: 0 6px 18px rgb(10 61 98 / 0.12);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      cursor: pointer;
    }
    .gallery-card:hover,
    .gallery-card:focus-within {
      transform: translateY(-10px);
      box-shadow: 0 14px 30px rgb(10 61 98 / 0.3);
      outline: none;
    }

    .gallery-image-wrapper {
      position: relative;
      width: 100%;
      padding-top: 66.66%; /* 3:2 ratio */
      overflow: hidden;
      flex-shrink: 0;
    }
    .gallery-image-wrapper img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.4s ease;
      border-bottom: 6px solid #0a3d62;
    }
    .gallery-card:hover img,
    .gallery-card:focus-within img {
      transform: scale(1.05);
    }

    .gallery-content {
      padding: 20px 24px 28px;
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
    .gallery-title {
      font-size: 1.3rem;
      font-weight: 700;
      color: #0a3d62;
      margin-bottom: 8px;
    }
    .gallery-description {
      color: #546e7a;
      font-size: 0.975rem;
      line-height: 1.4;
      flex-grow: 1;
    }

    /* Footer */
    footer {
      background-color: #0a3d62;
      color: white;
      padding: 40px 24px;
      text-align: center;
      font-size: 0.95rem;
      user-select: none;
    }
    footer a {
      color: #74b3ce;
      font-weight: 600;
      text-decoration: underline;
    }
    footer a:hover,
    footer a:focus {
      color: #a9d1ff;
      outline: none;
    }


    /* Responsive text scaling */
    @media (max-width: 768px) {
      .hero-content h1 {
        font-size: 2.5rem;
      }
      section h2 {
        font-size: 2rem;
      }
    }

    @media (max-width: 480px) {
      .hero-content h1 {
        font-size: 2rem;
      }
      .btn-primary {
        width: 100%;
        padding: 14px 0;
      }
    }

        /* Bubble Gallery - square rounded corners */
    .bubble-gallery {
      display: flex;
      flex-wrap: wrap;
      max-width: 1000px;
      margin: 0 auto;
      gap: 32px;
      justify-content: center;
      padding: 0 24px;
    }
    .bubble {
      flex: 0 0 calc(25% - 24px);
      aspect-ratio: 1 / 1;
      border-radius: 18px;
      overflow: hidden;
      box-shadow: 0 6px 18px rgba(10,61,98,0.15);
      cursor: pointer;
      position: relative;
      transition: transform 0.35s ease, box-shadow 0.35s ease;
      background-color: #e5eff9;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .bubble img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 18px;
      transition: transform 0.35s ease;
      pointer-events: none;
      user-select: none;
      will-change: transform;
    }
    .bubble:hover,
    .bubble:focus-visible {
      transform: scale(1.05);
      box-shadow: 0 14px 32px rgba(10,61,98,0.35);
      outline: none;
      z-index: 2;
    }
    .bubble:hover img,
    .bubble:focus-visible img {
      transform: scale(1.08);
    }
    /* For smaller devices, adapt bubble size */
    @media (max-width: 1024px) {
      .bubble {
        flex: 0 0 calc(33.333% - 24px);
      }
    }
    @media (max-width: 640px) {
      .bubble {
        flex: 0 0 calc(50% - 24px);
      }
    }
    @media (max-width: 400px) {
      .bubble {
        flex: 0 0 calc(100% - 24px);
      }
    }

        /* Responsive adjustments for burger menu */

    /* Hide desktop nav, show burger on small */
    @media (max-width: 640px) {
      nav {
        display: none;
      }
      .burger-button {
        display: block;
      }
    }

    body {
      font-family: "Trebuchet MS", Arial, sans-serif;
      background: #fff;
      color: #000;
      margin: 0;
      padding: 0 20px 40px;
      text-align: center;
    }
    h1 {
      font-weight: normal;
      font-size: 2.2em;
      margin-top: 40px;
      margin-bottom: 0;
    }
    p.description {
      font-size: 1.1em;
      margin-top: 5px;
      margin-bottom: 40px;
      line-height: 1.4em;
    }

    /* Galerie en grille 4 colonnes x 5 lignes max */
    #gallery {
      max-width: 960px;
      margin: 0 auto 40px;
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      grid-auto-rows: 220px;
      gap: 24px;
      justify-items: center;
      align-items: center;
    }
    #gallery img {
      width: 200px;
      height: 200px;
      object-fit: cover;
      border-radius: 24px; /* coins arrondis plus marqués */
      cursor: pointer;
      border: 4px solid transparent;
      box-shadow: 0 2px 8px rgba(0,0,0,0.15);
      transition: border-color 0.3s, box-shadow 0.3s;
    }
    #gallery img:hover {
      border-color: #007bff;
      box-shadow: 0 6px 16px rgba(0,123,255,0.6);
    }
    #gallery img.active {
      border-color: #007bff;
      box-shadow: 0 6px 16px rgba(0,123,255,0.9);
    }

    /* Boutons texte simples */
    #buttons {
      max-width: 960px;
      margin: 0 auto;
      display: flex;
      justify-content: center;
      gap: 30px;
      font-size: 1.2em;
      font-weight: normal;
      cursor: pointer;
      user-select: none;
      color: #000;
    }
    #buttons span {
      padding: 5px 0;
      border-bottom: 2px solid transparent;
      transition: border-color 0.3s, color 0.3s;
    }
    #buttons span:hover {
      border-bottom: 2px solid #007bff;
      color: #007bff;
    }
    #buttons span.active {
      border-bottom: 2px solid #007bff;
      color: #007bff;
      font-weight: bold;
    }

    /* Overlay pour image agrandie */
    #overlay {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.8);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 1000;
      cursor: pointer;
    }
    #overlay img {
      max-width: 90vw;
      max-height: 90vh;
      border-radius: 24px; /* coins arrondis */
      position: relative;
      box-shadow: 0 0 24px rgba(0,0,0,0.7);
    }
    /* Filigrane texte en bas à droite */
    #watermark {
      position: absolute;
      bottom: 8px;
      right: 12px;
      color: rgba(255,255,255,0.7);
      font-size: 14px;
      font-weight: bold;
      font-family: Arial, sans-serif;
      text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
      pointer-events: none;
      user-select: none;
    }
    /* Conteneur relatif pour positionner filigrane */
    #overlay .image-container {
      position: relative;
      display: inline-block;
    }

    .twitch-embed {
    width: 100%;
    max-width: 620px; /* Largeur max pour desktop */
    height: 378px; /* Hauteur fixe pour l'embed */
    margin: 0 auto; /* Centré */
    border: none; /* Pas de bordure */
}
@media (max-width: 768px) {
    .twitch-embed { height: 250px; } /* Ajustement mobile */
}