/* ==========================================================================
   THEME CSS - Réparation Toiture Saint-Cast-le-Guildo (Pure Flexbox, Responsive)
   ========================================================================== */

:root {
  --dark: #071523;
  --dark2: #0d2235;
  --orange: #ff6b00;
  --orange-hover: #e05e00;
  --red-phone: #dc2626;
  --red-phone-hover: #b91c1c;
  --soft: #f3f6f9;
  --soft-alt: #eef3f7;
  --text: #102238;
  --muted: #607087;
  --white: #ffffff;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(5, 24, 42, 0.14);
  --shadow-hover: 0 30px 80px rgba(5, 24, 42, 0.22);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Manrope', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  width: 100%;
}

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

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

.container {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Topbar
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--dark);
  color: #dce6ef;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 0;
}

.topbar-inner {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}

.topbar-inner i {
  color: var(--orange);
  margin-right: 6px;
}

/* --------------------------------------------------------------------------
   Header & Navigation (Flexbox Only)
   -------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(12, 34, 55, 0.08);
  padding: 12px 0;
}

.nav-container-flex {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.header-top-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand-block {
  display: flex;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--dark), #173a59);
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 9px 22px rgba(7, 21, 35, 0.18);
  flex-shrink: 0;
}

.brand-text strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
}

.brand-text span {
  display: block;
  font-size: 0.8rem;
  color: var(--orange);
  font-weight: 700;
}

.header-cta-block {
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-devis-header {
  padding: 10px 20px;
  font-size: 0.88rem;
}

/* Nav Menu Links */
.nav-menu {
  width: 100%;
  border-top: 1px solid #eef2f6;
  padding-top: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  padding: 6px 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link i {
  color: var(--orange);
  font-size: 0.85rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--dark);
  cursor: pointer;
  padding: 5px;
}

/* --------------------------------------------------------------------------
   Buttons & Badges
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff7a18, var(--orange));
  color: #fff;
  font-weight: 800;
  border: none;
  box-shadow: 0 12px 28px rgba(255, 107, 0, 0.23);
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 0.95rem;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(255, 107, 0, 0.35);
  background: var(--orange-hover);
  color: #fff;
}

.btn-small {
  padding: 10px 20px;
  font-size: 0.88rem;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
}

.btn-full {
  width: 100%;
}

/* Bouton Rouge Téléphone sous H1 */
.btn-phone-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--red-phone);
  color: #ffffff !important;
  font-size: 1.2rem;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.35);
  transition: all 0.25s ease;
  margin: 12px 0 20px 0;
  border: 2px solid #ffffff;
}

.btn-phone-red:hover {
  background: var(--red-phone-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.5);
}

.btn-phone-red i {
  font-size: 1.3rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* --------------------------------------------------------------------------
   Hero Section (Flexbox Layout)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 20% 10%, #173c5d 0, var(--dark) 44%, #040e18 100%);
  color: #fff;
  padding: 70px 0 80px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent);
}

.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 107, 0, 0.12);
  filter: blur(80px);
  right: -130px;
  top: -180px;
}

.hero-flex {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.hero-content {
  flex: 1 1 550px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  background: rgba(255, 107, 0, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 107, 0, 0.25);
}

.hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 18px 0 15px;
  font-weight: 800;
}

.hero h1 span {
  color: var(--orange);
}

.hero-phone-wrapper {
  display: flex;
  align-items: center;
}

.hero p {
  font-size: 1.05rem;
  color: #c1cfdb;
  max-width: 600px;
  margin-bottom: 25px;
}

.hero-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.trust-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: #d9e3ec;
  font-size: 0.88rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-item i {
  color: var(--orange);
}

.hero-visual {
  flex: 1 1 450px;
  position: relative;
  max-width: 550px;
}

.hero-visual img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.floating-card {
  position: absolute;
  left: -20px;
  bottom: 30px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  color: var(--text);
  padding: 16px 22px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 15px;
}

.float-icon {
  font-size: 2rem;
  color: var(--orange);
}

.floating-card strong {
  display: block;
  font-size: 1rem;
}

.floating-card span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Sections General Styling
   -------------------------------------------------------------------------- */
.section {
  padding: 90px 0;
}

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

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange);
  background: rgba(255, 107, 0, 0.08);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.badge-red {
  color: var(--red-phone);
  background: rgba(220, 38, 38, 0.08);
}

.section h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 8px 0 14px;
  color: var(--dark);
  font-weight: 800;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Services Flex Blocks (Alternating Layout)
   -------------------------------------------------------------------------- */
