/* =============================================================
   ExcelDent — Homepage CSS  (chargé uniquement sur la home)
   ============================================================= */

:root {
  --exc-blue      : #0b4f8a;
  --exc-blue-dark : #083d6e;
  --exc-bg-light  : #f5f7fa;
  --exc-border    : #dde5f0;
  --exc-text      : #1a2233;
  --exc-muted     : #5a6a7a;
  --exc-subtle    : #9aabbc;
  --exc-warm-bg   : #fdf9f4;
}

#exceldent-home { background: var(--exc-bg-light); }

/* CONTENEUR GLOBAL */
.exc-container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }


/* ═══════════════════════════════════════════════════
   1. HERO
═══════════════════════════════════════════════════ */
.exc-hero { background: var(--exc-blue); overflow: hidden; }

.exc-hero-inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  min-height: 360px;
  align-items: center;
}

.exc-hero-text {
  padding: 48px 40px 48px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.exc-hero-kicker {
  font-size: 11px;
  font-weight: 600;
  color: #7ec8f5;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 12px;
}

.exc-hero-title {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 16px;
}

.exc-hero-desc {
  font-size: 15px;
  color: #a8c8e8;
  line-height: 1.65;
  margin-bottom: 26px;
  max-width: 480px;
}

.exc-hero-cta {
  display: inline-block;
  background: #fff;
  color: var(--exc-blue);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 6px;
  text-decoration: none;
  align-self: flex-start;
  transition: opacity .15s;
}
.exc-hero-cta:hover { opacity: .88; text-decoration: none; }

/* Carte diagnostic */
.exc-diag-card {
  background: #fff;
  border-radius: 14px;
  padding: 26px 24px;
  margin: 28px 0 28px 20px;
  box-shadow: 0 6px 28px rgba(0,0,0,.18);
  overflow: hidden;
  box-sizing: border-box;
}

/* Formulaire de diagnostic — pas de débordement */
#exc-diag-form {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.exc-diag-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--exc-blue);
  margin-bottom: 4px;
}

.exc-diag-sub {
  font-size: 12px;
  color: var(--exc-subtle);
  margin-bottom: 16px;
}

.exc-diag-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.exc-diag-btn {
  background: #f0f5fa;
  border: 1px solid #c8d8eb;
  border-radius: 8px;
  padding: 10px 8px;
  font-size: 12px;
  color: #2d3f5a;
  cursor: pointer;
  text-align: center;
  transition: .15s;
  font-family: inherit;
  width: 100%;
}
.exc-diag-btn:hover,
.exc-diag-btn.on {
  background: #deeefa;
  border-color: var(--exc-blue);
  color: var(--exc-blue);
  font-weight: 600;
}

.exc-diag-submit {
  text-transform: none !important;
  width: 100%;
  background: var(--exc-blue);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.exc-diag-submit:hover { background: var(--exc-blue-dark); }


/* ═══════════════════════════════════════════════════
   2. RÉASSURANCE
═══════════════════════════════════════════════════ */
.exc-rea {
  background: #fff;
  border-bottom: 1px solid var(--exc-border);
  padding: 16px 0;
}

.exc-rea-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.exc-rea-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.exc-rea-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.exc-rea-item strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--exc-text);
}

.exc-rea-item span {
  font-size: 11px;
  color: var(--exc-subtle);
}

.exc-rea-sep {
  width: 1px;
  height: 34px;
  background: var(--exc-border);
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════
   3. PHILOSOPHIE
═══════════════════════════════════════════════════ */
.exc-philo {
  background: var(--exc-warm-bg);
  padding: 64px 0;
  border-top: 1px solid #ede8e0;
  border-bottom: 1px solid #ede8e0;
}

.exc-philo-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* Grille de 4 cases colorées */
.exc-ph-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.exc-ph-img-grid .exc-ph-placeholder {
  height: 150px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.exc-ph-kicker {
  font-size: 11px;
  font-weight: 600;
  color: #b07040;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 14px;
}

.exc-ph-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--exc-text);
  line-height: 1.3;
  margin-bottom: 16px;
}

