@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700");

:root {
  --bs-primary: #E1473C;
  --bs-secondary: #e45c52;
  --bs-success: #198754;
  --bs-info: #0dcaf0;
  --bs-warning: #ffc107;
  --bs-danger: #dc3545;
  --bs-light: #f8f9fa;
  --bs-dark: #212529;
  --bs-body-font-family: "Source Sans Pro", sans-serif;
  --bs-body-font-size: 1rem;
  --bs-body-font-weight: 400;
  --bs-body-line-height: 1.5;
  --bs-body-color: #212529;
  --bs-body-color-rgb: 33, 37, 41;
  --bs-body-bg: #fff;
  --bs-body-bg-rgb: 255, 255, 255;
  --bs-link-color: #0d6efd;
  --bs-link-decoration: none;
  --bs-link-hover-color: #0a58ca;
  --bs-border-width: 1px;
  --bs-border-style: solid;
  --bs-border-color: #dee2e6;
  --bs-border-radius: 0.375rem;
  --bs-border-radius-sm: 0.25rem;
  --bs-border-radius-lg: 0.5rem;
  --bs-border-radius-xl: 1rem;
  --bs-border-radius-xxl: 2rem;
  --bs-border-radius-2xl: var(--bs-border-radius-xxl);
  --bs-border-radius-pill: 50rem;
  --bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --bs-box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
  --bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.075);
  --bs-form-valid-color: #198754;
  --bs-form-valid-border-color: #198754;
  --bs-form-invalid-color: #dc3545;
  --bs-form-invalid-border-color: #dc3545;
}

.alert-info {
  --bs-alert-color: #111;
  --bs-alert-bg: #f5f5f5;
  --bs-alert-border-color: #f5f5f5;
  --bs-alert-link-color: #333;
  margin-bottom: 25px;
  font-size: 0.8rem;
}

.offcanvas.offcanvas-start {
  width: 500px;
}

html, body {
  height: 100%;
}
body {
  background: #F5F5F5;
  font-size: 17px;
}

hr {
  border: 1px solid #F5F5F5;
}

h1, .h1 {
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 800;
  color: #E1473C;
  font-size: 28px;
  margin: 0 0 12px;
}

h2, .h2 {
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 800;
  font-size: 20px;
  line-height: 24px;
  color: #2B2B2B;
  margin: 0;
}

h3, .h3 {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 18px;
  line-height: 21px;
  font-weight: 600;
  margin: 0;
}

h4, .h4 {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 15px;
  line-height: 18px;
  font-weight: 400;
  margin: 0;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
  color: #666;
}

p {
  line-height: 22px;
}

a.info,
.help {
  background: transparent;
  color: #666;
  border-radius: 50%;
  border: 1px solid #efefef;
  padding: 5px;
  font-size: 16px;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 200ms ease;
}
  .help:hover {
    background: #fff;
    transform: scale(1.2);
    box-shadow: 0 0 15px #efefef;
    color: #E1473C;
  }

.form-answers {

}
.form-answers label {
  font-size: 17px;
}
.form-answers label small {
  font-size: 15px;
  display: block;  
  color: #666;
}
.form-answers .note,
.note {
  background: #f2f2f2;
  border-radius: 6px;
  border: 1px solid #ccc;
  padding: 10px;
  font-size: 15px;
}
  .form-answers .note ul {
    margin: 0;
    padding: 0 0 0 15px;
  }

.form-answer {
  max-width: 320px;
}
.form-answer span.input-group-text {
  min-width: 70px;
}



.script-font,
.script-font * {
  font-family: "Times New Roman", serif;
  font-style: italic;
}
.row > .script-font, .row-top > .script-font, .row-stretch > .script-font,
.row > .script-font *,
.row-top > .script-font *,
.row-stretch > .script-font * {
  text-align: right;
}

.center {
  text-align: center;
}

.color-primary {
  color: #E1473C;
}

[class^=callout] > hr {
  border-color: white;
}

[class^=callout] > [class^=callout]:not(.callout-title, .callout-content) {
  background-color: white;
}

.underline {
  text-decoration: underline;
}

table {
  min-width: 100%;
  box-sizing: border-box;
  margin: 0;
  border: 2px solid #F5F5F5;
  border-radius: 8px;
  border-collapse: collapse;
}

th, td {
  margin: 0;
  padding: 6px;
}

th {
  font-size: 14px;
  height: 32px;
}

td {
  font-size: 13px;
}

tr {
  margin: 0;
  padding: 0;
  border: 0 solid;
}

