/* Reset et variables */
:root {
  --primary-black: #000000;
  --primary-white: #FFFFFF;
  --accent-red: #CE3623;
  --accent-orange: #F4972B;
  --gray-50: #F9FAFB;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--primary-black);
  background: var(--primary-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 4rem 0;
  background: var(--primary-white);
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 6rem 0;
  }
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .hero-content {
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .hero-content {
    gap: 2.5rem;
    max-width: 1100px;
  }
}

@media (min-width: 1440px) {
  .hero-content {
    max-width: 1200px;
  }
}

.hero-logo {
  margin-bottom: 0.5rem;
}

.hero-logo .logo {
  height: 8rem;
  width: auto;
  object-fit: contain;
}

@media (min-width: 768px) {
  .hero-logo .logo {
    height: 10rem;
  }
}

@media (min-width: 1024px) {
  .hero-logo .logo {
    height: 11rem;
  }
}

@media (min-width: 1280px) {
  .hero-logo .logo {
    height: 12rem;
  }
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary-black);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

@media (min-width: 1280px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.hero-title-accent {
  color: var(--accent-red);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--gray-700);
  max-width: 700px;
  line-height: 1.6;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 1.125rem;
  }
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 500px;
  margin-top: 0.5rem;
}

@media (min-width: 640px) {
  .hero-cta {
    flex-direction: row;
    justify-content: center;
  }
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--accent-red);
  color: var(--primary-white);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background: rgba(206, 54, 35, 0.9);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}

.btn-primary:active {
  transform: scale(1);
}

.btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent-red), 0 0 0 4px rgba(206, 54, 35, 0.2);
}

.btn-secondary {
  border: 2px solid var(--primary-black);
  color: var(--primary-black);
  background: transparent;
}

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

.btn-secondary:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary-black), 0 0 0 4px rgba(0, 0, 0, 0.2);
}

.btn-full {
  width: 100%;
}

/* Services Section */
.services-section {
  padding: 4rem 0;
  background: var(--gray-50);
}

@media (min-width: 768px) {
  .services-section {
    padding: 6rem 0;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary-black);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-divider {
  width: 6rem;
  height: 0.25rem;
  background: var(--accent-orange);
  margin: 0 auto 2rem;
}

.section-description {
  color: var(--gray-700);
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--primary-white);
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border-color: var(--accent-red);
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-black);
  margin-bottom: 0.75rem;
}

.service-description {
  color: var(--gray-700);
  line-height: 1.75;
}

.zones-card {
  margin-top: 4rem;
  background: var(--primary-white);
  padding: 2rem;
  border-radius: 0.5rem;
  border: 1px solid var(--gray-200);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.zones-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.zones-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-black);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .zones-title {
    font-size: 1.875rem;
  }
}

.zones-divider {
  width: 4rem;
  height: 0.25rem;
  background: var(--accent-red);
  margin: 0 auto 1.5rem;
}

.zones-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.zone-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(206, 54, 35, 0.1);
  border-radius: 9999px;
  border: 1px solid var(--accent-red);
}

.zone-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent-red);
}

.zone-item span {
  color: var(--gray-700);
  font-weight: 500;
}

/* Réalisations Section */
.realisations-section {
  padding: 4rem 0;
  background: var(--primary-white);
}

@media (min-width: 768px) {
  .realisations-section {
    padding: 6rem 0;
  }
}

.realisations-list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.realisation-card {
  background: var(--gray-50);
  border-radius: 0.5rem;
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
}

@media (min-width: 768px) {
  .realisation-card {
    padding: 2rem;
  }
}

.realisation-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-black);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .realisation-title {
    font-size: 1.875rem;
  }
}

.realisation-description {
  color: var(--gray-700);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.realisation-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .realisation-images {
    grid-template-columns: repeat(3, 1fr);
  }
}

.realisation-image {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid var(--gray-200);
}

.realisation-image-placeholder {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(to bottom right, var(--gray-200), var(--gray-400));
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.realisation-image-placeholder span {
  color: var(--gray-500);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Contact Section */
.contact-section {
  padding: 4rem 0;
  background: var(--gray-50);
}

@media (min-width: 768px) {
  .contact-section {
    padding: 6rem 0;
  }
}

.contact-grid {
  max-width: 64rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.contact-info-card,
.contact-form-card {
  background: var(--primary-white);
  padding: 2rem;
  border-radius: 0.5rem;
  border: 1px solid var(--gray-200);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.contact-info-title,
.contact-form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-black);
  margin-bottom: 1.5rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.contact-icon-red {
  background: rgba(206, 54, 35, 0.1);
  color: var(--accent-red);
}

.contact-icon-orange {
  background: rgba(244, 151, 43, 0.1);
  color: var(--accent-orange);
}

.contact-info-label {
  font-weight: 600;
  color: var(--primary-black);
  margin-bottom: 0.25rem;
}

.contact-info-value {
  color: var(--gray-700);
}

.contact-info-value a {
  color: var(--gray-700);
}

.contact-info-value a:hover {
  color: var(--accent-red);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--accent-red);
}

.form-textarea {
  resize: none;
}

/* Footer */
.footer {
  background: var(--primary-white);
  color: var(--primary-black);
  padding: 2rem 0;
  border-top: 1px solid var(--gray-200);
}

.footer-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .footer-brand {
    margin-bottom: 0;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.footer-logo-img {
  height: 3rem;
  width: auto;
  object-fit: contain;
}

.footer-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-black);
}

.footer-text {
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray-700);
}

@media (min-width: 768px) {
  .footer-text {
    text-align: right;
  }
}

.footer-text p {
  margin-top: 0.5rem;
}

.footer-text p:first-child {
  margin-top: 0;
}

/* Bouton flottant "Me contacter" */
.floating-contact-btn {
  position: fixed;
  bottom: 1.5rem;
  z-index: 9000;
  display: none;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  border: none;
  background: var(--accent-red);
  color: var(--primary-white);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  animation: floatPulse 3s ease-in-out infinite;
}

@media (min-width: 768px) {
  .floating-contact-btn {
    right: 1.5rem;
    left: auto;
  }
}

@media (max-width: 767px) {
  .floating-contact-btn {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    animation: none;
    padding: 0.85rem 2.5rem;
    white-space: nowrap;
    font-size: 0.9rem;
  }
}

.floating-contact-btn.visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.floating-contact-btn:hover {
  background: rgba(206, 54, 35, 0.9);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .floating-contact-btn:hover {
    transform: translateY(-2px) scale(1.03);
  }
}

.floating-contact-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.floating-contact-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary-white), 0 0 0 4px var(--accent-red);
}

@keyframes floatPulse {
  0% {
    transform: translateY(0);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
  }
  50% {
    transform: translateY(-4px);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.3);
  }
  100% {
    transform: translateY(0);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
  }
}

/* Messages de formulaire */
@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

.form-message {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  color: white;
  font-weight: 500;
  z-index: 10000;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.3s ease;
  max-width: 400px;
}

.form-message-success {
  background: #10B981;
}

.form-message-error {
  background: #EF4444;
}

/* État du bouton désactivé */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}
