/* ===============================
   POLICES
================================ */
@import url('https://fonts.googleapis.com/css2?family=Tenor+Sans&display=swap');

/* Si tu as la police Atteron en local, sinon fallback élégant */
@font-face {
  font-family: "Atteron";
  src: local("Atteron"), local("Playfair Display");
}

/* ===============================
   VARIABLES CHARTE
================================ */
:root {
  --bg-main: #FAF6F0;
  --primary: #8E71A4;
  --secondary: #CC63B0;
  --accent: #66C3CC;
  --text-dark: #755548;
  --white: #ffffff;

  --font-title: "Atteron", serif;
  --font-body: "Tenor Sans", sans-serif;
}

/* ===============================
   RESET
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior : smooth;
}

/* ===============================
   GLOBAL
================================ */
body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.7;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

h3{
	text-align:center;
}

/* ===============================
   HEADER
================================ */
.header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 80px 20px;
  text-align: center;
}

.header h1 {
  font-family: var(--font-title);
  font-size: 3rem;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* ===============================
   HERO
================================ */
.hero {
  background-color: var(--white);
  padding: 100px 20px;
  text-align: center;
}

.hero h2 {
  font-family: var(--font-title);
  font-size: 2.6rem;
  color: var(--primary);
}

.hero p {
  margin: 20px auto 40px;
  max-width: 600px;
  font-size: 1.1rem;
}

/* ===============================
   BOUTONS
================================ */
.btn {
  display: inline-block;
  background-color: var(--accent);
  color: var(--white);
  padding: 14px 30px;
  border-radius: 30px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--secondary);
  transform: translateY(-2px);
}

/* ===============================
   ABOUT / TEXTES
================================ */
.about {
  padding: 80px 20px;
}

.about h2 {
  font-family: var(--font-title);
  font-size: 2.3rem;
  color: var(--primary);
  margin-bottom: 30px;
}

.about p {
  max-width: 800px;
  margin-bottom: 20px;
}

/* ===============================
   SERVICES
================================ */
.services {
  padding: 80px 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.card {
  background: var(--white);
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  text-align: center;
}

.card:hover {
  transform: translateY(-6px);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card h3 {
  font-family: var(--font-title);
  padding: 25px;
  color: var(--secondary);
}

/* ===============================
   INSTAGRAM
================================ */
.insta {
  text-align: center;
  padding: 60px 20px;
}

/* ===============================
   COLLAPSIBLE
================================ */
.container-collapse {
  max-width: 800px;
  margin: auto;
}

.collapsible {
  width: 100%;
  padding: 15px;
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 20px;
  cursor: pointer;
  margin-bottom: 10px;
}

.content {
  background-color: var(--white);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
  display: none;
}

/* ===============================
   CONTACT
================================ */
.section {
  padding: 80px 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.cardx {
  background-color: var(--accent);
  color: var(--white);
  padding: 30px;
  border-radius: 25px;
  text-align: center;
  font-size: 1rem;
  transition: transform 0.3s ease;
  overflow : hidden;
  text-overflow:ellipsis;
}

.cardx:hover {
  transform: translateY(-5px);
}

/* ===============================
   FOOTER
================================ */
.footer {
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9rem;
}

/* ===============================
   ANIMATIONS
================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.about p,
.hero p {
  animation: fadeIn 1.5s ease both;
}

.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::after {
  width: 300px;
  height: 300px;
}

.card,
.cardx {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover,
.cardx:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.header,
.hero,
.about,
.services,
.section,
.insta,
.footer {
  animation: fadeUp 1s ease both;
}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
   /* Enable scroll if needed */
  background-color: blue; /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  
}

/* Modal Content/Box */
.modal-content {
  background-color: var(--bg-main);
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Could be more or less, depending on screen size */
} 

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Style the buttons that are used to open and close the accordion panel */
.accordion {
  background-color: #eee;
  color: #444;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  transition: 0.4s;
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.active, .accordion:hover {
  background-color: #ccc;
}

/* Style the accordion panel. Note: hidden by default */
.panel {
  padding: 0 18px;
  background-color: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}