thead {
  background: #F5F5F5;
}
tbody td {
  border: 2px solid #F5F5F5;
}

.btn, .btn-primary {
  display: block;
  padding: 13px 20px;
  margin: 0;
  color: #4E4E4E;
  border: 2px solid #F5F5F5;
  font-size: 14px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  max-width: 420px;
  min-width: 120px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s all ease-in-out;
}
.btn:hover, .btn-primary:hover, .btn:active, .btn-primary:active {
  background: #E1473C;
  border-color: #E1473C;
  color: #fff;
}
.btn.btn_right, .btn_right.btn-primary {
  float: right;
}

.btn-primary {
  background: #E1473C;
  border-color: #E1473C;
  color: #fff;
}
.btn-primary:hover, .btn-primary:active {
  background: #e45c52;
}

.btn-picto, .btn-picto-warning, .btn-picto-print, .btn-picto-arrow, .btn-picto-info, .btn-picto-edit {
  display: block;
  height: 52px;
  width: 52px;
  min-width: 52px;
  padding: 8px;
  margin: 0;
  margin-right: -16px !important;
  background-size: 20px 20px;
  border-radius: 26px;
  background-repeat: no-repeat;
  background-position: center center;
  background-clip: content-box;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}
.btn-picto:hover, .btn-picto-warning:hover, .btn-picto-print:hover, .btn-picto-arrow:hover, .btn-picto-info:hover, .btn-picto-edit:hover {
  background-color: #F5F5F5;
}

.btn-picto-edit {
  background-image: url(../img/edit.svg);
}

.btn-picto-info {
  background-image: url(../img/info.svg);
}

.btn-picto-arrow {
  background-image: url(../img/keyboard_arrow_down.svg);
}

.btn-picto-print {
  background-image: url(../img/print.svg);
}

.btn-picto-warning {
  background-image: url(../img/warning.svg);
}

.input-group input + span {
  margin-left: 10px;
}
.input-group + .input-group {
  margin-top: 16px;
}

.form-control,
.form-select {
  text-align: right;
}

/*input, select {
  display: inline-block;
  margin: 0;
  padding: 10px 15px;
  font-size: 15px;
  border: none;
  background: #F5F5F5;
  border-radius: 6px;
}*/
input:active, input:focus, select:active, select:focus {
  outline: 0;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1) inset;
}
input:invalid, select:invalid {
  box-shadow: 0 0 0 2px #E1473C inset;
}
/*input.text-right, select.text-right {
  text-align: right;
}

input[type=number] {
  width: 80px;
  padding-right: 5px;
}

.suffix input {
  border-radius: 4px 0px 0px 4px;
}

.suffix .input-group-addon {
  border-left: 0;
  border-radius: 0px 4px 4px 0px;
}

.prefix input {
  border-radius: 0px 4px 4px 0px;
}

.prefix .input-group-addon {
  border-right: 0;
  border-radius: 4px 0px 0px 4px;
}

.presuffix input {
  border-radius: 0px;
}

.input-group-addon.prefix {
  border-radius: 4px 0px 0px 4px;
  border-right: 0;
}

.input-group-addon.suffix {
  border-radius: 0px 4px 4px 0px;
  border-left: 0;
}

.input-group {
  position: relative;
  display: table;
  border-collapse: separate;
}

label.container {
  display: block;
  font-size: 15px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  display: flex;
  flex-flow: row-reverse;
  justify-content: flex-end;
  align-items: center;
}
label.container p {
  margin: 0;
}

/*.container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}*/

.checkmark {
  height: 20px;
  width: 20px;
  min-width: 20px;
  background-color: #F5F5F5;
  border-radius: 50%;
  border: 0 solid #F5F5F5;
  transition: 0.2s all ease-in-out;
  margin-right: 10px !important;
}

[type=checkbox] + .checkmark {
  border-radius: 6px;
}

.container:hover input ~ .checkmark {
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1) inset;
}

.container input:checked ~ .checkmark {
  background: #E1473C;
  border-width: 4px;
}

/*the container must be positioned relative:*/
.custom-select {
  position: relative;
  display: inline-block;
}

.custom-select select {
  display: none;
  /*hide original SELECT element:*/
}

.select-selected {
  background-color: #F5F5F5;
  border-radius: 6px;
  padding: 10px 32px 10px 16px;
}

/*style the arrow inside the select element:*/
.select-selected:after {
  position: absolute;
  content: "";
  top: 17px;
  right: 10px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-color: #888888 transparent transparent transparent;
}

