/* ===== 1. RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

html, body {
  overflow-x: hidden;
}

/* ===== 2. CUSTOM PROPERTIES (4 COULEURS MAX) ===== */
:root {
  --color-bg: #f8fafc;
  --color-primary: #1e3a8a;      /* Bleu Rugby Pro */
  --color-accent: #dc2626;       /* Rouge Toulouse */
  --color-text: #0f172a;         /* Ardoise sombre */
  --color-text-muted: #64748b;
  --color-white: #ffffff;
  
  --max-width: 1100px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
}

/* ===== 3. TYPOGRAPHIE & BASE ===== */
h1, h2, h3 {
  line-height: 1.25;
  color: var(--color-primary);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.1rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--color-text);
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== 4. BOUTONS & TARGETS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: #172554;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background-color: #f1f5f9;
  transform: translateY(-2px);
}

.btn-whatsapp-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  padding: 0.85rem 1.5rem;
  background-color: #16a34a;
  color: var(--color-white);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-whatsapp-large:hover {
  background-color: #15803d;
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-phone-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  padding: 0.85rem 1.5rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-phone-large:hover {
  background-color: #172554;
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* ===== 5. HEADER / NAVBAR ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-weight: 900;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  letter-spacing: -0.05em;
  flex-shrink: 0;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}

.logo-text {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-primary);
  white-space: nowrap;
}

.badge-google {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #15803d;
  white-space: nowrap;
}

#main-nav {
  display: none;
}

#main-nav.open {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--color-white);
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-md);
}

#main-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#main-nav a {
  font-weight: 600;
  color: var(--color-text);
  font-size: 1.05rem;
  display: block;
  padding: 0.4rem 0;
}

#main-nav a:hover {
  color: var(--color-accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.4rem 0.8rem;
  background-color: #16a34a;
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
}

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.4rem 0.8rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  transition: all 0.2s ease;
}

/* ===== 6. HERO SECTION ===== */
.hero {
  padding: 2.5rem 0 3rem 0;
  background: linear-gradient(180deg, #ffffff 0%, var(--color-bg) 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background-color: rgba(30, 58, 138, 0.08);
  border: 1px solid rgba(30, 58, 138, 0.15);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  max-width: 65ch;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-trust {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
}

.trust-item svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.hero-image img {
  width: 100%;
  object-fit: cover;
}

.hero-caption {
  padding: 0.75rem 1rem;
  background-color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: center;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
}

/* ===== 7. BANNIÈRE RUGBY ===== */
.banner-rugby {
  padding: 3rem 0;
  background-color: var(--color-primary);
  color: var(--color-white);
}

.banner-inner {
  text-align: center;
}

.banner-rugby h2 {
  color: var(--color-white);
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.banner-badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.valeurs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  text-align: left;
}

.valeur-card {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.valeur-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.valeur-card h3 {
  color: var(--color-white);
  font-size: 1.15rem;
}

.valeur-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

/* ===== 8. SERVICES ===== */
.services-section {
  padding: 3.5rem 0;
}

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

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background-color: var(--color-white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(30, 58, 138, 0.2);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background-color: rgba(30, 58, 138, 0.08);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

/* ===== 9. RÉALISATIONS ===== */
.realisations-section {
  padding: 3.5rem 0;
  background-color: var(--color-white);
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.realisations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.realisation-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: var(--shadow-sm);
  background-color: var(--color-bg);
}

.realisation-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.realisation-card figcaption {
  padding: 1.25rem;
}

.realisation-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.realisation-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ===== 10. AVIS GOOGLE ===== */
.avis-section {
  padding: 3.5rem 0;
}

.google-rating-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1.25rem;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
}

.rating-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
}

.stars {
  color: #f59e0b;
  font-size: 1.25rem;
}

.rating-count {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.avis-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.avis-card {
  background-color: var(--color-white);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.avis-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.author-sub {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.avis-stars {
  margin-left: auto;
  color: #f59e0b;
}

.avis-body {
  font-style: italic;
  font-size: 0.98rem;
  margin-bottom: 1rem;
}

.owner-reply {
  padding: 0.85rem;
  background-color: rgba(30, 58, 138, 0.05);
  border-left: 3px solid var(--color-primary);
  border-radius: 4px;
  font-size: 0.88rem;
}

.owner-reply strong {
  color: var(--color-primary);
  display: block;
  margin-bottom: 0.25rem;
}

.owner-reply p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* ===== 11. ZONE & HOURS ===== */
.zone-section {
  padding: 3.5rem 0;
  background-color: var(--color-white);
  border-top: 1px solid rgba(15, 23, 42, 0.05);
}

.zone-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.villes-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  list-style: none;
  margin-top: 1rem;
}

.villes-list li {
  font-weight: 600;
  padding: 0.4rem 0.6rem;
  background-color: var(--color-bg);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.hours-card {
  background-color: var(--color-bg);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.hours-card h3 {
  margin-bottom: 1rem;
}

.hours-card ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.hours-card li {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.15);
  font-size: 0.95rem;
}

/* ===== 12. CONTACT SECTION ===== */
.contact-section {
  padding: 3.5rem 0;
  background-color: var(--color-bg);
}

.contact-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.contact-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
}

.card-whatsapp {
  border-top: 4px solid #16a34a;
}

.card-phone {
  border-top: 4px solid var(--color-primary);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.card-whatsapp .contact-icon {
  background-color: #dcfce7;
  color: #16a34a;
}

.card-phone .contact-icon {
  background-color: rgba(30, 58, 138, 0.1);
  color: var(--color-primary);
}

/* ===== 13. FOOTER ===== */
.site-footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 2.5rem 0 1.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-brand .logo-text {
  color: var(--color-white);
  font-size: 1.3rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.footer-contact a {
  color: var(--color-white);
  text-decoration: underline;
}

.footer-legal {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ===== 14. ANIMATIONS SCROLL ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

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

/* ===== 15. DESKTOP RESPONSIVE (@media min-width: 768px) ===== */
@media (min-width: 768px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.2rem; }
  
  .badge-google {
    display: inline-block;
  }
  
  .menu-toggle {
    display: none;
  }
  
  #main-nav {
    display: block !important;
    position: static;
    background: transparent;
    padding: 0;
    box-shadow: none;
    border: none;
  }
  
  #main-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
  }
  
  #main-nav a {
    white-space: nowrap;
    font-size: 0.95rem;
    padding: 0.25rem 0;
  }
  
  .hero {
    padding: 4rem 0 5rem 0;
  }
  
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
  }
  
  .hero-actions {
    flex-direction: row;
  }
  
  .hero-trust {
    flex-direction: row;
    gap: 1.5rem;
  }
  
  .valeurs-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .realisations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .avis-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .zone-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
  
  .contact-methods {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

/* ===== 16. MOBILE RESPONSIVE (@media max-width: 767px) ===== */
@media (max-width: 767px) {
  .btn-call span {
    display: none;
  }
  .btn-whatsapp span {
    display: none;
  }
  .header-actions {
    gap: 0.25rem;
  }
  .btn-call, .btn-whatsapp {
    padding: 0.4rem;
    min-width: 40px;
    height: 40px;
    justify-content: center;
  }
}
