/* ==========================================================
   Fonderie d'Aluminium de Fontenay - feuille de style
   ========================================================== */

/* Police des icônes (sous-ensemble Font Awesome 5 Free Solid : 3 icônes, licence SIL OFL 1.1) */
@font-face {
  font-family: "icones";
  src: url("../fonts/icones.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: block;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: sans-serif;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: "proxima-nova", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #362f2d;
  text-align: left;
  background-color: #fff;
}

::selection {
  color: #fff;
  background: #0061A7;
}

h1,
h2 {
  margin: 0;
  padding: 0;
  font-weight: 500;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

ul {
  margin-top: 0;
  margin-bottom: 1rem;
}

strong {
  font-weight: bolder;
}

small {
  font-size: 80%;
}

a {
  color: #0061A7;
  text-decoration: none;
  background-color: transparent;
}

a,
button {
  transition: all 0.2s ease-in-out;
}

a:hover {
  color: #01315B;
  text-decoration: underline;
}

img {
  vertical-align: middle;
  border-style: none;
}

figure {
  margin: 0 0 1rem;
}

button {
  margin: 0;
  font-family: inherit;
  overflow: visible;
  text-transform: none;
  border-radius: 0;
}

button:focus {
  outline: 1px dotted;
  outline: 5px auto -webkit-focus-ring-color;
}

.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container { max-width: 540px; }
}

@media (min-width: 768px) {
  .container { max-width: 720px; }
}

@media (min-width: 992px) {
  .container { max-width: 960px; }
}

@media (min-width: 1200px) {
  .container { max-width: 1140px; }
}

.text-center {
  text-align: center;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  padding: 10px 15px;
  margin-bottom: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.42857143;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  white-space: initial;
  vertical-align: middle;
  touch-action: manipulation;
  cursor: pointer;
  user-select: none;
  color: #fff;
  background-color: #009EE3;
  background-clip: padding-box;
  border: 3px solid #009EE3;
  border-radius: 0;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn:hover,
.btn:focus {
  color: #fff;
  text-decoration: none;
  background-color: #0061A7;
  border-color: #0061A7;
}

.btn:focus {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* ---------- En-tête ---------- */
#header {
  position: relative;
  z-index: 9999;
  color: #000;
  background: #fff;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.header-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.logo {
  display: flex;
  color: #0061A7;
}

.logo:hover {
  color: #0061A7;
  text-decoration: none;
}

.logo img {
  width: auto;
  height: 100px;
}

.logo span {
  margin: auto 0 auto 1rem;
  font-size: 30px;
  line-height: 32px;
  font-weight: 700;
}

.header-contact {
  margin-bottom: auto;
  text-align: center;
}

.header-contact .tel {
  display: inline-block;
  margin-top: 10px;
  color: #000;
}

.header-contact .tel:hover {
  color: #009EE3;
  text-decoration: none;
}

.header-contact .btn {
  font-size: 18px;
}

@media (min-width: 768px) {
  .header-top {
    flex-direction: row;
  }

  .logo {
    margin-right: auto;
  }
}

@media (max-width: 767px) {
  .header-contact {
    display: none;
  }
}

@media screen and (max-width: 450px) {
  .logo img {
    height: 80px;
  }

  .logo span {
    font-size: 22px;
    line-height: 24px;
  }
}

@media screen and (max-width: 350px) {
  .logo img {
    height: 65px;
  }

  .logo span {
    font-size: 20px;
    line-height: 22px;
  }

  .header-top {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

/* ---------- Menu ---------- */
#nav {
  background: #01315B;
}

.navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
}

.navbar-brand {
  display: inline-block;
  margin-right: 1rem;
  font-size: 1.25rem;
  line-height: inherit;
  white-space: nowrap;
  color: #fff;
}

.navbar-toggler {
  padding: 0.25rem 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
  background-color: transparent;
  border: 1px solid #fff;
  border-radius: 0.25rem;
  cursor: pointer;
}

.navbar-toggler span {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  background: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E") no-repeat center center;
  background-size: 100% 100%;
}

.navbar-collapse {
  display: none;
  flex-basis: 100%;
  flex-grow: 1;
  align-items: center;
}

.navbar-collapse.open {
  display: block;
}

.navbar-collapse.collapsing {
  display: block;
  position: relative;
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease;
}

.menu {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

.menu li {
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.menu li + li {
  margin-left: 15px;
}

.menu a {
  display: block;
  padding: 12px 20px;
  color: #fff;
  font-size: 16px;
}

.menu a:hover,
.menu a[aria-current="page"] {
  color: #fff;
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.1);
}

.menu a[aria-current="page"] {
  font-weight: 700;
}

.menu .mobile-only {
  display: none;
}

@media (min-width: 768px) {
  .navbar {
    flex-flow: row nowrap;
    justify-content: flex-start;
  }

  .navbar-brand,
  .navbar-toggler {
    display: none;
  }

  .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }

  .menu {
    flex-direction: row;
  }
}

@media (max-width: 767px) {
  .menu .mobile-only {
    display: block;
  }
}

@media screen and (max-width: 768px) {
  .menu {
    margin-top: 10px;
  }

  .menu li {
    margin: 5px 0;
  }

  .menu li + li {
    margin-left: 0;
  }

  .menu a {
    padding: 10px 15px;
  }
}

/* ---------- Accueil : vidéo ---------- */
#header-home {
  position: relative;
  width: 100%;
  margin-top: -300px;
  overflow-x: hidden;
}

#header-home h1 {
  position: absolute;
  z-index: 1;
  width: 100%;
  color: #fff;
  text-align: center;
}

