:root {
  --primary: #7bc142;
  --primary-dark: #6ba538;
  --secondary: #ff6b35;
  --accent1: #8a2be2;
  --accent2: #4169e1;
  --accent3: #ff69b4;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-light: #f8fffe;
  --bg-card: #ffffff;
  --border: #e5e7eb;
  --success: #7bc142;
  --error: #ef4444;
  --warning: #ff6b35;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 2px 4px rgba(0, 0, 0, 0.6);
}

* {
  margin: auto 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 88px;
}

/* ========================================
   NAVIGATION BRAND - AJOUT LOGO
   ======================================== */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logo {
  width: 120px;
  height: auto;
  padding: 1.1rem;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-logo:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-logo:active {
  transform: scale(0.95);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
}

.nav-brand h1 {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 2px;
}

.nav-subtitle {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 400;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

.main {
  margin-top: 70px;
}

.section {
  display: none;
  min-height: calc(100vh - 70px);
  padding: 2rem 0;
  animation: fadeIn 0.3s ease-in-out;
}

.section.active {
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: calc(80vh - 140px);
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--text);
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.links-pco {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.links-pco:hover {
  text-decoration: underline;
}

.links-pco::after {
  font-size: 1rem;
}

/* ========================================
   BOUTON CTA
   ======================================== */
.cta-btn {
  background: var(--primary);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 6px rgba(123, 193, 66, 0.3);
}

#profession .cta-btn {
  width: 300px;
  display: block;
  margin: 1rem auto 0;
  text-align: center;
}

.cta-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(123, 193, 66, 0.4);
}

/* ========================================
   IMAGE HERO - OPTIMISATION PLAQUE
   ======================================== */
.hero-image img {
  margin: auto;
  padding: auto;
  height: auto;
  max-height: 300px;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  object-fit: cover;
}

.plaque {
  text-align: center;
  margin-top: 1.5rem;
}

#accueil > div.plaque > img {
  margin: auto;
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  object-fit: cover;
}

#accueil > div.hero > div.hero-image {
  margin: auto;
}

@media (max-width: 780px) {
  #accueil > div.plaque > img {
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    object-fit: cover;
  }
}

.profile-content {
  max-width: 800px;
  margin: 1rem auto;
  padding: 1rem;
}

.profile-content h3 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.profile-text h4 {
  color: var(--accent2);
  font-size: 1.2rem;
  margin: 2rem 0 0.5rem;
}

.profile-text p {
  margin-bottom: 1rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

profession > div > h2 {
  text-align: center;
  margin-bottom: 2rem;
}

#profession > div > div > div > p {
  margin: auto;
  width: 750px;
  text-align: center;
}

@media (max-width: 780px) {
  #profession > div > div > div > p {
    margin: auto;
    width: 90%;
    text-align: center;
  }
}

#profession > div > div > div > h3 {
  text-align: center;
}

#profession > div > div > div > ul > li {
  margin: auto;
  width: min(500px, 90%);
  text-align: left;
}
.content-text h2 {
  color: var(--primary);
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.content-text h3 {
  color: var(--accent1);
  font-size: 1.3rem;
  margin: 1rem 0 1rem;
}

.content-text ul {
  margin: 1rem 0 2rem 1.5rem;
}

.content-text li {
  margin-bottom: 0.5rem;
}

.content-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-card);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--accent2));
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 4rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 0.5rem;
  width: 1rem;
  height: 1rem;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 3px white, 0 0 0 6px var(--primary);
}

