/*
Theme Name: Novacraft
Author: Ninon Morère
Version: 1.0
*/

  /* ===========================
     TYPOGRAPHIES
  =========================== */
@font-face {
  font-family: 'Breathing';
  src: url('/wp-content/themes/novacraft-th/fonts/Breathing.woff2') format('woff2');
  font-style: normal;
}

@font-face {
  font-family: 'Enchants';
  src: url('/wp-content/themes/novacraft-th/fonts/Enchants.woff2') format('woff2');
  font-style: normal;
}

@font-face {
  font-family: 'Martel';
  src: url('/wp-content/themes/novacraft-th/fonts/MartelSans-Regular.woff2') format('woff2');
  font-style: normal;
}

@font-face {
  font-family: 'TAN';
  src: url('/wp-content/themes/novacraft-th/fonts/tanmoncheri.woff2') format('woff2');
  font-style: normal;
}


:root {
  /* ===========================
     COULEURS PRINCIPALES
  =========================== */
  --color-primary: #f1a9df;
  --color-primary-light: #efe7eb;
  --color-primary-dark: #381645;

  --color-secondary: #a176d3;
  --color-secondary-light: #c2b59b;
  --color-secondary-dark: #c0d6c9;

  --color-accent: #ffb347;
  --color-accent-dark: #ff8c00;

  --color-success: #cafddd;
  --color-warning: #fff5cb;
  --color-error: #ffc8c8;
  --color-info: #cfe1ff;

  /* ===========================
     COULEURS DE BASE
  =========================== */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;

  /* ===========================
     TYPOGRAPHIE
  =========================== */
  --font-primary: 'Martel', sans-serif;
  --font-heading: 'Breathing', cursive;
  --font-alt: 'TAN', serif;
  --font-fancy: 'Enchants', cursive;

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.25rem;   /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem;  /* 36px */
  --font-size-5xl: 3rem;     /* 48px */
  --font-size-6xl: 4rem;
  --font-size-logo: 11rem;     /* 100px */

  /* ===========================
     ESPACEMENTS (marges/paddings)
  =========================== */
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-13: 4rem;    /* 48px */  
  --space-menu: -3rem;    /* -48px */

  /* ===========================
     RAYONS ET OMBRES
  =========================== */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.15);

  /* ===========================
     LARGEURS MAXIMALES
  =========================== */
  --max-width-container: 1200px;
  --max-width-text: 700px;

  /* ===========================
     BREAKPOINTS RESPONSIVE
  =========================== */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1050px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;

  /* ===========================
     TRANSITIONS / ANIMATIONS
  =========================== */
  --transition-fast: 150ms ease-in-out;
  --transition-medium: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
}


/* ============================================================= SITE ============================================================= */

/* ===========================
   LIENS
=========================== */

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

/* ===========================
   BASE
=========================== */
html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  background-color: var(--color-gray-50);
  color: var(--color-gray-800);
  line-height: 1.6;
  box-sizing: border-box;
  height:100%;
  display: flex;
  flex-direction: column;
}

/*  PARALLAX */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.8s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* From Uiverse.io by alexruix */ 
/* The switch - the box around the slider */
.theme-switch-floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.switch {
  font-size: 17px;
  position: relative;
  display: inline-block;
  width: 3.5em;
  height: 2em;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  --background: #28096b;
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--background);
  transition: .5s;
  border-radius: 30px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 1.4em;
  width: 1.4em;
  border-radius: 50%;
  left: 10%;
  bottom: 15%;
  box-shadow: inset 8px -4px 0px 0px #fff000;
  background: var(--background);
  transition: .5s;
}

input:checked + .slider {
  background-color: #522ba7;
}

input:checked + .slider:before {
  transform: translateX(100%);
  box-shadow: inset 15px -4px 0px 15px #fff000;
}


/* ===========================
   TYPOGRAPHIE
=========================== */
h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-primary-dark);
  margin-bottom: var(--space-sm);
  font-weight: 100;
}

h1 {
  font-size: var(--font-size-4xl);
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

/* ===========================
   LAYOUT / STRUCTURE
=========================== */
.container {
  /*max-width: 1200px;*/
  margin: 0 auto;
  flex: 1;
  padding: 0 var(--space-sm);
}

ul {
  list-style-type: none;
  margin: 0;
  padding:0;
}

/* ===========================
   COMPONENTS
=========================== */
.btn {
  background-color: var(--color-primary-light);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-fast);
}