.flex-service-block {
  display: flex;
  align-items: center;
  gap: 50px;
  background: #ffffff;
  border: 1px solid #e5ebf0;
  border-radius: var(--radius);
  padding: 35px;
  box-shadow: 0 16px 50px rgba(9, 31, 52, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flex-service-block:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.flex-service-block.reverse {
  flex-direction: row-reverse;
}

.service-media {
  flex: 1 1 45%;
  overflow: hidden;
  border-radius: 18px;
}

.service-media img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-radius: 18px;
}

.flex-service-block:hover .service-media img {
  transform: scale(1.04);
}

.service-details {
  flex: 1 1 55%;
}

.service-num {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 0.12em;
}

.service-num-red {
  color: var(--red-phone);
}

.service-details h3 {
  font-size: 1.7rem;
  margin: 8px 0 14px;
  color: var(--dark);
  font-weight: 800;
  line-height: 1.25;
}

.service-details p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.feature-list i {
  color: var(--orange);
  font-size: 1.1rem;
  margin-top: 3px;
}

.margin-top-15 {
  margin-top: 15px;
}

/* --------------------------------------------------------------------------
   Emergency Section Special Box
   -------------------------------------------------------------------------- */
.emergency-section {
  background: #fff5f5;
  border-top: 2px solid rgba(220, 38, 38, 0.15);
  border-bottom: 2px solid rgba(220, 38, 38, 0.15);
}

.emergency-contact-box {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #ffffff;
  border: 2px solid var(--red-phone);
  padding: 18px 24px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.15);
  margin-bottom: 20px;
}

.pulse-icon {
  font-size: 2.2rem;
  color: var(--red-phone);
  animation: pulse 1.5s infinite;
}

.emergency-contact-box strong {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
}

.phone-link-big {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--red-phone);
}

.phone-link-big:hover {
  color: var(--red-phone-hover);
}

/* --------------------------------------------------------------------------
   Section Expertise (Flexbox)
   -------------------------------------------------------------------------- */
.expertise {
  background: var(--dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.expertise::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: #123a5d;
  filter: blur(120px);
  right: -250px;
  bottom: -300px;
  opacity: 0.55;
}

.expertise-flex {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.expertise-copy {
  flex: 1 1 50%;
}

.expertise-copy h2 {
  color: #fff;
}

.expertise-copy p {
  color: #bdcbd7;
  font-size: 1.05rem;
}

.stats-flex {
  display: flex;
  gap: 15px;
  margin-top: 35px;
  flex-wrap: wrap;
}

.stat-box {
  flex: 1 1 140px;
  padding: 20px 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.stat-box strong {
  display: block;
  font-size: 1.8rem;
  color: var(--orange);
  font-weight: 800;
}

.stat-box span {
  font-size: 0.8rem;
  color: #aebdca;
}

.expertise-panel {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.panel-card {
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-card span {
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 800;
}

.panel-card h3 {
  margin: 6px 0 8px;
  font-size: 1.25rem;
}

.panel-card p {
  margin: 0;
  color: #b8c6d1;
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   Contact Section (Flexbox Layout)
   -------------------------------------------------------------------------- */
.contact-section {
  background: #eef3f7;
}

.contact-flex {
  display: flex;
  gap: 30px;
  align-items: stretch;
}

.contact-card {
  flex: 1 1 50%;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-card h2 {
  font-size: 2.1rem;
  margin: 10px 0;
}

.contact-card > p {
  color: var(--muted);
  margin-bottom: 25px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--soft);
  border: 1px solid #e2e8f0;
}

.contact-icon {
  font-size: 1.3rem;
  color: var(--orange);
  width: 28px;
  text-align: center;
}

.contact-item span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
}

.contact-item strong {
  display: block;
  font-size: 1rem;
  color: var(--dark);
}

.contact-item strong a:hover {
  color: var(--orange);
}

.map-container {
  flex: 1 1 50%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 480px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
  background: #030b12;
  color: #dce6ef;
  padding: 35px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-brand .brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.footer-brand strong {
  display: block;
  font-size: 1.05rem;
  color: #fff;
}

.footer-brand p {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #bdcbd7;
}

.footer-links a:hover {
  color: var(--orange);
}

/* --------------------------------------------------------------------------
   Scroll Animations
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Responsive Media Queries (Pure Flex Adaptation)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-flex,
  .expertise-flex,
  .contact-flex {
    flex-direction: column;
  }

  .hero-visual, .map-container {
    width: 100%;
    max-width: 100%;
  }

  .flex-service-block,
  .flex-service-block.reverse {
    flex-direction: column;
    padding: 25px;
  }

  .service-media, .service-details {
    width: 100%;
  }

  .service-media img {
    height: 300px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    border-top: none;
    padding-top: 0;
  }

  .nav-menu.open {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    margin-top: 10px;
    border: 1px solid #e2e8f0;
  }

  .nav-link {
    width: 100%;
    padding: 8px 0;
  }
}

@media (max-width: 600px) {
  .topbar-inner {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 5px;
  }

  .hero {
    padding: 45px 0 60px;
  }

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

  .btn-phone-red {
    width: 100%;
    font-size: 1rem;
    padding: 12px 18px;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .floating-card {
    left: 10px;
    right: 10px;
    bottom: 15px;
  }

  .section {
    padding: 60px 0;
  }

  .contact-card {
    padding: 25px 20px;
  }

  .emergency-contact-box {
    flex-direction: column;
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
  }
}
.no-link {
    color: inherit !important;
    text-decoration: none !important;
    pointer-events: none;
}