.timeline-item.ongoing::before {
  background: var(--secondary);
  box-shadow: 0 0 0 3px white, 0 0 0 6px var(--secondary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

.timeline-year {
  background: var(--accent2);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.timeline-item.ongoing .timeline-year {
  background: var(--secondary);
}

.timeline-content h3 {
  color: var(--text);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.timeline-org {
  color: var(--accent1);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.timeline-content p:last-child {
  color: var(--text-light);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.pricing-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  border: 2px solid transparent;
  transition: all 0.2s;
}

.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.pricing-card h3 {
  color: var(--accent1);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.price-detail {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
}

.pricing-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  padding-left: 1.5rem;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.price-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem;
  background: var(--bg-light);
  border-radius: 6px;
}

.price-item span:last-child {
  font-weight: 600;
  color: var(--primary);
}

.pricing-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

#tarifs > div > div.pricing-info > div.container > div.profile-content {
  max-width: fit-content;
}

.links-help {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.links-help:hover {
  text-decoration: underline;
}

.links-help::after {
  font-size: 1rem;
}

#tarifs
  > div
  > div.pricing-info
  > div.container
  > div
  > div
  > ul
  > li:nth-child(1)
  > ul
  > li {
  margin-left: 1rem;
}

.info-section {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

.info-section h3 {
  color: var(--text);
  margin-bottom: 1rem;
}

.info-section ul {
  margin-left: 1rem;
}

.info-section li {
  margin-bottom: 0.5rem;
}

/* --- Layout Grille --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
  }
}

/* --- Wrapper Formulaire --- */
.contact-form-wrapper {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* --- Fieldsets --- */
.form-section {
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-section legend {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  padding: 0 0.75rem;
}

/* --- Form Groups --- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 480px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Labels --- */
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #374151;
}

.required {
  color: #ef4444;
  font-weight: bold;
}

/* --- Inputs & Textarea --- */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="date"],
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(123, 193, 66, 0.1);
}

.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] {
  border-color: #ef4444;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* --- Hints --- */
.form-hint {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 400;
  font-style: italic;
}

/* --- Checkbox RGPD --- */
.checkbox-group {
  margin-top: 1.5rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

/* --- Messages d'erreur --- */
.error-message {
  display: none;
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  font-weight: 500;
}

.error-message:not(:empty) {
  display: block;
  animation: slideDown 0.3s ease;
}

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

/* --- Exemples de messages --- */
.message-examples {
  margin-top: 1rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 6px;
  border-left: 4px solid var(--primary-color);
}

.message-examples summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--primary-color);
  user-select: none;
  -webkit-user-select: none;
}

.message-examples summary:hover {
  text-decoration: underline;
}

.message-examples ul {
  margin-top: 0.75rem;
  padding-left: 1.5rem;
}

.message-examples li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.message-examples strong {
  color: var(--primary-color);
}

/* --- Actions Formulaire --- */
.form-actions {
  margin-top: 2rem;
  text-align: center;
}

.form-actions .btn {
  width: 100%;
  max-width: 350px;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.form-info {
  margin-top: 1rem;
  color: #6b7280;
  font-size: 0.875rem;
}

/* --- Messages retour formulaire --- */
.form-message {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  animation: slideDown 0.4s ease;
}

.form-message.success {
  background: #d1fae5;
  color: #065f46;
  border-left: 4px solid #10b981;
}

.form-message.error {
  background: #fee2e2;
  color: #991b1b;
  border-left: 4px solid #ef4444;
}

/* --- Card Informations Contact --- */
.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-info-card h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.info-item:last-child {
  border-bottom: none;
}

.info-item .icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.info-item strong {
  display: block;
  color: #374151;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.info-item a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.info-item a:hover {
  color: #5a9c2e;
  text-decoration: underline;
}

.info-item address {
  font-style: normal;
  line-height: 1.6;
}

/* --- Note Urgence --- */
.urgence-note {
  background: #fef3c7;
  border: 2px solid #fbbf24;
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.urgence-note .icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.urgence-note strong {
  color: #92400e;
}

/* --- Responsive Mobile --- */
@media (max-width: 767px) {
  .contact-form-wrapper,
  .contact-info-card {
    padding: 1.5rem;
    margin: auto;
  }

  .form-section {
    padding: 1rem;
  }

  .form-actions .btn {
    width: 100%;
  }
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-item {
  text-align: center;
  padding: 1rem;
  margin: 1rem 0;
  background: var(--bg-light);
  border-radius: 12px;
}

.contact-item.important {
  background: white;
  color: var(--warning);
  width: fit-content;
  margin: 1rem auto;
  justify-content: center;
  border: 2px solid var(--warning);
}

.contact-item h3 {
  margin-bottom: 1rem;
  color: var(--accent2);
}

.contact-item.important h3 {
  color: var(--warning);
}

.contact-item a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.radio-group {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.radio-group label {
  width: 30%;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: normal;
  margin-bottom: 0;
}

.radio-group label input {
  width: 15%;
}

.submit-btn {
  width: 100%;
  background: var(--primary);
  color: white;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.submit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.footer {
  background: var(--text);
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
}

/* ===================================
   🗺️ GOOGLE MAPS CONTAINER
   =================================== */

.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 1.5rem 0;
  background: #f9fafb;
  transition: box-shadow 0.3s ease;
}

.map-container:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.map-container iframe {
  width: 100%;
  min-height: 300px;
  display: block;
}

/* Responsive Mobile */
@media (max-width: 768px) {
  .map-container {
    border-radius: 8px;
    margin: 1rem 0;
  }

  .map-container iframe {
    min-height: 250px;
  }
}

/* Responsive Petits écrans */
@media (max-width: 480px) {
  .map-container iframe {
    min-height: 200px;
  }
}

/* ========================================
   RESPONSIVE - TABLETTE & MOBILE
   ======================================== */
@media (max-width: 900px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 2rem;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s;
    display: none;
    box-shadow: var(--shadow-card);
  }

  .nav-menu.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1rem;
  }

  .hero-image img {
    height: auto;
    max-height: 300px;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    object-fit: cover;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .timeline {
    padding: 0 1rem;
  }

  .timeline::before {
    left: 1rem;
  }

  .timeline-item {
    padding-left: 3rem;
  }

  .timeline-item::before {
    left: -0.5rem;
  }

  .pricing-info,
  .contact-info {
    grid-template-columns: 1fr;
  }

  .radio-group {
    flex-direction: column;
  }

  /* Logo adapté tablette */
  .nav-logo {
    width: 120px;
    height: auto;
    padding: 1rem;
    object-fit: contain;
    flex-shrink: 0;
  }
}

/* ========================================
   RESPONSIVE - MOBILE STRICT
   ======================================== */
@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }

  .section {
    padding: 1rem 0;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .contact-form {
    padding: 1rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  /* Logo adapté mobile */
  .nav-logo {
    width: 100px;
    height: auto;
    padding: 1rem;
    object-fit: contain;
    flex-shrink: 0;
  }

  .nav-brand {
    gap: 0.5rem;
  }

  .nav-brand h1 {
    font-size: 1.2rem;
  }

  .nav-subtitle {
    font-size: 0.8rem;
  }

  /* Image hero mobile */
  .hero-image img {
    margin: auto 0;
    max-height: 220px;
    width: auto;
  }
}

.loading {
  opacity: 0;
  transition: opacity 0.3s;
}

.loaded {
  opacity: 1;
}

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

/* ============================================
   📸 GALERIES - STYLES COMMUNS
   ============================================ */

.gallery-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background: var(--light-gray);
}

.gallery-main-image {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.gallery-main-image.lazy-load {
  opacity: 0;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

.gallery-main-image.loaded {
  opacity: 1;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Navigation */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 2rem;
  color: var(--primary);
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-prev {
  left: 16px;
}
.gallery-next {
  right: 16px;
}

.gallery-nav:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

/* Indicateurs */
.gallery-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #ddd;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.indicator.active {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.2);
}

/* Légende */
.gallery-caption {
  text-align: center;
  margin-top: 1rem;
}

.caption-text {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: rgba(123, 193, 66, 0.1);
  border-radius: 20px;
  font-size: 0.95rem;
  color: var(--text);
}

/* ============================================
   📸 SPÉCIFIQUES PROFESSION
   ============================================ */

.profession-gallery {
  margin: 2rem 0 3rem;
}

.profession-gallery .gallery-container {
  max-width: 600px;
}

/* ============================================
   📱 RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .gallery-nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }

  .gallery-prev {
    left: 8px;
  }
  .gallery-next {
    right: 8px;
  }

  .indicator {
    width: 10px;
    height: 10px;
  }

  .gallery-main-image {
    aspect-ratio: 4/3;
  }
}

@media (max-width: 480px) {
  .gallery-nav {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }

  .caption-text {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }

  .gallery-main-image {
    aspect-ratio: 1/1;
  }
}

.gallery-main-image {
  transition: opacity 0.6s ease-in-out;
}

/* ============================================
   PAGES LÉGALES (Mentions Légales + RGPD)
   ============================================ */

/* Container général */
.legal-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

.intro-text {
  font-size: 1.1rem;
  color: #555;
  background: #f8f9fa;
  padding: 1.5rem;
  border-left: 4px solid var(--primary-color);
  margin-bottom: 2rem;
  border-radius: 8px;
}

/* Sections légales */
.legal-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e7eb;
}

.legal-section:last-child {
  border-bottom: none;
}

.legal-section h2 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.legal-section h3 {
  font-size: 1.2rem;
  color: #333;
  margin: 1.5rem 0 0.75rem;
}

.legal-section p {
  margin-bottom: 1rem;
}

.legal-section ul {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.legal-section ul li {
  text-align: justify;
  margin: auto;
  max-width: 500px;
  padding: 0.5rem 0 0.5rem 2rem;
  position: relative;
}

.legal-section ul li::before {
  content: "▸";
  position: absolute;
  left: 0.5rem;
  color: var(--primary-color);
  font-weight: bold;
}

/* Box d'information */
.info-box,
.warning-box,
.success-box {
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 8px;
  border-left: 4px solid;
}

.info-box {
  background: #e3f2fd;
  border-color: #2196f3;
  color: #0d47a1;
}

.warning-box {
  background: #fff3cd;
  border-color: #ffc107;
  color: #856404;
}

.success-box {
  background: #d4edda;
  border-color: #28a745;
  color: #155724;
}

/* Tableau conservation données */
.data-retention-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.data-retention-table th,
.data-retention-table td {
  padding: 1rem;
  text-align: left;
  border: 1px solid #ddd;
}

.data-retention-table th {
  background: var(--primary-color);
  color: rgb(125, 125, 125);
  font-weight: 600;
}

.data-retention-table tbody tr:nth-child(even) {
  background: #f8f9fa;
}

.data-retention-table tbody tr:hover {
  background: #e8f5e9;
}

/* Grille droits RGPD */
.rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.right-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-top: 4px solid var(--primary-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.right-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.right-card h3 {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 0.75rem;
}

.right-card p {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
}

/* Section contact */
.contact-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  margin-top: 3rem;
}

.contact-section h2 {
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.contact-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  transition: background 0.3s ease;
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.2);
}

.contact-card .icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.contact-card strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: white;
}

.contact-card a {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  transition: opacity 0.3s ease;
}

.contact-card a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.contact-card p {
  color: white;
  font-size: 0.9rem;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .legal-content {
    padding: 0 1rem;
  }

  .data-retention-table {
    font-size: 0.85rem;
  }

  .data-retention-table th,
  .data-retention-table td {
    padding: 0.75rem 0.5rem;
  }

  .rights-grid {
    grid-template-columns: 1fr;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: start;
}

.footer-section {
  margin: 0;
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  margin-top: 0;
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
}

/* Footer About */
.footer-about .footer-logo {
  height: auto;
  max-height: 120px;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  object-fit: cover;
}

.footer-about .footer-logo:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-about .footer-logo:active {
  transform: scale(0.95);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-about p {
  color: #bdc3c7;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.footer-address {
  font-size: 0.9rem;
  line-height: 1.8;
}

/* Footer Lists */
.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section ul li a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease, padding-left 0.3s ease;
  display: inline-block;
}

.footer-section ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

/* Footer Contact */
.footer-contact ul li {
  display: flex;
  align-items: start;
  gap: 0.5rem;
}

.footer-contact .icon {
  font-size: 1.2rem;
  min-width: 24px;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  color: #95a5a6;
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.footer-credits {
  font-size: 0.85rem;
}

.footer-credits strong {
  color: var(--primary-color);
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-about .footer-logo {
    margin: 0 auto 1rem;
    display: block;
  }

  .footer-contact ul li {
    justify-content: center;
  }
}

/* Masquer liens légaux du menu principal (desktop) */
nav .legal-links {
  display: none;
}

/* Afficher dans le menu mobile */
@media (max-width: 900px) {
  nav .legal-links {
    display: block;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
  }

  nav .legal-links a {
    font-size: 0.85rem;
    color: #bdc3c7;
  }
}

/* --- Autocomplete Ville --- */
.autocomplete-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid var(--primary-color);
  border-top: none;
  border-radius: 0 0 6px 6px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: none;
}

.autocomplete-suggestions.active {
  display: block;
}

.autocomplete-item {
  padding: 0.75rem;
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid #e5e7eb;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
  background: rgba(123, 193, 66, 0.1);
}

.autocomplete-item strong {
  color: var(--primary-color);
}

/* Responsive autocomplete */
.form-group {
  position: relative;
}
