/* VARIABLES */
:root {
  --blue: #0a1c35;
  --green: #046c48;
  --text-dark: #0f172a;
  --text-light: #475569;
  --bg-light: #f8fafc;
  --radius: 1rem;
  --shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

/* GLOBAL */
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* HEADER */
.header {
  background: white;
  box-shadow: var(--shadow);
  padding: 1rem 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--blue);
}
.logoTIC {
  color: var(--green);
}
.logoCopyRight {
  vertical-align: super;
  font-size: 0.38em;
  margin-left: 4px;
  color: #222;
  opacity: 0.55;
  font-weight: 600;
}
.nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
}

/* HERO */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 2rem;
  background-color: var(--blue); /* ton bleu NutrimetTIC */
  color: white;
}

.hero-content {
  flex: 1 1 40%;
  max-width: 600px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
}

.hero-illustration {
  flex: 1 1 50%;
  text-align: center;
}

.hero-illustration img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.hero-illustration.animated img {
  animation: floatUpDown 3s ease-in-out infinite;
  transform-origin: center;
}

@keyframes floatUpDown {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 650px;
  margin: auto;
  opacity: 0.9;
}

.cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.9rem 1.8rem;
  background: white;
  color: var(--blue);
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
}

/* FEATURES */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  padding: 4rem 0;
}

.feature-card {
  background: white;
  padding: 1.6rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  gap: 1rem;
  transition: 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
}

.card-icon svg {
  width: 50px;
  height: 50px;
}

.card-content h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.card-content p {
  margin-top: 0.4rem;
  color: var(--text-light);
    line-height: 1.45;
}

/* FOOTER BLOCK (nouvelle version) */
.footer-block {
  background: linear-gradient(to bottom, #0a1c35, #123f80);
  color: white;
  padding: 2.5rem 1rem;
  text-align: center;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.footer-block .footer-links a {
  color: white;
  margin: 0 12px;
  text-decoration: none;
  font-weight: 500;
}

.footer-block .footer-links a:hover {
  text-decoration: underline;
}

.footer-block .footer-copy {
  margin-top: 1rem;
  opacity: 0.8;
  font-size: 0.9rem;
}

/* LEGAL SECTIONS */
.legal-section {
  padding: 3rem 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  color: var(--text-dark);
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

.legal-section h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--blue);
}

.legal-section p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 1rem;
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Delays */
#privacy { animation-delay: 0.1s; }
#cookies { animation-delay: 0.25s; }
#legal   { animation-delay: 0.4s; }

.ntc-form {
    max-width: 480px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    font-family: "Inter", sans-serif;
}

.ntc-title {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.6rem;
    font-weight: 600;
    color: #1a1a1a;
}

.ntc-field {
    position: relative;
    margin-bottom: 25px;
}

.ntc-field input,
.ntc-field textarea {
    width: 100%;
    padding: 14px 42px 14px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    background: #fafafa;
    transition: all 0.25s ease;
}

.ntc-field input:focus,
.ntc-field textarea:focus {
    border-color: #4f8cff;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(79,140,255,0.15);
}

.ntc-field label {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    font-size: 0.95rem;
    color: #777;
    pointer-events: none;
    transition: all 0.25s ease;
}

.ntc-field input:focus + label,
.ntc-field input:not(:placeholder-shown) + label,
.ntc-field textarea:focus + label,
.ntc-field textarea:not(:placeholder-shown) + label {
    top: -8px;
    left: 10px;
    background: #fff;
    padding: 0 6px;
    font-size: 0.75rem;
    color: #4f8cff;
}

.ntc-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    opacity: 0.5;
}

.ntc-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4f8cff, #6aa8ff);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.ntc-btn:hover {
    background: linear-gradient(135deg, #3d7be6, #5d9aff);
    transform: translateY(-2px);
}

.ntc-honeypot {
    display: none;
}
.ntc-response {
    margin-top: 20px;
    text-align: center;
    font-size: 1rem;
}

.ntc-success {
    padding: 12px 18px;
    background: #d8f5d0;
    color: #2d7a2d;
    border-radius: 8px;
    animation: fadeIn 0.4s ease;
}

.ntc-error {
    padding: 12px 18px;
    background: #ffd7d7;
    color: #a30000;
    border-radius: 8px;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: translateY(0); }
}
.ntc-fade-out {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.ntc-thanks {
    padding: 40px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    text-align: center;
    animation: ntcFadeIn 0.5s ease forwards;
}

@keyframes ntcFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.ntc-check path {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: ntcCheck 0.6s ease forwards 0.3s;
}

@keyframes ntcCheck {
    to { stroke-dashoffset: 0; }
}
