html {
  --scroll-behavior: smooth;
  scroll-behavior: smooth;
}

/* RESET */

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
ol,
ul {
  list-style: none;
}

/* TEXT */

body {
  margin: 0;
  padding: 0;
  font-family: "Roboto Condensed", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
  line-height: 1;
}

h1,
h2,
h3,
h4,
h5 {
  font-weight: bold;
}

p {
  line-height: 1.2rem;
  margin-bottom: 1rem;
}
* strong {
  font-weight: bold;
}

* i {
  font-style: italic;
}

.grey-text {
  color: #777;
}

/* LAYOUT */

.portfolio,
.about,
.contact,
footer {
  padding: 80px;
}

.container-max {
  margin-left: auto;
  margin-right: auto;
}

/* BUTTON */

.button-text {
  color: inherit;
}

.button {
  display: inline-block;
  padding: 18px 28px;
  background-color: #ffc10a;
  color: #000;
  text-decoration: none;
  font-size: 0.9rem;
  position: relative;
}

.button img {
  position: absolute;
  top: 15px;
  left: 28px;
  transition: left 0.2s ease-in-out;
}
.button span {
  position: relative;
  margin-left: 35px;
}

.button:hover img {
  left: 38px;
}

/* HEADER */

header .container {
  background-image: url("images/background/CimesCreations_x_Snowzone_@nikooo_r_21_small.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-color: #777;
  text-align: center;
  color: white;
  padding: 110px 20px;
}

header .logo img {
  width: 220px;
  height: 220px;
  object-fit: cover;
}
.header-text {
  display: block;
  width: 100%;
}

.header-text * {
  display: inline-block;
  background-color: black;
  padding: 4px 7px;
}

.header-text h1 {
  margin: 60px 0 0 0;
  font-size: 1.8em;
}

.header-text h2 {
  margin: 20px 0 0 0;
  font-size: 1.2em;
  font-weight: normal;
}

.header-text h3 {
  margin: 5px 0 0 0;
  font-size: 1rem;
  font-weight: normal;
}

/* NAVIGATION */

nav .container {
  background-color: #ffc10a;
  text-align: center;
  padding: 20px;
}

nav ul li {
  display: inline;
}

nav ul li a {
  color: #000;
  text-decoration: none;
  margin: 0px 2rem;
  font-weight: bold;
  text-transform: uppercase;
  display: inline-block;
  position: relative;
}

nav ul > li:first-child a {
  margin-left: 0;
}

nav ul > li:last-child a {
  margin-right: 0;
}

nav ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: #000;
  left: 0;
  bottom: -3px;
  transition: width 0.2s ease-in-out;
}

nav ul li a:hover::after {
  width: 100%;
}

nav li.icon {
  display: none;
}

nav li.icon img {
  position: relative;
  top: 4px;
}
/* STICKY CONTACT */

.sticky-contact {
  position: fixed;
  right: 0;
  top: 30px;
  padding: 5px 20px 10px 10px;
  z-index: 1000;
  background: #ffc10a;
}

.sticky-contact a {
  color: black;
  text-decoration: none;
  font-size: 0.8rem;
  display: block;
  height: 22px;
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
}

.sticky-contact a:hover {
  opacity: 0.7;
}

.sticky-contact .contact-icon {
  display: inline-block;
  height: 26px;
  margin-right: 4px;
}

.sticky-contact-mobile {
  position: fixed;
  right: 0;
  top: 30px;
  padding: 5px 20px 10px 10px;
  z-index: 1000;
  background: #ffc10a;
}

/* PORTFOLIO */

.portfolio h2 {
  font-size: 1.8rem;
}

.portfolio h3 {
  margin-top: 5px;
}
.portfolio h3 .button-text {
  transition: color 0.2s ease-in-out;
}
.portfolio h3 .button-text:hover {
  color: black;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  z-index: 1;
  position: relative;
  margin-top: 40px;
  margin-bottom: 40px;
}

.gallery .img-container {
  position: relative;
}

.gallery .img-container.copy-nico::after,
.gallery .img-container.copy-max::after  {
  position: absolute;
  bottom: 0;
  left: 0;
  font-size: 10px;
  padding: 5px;
  letter-spacing: 0.05em;
}

.gallery .img-container.copy-nico::after {
  content: "@nikooo_r";
  color: white;
  opacity: 0.8;
}


.gallery .img-container.copy-max::after {
  content: "@max_bouclier";
  color: black;
  opacity: 0.6;
}