.btn:hover {
  background-color: var(--color-primary-dark);
}

/* ===========================
   MENU
=========================== */

/* Menu desktop */
.desktop-menu .menu-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: space-around;
}

.menu-link {
  text-decoration: none;
  color: var(--color-primary-light);
  font-family: var(--font-primary);
  font-size: var(--font-size-lg);
  transition: color 0.5s;
  text-transform: uppercase;
}

.menu-link:hover {
  color: var(--color-secondary-light);
  transition: color 0.5s;
}

.desktop-menu .menu-list li::before{
  content: "☾";
  color: var(--color-secondary-light);
  font-size: var(--font-size-lg);
  margin-right: var(--space-1);
}

/* Sous-menu desktop */
.submenu {
  display: none;
  position: absolute;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  list-style: none;
  padding: var(--space-4) 0;
  margin-top: var(--space-4);
}

.has-children:hover > .submenu {
  display: block;
}

/* ===========================
   LANDING PAGE
=========================== */


/*Main content et page principale*/
.landing{
	margin-top:-36px;
}

.landing article{
	height: 100dvh;
  min-height: 800px;
}

.main-article {
	background:url('/wp-content/themes/novacraft-th/img/fondpageaccueil.png');
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	width:100%;
	text-transform: uppercase;
	text-align: center;	
	display: flex;
    flex-direction: column;
	align-items: center;
    justify-content: center;
}

.main-article img{
	width: 500px;
}

.main-article h1{
	font-family: Enchants;
    font-size: var(--font-size-logo);
    font-weight: 100;
    padding: 0;
    margin: 0;
}

.main-article h2{
	font-family: Martel;
    font-size: var(--font-size-3xl);
    letter-spacing: var(--space-3);
    font-weight: 100;
    margin-top: var(--space-12);
}

.landing h3{
  margin-top: var(--space-6);
}

.landing categorie {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
}

/* initialisation des background */
.bg, .landing article:nth-child(3), .bg01{
  display: grid;
  grid-template-rows: auto 1fr auto; 
  height: 100dvh;
  align-items: center;
  /*width: min(100%, 1200px);*/
  margin: 0 auto;
}

.landing article:nth-child(2){
  position: relative;
  background: #381645;
  background: linear-gradient(180deg,rgba(56, 22, 69, 1) 0%, rgba(69, 22, 37, 1) 100%);
}
.bg{
  position: relative;
  background-image: url('/wp-content/themes/novacraft-th/img/fond-soleil.png');
  background-position: center top;
  background-size: contain;
  background-repeat: no-repeat;
}

.landing article:nth-child(3){
  position: relative;
  background: #381645;
  background: linear-gradient(180deg,rgba(69, 22, 37, 1) 0%, rgba(56, 22, 69, 1) 100%);
}

.landing article:nth-child(4){
  position: relative;
  background: #381645;
}

.landing article:nth-child(5){
  position: relative;
  background: white;
  background-image: url('/wp-content/themes/novacraft-th/img/fond-communaute.png');
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}

.bg01{
  position: relative;
  background-image: url('/wp-content/themes/novacraft-th/img/fond_coutureautrement.png');
  background-position: bottom right;
  background-size: contain;
  background-repeat: no-repeat;
  height: 100%;
}

/* H3 des catégories */
.landing article:nth-child(n+2) h3{
  font-size: var(--font-size-5xl);
  font-weight: 100;
  color: var(--color-primary-light);
  position: relative;
  display: inline-block;
  z-index: 1;
  isolation: isolate;
  margin-left: var(--space-8);
  justify-self: start;
}

/* Dernière collection */
.landing article categorie div a{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--color-primary-light);
  font-family: 'tan';
  font-size: var(--font-size-sm);
  height: 100%;
  justify-content: flex-end;
}

.img-card img{
  margin-bottom: var(--space-2);
  border-radius: var(--radius-full) var(--radius-full) 0 0;
  border: 2px solid var(--color-secondary-light);
  padding: var(--space-3);
  width:300px;
}

