/* Components - Ported from FrenchPappers with AY Conseil Branding */

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.announcement-bar {
  background: linear-gradient(-45deg, #C5A059, #A67C3D, #D4B67C, #1A1A1A);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: white;
  text-align: center;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  width: 100%;
}

.announcement-bar strong {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.card {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  padding: 40px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  border-radius: 4px; 
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.card h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
}

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

.testimonial-card {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: 4px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}

.stars {
  color: var(--primary-color); 
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: auto;
}

.client-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-color);
  border: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-weight: bold;
}

.faq-item {
  border-bottom: 1px solid var(--surface-border);
  background: var(--surface-color);
  padding: 20px;
  margin-bottom: 2px;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  max-height: 200px;
  margin-top: 16px;
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: transform 0.3s;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
  border-radius: 4px;
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-color-hover);
}

.feature-list {
  list-style: none;
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  flex-grow: 1;
}

.feature-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  color: var(--text-muted);
}

.feature-list li::before {
  content: '✓';
  color: var(--primary-color);
  font-weight: bold;
  margin-inline-end: 12px;
  margin-top: 2px;
}

.form-control {
  width: 100%; 
  padding: 12px 16px; 
  border-radius: 4px; 
  border: 1px solid var(--surface-border); 
  background: var(--surface-color); 
  color: var(--text-main); 
  outline: none; 
}

.form-control:focus {
  border-color: var(--primary-color);
}

/* =========================================
   RGPD COOKIE BANNER
   ========================================= */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--secondary-color);
  color: #fff;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  border-top: 2px solid var(--primary-color);
  transition: transform 0.4s ease;
}
.cookie-banner.hidden { transform: translateY(110%); }
.cookie-banner__text { flex: 1; min-width: 200px; }
.cookie-banner__text p { color: rgba(255,255,255,0.82); font-size: 0.88rem; line-height: 1.5; margin: 0; }
.cookie-banner__text a { color: var(--primary-color); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cookie-banner__btn {
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.cookie-banner__btn--accept { background: var(--primary-color); color: #fff; }
.cookie-banner__btn--accept:hover { background: var(--primary-color-hover); }
.cookie-banner__btn--reject { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.35); }
.cookie-banner__btn--reject:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.cookie-banner__btn--customize { background: transparent; color: rgba(255,255,255,0.55); font-size: 0.82rem; text-decoration: underline; padding: 10px 8px; }

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease;
}
.cookie-modal-overlay.active { opacity: 1; visibility: visible; }
.cookie-modal {
  background: var(--surface-color);
  border-radius: 4px;
  padding: 36px;
  max-width: 540px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.cookie-modal h3 { font-size: 1.35rem; margin-bottom: 8px; }
.cookie-modal > p { font-size: 0.88rem; margin-bottom: 20px; }
.cookie-toggle-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--surface-border);
}
.cookie-toggle-row:last-of-type { border-bottom: none; margin-bottom: 20px; }
.cookie-toggle-info h4 { font-size: 0.95rem; margin-bottom: 3px; font-family: var(--font-sans); color: var(--text-main); }
.cookie-toggle-info p { font-size: 0.78rem; margin: 0; }
.cookie-toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.cookie-toggle-slider {
  position: absolute; inset: 0;
  background: #ccc; border-radius: 24px; cursor: pointer; transition: 0.3s;
}
.cookie-toggle-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px; background: white; border-radius: 50%;
  top: 3px; left: 3px; transition: 0.3s;
}
.cookie-toggle input:checked + .cookie-toggle-slider { background: var(--primary-color); }
.cookie-toggle input:checked + .cookie-toggle-slider::before { transform: translateX(20px); }
.cookie-toggle input:disabled + .cookie-toggle-slider { opacity: 0.5; cursor: not-allowed; }
.cookie-modal__actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* Nav tel */
.nav-tel { display:flex; align-items:center; gap:6px; color:var(--text-main); text-decoration:none; font-weight:600; font-size:0.88rem; white-space:nowrap; }
.nav-tel:hover { color:var(--primary-color); }
@media (max-width:991px) { .nav-tel { display:none; } }

/* Stats */
.stats-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(170px,1fr)); gap:24px; margin-top:50px; }
.stat-item { text-align:center; padding:32px 16px; background:var(--surface-color); border:1px solid var(--surface-border); border-radius:4px; box-shadow:var(--shadow-sm); }
.stat-number { font-family:var(--font-serif); font-size:2.8rem; font-weight:700; color:var(--primary-color); line-height:1; margin-bottom:8px; display:block; }
.stat-label { font-size:0.88rem; color:var(--text-muted); font-weight:500; }

