
:root {
  --font-display: "tumb", sans-serif;
  --font-body: 'All Round Gothic', sans-serif;

  --color-bg: #f4f4f4;  /* couleur fond - autres couleurs sont des variables direct dans html car 1 couleur par page */

  --nav-height:  64px;
  --transition:  0.35s cubic-bezier(0.4, 0, 0.2, 1);
}


*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}
html { 
  scroll-behavior: smooth; 
  font-size: 16px; 
}
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}
img { 
  display: block; 
  max-width: 100%; 
}
a   { 
  color: inherit; 
  text-decoration: none; 
}
a :hover {
  color: var(--color-accent);
}


/* Paramètres PARALLAX */
#page {
  height: 100vh;  
  overflow-y: scroll; 
  position: relative; 
}
.parallax {
  position: absolute; 
  z-index: -20;
  will-change: transform;
}
header, main, footer {
  position: relative;
  z-index: 1;    
}


.img {
  max-width: 40%;
}
.img__main {
  border-radius: 17px; 
  margin: 4rem;
}



.nav {
  position: relative;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  z-index: 200;
}
.nav__toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  position: relative;
  z-index: 300;
}
.nav__toggle span {
  display: block;
  width: 28px; height: 2px;
  /*background: var(--color-text);
  border-radius: 2px;*/
  transition: var(--transition);
  transform-origin: center;
}
.nav__toggle.is-open span:nth-child(1) { transform: rotate(45deg); }

.logo_menu {
  margin-left: 14px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-align: justify;
  letter-spacing: 0.05em;
  line-height: 1.1;
  color: var(--color-text);
}


.nav__menu {
  position: relative;
  background: none;
  height: var(--nav-height);
  display: flex;
  padding-left: 27px;
  padding-top: 20px;
  gap: 0;
  z-index: 199;
  pointer-events: none;         
}
.nav__menu.is-open { pointer-events: auto; }
.nav__item { position: relative; }
.nav__link {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-text);
  padding: 0 1.4rem;
  line-height: var(--nav-height);
  white-space: nowrap;
  cursor: pointer;
  position: relative;

  /* slide-in start state */
  clip-path: inset(0 100% 0 0);  
  transform: translateX(-12px);
  opacity: 0;
  transition:
    clip-path  0.5s cubic-bezier(0.4, 0, 0.2, 1),
    transform  0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity    0.4s ease,
    color      0.2s ease;
}
/* Accent underline */
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 12px;
  left: 1.4rem; right: 1.4rem;
  height: 8px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav__item:hover > .nav__link,
.nav__item.is-sub-open > .nav__link         { color: var(--color-accent); }
.nav__item:hover > .nav__link::after,
.nav__item.is-sub-open > .nav__link::after  { transform: scaleX(1); }

.nav__link.is-visible {
  clip-path: inset(0 0% 0 0);
  transform: translateX(0);
  opacity: 1;
}


.nav__sub {
  position: absolute;
  top: calc(var(--nav-height) - 2px);
  left: 1.4rem;
  min-width: 200px;
  background: var(--color-accent_muted);
  border-radius: 0 0 4px 4px;
  overflow: hidden;

  /* hidden by default */
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.nav__item.is-sub-open > .nav__sub {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav__sub a {
  display: block;
  padding: 0.7rem 1.2rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-text);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: background 0.15s ease;
}
.nav__sub a:last-child { border-bottom: none; }


.hero {
  position: relative;
  width: 100%; 
  /* height: 95svh; */
  min-height: 480px;
  display: flex; 
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 6vw, 4rem) clamp(1.5rem, 8vw, 7rem);
  overflow: hidden;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 7rem);
  font-weight: 700; 
  line-height: 1.0; 
  letter-spacing: -0.04em;
  color: var(--color-accent);
  max-width: 14ch;
  position: absolute;
}
#overlay { /* pr effet lettres entourées */
  letter-spacing: -0.04em;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px;
  color: var(--color-text);
  position: absolute;
  z-index:100;
} 


.section {
  position: relative; 
  min-height: 50svh;
  display: flex; 
  align-items: center;
  padding: clamp(5rem, 10vw, 9rem) clamp(1.5rem, 8vw, 7rem);
  overflow: hidden;
}
.section__bg {
  position: absolute; 
  inset: 0;
  background-size: cover; 
  background-position: center;
  background-attachment: relative;
}
.section--papier .section__bg { 
  z-index: -15;
  background-image: url('imgs/papier.jpg'); 
}

