/* cf-landing — Acted visual language (typography, colors, components).
   Fonts, palette and component styles mirror www.acted.org (theme acted2018).
   Landing components are documented in docs/landing.md. */

@font-face {
  font-family: "Branding";
  src: url("/assets/fonts/BrandingSemilight.woff2") format("woff2"),
       url("/assets/fonts/BrandingSemilight.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Branding";
  src: url("/assets/fonts/BrandingMedium.woff2") format("woff2"),
       url("/assets/fonts/BrandingMedium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Branding";
  src: url("/assets/fonts/BrandingSemibold.woff2") format("woff2"),
       url("/assets/fonts/BrandingSemibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Branding";
  src: url("/assets/fonts/BrandingBold.woff2") format("woff2"),
       url("/assets/fonts/BrandingBold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --acted-blue: #1b1464;
  --acted-blue-dark: #0f0b39;
  --acted-green: #4bb272;
  --acted-green-dark: #3b8e5b;
  --acted-yellow: #fbbf00;
  --acted-grey: #f4f4f4;
  --acted-border: #d9d9d9;
  --acted-text: #333;
}

* { box-sizing: border-box; }

html { font-size: 10px; }

body {
  margin: 0;
  font-family: "Branding", sans-serif;
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--acted-text);
  background: #fff;
}

a { color: var(--acted-blue); transition: color .2s ease-in-out; }
a:hover { color: var(--acted-green); }

h1, h2, h3, h4, h5 { font-family: "Branding", sans-serif; margin: 0 0 1rem; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 15px; }

.material-icons.md-18 { font-size: 18px; }

/* ------------------------------ header ------------------------------ */

.first-header {
  min-height: 50px;
  background: var(--acted-grey);
  font-size: 1.3rem;
}
.first-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 50px;
}
.lang-selector {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--acted-blue);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: .1rem;
}
.first-header .menu-right ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.first-header .menu-right a { text-decoration: none; text-transform: uppercase; letter-spacing: .1rem; font-weight: 600; }

.second-header { border-bottom: 1px solid var(--acted-border); background: #fff; }
.second-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-top: 15px;
  padding-bottom: 15px;
}
.main-logo {
  display: block;
  width: 180px;
  height: 69px;
  background: url("/assets/img/logo-acted-couleur.png") 0 0 no-repeat;
  background-size: contain;
  text-indent: -435252px;
  margin: 0;
}
.main-nav ul { list-style: none; display: flex; gap: 25px; margin: 0; padding: 0; flex-wrap: wrap; }
.main-nav a {
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: .1rem;
  font-size: 1.4rem;
  color: var(--acted-blue);
  border-bottom: 3px solid transparent;
  padding-bottom: 4px;
}
.main-nav a:hover { color: var(--acted-green); border-bottom-color: var(--acted-green); text-decoration: none; }

/* ------------------------------ hero ------------------------------ */

.bg-blue {
  background: var(--acted-blue) url("/assets/img/texture-new.jpg") 50% 0% no-repeat;
  background-size: cover;
}

.main-slider { color: #fff; }
.main-slider .container { padding-top: 50px; padding-bottom: 50px; }

.ban-une {
  background: var(--acted-green);
  color: #fff;
  display: inline-block;
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: .1rem;
  padding: 1px 10px;
  text-transform: uppercase;
}

.title {
  font-size: 3rem;
  line-height: 4rem;
  font-weight: 600;
}
.title.uppercase { text-transform: uppercase; }
.title.white { color: #fff; }
.main-slider .lead { max-width: 760px; font-weight: 300; font-size: 1.7rem; margin-bottom: 30px; }

/* ------------------------------ buttons ------------------------------ */

.cta {
  font-family: "Branding", sans-serif;
  font-weight: 600;
  font-size: 1.6rem;
  text-align: center;
  display: inline-block;
  text-transform: uppercase;
  padding: 11px 30px;
  letter-spacing: .2rem;
  transition: background .2s ease-in-out, color .2s ease-in-out, border-color .2s ease-in-out;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.cta.cta-red { background: var(--acted-green); color: #fff; }
.cta.cta-red:hover { background: var(--acted-green-dark); color: #fff; }
.cta.cta-blue { background: var(--acted-blue); color: #fff; }
.cta.cta-blue:hover { background: var(--acted-blue-dark); color: #fff; }
.cta.border-white { border: 2px solid #fff; color: #fff; padding: 9px 30px; }
.cta.border-white:hover { border-color: var(--acted-green) !important; color: var(--acted-green); }

/* ------------------------------ landing sections ------------------------------ */

.landing-section { padding: 60px 0; }
.features-section { background: var(--acted-grey); }

.section-title {
  font-size: 2.2rem;
  line-height: 3rem;
  text-transform: uppercase;
  color: var(--acted-blue);
  font-weight: 600;
  margin-bottom: 25px;
}
.section-title.white { color: #fff; }

.section-lead { max-width: 760px; font-weight: 300; font-size: 1.7rem; margin: 0 0 20px; }
.section-text { max-width: 760px; font-weight: 500; margin: 0 0 15px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}
.feature-card {
  background: #fff;
  padding: 30px 25px;
  box-shadow: 0 2px 14px rgba(27, 20, 100, .08);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 15px;
  background: var(--acted-blue);
  color: #fff;
}
.feature-icon .material-icons { font-size: 30px; }
.feature-card h3 {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--acted-blue);
  margin-bottom: 8px;
}
.feature-card p { margin: 0; font-weight: 300; }

.stats-band { color: #fff; padding: 60px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
}
.stat-item { text-align: center; }
.stat-value {
  display: block;
  font-size: 4rem;
  line-height: 4.4rem;
  font-weight: 700;
  color: var(--acted-yellow);
}
.stat-label { font-size: 1.4rem; font-weight: 300; }

.cta-section { background: #fff; }
.cta-box { text-align: center; }
.cta-box .section-lead { margin: 0 auto 30px; }
.cta-actions { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }

/* ------------------------------ gallery ------------------------------ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}
.gallery-item {
  margin: 0;
  background: #fff;
  box-shadow: 0 2px 14px rgba(27, 20, 100, .08);
  overflow: hidden;
}
.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.gallery-item figcaption {
  padding: 10px 14px;
  font-size: 1.3rem;
  font-weight: 300;
  color: #777;
}

/* ------------------------------ quote ------------------------------ */

.quote-section { background: var(--acted-grey); }
.quote-block {
  background: #fff;
  padding: 40px 45px;
  max-width: 960px;
  margin: 0 auto;
  box-shadow: 0 2px 14px rgba(27, 20, 100, .08);
}
.quote-person {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.quote-photo {
  width: 160px;
  height: 160px;
  object-fit: cover;
  flex: none;
}
.quote-body { flex: 1; min-width: 240px; }
.quote-text {
  margin: 0 0 18px;
  padding-left: 20px;
  border-left: 4px solid var(--acted-green);
  font-size: 1.9rem;
  font-weight: 300;
  line-height: 1.55;
  color: var(--acted-blue);
}
.quote-name {
  display: block;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--acted-blue);
}
.quote-role { font-size: 1.4rem; font-weight: 300; color: #777; }

/* ------------------------------ signup form ------------------------------ */

.signup-container { max-width: 760px; }
.signup-box { background: #fff; padding: 30px; box-shadow: 0 2px 14px rgba(27, 20, 100, .08); }
.signup-form { display: flex; gap: 12px; flex-wrap: wrap; }
.signup-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  font-family: "Branding", sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--acted-text);
  padding: 10px 14px;
  border: 1px solid var(--acted-border);
  border-radius: 0;
  background: #fff;
  outline: none;
  transition: border-color .2s ease-in-out;
}
.signup-form input[type="email"]:focus { border-color: var(--acted-green); }
.signup-form.has-error input[type="email"] { border-color: #c0392b; }
.field-error { color: #c0392b; font-size: 1.3rem; font-weight: 600; margin-top: 8px; }
.consent { font-size: 1.3rem; font-weight: 300; color: #777; margin: 15px 0 0; }
.form-alert {
  background: #fdecea;
  border-left: 4px solid #c0392b;
  color: #7b241c;
  padding: 12px 18px;
  font-size: 1.4rem;
  margin-bottom: 25px;
}

/* ------------------------------ thanks ------------------------------ */

.thanks-block { background: #fff; padding: 35px 30px; text-align: center; box-shadow: 0 2px 14px rgba(27, 20, 100, .08); }
.thanks-block .material-icons { font-size: 64px; color: var(--acted-green); }
.thanks-block h3 { font-size: 2rem; color: var(--acted-blue); margin: 10px 0; }
.thanks-block p { max-width: 520px; margin: 0 auto 25px; font-weight: 300; font-size: 1.7rem; }

/* ------------------------------ footer ------------------------------ */

.site-footer { color: #fff; padding: 40px 0 30px; }
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-logo {
  display: block;
  width: 160px;
  height: 41px;
  background: url("/assets/img/logo-acted-blanc.png") 0 0 no-repeat;
  background-size: cover;
  text-indent: -435252px;
}
.site-footer p { margin: 0; font-size: 1.3rem; font-weight: 300; }

/* ------------------------------ responsive ------------------------------ */

@media (max-width: 767px) {
  .first-header .menu-right { display: none; }
  .second-header .container { padding-top: 12px; padding-bottom: 12px; }
  .main-nav { display: none; }
  .main-logo { width: 150px; height: 58px; }

  .main-slider .container { padding-top: 35px; padding-bottom: 35px; }
  .title { font-size: 2.3rem; line-height: 3rem; }
  .main-slider .lead { font-size: 1.55rem; }
  .cta { font-size: 1.4rem; padding: 11px 22px; letter-spacing: .12rem; }

  .landing-section { padding: 35px 0; }
  .section-title { font-size: 1.9rem; line-height: 2.6rem; margin-bottom: 18px; }
  .section-lead { font-size: 1.55rem; }

  .features-grid, .gallery-grid { gap: 18px; }
  .feature-card { padding: 22px 18px; }

  .stats-band { padding: 40px 0; }
  .stats-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 18px; }
  .stat-value { font-size: 3rem; line-height: 3.4rem; }

  .quote-block { padding: 28px 22px; }
  .quote-person { flex-direction: column; align-items: flex-start; gap: 20px; }
  .quote-text { font-size: 1.7rem; padding-left: 15px; margin-bottom: 14px; }

  .cta-actions { gap: 12px; }
  .cta-actions .cta { width: 100%; }

  .signup-box { padding: 22px 18px; }
  .signup-form input[type="email"] { min-width: 0; width: 100%; }
  .signup-form .cta { width: 100%; }

  .thanks-block { padding: 28px 20px; }
  .thanks-block p { font-size: 1.5rem; }

  .site-footer .container { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 400px) {
  .first-header { font-size: 1.1rem; }
  .title { font-size: 2rem; line-height: 2.7rem; }
  .stat-value { font-size: 2.6rem; line-height: 3rem; }
  .gallery-item figcaption { font-size: 1.2rem; }
}
