:root {
  --red: #D63B1F; --red-d: #B52E14; --red-l: #F9EDE9;
  --gold: rgba(232,160,32,.75); --gold-l: rgba(232,160,32,.16);
  --blue: #2F6BB5; --blue-l: #E8F0FA;
  --white: #FFFFFF; --off: #F8F6F2; --light: #F2EDE7;
  --ink: #1A1410; --ink2: #3D3530; --ink3: #7A706A;
  --radius: 14px; --radius-lg: 22px;
  --glass-blur: blur(14px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; color: var(--ink); background: linear-gradient(160deg, #e9f1fb 0%, #f3ede1 45%, #e6eff7 100%); min-height: 100vh; overflow-x: hidden; line-height: 1.6; }
h1,h2,h3,h4,h5,h6 { font-family: 'Raleway', sans-serif; }
a { text-decoration: none; }
img { max-width: 100%; }

#dove-watermark { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 0; opacity: .10; }

.navbar { background: rgba(255,255,255,.55); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border-bottom: 1px solid rgba(255,255,255,.35); padding: 10px 0; position: sticky; top: 0; z-index: 1000; }
.navbar-brand { display: flex; align-items: center; gap: 10px; }
.nav-emblem { width: 42px; height: 42px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: 0 0 0 3px rgba(232,160,32,.4); flex-shrink: 0; overflow: hidden; }
.nav-emblem img { width: 80%; height: 80%; object-fit: cover; border-radius: 50%; display: block; margin: auto; }
.brand-name .line1 { display: block; color: var(--blue); font-weight: 800; font-size: .95rem; font-family: 'Raleway', sans-serif; }
.brand-name .line2 { display: block; color: var(--ink3); font-size: .72rem; }
.nav-link { font-family: 'Raleway', sans-serif; font-weight: 600; font-size: .88rem; color: var(--blue) !important; padding: 6px 14px !important; }
.nav-link:hover { color: var(--red) !important; }
.btn-nav-cta { background: var(--red); color: #fff !important; border-radius: 50px; padding: 8px 20px !important; }

section, .page-section { position: relative; z-index: 1; padding: 70px 0; }
.section-title { font-size: clamp(1.6rem,3vw,2.4rem); font-weight: 800; color: var(--blue); margin-bottom: .5rem; }
.section-sub { color: var(--ink3); font-size: 1rem; margin-bottom: 2rem; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--red); }

.hero { position: relative; min-height: 420px; background-size: cover; background-position: center; display: flex; align-items: center; overflow: hidden; z-index: 1; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(47,107,181,.78) 0%, rgba(47,107,181,.6) 55%, rgba(232,160,32,.55) 100%); }
.hero-content { position: relative; z-index: 2; text-align: center; width: 100%; padding: 60px 20px; }
.hero-badge { display: inline-block; background: rgba(255,255,255,.15); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.3); border-radius: 50px; padding: 6px 22px; color: rgba(255,255,255,.9); font-size: .75rem; letter-spacing: .12em; margin-bottom: 1rem; font-weight: 600; }
.hero-content h1 { color: #fff; font-size: clamp(2rem,5vw,3.4rem); font-weight: 800; text-shadow: 0 2px 18px rgba(0,0,0,.4); margin-bottom: .6rem; }
.hero-sub { color: rgba(255,255,255,.85); font-size: 1.05rem; max-width: 560px; margin: .5rem auto 0; }

.glass { background: rgba(255,255,255,.45); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border: 1px solid rgba(255,255,255,.5); border-radius: 16px; }

.impact-card, .project-card, .blog-card, .actu-card { background: rgba(255,255,255,.5); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.6); border-radius: 16px; overflow: hidden; height: 100%; transition: transform .25s, box-shadow .25s, background .25s; box-shadow: 0 4px 24px rgba(47,107,181,.08); }
.impact-card:hover, .project-card:hover, .blog-card:hover, .actu-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.72); box-shadow: 0 16px 40px rgba(47,107,181,.15); }
 .impact-card .card-img, .blog-card .card-img, .actu-card .card-img { height: 160px; object-fit: cover; width: 100%; }
 .actu-card .card-img { height: 180px; object-fit: cover; width: 100%; }
 .blog-card .card-img { height: 140px; object-fit: cover; width: 100%; }
 .impact-card .card-body, .blog-card .card-body, .actu-card .card-body { padding: 1.2rem; }
 .project-card .card-body { padding: 1.25rem; }
