/* =========================================================
   Youkonseil — ressources.css
   Page : Ressources
   ✅ Scoped : .page-ressources
   ✅ Cartes glass cohérentes (style team-psy)
   ✅ Grilles vidéos + liens + docs
   ✅ Hero retravaillé : plus d’air + boutons type "qui-etes-vous"
   ========================================================= */

.page-ressources .hero{
  min-height: calc(50vh - var(--headerH));
}

@media (max-width: 980px){
  .page-ressources .hero{
    min-height: calc(42vh - var(--headerH));
  }
}

.page-ressources #contenu{ scroll-margin-top: var(--headerH); }
.page-ressources .screen{ scroll-margin-top: var(--headerH); }

.page-ressources .sub{ max-width: 92ch; }

/* ---------- Style "glass" demandé (copie esprit team-psy) ---------- */
.page-ressources .glass.glass-dark{
  border: 1px solid rgba(16,24,40,.10);
  background: rgba(16,24,40,.02);
  border-radius: var(--radius2);
  padding: 16px;

  box-shadow: 0 18px 40px rgba(16,24,40,.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
}

/* =========================================================
   HERO — page Ressources
   ========================================================= */

.page-ressources .hero-inner{
  align-items: start;
}

.page-ressources .r-hero-stack{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:0;
  width:100%;
  max-width:920px;
}

.page-ressources .r-hero-stack h1{
  margin:0 0 18px;
  max-width:none;
}

.page-ressources .r-hero-stack .lead{
  margin:0;
  max-width:760px;
}

.page-ressources .r-hero-note{
  margin:28px 0 0;
  color:rgba(255,255,255,.80);
  line-height:1.7;
  font-weight:600;
}

.page-ressources .r-hero-links{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:16px;
  width:100%;
  margin-top:18px;
}

.page-ressources .r-hero-linkcard{
  min-height:88px;
  padding:16px 18px;
  border-radius:20px;
  align-items:center;
  justify-content:flex-start;
}

.page-ressources .r-hero-linkcard .mini-ico{
  width:42px;
  height:42px;
  border-radius:14px;
  flex:0 0 auto;
}

.page-ressources .r-hero-linkcard b{
  display:block;
  margin:0 0 4px;
  font-size:1.02rem;
  line-height:1.2;
  color:#fff;
}

.page-ressources .r-hero-linkcard span{
  display:block;
  color:rgba(255,255,255,.72);
  line-height:1.55;
  font-size:.94rem;
}

@media (max-width:980px){
  .page-ressources .r-hero-links{
    grid-template-columns:1fr;
  }
}

@media (max-width:560px){
  .page-ressources .r-hero-note{
    margin:22px 0 0;
  }

  .page-ressources .r-hero-linkcard{
    min-height:auto;
    padding:15px 16px;
  }
}

/* =========================================================
   GLOW PREMIUM — HERO LINKS page Ressources
   ========================================================= */

.page-ressources a.mini-row.r-hero-linkcard{
  position: relative;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background .18s ease,
    border-color .18s ease,
    filter .18s ease;
  will-change: transform, box-shadow, filter;
}

.page-ressources a.mini-row.r-hero-linkcard::after{
  content:"";
  position:absolute;
  inset:-10px;
  border-radius: 18px;
  background:
    radial-gradient(420px 140px at 20% 20%, rgba(251,255,11,.22), transparent 60%),
    radial-gradient(420px 140px at 80% 70%, rgba(82,180,25,.18), transparent 60%);
  opacity: 0;
  filter: blur(10px);
  transition: opacity .18s ease;
  pointer-events:none;
  z-index: 0;
}

.page-ressources a.mini-row.r-hero-linkcard > *{
  position: relative;
  z-index: 1;
}

.page-ressources a.mini-row.r-hero-linkcard:hover{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  box-shadow:
    0 18px 46px rgba(251,255,11,.16),
    0 18px 46px rgba(82,180,25,.10),
    0 14px 32px rgba(0,0,0,.18);
  filter: brightness(1.03);
}

.page-ressources a.mini-row.r-hero-linkcard:hover::after{
  opacity: 1;
}

.page-ressources a.mini-row.r-hero-linkcard:active{
  transform: translateY(0);
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

.page-ressources a.mini-row.r-hero-linkcard:focus-visible{
  outline: 3px solid rgba(242,201,76,.45);
  outline-offset: 3px;
  border-radius: 14px;
}

@media (prefers-reduced-motion: reduce){
  .page-ressources a.mini-row.r-hero-linkcard,
  .page-ressources a.mini-row.r-hero-linkcard::after{
    transition: none !important;
  }

  .page-ressources a.mini-row.r-hero-linkcard:hover{
    transform:none !important;
    filter:none !important;
  }
}

/* ---------- Sections ---------- */
.page-ressources .r-section .r-intro{
  margin-top: 6px;
  margin-bottom: 18px;
  line-height: 1.85;
}

.page-ressources .r-theme{ margin-top: 22px; }
.page-ressources .r-theme + .r-theme{ margin-top: 26px; }

.page-ressources .r-theme-head{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
  margin-bottom:12px;
}

.page-ressources .r-theme-head h3{
  margin:0;
  font-size:1.25rem;
}

.page-ressources .r-theme-head p{
  margin:0;
  text-align:left;
  color:var(--muted);
  font-weight:800;
  line-height:1.45;
}

/* ---------- Grille vidéos ---------- */
.page-ressources .r-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items:start;
  align-content:start;
}

@media (max-width: 900px){
  .page-ressources .r-grid{ grid-template-columns: 1fr; }
}

/* ---------- Carte vidéo ---------- */
.page-ressources .r-card{
  padding: 16px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.page-ressources .r-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(16,24,40,.10);
  border-color: rgba(16,24,40,.14);
}

.page-ressources .r-card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 12px;
}

