/* Shared layout for all French and English pages. Content determines height. */
html { min-width: 0; }
body { min-width: 0; width: 100%; min-height: 100vh; height: auto; padding: 24px; justify-content: flex-start; overflow-x: visible; }
.fond { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.layout-wrapper { display: grid; grid-template-columns: 180px minmax(0, 1fr) 180px; grid-template-rows: auto auto auto; gap: 24px; align-items: start; width: 100%; max-width: 1280px; height: auto; margin: 0 auto; }
.layout-wrapper > * { min-width: 0; }

/* Retrait de .right-circle et .left-circle de cette liste pour leur permettre le positionnement fixed */
.rectangle-marron, .logo, .main-circle, .nav-circle, .animation-cercles { position: relative; top: auto !important; right: auto !important; bottom: auto !important; left: auto !important; transform: none !important; margin: 0; }

/* MODIFICATION ICI : Ajout de justify-self: end; pour empêcher le débordement à droite */
.rectangle-marron { grid-column: 3; grid-row: 1; width: 150%; height: auto; min-height: 48px; padding: 12px; gap: 34px; flex-wrap: wrap; border-radius: 18px; align-self: center; justify-self: end; }
.rectangle-marron a { font-size: 14px; padding: 8px 0; }
.icone-globe { width: 18px; height: 18px; }

.layout-wrapper > a:has(.logo), .layout-wrapper > .logo { grid-column: 2; grid-row: 1; justify-self: center; width: min(100%, 360px); }
.logo { display: block; width: 100%; max-width: 360px; height: auto; }
.nav-en { grid-column: 1; grid-row: 2; width: 180px; height: 180px; min-height: 0; padding: 16px; align-items: center; border-radius: 50%; margin-top: -30px; margin-left: 70px;}
.nav-en a { display: block; margin: 0; font-size: 17px; line-height: 1.5; padding: 1px 5px; }

.main-circle { grid-column: 2; grid-row: 2; width: 100%; height: auto; min-height: 600px; border-radius: 100% / 180px; overflow: visible; }

.content-area { padding: 90px clamp(32px, 5vw, 76px); font-size: 16px; line-height: 1.7; text-align: justify; overflow-wrap: anywhere; }
.content-area h2, .content-area h3 { line-height: 1.3; }
.content-area h3:not(:first-child) { margin-top: 28px; }
.content-area p { margin-bottom: 8px; font-size: inherit; line-height: inherit; }
.content-area a { line-height: 1.6; font-size: inherit; margin-left: 0; }
.content-area h3 { color: #56701e; }
.fee-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(130px, 35%); gap: 12px 24px; padding: 14px 0; border-bottom: 1px solid #e1e7d5; }
.fee-price { font-weight: bold; }
.content-area li { margin-left: 20px; }
.bottom-links a { min-height: 44px; padding: 8px 0; }
.bottom-links a:hover { transform: scale(1.01); font-weight: bold; }
.nav-contact { grid-column: 1; grid-row: 2; align-self: start; justify-self: center; margin-top: 300px; margin-left: 170px; width: 130px; height: 130px; min-height: 0; padding: 16px; border-radius: 50%; }
.nav-contact a:hover { color: transparent !important; background-image: url('Home_EN/mail.png') !important; width: 80px !important; height: 60px !important; text-decoration: none !important; }

/* ==========================================================
   CERCLES DE NAVIGATION FIXES (DROITE ET GAUCHE)
   ========================================================== */
.right-circle, .left-circle {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 280px;
    height: 280px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 50;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Cercle de Droite (visible sur le bord droit) */
.right-circle {
    right: -140px;
}
.right-circle:hover {
    transform: translateY(-50%) scale(1.05);
}
.right-circle .cercle-arrow {
    position: absolute;
    top: 50%;
    left: 70px;
    transform: translate(-50%, -50%);
    width: 44px;
    height: auto;
    opacity: 0.35;
    transition: opacity 0.3s ease;
}
.right-circle .texte-vertical {
    position: absolute;
    top: 50%;
    left: 70px;
    transform: translate(-50%, -50%);
    font-size: 22px;
    font-weight: bold;
    color: #4a2e1b;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}
.right-circle:hover .cercle-arrow { opacity: 0; }
.right-circle:hover .texte-vertical { opacity: 1; }

/* Cercle de Gauche (pour les pages concernées) */
.left-circle {
    left: -140px;
}
.left-circle:hover {
    transform: translateY(-50%) scale(1.05);
}
.left-circle .cercle-arrow-left {
    position: absolute;
    top: 50%;
    right: 70px;
    transform: translate(50%, -50%);
    width: 44px;
    height: auto;
    opacity: 0.35;
    transition: opacity 0.3s ease;
}
.left-circle .texte-vertical-left {
    position: absolute;
    top: 50%;
    right: 70px;
    transform: translate(50%, -50%);
    font-size: 22px;
    font-weight: bold;
    color: #4a2e1b;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}
.left-circle:hover .cercle-arrow-left { opacity: 0; }
.left-circle:hover .texte-vertical-left { opacity: 1; }

.right-circle-link, .left-circle-link { 
    position: absolute; 
    inset: 0; 
    width: 100%; 
    height: 100%; 
    border-radius: inherit; 
    z-index: 10; 
}

/* Éléments annexes */
.animation-cercles { grid-column: 3; grid-row: 2; width: 260px; height: 260px; align-self: start; justify-self: center; margin-top: 206px; margin-left: -700px;transform: scale(1.5) !important; }
.team-picker { display: flex; justify-content: center; gap: 24px; margin-bottom: 32px; }
.team-picker button { display: flex; flex-direction: column; align-items: center; gap: 10px; border: 0; border-radius: 16px; padding: 10px; background: transparent; color: inherit; font: inherit; cursor: pointer; min-width: 0; }
.team-picker .annie, .team-picker .jp { position: static !important; width: 100px; max-width: 100%; height: 110px; margin: 0; transform: none !important; object-fit: cover; border-radius: 50%; }
.team-picker button:hover { background: #edf2df; }

a:focus-visible, button:focus-visible { outline: 3px solid #653810; outline-offset: 4px; }

@media (max-width: 1050px) {
  .layout-wrapper { grid-template-columns: 180px minmax(0, 1fr) 180px; gap: 16px; }
  .animation-cercles { margin-top: 240px; }
  .main-circle { border-radius: 80px; }
  .content-area { padding: 48px 32px; }
}

@media (max-width: 760px) {
  body { padding: 12px; }
  .layout-wrapper { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  
  /* 1. Barre de langue : En haut à droite */
  .rectangle-marron { 
    order: 0; 
    align-self: flex-end;
    width: auto; 
    padding: 6px 16px; 
    min-height: 0;
    gap: 15px; 
    border-radius: 12px;
  }
  
  /* Logo */
  .layout-wrapper > a:has(.logo), .layout-wrapper > .logo { 
    order: 1; 
    align-self: center; 
    width: min(85%, 260px);
    margin-bottom: 10px;
  }
  
  /* 2. Barre de navigation : Pleine largeur, alignée comme le bouton contact */
  .nav-en { 
    order: 2; 
    position: static !important;
    align-self: stretch;
    width: 100% !important; /* Force la pleine largeur */
    max-width: 100% !important;
    height: auto; 
    min-height: 0;
    display: flex;
    flex-direction: row; 
    flex-wrap: wrap; /* Permet le retour à la ligne automatique si nécessaire */
    justify-content: space-evenly; /* Répartit les liens proprement sur toute la largeur */
    align-items: center;
    gap: 8px; 
    padding: 10px 12px;
    margin: 0 !important;
    border-radius: 12px; 
    background: #ffffff !important; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); 
  }
  .nav-en a { 
    font-size: 15px; 
    padding: 4px 6px; 
    white-space: nowrap; /* Empêche de couper les mots en deux */
    margin: 0;
  }
  
  /* 3. Bouton Contact : Format identique à la navigation */
  .nav-contact { 
    order: 3; 
    position: static !important;
    transform: none !important;
    align-self: stretch; 
    width: 100% !important; /* Force la pleine largeur */
    max-width: 100% !important;
    height: auto !important; 
    min-height: 0; 
    border-radius: 12px !important; 
    background: #ffffff !important; 
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 12px;
    margin: 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  }
  .nav-contact a {
    font-size: 16px;
    font-weight: bold;
    color: #4a2e1b;
  }
  
  /* 4. Contenu principal */
  .main-circle { 
    order: 4; 
    min-height: 0; 
    border-radius: 20px; 
    margin-top: 5px; 
  }
  .content-area { 
    padding: 24px 16px; 
    font-size: 15px; 
  }
  
  /* 5. Suppression totale des flèches/bulles directionnelles sur mobile */
  .left-circle, .right-circle { 
    display: none !important; 
  }
  
  /* Autres ajustements internes */
  .animation-cercles { display: none; }
  .team-picker { gap: 12px; flex-wrap: wrap; }
  .team-picker .annie, .team-picker .jp { width: 80px; height: 90px; }
  .fee-row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 10px 0; }
}

@media (max-width: 400px) {
    /* Si l'écran est vraiment très petit, on centre simplement les éléments de la nav */
    .nav-en { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}