/*
Theme Name: CIMER Studio
Theme URI: https://asso-cimer.fr/
Author: CIMER
Description: Custom editorial WordPress theme for CIMER, Sorbonne Université.
Version: 2.3.0
Text Domain: cimer
*/

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;600;700&display=swap');

:root{
  --cimer-blue:#292a6a;
  --cimer-yellow:#fbb416;
  --cimer-paper:#fbfbfb;
  --cimer-red:#d94a43;
  --cimer-max:1760px;
  --cimer-header-font:"Rajdhani",sans-serif;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--cimer-blue);background:#fff url("https://asso-cimer.fr/wp-content/uploads/2026/09/map_8.png") center top/cover fixed no-repeat;font-family:"Rajdhani",sans-serif;font-weight:400}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
button,input,textarea,select{font:inherit}

/* HEADER */
.cimer-site-header{position:relative;min-height:130px;background:transparent;z-index:200}
.cimer-header-inner{position:relative;width:min(var(--cimer-max),100%);margin:0 auto;padding:20px 2.5vw 18px;display:flex;align-items:flex-start}
.cimer-brand{display:flex;align-items:center;gap:14px;max-width:760px}
.cimer-logo{display:block;width:auto;height:105px;flex:0 0 auto}
.cimer-brand-copy{font-family:var(--cimer-header-font)!important;font-size:22px;line-height:1.02;font-weight:600!important;background:#fff;padding:2px 7px}
.cimer-brand-copy span{display:block}

.cimer-nav-shell{position:absolute;top:35px;right:2.5vw;z-index:9999;background:rgba(251,251,251,.95);border:1px solid var(--cimer-yellow);font-family:var(--cimer-header-font)!important}
.cimer-nav-shell.is-fixed{position:fixed;top:0;right:2.5vw}
.admin-bar .cimer-nav-shell.is-fixed{top:32px}
.cimer-menu-toggle{display:none}
.cimer-menu{display:flex;list-style:none;margin:0;padding:0 7px;align-items:center}
.cimer-menu li{margin:0;padding:0}
.cimer-menu a{display:block;padding:14px 17px;font-family:var(--cimer-header-font)!important;font-size:20px;line-height:1;font-weight:600!important;text-decoration:none!important;white-space:nowrap}
.cimer-menu a:hover,.cimer-menu a:focus,.current-menu-item>a{text-decoration:underline!important;text-underline-offset:4px;text-decoration-thickness:1px!important}

/* HOME NEWS TICKER — full-width and sticky below the menu */
.cimer-news-wrap{
  position:sticky;
  top:49px;
  z-index:9000;
  width:100vw;
  margin:0 0 34px;
  margin-left:calc(50% - 50vw);
  overflow:visible;
}
.admin-bar .cimer-news-wrap{top:81px}
.cimer-news-strip{
  display:block;
  width:100%;
  min-height:var(--cimer-news-height,88px);
  padding:0;
  border:0;
  overflow:hidden;
  transition:filter .15s ease;
  white-space:nowrap;
}
.cimer-news-strip:hover{filter:brightness(.96)}
.cimer-news-track{
  display:flex;
  width:max-content;
  min-width:200%;
  align-items:center;
  min-height:var(--cimer-news-height,88px);
  will-change:transform;
  animation:cimerTicker var(--cimer-news-speed,18s) linear infinite;
}
.cimer-news-strip:hover .cimer-news-track{animation-play-state:paused}
.cimer-news-group{display:flex;align-items:center;flex:0 0 auto;min-width:100vw}
.cimer-news-label{
  display:inline-block;
  flex:0 0 auto;
  padding:0 5vw 0 2.5vw;
  font-weight:600;
  line-height:1;
}
.cimer-news-separator{display:inline-block;padding-right:5vw;font-weight:600;opacity:.9}
@keyframes cimerTicker{from{transform:translate3d(0,0,0)}to{transform:translate3d(-50%,0,0)}}
@media (prefers-reduced-motion:reduce){.cimer-news-track{animation:none;transform:none}.cimer-news-group:nth-child(2){display:none}}

/* COMMON PANELS */
.cimer-main{width:min(var(--cimer-max),100%);margin:0 auto;padding:0 2.5vw 60px}
.cimer-panel{background:rgba(251,251,251,.96);border:1px solid var(--cimer-yellow);padding:clamp(28px,4vw,64px);margin:0 0 34px}
.cimer-section-title{font-family:var(--cimer-header-font);font-size:clamp(38px,4vw,64px);line-height:.95;font-weight:600;margin:0 0 26px}
.cimer-about-content{font-size:clamp(20px,1.65vw,28px);line-height:1.18;max-width:1500px}
.cimer-about-content>:first-child{margin-top:0}.cimer-about-content>:last-child{margin-bottom:0}

/* TEAM - reference style */
.cimer-team-section{margin:0 0 36px}
.cimer-team-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(22px,4vw,80px)}
.cimer-team-card{display:block;background:#f1f2f3;border:1px solid var(--cimer-yellow);min-width:0}
.cimer-team-card-media{background:#fff;overflow:hidden;aspect-ratio:1.18/1}
.cimer-team-card-media img{width:100%;height:100%;object-fit:cover;display:block}
.cimer-team-card-copy{padding:24px 28px 28px}
.cimer-team-name{font-family:var(--cimer-header-font);font-size:clamp(29px,2.2vw,42px);line-height:.98;font-weight:700;margin:0 0 8px}
.cimer-team-role{font-family:var(--cimer-header-font);font-size:clamp(18px,1.35vw,25px);line-height:1.03;font-weight:600;margin:0}

/* PROJECT GRID */
.cimer-projects-panel{position:relative;isolation:isolate;overflow:hidden;background:var(--cimer-projects-bg,rgba(251,251,251,.94));border:var(--cimer-projects-border-width,1px) solid var(--cimer-projects-border,var(--cimer-yellow));padding:var(--cimer-projects-padding,34px);margin:0 0 34px}
.cimer-projects-panel::before{content:"";position:absolute;inset:0;z-index:-2;background-image:var(--cimer-projects-bg-image,none);background-size:var(--cimer-projects-bg-size,cover);background-position:var(--cimer-projects-bg-position,center center);background-repeat:no-repeat;opacity:var(--cimer-projects-bg-image-opacity,1);pointer-events:none}
.cimer-projects-panel::after{content:"";position:absolute;inset:0;z-index:-1;background:var(--cimer-projects-overlay,transparent);pointer-events:none}
.cimer-projects-panel-content{position:relative;z-index:1}
.cimer-projects-intro{margin:0 0 30px}
.cimer-projects-intro .cimer-section-title{color:var(--cimer-projects-title-color,var(--cimer-blue));font-family:var(--cimer-projects-title-font,var(--cimer-header-font));margin-bottom:16px}
.cimer-projects-intro-text{max-width:1200px;color:var(--cimer-projects-intro-color,var(--cimer-blue));font-family:var(--cimer-projects-intro-font,var(--cimer-header-font));font-size:clamp(20px,1.5vw,27px);line-height:1.18}
.cimer-projects-intro-text>:first-child{margin-top:0}.cimer-projects-intro-text>:last-child{margin-bottom:0}
.cimer-projects-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}
.cimer-project-card{display:flex;flex-direction:column;min-width:0;background:#f1f2f3;border:1px solid var(--cimer-yellow);transition:color .15s ease}
.cimer-project-card-media{position:relative;overflow:hidden;aspect-ratio:1.2/1;background:#fff}
.cimer-project-card-media img{display:block;width:100%;height:100%;object-fit:cover;transition:filter .15s ease,opacity .15s ease}
.cimer-project-card-copy{padding:22px 24px 26px;min-height:165px}
.cimer-project-card-title{font-family:var(--cimer-header-font);font-size:clamp(28px,2vw,39px);line-height:1;font-weight:700;margin:0 0 10px}
.cimer-project-card-excerpt{font-size:19px;line-height:1.12;margin:0}
.cimer-project-card:hover,.cimer-project-card:focus-within{color:var(--cimer-red)}
.cimer-project-card:hover .cimer-project-card-media img,.cimer-project-card:focus-within .cimer-project-card-media img{filter:sepia(1) saturate(5) hue-rotate(315deg) brightness(.95);opacity:.92}

/* SINGLE POSTS / PROJECTS */
.cimer-single{background:rgba(251,251,251,.97);border:1px solid var(--cimer-yellow);padding:clamp(28px,5vw,80px)}
.cimer-single h1{font-size:clamp(46px,5vw,88px);line-height:.92;margin:0 0 26px}
.cimer-single-featured{margin:0 0 34px}
.cimer-single-featured img{display:block;width:100%;max-height:70vh;object-fit:contain;background:#fff}
.cimer-entry-content{font-size:clamp(20px,1.65vw,28px);line-height:1.22}
.cimer-entry-content>*{max-width:1300px}.cimer-entry-content>.alignwide,.cimer-entry-content>.alignfull{max-width:none}

/* PAGE */
.cimer-page{background:rgba(251,251,251,.97);border:1px solid var(--cimer-yellow);padding:clamp(28px,5vw,80px)}
.cimer-page h1{font-size:clamp(46px,5vw,88px);line-height:.92;margin:0 0 28px}

/* FOOTER */
.cimer-footer{width:min(var(--cimer-max),100%);margin:0 auto;padding:0 2.5vw 30px}
.cimer-footer-inner{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;background:rgba(251,251,251,.96);border:1px solid var(--cimer-yellow);padding:28px}
.cimer-footer .widget-title{font-family:var(--cimer-header-font);font-size:25px;margin:0 0 10px}

/* TEAM MODAL */
.cimer-team-modal[hidden]{display:none}
.cimer-team-modal{position:fixed;inset:0;z-index:20000;background:rgba(41,42,106,.65);display:grid;place-items:center;padding:24px}
.cimer-team-modal-dialog{width:min(760px,100%);max-height:86vh;overflow:auto;background:#fbfbfb;border:1px solid var(--cimer-yellow);padding:32px;position:relative}
.cimer-team-modal-close{position:absolute;top:8px;right:12px;border:0;background:transparent;color:var(--cimer-blue);font-size:36px;cursor:pointer}
.cimer-team-modal-title{font-size:40px;line-height:1;margin:0 45px 5px 0}.cimer-team-modal-role{font-size:21px;font-weight:600;margin:0 0 18px}.cimer-team-modal-body{font-size:19px;line-height:1.25}

@media(max-width:1000px){
  .cimer-header-inner{padding:10px 10px 0;display:block}
  .cimer-site-header{min-height:0}
  .cimer-brand{background:#fff;border-bottom:1px solid var(--cimer-yellow);max-width:none;padding:7px 8px}
  .cimer-logo{height:70px;max-width:70px}
  .cimer-brand-copy{font-size:13.5px;line-height:1.03;padding:0;background:transparent}
  .cimer-nav-shell{position:sticky;top:0;right:auto;width:100%;height:34px;margin:0;background:transparent;border:0;z-index:9999}
  .admin-bar .cimer-nav-shell{top:46px}
  .cimer-nav-shell.is-fixed{position:sticky;top:0;right:auto}
  .admin-bar .cimer-nav-shell.is-fixed{top:46px}
  .cimer-menu-toggle{display:block;width:100%;height:34px;border:0;background:transparent;position:relative;font-size:0;color:transparent}
  .cimer-menu-toggle:before{content:"";position:absolute;left:50%;top:6px;transform:translateX(-50%);width:28px;height:2px;background:var(--cimer-yellow);box-shadow:0 7px 0 var(--cimer-yellow),0 14px 0 var(--cimer-yellow)}
  .cimer-menu{display:none;position:absolute;top:34px;left:0;width:100%;padding:0;background:rgba(251,251,251,.98);border-bottom:1px solid var(--cimer-yellow)}
  .cimer-nav-shell.is-open .cimer-menu{display:block}
  .cimer-menu li{width:100%}.cimer-menu a{display:flex;justify-content:center;align-items:center;min-height:54px;font-size:19px}.cimer-menu a:hover,.cimer-menu a:focus{background:var(--cimer-yellow)}
    .cimer-news-wrap{top:34px;width:100vw;margin:0 0 26px;margin-left:calc(50% - 50vw)}
  .admin-bar .cimer-news-wrap{top:80px}
  .cimer-news-strip{min-height:var(--cimer-news-height-mobile,var(--cimer-news-height,68px));padding:0}
  .cimer-news-track{min-height:var(--cimer-news-height-mobile,var(--cimer-news-height,68px))}
  .cimer-news-group{min-width:100vw}
  .cimer-news-label{padding-left:18px;padding-right:38px}

  .cimer-main{padding:0 10px 44px}.cimer-panel{padding:22px}
  .cimer-team-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .cimer-projects-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .cimer-footer{padding:0 10px 20px}.cimer-footer-inner{grid-template-columns:1fr}
}

@media(max-width:640px){
  .cimer-team-grid{grid-template-columns:1fr}
  .cimer-projects-grid{grid-template-columns:1fr}
  .cimer-project-card-copy{min-height:0}
  .cimer-team-card-copy{padding:18px}
}
