/* header */

header {
    position: relative;
    background: #000;
}

header nav ul {
  display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    align-content: center;
}

header nav ul li {
	flex-grow: 1;
	flex-shrink: 1;
	flex-basis: 100%;
	padding: 10px 20px;
}

header nav li a {
	color: #fff;
		text-decoration: none;

}

header nav li a:hover {
	text-decoration: none;

}


header nav li.logo {
    padding: 0;
}

.logo img {
    vertical-align: middle;
}

/* general */

body{
	font-family: 'Roboto', sans-serif;
	font-size: 17px;
    line-height: 1.52947;
    font-weight: 400;
    letter-spacing: -.021em;
}

.container {
	    margin: 0 auto;
    max-width: 980px;
    padding: 0 22px;
    position: relative;
}

.home {
	height: calc(100vh - 246px);
	background-repeat: no-repeat;
	background-size: cover;
    background-image: url(/apple/assets/img/iphone_alt_large.jpg);
    width: 100%;
    color: #fff;
}

.home h1 {
    font-size: 2em;
    font-weight: 500;
    letter-spacing: .016em;
}

.home h2 {
    font-size: 2.5em;
    font-weight: 500;
    letter-spacing: .011em;
}

.baseline {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 60px;
    text-align: center;
}

.bloc-body {
    height: 100%;
}

.bloc-body a {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
      align-items: center;
    justify-content: center;
}

.bloc-body a {
    text-decoration: none;
    color: #121212;
    font-size: 1.2em;
}

.bloc-body a span:first-child {
    font-weight: bold;
    font-size: 2em;
}



.bloc-main {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
}

