/* =========================================================
   COMPOSANTS — éléments réutilisables
   Boutons sociaux, cartes, grille de prix, footer, etc.
   ========================================================= */

/* --- LIENS SOCIAUX (conteneur) --- */
.links-container {
  margin-top: auto;
  padding-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
  text-align: center;
  width: 100%;
  clear: both;
}

/* --- BOUTONS SOCIAUX --- */
.btn-spring {
  text-decoration: none;
  color: var(--text-main);
  background: white;
  padding: 10px 20px;
  border-radius: var(--radius-button);
  border: 1px solid var(--theme-soft);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  transition: all 0.3s ease;
  font-weight: 600;
  height: 60px;
  vertical-align: middle;
}

.btn-spring:hover {
  transform: translateY(-3px);
  background: var(--theme-soft);
}

.btn-spring img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* Variante "Google Review" : logo plus grand, pas de texte */
.btn-review-only {
  min-width: 120px;
}
.btn-review-only img {
  height: 38px;
  width: auto;
  margin-right: 0;
  max-width: 100px;
}

/* --- FOOTER --- */
.footer-area {
  width: 100%;
  padding: 30px 20px;
  background: linear-gradient(to bottom, transparent, var(--theme-fresh));
  text-align: center;
  clear: both;
}

.copyright {
  display: inline-block;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* --- GRILLE DE PRIX --- */
.price-section {
  margin: 20px 0 40px;
  background: rgba(255, 255, 255, 0.4);
  padding: 35px;
  border-radius: var(--radius-card);
  border-top: 3px solid var(--theme-soft);
}

.price-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--accent-soft);
  margin-bottom: 5px;
  text-align: center;
}

.price-intro {
  display: block;
  text-align: center;
  margin: 20px 0;
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9rem;
}

.price-group {
  margin-bottom: 30px;
}
.price-group h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--text-main);
  border-bottom: 1px solid var(--theme-soft);
  display: inline-block;
}

.price-item {
  display: flex;
  align-items: baseline;
  margin-bottom: 12px;
  gap: 10px;
}
.price-name {
  font-weight: 400;
  white-space: nowrap;
}
.price-dots {
  flex-grow: 1;
  border-bottom: 1px dotted var(--border-light);
  height: 1px;
}
.price-value {
  font-weight: 600;
  color: var(--accent-soft);
}
.price-description {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  margin-top: -8px;
  margin-bottom: 15px;
}

@media (max-width: 500px) {
  .price-section { padding: 20px; }
  .price-name { white-space: normal; }
}

/* --- SECTION "STORY" (accueil) --- */
.story-section {
  margin: 20px 0 40px;
  text-align: left;
  background: rgba(255, 255, 255, 0.4);
  padding: 30px;
  border-radius: var(--radius-card);
  border-left: 5px solid var(--theme-soft);
}
.story-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--accent-soft);
  margin-bottom: 25px;
  text-align: center;
}

.achievement-badge {
  background: var(--theme-fresh);
  padding: 20px;
  border-radius: var(--radius-button);
  margin: 25px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-align: center;
}
.achievement-badge .year {
  font-weight: 800;
  font-size: 1.2rem;
  color: white;
  background: var(--accent-soft);
  padding: 5px 15px;
  border-radius: 10px;
}
@media (min-width: 601px) {
  .achievement-badge {
    flex-direction: row;
    text-align: left;
  }
}

.highlight-box {
  background: white;
  border: 1px solid var(--theme-soft);
  padding: 25px;
  border-radius: 25px;
  text-align: center;
  margin: 30px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}
.promo-text span {
  color: var(--accent-soft);
  text-decoration: underline wavy var(--theme-soft);
  font-weight: 700;
}

.story-closing {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 20px;
}

.read-more-btn {
  display: none;
  margin: 15px auto 0;
  background: none;
  border: none;
  color: var(--accent-soft);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}
@media (max-width: 600px) {
  .story-content {
    max-height: 250px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease;
  }
  .story-content:not(.expanded)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.9));
    pointer-events: none;
  }
  .story-content.expanded { max-height: 2000px; }
  .read-more-btn { display: block; }
}

/* --- CARTES DE SERVICES (accueil) --- */
.services-container {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.service-card {
  background: white;
  padding: 20px;
  border-radius: var(--radius-button);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  color: inherit;
}
.service-card.is-clickable {
  cursor: pointer;
  border-left: 3px solid var(--theme-soft);
}
.service-card.is-clickable:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--theme-soft);
  border-left-color: var(--accent-soft);
}
.service-card.upcoming-service {
  opacity: 0.7;
  cursor: default;
}
.service-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.service-hint {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-muted);
  opacity: 0.7;
  letter-spacing: 0.2px;
  transition: opacity 0.25s ease, color 0.25s ease;
}
.service-card.is-clickable:hover .service-hint {
  opacity: 1;
  color: var(--accent-soft);
}
.service-arrow {
  color: var(--accent-soft);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.25s ease;
  display: inline-block;
}
.service-card.is-clickable:hover .service-arrow {
  transform: translateX(4px);
}
.service-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.service-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.service-cta {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-soft);
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.service-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--theme-fresh);
  flex-shrink: 0;
}
.service-tag.model {
  background: var(--theme-soft);
  color: #8a5a5a;
}
.service-tag.soon {
  background: #eee;
  color: #888;
}

