/*
Theme Name:   Kadence ROF
Theme URI:    https://osteopathie.org/
Description:  Thème enfant Kadence pour le Registre des Ostéopathes de France — design moderne, épuré, professionnel.
Author:       ROF
Author URI:   https://osteopathie.org/
Template:     kadence
Version:      1.0.0
Text Domain:  kadence-rof
Tags:         health, professional, directory, french
*/

/* ==========================================================================
   ROF — Variables globales
   ========================================================================== */
:root {
  /* Palette principale */
  --rof-bleu:         #1B4F72;   /* Bleu profond — confiance, sérieux */
  --rof-bleu-clair:   #2E86AB;   /* Bleu vif — accents, liens */
  --rof-vert:         #2ECC71;   /* Vert — validation, label DO */
  --rof-ardoise:      #2C3E50;   /* Ardoise — textes sombres */
  --rof-gris-clair:   #F4F6F8;   /* Fond sections alternées */
  --rof-gris-medium:  #8492A6;   /* Textes secondaires */
  --rof-blanc:        #FFFFFF;
  --rof-or:           #D4A843;   /* Accent — label, badges premium */

  /* Typographie */
  --rof-font-titre:   'Inter', 'Segoe UI', sans-serif;
  --rof-font-corps:   'Inter', 'Segoe UI', sans-serif;

  /* Espacements */
  --rof-radius:       8px;
  --rof-radius-lg:    16px;
  --rof-shadow:       0 4px 24px rgba(27, 79, 114, 0.10);
  --rof-shadow-hover: 0 8px 40px rgba(27, 79, 114, 0.18);

  /* Transitions */
  --rof-transition:   all 0.25s ease;
}

/* ==========================================================================
   Typography
   ========================================================================== */
body {
  font-family: var(--rof-font-corps);
  color: var(--rof-ardoise);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--rof-font-titre);
  font-weight: 700;
  line-height: 1.25;
  color: var(--rof-bleu);
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

a {
  color: var(--rof-bleu-clair);
  text-decoration: none;
  transition: var(--rof-transition);
}
a:hover { color: var(--rof-bleu); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header,
#masthead {
  background: var(--rof-blanc) !important;
  border-bottom: 1px solid rgba(27, 79, 114, 0.08);
  box-shadow: 0 2px 12px rgba(27, 79, 114, 0.06);
}

.site-branding .site-title a {
  color: var(--rof-bleu) !important;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

/* Navigation principale */
.main-navigation a,
.kadence-navigation a {
  color: var(--rof-ardoise) !important;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  padding: 0.5rem 0.75rem;
  transition: var(--rof-transition);
}

.main-navigation a:hover,
.kadence-navigation a:hover {
  color: var(--rof-bleu-clair) !important;
}

/* Mega menu dropdown */
.sub-menu {
  border-top: 3px solid var(--rof-bleu-clair) !important;
  border-radius: 0 0 var(--rof-radius) var(--rof-radius);
  box-shadow: var(--rof-shadow);
}

/* ==========================================================================
   Boutons
   ========================================================================== */
.wp-block-button__link,
.button,
button[type="submit"],
.wpcf7-submit {
  background: var(--rof-bleu-clair) !important;
  color: var(--rof-blanc) !important;
  border-radius: var(--rof-radius) !important;
  border: none !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  padding: 0.75rem 1.75rem !important;
  letter-spacing: 0.02em;
  transition: var(--rof-transition) !important;
  box-shadow: 0 4px 14px rgba(46, 134, 171, 0.30) !important;
}

.wp-block-button__link:hover,
.button:hover,
button[type="submit"]:hover {
  background: var(--rof-bleu) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 79, 114, 0.35) !important;
}

/* Bouton outline */
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--rof-bleu-clair) !important;
  border: 2px solid var(--rof-bleu-clair) !important;
  box-shadow: none !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--rof-bleu-clair) !important;
  color: var(--rof-blanc) !important;
}

/* ==========================================================================
   Sections alternées
   ========================================================================== */
.rof-section {
  padding: clamp(3rem, 6vw, 6rem) 0;
}

