/* Base Styles */
@import url('assets/css/variables.css');

:root {
  font-size: clamp(16px, 1.15vw, 18px);
}

html {
  -webkit-text-size-adjust: 100%;
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Quicksand', 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: clamp(10px, 1.15vw, 14px); 
  font-weight: 400;
  letter-spacing: 0px;
  background: linear-gradient(135deg, var(--color-light) 0%, #E8D5C4 50%, var(--color-highlight) 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.container {
  background: white;
  border-radius: 23px;
  box-shadow: 0 12px 30px var(--shadow-sm);
  padding: 40px 3vw;
  width: 98vw;
  max-width: 1100px;
  /* margin: 2vw auto; */
}

/* Main Layout */
.main-layout {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.left-column {
  width: 100%;
}

.right-column {
  width: 100%;
}

/* Desktop - Two Columns */
@media (min-width: 900px) {
  .main-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 60px;
    justify-content: center;
  }
  
  .left-column {
    width: 47%;
    min-width: 310px;
    max-width: 580px;
  }
  
  .right-column {
    width: 47%;
    max-width: 580px;
  }
}

/* Column Content */
.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 0;
}

.links-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  width: 80%;
}

/* Profile Section */
.profile-image {
  width: 95px;
  height: 95px;
  border-radius: 50%;
  margin-bottom: 16px;
  border: 3px solid var(--color-accent);
  background-image: url('icons/lesjupesdesfilles.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: 0 2px 10px var(--shadow-sm);
  transition: background-size 0.4s ease;
}

.profile-image:hover {
  background-size: 130%;
}

.profile-image-story {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin-bottom: 16px;
  border: 3px solid var(--color-accent);
  background-image: url('icons/facade.jpeg');
  background-size: 100%;
  background-position: center;
  box-shadow: 0 2px 10px var(--shadow-sm);
  transition: background-size 0.4s ease;
}

.profile-image-story:hover {
  background-size: 270%;
}

.boutique-name {
  font-size: 2.1em;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 8px;
  letter-spacing: 0.4px;
}

.boutique-description {
  font-size: 14px;
  color: var(--color-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.googlemaps {
  background: linear-gradient(135deg, #34A853 0%, #E8EAF6 100%);
  border: 2px solid #34A853;
  color: #333;
}

/* Maps Modal */
.google-map {
  display: none;
  position: center;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow-y: auto;
}

.google-map.visible {
  display: flex;
}

.google-map-content {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px var(--shadow-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 30px 20px 20px;
  animation: modalSlideIn 0.3s ease-out;
}

.google-map { box-sizing: content-box; }
.google-map *, .google-map *::before, .google-map *::after { box-sizing: inherit; }

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.google-map-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--color-primary);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 1;
}

.google-map-close:hover {
  background: var(--color-secondary);
  transform: scale(1.1);
}

.google-map-close:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.google-map iframe {
  display: block;
  margin: 0 auto;
  width: 100%;
  border-radius: 13px;
  box-shadow: 0 2px 12px var(--shadow-sm);
}

.store-hours {
  background: #fdebd3;
  border-radius: 10px;
  box-shadow: 0 1px 5px var(--shadow-xs);
  padding: 15px 16px;
  margin-bottom: 15px;
  text-align: center;
  color: var(--color-primary);
  font-size: 13px;
}

.store-hours h3 { 
  font-size: 14px; 
  color: var(--color-secondary); 
  margin-bottom: 7px; 
  font-weight: 600; 
  text-align: center; 
}

.store-hours ul { 
  list-style: none; 
  margin: 0; 
  padding: 0; 
  text-align: center; 
}

.store-hours li { 
  margin-bottom: 7px; 
  font-size: 1em; 
  display: block; 
}

.store-hours strong { 
  color: var(--color-secondary); 
  font-weight: 700; 
}

/* Buttons */
.link-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 13px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  transition: box-shadow 0.22s, transform 0.16s;
  border: none;
  background: #f7eee7;
  color: var(--color-primary);
  box-shadow: 0 1px 8px var(--shadow-xs);
  cursor: pointer;
  position: relative;
  max-width: 450px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.link-button:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.13), transparent);
  transition: left 0.5s;
  z-index: 0;
}

.link-button:hover:before { 
  left: 100%; 
}

.link-button:hover { 
  transform: translateY(-2px) scale(1.03); 
  box-shadow: 0 4px 18px var(--shadow-md); 
}

.instagram { 
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-highlight) 100%); 
  color: var(--color-primary); 
  /* border: 2px solid #CD853F;  */
}

.facebook { 
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%); 
  color: white; 
  /* border: 2px solid var(--color-secondary);  */
}