/* Process */
.process-steps { display:grid; grid-template-columns:repeat(3,1fr); gap:0; margin-top:50px; }
.process-step { text-align:center; padding:32px 24px; position:relative; }
.process-step:not(:last-child)::after { content:'→'; position:absolute; right:-8px; top:44px; font-size:1.6rem; color:var(--primary-color); opacity:0.5; }
.step-number { width:54px; height:54px; border-radius:50%; background:var(--primary-color); color:#fff; font-size:1.3rem; font-weight:700; display:flex; align-items:center; justify-content:center; margin:0 auto 16px; font-family:var(--font-serif); }
.process-step h3 { font-size:1.05rem; margin-bottom:8px; font-family:var(--font-sans); color:var(--text-main); }
.process-step p { font-size:0.88rem; }

/* About */
.about-grid { display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; margin-top:50px; }
.about-text h2 { text-align:left; }
.about-text p { margin-bottom:16px; }
.about-values { display:flex; flex-direction:column; gap:16px; margin-top:24px; }
.about-value { display:flex; align-items:flex-start; gap:14px; }
.about-value-icon { width:40px; height:40px; border-radius:4px; background:#fdfaf3; border:1px solid var(--primary-color); display:flex; align-items:center; justify-content:center; font-size:1.1rem; flex-shrink:0; }
.about-value-text h4 { font-size:0.95rem; margin-bottom:2px; font-family:var(--font-sans); }
.about-value-text p { font-size:0.85rem; margin:0; }
.about-visual { background:#fdfaf3; border:1px solid var(--surface-border); border-radius:4px; padding:40px; display:flex; flex-direction:column; gap:20px; }
.about-visual .logo-wrapper { align-items:flex-start; }
.about-badge { display:inline-flex; align-items:center; gap:8px; background:var(--primary-color); color:#fff; padding:6px 14px; border-radius:4px; font-size:0.82rem; font-weight:600; width:fit-content; }

/* Form select */
.form-select { width:100%; padding:12px 16px; border-radius:4px; border:1px solid var(--surface-border); background:var(--surface-color); color:var(--text-main); outline:none; font-size:1rem; cursor:pointer; appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23555' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 16px center; }
.form-select:focus { border-color:var(--primary-color); }

/* WhatsApp float */
.whatsapp-float { position:fixed; bottom:90px; right:24px; z-index:9000; width:56px; height:56px; border-radius:50%; background:#25D366; display:flex; align-items:center; justify-content:center; box-shadow:0 4px 16px rgba(37,211,102,0.45); text-decoration:none; transition:transform 0.2s, box-shadow 0.2s; }
.whatsapp-float:hover { transform:scale(1.1); box-shadow:0 6px 24px rgba(37,211,102,0.55); }
.whatsapp-float svg { width:30px; height:30px; fill:white; }
.whatsapp-float::before { content:'Nous contacter'; position:absolute; right:66px; background:#1A1A1A; color:#fff; padding:6px 12px; border-radius:4px; font-size:0.78rem; font-weight:600; white-space:nowrap; opacity:0; transition:opacity 0.2s; pointer-events:none; }
.whatsapp-float:hover::before { opacity:1; }

@media (max-width:768px) {
  .process-steps { grid-template-columns:1fr; }
  .process-step:not(:last-child)::after { content:'↓'; right:50%; top:auto; bottom:-12px; transform:translateX(50%); }
  .about-grid { grid-template-columns:1fr; gap:32px; }
  /* Hero buttons stack */
  .hero-cta-group { flex-direction:column !important; align-items:center !important; }
  /* Stats : 2 colonnes sur mobile */
  .stats-grid { grid-template-columns:repeat(2, 1fr); }
  /* WhatsApp float plus petit sur mobile */
  .whatsapp-float { width:50px; height:50px; bottom:16px; right:16px; }
  .whatsapp-float svg { width:24px; height:24px; }
  .whatsapp-float::before { display:none; }
  /* Formulaire select pleine largeur */
  .form-select { width:100%; }
  /* Testimonials : désactiver le fade latéral sur très petit écran */
  .testimonials-outer { -webkit-mask-image:none; mask-image:none; }
  /* Legal content padding réduit */
  .legal-content { padding:40px 20px 60px; }
  /* Announcement bar plus petit */
  .announcement-bar { font-size:0.75rem; padding:8px 16px; }
}

@media (max-width:480px) {
  .stats-grid { grid-template-columns:repeat(2, 1fr); gap:12px; }
  .stat-number { font-size:2rem; }
  /* Cards services : full width */
  .card { padding:24px 20px; }
  /* Testimonial cards plus étroites */
  .testimonials-track .testimonial-card { width:280px; }
  /* Navbar : cacher btn Démarrer sur très petit écran, garder toggle */
  .navbar .btn-primary { display:none; }
}

/* Testimonials Infinite Scroll */
.testimonials-outer {
  overflow: hidden;
  position: relative;
  margin-top: 50px;
  /* fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}
.testimonials-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: reviews-scroll 55s linear infinite;
}
.testimonials-outer:hover .testimonials-track {
  animation-play-state: paused;
}
@keyframes reviews-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.testimonials-track .testimonial-card {
  width: 340px;
  flex-shrink: 0;
}

/* Legal pages */
.legal-content { max-width: 860px; margin: 0 auto; padding: 60px 32px 80px; }
.legal-content h1 { font-size: 2.4rem; margin-bottom: 8px; }
.legal-content .legal-date { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 48px; display: block; }
.legal-content h2 { font-size: 1.5rem; text-align: left; margin: 40px 0 12px; color: var(--primary-color); }
.legal-content h3 { font-size: 1.15rem; margin: 24px 0 8px; font-family: var(--font-sans); color: var(--text-main); }
.legal-content p { margin-bottom: 14px; font-size: 1rem; }
.legal-content ul { padding-left: 20px; margin-bottom: 14px; }
.legal-content ul li { margin-bottom: 8px; color: var(--text-muted); font-size: 1rem; }
.legal-content a { color: var(--primary-color); }
.legal-nav { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.legal-nav a { padding: 8px 16px; border: 1px solid var(--surface-border); border-radius: 4px; font-size: 0.9rem; color: var(--text-muted); text-decoration: none; transition: var(--transition); }
.legal-nav a:hover, .legal-nav a.active { border-color: var(--primary-color); color: var(--primary-color); }

@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; padding: 18px; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__btn--accept, .cookie-banner__btn--reject { flex: 1; text-align: center; }
}

/* Animations Reveal */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.6s ease-out forwards;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}