.rof-section--dark {
  background: var(--rof-bleu);
  color: var(--rof-blanc);
}
.rof-section--dark h1,
.rof-section--dark h2,
.rof-section--dark h3 {
  color: var(--rof-blanc);
}

.rof-section--light {
  background: var(--rof-gris-clair);
}

/* ==========================================================================
   Cards
   ========================================================================== */
.rof-card {
  background: var(--rof-blanc);
  border-radius: var(--rof-radius-lg);
  padding: 2rem;
  box-shadow: var(--rof-shadow);
  transition: var(--rof-transition);
  border: 1px solid rgba(27, 79, 114, 0.06);
}

.rof-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--rof-shadow-hover);
}

/* ==========================================================================
   Annuaire GeoDirectory
   ========================================================================== */
.geodir-content,
.geodir-listing {
  font-family: var(--rof-font-corps);
}

.geodir-listing-item {
  border-radius: var(--rof-radius-lg) !important;
  box-shadow: var(--rof-shadow) !important;
  border: 1px solid rgba(27, 79, 114, 0.08) !important;
  transition: var(--rof-transition);
}

.geodir-listing-item:hover {
  box-shadow: var(--rof-shadow-hover) !important;
  transform: translateY(-2px);
}

.geodir-listing-item .geodir-post-title a {
  color: var(--rof-bleu) !important;
  font-weight: 600;
}

/* Barre de recherche GeoDirectory */
.geodir-search-widget .geodir-search-input,
.geodir-search-widget select {
  border: 2px solid rgba(27, 79, 114, 0.15) !important;
  border-radius: var(--rof-radius) !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  transition: var(--rof-transition);
}

.geodir-search-widget .geodir-search-input:focus,
.geodir-search-widget select:focus {
  border-color: var(--rof-bleu-clair) !important;
  box-shadow: 0 0 0 3px rgba(46, 134, 171, 0.15) !important;
  outline: none !important;
}

/* ==========================================================================
   Badge Label DO MROF
   ========================================================================== */
.rof-badge-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, var(--rof-or), #E8BB5A);
  color: #5a3800;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(212, 168, 67, 0.4);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.rof-hero {
  background: linear-gradient(135deg, var(--rof-bleu) 0%, var(--rof-bleu-clair) 100%);
  color: var(--rof-blanc);
  padding: clamp(4rem, 8vw, 8rem) 0;
  position: relative;
  overflow: hidden;
}

.rof-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.rof-hero h1 {
  color: var(--rof-blanc);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.rof-hero p {
  color: rgba(255,255,255,0.85);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 600px;
}

/* Barre de recherche Hero */
.rof-hero-search {
  background: var(--rof-blanc);
  border-radius: var(--rof-radius-lg);
  padding: 0.5rem;
  display: flex;
  gap: 0.5rem;
  max-width: 600px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.rof-hero-search input {
  border: none !important;
  flex: 1;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  border-radius: var(--rof-radius) !important;
  background: transparent !important;
}

.rof-hero-search input:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* ==========================================================================
   Stats bar
   ========================================================================== */
.rof-stats-bar {
  background: var(--rof-blanc);
  border-radius: var(--rof-radius-lg);
  box-shadow: var(--rof-shadow);
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.rof-stat-item .rof-stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--rof-bleu);
  line-height: 1;
  display: block;
}

.rof-stat-item .rof-stat-label {
  font-size: 0.85rem;
  color: var(--rof-gris-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
  display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer,
#colophon {
  background: var(--rof-ardoise) !important;
  color: rgba(255,255,255,0.75);
  border-top: 4px solid var(--rof-bleu-clair);
}

.site-footer a,
#colophon a {
  color: rgba(255,255,255,0.85) !important;
  transition: var(--rof-transition);
}

.site-footer a:hover,
#colophon a:hover {
  color: var(--rof-blanc) !important;
}

.site-footer h3,
.site-footer h4,
#colophon h3,
#colophon h4 {
  color: var(--rof-blanc) !important;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .rof-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .rof-hero-search {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .rof-stats-bar {
    grid-template-columns: 1fr 1fr;
  }
}
