@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/Inter-Italic-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

:root{
  --primary: #1E1D1C;
  --secondary: #E95135;
  --background: #FBF5E8;
  --line: #d7d7d7;}

*,
*::before,
*::after{
  margin: 0;
  padding: 0;
  box-sizing: border-box;}

body{
  font-family: "Inter", sans-serif;
  background-color: var(--background);
  color: var(--primary);
  line-height: 1.5;}

.container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.15rem 1rem;
  width: 100%;
  box-sizing: border-box;}

main {padding-top: 55px;}

section {scroll-margin-top: 70px;}

strong {
  font-weight: 700;
  color: var(--secondary);}





/*-HEADER START-*/

.site-header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(251, 245, 232, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 1000;}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;}

.logo img{
  display: block;
  height: 60px;}

.main-nav ul{
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;}

.main-nav a{
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  font-size: 1rem;
  transition: 0.3s;}

.main-nav a.btn-nav-contact {
  color: var(--background);
  font-weight: 700;}

.main-nav a:not(.btn-nav-contact):hover {
  color: var(--secondary);}

.btn-nav-contact:hover {
  background-color: var(--primary);
  color: var(--background);}

.btn-nav-contact{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary);
  padding: 0.6rem 1rem 0.55rem;
  border-radius: 5px;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  transition: 0.3s;}

.nav-toggle{
  display: none;}

.nav-toggle-label{
  display: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;}

.nav-toggle-label span,
.nav-toggle-label::before,
.nav-toggle-label::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 3px;
  background-color: var(--primary);
  transition:
    transform 0.2s ease,
    top 0.2s ease,
    bottom 0.2s ease,
    opacity 0.2s ease;}

.nav-toggle-label span{
  top: 50%;
  transform: translateY(-50%);}

.nav-toggle-label::before{
  top: 0;}

.nav-toggle-label::after{
  bottom: 0;}

@media (max-width: 576px){

  .site-header{
    background-color: var(--background);
    backdrop-filter: none;
    -webkit-backdrop-filter:none;}

  .nav-toggle-label{
    display: block;}

  .main-nav {
    position: absolute;
    width: 100vw;
    top: 100%;
    left: 0%;
    background-color: var(--background);
    border-bottom: 1px solid var(--line);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition:none;}

  .main-nav ul{
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 1rem;}

  .nav-toggle:checked ~ .main-nav{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    transition:
      transform 0.2s ease,
      opacity 0.2s ease;}

  .nav-toggle:checked + .nav-toggle-label span {
    opacity: 0;}

  .nav-toggle:checked + .nav-toggle-label::before {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);}

  .nav-toggle:checked + .nav-toggle-label::after {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);}}

/*-HEADER END-*/





/*-MAIN START-*/
/*---SECTION HERO START---*/

.hero{
  padding: 7rem 0 7rem;}

.hero-inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;}

.hero-title{
  max-width: 50rem;
  font-weight: 300;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.25;
  margin-bottom: 2.5rem;}

.hero-title .line {display: inline;}

.hero-highlight{
  display: block;
  color: var(--secondary);
  font-weight: 800;
  min-height: 1.5em;}

.btn-hero{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary);
  color: var(--background);
  padding: 0.8rem 2rem 0.75rem;
  border-radius: 5px;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  font-weight: 700;
  font-size: 1rem;
  transition: 0.3s;}

.btn-hero:hover{
  background-color: var(--primary);}

#typewriter{
  border-right: 2px solid var(--secondary);
  padding-right: 4px;
  animation: blink 0.7s steps(1) infinite;
  white-space: nowrap;
  display: inline-block;}

@keyframes blink {
  50% {border-color: transparent;}}

@media (max-width: 576px){
  .hero {
    padding: 4rem 0 3rem;}

  .hero-title {
    font-size: 1.55rem;}
  
  .hero-title .line {
    display: block;}
  }

@media (max-width: 320px) {
  .line, #typewriter {
    font-size: 1.20rem;
  }

  h2 {
    font-size: 1.15rem;
  }
}

/*---SECTION HERO END---*/





/*---LABEL + SOUS-TITRE START---*/

.section-header {
  text-align: center;
  margin-bottom: 5rem;}

.section-label {
  font-size: 1rem;
  color: var(--secondary);
  font-weight: 500;
  line-height: 0.75;}

.section-title {
  font-size: clamp(1.6rem, 2.1vw, 2.2rem);
  font-weight: 900;
  color: var(--primary);
  margin: 0;}

/*---LABEL + SOUS-TITRE END---*/





/*---SECTION INTRO START---*/

.intro {
  padding: 0 0 5rem;}

.intro-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;}

.intro-visual, .intro-text-block {
  flex: 1 1 0;}

.intro-visual {
  display:flex;
  justify-content: center;}

.intro-visual img {
  max-width: 500px;
  width: 100%;
  height: auto;
  display: block;}

.intro-text-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;}

.intro-subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;}

