/* ===== V2 Modern Design ===== */

:root {
  --primary: #2d6a6a;
  --primary-dark: #1e4d4d;
  --primary-light: #3a8585;
  --accent: #d4813b;
  --accent-hover: #be7030;
  --bg: #fafaf8;
  --bg-alt: #f0efeb;
  --dark: #1a2332;
  --dark-light: #2a3444;
  --text: #444;
  --text-light: #777;
  --white: #fff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --transition: 0.3s ease;
  --container: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

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

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--dark);
  line-height: 1.2;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,129,59,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--dark);
}

.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-dark:hover {
  background: var(--primary);
  color: var(--white);
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 10px rgba(0,0,0,0.06);
  transition: all var(--transition);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img { height: 70px; width: auto; }

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-logo-text strong {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  color: var(--dark);
}

.nav-logo-text small {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 400;
  letter-spacing: 0.03em;
}

.nav-logo:hover .nav-logo-text strong { color: var(--primary); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-links a {
  padding: 10px 20px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(45,106,106,0.08);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slider,
.hero-swiper {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slider .swiper-slide img,
.hero-swiper .swiper-slide img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,35,50,0.75) 0%, rgba(45,106,106,0.55) 100%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay .container {
  text-align: center;
  color: var(--white);
}

.hero-overlay h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white);
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-overlay p {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  opacity: 0.9;
  margin-bottom: 24px;
}

.hero-overlay .btn {
  margin: 0 8px;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
  max-width: 800px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white);
  margin-bottom: 16px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-content .hero-sub {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  opacity: 0.9;
  margin-bottom: 12px;
  font-weight: 300;
}

.hero-content .hero-tagline {
  font-size: 1rem;
  opacity: 0.75;
  margin-bottom: 40px;
}

.hero-content .btn { margin: 0 8px; }

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--white);
  opacity: 0.6;
  animation: bounce 2s infinite;
  font-size: 1.5rem;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== Sections ===== */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-dark {
  background: var(--dark);
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}

.section-dark .section-header h2 { color: var(--white); }

.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.section-dark .section-header p { color: rgba(255,255,255,0.7); }

.section-header .accent-line {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 20px auto 0;
  border-radius: 2px;
}

/* ===== About / Presentation ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-text h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.95rem;
}

.about-feature::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f00c";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(45,106,106,0.1);
  color: var(--primary);
  border-radius: 50%;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card-icon {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(45,106,106,0.06) 0%, rgba(45,106,106,0.12) 100%);
  font-size: 3.5rem;
  color: var(--primary);
  transition: all 0.4s ease;
}

.service-card:hover .service-card-icon {
  color: var(--accent);
  transform: scale(1.05);
}

.service-card-img {
  height: 220px;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-img img {
  transform: scale(1.08);
}

.service-card-body {
  padding: 28px;
}

.service-card-body h3,
.service-card > h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.service-card > h3 {
  padding: 20px 28px 0;
}

.service-card-body p,
.service-card > p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

.service-card > p {
  padding: 0 28px 28px;
}

/* ===== Portfolio / Realisations ===== */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.portfolio-filters button {
  padding: 10px 24px;
  border: 2px solid var(--bg-alt);
  background: var(--white);
  color: var(--text);
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.portfolio-filters button:hover,
.portfolio-filters button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-item {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.portfolio-item-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.portfolio-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-item-img img {
  transform: scale(1.08);
}

.portfolio-item-img .overlay {
  position: absolute;
  inset: 0;
  background: rgba(45,106,106,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.portfolio-item:hover .portfolio-item-img .overlay {
  opacity: 1;
}

.overlay-text {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 24px;
  border: 2px solid var(--white);
  border-radius: 50px;
}

.portfolio-item-body {
  padding: 20px 24px;
}

.portfolio-item-body h3 {
  font-size: 1.05rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

/* ===== Gallery (chantier) ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ===== Prestations ===== */
.presta-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 80px;
}

.presta-block.reverse,
.presta-block.presta-reverse { direction: rtl; }
.presta-block.reverse > *,
.presta-block.presta-reverse > * { direction: ltr; }

.presta-image,
.presta-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.presta-image img,
.presta-img img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.presta-text h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.presta-text p {
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 1.15rem;
  opacity: 0.85;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Testimonials ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-card::before {
  content: "\201C";
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
  position: absolute;
  top: 16px;
  left: 24px;
}

.testimonial-stars {
  color: #f5a623;
  margin-bottom: 16px;
  font-size: 1rem;
}

.testimonial-stars i {
  margin-right: 2px;
}

.testimonial-card p {
  font-style: italic;
  line-height: 1.8;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.testimonial-card strong {
  display: block;
  margin-top: 16px;
  color: var(--dark);
  font-size: 0.95rem;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-form h3,
.contact-info h3 {
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0ddd8;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: var(--white);
}

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

.form-group textarea {
  height: 150px;
  resize: vertical;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(45,106,106,0.1);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-item p {
  line-height: 1.6;
}

.contact-info-item strong {
  display: block;
  color: var(--dark);
  margin-bottom: 4px;
}

.contact-map {
  margin-top: 30px;
  border-radius: var(--radius);
  overflow: hidden;
  height: 300px;
  box-shadow: var(--shadow);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== Page Header ===== */
.page-header {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
  padding: 140px 0 60px;
  text-align: center;
  color: var(--white);
}

.page-header h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.page-header p {
  font-size: 1.15rem;
  opacity: 0.75;
}

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  height: 60px;
  width: auto;
  margin-bottom: 16px;
}

.footer h4 {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer ul {
  list-style: none;
}

.footer ul li { margin-bottom: 10px; }

.footer ul a {
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}

.footer ul a:hover { color: var(--white); }

.footer a { color: rgba(255,255,255,0.65); }
.footer a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.85rem;
  
}

.footer-credits {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-credits img {
  height: 44px;
  width: auto;
  opacity: 1;
  transition: opacity var(--transition);
}

.footer-credits img:hover { opacity: 1; }

.footer-admin {
  text-align: center;
  margin-top: 20px;
  opacity: 0.25;
  font-size: 0.7rem;
}

.footer-admin a {
  color: rgba(255,255,255,0.4);
}

.footer-admin a:hover {
  color: rgba(255,255,255,0.7);
}

/* ===== CTA Section (alias for cta-banner) ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}

.cta-section h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.15rem;
  opacity: 0.85;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Slider caption on hero ===== */
.swiper-slide-caption {
  position: absolute;
  bottom: 80px;
  left: 40px;
  z-index: 3;
  background: rgba(0,0,0,0.5);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  backdrop-filter: blur(5px);
}

/* ===== Error label (contact form) ===== */
.error-label { color: var(--accent); font-style: italic; font-size: 0.85rem; }

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .about-grid,
  .presta-block,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .presta-block.reverse,
  .presta-block.presta-reverse { direction: ltr; }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  }

  .nav-links.open { display: flex; }

  .nav-logo img { height: 56px; }
  .nav-logo-text small { display: none; }
  .nav-logo-text strong { font-size: 1.05rem; }

  .nav-links a {
    padding: 14px 20px;
    font-size: 1rem;
  }

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

  .hero-content h1 { font-size: 2.2rem; }

  .section { padding: 60px 0; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .about-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .portfolio-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-filters {
    gap: 8px;
  }

  .portfolio-filters button {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .hero-content .btn {
    display: block;
    margin: 8px auto;
    max-width: 250px;
  }
}