.gallery .img-container img {
  width: 100%;
  height: auto;
}

.gallery .landscape {
  width: calc(50% - 15px);
  height: auto;
}

.gallery .portrait {
  width: calc(33% - 16px);
  height: auto;
}

.gallery .square {
  width: calc(25% - 23px);
  height: auto;
}

.portfolio .button-container {
  text-align: right;
}

/* ABOUT */

.about {
  background-color: black;
  color: white;
}

.about h2 {
  font-size: 1.8rem;
}

.about h3 {
  margin-top: 5px;
  margin-bottom: 50px;
}

.about ul.services {
  padding: 10px;
  list-style: inside;
}

.about ul.services li {
  padding-bottom: 10px;
}

.about-left-right {
  display: flex;
}

.about-left {
  flex: 1;
}

.about-right {
  flex: 2;
}

.about .localisation {
  margin-bottom: 40px;
  position: relative;
}

.about .localisation p {
  position: absolute;
  bottom: 3px;
  text-align: right;
  margin-bottom: 0;
}

.about .localisation img {
  margin-left: 210px;
}

.about .press {
  border: 1px solid white;
  padding: 20px;
  margin-bottom: 40px ;
  max-width: 600px;
}

.press h3 {
  font-size: 1.3rem;
  margin-bottom: 0;
}

.about .press ul {
  list-style: none;
  margin-top: 20px;
}

.about .press ul li a {
  color:white;
  text-decoration: none;
  padding: 5px 0px 5px 30px;
  position: relative;
  display: block;
  margin-bottom: 5px;
  transition: color 0.25s ease;
}

.about .press ul > li:last-child a {
  padding-bottom: 0px;
}

.about .press ul li a img {
  position: absolute;
  left : 0;
  top: 2px;
}

.about .press ul li a:hover {
  color:#ffc10a;
}

.about .press ul li a:hover img{
  left:5px;
  transition: left 0.25s ease;
}

.about .press ul li a span {
  display: block;
}

.about .press ul li a .source {
  text-decoration: underline;
}

.about .press ul a .title {
  font-style: italic;
  font-weight: bold;
  margin-top: 4px;
}

.about .punchline p {
  font-size: 22px;
  line-height: 30px;
  display : inline-block;
  padding:0 30px;
  position: relative;
  max-width: 570px;
}

.about .punchline p:after,
.about .punchline p:before {
  position: absolute;
  content:"";
  height:20px;
  width: 20px;
  background-repeat: no-repeat;
  background-position: center; 
  background-size: cover;
}

.about .punchline p:before {
  left : 0;
  background-image: url("images/svg/quote-left.svg");
}

.about .punchline p:after {
  margin-left: 10px;
  background-image: url("images/svg/quote-right.svg");
}

.about .button {
  margin-top: 30px;
}

/* CONTACT */
.contact .container {
  width: 40%;
  max-width: 600px;
  margin: 0 auto;
}

.contact h2 {
  font-size: 1.8rem;
}

.contact h3 {
  margin-top: 5px;
}

.contact-icon img {
  top: 4px;
  position: relative;
}

.contact-card {
  border: 1px solid black;
  margin-top: 40px;
  position: relative;
}

.contact-card > div {
  padding: 30px;
}

.contact-card > img {
  position: absolute;
  right: -40px;
  top: -80px;
  width: 140px;
}

.contact-card h4 {
  font-size: 1.2rem;
}

.contact-card .after {
  margin: 10px 0 20px;
  width: 25px;
  height: 2px;
  background: #ffc10a;
}

.contact-card p {
  margin: 8px 0;
  height: 22px;
  font-size: 0.9rem;
}

.contact-card svg {
  margin-right: 5px;
}

.contact a {
  color: black;
  text-decoration: none;
  font-size: 1rem;
  display: block;
  height: 30px;
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
}

.contact a:hover {
  opacity: 0.7;
}

.contact .contact-card-icon {
  display: inline-block;
  height: 30px;
  margin-right: 6px;
}
.contact-card-icon img {
  top: 6px;
  position: relative;
}

/* FOOTER */

footer {
  padding-top: 0;
}

footer .container {
  text-align: center;
}

footer img {
  margin-bottom: 40px;
  width: 180px;
}

footer p {
  font-size: 1.2rem;
}

footer p small {
  font-size: 0.8rem;
}

footer a {
  transition: color 0.2s ease-in-out;
}

