/*
Theme Name: UDCN – Union des Consacrés
Theme URI: https://example.org/
Author: Équipe UDCN
Description: Thème WordPress personnalisé, sobre et spirituel, pour l’Union des Consacrés du Diocèse de Ngaoundéré.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: udcn
*/
:root {
  --udcn-blue: #183b72;
  --udcn-blue-deep: #10284d;
  --udcn-green: #2f8050;
  --udcn-gold: #c59a42;
  --udcn-cream: #f7f5ef;
  --udcn-white: #fff;
  --udcn-text: #283342;
  --udcn-muted: #687384;
  --udcn-border: rgba(24, 59, 114, .14);
  --udcn-shadow: 0 16px 42px rgba(16, 40, 77, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--udcn-text); background: var(--udcn-cream);
  font-family: "Segoe UI", Roboto, Arial, sans-serif; line-height: 1.65;
}
a { color: var(--udcn-blue); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--udcn-green); }
img { max-width: 100%; height: auto; }
.site-header { background: rgba(255,255,255,.98); border-bottom: 3px solid var(--udcn-gold); }
.header-inner {
  width: min(1200px, calc(100% - 36px)); margin: auto; padding: 18px 0;
  display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 26px;
}
.site-logo { display: block; width: 140px; aspect-ratio: 1; object-fit: contain; border-radius: 50%; }
.header-titles { text-align: center; color: var(--udcn-blue-deep); line-height: 1.35; }
.header-titles p { margin: 3px 0; font-weight: 650; }
.header-titles p:nth-child(1) { font-size: clamp(.82rem, 1.4vw, 1.02rem); }
.header-titles p:nth-child(2) { color: var(--udcn-green); }
.header-titles p:nth-child(3) { color: var(--udcn-muted); }
.header-titles p:nth-child(4) { font-size: clamp(1rem, 2vw, 1.4rem); color: var(--udcn-blue); font-weight: 800; letter-spacing: .015em; }
.site-main { min-height: 60vh; }
.home-hero { width: min(1200px, calc(100% - 36px)); margin: 34px auto 54px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(235px, 285px); gap: 28px; align-items: center; }
.hero-photo-wrap { position: relative; overflow: hidden; border-radius: 20px; background: #e3e9e2; box-shadow: var(--udcn-shadow); }
.hero-photo { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-photo-wrap::after { content: ""; position: absolute; inset: auto 0 0; height: 24%; background: linear-gradient(transparent, rgba(16,40,77,.52)); pointer-events: none; }
.hero-caption { margin: 13px 3px 0; color: var(--udcn-muted); font-size: .93rem; }
.hero-nav { display: flex; flex-direction: column; align-items: stretch; gap: 13px; }
.hero-nav a {
  display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 13px 16px;
  color: #fff; background: var(--udcn-blue); border: 1px solid rgba(255,255,255,.35);
  border-radius: 10px 3px 10px 3px; box-shadow: 0 7px 18px rgba(16,40,77,.12);
  text-decoration: none; font-weight: 700; transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.hero-nav a:nth-child(2), .hero-nav a:nth-child(4) { margin-left: 18px; background: var(--udcn-green); }
.hero-nav a:nth-child(3) { margin-right: 14px; background: var(--udcn-blue-deep); }
.hero-nav a:nth-child(5) { margin-left: 9px; background: #84652a; }
.hero-nav a:hover, .hero-nav a:focus-visible { transform: translateX(-5px); box-shadow: 0 10px 24px rgba(16,40,77,.2); color: #fff; }
.nav-number { display: inline-grid; place-items: center; flex: 0 0 29px; height: 29px; border-radius: 50%; color: var(--udcn-blue-deep); background: #fff; font-size: .83rem; }
.intro-panel {
  margin-top: 34px; padding: clamp(22px, 4vw, 38px); background: #fff; border: 1px solid var(--udcn-border);
  border-left: 5px solid var(--udcn-gold); border-radius: 4px 16px 16px 4px; box-shadow: 0 8px 26px rgba(16,40,77,.04);
}

/* 1. Le Ruban principal (Bandeau horizontal 3D) */
.ruban-menu {
    background: linear-gradient(135px, #003366, #002244); /* Dégradé pour donner de la profondeur */
    width: 100%;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 
                inset 0 1px 0 rgba(255, 255, 255, 0.2); /* Ombre externe + reflet interne pour l'effet 3D */
    border-bottom: 4px solid #cc9900; /* Ligne dorée pour souligner le relief */
    margin-bottom: 20px;
}

/* 2. Le Conteneur qui centre le contenu du menu */
.conteneur-menu {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 3. La Liste (Force l'alignement horizontal et supprime les puces verticales) */
.menu-liste {
    list-style: none !important; /* Force la suppression des puces de liste */
    margin: 0;
    padding: 0;
    display: flex;               /* Aligne les éléments côte à côte */
    justify-content: center;     /* Centre les liens au milieu du ruban */
    flex-wrap: wrap;             /* Permet le retour à la ligne sur petit écran */
}

/* 4. Les Éléments de la liste */
.menu-liste li {
    margin: 0;
    padding: 0;
    position: relative;
}

/* 5. Les Liens du menu (Boutons avec effet de relief) */
.menu-liste li a {
    display: block;
    padding: 16px 25px;
    color: #ffffff !important;   /* Couleur du texte en blanc */
    text-decoration: none !important; /* Supprime le soulignement */
    font-weight: bold;
    font-family: sans-serif;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6); /* Ombre portée sur le texte pour l'effet 3D */
    transition: all 0.3s ease;
}

/* 6. Effet au survol (Hover) : Le bouton s'illumine et donne une impression de relief inversé */
.menu-liste li a:hover,
.menu-liste li.current-menu-item > a {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5); /* Ombre intérieure au survol */
    color: #ffcc00 !important; /* Le texte devient doré au survol */
}

.intro-panel h1, .intro-panel h2 { color: var(--udcn-blue-deep); margin: 0 0 10px; line-height: 1.25; }
.intro-panel p { margin: 0; max-width: 850px; }
.page-content { width: min(1000px, calc(100% - 36px)); margin: 36px auto 60px; padding: clamp(22px, 4vw, 42px); background: #fff; border-radius: 16px; box-shadow: var(--udcn-shadow); }
.page-content h1, .page-content h2, .page-content h3 { color: var(--udcn-blue-deep); }
.site-footer { background: var(--udcn-blue-deep); color: rgba(255,255,255,.88); border-top: 4px solid var(--udcn-gold); }
.footer-inner { width: min(1200px, calc(100% - 36px)); margin: auto; padding: 38px 0 22px; display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 32px; }
.footer-col h2 { color: #f1d89b; font-size: 1.05rem; margin: 0 0 12px; }
.footer-col p { margin: 5px 0; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 7px 0; }
.footer-col a { color: #fff; text-decoration: none; }
.footer-col a:hover { color: #f1d89b; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.18); text-align: center; padding: 14px 18px; font-size: .88rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 820px) {
  .header-inner { grid-template-columns: 100px 1fr; gap: 16px; }
  .site-logo { width: 96px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .hero-nav a, .hero-nav a:nth-child(n) { margin: 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .header-inner { width: min(100% - 24px, 1200px); grid-template-columns: 68px 1fr; gap: 10px; padding: 12px 0; }
  .site-logo { width: 66px; }
  .header-titles p { font-size: .72rem !important; }
  .header-titles p:nth-child(4) { font-size: .84rem !important; }
  .home-hero, .page-content { width: calc(100% - 24px); }
  .hero-photo { aspect-ratio: 4 / 3; }
  .hero-nav { grid-template-columns: 1fr; }
  .footer-inner { width: calc(100% - 28px); grid-template-columns: 1fr; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }
