/* Téthys Projects — styles modelled on the former "Charity Foundation" WordPress theme */
:root {
  --orange: #c7501b;
  --gold: #c79742;
  --teal: #30c1af;
  --teal-dark: #008e78;
  --teal-bg: #4ec4ae;
  --brown: #b08456;
  --heading: #727475;
  --text: #8b8d8e;
  --line: #f1f1f1;
  --soft: #f9f9f9;
  --footer: #4c4c4c;
  --container: 1170px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 14px/1.9 Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: #fff;
}
img, video { max-width: 100%; height: auto; }
a { color: var(--teal-dark); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .8; }
h1, h2, h3, h4, h5, h6 { color: var(--heading); font-weight: 400; line-height: 1.3; margin: 0 0 .6em; }
p { margin: 0 0 1.2em; }
strong { color: var(--heading); }
hr { border: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 15px; }
.center { text-align: center; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: #000; color: #fff; padding: 8px 14px; }
.skip:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--teal); color: #fff; font: 500 14px/1 Poppins, sans-serif;
  text-transform: uppercase; letter-spacing: .5px;
  padding: 15px 25px; border-radius: 30px; margin: 4px;
}
.btn:hover { opacity: .85; }
.btn-small { padding: 10px 20px; font-size: 13px; margin: 0; }
.btn-outline { background: transparent; color: var(--teal-dark); box-shadow: inset 0 0 0 2px var(--teal-dark); font-size: 16px; }