.intro-text-block p {
  font-size: 0.9rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
  margin-bottom: 0.9rem;}

.btn-intro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary);
  color: var(--background);
  padding: 0.8rem 2rem 0.70rem;
  border-radius: 5px;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 0.75rem;
  transition: 0.3s;}

.btn-intro:hover {
  background-color: var(--primary);}

@media (max-width: 900px) {
  .intro-content {
    flex-direction: column;
    align-items: center;}

  .intro-text-block {
    max-width: 100%;}
}
/*---SECTION INTRO END---*/





/*---SECTION SERVICES START---*/

.services {
  padding: 0 0 5rem;}

.services-inner {
  display: flex;
  flex-direction: column;}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;}

.service-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.5rem;
  background-color: transparent;
  display: flex;
  flex-direction: column;}

.service-image {
  margin-bottom: 1.5rem;}

.service-image img {
  width: 100%;
  max-width: 260px;
  display: block;
  margin: 0 auto;}

.service-text {
  margin-bottom: .15rem;} /* <= même marge pour toutes les cards */

.service-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 1rem;}

.service-text p {
  font-size: 0.9rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
  margin-bottom: 0.4rem;}

.service-text em {
  display: block;
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.5;
  font-style: italic;}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));}
}

@media (max-width: 576px) {

  .services-grid {
    grid-template-columns: 1fr;}

  .service-card {
    padding: 1.8rem 1.5rem;}
}
/*---SECTION SERVICES END---*/




/*---SECTION CONTACT START---*/

.contact {
  padding: 0 0 5rem;}

.contact-inner {
  display: flex;
  flex-direction: column;}

.contact-content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); /* un peu plus large pour l'image */
  gap: 3rem;
  align-items: flex-start;}

.contact-visual {
  display: flex;
  justify-content: center;
  align-items: center;}

.contact-visual img {
  width: 100%;
  max-width: 500px;
  display: block;}

.contact-form-wrapper {
  width: 100%;}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;}

.form-group label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);}

.form-group input,
.form-group textarea {
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  padding: 0.5rem 0.7rem;
  border-radius: 3px;
  border: 1px solid #e3dfd8;
  outline: none;
  background-color: #ffffff;}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--secondary);}

.btn-send {
  font-family: "Inter", sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary);
  color: var(--background);
  padding: 0.6rem 1.5rem 0.55rem;
  border-radius: 5px;
  border: none;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  width: auto;
  max-width: fit-content;
  transition: 0.3s;}

.btn-send:hover {
  background-color: var(--primary);}

.contact-rgpd {
  font-size: 0.65rem;
  opacity: 0.65;}

@media (max-width: 900px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;}

  .contact-visual {
    display: flex;
    justify-content: center;}

  .contact-visual img {
    max-width: 420px;}
}

@media (max-width: 576px) {
  .contact {
    padding: 3rem 0;}

  .form-group input,
  .form-group textarea {
    font-size: 0.9rem;}
}
/*---SECTION CONTACT START---*/





/*---FOOTER START---*/

.site-footer {
  background-color: var(--secondary);
  padding: 0.5rem 0;
  color: var(--background);
  margin-top: 5rem;}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;}

.footer-copy, .footer-author, .footer-nav {font-size: 0.85rem;}

.footer-menu ul li{
    list-style: none;
}

.footer-menu ul li a{
    text-decoration: none;
    color: #ffffff;
    font-weight: 400;
    font-size: 0.85rem;
}

.footer-menu ul li a:hover {
    text-decoration: none;
    color: #1E1D1C;
    font-weight: 400;
}

.footer-nav a{
  color: var(--background);
  text-decoration: underline;
  font-weight: 400;}

.footer-author a {
  color: var(--background);
  text-decoration: underline;
  font-weight: 400;}

.footer-author a:hover {
  opacity: 0.8;}

/* Responsive */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;}

  .footer-copy,
  .footer-author {
    text-align: center;}
}
/*---FOOTER END---*/


/* --- Legals Page --- */

        .legal-page {
            max-width: 800px;
            margin: 7rem auto 2rem auto;
            padding: 1rem;
            font-family: sans-serif;
            line-height: 1.6;
        }
        .legal-page h1 {
            font-size: 2rem;
            margin-bottom: 1rem;
        }
        .legal-page h2 {
            font-size: 1.5rem;
            margin-top: 2rem;
            margin-bottom: 0.75rem;
            border-bottom: 1px solid #ccc;
            padding-bottom: 0.3rem;
        }
        .legal-page p, .legal-page address {
            margin-bottom: 1rem;
        }
        .legal-page address {
            font-style: normal;
        }
        .legal-page a {
            color: #0066cc;
        }
        .legal-page .back-link {
            margin-top: 3rem;
            text-align: center;
        }

/* ============================================
   NOTIFICATIONS DU FORMULAIRE
   ============================================ */

.form-notification {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 4px;
  font-size: 0.95rem;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-notification-success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.form-notification-error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}