/*
Theme Name: CNHR Officiel
Theme URI: https://cnhr.fr
Author: Conseil National Humaniste et Républicain
Author URI: https://cnhr.fr
Description: Thème officiel du Conseil National Humaniste et Républicain, conçu pour présenter le CNHR, ses valeurs, ses membres, ses propositions, ses actualités et son projet pour 2027.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: cnhr
*/

:root{
  --cnhr-navy:#061638;
  --cnhr-navy-2:#0b285c;
  --cnhr-blue:#075ad8;
  --cnhr-red:#ef1b35;
  --cnhr-light:#f4f7fc;
  --cnhr-text:#152033;
  --cnhr-muted:#64748b;
  --cnhr-gold:#c9a65d;
  --cnhr-shadow:0 18px 50px rgba(6,22,56,.12);
  --cnhr-radius:20px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  color:var(--cnhr-text);
  background:#fff;
  line-height:1.65;
}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto}
.container{width:min(1180px,calc(100% - 38px));margin:auto}

.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(6,22,56,.98);
  box-shadow:0 8px 28px rgba(0,0,0,.15)
}
.header-inner{
  min-height:86px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px
}
.site-branding img,.custom-logo{
  width:195px;
  max-height:70px;
  object-fit:contain;
  border-radius:8px
}
.main-navigation ul{
  list-style:none;
  display:flex;
  align-items:center;
  gap:20px;
  margin:0;
  padding:0
}
.main-navigation a{
  color:#fff;
  font-weight:750;
  font-size:.91rem;
  white-space:nowrap
}
.main-navigation a:hover{color:#9fc0ff}
.main-navigation li:last-child a{
  background:var(--cnhr-red);
  padding:10px 16px;
  border-radius:999px
}
.menu-toggle{
  display:none;
  color:#fff;
  background:transparent;
  border:1px solid rgba(255,255,255,.35);
  padding:10px 14px;
  border-radius:10px;
  font-weight:800
}

.hero{
  position:relative;
  overflow:hidden;
  color:#fff;
  background:
    radial-gradient(circle at 80% 20%,rgba(7,90,216,.5),transparent 28%),
    linear-gradient(135deg,#020b20,#09265c 62%,#061638);
  padding:100px 0
}
.hero:after{
  content:"";
  position:absolute;
  right:-140px;
  bottom:-220px;
  width:430px;
  height:430px;
  border-radius:50%;
  border:75px solid rgba(239,27,53,.2)
}
.hero-grid{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:1.18fr .82fr;
  align-items:center;
  gap:58px
}
.eyebrow{
  display:inline-flex;
  padding:8px 14px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:999px;
  background:rgba(255,255,255,.08);
  text-transform:uppercase;
  font-size:.78rem;
  font-weight:900;
  letter-spacing:.1em
}
.hero h1{
  font-size:clamp(2.7rem,5vw,5.25rem);
  line-height:1.02;
  letter-spacing:-.045em;
  margin:24px 0
}
.hero p{
  font-size:1.18rem;
  color:#dce8ff;
  max-width:740px
}
.hero-card{
  padding:22px;
  background:rgba(255,255,255,.97);
  border-radius:28px;
  box-shadow:var(--cnhr-shadow)
}
.hero-card img{border-radius:16px;display:block}

.btn-row{display:flex;flex-wrap:wrap;gap:14px;margin-top:30px}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:50px;
  padding:0 23px;
  border-radius:999px;
  font-weight:850;
  transition:.2s
}
.btn:hover{transform:translateY(-2px)}
.btn-primary{background:var(--cnhr-red);color:#fff}
.btn-secondary{background:#fff;color:var(--cnhr-navy)}
.btn-blue{background:var(--cnhr-blue);color:#fff}

.section{padding:86px 0}
.section-light{background:var(--cnhr-light)}
.section-dark{background:var(--cnhr-navy);color:#fff}
.section-title{max-width:820px;margin-bottom:42px}
.section-title small{
  color:var(--cnhr-blue);
  font-weight:900;
  letter-spacing:.09em;
  text-transform:uppercase
}
.section-title h2{
  font-size:clamp(2rem,4vw,3.4rem);
  line-height:1.12;
  letter-spacing:-.035em;
  margin:10px 0 14px
}
.section-title p{color:var(--cnhr-muted);font-size:1.08rem}
.section-dark .section-title p{color:#cbd8ef}

.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:26px}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}

.card{
  background:#fff;
  border-radius:var(--cnhr-radius);
  padding:29px;
  box-shadow:var(--cnhr-shadow);
  border-top:4px solid var(--cnhr-blue)
}
.card:nth-child(3n+2){border-top-color:var(--cnhr-red)}
.card:nth-child(3n+3){border-top-color:var(--cnhr-gold)}
.card h3{margin:0 0 10px;font-size:1.25rem;color:var(--cnhr-navy)}
.card p{color:var(--cnhr-muted);margin-bottom:0}

.page-hero{
  color:#fff;
  background:linear-gradient(135deg,var(--cnhr-navy),var(--cnhr-navy-2));
  padding:75px 0
}
.page-hero h1{
  font-size:clamp(2.5rem,5vw,4.2rem);
  line-height:1.06;
  margin:0 0 14px
}
.page-hero p{max-width:800px;color:#d7e3f8;font-size:1.12rem}
.content-area{padding:72px 0}
.entry-content{max-width:900px}
.entry-content h2{color:var(--cnhr-navy);font-size:2rem;margin-top:42px}
.entry-content p,.entry-content li{color:#3f4b5f}

.member-card{
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:var(--cnhr-shadow)
}
.member-photo{
  height:220px;
  background:linear-gradient(135deg,#dfe8f8,#b8c9e9);
  display:grid;
  place-items:center;
  color:var(--cnhr-navy);
  font-size:3rem;
  font-weight:900
}
.member-body{padding:24px}
.member-body h3{margin:0;color:var(--cnhr-navy)}
.member-role{color:var(--cnhr-red);font-weight:800;font-size:.92rem}

.news-card{
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:var(--cnhr-shadow)
}
.news-card img{width:100%;height:210px;object-fit:cover}
.news-body{padding:24px}

.site-footer{
  background:#020a1c;
  color:#c8d5eb;
  padding:58px 0 24px
}
.footer-grid{
  display:grid;
  grid-template-columns:1.25fr .75fr .75fr .75fr;
  gap:36px
}
.footer-logo{width:210px;border-radius:9px;margin-bottom:16px}
.site-footer h3{color:#fff}
.site-footer a{display:block;margin:8px 0}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.12);
  margin-top:35px;
  padding-top:20px;
  font-size:.9rem
}

@media(max-width:1050px){
  .menu-toggle{display:block}
  .main-navigation{
    display:none;
    position:absolute;
    top:86px;
    left:0;
    right:0;
    background:var(--cnhr-navy);
    padding:22px
  }
  .main-navigation.active{display:block}
  .main-navigation ul{flex-direction:column;align-items:flex-start}
  .hero-grid,.footer-grid{grid-template-columns:1fr}
  .grid-4{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:760px){
  .hero{padding:72px 0}
  .grid-3,.grid-2,.grid-4{grid-template-columns:1fr}
  .section{padding:65px 0}
  .site-branding img,.custom-logo{width:160px}
}