.exc-ph-body {
  font-size: 14px;
  color: var(--exc-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.exc-ph-quote {
  border-left: 3px solid var(--exc-blue);
  padding: 12px 18px;
  background: rgba(11,79,138,.06);
  border-radius: 0 8px 8px 0;
  margin: 0 0 20px;
  font-size: 14px;
  font-style: italic;
  color: #3a4f6a;
  line-height: 1.6;
}

.exc-ph-link {
  font-size: 13px;
  color: var(--exc-blue);
  text-decoration: none;
  font-weight: 600;
}
.exc-ph-link:hover { text-decoration: underline; }


/* ═══════════════════════════════════════════════════
   4. THÉMATIQUES
═══════════════════════════════════════════════════ */
.exc-themes {
  background: #fff;
  padding: 64px 0;
  border-bottom: 1px solid var(--exc-border);
}

.exc-themes-inner { }

.exc-section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--exc-text);
  text-align: center;
  margin-bottom: 8px;
}

.exc-section-sub {
  font-size: 14px;
  color: var(--exc-subtle);
  text-align: center;
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.exc-themes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.exc-theme-card {
  border-radius: 18px;
  padding: 30px 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform .15s, box-shadow .15s;
  min-height: 160px;
}
.exc-theme-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,.14);
  text-decoration: none;
}

.exc-theme-icon { font-size: 30px; margin-bottom: 14px; display: block; }
.exc-theme-name { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 6px; display: block; }
.exc-theme-desc { font-size: 12px; color: rgba(255,255,255,.85); line-height: 1.55; }

