/*
Theme Name: Ecully Humaniste - Child
Theme URI: https://www.ecully-humaniste.fr
Description: Theme enfant pour GeneratePress
Author: Léon Chelli
Template: generatepress
Version: 1.0
Text Domain: ecully-humaniste-child
*/

/* =========================
   Variables (charte)
   ========================= */

:root{
  --eh-body: #4a4a49;
  --eh-violet: #622a5a;
  --eh-vert: #8fbf2a;
  --eh-rose: #b93c7d;

  --eh-gris60: rgba(74,74,73,.60);
  --eh-gris50: rgba(74,74,73,.50);

  --eh-card-bg: #702955;
  --eh-card-accent: rgba(255,255,255,.35);
}

/* =========================
   Base typographique
   ========================= */

body{
  color: var(--eh-body);
  font-weight: 100;
  line-height: 1.65;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Liens généraux */
a{
  color: var(--eh-violet);
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

a:hover,
a:focus{
  color: var(--eh-rose);
}

/* =========================
   Titres
   ========================= */

h1{
  color: var(--eh-violet);
  font-weight: 200;
  font-size: clamp(2.0rem, 3.2vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 .6em 0;
}

h2{
  color: var(--eh-violet);
  font-weight: 100;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1.2;
  margin: 1.2em 0 .6em 0;
}

h3{
  color: var(--eh-vert);
  font-weight: 200;
  font-size: clamp(1.35rem, 1.9vw, 1.75rem);
  line-height: 1.25;
  margin: 1.1em 0 .55em 0;
}

h4{
  color: var(--eh-vert);
  font-weight: 100;
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  line-height: 1.3;
  margin: 1.0em 0 .5em 0;
}

h5{
  color: var(--eh-gris60);
  font-weight: 200;
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: .01em;
  margin: .9em 0 .45em 0;
}

/* =========================
   H6 "mesure"
   ========================= */

h6{
  color: var(--eh-rose);
  font-weight: 200;
  font-size: 1.05rem;
  line-height: 1.45;
  text-align: left;

  width: min(72ch, 92%);
  margin: 1.2em auto;
  padding: .7em 0;

  border-top: 1px solid var(--eh-gris50);
  border-bottom: 1px solid var(--eh-gris50);
}

/* =========================
   Programme : encarts-liens
   ========================= */

.eh-programme-grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.eh-programme-card{
  grid-column: span 12;
  display: block;

  background: var(--eh-card-bg);
  color: #ffffff;

  padding: 1.1rem 1.2rem;
  border-radius: 0; /* angles droits */
  text-decoration: none;

  border-left: 5px solid var(--eh-card-accent);

  transition: background-color .15s ease, transform .12s ease;
  position: relative;
  z-index: 2;
}

.eh-programme-card h3{
  margin: 0;
  color: #ffffff;
  font-weight: 200;
  font-size: 1.2rem;
  line-height: 1.25;
}

.eh-programme-card:hover,
.eh-programme-card:focus{
  background: var(--eh-vert);
  transform: translateY(-1px);
}

.eh-programme-card:focus{
  outline: 2px solid rgba(185,60,125,.55);
  outline-offset: 3px;
}

.eh-programme-card *{
  pointer-events: none;
}

@media (min-width: 640px){
  .eh-programme-card{ grid-column: span 6; }
}
@media (min-width: 1024px){
  .eh-programme-card{ grid-column: span 4; }
}

/* =========================
   Navigation interne (2 cartes)
   ========================= */

.eh-nav-2col{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

@media (min-width: 640px){
  .eh-nav-2col{
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 1.5rem;
  }

  .eh-nav-2col .eh-programme-card:first-child{ grid-column: 1; }
  .eh-nav-2col .eh-programme-card:last-child{  grid-column: 3; }
}

.eh-nav-2col .eh-programme-card{
  grid-column: auto;
}

/* =========================
   Encadré "Sources & références"
   ========================= */

.eh-sources{
  margin-top: 2rem;
  margin-bottom: 1.25rem;
  background-color: rgba(74,74,73,.08);
  border-top: 4px solid var(--eh-violet);
  padding: 1rem 1.25rem;
  border-radius: 0; /* angles droits */
}

.eh-sources h5{
  margin: 0 0 .6rem 0;
  font-size: 1rem;
  color: var(--eh-violet);
  font-weight: 200;
}

.eh-sources h6{
  margin: .9rem 0 .35rem 0;
  font-style: italic;
  font-size: .95rem;
  color: var(--eh-body);
  font-weight: 200;
  border: 0;
  padding: 0;
  width: auto;
}

.eh-sources ul{
  margin: 0;
  padding-left: 1.2em;
  font-size: .95rem;
  line-height: 1.55;
  color: var(--eh-body);
}

.eh-sources li{
  margin: .25rem 0;
}

.eh-sources a{
  color: var(--eh-violet);
  font-weight: 200;
}

.eh-sources a:hover,
.eh-sources a:focus{
  color: var(--eh-rose);
}

.page h1.entry-title {
  display: none;
}

.site-header .inside-header.grid-container,
.site-header .inside-header {
  max-width: none !important;
  width: 100% !important;
}

.site-header .inside-header {
  display: flex;
  align-items: center;
}

.site-header .site-branding {
  margin-left: 40px !important;
}

@media (max-width: 768px) {
  .site-header .site-branding {
    margin-left: 15px !important;
  }
}

/* Mise en page formulaire contact */

.eh-form {
  max-width: 760px;
}

.eh-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 640px) {
  .eh-grid {
    grid-template-columns: 1fr;
  }
}

.eh-field {
  margin-bottom: 14px;
}

.eh-input,
.eh-select,
.eh-textarea {
  width: 100%;
  box-sizing: border-box;
}

.eh-help {
  margin-bottom: 4px;
}

.eh-help + .eh-help {
  margin-top: 4px;
}

table td {
  vertical-align: top;
}