/*point the arrow upwards when the select box is open (active):*/
.select-selected.select-arrow-active:after {
  border-color: transparent transparent #888888 transparent;
  top: 7px;
}

/*style the items (options), including the selected item:*/
.select-items div, .select-selected {
  color: #888888;
  cursor: pointer;
  user-select: none;
}

.select-items div {
  padding: 8px 16px;
}

/*style items (options):*/
.select-items {
  position: absolute;
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.1);
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
  overflow: scroll;
}

/*hide the items when the select box is closed:*/
.select-hide {
  display: none;
}

.select-items div:hover, .same-as-selected {
  background-color: #F5F5F5;
}

html, body {
  margin: 0;
  background: #F5F5F5;
}

* {
  box-sizing: border-box;
}

.inline-block {
  display: inline-block;
}

main a {
  color: #4E4E4E;
}
main a:hover {
  color: #E1473C;
}

main {
  background: white;
  display: flex;
  flex-flow: column nowrap;
  min-height: 100vh;
  box-shadow: 0 0 0 1px #F5F5F5;
  /*padding-bottom: 100px;*/
  position: relative;
  z-index: 1;
}
.container {
  max-width: 900px
}

main, nav {
  margin: 0 auto;
  max-width: 1170px;
}

header,
section {
  padding: 32px;
}

section {
  flex-grow: 1;
}

