/* ===========================
   PATCH RÉPARATION HEADER + BANNER (COLLER EN FIN DE custom.css)
   =========================== */

/* --- Header stable (logo à gauche, burger à droite) --- */
header.navbar-top-default,
.navbar-top-default {
  position: fixed;      /* header fixe */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1200;
  background: #f5f5f5;     /* si besoin, adapter */
  box-shadow: none;
  --header-h: 64px;     /* hauteur virtuelle du header (utilisée pour le padding top) */
}

/* Container header : espace entre logo / nav / social */
header.navbar-top-default .container-fluid {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  box-sizing: border-box;
}

/* Forcer le burger (sidemenu_btn) à droite, au dessus du header */
header .sidemenu_btn {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1300;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* style simple des 3 barres du burger (si les styles originaux sont cassés) */
header .sidemenu_btn span {
  display: block;
  width: 31px;
  height: 4px;
  background: #963d67;
  border-radius: 1px;
}

/* Reserve l'espace sous le header pour la bannière */
.banner-sec {
  padding-top: calc(var(--header-h, 64px) + 8px);
  padding-bottom: 130px !important;  /* espace sous la bouton */
  min-height: calc(100vh + 80px) !important; /* s'adapte à l'écran */
    box-sizing: border-box !important;
}

/* --- MOBILE / TABLET (layout vertical) --- */
@media (max-width: 768px) {

  /* Empêche tout débordement horizontal caché */
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  /* Bannière : colonne, centrée */
  .banner-layout {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    padding: 0;
    box-sizing: border-box;
  }

  /* -- Cercle titre : taille responsive et parfaitement rond -- */
  .rond-texte {
    --circle-size: min(80vw, 360px);   /* variable : adapte la taille automatiquement */
    width: var(--circle-size) !important;
    height: var(--circle-size) !important; /* garantit le 1:1 (cercle parfait) */
    min-width: 180px;
    max-width: 360px;
    border-radius: 50% !important;
    box-sizing: border-box;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 2rem auto 1rem;    /* Auto = centré horizontalement */
    left: 172px;
    transform: translateX(-50%); 
    background-color: #b08483;                  /* identité visuelle */
    border: 3px solid #b08483;         /* contour */
    color: #f5f5f5;                    /* texte lisible */
    z-index: 10;
  }

  .rond-texte h1 {
    margin: 0;
    line-height: 1;
    font-size: clamp(2.6rem, 7vw, 3.5rem);
    color: #f5f5f5;
  }

  .rond-texte .sous-titre {
    margin-top: .35rem;
    font-size: clamp(.3rem, 2.6vw, 1rem);
    color: #f5f5f5;
  }

  .rond-texte .social {
    display: flex;
    gap: .1rem;
    /* margin-bottom: -4.2rem; */
    justify-content: center;
  }

  /* Masque le SVG uniquement sur mobile */
  .banner-sec .svg-line {
    display: none !important;
  }

  /* -- Image : remontée légèrement sous le cercle -- */
  .image-lien {
    margin-top: calc(var(--circle-size) * -0.35);
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 950;
  }


  .image-lien .main-image {
    max-width: min(90vw, 420px) !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    margin-top: -268px !important; /* ajuste la remontée sous le cercle */
    border-radius: 4px !important;
    margin-left: 170px !important;
  }

  /* -- Bouton rond : visible et centré sous l'image -- */
  .bouton-rond-interne {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: wrap !important;
    align-content: center !important;
    justify-content: center !important;
    margin-top: 1.25rem !important;
    margin-bottom: 0 !important;
    margin-right: -10px !important;
    border: 3px solid #ca8f5c !important;
    border-radius: 50% !important;
    width: 160px !important;
    height: 160px !important;
    color:  #f5f5f5!important;
    background-color: #ca8f5c !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 24px !important;
    text-align: center;
    white-space: pre-line;
    z-index: 10;
    box-sizing: border-box;
    padding: 0.4rem;
  }

  .bouton-rond-interne:hover {
    color: #f5f5f5 !important;
    background-color: #ca8f5c !important; 
}

  /* petite adaptation si le bouton est *toujours* à l'intérieur du .rond-texte dans le HTML */
  /* si tu n'as pas déplacé le lien dans le HTML, cette règle le positionne visuellement sous l'image */
   .rond-texte .bouton-rond-interne {
    position: absolute;
    bottom: -90px; /* distance sous le cercle */
    left: 50%;
    transform: translateX(-50%);
    width: 78px !important;
    height: 78px !important;
    border-radius: 50%;
    background: #ca8f5c;
    color: #f5f5f5;
    font-weight: bold;
    text-align: center;
    white-space: pre-line;
    padding: 0.4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
  }

  /* Forcer logo taille raisonnable */
  .navbar-top-default .logo img,
  header .logo img {
    margin-top: -42px;
    max-width: 180px;
    height: auto;
    display: block;
  }
}
@media (max-width: 480px) {
  header .logo img {
    margin-top: -49px;
    max-width: 160px;
  }
}

/* --- Très petits écrans (optionnel) --- */
@media (max-width: 380px) {
  .rond-texte { --circle-size: min(80vw, 260px); }
  .image-lien { margin-top: calc(var(--circle-size) * -0.14); }
  .bouton-rond-interne { width: 68px; height: 68px; font-size: 0.85rem; }
  .navbar-top-default .logo img,
  header .logo img {
    margin-top: -42px;
    max-width: 160px;
  }
}
/* ===========================
   FIN PATCH RÉPARATION HEADER + BANNER
   =========================== */

/* Cacher le burger par défaut (desktop) */
.sidemenu_btn {
  display: none !important;
}

/* Afficher uniquement sur mobile */
@media (max-width: 992px) {
  .sidemenu_btn {
    display: flex !important;
  }

  .side-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 9999;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
}
.side-menu.active {
  transform: translateX(0);
}
}

/* Réseaux sociaux visibles sur desktop seulement */
.nav-social {
  display: flex !important;
}

@media (max-width: 992px) {
  .nav-social {
    display: none !important;
  }
}

/* s'assure que le wrapper est positionné (pour positionner l'SVG) */
.banner-layout {
  position: relative;
}

/* SVG couvrant la zone du wrapper (position absolue) */
.banner-layout .svg-line {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 1000 !important;        /* entre l'image (950) et le rond (1005) */
  pointer-events: none;
  display: block !important;       /* évite les règles display:none existantes */
  overflow: visible;
}

/* Le path dessiné */
.svg-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  /* la couleur peut être changée ici si tu veux uniformiser */
  stroke: #ca8f5c;
  stroke-width: 4;
}

/* Masquer uniquement sur mobile (<768px) */
@media (max-width: 768px) {
  .banner-sec .svg-line { display: none !important; }
  .banner-sec { margin-bottom: -142px !important;  /* espace sous la bouton */
  }
}