.exc-theme-dentaire    { background: linear-gradient(135deg, #1a6fc4 0%, #5aabdc 100%); }
.exc-theme-bien-etre   { background: linear-gradient(135deg, #169e6a 0%, #3ecc90 100%); }
.exc-theme-medicaments { background: linear-gradient(135deg, #b02e90 0%, #e06ab8 100%); }
.exc-theme-nutrition   { background: linear-gradient(135deg, #c87c0a 0%, #f0b030 100%); }
.exc-theme-prevention  { background: linear-gradient(135deg, #198a3e 0%, #40c870 100%); }
.exc-theme-symptomes   { background: linear-gradient(135deg, #c02818 0%, #e85848 100%); }


/* ═══════════════════════════════════════════════════
   5. DOSSIERS
═══════════════════════════════════════════════════ */
.exc-doss { padding: 64px 0 0; background: var(--exc-bg-light); }
.exc-doss-inner { }

.exc-doss-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.exc-dos-card {
  background: #fff;
  border: 1px solid var(--exc-border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s, border-color .15s;
}
.exc-dos-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.09);
  border-color: #9ab8d8;
  text-decoration: none;
}

.exc-dos-thumb {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.exc-dos-thumb img { width: 100%; height: 100%; object-fit: cover; }
.exc-dos-placeholder { font-size: 3.5rem; }

.exc-dos-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

/* Badge catégorie — partagé entre dossiers et articles */
.exc-art-cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 3px 9px;
  border-radius: 4px;
  align-self: flex-start;
}

.exc-dos-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--exc-text);
  line-height: 1.4;
}

.exc-dos-desc {
  font-size: 13px;
  color: var(--exc-muted);
  line-height: 1.55;
  flex: 1;
}

.exc-dos-cta {
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
}


/* ═══════════════════════════════════════════════════
   6. ARTICLES
═══════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════
   6. ARTICLES — 3 colonnes × 4 lignes
═══════════════════════════════════════════════════ */
.exc-arts { padding: 48px 0 0; background: var(--exc-bg-light) !important; }
.exc-arts-inner { }

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

.exc-art-card {
  background: #fff !important;
  border: 1px solid var(--exc-border) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  display: block !important;
  text-decoration: none !important;
  transition: transform .25s cubic-bezier(.2,.8,.3,1), box-shadow .25s ease !important;
  position: relative !important;
}

/* Barre bleue glissante au survol */
.exc-art-card::before {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important; left: 0 !important; right: 0 !important;
  height: 3px !important;
  background: linear-gradient(90deg, #0b4f8a, #3a9ed8) !important;
  transform: scaleX(0) !important;
  transform-origin: left center !important;
  transition: transform .3s cubic-bezier(.4,0,.2,1) !important;
  z-index: 2 !important;
}

.exc-art-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 36px rgba(11,79,138,.14) !important;
  border-color: transparent !important;
  text-decoration: none !important;
}

.exc-art-card:hover::before { transform: scaleX(1) !important; }

.exc-art-thumb-link { display: block !important; overflow: hidden !important; }

.exc-art-thumb {
  height: 210px !important;
  min-height: 210px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

.exc-art-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform .4s cubic-bezier(.2,.8,.3,1) !important;
}

.exc-art-card:hover .exc-art-thumb img { transform: scale(1.07) !important; }

.exc-art-body { padding: 16px 18px 18px !important; }

.exc-art-title {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--exc-text) !important;
  line-height: 1.42 !important;
  margin: 8px 0 10px !important;
}
.exc-art-title a { color: inherit !important; text-decoration: none !important; }
.exc-art-title a:hover { color: var(--exc-blue) !important; }

.exc-art-card:hover .exc-art-title a { color: var(--exc-blue) !important; }

.exc-art-meta {
  font-size: 12px !important;
  color: var(--exc-subtle) !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
}

.exc-arts-more {
  text-align: center !important;
  margin-top: 40px !important;
  padding-bottom: 72px !important;
}

.exc-btn-outline {
  display: inline-block !important;
  border: 2px solid var(--exc-blue) !important;
  color: var(--exc-blue) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 12px 32px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  transition: .2s !important;
}
.exc-btn-outline:hover {
  background: var(--exc-blue) !important;
  color: #fff !important;
  text-decoration: none !important;
}

.exc-no-posts {
  text-align: center !important;
  color: var(--exc-muted) !important;
  padding: 40px 0 !important;
  grid-column: 1 / -1 !important;
}


/* ═══════════════════════════════════════════════════
   7. NEWSLETTER
═══════════════════════════════════════════════════ */
.exc-nl { background: var(--exc-blue); padding: 64px 0; }

.exc-nl-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.exc-nl-kicker {
  font-size: 11px;
  font-weight: 600;
  color: #7ec8f5;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 12px;
}

.exc-nl-title {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 12px;
}

.exc-nl-desc {
  font-size: 14px;
  color: #a8c8e8;
  line-height: 1.65;
  margin-bottom: 20px;
}

.exc-nl-perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.exc-nl-perks li {
  font-size: 13px;
  color: #c8e4f8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.exc-nl-form-wrap {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px;
  padding: 32px;
}

.exc-nl-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exc-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.exc-nl-form input {
  width: 100%;
  font-size: 14px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-family: inherit;
  box-sizing: border-box;
}
.exc-nl-form input::placeholder { color: rgba(255,255,255,.45); }
.exc-nl-form input:focus { outline: 2px solid rgba(255,255,255,.4); outline-offset: 0; }

.exc-nl-submit {
  width: 100%;
  background: #fff;
  color: var(--exc-blue);
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .15s;
  margin-top: 2px;
}
.exc-nl-submit:hover { opacity: .9; }

.exc-nl-legal {
  font-size: 11px;
  color: rgba(255,255,255,.4);
  text-align: center;
}
.exc-nl-legal a { color: rgba(255,255,255,.6); }


/* ═══════════════════════════════════════════════════
   8. CONTACT
═══════════════════════════════════════════════════ */
.exc-contact {
  background: #fff;
  border-top: 1px solid var(--exc-border);
  padding: 64px 0;
}

.exc-contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.exc-ct-kicker {
  font-size: 11px;
  font-weight: 600;
  color: #b07040;
  text-transform: uppercase;
  letter-spacing: .14em;
  margin-bottom: 12px;
}

.exc-ct-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--exc-text);
  margin-bottom: 12px;
}

.exc-ct-desc {
  font-size: 14px;
  color: var(--exc-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.exc-ct-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exc-ct-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--exc-border);
  border-radius: 10px;
  background: #f8fafc;
  transition: border-color .15s;
}
.exc-ct-list li:hover { border-color: var(--exc-blue); }

.exc-ct-icon { font-size: 22px; flex-shrink: 0; margin-top: 1px; }

.exc-ct-list strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--exc-text);
  margin-bottom: 3px;
}

.exc-ct-list span,
.exc-ct-list a {
  font-size: 12px;
  color: var(--exc-muted);
  text-decoration: none;
}
.exc-ct-list a:hover { color: var(--exc-blue); }

.exc-ct-form-wrap {
  background: #f3f7fc;
  border-radius: 14px;
  padding: 28px;
  border: 1px solid var(--exc-border);
}

.exc-ct-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exc-ct-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.exc-ct-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.exc-ct-field label {
  font-size: 12px;
  color: var(--exc-muted);
  font-weight: 500;
}

.exc-ct-form input,
.exc-ct-form textarea {
  width: 100%;
  font-size: 13px;
  padding: 10px 14px;
  border: 1px solid #c8d8eb;
  border-radius: 8px;
  background: #fff;
  color: var(--exc-text);
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color .15s;
}
.exc-ct-form input:focus,
.exc-ct-form textarea:focus {
  border-color: var(--exc-blue);
  outline: none;
}

.exc-ct-form textarea { height: 106px; resize: vertical; }

.exc-ct-submit {
  background: var(--exc-blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  transition: background .15s;
}
.exc-ct-submit:hover { background: var(--exc-blue-dark); }


/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .exc-hero-inner      { grid-template-columns: 1fr; }
  .exc-diag-card       { display: none; }
  .exc-hero-text       { padding: 40px 0; }
  .exc-philo-inner     { grid-template-columns: 1fr; }
  .exc-ph-imgs         { display: none; }
  .exc-themes-grid     { grid-template-columns: repeat(2, 1fr); }
  .exc-doss-grid       { grid-template-columns: repeat(2, 1fr); }
  .exc-arts-grid       { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }
  .exc-nl-inner        { grid-template-columns: 1fr; }
  .exc-contact-inner   { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .exc-rea-sep         { display: none; }
  .exc-rea-inner       { justify-content: flex-start; gap: 18px; }
  .exc-themes-grid     { grid-template-columns: 1fr 1fr; }
  .exc-doss-grid       { grid-template-columns: 1fr; }
  .exc-arts-grid       { grid-template-columns: 1fr 1fr; }
  .exc-ct-row          { grid-template-columns: 1fr; }
  .exc-section-title   { font-size: 22px; }
  .exc-hero-title      { font-size: 26px; }
}


/* ═══════════════════════════════════════════════════
   MASQUAGE DU BANDEAU PAR DÉFAUT DE SMARTMAG
   (zone featured / page header injectée par get_header)
═══════════════════════════════════════════════════ */
.home .featured-area,
.home .bunyad-featured-area,
.home .page-header,
.home .page-hero,
.home .content-header,
.home .entry-header,
.home .th-featured,
.home .hero-area,
.home .site-featured,
.home #page-header,
.home .block-featured-image,
.home .tc-smart-header { display: none !important; }

/* Supprimer les marges/padding génériques SmartMag sur la homepage */
.home #content,
.home .site-content,
.home .main-content,
.home #main { padding: 0 !important; margin: 0 !important; max-width: none !important; }

.home .content-area,
.home .wrap,
.home .container { max-width: none !important; padding: 0 !important; margin: 0 !important; }

/* Empêcher le float/sidebar layout de SmartMag sur la home */
.home #primary,
.home #secondary { width: 100% !important; float: none !important; margin: 0 !important; padding: 0 !important; }


/* ═══════════════════════════════════════════════════
   CORRECTIONS DE HAUTEUR (protection contre le thème parent)
═══════════════════════════════════════════════════ */
.exc-dos-thumb { height: 140px !important; min-height: 140px !important; }
.exc-ph-placeholder { height: 150px !important; min-height: 150px !important; }

/* Force la grille articles sur 4 colonnes même si SmartMag tente de la réécrire */
@media (min-width: 901px) {
  .exc-arts-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .exc-themes-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .exc-doss-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