.flex-center {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

nav {
  /*overflow-x: hidden;
  display: flex;
  flex-flow: row-reverse nowrap;
  justify-content: space-between;
  padding: 8px 32px 32px;
  align-items: center;
  z-index: 1000;
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 0 24px 24px white;*/

  display: flex;
  flex-flow: row-reverse nowrap;
  justify-content: space-between;
  padding: 8px 32px 32px;
  align-items: center;
  width: 100%;
}

.logo-partners {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: center;
}
.logo-partners img {
  width: 36px;
}  
.logo-partners img + img {
  margin-left: 16px;
}
  .section-poutre .logo-partners img {
    width: 125px;
  }

.row, .row-top, .row-stretch {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: center;
  min-height: 52px;
}
.row-stretch {
  width: 100%;
}

.row-top {
  align-items: baseline;
}
.row-top + .row-top {
  margin-top: 16px;
}
.row-top .row, .row-top .row-stretch, .row-top .row-top {
  min-height: 44px;
}

/*.box-shadow {
  box-shadow: 0 -32px 32px -32px rgba(0, 0, 0, 0.2);
}*/

.float-right {
  float: right;
}

.mode-calc {
  margin-bottom: 32px;
}
.mode-calc label + label {
  margin-top: 16px;
}

.mode-calc-desc {
  min-height: 32px;
  margin-bottom: 16px;
  position: relative;
}
.mode-calc-desc p {
  top: 0;
  margin: 0;
  position: absolute;
}
.mode-calc-desc p:not(:first-of-type) {
  display: none;
}

.callout, .callout-warning, .callout-info {
  margin-top: 32px;
  background: #F5F5F5;
  padding: 24px;
  border-radius: 8px;
}
.callout .callout-title, .callout-warning .callout-title, .callout-info .callout-title {
  display: flex;
  flex-flow: row;
  margin: 0;
}
.callout .callout-content, .callout-warning .callout-content, .callout-info .callout-content {
  margin-top: 24px;
  font-size: 13px;
  font-family: "Times New Roman", serif;
  font-style: italic;
  color: #888888;
}

.callout-info .callout-title:before {
  content: "";
  display: inline-block;
  height: 20px;
  width: 20px;
  margin-right: 16px;
  background: url(../img/info.svg) no-repeat;
}

.callout-warning {
  font-size: 14px;
  background: #E1473C;
  margin: -32px -32px 16px -32px;
  padding: 16px 32px;
  border-radius: 0;
}
.callout-warning * {
  color: white;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
}
.callout-warning .callout-title:before {
  content: "";
  display: block;
  min-width: 24px;
  max-width: 24px;
  flex-grow: 1;
  margin-right: 16px;
  background: url(../img/warning.svg) no-repeat center center;
}
.callout-warning + .callout-warning .callout-title:before {
  background-image: none;
}

.caption-container, .caption-container-bottom {
  position: relative;
  flex-flow: row-reverse;
}
.caption-container:hover, .caption-container-bottom:hover {
  z-index: 102;
}
.caption-container .caption-btn, .caption-container-bottom .caption-btn {
  z-index: 100;
  transition: z-index 0s 0.2s;
}
.caption-container .caption-btn + *, .caption-container-bottom .caption-btn + * {
  z-index: 99;
}
.caption-container .caption-btn:hover + *, .caption-container-bottom .caption-btn:hover + *, .caption-container .caption-btn:focus + *, .caption-container-bottom .caption-btn:focus + * {
  z-index: 100;
}
.caption-container .caption-btn:hover ~ .caption-content, .caption-container-bottom .caption-btn:hover ~ .caption-content, .caption-container .caption-btn:focus ~ .caption-content, .caption-container-bottom .caption-btn:focus ~ .caption-content {
  opacity: 1;
  transform: scale(1);
  visibility: visible;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}
.caption-container .caption-content, .caption-container-bottom .caption-content {
  position: absolute;
  top: -8px;
  left: -24px;
  right: -24px;
  opacity: 0;
  z-index: 1;
  padding: 24px;
  border-radius: 24px;
  visibility: hidden;
  background: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  line-height: 20px;
  color: #4E4E4E;
  transform: scale(0.5);
  transform-origin: top right;
  transition: visibility 0s ease 0.2s, opacity 0.2s ease-out, transform 0.2s ease-out;
}
.caption-container .caption-content p + p, .caption-container-bottom .caption-content p + p {
  margin-top: 14px;
}
.caption-container .caption-title ~ .caption-content, .caption-container-bottom .caption-title ~ .caption-content {
  padding-top: 128px;
}
.caption-container .caption-btn ~ .caption-content, .caption-container-bottom .caption-btn ~ .caption-content {
  padding-top: 64px;
}
.caption-container *, .caption-container-bottom * {
  margin: 0;
}

.caption-container-bottom .caption-content {
  top: auto;
  bottom: -8px;
  transform-origin: bottom right;
}
.caption-container-bottom .caption-title ~ .caption-content {
  padding-top: 24px;
  padding-bottom: 128px;
}
.caption-container-bottom .caption-btn ~ .caption-content {
  padding-top: 24px;
  padding-bottom: 64px;
}

.data-group {
  padding: 12px 0 32px;
}
.data-group > h2, .data-group > .h2 {
  margin: 16px 0;
}
.data-group > h3, .data-group > .h3 {
  margin: 16px 0;
}
.data-group .row, .data-group .row-stretch, .data-group .row-top {
  min-height: 32px;
}
.data-group .row + .row, .data-group .row-stretch + .row, .data-group .row-top + .row, .data-group .row + .row-stretch, .data-group .row-stretch + .row-stretch, .data-group .row-top + .row-stretch, .data-group .row + .row-top, .data-group .row-stretch + .row-top, .data-group .row-top + .row-top {
  padding: 14px 0 0;
}
.data-group .row > *:not([class^=btn-picto]), .data-group .row-stretch > *:not([class^=btn-picto]), .data-group .row-top > *:not([class^=btn-picto]) {
  margin: 0;
}
.data-group + .data-group {
  border-top: 2px solid #F5F5F5;
}

.size3 {
  width: 80px;
}

.data-group-input > h2, .data-group-input > .h2 {
  margin: 24px 0 12px;
}
.data-group-input h3, .data-group-input .h3 {
  margin: 24px 0 12px;
}
.data-group-input + .data-group-input {
  margin-top: 32px;
  border-top: 2px solid #F5F5F5;
}

.result {
  font-weight: 600;
  font-size: 15px;
  line-height: 26px;
  border-bottom: 2px solid #F5F5F5;
  padding-bottom: 16px;
}
.result span {
  color: #E1473C;
  font-style: italic;
}
.result .other-section {
  font-weight: 500;
}
.result .other-section * {
  font-size: 14px;
}

.page-result .btn-picto-edit {
  display: none;
}

@media print {
  nav {
    display: none;
  }

  main {
    margin: 30px auto;
  }
}
.header-img, .header-img-multi {
  /*margin: 52px 0 -32px;*/
  position: relative;
  z-index: -1;
}
.header-img img, .header-img-multi img {
  margin: 0 auto;
  display: block; 
}
.section-poutre .header-img img, 
.section-poutre .header-img-multi img {
  max-width: 60%;
}

.header-img-multi {
  /*min-height: 125px;*/
}
.header-img-multi img.fixe {
  position: relative;
}
.header-img-multi img {
  position: absolute;
  top: 0;
  left: 0;
}
.header-img-multi [data-mode-calc] {
  display: none;
  z-index: 1;
}

.overlayer-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.overlayer-img * {
  position: absolute;
  background: #fff;
  border-radius: 4px;
  width: auto;
  transform: translate(-50%, -50%);
}
.overlayer-img .largeur {
  top: -52px;
  right: 20px;
}
.overlayer-img .portee {
  top: -50px;
  left: 90px;
}
.overlayer-img .porte-a-faux {
  top: -30px;
  left: 125px;
}

.logo-partners-poutre {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: center;
}

.logo-partners-poutre img {
  width: 100px;
  margin-left: 15px;
}

.logo-partners img + a {
  margin-left: 30px;
}

.btn-picto-info-poutre {
  background-image: url(../img/info.svg);
}

.group-radar {
  padding-left: 10px;
  padding-right: 35px;
}

#failed {
  color: red;
  font-weight: bold;
}

