* {
    box-sizing: border-box;
}

html {
    height: 100%;
    font-family: Arial, sans-serif;
    line-height: 1.5;
}

body {
    margin: 0;
    min-height: 100%;
}

h1 {
    display: table;
    padding: 40px 0 10px;
    margin: 0 auto 40px;
    border-bottom: 5px solid #F69229;

    color: #1C213F;
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
}

h2 {
    padding: 40px 0 20px;
    margin: 0;

    color: #1C213F;
    font-weight: bold;
    line-height: 1.2;
}

table {
  border-collapse: collapse;
}

th, td {
  border: 1px solid #1C213F;
  padding: 10px;
}

figure {
    display: block;
    margin: 0
}

.o-container {
    padding: 0 20px;
    max-width: 600px;
    margin: 0 auto;
}

/* HEADER */

.c-header {
    padding: 10px 0;
    background-color: #1C213F;
}

.c-header__grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.c-header__left {
    margin-right: auto;
}

.c-header__nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
}

.c-header__logo {
    width: 54px;
    height: 54px;
}

.c-header__parent {
    position: relative;
}

.c-header__sub-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 10px 10px;
    background-color: #1C213F;
}

.c-header__toggle:hover + .c-header__sub-nav,
.c-header__toggle:focus + .c-header__sub-nav,
.c-header__sub-nav:hover,
.c-header__sub-nav:focus-within {
    display: block;
}

.c-header__link {
    display: block;
    margin: 0;
    padding: 5px 10px;
    border: none;
    border-bottom: 1px solid transparent;
    background: transparent;

    font: inherit;
    color: white;
    text-align: center;
    text-decoration: none;

    transition: 300ms border-color;
}

.c-header__link:focus,
.c-header__link:hover {
    border-color: white;
}

/* PROGRESS */

.c-progress {
    position: sticky;
    top: 0;

    height: 16px;
    background:
        linear-gradient(to top, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.75)),
        linear-gradient(to top, #1C213F, #1C213F);
    font-size: 12px;
    line-height: 1;
}

.c-progress__fill {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 0;
    background-color: #F69229;
}

.c-progress__fill--loaded {
    transition: 1s width;
}

.c-progress__label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;

    display: flex;
    justify-content: center;
    align-items: center;
}

/* SUCCESS */

.c-success {
    position: sticky;
    top: 16px;
    padding: 6px 0;
    background-color: #2ECC40;
    text-align: center;
}

.c-success__title {
    margin: 0;
}

.c-success__extra {
    margin: 0;
    padding: 6px 0;
    color: rgba(0, 0, 0, 0.6);
    font-style: italic;
    font-size: 14px;
}

.c-success__extra a {
    color: inherit;
    text-decoration: underline;
}

.c-success__extra a:hover,
.c-success__extra a:focus {
    color: black;
}

/* FOOTER */

.c-footer {
    margin-top: 80px;
    padding: 10px 0;
    background-color: #1C213F;
    color: white;
}

.c-footer__logo-image {
    display: block;
    width: 160px;
    height: 160px;
    margin: auto;
}

.c-footer__description {
    margin: 0;
    text-align: center;
}

/* BOTTOM BAR */

.c-bottom-bar {
    padding: 10px 0;
    background-color: #1c213f;
    color: #666;
    font-size: 14px;
}

.c-bottom-bar__grid {
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    align-items: center;
}

