/*
Theme Name: Ice Perience
Theme URI: https://iceperience.fr
Author: Matheo TRIKI
Author URI: https://matheotriki.com/
Description: Thème personnalisé pour Ice Perience - Centre performance et bien-être
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iceperience
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Base
  ## Typography
  ## Elements
  ## Links
# Layout
  ## Container
  ## Sections
# Components
  ## Buttons
  ## Animations
# Utilities
  ## Text Alignment
  ## Accessibility
# Responsive
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  line-height: 1.6;
  color: var(--dark);
  overflow-x: hidden;
  background-color: var(--bg-light);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--primary-dark);
}

h1 {
  font-size: 2.8rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.8rem;
}

h4 {
  font-size: 1.4rem;
}

h5 {
  font-size: 1.2rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--spacing-md);
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-normal);
}

a:hover {
  color: var(--secondary-color);
}

/* Media */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Lists */
ul,
ol {
  list-style-position: inside;
  margin-bottom: var(--spacing-md);
}

/*--------------------------------------------------------------
# Layout
--------------------------------------------------------------*/

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Sections */
section {
  position: relative;
  padding: var(--spacing-xl) 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xl);
  color: var(--primary-dark);
  position: relative;
}

.section-description {
  max-width: 800px;
  margin: 0 0 var(--spacing-lg);
  font-size: 1.1rem;
  color: var(--gray);
}

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Buttons */
.button {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-primary);
  transition: var(--transition-normal);
}

.button:hover {
  background-color: var(--secondary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.button-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.button-secondary:hover {
  background-color: var(--primary-color);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 404 Page */
.error-404 {
  text-align: center;
  padding: 80px 0;
}

.error-404 h1 {
  font-size: 120px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Text Alignment */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* Accessibility */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
  }
}

@media (max-width: 992px) {
  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  h3 {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.4rem;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  .section-title {
    font-size: 1.8rem;
  }
}