#succeed {
  color: green;
  font-weight: bold;
}



/* CUSTOM RADIO */
div.form-check-radio {
  display: flex;
  flex-wrap: wrap;
  cursor: pointer;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  margin-bottom: 0.375em;
  padding-left: 0;
}
div.form-check-radio input {
  position: absolute;
  left: -9999px;
}
div.form-check-radio input + label:hover {
  
}
div.form-check-radio input:checked + label {
  /*background-color: #aaa;*/
  /*box-shadow: inset 0 0 5px rgba(0,0,0,.1);*/
  border: 1px solid #efefef;
}
div.form-check-radio input:checked + label:before {
  box-shadow: inset 0 0 0 0.4375em var(--bs-primary);
}

div.form-check-radio label {
  display: flex;
  align-items: center;
  padding: 0.375em 0.75em 0.375em 0.375em;
  border-radius: 99em;
  transition: 0.25s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
  div.form-check-radio label em {
    margin: 0 5px;
  }
div.form-check-radio label:hover {
  background-color: #fff;
}
div.form-check-radio label::before {
  background-color: #fff;
  display: flex;
  flex-shrink: 0;
  content: "";
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  margin-right: 0.375em;
  transition: 0.25s ease;
  box-shadow: inset 0 0 0 0.125em var(--bs-primary);
}
div.form-check-radio label.form-check-nolabel:before {
  margin-right: 0;
}

/* CUSTOM CHECKBOX */
div.form-check-box {
  display: flex;
  flex-wrap: wrap;
  cursor: pointer;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  margin-bottom: 0.375em;
  padding-left: 0;  
}
div.form-check-box input {
  position: absolute;
  left: -9999px;
}
div.form-check-box input + label:hover {
  
}
div.form-check-box input:checked + label {
  /*background-color: #aaa;*/
  border: 1px solid #efefef;
}
div.form-check-box input:checked + label:before {
  box-shadow: inset 0 0 0 0.4375em var(--bs-primary);
}
div.form-check-box label {
  display: flex;
  align-items: center;
  padding: 0.375em 0.75em 0.375em 0.375em;
  border-radius: var(--bs-border-radius);
  transition: 0.25s ease;
  cursor: pointer;
  border: 1px solid transparent;
  width: auto !important;
}
div.form-check-box label:hover {
  background-color: #fff;
}
div.form-check-box label::before {
  background-color: #fff;
  display: flex;
  flex-shrink: 0;
  content: "";
  width: 1.5em;
  height: 1.5em;
  border-radius: var(--bs-border-radius);
  margin-right: 0.375em;
  transition: 0.25s ease;
  box-shadow: inset 0 0 0 0.125em var(--bs-primary);
}

div.form-check-box label.form-check-nolabel:before {
  margin-right: 0;
}
.form-check-input.is-valid ~ .form-check-label, .was-validated .form-check-input:valid ~ .form-check-label {
  color: var(--bs-body-color)
}

.form-check-label-bordered {
  border: 1px solid #efefef;
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
  width: 162px;
  text-align: center;    
}
  .radio-label {
    background: #efefef;
    padding: 5px;
    font-size: 12px;    
    border-radius: 6px;
    margin: 5px 0 0;
  }

.form-check-radio-nolabel {
  margin-bottom: 0 !important;
}
  .form-check-radio-nolabel label {
    padding-right: 0.375em !important;
  }
  .form-check-radio-nolabel label::before {
    margin-right: 0 !important;
  }

.fields-group {
  margin-top: 10px;
  border-bottom: 1px dashed var(--bs-border-color);
  padding: 15px 0;
}
  .fields-group h4 {
    font-weight: bold;
  }