/* ===========================================
   Les Secrets de LNail's — Styles communs
   Variables, reset, header, footer, cookies
   =========================================== */

/* ---- Variables ---- */
:root {
  --violet: #432e57;
  --rose: #f0e4f2;
  --violet-clair: #6b4d8a;
  --violet-hover: #5a3d72;
}

/* ---- Reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Raleway', Arial, sans-serif;
  background: var(--rose);
  color: var(--violet);
  padding-top: 72px;
}

img, svg {
  max-width: 100%;
  height: auto;
}

a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ---- Header ---- */
.header {
  background: var(--violet);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
}

.header-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header-logo img {
  height: 52px;
  width: auto;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.header-nav .header-nav-cta {
  display: none;
}

.header-nav a {
  font-size: 15px;
  font-weight: 500;
  color: rgba(240,228,242,0.85);
  text-decoration: none;
  transition: color 0.2s;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--rose);
}

.header-nav a.active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.header-cta {
  display: inline-block;
  background: var(--rose);
  color: var(--violet);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  padding: 11px 26px;
  border-radius: 50px;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}

.header-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.header-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.header-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--rose);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.header-burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header-burger.is-open span:nth-child(2) {
  opacity: 0;
}

.header-burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Footer ---- */
.footer-outer {
  background: var(--violet);
  border-radius: 28px 28px 0 0;
  width: 100%;
}

.footer-custom {
  padding: 56px 60px 32px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr 1.6fr;
  gap: 48px;
  margin-bottom: 48px;
  width: 100%;
}

.footer-logo {
  font-family: 'Great Vibes', cursive;
  font-size: 38px;
  color: var(--rose);
  margin: 0 0 10px 0;
  line-height: 1.1;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(240,228,242,0.55);
  font-style: italic;
  margin: 0;
  line-height: 1.5;
}

.footer-col-titre {
  font-size: 12px;
  font-weight: 700;
  color: rgba(240,228,242,0.5);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 16px 0;
}

.footer-liens {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-liens a {
  font-size: 14px;
  color: rgba(240,228,242,0.75);
  text-decoration: none;
  transition: color 0.2s;
  overflow-wrap: anywhere;
}

.footer-liens a:hover {
  color: var(--rose);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  min-width: 0;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  color: rgba(240,228,242,0.5);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-texte {
  font-size: 14px;
  color: rgba(240,228,242,0.75);
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.2s;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer-contact-texte:hover {
  color: var(--rose);
}

.footer-siege {
  font-size: 11px;
  font-weight: 700;
  color: rgba(240,228,242,0.4);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: block;
  margin-bottom: 3px;
}

.footer-separateur {
  width: 100%;
  height: 1px;
  background: rgba(240,228,242,0.15);
  margin-bottom: 24px;
}

.footer-bas {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copyright {
  font-size: 12px;
  color: rgba(240,228,242,0.35);
}

.footer-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: 12px;
  color: rgba(240,228,242,0.35);
  text-decoration: none;
  transition: color 0.2s;
  overflow-wrap: anywhere;
}

.footer-legal a:hover {
  color: rgba(240,228,242,0.7);
}

/* ---- Bannière cookies ---- */
#lnails-cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  width: calc(100% - 48px);
  max-width: 760px;
  background: #432e57;
  border: 1px solid rgba(240,228,242,0.2);
  border-radius: 20px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
  animation: cookieFadeIn 0.4s ease;
}

@keyframes cookieFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

#lnails-cookie-banner.hidden {
  display: none;
}

.cookie-texte {
  flex: 1;
  min-width: 0;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  color: rgba(240,228,242,0.85);
  line-height: 1.6;
  margin: 0;
}

.cookie-texte strong {
  color: #f0e4f2;
  font-weight: 700;
}

.cookie-texte a {
  color: rgba(240,228,242,0.65);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.cookie-texte a:hover {
  color: #f0e4f2;
}

.cookie-boutons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-btn-accepter {
  display: inline-block;
  background: #f0e4f2;
  color: #432e57;
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}

.cookie-btn-accepter:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.cookie-btn-refuser {
  display: inline-block;
  background: transparent;
  color: rgba(240,228,242,0.65);
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 50px;
  border: 1px solid rgba(240,228,242,0.25);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.cookie-btn-refuser:hover {
  color: #f0e4f2;
  border-color: rgba(240,228,242,0.5);
}

/* ---- Responsive : header & footer ---- */
@media (max-width: 900px) {
  .header-nav,
  .header-cta {
    display: none;
  }

  .header-burger {
    display: flex;
  }

  .header-nav.open .header-nav-cta {
    display: inline-block;
    background: var(--rose);
    color: var(--violet) !important;
    font-weight: 700 !important;
    padding: 11px 26px;
    border-radius: 50px;
    text-decoration: none !important;
    margin-top: 8px;
    text-align: center;
  }

  .header-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--violet);
    padding: 20px 32px;
    gap: 20px;
    border-top: 1px solid rgba(240,228,242,0.15);
    z-index: 1001;
  }

  .footer-custom {
    padding: 40px 24px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 580px) {
  .header-inner {
    padding: 0 20px;
  }

  .footer-custom {
    padding: 36px 16px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bas {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-legal {
    flex-direction: column;
    gap: 8px;
  }

  #lnails-cookie-banner {
    bottom: 16px;
    left: 16px;
    right: 16px;
    width: auto;
    transform: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

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

  .cookie-boutons {
    width: 100%;
  }

  .cookie-btn-accepter,
  .cookie-btn-refuser {
    flex: 1;
    text-align: center;
  }
}

/* ---- Accessibilité ---- */
*:focus-visible {
  outline: 2px solid #432e57;
  outline-offset: 3px;
  border-radius: 3px;
}
