/* ========================================
   ?? KHRUA SIAM - CSS GLOBAL
   Variables, Typography, Header, Footer, Animations
   ======================================== */

:root {
    --forest-green: #1e4235;
    --copper-gold: #c8860d;
    --charcoal: #0d1117;
    --pearl: #f8f6f0;
    --cream: #f2f0e8;
    --bronze: #8b6914;
    --deep-navy: #161b22;
    --text-primary: #1c1c1c;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --page-top-gap: clamp(6rem, 9vw, 8rem);
    --hero-bottom-gap: clamp(3rem, 6vw, 5rem);
    
    /* Section paddings standardis�s */
    --section-padding-top: clamp(4rem, 8vw, 6rem);
    --section-padding-bottom: clamp(4rem, 8vw, 6rem);
}

/* ========================================
   🎨 BASE & RESET
   ======================================== */

/* Note: Page Loader CSS déplacé en inline dans index.html pour chargement immédiat */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background: var(--copper-gold);
    color: white;
}

html {
    width: 100%;
    min-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 400;
    line-height: 1.75;
    color: var(--text-primary);
    background: var(--pearl);
    overflow-x: hidden;
    width: 100%;
    min-width: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

body.loaded {
    opacity: 1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

/* ========================================
   ?? TYPOGRAPHY GLOBALE
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 {
    text-transform: uppercase;
}

h2 {
    font-variant-caps: small-caps;
    font-size: 2.4rem;
}

.khrua { 
    color: var(--forest-green); 
}

.siam { 
    color: var(--copper-gold); 
}

/* ========================================
   🔧 UTILITY CLASSES
   ======================================== */

/* Masquer visuellement mais garder accessible aux lecteurs d'écran */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ========================================
   ?? MAIN CONTENT
   ======================================== */
main {
    position: relative;
    z-index: 1;
}

/* ========================================
   ?? HEADER & NAVIGATION
   ======================================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(248, 246, 240, 0.92);
    backdrop-filter: blur(25px) saturate(180%);
    border-bottom: 1px solid rgba(30, 66, 53, 0.08);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

header.scrolled {
    background: rgba(248, 246, 240, 0.98);
    box-shadow: 0 1px 40px rgba(30, 66, 53, 0.08);
    border-bottom-color: rgba(30, 66, 53, 0.12);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.8rem 0;
    transition: padding 0.3s ease;
}

header.scrolled nav {
    padding: 1.2rem 0;
}

/* Logo */
.logo-container {
    font-family: 'Cormorant Garamond', serif;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-main {
    font-size: 3.2rem;
    font-weight: 600;
    letter-spacing: 0px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.logo-text {
    font-size: inherit;
    letter-spacing: 0;
    display: inline-block;
}

.logo-tagline {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
    margin-left: 1rem;
    opacity: 0.8;
}

/* Navigation Menu */
.nav-menu {
    position: absolute;
    right: 2rem;
    top: 1.8rem;
    display: flex;
    list-style: none;
    gap: 3.5rem;
    align-items: center;
    transition: top 0.3s ease;
}

header.scrolled .nav-menu {
    top: 1.2rem;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.8px;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--forest-green), var(--copper-gold));
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--forest-green);
    transform: translateY(-1px);
}

/* ========================================
   BOUTON COMPTE (DESKTOP) + AVATAR MENU
   ======================================== */
.account-menu-container {
  position: relative;
}

.account-btn-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--copper-gold) 0%, #d4a845 100%);
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-left: 2.5rem;
  box-shadow: 0 4px 15px rgba(200, 134, 13, 0.3);
  position: relative;
  overflow: hidden;
}

.account-btn-desktop::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.account-btn-desktop:hover::before {
  left: 100%;
}

.account-btn-desktop:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(200, 134, 13, 0.4);
}

.account-btn-desktop .account-icon {
  font-size: 18px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Avatar Menu Utilisateur */
.user-avatar-menu {
  position: relative;
  margin-left: 2.5rem;
}

.avatar-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50px;
  transition: background 0.3s;
}

