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

body {
  font-family: 'Georgia', serif;
  line-height: 1.6;
  color: #333;
}

/* HERO */

.hero {
  background: linear-gradient(135deg, #C41E3A 0%, #E63946 50%, #F77F00 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.logo {
  max-width: 250px;
  height: auto;
  margin: 0 auto 30px;
  animation: fadeInDown 1s ease-out;
  display: block;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: pulse 15s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.3; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

h1 {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.tagline {
  font-size: 1.4em;
  margin-bottom: 10px;
  font-style: italic;
  color: #f0e6d2;
}

.hero-subtitle {
  font-size: 1.2em;
  margin: 20px 0;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #FCBF49 0%, #F77F00 100%);
  color: white;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
  background: linear-gradient(135deg, #F77F00 0%, #FCBF49 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(247, 127, 0, 0.4);
}

/* SECTIONS GÉNÉRALES */

.section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-alt {
  background: linear-gradient(135deg, #FFF5E6 0%, #FFE8CC 100%);
}

.section-text {
  max-width: 800px;
  margin: 40px auto 0;
  text-align: center;
  font-size: 1.05em;
}

.section-text.center {
  text-align: center;
}

h2 {
  font-size: 2.5em;
  color: #C41E3A;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #E63946 0%, #F77F00 100%);
}

/* SERVICES / FLIP CARDS */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.flip-card {
  background-color: transparent;
  perspective: 1000px;
  height: 400px;
  cursor: default;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

/* flip sur hover (desktop) */
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

/* flip sur clic (mobile / JS) */
.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.flip-card-front {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF5E6 100%);
  padding: 30px;
  border-top: 4px solid #E63946;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flip-card-back {
  background: linear-gradient(135deg, #C41E3A 0%, #E63946 50%, #F77F00 100%);
  color: white;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.service-icon {
  font-size: 3em;
  margin-bottom: 15px;
  filter: drop-shadow(2px 2px 4px rgba(196, 30, 58, 0.2));
}

.flip-card-front h3 {
  color: #C41E3A;
  margin-bottom: 15px;
  font-size: 1.5em;
}

/* BOUTON DÉCOUVRIR */

.discover-btn {
  margin-top: 20px;
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #FCBF49 0%, #F77F00 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.95em;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.discover-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(247, 127, 0, 0.4);
}

.discover-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* SLIDER DANS LA FACE ARRIÈRE */

.card-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 15px;
}

.card-slider .slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}

.card-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4em;
  z-index: 2;
  transition: background 0.2s ease, transform 0.2s ease;
}

.slider-btn.prev {
  left: 10px;
}

.slider-btn.next {
  right: 10px;
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.6);
  transform: translateY(-50%) scale(1.05);
}

.slider-btn:active {
  transform: translateY(-50%) scale(0.95);
}

/* VALEURS */

.values {
  background: #FFF8E7;
  color: #333;
  padding: 60px 20px;
  text-align: center;
}

.values h2 {
  color: #C41E3A;
}

.values h2::after {
  background: linear-gradient(90deg, #E63946 0%, #F77F00 100%);
}

.values-list {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.value-item {
  text-align: center;
  max-width: 220px;
  transition: transform 0.3s ease;
}

.value-item:hover {
  transform: scale(1.1);
}

.value-item .icon {
  font-size: 3em;
  margin-bottom: 15px;
  filter: drop-shadow(2px 2px 6px rgba(252, 191, 73, 0.4));
}

/* DEVIS */

.quote-cta {
  margin: 25px 0 10px;
}

/* CONTACT */

.contact {
  background: linear-gradient(135deg, #C41E3A 0%, #A01728 100%);
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.contact h2 {
  color: white;
}

.contact h2::after {
  background: linear-gradient(90deg, #FCBF49 0%, #F77F00 100%);
}

.contact-info {
  margin-top: 40px;
  font-size: 1.2em;
}

.contact-info a {
  color: #FFF;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
}

.contact-info a:hover {
  color: #F77F00;
  text-decoration: underline;
  transform: scale(1.05);
  display: inline-block;
}

.contact-item {
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.contact-item .icon {
  font-size: 1.5em;
}

.contact-quote {
  margin-top: 40px;
  font-size: 1.3em;
  font-style: italic;
}

/* FOOTER */

footer {
  background: linear-gradient(135deg, #7D1520 0%, #5A0E15 100%);
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
}

/* RESPONSIVE */

@media (max-width: 768px) {
  h1 {
    font-size: 2.5em;
  }

  .tagline {
    font-size: 1.1em;
  }

  h2 {
    font-size: 2em;
  }

  .values-list {
    gap: 30px;
  }

  .flip-card {
    height: 360px;
  }
}

.discover-btn {
  display: none;
}

/* Appareils sans hover et pointeur grossier (mobile/tablette tactiles) */
@media (hover: none) and (pointer: coarse) {
  .discover-btn {
    display: inline-block;
  }
}