.c-bottom-bar__social {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.c-bottom-bar__social-link {
    display: block;
    margin: 0 5px;
}

.c-bottom-bar__social-icon {
    width: 24px;
    height: 24px;
}

.c-bottom-bar__social-icon path {
    fill: #edb059;
}

.c-bottom-bar__social-icon:hover path,
.c-bottom-bar__social-icon:focus path {
    fill: #F69229;
}

/* SAVE THE DATE */

.c-save-the-date {
    display: table;
    padding: 20px;
    margin: 0 auto 60px;
    border: 1px solid black;
   
    text-align: center;
    color: #1C213F;
    background-color: #EEE;
    font-size: 14px;
}

.c-save-the-date__save {
    font-style: italic;
    text-decoration: underline;
    font-size: 30px;
}

.c-save-the-date__edition {
    font-style: italic;
    font-size: 20px;
}

.c-save-the-date__jour {
    font-weight: bold;
}

.c-save-the-date__date {
    font-weight: bold;
    font-size: 40px;
}

/* INTRO */

.o-intro-rat {
    margin: 5px;
}

.o-intro-doc {
    margin: 20px 0;
    background-color: #EEE;
    border-radius: 8px;
    font-size: 14px;

    font-family: monospace, monospace;
    padding: 16px;
    line-height: 20px;
}

/* TABLE */

.c-rich-content__table {
    table-layout: fixed;
    width: 100%;
    border-spacing: 0;
    border-collapse: collapse
}

.c-rich-content__table td {
    border: none;
}

/* CLUE */

.c-clue {
    margin-top: 20px;
}

.c-clue__summary {
    font-weight: bold;
    color: #1C213F;
}

/* INFOQ */

.c-infoq {
    padding: 6px 18px;
    border-radius: 18px;
    background: #1C213F;
    border: 4px solid #1C213F;
    margin-bottom: 40px;

    color: white;
    font-weight: normal;
    text-decoration: none;

    transition: border-color 300ms;
}

.c-infoq a,
.c-infoq a:hover,
.c-infoq a:focus {
  color: inherit;
}
.c-infoq a::after {
  display: inline-block;
  content: attr(href);
} 

.c-infoq__summary {
    font-size: 16px;
    text-align: center;
    cursor: pointer;
}

.c-infoq__title1 {
    font-weight: bold;
}

.c-infoq__title2 {
    font-style: italic;
}

.c-infoq__detail {
    font-size: 14px;
}

.c-infoq__source {
    font-size: 12px;
    font-style: italic;
}


/* FORM */

.o-label {
    display: block;
    color: black;
    margin-bottom: 6px;
}

.o-control {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: -5px;
    max-width: 600px;
}

.o-control > * {
    margin: 5px;
}

.o-input {
    height: 36px;
    width: 100%;
    flex: 1;
    min-width: 200px;
    padding-left: 18px;
    padding-right: 18px;
    border-radius: 18px;
    border: 1px solid #50e3c2;
    font-size: 16px;
    color: #4a4a4a;
    outline: none;
}

.o-input-message {
    margin-top: 6px;
}

.o-input-message:empty {
    display: none;
}

.o-button {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    padding: 6px 18px;
    border-radius: 18px;
    background: #1C213F;
    border: 4px solid #1C213F;

    color: white;
    font-weight: normal;
    text-decoration: none;

    text-align: center;
    transition: border-color 300ms;
    cursor: pointer;
}

.o-button:hover,
.o-button:focus {
    border-color: #F69229;
}

/* HINT */

.c-hint {
    margin: 20px 0;
    background-color:rgba(238,238,249,.6);
    border-radius:8px;
    font-size:14px;
    padding:16px;
    line-height:20px
}
.c-hint-title {
    color:#513215;
    font-weight:700
}
.c-hint-content {
    color:#2e1f11;
    line-height:23px
}

/* COLOR NAME */

.c-color-name {
    display:table;
    margin:20px auto 0
}
.c-color-name__action {
    display:flex
}
.c-color-name__select {
    background:transparent;
    border:1px solid #000;
    border-left-color:#ccc;
    margin-left:-1px;
    padding:5px;
    text-align:center
}
.c-color-name__select:first-child {
    background:#ccc;
    border-left-color:#000;
    border-radius:5px 0 0 5px
}
.c-color-name__select:last-child {
    border-radius:0 5px 5px 0
}
.c-color-name__output {
    margin-top:10px;
    padding:5px 20px;
    color:#fff;
    text-align:center
}
.c-color-name__output--light {
    color:#000
}

/* UTILS */
.u-text-center {
    text-align: center;
}
.u-margin-auto {
    margin: auto;
}
.u-btn-as-link {
    padding: 0;
    margin: 0;
    border: 0;
    background: none;

    font: inherit;
    color: inherit;
    cursor: pointer;
}
.u-btn-as-link:hover,
.u-btn-as-link:focus {
    text-decoration: underline;
}