.website { 
  background: linear-gradient(135deg, var(--color-highlight) 0%, #E8D5C4 100%); 
  color: var(--color-primary); 
  /* border: 2px solid #DEB887;  */
}

.phone { 
  background: linear-gradient(135deg, #CD853F 0%, #F5DEB3 100%); 
  color: var(--color-primary); 
  /* border: 2px solid #CD853F;  */
}

.email { 
  background: linear-gradient(135deg, #DEB887 0%, var(--color-highlight) 100%); 
  color: var(--color-primary); 
  /* border: 2px solid #DEB887;  */
}

.faq {
  background: linear-gradient(135deg, #F5DEB3 0%, #FAEBD7 100%);
  color: var(--color-primary);
  /* border: 2px solid #DEB887; */
}

/* Social Buttons */
.social-buttons-container {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
}

.social-half {
  flex: 1;
  max-width: none;
  min-width: 0;
  font-size: 0.9em;
  padding: 16px 12px;
}

/* Small Screens */
@media (max-width: 300px) {
  .social-buttons-container {
    flex-direction: column;
    gap: 11px;
  }
  
  .social-half {
    width: 100%;
    font-size: 0.95em;
    padding: 10px 8px;
  }
}

.icon-logo { 
  width: 22px; 
  height: 22px; 
  margin-right: 12px; 
  vertical-align: middle; 
  display: inline-block; 
  z-index: 1; 
  flex-shrink: 0; 
}

.footer { 
  margin-top: 30px; 
  font-size: 1em; 
  color: var(--color-secondary); 
  text-align: center; 
}
#ecoindex-badge {
  display: inline-block;
  margin-top: 8px;
  vertical-align: middle;
}

/* Info Modal - styles moved to index.css for homepage */

/* Accessibility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.link-button:focus {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* Media */
img, picture, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Large Screens */
@media (min-width: 1400px) {
  .container {
    max-width: 1300px;
  }
}

/* Responsive */
@media (max-width: 680px) {
  body { font-size: 15px; }
  .container { padding: 10px 2vw; width: 99vw; max-width: 99vw; margin: 0 auto;}
  .main-layout { flex-direction: column; gap: 14px; }
  .left-column, .right-column { width: 100%; }
  .profile-image { width: 65px; height: 65px; }
  .profile-image-story { width: 150px; height: 150px; }
  .boutique-name { font-size: 1.85em; }
  .boutique-description { font-size: 11px; }
  .links-container .link-button { font-size: 0.95em; padding: 10px 8px; }
  .links-container { gap: 11px; margin-top: 8px;}
  .store-hours, .google-map { max-width: 95vw; font-size: 12px; }
  .icon-logo { width: 18px; height: 18px; }
  .footer { font-size: 0.92em; }
}

/* Navigation */
.main-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 24px;
  padding: 12px;
  background: #f8f2e4;
  border-radius: 14px;
  box-shadow: 0 2px 10px var(--shadow-sm);
}

.nav-link {
  padding: 10px 18px;
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 500;
  font-size: 1em;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: #f4e4d4;
  transform: translateY(-2px);
}

.nav-link.active {
  background: var(--color-primary);
  color: white;
}

/* Mobile Nav */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  max-width: 480px;
  margin: 0 auto 12px auto;
}

.nav-toggle .burger {
  width: 20px;
  height: 14px;
  position: relative;
}

.nav-toggle .burger::before,
.nav-toggle .burger::after,
.nav-toggle .line {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: white;
  border-radius: 2px;
}

.nav-toggle .line { top: 6px; }
.nav-toggle .burger::before { top: 0; }
.nav-toggle .burger::after { bottom: 0; }

@media (max-width: 680px) {
  .main-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease;
  }
  .nav-toggle { display: flex; }
  #siteNav[data-open="true"] {
    max-height: 380px;
    opacity: 1;
  }
}

/* Secondary Pages */
.page-header {
  text-align: center;
  margin-bottom: 40px;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
  margin: 35px 0;
}

.gallery-item {
  background: #f8f2e4;
  border-radius: 15px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 3px 12px var(--shadow-sm);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.image-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-highlight) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2em;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.gallery-item p {
  color: var(--color-primary);
  font-weight: 500;
  font-size: 1.05em;
  margin: 0;
}

.gallery-cta {
  text-align: center;
  margin: 40px 0;
  padding: 20px;
  background: #fdebd3;
  border-radius: 15px;
}

.gallery-cta p {
  color: var(--color-primary);
  font-size: 1.2em;
  margin-bottom: 20px;
}

/* Story Page */
.story-container {
  max-width: 880px;
  margin: 0 auto;
}

.story-content {
  background: #f8f2e4;
  border-radius: 20px;
  padding: 35px;
  margin: 35px 0;
  box-shadow: 0 4px 20px var(--shadow-sm);
}

.story-block {
  margin-bottom: 32px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e8d5c4;
}

.story-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.story-block h2 {
  color: var(--color-primary);
  margin-bottom: 16px;
  font-size: 1.4em;
}

.story-block p {
  color: var(--color-secondary);
  line-height: 1.65;
  font-size: 1.05em;
}

.story-cta {
  text-align: center;
  padding: 30px;
  background: #fdebd3;
  border-radius: 15px;
  margin: 30px 0;
}

.story-cta p {
  color: var(--color-primary);
  margin-bottom: 10px;
  font-size: 1.1em;
}