.avatar-trigger:hover {
  background: rgba(30, 66, 53, 0.05);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--copper-gold) 0%, #d4a845 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(200, 134, 13, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.avatar-trigger:hover .user-avatar {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(200, 134, 13, 0.4);
}

.avatar-arrow {
  font-size: 0.7rem;
  color: var(--text-secondary);
  transition: transform 0.3s;
}

.user-avatar-menu.open .avatar-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu Avatar */
.user-avatar-menu .dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
}

.user-avatar-menu.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(30, 66, 53, 0.1);
}

.dropdown-user-name {
  font-weight: 600;
  color: var(--forest-green);
  font-size: 1rem;
  margin: 0 0 0.25rem 0;
}

.dropdown-user-email {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

.dropdown-items {
  padding: 0.5rem 0;
}

.user-avatar-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.2s;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-size: 0.95rem;
}

.user-avatar-menu .dropdown-item:hover {
  background: rgba(30, 66, 53, 0.05);
}

.dropdown-item-icon {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.user-avatar-menu .dropdown-item.logout {
  border-top: 1px solid rgba(30, 66, 53, 0.1);
  color: #dc3545;
}

.user-avatar-menu .dropdown-item.logout:hover {
  background: rgba(220, 53, 69, 0.05);
}

.dropdown-item:hover {
  background: var(--forest-green);
  color: white;
}

.dropdown-icon {
  font-size: 16px;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logout-btn {
  text-align: left;
  font-family: 'Source Sans Pro', sans-serif;
  box-sizing: border-box;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background: rgba(248, 246, 240, 0.9);
    border: 1px solid rgba(30, 66, 53, 0.1);
    border-radius: 12px;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(30, 66, 53, 0.08);
}

.mobile-menu-toggle:hover {
    background: var(--forest-green);
    border-color: var(--forest-green);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(30, 66, 53, 0.15);
}

.mobile-menu-toggle:hover .hamburger-line {
    background: var(--pearl);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: var(--forest-green);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

.hamburger-line:nth-child(1) {
    margin-bottom: 4px;
}

.hamburger-line:nth-child(2) {
    margin-bottom: 4px;
}

.mobile-menu-toggle[aria-expanded="true"] {
    background: var(--copper-gold);
    border-color: var(--copper-gold);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
    background: var(--pearl);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    background: var(--pearl);
}

/* Overlay Menu Mobile */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, rgba(248, 246, 240, 0.98) 0%, rgba(242, 240, 232, 0.95) 100%);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(25px) saturate(180%);
    border-bottom: 1px solid rgba(30, 66, 53, 0.08);
}

.mobile-menu-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 30% 20%, rgba(30, 66, 53, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(200, 134, 13, 0.02) 0%, transparent 50%);
    background-size: 120px 120px, 80px 80px;
    opacity: 0.8;
}

.mobile-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: relative;
    height: 100%;
    z-index: 2;
}

.mobile-nav {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Section compte mobile */
.mobile-account-section {
    position: absolute;
    top: 2.5rem;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1003;
    padding: 0 1rem;
}

.mobile-account-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.8rem;
}

.mobile-account-menu li {
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
    display: flex;
    justify-content: center;
}

