/* =============================================
   ANIMAFETE.FR — CSS Global
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Poppins:wght@400;500;600;700&display=swap');

/* === VARIABLES === */
:root {
  --primary: #FF6B35;
  --primary-dark: #e85520;
  --primary-light: #fff0eb;
  --secondary: #FFD166;
  --secondary-dark: #e5b84a;
  --accent: #06D6A0;
  --dark: #1a1a2e;
  --dark-2: #2d2d44;
  --text: #333344;
  --text-light: #666680;
  --border: #e8e8f0;
  --bg: #fafafa;
  --bg-2: #f4f4fb;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --font-main: 'Poppins', sans-serif;
  --font-display: 'Nunito', sans-serif;
  --transition: 0.25s ease;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  color: var(--dark);
}

/* === LAYOUT === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === HEADER / NAV === */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--dark);
}
.logo span { color: var(--primary); }
.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
}
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary);
  color: white !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
}
.nav-cta:hover {
  background: var(--primary-dark) !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255,107,53,0.4);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  font-family: var(--font-main);
}
.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(255,107,53,0.4);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255,107,53,0.5);
}
.btn-secondary {
  background: var(--secondary);
  color: var(--dark);
}
.btn-secondary:hover {
  background: var(--secondary-dark);
  color: var(--dark);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
}
.btn-lg {
  padding: 18px 36px;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

/* === HERO === */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.pexels.com/photos/296308/pexels-photo-296308.jpeg?auto=compress&cs=tinysrgb&h=650&w=940') center/cover;
  opacity: 0.2;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,107,53,0.2);
  border: 1px solid rgba(255,107,53,0.4);
  color: var(--secondary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 {
  color: white;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
  line-height: 1.15;
}
.hero h1 em {
  color: var(--primary);
  font-style: normal;
}
.hero-subtitle {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.7;
}
.hero-trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 25px;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}
.hero-trust-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* === FORM CARD === */
.form-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}
.form-card-title {
  font-size: 1.4rem;
  color: var(--dark);
  margin-bottom: 6px;
}
.form-card-subtitle {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid .full {
  grid-column: 1 / -1;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.form-group label .required {
  color: var(--primary);
  margin-left: 2px;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-main);
  color: var(--text);
  transition: var(--transition);
  width: 100%;
  background: var(--bg);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(255,107,53,0.1);
}
.form-submit {
  margin-top: 8px;
}
.form-submit .btn {
  width: 100%;
  justify-content: center;
  font-size: 1.05rem;
}
.form-legal {
  font-size: 0.78rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 10px;
}

/* === REASSURANCE === */
.reassurance-bar {
  background: var(--primary-light);
  border-top: 3px solid var(--primary);
  border-bottom: 1px solid #ffd0bf;
  padding: 20px 0;
}
.reassurance-items {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.reassurance-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
}
.reassurance-item .icon {
  width: 38px;
  height: 38px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

/* === SECTIONS === */
.section {
  padding: 80px 0;
}
.section-alt {
  background: var(--bg-2);
}
.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--dark);
  margin-bottom: 14px;
}
.section-subtitle {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* === CARDS === */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.card-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.6rem;
}
.card-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.card-text {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* === HOW IT WORKS === */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 16%;
  right: 16%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: 0;
}
.step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: white;
  font-size: 1.4rem;
  font-weight: 900;
  font-family: var(--font-display);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 4px 15px rgba(255,107,53,0.4);
  border: 4px solid white;
}
.step-title {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.step-text {
  color: var(--text-light);
  font-size: 0.88rem;
}

/* === FAQ === */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  padding: 18px 24px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  transition: var(--transition);
  font-size: 0.95rem;
}
.faq-question:hover { background: var(--primary-light); }
.faq-question.active { color: var(--primary); background: var(--primary-light); }
.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.35s ease;
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
}
.faq-answer.open {
  max-height: 500px;
  padding: 16px 24px;
}