footer a:hover {
  color: black;
}


/* RESPONSIVE LAYOUT */

@media (min-width: 1600px) {
  .sticky-contact {
    /*background-color: red;*/
  }

  .container.container-max {
    max-width: 1320px;
  }

  header .container {
  background-image: url("images/background/CimesCreations_x_Snowzone_@nikooo_r_21.jpg");
}

}

@media (max-width: 1358px) {
  .sticky-contact {
    /*background-color: blue;*/
  }

  .gallery .portrait {
    width: calc(33% - 17px);
  }
}

@media (max-width: 1200px) {
  .sticky-contact {
    /*background-color: purple;*/
  }

  .container.container-max {
    max-width: 1200px;
  }

  .portfolio,
  .about,
  .contact,
  footer {
    padding: 60px;
  }

  .contact .container {
    width: 50%;
  }
}

@media (max-width: 1024px) {
  .sticky-contact {
    /*background-color: orange;*/
  }

  .portfolio,
  .about,
  .contact,
  footer {
    padding: 40px;
  }
}

@media (max-width: 978px) {
  .sticky-contact {
    /*background-color: yellow;*/
  }

  .gallery .portrait {
    width: calc(33% - 18px);
  }

  .contact .container {
    width: 60%;
  }
}
@media (max-width: 768px) {
  .sticky-contact {
    /*background-color: blue;*/
  }

  .portfolio,
  .about,
  .contact,
  footer {
    padding: 40px 25px;
  }

  .about-left-right {
    display: inherit;
  }

  .contact .container {
    width: 70%;
  }

  .contact-card > img {
    width: 120px;
  }
}

@media (max-width: 658px) {
  .sticky-contact {
    /*background-color: pink;*/
  }

  header .container {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .header-text h1 {
    margin-top: 40px;
    font-size: 1.6em;
  }

  .header-text h2 {
    margin-top: 15px;
    font-size: 1em;
  }

  nav ul li a {
    margin: 0 1.5rem;
  }

  .gallery .portrait {
    width: calc(33% - 19px);
  }

  .gallery .portrait,
  .gallery .square,
  .gallery .landscape {
    width: 100%;
  }

  .about h3 {
    margin-bottom: 30px;
  }

  .about .localisation {
    margin-top: -30px;
  }

  .about .localisation img {
    width: 140px;
    margin-left: calc(100% - 130px);
  }

  .about .localisation p {
    font-size: 13px;
  }

  .contact .container {
    width: 90%;
  }

  .contact-card > img {
    width: 100px;
    right: -30px;
    top: -40px;
  }
}

@media (max-width: 480px) {
  .sticky-contact {
    /*background-color: white;*/
    display: none;
  }

  p, ul.services, .press ul {
    font-size: 14px;
  }

  header .logo img {
    width: 180px;
    height: 180px;
  }

  header .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .header-text h1 {
    font-size: 1.5rem;
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  }

  header {
    margin-top: 54px;
  }

  nav .container {
    padding-top: 12px;
    padding-left: 10px;
    padding-right: 10px;
  }

  nav ul li a {
    margin: 0 4px;
    font-size: 12px;
  }

  nav ul li.icon {
    display: inline;
  }

  nav ul li.icon a {
    margin: 0;
  }

  nav ul li.icon-first {
    margin-left: 6px;
  }

  .gallery {
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .press h3 {
    font-size: 1.2rem;
    margin-bottom: 0;
  }

  .about .punchline p {
    font-size: 16px;
    line-height: 20px;
    padding-left: 26px;
  }

  .about .punchline p:after,
  .about .punchline p:before {
    height: 16px;
    width: 16px;
  }

  .contact .container {
    width: 100%;
  }

  .contact-card {
    width: calc(100% - 20px);
  }

  .contact-card > div {
    padding: 20px;
  }

  .contact a {
    font-size: 0.8rem;
    height: 26px;
  }

  .contact-card > img {
    width: 90px;
    right: -20px;
    top: -30px;
  }

  footer p small {
    font-size: 0.75rem;
    line-height: normal;
  }

  footer img {
    width: 160px;
  }
}

@media (max-width: 340px) {
  .sticky-contact {
    background-color: green;
  }

  .portfolio,
  .about,
  .contact,
  footer {
    padding: 15px;
  }
}



/* GUIDE 

.container {
  border: 1px solid green;
}

.container.container-max {
  border: 1px solid red;
}
*/