.section__content { 
  position: relative; 
  z-index: 1; 
  max-width: 760px; 
}
.section--right .section__content { margin-left: auto; }
.section--center .section__content { margin: auto; }
.section--center h2 { text-align: center;}
.section--center p {text-align: center;}
.section__label { 
  font-size: 0.7rem; 
  letter-spacing: 0.28em; 
  text-transform: uppercase; 
  color: var(--color-text_muted); 
  margin-bottom: 1rem; }
.section__title { 
  font-family: var(--font-display); 
  font-size: clamp(1.7rem, 5vw, 3.8rem); 
  font-weight: 700; 
  line-height: 1.1; 
  margin-bottom: 1.4rem; }
.section__body  { 
  font-size: clamp(0.9rem, 1.6vw, 1.05rem); 
  color: var(--color-text); 
  margin-bottom: 2rem; }
.section__cta {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  color: var(--color-text); border-bottom: 1px solid var(--color-text); padding-bottom: 2px;
  transition: gap var(--transition);
}
.section__cta:hover { gap: 1rem; }
.section__cta::after { content: '→'; }


footer {
  background: var(--color-accent_muted);
  padding: 3rem;
  padding-bottom: 1rem;
  display: flex; 
  flex-wrap: wrap;
  align-items: center; 
  justify-content: space-between; 
  gap: 1rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.footer__menu {
  letter-spacing: 0.18em; 
  text-transform: uppercase; 
  font-weight: 600;
  font-size: 0.9rem; 
  text-align: right;
}
.footer__brand { 
  font-family: var(--font-display); 
  font-size: 1.5rem; 
  color: var(--color-text); 
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px;
}
.footer__tous_droits_reserves { 
  padding-top: 0rem;
  font-size: 0.78rem; 
  color: var(--color-text_muted); 
  letter-spacing: 0.08em; 
  width: 100%; 
  align-items: center; 
  text-align: center; 
}



  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 560px;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 17px;
    background: #e4e4e4; /* adapte à ta palette */
    color: var(--color-text);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: background 0.2s ease;
    box-sizing: border-box;
  }

  .contact-form input::placeholder,
  .contact-form textarea::placeholder {
    color: var(--color-text_mutedmuted);
  }

  .contact-form input:focus,
  .contact-form textarea:focus {
    background: #e4e4e4;
  }

  .contact-form textarea {
    min-height: 180px;
    resize: vertical;
  }

  .contact-form button {
    padding: 14px 28px;
    background: var(--color-accent); 
    color: #f4f4f4;
    border: none;
    border-radius: 19px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    align-self: flex-start;
  }

  .contact-form button:hover {
    background: var(--color-text_muted);
  }

  .contact-form button:active {
    transform: scale(0.98);
  }

  .form-success {
    display: none;
    padding: 20px 24px;
    background: var(--color-accent_muted);
    border-radius: 12px;
    color: var(--color-text);
    font-size: 15px;
    line-height: 1.6;
  }

  .form-success.visible {
    display: block;
  }


/* ----------- RESPONSIVE ------------- */

.responsive__small {
  display: none;
}

@media (max-width : 1050px ){

  .footer__menu {
    text-align: left;
  }
  .footer__brand {
    line-height: 1.0; 
    letter-spacing: -0.04em;
  }
}

@media (max-width : 930px ){
 
  .nav__menu {
    flex-direction: column;
    align-items: flex-start;
    top: 20px;
    padding: 1rem clamp(1.5rem, 5vw, 4rem) 2rem;
    background: none;
    
  }
  .nav__link { padding: 0.4rem 0; line-height: 2.2; }
  .nav__link::after { bottom: 2px; left: 0; right: 0; }

  .nav__sub {
    position: static;
    border-radius: 4px;
    margin: 0.3rem 0 0.6rem 0.5rem;
    display: none;
  }
  .nav__item.is-sub-open > .nav__sub { display: block; }

}


@media (max-width : 660px ){
  .responsive__large {display: none;}
  .responsive__small {display: inline !important;}

  .section__bg { background-attachment: scroll; }
  .section--right .section__content { margin-left: 0; }

  .footer__menu {text-align: right;}

  .img {
    max-width: 90%;
  }
  .img__main {
    margin: 2rem;
    margin-bottom: -12rem;
  }
  .section{
    display: block;
  }
}

@media (max-width : 358px ){
  .footer__menu {text-align: left;}
}