/* bouton tous les patrons */
.all-patterns{
  text-align:center;
  margin-top: var(--space-12);
  border: 3px solid var(--color-secondary-light);
  padding: var(--space-3);
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.all-patterns a{
  font-family: 'Martel';
  font-size: var(--font-size-3xl);
  letter-spacing: var(--space-4);
  color: var(--color-primary-light);
  text-transform: uppercase;
  text-align:center;
}

/* Tissus à chiner */
.landing article:nth-child(3) categorie{
  display: grid;
  grid-template-columns: 1fr 1fr; /* 50 / 50 */
  gap: 2rem;
  align-items: center; /* si tu veux verticalement centré */
}

.cate-fabrics{
    display: flex;
    align-items: flex-start;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

/* pair */
.fabric-box img{
  width: 290px;
  height: 200px;
  border-radius: 0 0 var(--radius-full) var(--radius-full);
  margin-top: var(--space-2);
}

.fabric-box a {
  text-align: center;
  width: 286px;
  height: 196px;
  display: block;
  border-radius: var(--radius-full) var(--radius-full) 0 0;
  border: 2px solid var(--color-secondary-light);
}

/* impair */
.fabric-box-odd img{
  width: 290px;
  height: 200px;
  border-radius: var(--radius-full) var(--radius-full) 0 0;
}

.fabric-box-odd a {
  text-align: center;
  width: 286px;
  height: 196px;
  display: block;
  border-radius: 0 0 var(--radius-full) var(--radius-full);
  border: 2px solid var(--color-secondary-light);
}

/* commun */
.fabric-box-odd a, .fabric-box a{
  display: flex;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
  font-family: 'TAN';
  background: var(--color-primary-dark);
  color: var(--color-secondary-light);
  font-weight: bold;
}

/* La couture autrement */
.landing article:nth-child(4) categorie{
  display: flex;
  justify-content: space-evenly;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
}

.landing article:nth-child(4) categorie div{
  max-width: 300px;
  text-align: center;
}

article categorie div h5{
  color: var(--color-primary);
  font-family: 'Martel';
  font-size: var(--font-size-xl);
  font-weight: 100;
  text-transform: uppercase;
}

article categorie div legend{
  display: block;
  color: var(--color-primary-dark);
  font-family: 'Martel';
  font-size: var(--font-size-base);
  text-align: justify;
  background-color: var(--color-primary-light);
  width: 100%;
  border-radius: var(--radius-md);
  padding: var(--space-3);
}

/* Rejoins la communauté */
.landing article:nth-child(5) div h3{
  font-family: 'Breathing';
  font-size: var(--font-size-6xl);
  color: var(--color-black);
  text-align: center;
  width: 100%;
  margin: var(--space-8) 0;
  padding: 0;
}

.landing article:nth-child(5) p{
    font-family: 'Martel';
    font-size: var(--font-size-lg);
    color: var(--color-primary-light);
    text-align: center;
    padding: var(--space-12);
    width: 60%;
    margin: 50px auto 0 auto;
    background: rgba(0, 0, 0, .65);
    border-radius: 30px;
}

/* ===========================
   LES PATRONS
=========================== */
.edd-archive-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

.edd-filtres {
    width: 250px;
    padding: 1rem;
    border-right: 1px solid #eee;
}

.edd-filtres ul {
    list-style: none;
    padding: 0;
}

.edd-filtres li {
    margin-bottom: .3rem;
}

/* ===========================
   MON COMPTE
=========================== */
.page-content{
max-width: 90%;
margin: 0 auto;
}

h1.page-title {
  padding: 40px 0;
  text-align: center;
}

fieldset{
  border-color: transparent;
  padding: 0;
  margin: 0;
  padding-bottom: 30px;
}

#edd_profile_editor_form {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

#edd_profile_name_label, #edd_profile_billing_address_label, #edd_profile_password_label {
    font-family: 'TAN';
    font-size: 20px;
}

#edd_profile_submit_fieldset {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

#edd_profile_editor_submit {
    background: var(--color-primary-dark);
    color: var(--color-primary-light);
    font-family: 'Martel';
    text-transform: uppercase;
    font-size: var(--font-size-lg);
    padding: var(--space-3);
}