.story-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 300px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 680px) {
  .main-nav {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .story-content {
    padding: 18px 14px;
  }
  
  .story-links {
    max-width: 100%;
  }
  
  .gallery-cta, .story-cta {
    margin: 18px 0;
    padding: 14px;
  }
}

/* Footer Links */
.footer a {
  color: var(--color-secondary);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Visual Order */
.links-container {
  display: flex;
  flex-direction: column;
  gap: 8px; 
}

#toggleInfoBtn {
  background: linear-gradient(135deg, #f4e4d4 0%, #f8f2e4 100%);
  /* border: 2px solid var(--color-accent); */
}

/* Button Order */
.links-container > #toggleInfoBtn { order: 1; }
.links-container > .link-button[href*="galerie.html"] { order: 2; }
.links-container > .link-button[href*="histoire.html"] { order: 3; }
.links-container > .link-button[href*="faq.html"] { order: 4; }
.links-container > .social-buttons-container { order: 5; }
.links-container > .link-button[href*="tel:"] { order: 6; }
.links-container > .link-button[href*="mailto:"] { order: 7; }



/* Internal Navigation Buttons */
.link-button[href*="galerie.html"],
.link-button[href*="histoire.html"],
.link-button[href*="faq.html"] {
  background: linear-gradient(135deg, #E8D5C4 0%, var(--color-light) 100%);
  /* border: 2px solid #CD853F; */
}

/* Responsive Button Order */
@media (max-width: 680px) {
  .links-container {
    gap: 10px;
  }
}

/* FAQ Page */
.faq-container {
  max-width: 980px;
  margin: 0 auto;
}

.faq-section {
  background: #f8f2e4;
  border-radius: 20px;
  padding: 35px;
  margin-bottom: 35px;
  box-shadow: 0 4px 20px var(--shadow-sm);
}

.faq-section h2 {
  color: var(--color-primary);
  margin-bottom: 28px;
  text-align: center;
  font-size: 1.6em;
  border-bottom: 2px solid #e8d5c4;
  padding-bottom: 12px;
}

/* FAQ Items */
.faq-item {
  background: white;
  border-radius: 15px;
  margin-bottom: 22px;
  box-shadow: 0 2px 10px rgba(139,69,19,0.05);
  overflow: hidden;
  border: 1px solid #e8d5c4;
  transition: all 0.3s ease;
}

.faq-question {
  padding: 22px;
  background: linear-gradient(135deg, #f4e4d4 0%, #f8f2e4 100%);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: background 0.3s ease;
  border: none;
  width: 100%;
  text-align: left;
}

.faq-question:hover {
  background: linear-gradient(135deg, #e8d5c4 0%, #f4e4d4 100%);
}

.faq-icon {
  font-size: 1.6em;
  flex-shrink: 0;
}

.faq-question h3 {
  color: var(--color-primary);
  margin: 0;
  font-size: 1.15em;
  flex: 1;
}

/* FAQ Answer (Visible) */
.faq-answer {
  padding: 0 22px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s ease;
  background: white;
}

.faq-item.active .faq-answer {
  padding: 22px;
  max-height: 1000px;
}

.faq-answer p {
  color: var(--color-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

.faq-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.faq-list li {
  padding: 10px 0;
  color: var(--color-secondary);
  border-bottom: 1px solid #f4e4d4;
}

.faq-list li:last-child {
  border-bottom: none;
}

.faq-note {
  background: #fdebd3;
  padding: 16px;
  border-radius: 10px;
  border-left: 4px solid var(--color-accent);
  margin-top: 16px;
}

/* Process Steps */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 22px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(139,69,19,0.05);
}

.step-number {
  background: var(--color-primary);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.step-content h4 {
  color: var(--color-primary);
  margin: 0 0 10px 0;
  font-size: 1.15em;
}

.step-content p {
  color: var(--color-secondary);
  margin: 0;
  line-height: 1.6;
}

/* FAQ CTA */
.faq-cta {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-highlight) 100%);
  border-radius: 20px;
  padding: 44px;
  text-align: center;
  margin-top: 44px;
  box-shadow: 0 4px 20px rgba(139,69,19,0.1);
}

.cta-content h3 {
  color: var(--color-primary);
  margin-bottom: 18px;
  font-size: 1.5em;
}

.cta-content p {
  color: var(--color-secondary);
  margin-bottom: 28px;
  font-size: 1.15em;
}

.cta-buttons {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .link-button {
  min-width: 220px;
  margin: 0;
}

/* FAQ Links */
.faq-answer a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* Responsive FAQ */
@media (max-width: 680px) {
  .faq-section {
    padding: 18px 14px;
  }
  
  .faq-question {
    padding: 14px;
  }
  
  .faq-answer {
    padding: 0 14px;
  }
  
  .faq-item.active .faq-answer {
    padding: 14px;
  }
  
  .process-step {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
  
  .faq-cta {
    padding: 26px 18px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .link-button {
    width: 100%;
    max-width: 300px;
  }
}