/* FICHIER : /www/design/home.css */
/* Version : 2026-02-21 */
/* Rôle : CSS global (header + contenu + footer) */

/* ========================= */
/* VARIABLES                 */
/* ========================= */

:root{
  --rm-bg:#f8f8f8;
  --rm-text:#111;
  --rm-white:#ffffff;
  --rm-blue:#1565c0;
  --rm-green:#0b9444;
  --rm-shadow:0 8px 20px rgba(0,0,0,.08);
  --rm-shadow-strong:0 6px 16px rgba(0,0,0,.12);
  --rm-radius:14px;
}

/* ========================= */
/* BASE                      */
/* ========================= */

body{
  margin:0;
  font-family: system-ui, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--rm-bg);
  color: var(--rm-text);
}

/* ========================= */
/* HEADER GLOBAL (RETRO DESIGN) */
/* ========================= */

.rm-header{
  background:#0d0d0d;
  color:#fff;
  width:100%;
  padding-bottom:14px; /* laisse respirer sous la barre */
}

/* Barre noire : avatar + titre à gauche, logo PEC à droite */
.headerbar{
  max-width:1100px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 16px;
}

/* Bloc gauche : avatar + nom */
.headerbar .avatar{
  display:flex;
  align-items:center;
  gap:14px;
}

.avatar img{
  height:70px;
  width:70px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid rgba(255,255,255,.55);
}

/* Titre : aligné à gauche (plus centré) */
.titleline{
  text-align:left;
  flex:0 1 auto;
}

.titleline h1{
  margin:0;
  font-size:2rem;
  letter-spacing:.5px;
  font-weight:800;
  font-family: inherit; /* évite les surprises OS */
}

.titleline small{
  display:block;
  margin-top:2px;
  font-size:.95rem;
  opacity:.85;
}

/* Logo PEC à droite */
.headerbar-right{
  display:flex;
  align-items:center;
}

.logo-pec{
  position:relative;
}

.logo-pec a{
  display:inline-block;
}

.logo-pec img{
  height:54px;
  width:auto;
  display:block;
}

/* ========================= */
/* BANNER (pavé blanc flottant) */
/* ========================= */

.banner{
  max-width:1100px;
  margin:10px auto 0 auto;
  background:#ffffff;
  color:#111;
  border-radius:12px;
  box-shadow:0 10px 22px rgba(0,0,0,.18);
  padding:10px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.banner strong{
  color:#c40000;
  font-weight:900;
  letter-spacing:.2px;
  white-space:nowrap;
}

.banner span{
  opacity:.9;
  white-space:nowrap;
}

.banner .contact{
  margin:0;
  font-size:.95rem;
  white-space:nowrap;
}

.banner a{
  color:#1565c0;
  text-decoration:none;
  font-weight:800;
}

.banner a:hover{
  text-decoration:underline;
}

/* Responsive : la bannière passe en lignes */
@media (max-width: 900px){
  .banner{
    flex-direction:column;
    align-items:flex-start;
  }
  .banner strong, .banner span, .banner .contact{
    white-space:normal;
  }
}

/* ========================= */
/* MAIN                      */
/* ========================= */

.rm-main{
  max-width:1100px;
  margin:0 auto;
  padding:18px 16px 18px;
}

.intro{
  text-align:justify;
  font-size:1.05rem;
  line-height:1.32;
  color:#222;
  margin-bottom:14px;
}

.intro p{margin:0 0 0.5em 0}

/* ========================= */
/* CARTES ACCUEIL            */
/* ========================= */

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:24px;
  align-items:stretch;
}

@media (min-width: 1100px){
  .grid{ grid-template-columns:repeat(4, 1fr); }
}

.card{
  background:#fff;
  border:1px solid #ddd;
  border-radius: var(--rm-radius);
  overflow:hidden;
  box-shadow: var(--rm-shadow);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.card img{
  width:100%;
  height:220px;
  display:block;
  object-fit:cover;
  background:#111;
}

.card img.contain{
  object-fit:contain;
  object-position:center center;
  background:#fff;
}

.card h3{
  margin:14px;
  font-size:1.1rem;
  text-align:center;
}

.card p{
  margin:0 14px 14px;
  color:#444;
  text-align:center;
}

.cta{
  display:inline-block;
  margin:0 auto 18px auto;
  padding:10px 16px;
  border-radius:8px;
  background: var(--rm-blue);
  color:#fff;
  text-decoration:none;
  font-weight:600;
  text-align:center;
  width:80%;
}

.cta.secondary{ background: var(--rm-green); }
.cta:hover{ opacity:.92; }

.aftertext{
  margin-top:18px;
  text-align:center;
}

.aftertext p{
  margin:6px 0;
  font-weight:600;
}

.aftertext a{
  color: var(--rm-blue);
  text-decoration:none;
  font-weight:800;
}
.aftertext a:hover{ text-decoration:underline; }

/* ========================= */
/* FOOTER                    */
/* ========================= */

.rm-footer{
  background:#111;
  color:#fff;
}

.rm-footer .wrap{
  max-width:1100px;
  margin:0 auto;
  padding:18px 16px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  justify-content:space-between;
}

.rm-footer small{ opacity:.85; }

/* ========================= */
/* RESEAUX SOCIAUX FOOTER    */
/* ========================= */

.rm-footer .social-links{
  display:flex;
  align-items:center;
  gap:12px;
}

.rm-footer .social-links a{
  display:inline-flex;
  align-items:center;
}

.rm-footer .social-links img{
  width:28px;
  height:28px;
  object-fit:contain;
  transition:opacity .25s ease, transform .25s ease;
}

.rm-footer .social-links img:hover{
  opacity:0.75;
  transform:scale(1.08);
}

/* === FIN DU FICHIER : /www/design/home.css === */