/* === CITY PAGE SPECIFIC === */
.city-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%);
  padding: 60px 0 70px;
  position: relative;
  overflow: hidden;
}
.city-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.pexels.com/photos/296308/pexels-photo-296308.jpeg?auto=compress&cs=tinysrgb&h=650&w=940') center/cover;
  opacity: 0.15;
}
.city-hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 50px;
  align-items: start;
}
.city-breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.city-breadcrumb a {
  color: rgba(255,255,255,0.6);
}
.city-breadcrumb a:hover { color: var(--primary); }
.city-breadcrumb span { margin: 0 6px; }
.city-h1 {
  color: white;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 16px;
}
.city-h1 .city-name-highlight { color: var(--primary); }
.city-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.city-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
}
.city-intro {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 560px;
}

/* === CONTENT SECTIONS === */
.content-section {
  padding: 60px 0;
}
.content-section:nth-child(even) {
  background: var(--bg-2);
}
.content-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.content-grid-2.reverse { direction: rtl; }
.content-grid-2.reverse > * { direction: ltr; }

.content-text h2 {
  font-size: 1.7rem;
  margin-bottom: 14px;
}
.content-text p {
  color: var(--text-light);
  margin-bottom: 14px;
  line-height: 1.75;
}
.content-text ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.content-text ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-light);
  font-size: 0.92rem;
}
.content-text ul li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.content-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.content-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.content-img:hover img { transform: scale(1.04); }

/* === STAT BOXES === */
.stat-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
}
.stat-box {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  border: 1px solid #ffd0bf;
}
.stat-box .number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  font-family: var(--font-display);
}
.stat-box .label {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* === VOISINES === */
.voisines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.voisine-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  transition: var(--transition);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}
.voisine-link:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* === LISTING PAGE === */
.listing-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  padding: 60px 0;
  text-align: center;
}
.listing-hero h1 { color: white; font-size: 2.2rem; margin-bottom: 12px; }
.listing-hero p { color: rgba(255,255,255,0.7); font-size: 1rem; }

.filter-bar {
  padding: 20px 0;
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 70px;
  z-index: 90;
}
.filter-bar .container {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.filter-search {
  flex: 1;
  min-width: 200px;
  padding: 10px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 0.9rem;
}
.filter-search:focus {
  outline: none;
  border-color: var(--primary);
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  padding: 40px 0;
}
.city-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.city-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.city-card-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark);
  font-family: var(--font-display);
}
.city-card-dept {
  font-size: 0.78rem;
  color: var(--text-light);
}
.city-card-pop {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
}
.city-card-link {
  margin-top: 8px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* === ALERT === */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  margin: 20px 0;
}
.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* === FOOTER === */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand h3 {
  color: white;
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.footer-brand h3 span { color: var(--primary); }
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer-col h4 {
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}
.footer-badges {
  display: flex;
  gap: 12px;
}
.footer-badge {
  background: rgba(255,255,255,0.08);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

/* === REVEAL ON SCROLL === */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* === FORM SUCCESS === */
.form-success {
  text-align: center;
  padding: 30px;
}
.form-success .success-icon {
  width: 70px;
  height: 70px;
  background: #d1fae5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
}
.form-success h3 {
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 10px;
}
.form-success p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; }
  .city-hero-content { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .content-grid-2 { grid-template-columns: 1fr; }
  .content-grid-2.reverse { direction: ltr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    z-index: 99;
  }
  .nav-toggle { display: block; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: 1; }
  .hero { padding: 50px 0; }
  .city-hero { padding: 40px 0 50px; }
  .section { padding: 50px 0; }
  .reassurance-items { gap: 20px; justify-content: flex-start; }
  .stat-boxes { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .cities-grid { grid-template-columns: 1fr; }
  .hero-trust { flex-direction: column; }
  .city-meta { gap: 8px; }
}