/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

   * { box-sizing: border-box; }

   body { font-family: 'Crimson Text', serif; font-size: 1vw; line-height: 1.4; background-color: #F4F7F7; }

   h1 {

		font-family: 'Oswald', sans-serif;
		text-transform: uppercase;
		color: #fff;
		font-size: 9em;
		letter-spacing: -.04em;
		line-height: 1.4;
		width: 100%;
		text-align:center;

		/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#a3c9e0+0,ffffff+20,ffffff+44,a3c9e0+100 */
		background: rgb(163,201,224); /* Old browsers */
		background: -moz-linear-gradient(top, rgba(163,201,224,1) 0%, rgba(255,255,255,1) 20%, rgba(255,255,255,1) 44%, rgba(163,201,224,1) 100%); /* FF3.6-15 */
		background: -webkit-linear-gradient(top, rgba(163,201,224,1) 0%,rgba(255,255,255,1) 20%,rgba(255,255,255,1) 44%,rgba(163,201,224,1) 100%); /* Chrome10-25,Safari5.1-6 */
		background: linear-gradient(to bottom, rgba(163,201,224,1) 0%,rgba(255,255,255,1) 20%,rgba(255,255,255,1) 44%,rgba(163,201,224,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
		filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a3c9e0', endColorstr='#a3c9e0',GradientType=0 ); /* IE6-9 */

		background-attachment: fixed;
		-webkit-text-fill-color: transparent;
		-webkit-background-clip: text;

		margin-top: 0;

   }

   h2, h3 { font-family: 'Playfair Display', serif;     font-weight: normal;
   max-width: 26em; width: 100%;
    font-size: 2.5em;}
    h2 { font-size: 4em; text-align: center;}
    .sectionh2 {
      background-color: #79A8A9;
      text-align: center;
      padding-bottom: 1em;
    }
    .sectionh2 h2 { color: #fff; margin-bottom: 0;}
    .sectionh2 a.next { text-align: center; color: #fff;}
    .sectionh2 a.next::after { color: #fff; margin: .3em auto; display: block;}
   p {
     max-width: 40.5em; font-size: 1.6em; margin-right: auto; margin-left: auto;
   letter-spacing: -.015em;  width: 100%;
    }

    a, a:active, a:visited {text-decoration: none;}

   .title {
	position: relative;
	background-image: url("../img/une-1200x631.jpg");
	background-position: 50%;
	background-size: cover;
	padding: 1em;
	min-height:100vh;
	
  display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
z-index: 2;
background-color: #ffffff;
   }

   .author {
	   font-family: 'Playfair Display', serif;
    color: #fcfcfc;
    font-size: 1.7em;
    letter-spacing: -.04em;
	margin-top: -.6em;
	/*text-shadow: 1px 1px 0 #999999;*/
   }
   .guillemet {
    font-family: 'Playfair Display', serif;
    font-size: 9em;
   }
   .guillemet.ouvrante {
    margin-bottom: -.6em;
    display: inline-block;
   }

   .title { opacity: 0; overflow: hidden; transition: 3s opacity ease-in; z-index: 3;}

   .js-loaded .title { opacity: 1; }
   .mask {
    position: absolute;
    min-height: 100vh;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    z-index: 2;
    }
   h1 { transform: scale(.6,.6); opacity: 0; transition: 4s transform ease, 2s opacity ease-in;
     transition-delay: 6s; }
   .js-loaded h1 { transform: scale(1,1); opacity: 1; }
   .author { opacity: 0; transition: 3s opacity ease;
     transition-delay: 4s; }
   .js-loaded .author { opacity: 1; }

   section { display: flex;
 	justify-content: center;
 	align-items: center;
 	flex-direction: column;
  min-height: 100vh;
  padding-bottom: 10em;
    }
    section h2 { opacity: 0; transform: translateY(5em); transition: 1s transform ease, .6s opacity ease; }
    section.active h2 { transform: translateY(0); opacity: 1; }
    section p { opacity: 0; transform: translateY(5em); transition: 1s transform ease, .6s opacity ease; }
    section.active p { transform: translateY(0); opacity: 1; }

section.intro p {
  text-align: justify;
  text-align-last: center;
}

section.fin { padding-top: 1em; padding-bottom: 1em; 
    z-index: 3;
    position: relative;}
section.fin p { color: #fff; }
section img {
  width: 100%;
}

p a { display: inline-block; position:  relative; color: #212121 }
p a::after { content: ''; display: inline-block; width: 100%; border-bottom: 3px solid rgba(212, 168, 0, 0.61); position: absolute; bottom: 0; left: 0;
    z-index: -1;
  transition: .3s border-bottom ease, .3s color ease; }
p a:hover { /*color: #fcfcfc;*/}
p a:hover::after {
    border-bottom: 1.3em solid rgba(212, 168, 0, 1);
}
a.next, a.map,
a.next:hover, a.map:hover {color: #d4a800;}
a.next::after,
a.map::after { border-bottom: 0 !important; position:  relative; left: auto; top: auto;}
a.next::after,
a.map::before,
.point a::before {
    content: '';
    display: inline-block;
    width: 1.65em;
    height: 1.65em;

    background-repeat: no-repeat;
    background-size: contain;

    vertical-align: -.45em;
}
a.next::after {
  margin-left: .4em;
  background-image: url(../img/001-route.svg);
}
a.map::before {
  margin-right: .4em;
  background-image: url(../img/003-worldwide.svg);
  
    width: 1em;
    height: 1em;
    vertical-align: -.2em;
}

.point a::before {
  margin-right: .3em;
  background-image: url(../img/002-placeholder.svg);
  
    margin-left: -.6em;
}
.intro a.next::after { display: none; }

figure { margin: 0; position: relative; }
figure::after {
  content: '';
  display: block;
  top: 0;
  left: 0;
  bottom: 0;
  position: absolute;
  width: 100%;
  transition: 1.6s width ease;
  transition-delay: .9s;
  background: #AACFD0;
  opacity: 1;
}
section.right figure::after { left: auto; right: 0;}
.active figure::after { width: 0; }
.story {
    width: calc( 100% - 15em );}
.roadmap{
position: fixed;
    background: #1F4E5F;
    right: 0;
    width: 15em;
    height: 100vh;
    top: 0;
display: flex; align-items: center; justify-content: center; text-align: left; 
}
.roadmap ul { padding-left: 0; }
.roadmap li {
  
    font-family: 'Oswald', sans-serif;
    list-style-type: none;
    width: 13.5em;
    text-transform: uppercase;
    margin: .6em;
    font-size: .9em;
    letter-spacing: .06em;
}
.roadmap li span { display: inline-block; max-width: 0; vertical-align: -.35em; white-space: nowrap; overflow: hidden; vertical-align middle; 
}
.roadmap li a:hover span,
.roadmap li.active a span { max-width: 25em; padding-left: .6em;  }
.roadmap li.point.active a {  color: #fff;  }
.roadmap li.active a {  
    color: #AACFD0;
    }

.roadmap li a { color: #999; 
    display: inline-block;
    min-width: 9em;}
	section.intro { padding-bottom: 0;}
  .cta {
    width: 14em; white-space: nowrap; overflow: hidden; text-align: center;background: #fff;
    opacity: 0;
    transition: 2s opacity ease;
}
  .cta a {display: inline-block;padding: .6em 1em;
    
  text-transform: uppercase;
  font-family: 'Roboto Condensed';
  letter-spacing: .1em;
white-space: nowrap;
 color: #1F4E5F;
 }
 .js-loaded .cta {
    opacity: 1;
    transition-delay: 5s;
 }
 .cta a:hover span {
   
  color: #AACFD0 
 }
	.cta span { 
    display: inline-block;
    overflow: hidden;
    transition: 1s max-width ease;
    transition-delay: 10.5s;
  }
  
  .cta span:nth-child(1) { 
    max-width: 14em;
  }
  .cta span:nth-child(2) { 
      max-width: 0;
  }
  
  .js-loaded .cta span:nth-child(1) { 
    max-width: 0;
  }
  .js-loaded .cta span:nth-child(2) { 
      max-width: 14em;
  }
  
  @media only screen and (orientation : portrait) {
    
    body { font-size: 2.6vw; }
    h1 {
    line-height: 1.15em;}
    p,h1,h2,h3 {
    padding-left: 3.5vw;
  padding-right: 3.5vw;}
    .sectionh2 h2 {
    color: #fff;
    margin-bottom: 0;
    font-size: 3em;
    }
    .story { width: calc( 100% - 5em ); }
    .roadmap { width: 5em; }
    .roadmap li { text-align: center; width: 2em;}
    
    .roadmap li a span { display: none; }
    .roadmap li a { min-width: 2.6vw; width: 2.6vw; overflow: hidden; font-weight: bold; opacity: .4;}
    .roadmap li.active a {
opacity: 1;
}
    .roadmap li.point a { font-size: 0;min-width: 4.3vw; width: 4.3vw;  }
    .roadmap li.point a::before { font-size: 2.6vw;     margin-left: 0; }
    figure::after {
    top: -.06em;
    bottom: -.06em;
    }
  }
/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