.page-ressources .r-card h4{
  margin: 0;
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -.01em;
  font-size: 1.06rem;
  line-height: 1.25;
}

/* petite pastille thème */
.page-ressources .r-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: .78rem;
  letter-spacing: .02em;
  color: rgba(11,18,32,.80);

  background: rgba(255,255,255,.55);
  border: 1px solid rgba(16,24,40,.10);
}

/* embed responsive */
.page-ressources .r-embed{
  border-radius: calc(var(--radius2) - 6px);
  overflow:hidden;
  border: 1px solid rgba(16,24,40,.10);
  background: rgba(255,255,255,.25);
  min-height: 240px;
}
.page-ressources .r-embed iframe{
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 240px;
  border: 0;
  display:block;
  background:#000;
  opacity:1;
  visibility:visible;
}

/* ---------- Liens maritime ---------- */
.page-ressources .r-links{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}
@media (max-width: 900px){
  .page-ressources .r-links{ grid-template-columns: 1fr; }
}

.page-ressources .r-linkcard{
  display:flex;
  gap: 14px;
  align-items:center;
  text-decoration:none;
  padding: 16px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.page-ressources .r-linkcard:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(16,24,40,.10);
  border-color: rgba(16,24,40,.14);
}
.page-ressources .r-link-left{
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  flex: 0 0 auto;

  background: rgba(255,255,255,.55);
  border: 1px solid rgba(16,24,40,.10);
}
.page-ressources .r-logo{
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.page-ressources .r-link-body{ min-width:0; }
.page-ressources .r-link-body h3{
  margin: 0 0 4px;
  font-size: 1.12rem;
}
.page-ressources .r-link-body p{
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.page-ressources .r-link-cta{
  margin-left:auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  border: 1px solid rgba(16,24,40,.10);
  background: rgba(255,255,255,.40);
  flex: 0 0 auto;
  color: rgba(11,18,32,.70);
  font-weight: 900;
}

/* ---------- Docs (articles / PDF) ---------- */
.page-ressources .r-docs{
  margin-top: 28px;
}
.page-ressources .r-docs h3{
  margin: 0 0 10px;
  font-size: 1.25rem;
}
.page-ressources .r-docgrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}
@media (max-width: 900px){
  .page-ressources .r-docgrid{ grid-template-columns: 1fr; }
}
.page-ressources .r-doc{
  display:block;
  text-decoration:none;
  padding: 16px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.page-ressources .r-doc:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(16,24,40,.10);
  border-color: rgba(16,24,40,.14);
}
.page-ressources .r-doc-title{
  font-weight: 900;
  letter-spacing: -.01em;
}
.page-ressources .r-doc-meta{
  margin-top: 6px;
  color: var(--muted);
  font-weight: 800;
  font-size: .92rem;
}

/* Texte ergonomie (sans cartouche) */
.page-ressources .r-ergotext{
  max-width: 92ch;
  margin: 10px 0 18px;
}

.page-ressources .r-ergotext h3{
  margin: 18px 0 10px;
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -.01em;
  font-size: 1.18rem;
  line-height: 1.2;
  color: rgba(11,18,32,.92);
}

/* petit soulignement sobre (pas un cadre) */
/* Traits type "Prestations" (fondu + accent) */
.page-ressources .r-ergotext h3::after{
  content:"";
  display:block;
  width: 92px;
  height: 2px;
  border-radius: 999px;
  margin-top: 8px;

  /* même esprit que prestations : accent -> fondu */
  background: linear-gradient(
    90deg,
    rgba(233,207,131,.70),
    rgba(233,207,131,.35) 45%,
    rgba(16,24,40,.00)
  );
  opacity: .85;
}

.page-ressources .r-ergotext p{
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.9;
  font-size: 1.02rem;
}

.page-ressources .r-ergotext ul{
  margin: 0 0 12px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.9;
}

.page-ressources .r-ergotext li{ margin: 6px 0; }

.page-ressources .r-ergotext-note{
  font-weight: 800;
  color: rgba(11,18,32,.78);
}

.page-ressources .r-ergoshort{
  max-width: 92ch;
  margin: 0 0 22px;
  color: rgba(11,18,32,.78);
  font-weight: 800;
  line-height: 1.85;
}



/* Si ton texte suit directement la zone titre */
.page-ressources .title + .r-ergotext,
.page-ressources .title + .sub{
  margin-top: 10px;
}

/* Cas le plus fréquent : h2 (dans .title) puis ton bloc r-ergotext un peu plus loin */
.page-ressources .section h2{
  margin-bottom: 0;
}
.page-ressources .section .title + *{
  margin-top: 35px;
}

/* =========================================================
   MARITIME — cards sombres + tuile logo claire (ARIMer bleue)
   Scope : uniquement la section #maritime
   ========================================================= */

#maritime .r-links{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
  align-items: start;
}
@media (max-width: 720px){
  #maritime .r-links{ grid-template-columns: 1fr; }
}