.account-btn-mobile-top {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.8px;
    text-transform: capitalize;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    cursor: pointer;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.account-btn-mobile-top:hover {
    color: var(--forest-green);
}

.account-btn-mobile-top .account-icon {
    font-size: 1.1rem;
}

.logout-btn-mobile {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.8px;
    text-transform: capitalize;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.logout-btn-mobile:hover {
    color: var(--forest-green);
}

.logout-btn-mobile .account-icon {
    font-size: 1.1rem;
}

.mobile-nav-menu {
    list-style: none;
    text-align: center;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu li {
    margin: 1.8rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-overlay.is-open .mobile-nav-menu li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-menu li:nth-child(1) { transition-delay: 0.15s; }
.mobile-nav-menu li:nth-child(2) { transition-delay: 0.25s; }
.mobile-nav-menu li:nth-child(3) { transition-delay: 0.35s; }
.mobile-nav-menu li:nth-child(4) { transition-delay: 0.45s; }
.mobile-nav-menu li:nth-child(5) { transition-delay: 0.55s; }
.mobile-nav-menu li:nth-child(6) { transition-delay: 0.65s; }
.mobile-nav-menu li:nth-child(7) { transition-delay: 0.75s; }
.mobile-nav-menu li:nth-child(8) { transition-delay: 0.85s; }
.mobile-nav-menu li:nth-child(9) { transition-delay: 0.95s; }
.mobile-nav-menu li:nth-child(10) { transition-delay: 1.05s; }

.mobile-nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.8px;
    text-transform: capitalize;
    position: relative;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0.5rem 1rem;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--forest-green), var(--copper-gold));
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-link:hover::before,
.mobile-nav-link.active::before {
    width: 100%;
}

.mobile-nav-link:hover {
    color: var(--forest-green);
    transform: translateY(-2px);
}

.mobile-nav-link.active {
    color: var(--copper-gold);
}

/* ========================================
   ?? SECTIONS COMMUNES
   ======================================== */
.section {
    position: relative;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

.section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.section-pretitle {
    font-size: 0.9rem;
    color: var(--copper-gold);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.section-title {
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
    font-weight: 300;
}


/* ========================================
   ?? FOOTER
   ======================================== */
footer {
    background: var(--charcoal);
    color: var(--pearl);
    padding: 5rem 0 2rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--copper-gold), transparent);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-logo .khrua { color: var(--forest-green); }
.footer-logo .separator { color: var(--copper-gold); margin: 0 1rem; font-size: 1.35em; }
.footer-logo .siam { color: var(--copper-gold); }

.footer-tagline {
    color: var(--bronze);
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    font-weight: 300;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-social a {
    width: 50px;
    height: 50px;
    background: rgba(248, 246, 240, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pearl);
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.4s ease;
    border: 1px solid rgba(248, 246, 240, 0.1);
}

.footer-social a:hover {
    background: var(--copper-gold);
    border-color: var(--copper-gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(200, 134, 13, 0.3);
}

.footer-sitemap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid rgba(248, 246, 240, 0.1);
    border-bottom: 1px solid rgba(248, 246, 240, 0.1);
}

.sitemap-column h4 {
    color: var(--copper-gold);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.sitemap-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-column li {
    margin-bottom: 0.8rem;
}

.sitemap-column a {
    color: var(--pearl);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    display: block;
    text-align: center;
}

.sitemap-column a:hover {
    color: var(--copper-gold);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: none;
    color: rgba(248, 246, 240, 0.6);
    font-size: 0.9rem;
}

/* ========================================
   ?? ANIMATIONS COMMUNES
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 150px; }
}

/* ========================================
   🎯 FOCUS & LOADING STATES
   ======================================== */
*:focus {
    outline: 2px solid var(--copper-gold);
    outline-offset: 2px;
}

.loading {
    opacity: 0.7;
    pointer-events: none;
}

section {
    scroll-margin-top: 120px;
}

.logo-main::selection,
.hero-title::selection {
    background: var(--forest-green);
    color: white;
}

/* ========================================
   🖼️ IMAGE STYLES
   ======================================== */
.about-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 30px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.about-visual-img:hover {
  transform: scale(1.02);
  filter: brightness(1.05);
}

/* ========================================
   TOAST NOTIFICATIONS (GLOBAL)
   ======================================== */
.toast {
  position: fixed;
  top: 100px;
  right: 20px;
  transform: translateX(400px);
  background: white;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 200000;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  width: calc(33.33% - 40px);
  max-width: 450px;
  min-width: 280px;
  white-space: normal;
}

.toast.toast-show,
.toast.show {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.toast-success,
.toast.toast-success {
  background: var(--forest-green);
  color: white;
  border-left: 4px solid #1a5c3a;
}

.toast-error,
.toast.toast-error {
  background: #dc3545;
  color: white;
  border-left: 4px solid #a71d2a;
}

.toast-info,
.toast.toast-info {
  background: #007bff;
  color: white;
  border-left: 4px solid #0056b3;
}

.toast-warning,
.toast.toast-warning {
  background: #ffc107;
  color: #333;
  border-left: 4px solid #d39e00;
}

/* =====================================================================
   📱 RESPONSIVE GLOBAL - Media Queries Officiels (9 breakpoints)
   ===================================================================== */

/* Écrans 4K/5K (2560px et plus) */
@media (min-width: 2560px) {
  /* Styles spécifiques aux écrans 4K/5K si nécessaire */
}

/* Écrans 2K/QHD (1920px à 2559px) */
@media (min-width: 1920px) and (max-width: 2559px) {
  /* Styles spécifiques aux écrans 2K/QHD si nécessaire */
}

/* Écrans très larges (1440px à 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
  /* Styles spécifiques aux très grands écrans si nécessaire */
}

/* Écrans larges (1025px à 1439px) */
/* Desktop large à moyen (1280px à 1439px) */
@media (min-width: 1280px) and (max-width: 1439px) {
  .nav-menu {
    gap: 2.5rem;
  }
  
  .account-btn-desktop {
    margin-left: 0.8rem;
  }
}

/* Desktop moyen (1024px à 1279px) - Menu hamburger à droite */
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav-menu {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .account-btn-desktop {
    display: none;
  }
  
  .mobile-menu-overlay {
    justify-content: flex-end;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    height: 100vh;
  }
  
  .mobile-menu-overlay::before {
    display: none;
  }
  
  .mobile-menu-content {
    width: 60vw;
    max-width: 60vw;
    margin-left: auto;
    margin-top: 1%;
    margin-right: 1%;
    background: var(--pearl);
    position: relative;
    height: 65%;
    border-radius: 0 0 0 32px;
  }
  
  @media (orientation: landscape) {
    .mobile-menu-content {
      width: 40vw;
      max-width: 40vw;
      height: 80vh;
    }
  }
}


/* Écrans desktop standard (900px à 1023px) - Menu hamburger à droite */
@media (min-width: 900px) and (max-width: 1023px) {
  .nav-menu {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .account-btn-desktop {
    display: none;
  }
  
  .mobile-menu-overlay {
    justify-content: flex-end;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    height: 100vh;
  }
  
  .mobile-menu-overlay::before {
    display: none;
  }
  
  .mobile-menu-content {
    width: 55vw;
    max-width: 55vw;
    margin-left: auto;
    margin-top: 1%;
    margin-right: 1%;
    background: var(--pearl);
    position: relative;
    height: 55%;
    border-radius: 0 0 0 32px;
  }
  
  /* Écrans tablettes (900px à 1023px) - Orientation paysage */
  @media (orientation: landscape) {
    .mobile-menu-content {
      width: 40vw;
      max-width: 40vw;
      height: 80vh;
    }
  }
}



/* Tablettes (715px à 899px) */
@media (min-width: 715px) and (max-width: 899px) {
  :root {
    --page-top-gap: clamp(5rem, 14vw, 6.5rem);
    --hero-bottom-gap: clamp(2.5rem, 12vw, 4.5rem);
  }

  header {
    backdrop-filter: blur(20px) saturate(160%);
  }

  .logo-main {
    font-size: 2.9rem;
    letter-spacing: 1.2px;
  }
  
  .logo-tagline {
    font-size: 0.65rem;
    letter-spacing: 1.8px;
    margin-left: 0.6rem;
  }

  .nav-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }
  
  .mobile-menu-content {
    scroll-margin-top: 120px;
  }
  
  .about-visual-img {
    border-radius: 20px;
  }

  /* Tablettes (715px à 899px) - Orientation paysage */
  @media (orientation: landscape) {
    .mobile-menu-overlay {
      justify-content: flex-end;
      background: rgba(0, 0, 0, 0.3);
      backdrop-filter: blur(10px);
      height: 100vh;
    }
    
    .mobile-menu-overlay::before {
      display: none;
    }
    
    .mobile-menu-content {
      width: 60vw;
      max-width: 60vw;
      margin-left: auto;
      margin-top: 1%;
      margin-right: 1%;
      background: var(--pearl);
      position: relative;
      height: 60%;
      border-radius: 0 0 0 32px;
    }

    .mobile-menu-content {
      width: 50vw;
      max-width: 50vw;
      height: 90vh;
    }
    
    .mobile-nav-menu li {
      margin: 0.5rem 0;
    }
  }

}



/* Tablettes (641px à 714px) */
@media (min-width: 641px) and (max-width: 714px) {
  :root {
    --page-top-gap: clamp(5rem, 14vw, 6.5rem);
    --hero-bottom-gap: clamp(2.5rem, 12vw, 4.5rem);
  }

  header {
    backdrop-filter: blur(20px) saturate(160%);
  }

  .logo-main {
    font-size: 2.9rem;
    letter-spacing: 1.2px;
  }
  
  .logo-tagline {
    font-size: 0.65rem;
    letter-spacing: 1.8px;
    margin-left: 0.6rem;
  }

  .nav-menu {
    display: none;
  }

  .account-btn-desktop {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }
  
  section {
    scroll-margin-top: 120px;
  }
  
  .about-visual-img {
    border-radius: 20px;
  }

  /* Toast responsive pour 641-714px */
  .toast {
    top: 95px;
    right: 20px;
    max-width: 320px;
  }
}

/* Mobile large (481px à 640px) */
@media (min-width: 481px) and (max-width: 640px) {
  :root {
    --page-top-gap: clamp(5rem, 14vw, 6.5rem);
    --hero-bottom-gap: clamp(2.5rem, 12vw, 4.5rem);
  }

  header {
    backdrop-filter: blur(20px) saturate(160%);
  }

  .logo-main {
    font-size: 2.9rem;
    letter-spacing: 1.2px;
  }
  
  .logo-tagline {
    font-size: 0.65rem;
    letter-spacing: 1.8px;
    margin-left: 0.6rem;
  }

  .nav-menu {
    display: none;
  }

  .account-btn-desktop {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }
  
  section {
    scroll-margin-top: 120px;
  }
  
  .about-visual-img {
    border-radius: 20px;
  }

  /* Toast responsive pour 481-640px */
  .toast {
    top: 90px;
    right: 15px;
    max-width: calc(100% - 30px);
    font-size: 0.85rem;
  }
  
  /* Avatar menu responsive */
  .user-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  
  .user-avatar-menu .dropdown-menu {
    min-width: 200px;
  }
}

/* Mobile petit (480px et moins) */
@media (max-width: 480px) {
  :root {
    --page-top-gap: clamp(5rem, 14vw, 6.5rem);
    --hero-bottom-gap: clamp(2.5rem, 12vw, 4.5rem);
  }

  .container {
    padding: 0 1rem;
  }

  header {
    backdrop-filter: blur(20px) saturate(160%);
  }

  .logo-main {
    font-size: 2.5rem;
    letter-spacing: 1px;
  }
  
  .logo-tagline {
    font-size: 0.6rem;
    letter-spacing: 1.5px;
    margin-left: 0.4rem;
  }

  .nav-menu {
    display: none;
  }

  .account-btn-desktop {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
    width: 44px;
    height: 44px;
  }

  .hamburger-line {
    width: 18px;
  }

  .account-btn-mobile-top {
    font-size: 1.5rem;
  }

  .logout-btn-mobile {
    font-size: 1.5rem;
  }

  .mobile-nav-link {
    font-size: 1.5rem;
    padding: 0.3rem 0.8rem;
  }
  
  section {
    scroll-margin-top: 120px;
  }
  
  .about-visual-img {
    border-radius: 20px;
  }

  /* Toast responsive pour mobile */
  .toast {
    top: 80px;
    right: 10px;
    max-width: calc(100% - 20px);
    font-size: 0.8rem;
    padding: 0.6rem 1rem;
    white-space: normal;
  }
}