.bloc-container {
	flex: 1;
	width: 200px;
	height: 200px;
	background: tomato;
	background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.bloc-container:first-child {
    background-image: url(/apple/assets/img/bloc-1.jpg);
}

.bloc-container:nth-child(2) {
    background-image: url(/apple/assets/img/bloc-2.jpg);
}
.bloc-container:nth-child(3) {
    background-image: url(/apple/assets/img/bloc-3.jpg);
}
.bloc-container:nth-child(4) {
    background-image: url(/apple/assets/img/bloc-4.jpg);
}

.macbookpro {
    background-image: url(/apple/assets/img/macbookpro_large.png);
        background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.macbooksmall {
    background-image: url(/apple/assets/img/macbook_large.png);
    background-repeat: no-repeat;
    background-position: center center;
}

.imac {
    background-image: url(/apple/assets/img/imac_large.png);
    background-repeat: no-repeat;
    background-position: center center;
}

.panel-body {
    height: 600px;
}

.opacity {
 -webkit-animation: fadeIn 0.5s ease-out;
    -moz-animation: fadeIn 0.5s ease-out;
    -o-animation: fadeIn 0.5s ease-out;
    animation: fadeIn 0.5s ease-out;
      -webkit-animation-delay: 1s; 
    animation-delay: 1s;
    opacity: 0;
            animation-fill-mode: forwards;

}

.square {
    width: 300px;
    height: 300px;
    background: rgba(255, 0, 181, 0.23);
    border-radius: 20px;
}

.square {
    position: absolute;
    top: 25px;
}

.square.blue {
  background: rgba(32, 143, 205, 0.33);
   transform: rotate(180deg);
        -webkit-transform: rotate(180deg);

}

.square.yellow {
  background: rgba(205, 148, 32, 0.33);
   transform: rotate(90deg);
        -webkit-transform: rotate(90deg);

}

.opacity {
    margin-left: -300px;
}

.square {
     animation: 5s spinnow infinite linear;
    -moz-animation: 5s spinnow infinite linear;
    -webkit-animation: 5s spinnow infinite linear;
    -ms-animation: 5s spinnow infinite linear;
}


@-webkit-keyframes spinnow {
    100% {
        transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
    }
}
@-moz-keyframes spinnow {
    100% {
        transform: rotate(360deg);
        -moz-transform: rotate(360deg);
    }
}
@-ms-keyframes spinnow {
    100% {
        transform: rotate(360deg);
        -ms-transform: rotate(360deg);
    }
}

@-webkit-keyframes fadeIn {
  0%   { opacity: 0.0; }
  50%  { opacity: 0.5; }
  100% { opacity: 1.0;
 }
}
@keyframes fadeIn {
  0%   { opacity: 0.0; }
  50%  { opacity: 0.5; }
  100% { opacity: 1.0;
 }
}


@-webkit-keyframes fadeInFromNone {
  0%   { opacity: 0.0; }
  50%  { opacity: 0.5; }
  100% { opacity: 1.0;
          transform: translate(0px, 0px);
 }
}
@keyframes fadeInFromNone {
  0%   { opacity: 0.0; }
  50%  { opacity: 0.5; }
  100% { opacity: 1.0;
          transform: translate(0px, 0px);
 }
}

.animated * {
    transform: translate(0px, 15px);
    opacity: 0;
}

.animated *{
               -webkit-animation: fadeInFromNone 0.2s ease-out;
    -moz-animation: fadeInFromNone 0.2s ease-out;
    -o-animation: fadeInFromNone 0.2s ease-out;
    animation: fadeInFromNone 0.2s ease-out;
        animation-fill-mode: forwards;
}

.animated *:first-child {
    -webkit-animation-delay: 1.5s; 
    animation-delay: 1.5s;
}


.animated *:nth-child(2), .animated h2 {
   -webkit-animation-delay: 2s; 
    animation-delay: 2s;
}


@-webkit-keyframes fadeInFromNone {
  0%   { opacity: 0.0; }
  50%  { opacity: 0.5; }
  100% { opacity: 1.0;
          transform: translate(0px, 0px);
 }
}
@keyframes fadeInFromNone {
  0%   { opacity: 0.0; }
  50%  { opacity: 0.5; }
  100% { opacity: 1.0;
          transform: translate(0px, 0px);
 }
}


/* footer */

footer {
    padding: 100px 0;
}

a {
    color: #0070c9;
}

/* mac page */

.page {
    padding: 40px 0;
}

.panel-top {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mac-bar ul {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    align-content: center;
}

.mac-bar ul li {
    cursor: pointer;
}

.mac-bar {
    background: rgba(242,242,242,0.7);
    margin-bottom: 60px;
    text-align: center;
    padding: 20px 0;
}
.panel h1 {
    font-size: 1.8em;
}

.panel h2 {
    font-size: 2.5em;
}

.panel-link {
    text-align: center;
}

.panel-link a{
    padding: 20px 20px;
    text-decoration: none;
    font-size: 1.5em;
}

.panel {
    margin-bottom: 115px;
}


nav input,
nav label {
  display: none;
  width: 36px;
  height: 36px;
  background: #555;
  color: #fff;
  text-align: center;
  line-height: 36px;
  font-size: 1.6rem;
  border-radius: 4px;
}

nav label {
  position: absolute;
  top: 8px;
  right: 8px;
  transition: .4s;
}

nav label:hover {
  cursor: pointer;
}

nav label:before {
  font-size: 24px;
  content: "X";
  text-align: center;
}

/*************** MEDIA QUERIES *******************/
@media only screen and (max-width: 1080px) {

    header nav ul {
    display: flex;
    flex-direction: column;
             background: #999;

}

  nav ul {
        transform: translateY(-100%);

  }

  nav li {
    flex: none;
    width: 100%;
    border-bottom: solid 1px #777;
  }

  nav input[type="checkbox"]:checked + ul {
        transform: translateY(0);
    transition: all .5s;

    width: 100%;
    background: #999;
    transition: all .5s;
        width: auto;
         background: #000;
    color: #fff;

  }

  .mac-bar.flex-list {
    display: none;
}

  nav label {
    display: block;
  }

  nav input[type="checkbox"]:checked + ul li:nth-child(1) {
   
  }

  header {
    position: absolute;
    width: 100%;
    background: none;
    z-index: 2;
}

ul {
    background: #000;
    padding-left: 20px;
}

.container {
    margin: 0;
    padding: 0;
}

.square {
    top: 55px;
}

header nav ul li {
    padding: 10px 0px;
    text-align: center;
}

.panel-link {
    margin-bottom: 50px;
}

.bloc-container {
    flex-basis: 100%;
    height: 310px;
}

.panel-body {
    height: 180px;
}

.baseline {
    height: 100%;
    padding:0 ;
    align-items: center;
    justify-content: center;
}
/*
.home h1 {
    font-size: 3em;
}

.home h2 {
    font-size: 3.5em;
}*/

footer { 
text-align: center; }

.panel-body.macbooksmall, .panel-body.imac {
    background-size: contain;
}

h2 {
    text-align: center;
}


}
