/* ============================================
   VARIABLES & RESETS
   ============================================ */

:root {
  --primary-color: #c88f38;
  --primary-dark: #a67a2a;
  --secondary-color: #8b7355;
  --text-dark: #2c2c2c;
  --text-light: #5a5a5a;
  --bg-light: #fff5e3;
  --border-color: #d4c4b0;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.18);
  
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: #fff;
  line-height: 1.6;
}

/* Accessibility - Skip Link */
.skip-link {
  display: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--spacing-md);
  color: var(--text-dark);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-light);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover,
a:focus {
  color: var(--primary-dark);
  text-decoration: underline;
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

/* Lien Instagram blanc dans tous les états */
a.instagram-link,
a.instagram-link:visited,
a.instagram-link:hover,
a.instagram-link:active,
a.instagram-link:focus {
  color: #ffffff;
  text-decoration: none; 
}

/* Logo Instagram blanc avec glow au survol */
a.instagram-link svg {
  color: #ffffff;          /* blanc */
  width: 24px;
  height: 24px;
  vertical-align: middle;
  transition: filter 0.3s ease, transform 0.3s ease; /* animation douce */
}

/* Hover / focus effect */
a.instagram-link:hover svg,
a.instagram-link:focus svg {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
  transform: scale(1.1);  /* petit agrandissement */
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
  background: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 50;
}

.navbar-container {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem var(--spacing-md);
  gap: var(--spacing-md);
  position: relative;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.navbar-logo:hover,
.navbar-logo:focus {
  transform: scale(1.05);
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: var(--radius-md);
}

.navbar-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.navbar-brand-text {
  font-size: 1.25rem;
  line-height: 1;
}

/* Hamburger Menu (Mobile Hidden by default) */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
  gap: 6px;
  z-index: 60;
  margin-left: auto;
}

.hamburger-line {
  width: 24px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Navigation Menu */
.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 4px;
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: var(--secondary-color);
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.nav-menu a[aria-current="page"] {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  font-weight: 600;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
  min-height: calc(100vh - 200px);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: var(--spacing-xl) var(--spacing-md);
  text-align: center;
}

.hero .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-xl);
}

.hero-content {
  flex: 1;
  min-width: 250px;
  text-align: left;
}

.hero-content h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

.hero-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
}