.bg-video {
  position: relative;
  z-index: 2;
}

.bg-video video {
  width: 100%;
}

.content-video {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  padding-top: 300px;
}

.content-video .container {
  position: relative;
  height: 100%;
}

.features {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  height: 100%;
  margin-right: -15px;
  margin-left: -15px;
}

.feature {
  position: relative;
  width: 100%;
  min-height: 1px;
  padding-right: 15px;
  padding-left: 15px;
  text-align: center;
}

.feature h2 {
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  font-size: 25px;
  letter-spacing: 1.5px;
}

.icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 10px;
  font-size: 50px;
  line-height: 100px;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  border: 3px solid #fff;
  border-radius: 50%;
}

.icon::before {
  display: inline-block;
  font-family: "icones";
  font-weight: 900;
  font-style: normal;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-savoir-faire::before { content: "\f2a7"; }
.icon-qualite::before { content: "\f559"; }
.icon-points-forts::before { content: "\f164"; }

@media (min-width: 768px) {
  .feature {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
}

@media screen and (max-width: 1199px) {
  #header-home {
    margin-top: -100px;
  }

  .content-video {
    padding-top: 100px;
  }

  .feature h2 {
    font-size: 22px;
  }

  .icon {
    width: 80px;
    height: 80px;
    font-size: 40px;
    line-height: 80px;
  }
}

@media screen and (max-width: 992px) {
  .feature h2 {
    font-size: 18px;
  }

  .icon {
    width: 70px;
    height: 70px;
    font-size: 35px;
    line-height: 70px;
  }
}

@media screen and (max-width: 768px) {
  #header-home {
    margin-top: 0;
  }

  .content-video {
    padding-top: 0;
  }

  .feature h2 {
    font-size: 16px;
    letter-spacing: 1px;
    margin-bottom: 20px;
  }

  .icon {
    width: 50px;
    height: 50px;
    margin: 20px auto 10px;
    font-size: 25px;
    line-height: 50px;
  }
}

@media screen and (max-width: 630px) {
  .content-video {
    display: none;
  }
}

/* ---------- Accueil : métiers ---------- */
.works {
  display: grid;
  grid-template-columns: 100%;
  gap: 32px 30px;
  padding-top: 64px;
  padding-bottom: 64px;
  text-align: center;
}

.work {
  display: flex;
  min-height: 200px;
  padding: 1rem;
  background: transparent no-repeat center / cover;
}

.work strong {
  margin: auto;
  padding: 0.25rem;
  color: #000;
  background-color: #fff;
}

.work:hover,
.work:hover strong {
  color: #0061A7;
  text-decoration: none;
}

.work-alliages { background-image: url("../images/alliages.jpg"); }
.work-moulage { background-image: url("../images/moulage.jpg"); }
.work-chantier { background-image: url("../images/chantier.jpg"); }
.work-series { background-image: url("../images/series.jpg"); }