/* ✅ Card principale : sombre (même si tu gardes glass/glass-dark dans le HTML) */
#maritime a.r-linkcard.glass.glass-dark{
  display:flex;
  align-items:center;
  gap:16px;

  padding:18px;
  text-decoration:none;

  border-radius: var(--radius2);
  border: 1px solid rgba(16,24,40,.10) !important;
  background: rgba(16,24,40,.02) !important;
  box-shadow: 0 18px 40px rgba(16,24,40,.18) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  color: rgba(33, 37, 46, 0.9) !important;
  position: relative;
  overflow:hidden;

  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

#maritime a.r-linkcard.glass.glass-dark:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(16,24,40,.28) !important;
  border-color: rgba(255,255,255,.18) !important;
}

/* ✅ Textes dans la card sombre */
#maritime a.r-linkcard.glass.glass-dark h3{
  color: hsla(33, 37, 46, 0.9) !important;
  margin:0 0 8px;
  font-weight:700;
  font-size: 1.16rem;
  line-height:1.2;
}
#maritime a.r-linkcard.glass.glass-dark p{
  color: rgba(33, 37, 46, 0.9) !important;
  margin:0;
  line-height:1.65;
}

/* ✅ Tuile logo : claire (et plus grande) */
#maritime .r-link-left{
  width: 120px;
  height: 120px;
  flex: 0 0 120px;

  display:grid;
  place-items:center;

  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
}

/* Logo plus grand */
#maritime .r-logo{
  width: 92px;
  height: 92px;
  object-fit: contain;
  display:block;
}

/* ✅ CTA (petite bulle ↗) */
#maritime .r-link-cta{
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display:grid;
  place-items:center;

  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.815);
  background: rgba(133, 133, 133, 0.082);
  color: rgba(15, 24, 53, 0.86);
}

/* ✅ ARIMer : SEULEMENT la tuile logo en bleu (logo blanc visible) */
#maritime a.r-linkcard[href*="arimer.org"] .r-link-left{
  background: rgba(7, 34, 83, 0.92);
  border-color: rgba(255,255,255,.22);
}

/* Option : si ton PNG blanc est un peu “plat”, tu peux lui donner du relief */
#maritime a.r-linkcard[href*="arimer.org"] .r-logo{
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.30));
}

@media (max-width: 560px){
  #maritime a.r-linkcard.glass.glass-dark{ padding:16px; gap:14px; }
  #maritime .r-link-left{
    width: 104px; height: 104px; flex-basis: 104px;
  }
  #maritime .r-logo{ width: 80px; height: 80px; }
}

/* =========================================================
   RESSOURCES — alternance de fonds comme le style global
   (sans ajouter .screen dans le HTML)
   ========================================================= */

body.page-ressources main > section:not(.hero){
  background:#fff;
}

body.page-ressources main > section:not(.hero):nth-of-type(even){
  background:
    radial-gradient(900px 420px at 15% 20%, rgba(11,95,255,.06), transparent 60%),
    radial-gradient(900px 420px at 80% 65%, rgba(25,180,106,.06), transparent 60%),
    linear-gradient(180deg, rgba(16, 24, 40, 0.031), rgba(243, 237, 194, 0.031));
}

/* =========================================================
   Titres de section — alignement gauche
   ========================================================= */

.page-ressources .title{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
  margin-bottom:26px;
}

.page-ressources .title h2{
  margin:0;
}

.page-ressources .title p{
  margin:0;
  text-align:left;
  color:var(--muted);
  line-height:1.45;
}