/* --- CARTES INFO (page teeth) --- */
.info-card {
  background: rgba(255, 255, 255, 0.4);
  padding: 25px;
  border-radius: 25px;
  margin-bottom: 20px;
  border-left: 5px solid var(--theme-soft);
}
.info-card h3 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  font-size: 1.3rem;
}
.info-card h3 svg,
.teeth-intro h1 svg,
.tip-icon svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--accent-soft);
}
.info-card p,
.info-card li {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 12px;
  font-weight: 400;
}
.info-card ul {
  padding-left: 20px;
  list-style-type: '✧ ';
  color: var(--text-muted);
}
.info-card ul strong {
  color: var(--text-main);
}

.safety-box {
  background: var(--theme-fresh);
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-left: 5px solid #a3b18a;
}

.teeth-intro {
  text-align: center;
  margin-bottom: 30px;
  padding-top: 10px;
}
.teeth-intro h1 {
  font-family: 'Playfair Display', serif;
  color: var(--accent-soft);
  font-size: 1.9rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
@media (max-width: 500px) {
  .info-card { padding: 20px; border-radius: 15px; }
  .teeth-intro h1 { font-size: 1.6rem; }
}

.price-tag-big {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-soft);
  margin: 30px 0;
  font-family: 'Playfair Display', serif;
  position: relative;
  display: inline-block;
  align-self: center;
}
.price-tag-big::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 2px;
  background: var(--theme-soft);
}

.tip-container {
  margin-top: 30px;
  text-align: center;
}
.tip-icon {
  margin-bottom: 10px;
  display: inline-block;
}
.tip-box {
  background: #fff;
  border: 1px dashed var(--accent-soft);
  padding: 20px;
  border-radius: var(--radius-button);
  font-size: 0.95rem;
  color: var(--text-muted-dark);
  text-align: center;
  line-height: 1.5;
}

.law-link-row {
  list-style: none;
  margin-top: 15px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 10px;
}
.law-link {
  color: var(--text-main);
  font-size: 0.85rem;
  text-decoration: underline;
}

.call-to-smile {
  text-align: center;
  font-weight: 600;
  margin-top: 25px;
  color: var(--accent-soft);
  font-size: 1.1rem;
}

/* --- PAGES LÉGALES (teeth-law) --- */
.law-card {
  background: white;
  padding: 35px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}
.law-card h1 {
  font-family: 'Playfair Display', serif;
  color: var(--accent-soft);
  margin-bottom: 25px;
  font-size: 1.6rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.law-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  margin: 30px 0 15px;
  color: var(--text-main);
  border-bottom: 2px solid var(--theme-soft);
  display: inline-block;
}
.law-card h3 {
  font-size: 1.1rem;
  margin: 20px 0 10px;
  color: var(--accent-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.law-card h1 svg,
.law-card h3 svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--accent-soft);
}
.law-card p,
.law-card li {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 12px;
  color: var(--text-muted-dark);
}
.law-card strong {
  color: var(--text-main);
}
.law-card .highlight-box {
  background: #fdfcf8;
  border-left: 4px solid var(--accent-soft);
  padding: 20px;
  margin: 20px 0;
  border-radius: 0 15px 15px 0;
}
.source-box {
  background: var(--theme-fresh);
  padding: 25px;
  border-radius: var(--radius-button);
  margin-top: 40px;
}
.source-box h3 {
  color: var(--text-main);
}
.source-box ul {
  list-style: none;
  padding: 0;
}
.source-box li {
  margin-bottom: 15px;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 10px;
}
.source-box a {
  color: var(--accent-soft);
  text-decoration: none;
  font-weight: 600;
  display: block;
  margin-top: 5px;
}
.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--accent-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.law-table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 0.85rem;
  background: #fff;
}
.law-table th,
.law-table td {
  border: 1px solid #eee;
  padding: 12px;
  text-align: left;
}
.law-table th {
  background: var(--theme-fresh);
  color: var(--text-main);
  font-family: 'Playfair Display', serif;
}
@media (max-width: 600px) {
  .law-card { padding: 20px; }
  .law-table { display: block; overflow-x: auto; }
}

/* --- PAGE CONSTRUCTION (secours) --- */
.waiting-message {
  margin: 20px 0 40px;
}
.waiting-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--accent-soft);
  margin-bottom: 15px;
}
.waiting-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 25px;
}
.badge {
  display: inline-block;
  background: var(--theme-soft);
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.waiting-subtext {
  font-style: italic;
  font-size: 0.9rem;
}
@media (max-width: 500px) {
  .waiting-title { font-size: 1.6rem; }
}