@media (min-width: 768px) {
  .works {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Pages intérieures ---------- */
.page-banner {
  position: relative;
  z-index: 1;
  height: 300px;
  background: url("../images/bg.jpg") no-repeat center center;
  background-size: cover;
}

.page-title {
  padding: 80px 0 40px;
  text-align: center;
}

.page-title h1 {
  color: #01315B;
  font-size: 40px;
  line-height: 50px;
}

.page-content {
  padding: 0 0 50px;
}

.page-content h2 {
  color: #01315B;
  font-size: 20px;
  line-height: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-content p,
.page-content li {
  font-size: 15px;
  line-height: 26px;
}

.page-content p strong {
  color: #0061A7;
}

.page-content img {
  max-width: 100%;
  height: auto;
}

.page-content h2.separe {
  margin-top: 58px;
}

@media (min-width: 768px) {
  .page-title h1 {
    margin: 0 calc(100% / 6 + 5px);
  }
}

@media (min-width: 992px) {
  .content {
    margin: 0 calc(100% / 6 + 5px);
  }
}

@media screen and (max-width: 768px) {
  .page-banner {
    height: 250px;
  }

  .page-title {
    padding: 50px 0 30px;
  }

  .page-title h1 {
    font-size: 30px;
    line-height: 36px;
  }
}

@media screen and (max-width: 576px) {
  .page-banner {
    height: 200px;
  }
}

@media screen and (max-width: 575px) {
  .page-content {
    padding: 0 0 40px;
  }

  .page-content h2 {
    font-size: 24px;
  }
}

/* Colonnes */
.cols {
  display: flex;
  flex-wrap: wrap;
}

.col {
  flex: 1 1 43%;
  min-width: 0;
  margin-bottom: 1em;
  word-break: break-word;
  overflow-wrap: break-word;
}

@media (min-width: 600px) {
  .col {
    flex-grow: 0;
  }

  .col + .col {
    margin-left: 32px;
  }

  .col:not(:last-child) {
    margin-right: 32px;
  }

  .cols-4 .col {
    margin-right: 0;
  }
}

@media (min-width: 768px) {
  .col {
    flex-basis: 45%;
  }
}

@media (min-width: 782px) {
  .cols {
    flex-wrap: nowrap;
  }
}

@media screen and (max-width: 575px) {
  .col {
    flex-basis: 100%;
  }
}

.encart-bleu {
  margin-bottom: 30px;
  padding: 0 15px 15px;
  color: #fff;
  text-align: center;
  background: #0061A7;
}

.encart-bleu h2 {
  margin-top: 15px;
}

.encart-bleu p {
  margin: 0;
}

.encart-bleu .col {
  margin-bottom: 0;
}

.page-content figure {
  max-width: 100%;
  margin: 0 0 1em;
}

/* ---------- Contact ---------- */
.coordonnees {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 30px;
  padding: 15px 0;
  color: #fff;
  background: #0061A7;
}

.coordonnees > * {
  width: 100%;
  padding: 0 15px;
}

.coordonnees p {
  margin: 0;
}

.coordonnees a {
  color: #fff;
}

.coordonnees a:hover {
  color: #009EE3;
}

.coordonnees iframe {
  width: 100%;
  height: 155px;
  border: 0;
}

@media (min-width: 768px) {
  .coordonnees .carte {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
  }

  .coordonnees .adresse {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
  }
}

@media (min-width: 992px) {
  .coordonnees .carte,
  .coordonnees .adresse {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media only screen and (max-width: 768px) {
  .coordonnees p {
    text-align: center;
  }
}

/* ---------- Pied de page ---------- */
#footer {
  text-align: center;
}

.footer-up {
  padding: 6px 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 22px;
  color: #fff;
  background: #009EE3;
}

.footer-up p {
  margin: 0;
}

.footer-down {
  position: relative;
  z-index: 1;
  padding: 30px 0;
  color: #fff;
  background: linear-gradient(to bottom, #0061a7 0%, #01315b 100%);
}

.footer-down::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  background: url("../images/bg-footer.png") no-repeat top right;
}

.footer-down .container {
  position: relative;
  z-index: 3;
}

.footer-down p {
  margin: 0;
  font-size: 14px;
  color: #009EE3;
}

.footer-down a {
  color: #009EE3;
}

.footer-down a:hover {
  color: #fff;
  text-decoration: none;
}

.logo-footer img {
  width: auto;
  height: 100px;
}

.logo-footer .name {
  margin: 6px 0 15px;
  font-size: 24px;
  font-weight: 700;
  line-height: 26px;
  color: #fff;
}

@media screen and (max-width: 485px) {
  .footer-up {
    font-size: 16px;
    line-height: 18px;
  }

  .footer-down {
    padding: 20px 0;
  }

  .footer-down::after {
    display: none;
  }

  .logo-footer img {
    height: 80px;
  }

  .logo-footer .name {
    margin: 6px 0 12px;
    font-size: 20px;
    line-height: 22px;
  }
}