.logo-placeholder {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-section {
  padding: var(--spacing-xl) var(--spacing-md);
  background: var(--bg-light);
}

.contact-section h2 {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  max-width: 660px;
  margin: 0 auto;
}

.contact-card {
  background: white;
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.contact-card:hover,
.contact-card:focus {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.contact-card .icon {
  width: 48px;
  height: 48px;
  color: var(--primary-color);
  stroke-width: 2;
}

.contact-card span {
  color: var(--text-dark);
  font-weight: 500;
  word-break: break-all;
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */

.newsletter-section {
  padding: var(--spacing-xl) var(--spacing-md);
}

.newsletter-section .container {
  max-width: 600px;
  text-align: center;
}

.newsletter-section h2 {
  margin-bottom: var(--spacing-md);
}

.newsletter-section > .container > p {
  margin-bottom: var(--spacing-lg);
  font-size: 1.1rem;
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
  margin-bottom: var(--spacing-lg);
  text-align: left;
}

label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  color: var(--text-dark);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: var(--spacing-sm);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input[type="checkbox"] {
  margin-right: var(--spacing-xs);
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
}

.form-group.checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

.form-group.checkbox label {
  margin: 0;
  flex: 1;
  display: block;
}

.form-message {
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  display: none;
}

.form-message.success {
  display: block;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.error-message {
  color: #d32f2f;
  font-size: 0.875rem;
  margin-top: var(--spacing-xs);
  display: none;
}

.error-message.show {
  display: block;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1rem;
  display: inline-block;
  text-align: center;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  width: 100%;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

/* ============================================
   CONTACT FORM SECTION
   ============================================ */

.contact-form-section {
  padding: var(--spacing-xl) var(--spacing-md);
}

.contact-form-section .container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-xl);
  max-width: 1000px;
}

.contact-form-wrapper {
  background: var(--bg-light);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
}

.contact-form-wrapper h1 {
  color: var(--primary-color);
}

.form-description {
  color: var(--text-light);
  margin-bottom: var(--spacing-lg);
}

.contact-info-sidebar {
  background: white;
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  height: fit-content;
  border: 1px solid var(--border-color);
}

.contact-info-sidebar h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.contact-info-sidebar p {
  margin-bottom: var(--spacing-md);
}

/* ============================================
   LEGAL PAGE
   ============================================ */

.legal-page {
  padding: var(--spacing-xl) var(--spacing-md);
}

.legal-page .container {
  max-width: 800px;
}

.legal-page h1 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-xl);
  border-bottom: 3px solid var(--secondary-color);
  padding-bottom: var(--spacing-md);
}

.legal-page section {
  margin-bottom: var(--spacing-xl);
}

.legal-page h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
}

.legal-page ul {
  margin-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.legal-page li {
  margin-bottom: var(--spacing-sm);
  color: var(--text-light);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  display: flex;           /* active flexbox */
  justify-content: center; /* centre le contenu horizontalement */
  align-items: center;     /* centre le contenu verticalement dans le footer */
  background: var(--text-dark);
  color: white;
  padding: var(--spacing-lg) var(--spacing-md);
  margin-top: var(--spacing-xl);
  text-align: center;      /* centre le texte si plusieurs lignes */
  flex-wrap: wrap;         /* utile si plusieurs éléments dans le footer */
}

.footer .container {
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
}

.footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.footer-nav {
  display: flex;
  gap: var(--spacing-lg);
  justify-content: center;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.footer-nav a:hover,
.footer-nav a:focus {
  color: white;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    gap: var(--spacing-sm);
    font-size: 0.9rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: var(--shadow);
  }

  .nav-menu.show {
    max-height: 400px;
  }

  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    text-align: center;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .contact-methods {
    grid-template-columns: 1fr;
  }

  .contact-form-section .container {
    grid-template-columns: 1fr;
  }

  .footer .container {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .navbar .container {
    gap: var(--spacing-md);
    padding: var(--spacing-sm);
  }

  .navbar-brand h1 {
    font-size: 1.25rem;
  }

  .navbar-brand-text {
    font-size: 1rem;
  }

  .nav-menu {
    flex-direction: column;
    gap: var(--spacing-sm);
    width: 100%;
    text-align: center;
  }

  .nav-menu a {
    display: block;
  }

  .logo-placeholder {
    width: 150px;
    height: 150px;
  }

  .hero-content h2 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 1rem;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .navbar,
  .footer,
  .btn,
  .form-group,
  .skip-link {
    display: none;
  }

  body {
    font-size: 12pt;
  }

  a {
    text-decoration: underline;
  }
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 40;
  transition: all 0.3s ease;
  opacity: 0;
}

.back-to-top.visible {
  display: flex;
  opacity: 1;
}

.back-to-top:hover,
.back-to-top:focus {
  background: var(--primary-dark);
  transform: translateY(-5px);
  outline: 2px solid var(--primary-dark);
  outline-offset: 2px;
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  stroke: white;
  stroke-width: 2;
  fill: none;
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */

@media (prefers-color-scheme: dark) {
  body {
    background: #1a1a1a;
    color: #e0e0e0;
  }

  .navbar,
  .contact-card {
    background: #2d2d2d;
  }

  .contact-section,
  .newsletter-section {
    background: #252525;
  }

  .contact-form-wrapper {
    background: #2d2d2d;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea,
  select {
    background: #3a3a3a;
    color: #e0e0e0;
    border-color: #444;
  }

  a {
    color: #ff8080;
  }

  p {
    color: #b0b0b0;
  }

  h1, h2, h3, h4, h5, h6 {
    color: #e0e0e0;
  }
}