/* Header: transparent over the banner/hero photo */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 90px; }
.logo img { display: block; width: 134px; height: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.site-nav a {
  display: block; color: #fff; text-transform: uppercase; font-size: 13px; font-weight: 400;
  padding: 4px 12px; border-bottom: 2px solid transparent;
}
.site-nav a[aria-current="page"] { border-bottom-color: #fff; }
.site-nav a.pill { background: var(--teal); border-radius: 30px; padding: 4px 15px; border: 0; margin-left: 10px; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .site-header { position: relative; background: var(--heading); }
  .header-inner { min-height: 70px; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer;
  }
  .nav-toggle > span:not(.sr-only) { display: block; width: 26px; height: 2px; background: #fff; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--heading); padding: 10px 15px 20px; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; }
  .site-nav a.pill { margin: 10px 0 0 12px; }
}

/* Banner (inner pages) */
.banner {
  position: relative; min-height: 410px; display: flex; align-items: flex-end;
  background: var(--heading) center / cover no-repeat;
  padding: 210px 0 70px;
}
.banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.15) 40%, rgba(0,0,0,.35)); }
.banner .container { position: relative; }
.banner h1 { color: #fff; font-size: 35px; margin: 0; }
@media (max-width: 900px) { .banner { min-height: 240px; padding: 90px 0 40px; } .banner h1 { font-size: 28px; } }

.page-body { padding-top: 50px; padding-bottom: 60px; }

/* Home hero */
.hero {
  position: relative; min-height: min(100vh, 860px); display: flex; align-items: center;
  background: #333 center / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.25); }
.hero-text { position: relative; color: #fff; }
.hero-text h1 { color: #fff; font-size: clamp(38px, 6vw, 80px); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin: 0 0 10px; }
.hero-text p { font-size: clamp(18px, 2.4vw, 30px); line-height: 1.4; font-weight: 300; }
@media (max-width: 900px) { .hero { min-height: 70vh; } }

.under-hero { display: flex; flex-wrap: wrap; color: #fff; }
.uh { min-height: 298px; display: flex; align-items: center; padding: 50px; background: var(--teal-bg) center / cover no-repeat; }
.uh h2 { color: #fff; font-size: 35px; line-height: 45px; text-transform: uppercase; margin: 0 0 20px; }
.uh-1 { flex: 0 0 37.5%; }
.uh-2 { flex: 0 0 25%; background: var(--brown); flex-direction: column; align-items: stretch; justify-content: center; padding: 30px 50px; }
.uh-2 h2 { font-size: 30px; line-height: 1.2; margin-bottom: 10px; }
.uh-3 { flex: 0 0 37.5%; justify-content: center; text-align: center; }
.uh-3 h2 { font-weight: 700; margin-bottom: 20px; }
.stats { display: flex; }
.stats div { flex: 1; }
.stats strong { display: block; color: #fff; font-size: 50px; line-height: 50px; }
.stats span { letter-spacing: 2px; text-transform: uppercase; }
.calendar { list-style: none; margin: 0; padding: 0; }
.calendar li + li { border-top: 1px solid #efc94c; }
.calendar a { display: flex; justify-content: space-between; gap: 10px; color: #fff; padding: 10px 0; }
.kicker { text-transform: uppercase; letter-spacing: 3px; font-size: 20px; font-weight: 300; color: var(--orange); margin: 0 0 5px; }
.uh .kicker { color: #fff; }
@media (max-width: 1199px) {
  .uh-1, .uh-2, .uh-3 { flex-basis: 100%; justify-content: center; text-align: center; }
  .uh h2 { font-size: 25px; }
  .uh-1 > div { width: 100%; }
}

.section { padding-top: 60px; padding-bottom: 40px; }
.big-title { color: var(--orange); font-size: 50px; line-height: 1; font-weight: 700; text-transform: uppercase; margin-bottom: 25px; }
.lead { font-size: 15px; line-height: 25px; color: var(--heading); }
@media (max-width: 700px) { .big-title { font-size: 36px; } }

.map { width: 100%; height: 600px; background: #e8eef0; z-index: 1; }
.map-office { height: 420px; margin-bottom: 10px; }
.map-popup img { display: block; width: 100%; height: 120px; object-fit: cover; margin-bottom: 8px; }
.map-popup strong { display: block; font-size: 15px; margin-bottom: 4px; }
.map-popup p { margin: 0 0 6px !important; font-size: 12px; line-height: 1.6; color: var(--text); }
@media (max-width: 700px) { .map { height: 420px; } }

/* Decorative drawings beside the grids (as on the old site) */
.deco-wrap { position: relative; }
.deco { position: absolute; pointer-events: none; z-index: 2; }
.deco-house { left: -330px; bottom: -80px; }
.deco-rice { right: -360px; bottom: -110px; }
@media (max-width: 1850px) { .deco { display: none; } }

/* Parallax bands */
.parallax { background: #555 center / cover no-repeat fixed; position: relative; }
.parallax::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.3); }
.parallax > .container { position: relative; }
@media (max-width: 1024px), (hover: none) { .parallax { background-attachment: scroll; } }
.about-band { margin-top: 70px; padding: 100px 0 200px; color: #fff; }
.about-inner { display: flex; gap: 40px; align-items: center; }
.about-inner > * { flex: 1; }
.about-left { text-align: center; }
.about-left h2 { color: #fff; font-size: 50px; line-height: 1.1; margin-bottom: 30px; }
.about-right { text-align: right; font-size: 15px; line-height: 25px; margin: 0; }
@media (max-width: 800px) {
  .about-inner { flex-direction: column; }
  .about-right { text-align: center; }
  .about-left h2 { font-size: 36px; }
}
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: -110px; position: relative; }
.tile:hover { box-shadow: 0 8px 15px 2px rgba(0,0,0,.35); opacity: 1; }
@media (max-width: 800px) { .tiles { grid-template-columns: 1fr; } }

.newsletter-band { padding: 100px 0; margin-top: 60px; }
.newsletter-box { background: #fff; padding: 40px; max-width: 470px; margin-left: 100px; }
.newsletter-box h2 { font-size: 25px; }
@media (max-width: 800px) { .newsletter-box { margin: 0 auto; } }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 30px 0; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 650px) { .grid { grid-template-columns: 1fr; } }
.card { border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; }
.card-img { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--soft); }
.card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,.55)); }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-meta { position: absolute; left: 30px; bottom: 15px; z-index: 1; color: #fff; font-size: 12px; }
.card-body { padding: 40px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.card-body h3 { font-size: 20px; font-weight: 500; }
.card-body h3 a { color: var(--heading); }
.card-body p { flex: 1; }
.card .more { text-transform: uppercase; font-weight: 700; font-size: 13px; }
@media (max-width: 500px) { .card-body { padding: 25px; } }

/* Team cards / tiles */
.team-card { position: relative; display: block; overflow: hidden; margin: 10px 0; }
.team-card img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.tile img { aspect-ratio: 3 / 2; }
.team-card .team-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  padding: 25px 15px; text-align: center; background: linear-gradient(transparent 50%, rgba(0,0,0,.65));
}
.team-overlay h3 { color: #fff; font-size: 20px; margin: 0; }
.team-role { color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1px; margin: 4px 0 0; }

/* Content generated from WordPress */
.row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.col { flex: 0 0 var(--w, 100%); max-width: var(--w, 100%); padding: 0 15px; }
@media (max-width: 767px) { .col { flex-basis: 100%; max-width: 100%; } .sc-text { text-align: center !important; } }
.sc-text { color: var(--heading); }
.sc-line { height: 1px; margin: 0; }
.sc-image img { display: block; }
.text h2, .text h3, .text h4 { margin-top: 1.4em; }
.text h2:first-child, .text h3:first-child { margin-top: 0; }
.text ul, .text ol { padding-left: 1.3em; }
.text img { margin: 10px 0; }
.text a { text-decoration: underline; }
.wp-caption { margin: 20px auto; padding: 8px; border: 1px solid var(--line); text-align: center; }
.wp-caption img { display: block; margin: 0 auto; }
.wp-caption figcaption { font-size: 11px; padding: 6px 0 0; }
.alignleft { float: left; margin: 0 20px 10px 0; }
.alignright { float: right; margin: 0 0 10px 20px; }
.aligncenter, .wp-caption.alignnone { margin-left: auto; margin-right: auto; }
img.aligncenter { display: block; }
.video { margin: 20px 0; }
.video video { width: 100%; background: #000; }
.badge-row { padding: 15px 0; color: var(--heading); }
.badge-row strong { font-weight: 500; font-size: 14px; }
.badge-row span { float: right; }

/* Tabs (project pages) */
.tabs { margin: 20px 0; }
.tabs-nav { display: flex; flex-wrap: wrap; }
.tabs-nav button {
  font: 400 13px Poppins, sans-serif; color: var(--heading); cursor: pointer;
  background: #ebebeb; border: 0; padding: 14px 20px;
}
.tabs-nav button[aria-selected="true"] { background: var(--soft); }
.tab-panel { background: var(--soft); padding: 25px 30px; }
.tab-panel::after { content: ""; display: table; clear: both; }

.cause .feature { display: block; width: 100%; max-height: 640px; object-fit: cover; margin-bottom: 40px; }
.label-line { display: inline-block; font-size: 14px; color: var(--heading); border-bottom: 2px solid var(--heading); padding-bottom: 6px; margin-bottom: 10px; }
.prevnext { background: #444; }
.prevnext .container { display: flex; justify-content: space-between; align-items: center; min-height: 80px; gap: 20px; }
.prevnext a { color: #fff; font-size: 14px; }
.prevnext .all { font-size: 24px; }
@media (max-width: 600px) { .prevnext a span { display: none; } .prevnext a { font-size: 26px; } }

/* Articles */
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 60px; }
@media (max-width: 900px) { .with-sidebar { grid-template-columns: 1fr; } }
.post-meta { font-size: 13px; color: var(--text); border-bottom: 1px solid var(--line); padding-bottom: 15px; margin-bottom: 30px; }
.sidebar h2 { font-size: 18px; margin: 0 0 15px; }
.sidebar ul { list-style: none; margin: 0 0 35px; padding: 0; }
.sidebar li { border-bottom: 1px solid var(--line); }
.sidebar li a { display: block; color: var(--text); padding: 10px 5px; font-size: 13px; line-height: 1.6; }
.sidebar li a[aria-current="page"] { color: var(--heading); font-weight: 500; }

/* Forms */
.form label { display: block; color: var(--heading); font-size: 13px; margin-bottom: 15px; }
.form input[type=text], .form input[type=email], .form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 15px;
  font: 400 14px Poppins, sans-serif; color: var(--heading);
  border: 1px solid var(--line); background: #fff; border-radius: 0;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--teal); outline-offset: -1px; }
.form .btn { background: #00baa3; margin: 5px 0 0; }
.form-inline { display: flex; flex-wrap: wrap; gap: 10px; }
.form-inline input[type=email] { flex: 1 1 200px; margin: 0; }
.form-inline .btn { margin: 0; }
.form-inline .form-msg { flex-basis: 100%; }
.form-msg { padding: 12px 15px; margin-bottom: 20px; color: #fff; }
.form-msg.ok { background: #00baa3; }
.form-msg.err { background: #d55342; }
.form-msg ul { margin: 0; padding-left: 1.2em; }

/* Qui sommes-nous */
.page-qui-sommes-nous h1.sc-text { font-size: 40px !important; line-height: 1.25 !important; }
.page-qui-sommes-nous h1.sc-text u { text-decoration-thickness: 2px; }
@media (max-width: 767px) { .page-qui-sommes-nous h1.sc-text { font-size: 30px !important; } }

/* Footer */
.site-footer { background: var(--footer); color: #fff; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 50px; padding-bottom: 40px; }
.footer-logo { width: 250px; height: auto; margin: 20px 0 15px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 30px; }
.contact-list li {
  padding-left: 40px; background: no-repeat 0 2px / 24px auto;
  font-weight: 500; font-size: 13px; line-height: 1.4; color: #fff;
}
.contact-list a { color: #fff; }
.footer-partners h3 { color: #fff; font-size: 16px; text-transform: uppercase; margin: 60px 0 20px; }
.partners { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.partners img { display: block; width: 96px; height: 96px; object-fit: contain; background: #fff; }
.copyright { background: #fff; color: var(--text); font-size: 13px; }
.copyright .container { border-top: 1px solid var(--line); padding-top: 18px; padding-bottom: 18px; }
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-partners h3 { margin-top: 0; }
}
@media (max-width: 500px) { .contact-list { grid-template-columns: 1fr; } }

/* Leaflet popups in theme font */
.leaflet-container { font-family: Poppins, sans-serif; }
.leaflet-popup-content { margin: 12px 14px; width: 220px; }