/* Mobile: reduce project card scale and spacing to avoid stretched layout */
@media (max-width: 600px) {
  .projects-list, .projects-grid { padding-left: 0.5rem; padding-right: 0.5rem; }
  .project-card { transform: scale(0.95); transform-origin: top center; margin-bottom: 0.75rem; }
  .project-card .card-body { padding-left: 0.75rem; padding-right: 0.75rem; }
  .project-card img { max-height: 160px; width: 100%; object-fit: cover; }
  /* Truncate description to ~20 characters with ellipsis */
  .project-card .card-body p { max-width: 20ch; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  /* Make the thematic badge much smaller on mobile */
  .project-card .badge-teal { font-size: .55rem; padding: 2px 8px; border-radius: 10px; display: inline-block; }
  /* Reduce title size slightly on mobile to help layout */
  .project-card h5 { font-size: .92rem; margin-top: .25rem; margin-bottom: .35rem; }
}
.impact-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 10px; color: #fff; }
.impact-card h5, .project-card h5, .blog-card h6, .actu-card h5 { color: var(--blue); font-weight: 700; margin-bottom: .5rem; font-size: .98rem; }
.impact-card p, .project-card p, .blog-card p, .actu-card p, .impact-card ul { font-size: .85rem; color: var(--ink3); margin-bottom: .8rem; }
.impact-card ul { padding-left: 1.1rem; }
.read-more, .btn-read { font-size: .8rem; color: var(--red); font-weight: 700; }
.read-more:hover { text-decoration: underline; }
.btn-read { display: inline-block; padding: 5px 14px; border-radius: 30px; background: var(--red); color: #fff !important; }
.btn-read:hover { background: var(--red-d); }
.badge-teal { background: rgba(47,107,181,.12); color: var(--blue); font-size: .68rem; padding: 3px 12px; border-radius: 20px; font-weight: 700; display: inline-block; margin-bottom: 6px; border: 1px solid rgba(47,107,181,.2); }

.video-thumb { position: relative; border-radius: 10px; overflow: hidden; cursor: pointer; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 48px; height: 36px; background: rgba(232,160,32,.75); border-radius: 10px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 12px rgba(232,160,32,.18); }
.play-btn i { color: #fff; font-size: 16px; }

.gallery-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; }
.gallery-grid a img, .gallery-grid img { width: 100%; height: 100px; object-fit: cover; border-radius: 10px; border: 1px solid rgba(255,255,255,.5); transition: opacity .2s, transform .2s; cursor: pointer; }
.gallery-grid a:hover img { opacity: .85; transform: scale(1.04); }
@media (max-width: 767px) { .gallery-grid { grid-template-columns: repeat(2,1fr); } }

.pilier-card { background: rgba(255,255,255,.5); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.55); border-radius: var(--radius); padding: 26px; height: 100%; transition: transform .25s; }
.pilier-card:hover { transform: translateY(-4px); }
.pilier-card h4 { font-size: .95rem; font-weight: 700; margin-bottom: 6px; color: var(--blue); }
.pilier-card p { font-size: .82rem; color: var(--ink3); }
.team-card { background: rgba(255,255,255,.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.65); border-radius: var(--radius); overflow: hidden; transition: transform .25s; }
.team-card:hover { transform: translateY(-4px); }
.team-card-image { width: 100%; height: 260px; overflow: hidden; }
.team-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-card h4 { font-size: 1.1rem; margin: 1rem 1rem 0.5rem; color: var(--blue); }
.team-card .team-role { font-size: 0.9rem; font-weight: 700; color: var(--gold); margin: 0 1rem 0.75rem; }
.team-card p { margin: 0 1rem 1rem; font-size: 0.92rem; line-height: 1.6; color: var(--ink3); }
.team-card p:last-child { margin-bottom: 1.3rem; }

.cta-band { background: linear-gradient(120deg, rgba(232,160,32,.18), rgba(232,160,32,.12)); border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius-lg); padding: 30px 28px; color: #fff; margin: 0 auto; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); max-width: 1160px; }
.cta-band h2 { font-size: clamp(1.3rem,2.4vw,1.8rem); font-weight: 800; line-height: 1.1; }
.btn-cta-white { background: #fff; color: var(--red) !important; padding: 12px 28px; border-radius: 50px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.btn-cta-white:hover { background: var(--gold-l); }

.contact-form-wrap { background: rgba(255,255,255,.55); border-radius: var(--radius-lg); padding: 36px; }
.form-control-custom { width: 100%; background: rgba(255,255,255,.6); border: 1.5px solid rgba(0,0,0,.08); border-radius: 10px; padding: 10px 14px; font-size: .9rem; }
.form-control-custom:focus { outline: none; border-color: var(--blue); }
.form-label-custom { font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink3); display: block; margin-bottom: 6px; }
.submit-btn { background: var(--red); color: #fff; border: none; padding: 10px 22px; border-radius: 50px; font-weight: 700; cursor: pointer; }
.submit-btn:hover { background: var(--red-d); }

footer { position: relative; z-index: 1; background: rgba(20,40,70,.88); backdrop-filter: blur(20px); color: #c8d4e0; padding: 50px 0 24px; margin-top: 40px; }
footer h6 { color: #fff; font-weight: 700; font-size: .9rem; margin-bottom: 1rem; }
footer a { color: rgba(200,212,224,.78); font-size: .82rem; line-height: 2; display: block; }
footer a:hover { color: var(--gold); }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.footer-brand-name .line1 { color: #fff; font-weight: 700; font-size: .95rem; }
.footer-brand-name .line2 { color: var(--gold); font-size: .8rem; }
.footer-desc { font-size: .78rem; color: rgba(255,255,255,.45); max-width: 280px; }
.social-icons { display: flex; gap: 8px; margin-top: .8rem; }
.social-icon { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center; color: #fff; }
.social-icon:hover { background: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 30px; padding-top: 16px; display: flex; justify-content: space-between; font-size: .73rem; color: rgba(255,255,255,.28); flex-wrap: wrap; gap: 6px; }

.tag-blog{background:var(--blue-l);color:var(--blue);} .tag-plaid{background:var(--blue-l);color:var(--blue);} .tag-field{background:var(--red-l);color:var(--red);} .tag-event{background:var(--gold-l);color:#a06000;} .tag-media{background:#eee;color:#555;} .tag-formation{background:#eafaf0;color:#2d8a31;}
.actu-tag { display: inline-block; font-size: .68rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; }

.pagination-jfp { display: flex; gap: 6px; flex-wrap: wrap; }
.pagination-jfp a { padding: 6px 14px; border-radius: 8px; background: rgba(255,255,255,.5); color: var(--blue); font-weight: 600; font-size: .85rem; }
.pagination-jfp a.active { background: var(--blue); color: #fff; }

.search-filter-bar { background: rgba(255,255,255,.5); backdrop-filter: blur(14px); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 30px; }

.article-hero-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 24px; }
.article-content { font-size: 1.02rem; line-height: 1.85; color: var(--ink2); }
.article-content p { margin-bottom: 1rem; }
.article-gallery img { border-radius: 10px; height: 130px; object-fit: cover; width: 100%; }
.detail-sidebar { display: flex; flex-direction: column; gap: 1.4rem; }
.detail-sidebar .section-title { margin-bottom: 1rem; }
.detail-related-card { display: flex; gap: 12px; align-items: flex-start; }
.detail-related-card img { width: 90px; height: 90px; object-fit: cover; border-radius: 14px; flex-shrink: 0; }
.detail-related-card .card-body { padding: 0; }
.detail-related-card h6 { margin: 0 0 6px; font-size: .95rem; }
.detail-related-card p { margin: 0; color: var(--ink3); font-size: .85rem; }

@media (max-width: 991px) {
  .detail-sidebar { margin-top: 30px; }
}
@media (max-width: 767px) { section, .page-section { padding: 50px 0; } }