/* ===========================
   FOOTER
=========================== */
.site-footer {
  background: var(--color-primary-dark);
  padding: var(--space-3) 0;
  color: var(--color-primary-light);
  font-size: var(--font-size-sm);
}

.footer-inner {
  display: flex;
  margin: 0 auto;
  padding: 0 var(--space-2);
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
}

.site-footer .footer-inner p{
  font-family: Georgia, 'Times New Roman', Times, serif;
  background-image: url('/wp-content/themes/novacraft-th/img/logo-couture-blanc.svg');
  background-size: 100px;
  font-size: var(--font-size-base);
  background-repeat: no-repeat;
  padding: 40px;
  margin: 0;
  background-position: bottom right;
}

.site-footer a {
  color: var(--color-primary-light);
  text-decoration: none;
  font-size: var(--font-size-sm);
}

.site-footer a:hover {
  text-decoration: underline;
}

/* PAGE A PROPOS */
.page-container{
  margin-top: -40px;
  background-color: var(--color-primary-light);
}

.presentation .container .texte {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: flex-start;
    max-width: 1200px;
    margin: auto;
    justify-content: space-evenly;
    text-align: justify;
}

/*.a-propos h2, */.a-propos h3, .CGV h2, .CGV h3{
  font-family: var(--font-primary);
}

.a-propos section:nth-child(n+2){
  flex: 1;
}

.histoire{
  padding: 0 var(--space-5);
}

.policy section:nth-child(n+2), .CGV section:nth-child(n+2), .contact section:nth-child(n+2), .mentions-legales section:nth-child(n+2){
    max-width: 1200px;
    margin: auto;
}

.a-propos ul, .CGV ul{
  list-style-type: circle;
  padding: revert;
}

 .parallax {
    background-image: url('/wp-content/themes/novacraft-th/img/footer/IMG_1741.jpg');
    height: 500px;
    background-attachment: fixed;
    background-position: bottom;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 100px;
}

.hero-content {
    text-align: center;
    color: white;
}

.bg-compte{
      background-image: url('/wp-content/themes/novacraft-th/img/footer/IMG_1759.jpg');
}


/* ===========================
   BURGER MENU
=========================== */
/* Animation du burger quand actif */
.burger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.burger-btn.active span:nth-child(2) {
  opacity: 0;
}
.burger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* ===========================
   MENU MOBILE
=========================== */
/* Header */
.site-header {
  background: var(--color-primary-dark);
  position: relative;
  top: var(--space-8);
  z-index: 100;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  width: 75%;
}

/* L’image décorative 
.site-header::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -25px; 
  transform: translateX(-50%);
  width: 250px;
  height: 40px;
  z-index: -1;
*/
  /* On utilise ton SVG comme masque 
  -webkit-mask: url('/wp-content/themes/novacraft-th/img/lunesviolettes.svg') no-repeat center;
  mask: url('/wp-content/themes/novacraft-th/img/lunesviolettes.svg') no-repeat center;

  -webkit-mask-size: contain;
  mask-size: contain;
  
  background-color: var(--color-primary-dark);

  pointer-events: none; 
  transition: background-color 0.3s ease;
}*/

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-1);
}

.site-logo {
    font-family: var(--font-fancy);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    text-transform: uppercase;
}

/* Burger button */
.burger-btn {
  display: none;
  flex-direction: column;
  gap: var(--space-xs);
  border: none;
  background: none;
  cursor: pointer;
}

.burger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: all 0.3s ease;
  margin: 3px 0;
}

.burger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.burger-btn.active span:nth-child(2) {
  opacity: 0;
}
.burger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* Menu mobile */
.mobile-menu {
  display: none;
  background: var(--color-bg-light);
  box-shadow: var(--shadow-md);
}

.mobile-menu.show {
  display: block;
}

.mobile-menu-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md);
  list-style: none;
}

.mobile-menu-list a {
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-primary);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .desktop-menu { display: none; }
  .burger-btn { display: flex; }

}

/* ===========================
   RESPONSIVE DESIGN
=========================== */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  .container {
    padding: 0 var(--space-xs);
  }
}

@media (max-width: 1050px) {
.site-header {
  width: 100%;
  border-radius: 0;
}

}
